import { CreateAgentDefinitionRequest as CreateAgentDefinitionRequest$1, CreateAgentDefinitionResponse as CreateAgentDefinitionResponse$1, GetAgentDefinitionRequest as GetAgentDefinitionRequest$1, GetAgentDefinitionResponse as GetAgentDefinitionResponse$1, UpdateAgentDefinitionRequest as UpdateAgentDefinitionRequest$1, UpdateAgentDefinitionResponse as UpdateAgentDefinitionResponse$1, DeleteAgentDefinitionRequest as DeleteAgentDefinitionRequest$1, DeleteAgentDefinitionResponse as DeleteAgentDefinitionResponse$1, QueryAgentDefinitionsRequest as QueryAgentDefinitionsRequest$1, QueryAgentDefinitionsResponse as QueryAgentDefinitionsResponse$1, BulkUpdateAgentDefinitionTagsRequest as BulkUpdateAgentDefinitionTagsRequest$1, BulkUpdateAgentDefinitionTagsResponse as BulkUpdateAgentDefinitionTagsResponse$1, BulkUpdateAgentDefinitionTagsByFilterRequest as BulkUpdateAgentDefinitionTagsByFilterRequest$1, BulkUpdateAgentDefinitionTagsByFilterResponse as BulkUpdateAgentDefinitionTagsByFilterResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** Registry entry describing an agent that can be offered on a site. */ interface AgentDefinition { /** * AgentDefinition ID. * @format GUID * @readonly */ id?: string | null; /** * Revision number, which increments by 1 each time the AgentDefinition is updated. * @readonly */ revision?: string | null; /** * Date and time the AgentDefinition was created. * @readonly */ createdDate?: Date | null; /** * Date and time the AgentDefinition was last updated. * @readonly */ updatedDate?: Date | null; /** * Stable machine-readable key for the agent. * @minLength 1 * @maxLength 120 */ key?: string; /** * Human-readable agent name. * @minLength 1 * @maxLength 120 */ displayName?: string; /** * Short explanation of what the agent does. * @maxLength 1000 */ description?: string | null; /** * Platform or vendor that provides the agent. * @minLength 1 * @maxLength 120 */ provider?: string; /** * Runtime used to execute the agent. * @minLength 1 * @maxLength 120 */ runtime?: string; /** * Agent package or configuration version. * @maxLength 80 */ version?: string | null; /** Current lifecycle state of the registry entry. */ status?: AgentStatusWithLiterals; /** * Capability identifiers supported by the agent. * @maxSize 100 * @maxLength 120 */ capabilities?: string[]; /** Data Extensions. */ extendedFields?: ExtendedFields; /** Tags. */ tags?: Tags; } declare enum AgentStatus { ACTIVE = "ACTIVE", PAUSED = "PAUSED", DEPRECATED = "DEPRECATED" } /** @enumType */ type AgentStatusWithLiterals = AgentStatus | 'ACTIVE' | 'PAUSED' | 'DEPRECATED'; interface ExtendedFields { /** * Extended field data. Each key corresponds to the namespace of the app that created the extended fields. * The value of each key is structured according to the schema defined when the extended fields were configured. * * You can only access fields for which you have the appropriate permissions. * * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields). */ namespaces?: Record>; } /** * Common object for tags. * Should be use as in this example: * message Foo { * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo"; * string id = 1; * ... * Tags tags = 5 * } * * example of taggable entity * { * id: "123" * tags: { * public_tags: { * tag_ids:["11","22"] * }, * private_tags: { * tag_ids: ["33", "44"] * } * } * } */ interface Tags { /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */ privateTags?: TagList; /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */ publicTags?: TagList; } interface TagList { /** * List of tag IDs. * @maxSize 100 * @maxLength 5 */ tagIds?: string[]; } interface AgentDefinitionTagsModified { /** Updated AgentDefinition. */ agentDefinition?: AgentDefinition; /** Tags that were assigned to the AgentDefinition. */ assignedTags?: Tags; /** Tags that were unassigned from the AgentDefinition. */ unassignedTags?: Tags; } interface CreateAgentDefinitionRequest { /** AgentDefinition to be created. */ agentDefinition: AgentDefinition; } interface CreateAgentDefinitionResponse { /** The created AgentDefinition. */ agentDefinition?: AgentDefinition; } interface GetAgentDefinitionRequest { /** * ID of the AgentDefinition to retrieve. * @format GUID */ agentDefinitionId: string; } interface GetAgentDefinitionResponse { /** The requested AgentDefinition. */ agentDefinition?: AgentDefinition; } interface UpdateAgentDefinitionRequest { /** AgentDefinition to be updated, may be partial. */ agentDefinition: AgentDefinition; } interface UpdateAgentDefinitionResponse { /** Updated AgentDefinition. */ agentDefinition?: AgentDefinition; } interface DeleteAgentDefinitionRequest { /** * ID of the AgentDefinition to delete. * @format GUID */ agentDefinitionId: string; } interface DeleteAgentDefinitionResponse { } interface QueryAgentDefinitionsRequest { /** WQL expression. */ query?: CursorQuery; } interface CursorQuery extends CursorQueryPagingMethodOneOf { /** * Cursor paging options. * * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). */ cursorPaging?: CursorPaging; /** * Filter object. * * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). */ filter?: Record | null; /** * Sort object. * * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). * @maxSize 5 */ sort?: Sorting[]; } /** @oneof */ interface CursorQueryPagingMethodOneOf { /** * Cursor paging options. * * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). */ cursorPaging?: CursorPaging; } interface Sorting { /** * Name of the field to sort by. * @maxLength 512 */ fieldName?: string; /** Sort order. */ order?: SortOrderWithLiterals; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface CursorPaging { /** * Maximum number of items to return in the results. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. * @maxLength 16000 */ cursor?: string | null; } interface QueryAgentDefinitionsResponse { /** List of AgentDefinitions. */ agentDefinitions?: AgentDefinition[]; /** Paging metadata. */ pagingMetadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** Number of items returned in current page. */ count?: number | null; /** Cursor strings that point to the next page, previous page, or both. */ cursors?: Cursors; /** * Whether there are more pages to retrieve following the current page. * * + `true`: Another page of results can be retrieved. * + `false`: This is the last page. */ hasNext?: boolean | null; } interface Cursors { /** * Cursor string pointing to the next page in the list of results. * @maxLength 16000 */ next?: string | null; /** * Cursor pointing to the previous page in the list of results. * @maxLength 16000 */ prev?: string | null; } interface BulkUpdateAgentDefinitionTagsRequest { /** * IDs of AgentDefinitions whose tags will be updated. * @minSize 1 * @maxSize 100 * @format GUID */ agentDefinitionIds: string[]; /** Tags to assign. */ assignTags?: Tags; /** Tags to unassign. */ unassignTags?: Tags; } interface BulkUpdateAgentDefinitionTagsResponse { /** * Results. * @minSize 1 * @maxSize 100 */ results?: BulkUpdateAgentDefinitionTagsResult[]; /** Metadata regarding the bulk update operation. */ bulkActionMetadata?: BulkActionMetadata; } interface ItemMetadata { /** * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed. * @format GUID */ id?: string | null; /** Index of the item within the request array. Allows for correlation between request and response items. */ originalIndex?: number; /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */ success?: boolean; /** Details about the error in case of failure. */ error?: ApplicationError; } interface ApplicationError { /** Error code. */ code?: string; /** Description of the error. */ description?: string; /** Data related to the error. */ data?: Record | null; } interface BulkUpdateAgentDefinitionTagsResult { /** Metadata regarding the specific single update operation. */ itemMetadata?: ItemMetadata; } interface BulkActionMetadata { /** Number of items that were successfully processed. */ totalSuccesses?: number; /** Number of items that couldn't be processed. */ totalFailures?: number; /** Number of failures without details because detailed failure threshold was exceeded. */ undetailedFailures?: number; } interface BulkUpdateAgentDefinitionTagsByFilterRequest { /** Filter that selects AgentDefinitions whose tags will be updated. */ filter: Record | null; /** Tags to assign. */ assignTags?: Tags; /** Tags to unassign. */ unassignTags?: Tags; } interface BulkUpdateAgentDefinitionTagsByFilterResponse { /** * Job ID. * @format GUID */ jobId?: string; } 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; } /** @docsIgnore */ type BulkUpdateAgentDefinitionTagsApplicationErrors = { code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS'; description?: string; data?: Record; }; /** @docsIgnore */ type BulkUpdateAgentDefinitionTagsByFilterApplicationErrors = { code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS'; description?: string; data?: Record; }; type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function createAgentDefinition(): __PublicMethodMetaInfo<'POST', {}, CreateAgentDefinitionRequest$1, CreateAgentDefinitionRequest, CreateAgentDefinitionResponse$1, CreateAgentDefinitionResponse>; declare function getAgentDefinition(): __PublicMethodMetaInfo<'GET', { agentDefinitionId: string; }, GetAgentDefinitionRequest$1, GetAgentDefinitionRequest, GetAgentDefinitionResponse$1, GetAgentDefinitionResponse>; declare function updateAgentDefinition(): __PublicMethodMetaInfo<'PATCH', { agentDefinitionId: string; }, UpdateAgentDefinitionRequest$1, UpdateAgentDefinitionRequest, UpdateAgentDefinitionResponse$1, UpdateAgentDefinitionResponse>; declare function deleteAgentDefinition(): __PublicMethodMetaInfo<'DELETE', { agentDefinitionId: string; }, DeleteAgentDefinitionRequest$1, DeleteAgentDefinitionRequest, DeleteAgentDefinitionResponse$1, DeleteAgentDefinitionResponse>; declare function queryAgentDefinitions(): __PublicMethodMetaInfo<'GET', {}, QueryAgentDefinitionsRequest$1, QueryAgentDefinitionsRequest, QueryAgentDefinitionsResponse$1, QueryAgentDefinitionsResponse>; declare function bulkUpdateAgentDefinitionTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateAgentDefinitionTagsRequest$1, BulkUpdateAgentDefinitionTagsRequest, BulkUpdateAgentDefinitionTagsResponse$1, BulkUpdateAgentDefinitionTagsResponse>; declare function bulkUpdateAgentDefinitionTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateAgentDefinitionTagsByFilterRequest$1, BulkUpdateAgentDefinitionTagsByFilterRequest, BulkUpdateAgentDefinitionTagsByFilterResponse$1, BulkUpdateAgentDefinitionTagsByFilterResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AgentDefinition as AgentDefinitionOriginal, type AgentDefinitionTagsModified as AgentDefinitionTagsModifiedOriginal, AgentStatus as AgentStatusOriginal, type AgentStatusWithLiterals as AgentStatusWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateAgentDefinitionTagsApplicationErrors as BulkUpdateAgentDefinitionTagsApplicationErrorsOriginal, type BulkUpdateAgentDefinitionTagsByFilterApplicationErrors as BulkUpdateAgentDefinitionTagsByFilterApplicationErrorsOriginal, type BulkUpdateAgentDefinitionTagsByFilterRequest as BulkUpdateAgentDefinitionTagsByFilterRequestOriginal, type BulkUpdateAgentDefinitionTagsByFilterResponse as BulkUpdateAgentDefinitionTagsByFilterResponseOriginal, type BulkUpdateAgentDefinitionTagsRequest as BulkUpdateAgentDefinitionTagsRequestOriginal, type BulkUpdateAgentDefinitionTagsResponse as BulkUpdateAgentDefinitionTagsResponseOriginal, type BulkUpdateAgentDefinitionTagsResult as BulkUpdateAgentDefinitionTagsResultOriginal, type CreateAgentDefinitionRequest as CreateAgentDefinitionRequestOriginal, type CreateAgentDefinitionResponse as CreateAgentDefinitionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAgentDefinitionRequest as DeleteAgentDefinitionRequestOriginal, type DeleteAgentDefinitionResponse as DeleteAgentDefinitionResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetAgentDefinitionRequest as GetAgentDefinitionRequestOriginal, type GetAgentDefinitionResponse as GetAgentDefinitionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryAgentDefinitionsRequest as QueryAgentDefinitionsRequestOriginal, type QueryAgentDefinitionsResponse as QueryAgentDefinitionsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type Tags as TagsOriginal, type UpdateAgentDefinitionRequest as UpdateAgentDefinitionRequestOriginal, type UpdateAgentDefinitionResponse as UpdateAgentDefinitionResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkUpdateAgentDefinitionTags, bulkUpdateAgentDefinitionTagsByFilter, createAgentDefinition, deleteAgentDefinition, getAgentDefinition, queryAgentDefinitions, updateAgentDefinition };