{"version":3,"sources":["../../../src/functions-v1-function-functions.http.ts","../../../src/functions-v1-function-functions.types.ts","../../../src/functions-v1-function-functions.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\nimport { _Function } from './functions-v1-function-functions.types';\n\nfunction resolveWixFunctionsApiV1FunctionsUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/functions/v1/functions',\n        destPath: '/v1/functions',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/functions/v1/functions',\n        destPath: '/v1/functions',\n      },\n      {\n        srcPath: '/functions/v1/bulk/functions',\n        destPath: '/v1/bulk/functions',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/functions/v1/functions',\n        destPath: '/v1/functions',\n      },\n      {\n        srcPath: '/functions/v1/bulk/functions',\n        destPath: '/v1/bulk/functions',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/functions/v1/functions',\n        destPath: '/v1/functions',\n      },\n      {\n        srcPath: '/functions/v1/bulk/functions',\n        destPath: '/v1/bulk/functions',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_functions_functions';\n\n/**\n * Creates a function with the specified configuration. After creation, you'll need to attach automation logic using the Function Methods API and configure any required service plugin settings before the function can be activated.\n *\n * This isn't the recommended way to create a function. Learn more about [function creation](https://dev.wix.com/docs/api-reference/business-management/functions/about-function-creation-and-activation#quick-creation-and-configuration).\n */\nexport function createFunction(payload: object): RequestOptionsFactory<any> {\n  function __createFunction({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'function.createdDate' },\n          { path: 'function.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'POST' as any,\n      methodFqn: 'wix.functions.api.v1.Functions.CreateFunction',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/functions',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'function.createdDate' },\n              { path: 'function.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createFunction;\n}\n\n/** Retrieves a function. */\nexport function getFunction(payload: object): RequestOptionsFactory<any> {\n  function __getFunction({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'GET' as any,\n      methodFqn: 'wix.functions.api.v1.Functions.GetFunction',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/functions/{functionId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'function.createdDate' },\n              { path: 'function.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getFunction;\n}\n\n/**\n * Updates a function.\n *\n * Each time the function is updated,\n * `revision` increments by 1.\n * The existing `revision` must be passed when updating the function.\n * This ensures you're working with the latest version of the function\n * and prevents unintended overwrites.\n */\nexport function updateFunction(payload: object): RequestOptionsFactory<any> {\n  function __updateFunction({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'function.createdDate' },\n          { path: 'function.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'PATCH' as any,\n      methodFqn: 'wix.functions.api.v1.Functions.UpdateFunction',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/functions/{function.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'function.createdDate' },\n              { path: 'function.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateFunction;\n}\n\n/**\n * Deletes a function.\n *\n * Deleting a function permanently removes it from the Function List\n * in the site's dashboard.\n */\nexport function deleteFunction(payload: object): RequestOptionsFactory<any> {\n  function __deleteFunction({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'DELETE' as any,\n      methodFqn: 'wix.functions.api.v1.Functions.DeleteFunction',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/functions/{functionId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteFunction;\n}\n\n/**\n * Creates a query to retrieve a list of functions.\n *\n * The Query Functions method builds a query to retrieve a list of functions and returns a `FunctionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `FunctionsQueryBuilder` methods onto the query. `FunctionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Functions returns.\n *\n * Query Functions has a default paging limit of 50, which you can override.\n *\n *  For a full description of the item object, see the object returned for the `items` property in `FunctionsQueryResult`.\n */\nexport function queryFunctions(payload: object): RequestOptionsFactory<any> {\n  function __queryFunctions({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'GET' as any,\n      methodFqn: 'wix.functions.api.v1.Functions.QueryFunctions',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/functions/query',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload, true),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'functions.createdDate' },\n              { path: 'functions.updatedDate' },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveWixFunctionsApiV1FunctionsUrl({\n            protoPath: '/v1/functions/query',\n            data: payload,\n            host,\n          }),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __queryFunctions;\n}\n\n/**\n * Synchronously update tags on multiple functions.\n * A tag that appears both the list to assign and the list to unassign tags, will be assigned.\n */\nexport function bulkUpdateFunctionTags(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateFunctionTags({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'POST' as any,\n      methodFqn: 'wix.functions.api.v1.Functions.BulkUpdateFunctionTags',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/bulk/functions/bulk-update-tags',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateFunctionTags;\n}\n\n/**\n * Asynchronously update tags on multiple functions.\n * An empty filter updates all functions.\n * A tag that appears both the list to assign and the list to unassign tags, will be assigned.\n */\nexport function bulkUpdateFunctionTagsByFilter(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateFunctionTagsByFilter({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.functions.v1.function',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.functions.api.v1.Functions.BulkUpdateFunctionTagsByFilter',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixFunctionsApiV1FunctionsUrl({\n        protoPath: '/v1/bulk/functions/update-tags-by-filter',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateFunctionTagsByFilter;\n}\n","/** A function is the main entity in the Wix Functions ecosystem. All other entities are used to create functions or to define their behavior. Learn more about [Functions](https://support.wix.com/en/wix-functions). */\nexport interface _Function {\n  /**\n   * Function ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the function is updated.\n   * To prevent conflicting changes,\n   * the current revision must be passed when updating the function.\n   *\n   * Ignored when creating a function.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the function was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the function was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * ID of the function type that defines when and how the function runs. This is the function type that the function is based on.\n   * @format GUID\n   */\n  functionExtensionId?: string | null;\n  /**\n   * Display name for the function in the dashboard's function builder.\n   * @maxLength 100\n   */\n  functionName?: string | null;\n  /**\n   * Activation status.\n   * @readonly\n   */\n  activationStatus?: ActivationStatusWithLiterals;\n  /**\n   * ID of the Wix app that defines the function type that the function is based on.\n   * @format GUID\n   */\n  appId?: string | null;\n  /**\n   * Display name of the function type.\n   * @minLength 1\n   * @maxLength 100\n   */\n  functionExtensionName?: string | null;\n  /**\n   * External IDs that link the function to other entities.\n   * @internal\n   * @format GUID\n   * @maxSize 100\n   * @readonly\n   */\n  externalIds?: string[] | null;\n  /**\n   * ID of the function template used to create this function.\n   * @format GUID\n   */\n  functionTemplateExtensionId?: string | null;\n  /**\n   * ID of the form template used to create this function. Included if the function was created using the [Builderless Productions](https://dev.wix.com/docs/api-reference/business-management/functions/builderless-productions/introduction) API.\n   * @format GUID\n   */\n  formTemplateExtensionId?: string | null;\n  /** Whether the function has changes that were made since it was last activated. */\n  hasUnpublishedChanges?: boolean | null;\n  /** Tags assigned to the function for organization and filtering. */\n  tags?: Tags;\n}\n\nexport enum ActivationStatus {\n  /** Function is active and runs when triggered. */\n  ACTIVE = 'ACTIVE',\n  /** Function is inactive and doesn't run when triggered. */\n  INACTIVE = 'INACTIVE',\n  /** Function is saved but has never been activated. */\n  DRAFT = 'DRAFT',\n}\n\n/** @enumType */\nexport type ActivationStatusWithLiterals =\n  | ActivationStatus\n  | 'ACTIVE'\n  | 'INACTIVE'\n  | 'DRAFT';\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n  /** Tags that require an additional permission in order to access them, typically restricted from site members and visitors. */\n  privateTags?: TagList;\n  /** Tags that are exposed to anyone with access to the entity, including site members and visitors. */\n  publicTags?: TagList;\n}\n\nexport interface TagList {\n  /**\n   * List of tag IDs.\n   * @maxSize 100\n   * @maxLength 5\n   */\n  tagIds?: string[];\n}\n\nexport interface DraftDiscarded {\n  /**\n   * Function ID associated with the discarded draft\n   * @format GUID\n   */\n  functionId?: string;\n  /** Date and time when the draft was discarded */\n  discardedDate?: Date | null;\n}\n\nexport interface TagsModified {\n  /** Updated function. */\n  function?: _Function;\n  /** Tags that were assigned to the Function. */\n  assignedTags?: Tags;\n  /** Tags that were unassigned from the Function. */\n  unassignedTags?: Tags;\n}\n\nexport interface CreateFunctionRequest {\n  /** Function to create. */\n  function: _Function;\n}\n\nexport interface CreateFunctionResponse {\n  /** The created function. */\n  function?: _Function;\n}\n\nexport interface GetFunctionRequest {\n  /**\n   * ID of the function to retrieve.\n   * @format GUID\n   */\n  functionId: string;\n}\n\nexport interface GetFunctionResponse {\n  /** The retrieved function. */\n  function?: _Function;\n}\n\nexport interface UpdateFunctionRequest {\n  /** Function to update. */\n  function: _Function;\n  /**\n   * Set of fields to update.\n   *\n   * Fields that aren't included in `fieldMask.paths` are ignored.\n   * @internal\n   */\n  fieldMask?: string[];\n}\n\nexport interface UpdateFunctionResponse {\n  /** Updated function. */\n  function?: _Function;\n}\n\nexport interface DeleteFunctionRequest {\n  /**\n   * ID of the function to delete.\n   * @format GUID\n   */\n  functionId: string;\n}\n\nexport interface DeleteFunctionResponse {}\n\nexport interface QueryFunctionsRequest {\n  /** Wix Query Language expression. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryFunctionsResponse {\n  /** List of retrieved functions. */\n  functions?: _Function[];\n  /** Metadata for the paginated results. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more pages to retrieve following the current page.\n   *\n   * + `true`: Another page of results can be retrieved.\n   * + `false`: This is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface ListValuesByFieldRequest {\n  /**\n   * Field to list values for.\n   * @minLength 1\n   * @maxLength 100\n   */\n  field?: string;\n}\n\nexport interface ListValuesByFieldResponse {\n  /**\n   * List of values for the field.\n   * @maxSize 100\n   */\n  fieldAndCount?: FieldAndCount[];\n}\n\nexport interface FieldAndCount {\n  /**\n   * Field value.\n   * @minLength 1\n   * @maxLength 100\n   */\n  field?: string;\n  /** Number of times the value occurs. */\n  count?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * 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.\n   * 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.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entityAsJson?: string;\n  /**\n   * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n   * @internal\n   */\n  triggeredByUndelete?: boolean | null;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntityAsJson?: string;\n  /**\n   * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n   * wont populate it / have any reference to it in the API.\n   * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n   * the developer should send only the new (current) entity.\n   * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n   * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n   * @internal\n   * @deprecated\n   */\n  previousEntityAsJson?: string | null;\n  /**\n   * Map of fully qualified field paths to their previous values for fields that changed.\n   * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n   * @internal\n   */\n  modifiedFields?: Record<string, any>;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n  /**\n   * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n   * @internal\n   */\n  movedToTrash?: boolean | null;\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface UpdateFunctionExternalIdsRequest {\n  /**\n   * ID of the function to update.\n   * @format GUID\n   */\n  functionId?: string;\n  /**\n   * External ids to set.\n   * @format GUID\n   * @maxSize 100\n   */\n  externalIds?: string[];\n}\n\nexport interface UpdateFunctionExternalIdsResponse {\n  /** The updated function. */\n  function?: _Function;\n}\n\nexport interface BulkUpdateFunctionTagsRequest {\n  /**\n   * IDs of functions to update tags for.\n   * @minSize 1\n   * @maxSize 100\n   * @format GUID\n   */\n  ids: string[];\n  /** List of tags to assign. */\n  assignTags: Tags;\n  /** List of tags to unassign. */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdateFunctionTagsResponse {\n  /**\n   * Results.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdateFunctionTagsResult[];\n  /** Bulk action metadata. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n  /**\n   * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.\n   * @format GUID\n   */\n  id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdateFunctionTagsResult {\n  /** Item metadata. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface BulkUpdateFunctionTagsByFilterRequest {\n  /** Filter. */\n  filter: Record<string, any> | null;\n  /** List of tags to assign. */\n  assignTags: Tags;\n  /** List of tags to unassign. */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdateFunctionTagsByFilterResponse {\n  /**\n   * Job ID for the bulk update operation.\n   * @format GUID\n   */\n  jobId?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateFunctionTagsApplicationErrors = {\n  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateFunctionTagsByFilterApplicationErrors = {\n  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixFunctionsV1Function from './functions-v1-function-functions.http.js';\nimport * as ambassadorWixFunctionsV1FunctionTypes from './functions-v1-function-functions.types.js';\nimport * as ambassadorWixFunctionsV1FunctionUniversalTypes from './functions-v1-function-functions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function createFunction(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixFunctionsV1FunctionUniversalTypes.CreateFunctionRequest,\n  ambassadorWixFunctionsV1FunctionTypes.CreateFunctionRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.CreateFunctionResponse,\n  ambassadorWixFunctionsV1FunctionTypes.CreateFunctionResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.createFunction(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/functions',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getFunction(): __PublicMethodMetaInfo<\n  'GET',\n  { functionId: string },\n  ambassadorWixFunctionsV1FunctionUniversalTypes.GetFunctionRequest,\n  ambassadorWixFunctionsV1FunctionTypes.GetFunctionRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.GetFunctionResponse,\n  ambassadorWixFunctionsV1FunctionTypes.GetFunctionResponse\n> {\n  const payload = { functionId: ':functionId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.getFunction(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/functions/{functionId}',\n    pathParams: { functionId: 'functionId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function updateFunction(): __PublicMethodMetaInfo<\n  'PATCH',\n  { functionId: string },\n  ambassadorWixFunctionsV1FunctionUniversalTypes.UpdateFunctionRequest,\n  ambassadorWixFunctionsV1FunctionTypes.UpdateFunctionRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.UpdateFunctionResponse,\n  ambassadorWixFunctionsV1FunctionTypes.UpdateFunctionResponse\n> {\n  const payload = { function: { id: ':functionId' } } as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.updateFunction(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v1/functions/{function.id}',\n    pathParams: { functionId: 'functionId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function deleteFunction(): __PublicMethodMetaInfo<\n  'DELETE',\n  { functionId: string },\n  ambassadorWixFunctionsV1FunctionUniversalTypes.DeleteFunctionRequest,\n  ambassadorWixFunctionsV1FunctionTypes.DeleteFunctionRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.DeleteFunctionResponse,\n  ambassadorWixFunctionsV1FunctionTypes.DeleteFunctionResponse\n> {\n  const payload = { functionId: ':functionId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.deleteFunction(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'DELETE',\n    path: '/v1/functions/{functionId}',\n    pathParams: { functionId: 'functionId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function queryFunctions(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixFunctionsV1FunctionUniversalTypes.QueryFunctionsRequest,\n  ambassadorWixFunctionsV1FunctionTypes.QueryFunctionsRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.QueryFunctionsResponse,\n  ambassadorWixFunctionsV1FunctionTypes.QueryFunctionsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.queryFunctions(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/functions/query',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function bulkUpdateFunctionTags(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixFunctionsV1FunctionUniversalTypes.BulkUpdateFunctionTagsRequest,\n  ambassadorWixFunctionsV1FunctionTypes.BulkUpdateFunctionTagsRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.BulkUpdateFunctionTagsResponse,\n  ambassadorWixFunctionsV1FunctionTypes.BulkUpdateFunctionTagsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.bulkUpdateFunctionTags(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/bulk/functions/bulk-update-tags',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function bulkUpdateFunctionTagsByFilter(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixFunctionsV1FunctionUniversalTypes.BulkUpdateFunctionTagsByFilterRequest,\n  ambassadorWixFunctionsV1FunctionTypes.BulkUpdateFunctionTagsByFilterRequest,\n  ambassadorWixFunctionsV1FunctionUniversalTypes.BulkUpdateFunctionTagsByFilterResponse,\n  ambassadorWixFunctionsV1FunctionTypes.BulkUpdateFunctionTagsByFilterResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixFunctionsV1Function.bulkUpdateFunctionTagsByFilter(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/bulk/functions/update-tags-by-filter',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  _Function as _FunctionOriginal,\n  ActivationStatus as ActivationStatusOriginal,\n  ActivationStatusWithLiterals as ActivationStatusWithLiteralsOriginal,\n  Tags as TagsOriginal,\n  TagList as TagListOriginal,\n  DraftDiscarded as DraftDiscardedOriginal,\n  TagsModified as TagsModifiedOriginal,\n  CreateFunctionRequest as CreateFunctionRequestOriginal,\n  CreateFunctionResponse as CreateFunctionResponseOriginal,\n  GetFunctionRequest as GetFunctionRequestOriginal,\n  GetFunctionResponse as GetFunctionResponseOriginal,\n  UpdateFunctionRequest as UpdateFunctionRequestOriginal,\n  UpdateFunctionResponse as UpdateFunctionResponseOriginal,\n  DeleteFunctionRequest as DeleteFunctionRequestOriginal,\n  DeleteFunctionResponse as DeleteFunctionResponseOriginal,\n  QueryFunctionsRequest as QueryFunctionsRequestOriginal,\n  CursorQuery as CursorQueryOriginal,\n  CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryFunctionsResponse as QueryFunctionsResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  ListValuesByFieldRequest as ListValuesByFieldRequestOriginal,\n  ListValuesByFieldResponse as ListValuesByFieldResponseOriginal,\n  FieldAndCount as FieldAndCountOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  Empty as EmptyOriginal,\n  UpdateFunctionExternalIdsRequest as UpdateFunctionExternalIdsRequestOriginal,\n  UpdateFunctionExternalIdsResponse as UpdateFunctionExternalIdsResponseOriginal,\n  BulkUpdateFunctionTagsRequest as BulkUpdateFunctionTagsRequestOriginal,\n  BulkUpdateFunctionTagsResponse as BulkUpdateFunctionTagsResponseOriginal,\n  ItemMetadata as ItemMetadataOriginal,\n  ApplicationError as ApplicationErrorOriginal,\n  BulkUpdateFunctionTagsResult as BulkUpdateFunctionTagsResultOriginal,\n  BulkActionMetadata as BulkActionMetadataOriginal,\n  BulkUpdateFunctionTagsByFilterRequest as BulkUpdateFunctionTagsByFilterRequestOriginal,\n  BulkUpdateFunctionTagsByFilterResponse as BulkUpdateFunctionTagsByFilterResponseOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  BulkUpdateFunctionTagsApplicationErrors as BulkUpdateFunctionTagsApplicationErrorsOriginal,\n  BulkUpdateFunctionTagsByFilterApplicationErrors as BulkUpdateFunctionTagsByFilterApplicationErrorsOriginal,\n} from './functions-v1-function-functions.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAK3B,SAAS,qCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;A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,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,uBAAuB,OAAO;AAEjE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,+BAA+B,OAAO;AAEzE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","ActivationStatus","SortOrder","WebhookIdentityType","createFunction","getFunction","updateFunction","deleteFunction","queryFunctions","bulkUpdateFunctionTags","bulkUpdateFunctionTagsByFilter"]}