import { GetSecretValueRequest as GetSecretValueRequest$1, GetSecretValueResponse as GetSecretValueResponse$1, ListSecretInfoRequest as ListSecretInfoRequest$1, ListSecretInfoResponse as ListSecretInfoResponse$1, CreateSecretRequest as CreateSecretRequest$1, CreateSecretResponse as CreateSecretResponse$1, DeleteSecretRequest as DeleteSecretRequest$1, DeleteSecretResponse as DeleteSecretResponse$1, UpdateSecretRequest as UpdateSecretRequest$1, UpdateSecretResponse as UpdateSecretResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; interface Secret { /** * Unique secret ID. * @readonly * @format GUID */ id?: string | null; /** * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value. * * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported. * @maxLength 50 */ name?: string | null; /** * Optional text describing the secret's purpose or any other notes about it. * @maxLength 200 */ description?: string | null; /** * The encrypted confidential value. * @minLength 1 * @maxLength 3500 */ value?: string | null; /** * Date and time when the secret was created. * @readonly */ createdDate?: Date | null; /** * Date and time when the secret was updated. * @readonly */ updatedDate?: Date | null; } interface GetSecretValueRequest { /** Secret name. */ name: string; } interface GetSecretValueResponse { /** The confidential value to protect, such as an API key. */ value?: string; } interface ListSecretInfoRequest { } interface ListSecretInfoResponse { /** A list of secrets with encrypted values. */ secrets?: Secret[]; } interface CreateSecretRequest { /** Details of a secret. */ secret: Secret; } interface CreateSecretResponse { /** Unique secret ID. */ id?: string; } interface DeleteSecretRequest { /** * ID of the secret to delete. * @format GUID */ id: string; } interface DeleteSecretResponse { } interface UpdateSecretRequest { /** * ID of the secret to update. * @format GUID */ id: string; /** Details of a secret. */ secret: Secret; } interface UpdateSecretResponse { } interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number. * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entityAsJson?: string; /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ restoreInfo?: RestoreInfo; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntityAsJson?: string; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntityAsJson?: string | null; } interface ActionEvent { bodyAsJson?: string; } interface MessageEnvelope { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; /** Details related to the account */ accountInfo?: AccountInfo; } interface IdentificationData extends IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; /** @readonly */ identityType?: WebhookIdentityTypeWithLiterals; } /** @oneof */ interface IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; interface AccountInfo { /** * ID of the Wix account associated with the event. * @format GUID */ accountId?: string | null; /** * ID of the parent Wix account. Only included when accountId belongs to a child account. * @format GUID */ parentAccountId?: string | null; /** * ID of the Wix site associated with the event. Only included when the event is tied to a specific site. * @format GUID */ siteId?: string | null; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function getSecretValue(): __PublicMethodMetaInfo<'GET', { name: string; }, GetSecretValueRequest$1, GetSecretValueRequest, GetSecretValueResponse$1, GetSecretValueResponse>; declare function listSecretInfo(): __PublicMethodMetaInfo<'GET', {}, ListSecretInfoRequest$1, ListSecretInfoRequest, ListSecretInfoResponse$1, ListSecretInfoResponse>; declare function createSecret(): __PublicMethodMetaInfo<'POST', {}, CreateSecretRequest$1, CreateSecretRequest, CreateSecretResponse$1, CreateSecretResponse>; declare function deleteSecret(): __PublicMethodMetaInfo<'DELETE', { id: string; }, DeleteSecretRequest$1, DeleteSecretRequest, DeleteSecretResponse$1, DeleteSecretResponse>; declare function updateSecret(): __PublicMethodMetaInfo<'PATCH', { id: string; }, UpdateSecretRequest$1, UpdateSecretRequest, UpdateSecretResponse$1, UpdateSecretResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CreateSecretRequest as CreateSecretRequestOriginal, type CreateSecretResponse as CreateSecretResponseOriginal, type DeleteSecretRequest as DeleteSecretRequestOriginal, type DeleteSecretResponse as DeleteSecretResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetSecretValueRequest as GetSecretValueRequestOriginal, type GetSecretValueResponse as GetSecretValueResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListSecretInfoRequest as ListSecretInfoRequestOriginal, type ListSecretInfoResponse as ListSecretInfoResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type RestoreInfo as RestoreInfoOriginal, type Secret as SecretOriginal, type UpdateSecretRequest as UpdateSecretRequestOriginal, type UpdateSecretResponse as UpdateSecretResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createSecret, deleteSecret, getSecretValue, listSecretInfo, updateSecret };