internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
export enum ApiEndpointParam {
|
||||
LastSyncToken = 'sync_token',
|
||||
PaginationToken = 'cursor_token',
|
||||
SyncDlLimit = 'limit',
|
||||
SyncPayloads = 'items',
|
||||
ApiVersion = 'api',
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export type CreateAsymmetricMessageParams = {
|
||||
recipientUuid: string
|
||||
encryptedMessage: string
|
||||
replaceabilityIdentifier?: string
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export type DeleteAsymmetricMessageRequestParams = {
|
||||
messageUuid: string
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type GetOutboundAsymmetricMessagesRequestParams = {}
|
||||
@@ -0,0 +1,2 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type GetUserAsymmetricMessagesRequestParams = {}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type UpdateAsymmetricMessageParams = {
|
||||
messageUuid: string
|
||||
encryptedMessage: string
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { ValetTokenOperation } from '@standardnotes/responses'
|
||||
import { SharedVaultMoveType } from './SharedVaultMoveType'
|
||||
|
||||
export type CreateSharedVaultValetTokenParams = {
|
||||
sharedVaultUuid: string
|
||||
fileUuid?: string
|
||||
remoteIdentifier: string
|
||||
operation: ValetTokenOperation
|
||||
unencryptedFileSize?: number
|
||||
moveOperationType?: SharedVaultMoveType
|
||||
sharedVaultToSharedVaultMoveTargetUuid?: string
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export type SharedVaultMoveType = 'shared-vault-to-user' | 'user-to-shared-vault' | 'shared-vault-to-shared-vault'
|
||||
@@ -0,0 +1,4 @@
|
||||
export type AcceptInviteRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
inviteUuid: string
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { SharedVaultPermission } from '@standardnotes/responses'
|
||||
|
||||
export type CreateSharedVaultInviteParams = {
|
||||
sharedVaultUuid: string
|
||||
recipientUuid: string
|
||||
encryptedMessage: string
|
||||
permissions: SharedVaultPermission
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type DeclineInviteRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
inviteUuid: string
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export type DeleteAllSharedVaultInvitesRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type DeleteInviteRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
inviteUuid: string
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type GetOutboundUserInvitesRequestParams = {}
|
||||
@@ -0,0 +1,3 @@
|
||||
export type GetSharedVaultInvitesRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type GetUserInvitesRequestParams = {}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { SharedVaultPermission } from '@standardnotes/responses'
|
||||
|
||||
export type UpdateSharedVaultInviteParams = {
|
||||
sharedVaultUuid: string
|
||||
inviteUuid: string
|
||||
encryptedMessage: string
|
||||
permissions?: SharedVaultPermission
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type DeleteSharedVaultUserRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
userUuid: string
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export type GetSharedVaultUsersRequestParams = {
|
||||
sharedVaultUuid: string
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApiEndpointParam } from '../ApiEndpointParam'
|
||||
import { ApiEndpointParam } from '@standardnotes/responses'
|
||||
import { ApiVersion } from '../../Api/ApiVersion'
|
||||
|
||||
export type SubscriptionInviteCancelRequestParams = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApiEndpointParam } from '../ApiEndpointParam'
|
||||
import { ApiEndpointParam } from '@standardnotes/responses'
|
||||
import { ApiVersion } from '../../Api/ApiVersion'
|
||||
|
||||
export type SubscriptionInviteDeclineRequestParams = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApiEndpointParam } from '../ApiEndpointParam'
|
||||
import { ApiEndpointParam } from '@standardnotes/responses'
|
||||
import { ApiVersion } from '../../Api/ApiVersion'
|
||||
|
||||
export type SubscriptionInviteListRequestParams = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApiEndpointParam } from '../ApiEndpointParam'
|
||||
import { ApiEndpointParam } from '@standardnotes/responses'
|
||||
import { ApiVersion } from '../../Api/ApiVersion'
|
||||
|
||||
export type SubscriptionInviteRequestParams = {
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import { AnyKeyParamsContent } from '@standardnotes/common'
|
||||
import { ApiEndpointParam } from '../ApiEndpointParam'
|
||||
import { ApiEndpointParam } from '@standardnotes/responses'
|
||||
import { ApiVersion } from '../../Api/ApiVersion'
|
||||
|
||||
export type UserRegistrationRequestParams = AnyKeyParamsContent & {
|
||||
[ApiEndpointParam.ApiVersion]: ApiVersion.v0
|
||||
[additionalParam: string]: unknown
|
||||
password: string
|
||||
email: string
|
||||
ephemeral: boolean
|
||||
[additionalParam: string]: unknown
|
||||
pkcPublicKey?: string
|
||||
pkcEncryptedPrivateKey?: string
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { ApiEndpointParam } from '@standardnotes/responses'
|
||||
import { ApiVersion } from '../../Api/ApiVersion'
|
||||
|
||||
export type UserUpdateRequestParams = {
|
||||
[ApiEndpointParam.ApiVersion]: ApiVersion.v0
|
||||
user_uuid: string
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
export * from './ApiEndpointParam'
|
||||
export * from './Authenticator/DeleteAuthenticatorRequestParams'
|
||||
export * from './Authenticator/GenerateAuthenticatorAuthenticationOptionsRequestParams'
|
||||
export * from './Authenticator/ListAuthenticatorsRequestParams'
|
||||
@@ -17,3 +16,4 @@ export * from './Subscription/SubscriptionInviteRequestParams'
|
||||
export * from './User/UserRegistrationRequestParams'
|
||||
export * from './UserRequest/UserRequestRequestParams'
|
||||
export * from './WebSocket/WebSocketConnectionTokenRequestParams'
|
||||
export * from './SharedVault/SharedVaultMoveType'
|
||||
|
||||
Reference in New Issue
Block a user