{"version":3,"sources":["../../src/automations-storage-v1-storage-item-storage-item.http.ts","../../src/automations-storage-v1-storage-item-storage-item.types.ts","../../src/automations-storage-v1-storage-item-storage-item.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 { 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';\n\nconst TRANSFORM_PATHS_0 = [\n  { path: 'storageItem.createdDate' },\n  { path: 'storageItem.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'storageItems.createdDate' },\n  { path: 'storageItems.updatedDate' },\n];\n\nfunction resolveWixAutomationsStorageV1StorageServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/storage-service',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/storage-service',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/storage-service',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/storage-service',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/storage-service',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_storage-item';\n\n/**\n * Creates a storage item.\n *\n * Each storage item has a unique key and a value of a specific data type. Once created, you can't change the value type.\n *\n * > **Note**: You can currently create up to 100 storage items.\n */\nexport function createStorageItem(payload: object): RequestOptionsFactory<any> {\n  function __createStorageItem({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'POST' as any,\n      methodFqn: 'wix.automations.storage.v1.StorageService.CreateStorageItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/storage-items',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createStorageItem;\n}\n\n/** Retrieves the specified storage item. */\nexport function getStorageItem(payload: object): RequestOptionsFactory<any> {\n  function __getStorageItem({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'GET' as any,\n      methodFqn: 'wix.automations.storage.v1.StorageService.GetStorageItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/storage-items/{key}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getStorageItem;\n}\n\n/**\n * Updates the value of an existing storage item.\n *\n * > **Note**: To update items of type `COUNTER`, call [Update Storage Item Counter By](https://dev.wix.com/docs/api-reference/business-management/automations/storage-item/update-storage-item-counter-by).\n */\nexport function updateStorageItemValue(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateStorageItemValue({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.automations.storage.v1.StorageService.UpdateStorageItemValue',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/storage-items/{key}/update-value',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateStorageItemValue;\n}\n\n/**\n * Atomically increments or decrements a storage item of type `COUNTER` by the specified value.\n *\n * Learn more about [atomic updates](https://dev.wix.com/docs/api-reference/business-management/automations/storage-item/introduction#atomic-updates).\n *\n * > **Note**: To update other types of items, call [Update Storage Item Value](https://dev.wix.com/docs/api-reference/business-management/automations/storage-item/update-storage-item-value).\n */\nexport function updateStorageItemCounterBy(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateStorageItemCounterBy({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.automations.storage.v1.StorageService.UpdateStorageItemCounterBy',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/storage-items/{key}/update-counter-by',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateStorageItemCounterBy;\n}\n\n/**\n * Retrieves a list of storage items based on the filtering, sorting, and paging preferences you provide.\n *\n * Learn more about [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n */\nexport function queryStorageItems(payload: object): RequestOptionsFactory<any> {\n  function __queryStorageItems({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'GET' as any,\n      methodFqn: 'wix.automations.storage.v1.StorageService.QueryStorageItems',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/storage-items/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: TRANSFORM_PATHS_1,\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveWixAutomationsStorageV1StorageServiceUrl({\n            protoPath: '/v1/storage-items/query',\n            data: payload,\n            host,\n          }),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __queryStorageItems;\n}\n\n/**\n * Updates tags for the specified storage items.\n *\n * Learn more about [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction).\n *\n * > **Note**: A tag that appears in both `assignTags` and `unassignTags` is assigned.\n */\nexport function bulkUpdateStorageItemTags(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateStorageItemTags({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.storage.v1.StorageService.BulkUpdateStorageItemTags',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/bulk/storage-items/update-tags',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateStorageItemTags;\n}\n\n/**\n * Updates tags for storage items that match the specified filter criteria. Specifying an empty filter updates tags for all storage items.\n *\n * Learn more about [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction).\n *\n * > **Note**: A tag that appears in both `assignTags` and `unassignTags` is assigned.\n */\nexport function bulkUpdateStorageItemTagsByFilter(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateStorageItemTagsByFilter({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.storage.v1.storage_item',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.storage.v1.StorageService.BulkUpdateStorageItemTagsByFilter',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsStorageV1StorageServiceUrl({\n        protoPath: '/v1/bulk/storage-items/update-tags-by-filter',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateStorageItemTagsByFilter;\n}\n","/** A storage item is a global data container that you can use across multiple automations to store different types of data in key-value pairs. This include data such as Wix user preferences, counters, and configuration settings. */\nexport interface StorageItem extends StorageItemValueOneOf {\n  /** When the item type is `STRING`, the string value. */\n  stringValue?: StringValue;\n  /** When the item type is `BOOLEAN`, the boolean value. */\n  booleanValue?: BooleanValue;\n  /** When the item type is `NUMBER`, the numeric value. */\n  numberValue?: NumberValue;\n  /**\n   * When the item type is `COUNTER`, the counter value.\n   *\n   * > **Note**: Counters are numeric values used for running totals. They support [atomic increment and decrement operations](https://dev.wix.com/docs/api-reference/business-management/automations/storage-item/introduction#atomic-updates).\n   */\n  counterValue?: CounterValue;\n  /**\n   * Storage item ID.\n   * @format GUID\n   * @readonly\n   * @immutable\n   */\n  id?: string | null;\n  /**\n   * Unique storage item key. The key can only contain letters, numbers, and underscores.\n   *\n   * Once you create the item, you can't update its key.\n   * @minLength 1\n   * @maxLength 63\n   * @immutable\n   */\n  key?: string;\n  /**\n   * Storage item display name. The display name appears when you [add or edit steps to your automation](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-3-add-steps-to-you-automation).\n   * @minLength 1\n   * @maxLength 63\n   */\n  displayName?: string;\n  /**\n   * Storage item description.\n   * @maxLength 200\n   */\n  description?: string | null;\n  /**\n   * Data type of the storage item's value. Once created, you can't change the value's type.\n   * @immutable\n   */\n  type?: TypeWithLiterals;\n  /**\n   * When the storage item was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * When the storage item was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * [Tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) assigned to the storage item.\n   *\n   * You can use public and private tags for categorization and filtering.\n   */\n  tags?: Tags;\n  /** Extended fields. */\n  extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface StorageItemValueOneOf {\n  /** When the item type is `STRING`, the string value. */\n  stringValue?: StringValue;\n  /** When the item type is `BOOLEAN`, the boolean value. */\n  booleanValue?: BooleanValue;\n  /** When the item type is `NUMBER`, the numeric value. */\n  numberValue?: NumberValue;\n  /**\n   * When the item type is `COUNTER`, the counter value.\n   *\n   * > **Note**: Counters are numeric values used for running totals. They support [atomic increment and decrement operations](https://dev.wix.com/docs/api-reference/business-management/automations/storage-item/introduction#atomic-updates).\n   */\n  counterValue?: CounterValue;\n}\n\nexport enum Format {\n  /** Plain text. */\n  PLAIN_TEXT = 'PLAIN_TEXT',\n  /** [Universal Resource Identifier (URI)](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier). */\n  URI = 'URI',\n  /** Email. */\n  EMAIL = 'EMAIL',\n  /** Datetime string in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601). */\n  DATETIME = 'DATETIME',\n}\n\n/** @enumType */\nexport type FormatWithLiterals =\n  | Format\n  | 'PLAIN_TEXT'\n  | 'URI'\n  | 'EMAIL'\n  | 'DATETIME';\n\nexport interface StringValue {\n  /**\n   * String value.\n   * @maxLength 4096\n   */\n  value?: string;\n  /** String format. */\n  format?: FormatWithLiterals;\n}\n\nexport interface BooleanValue {\n  /** Boolean value. */\n  value?: boolean;\n}\n\nexport interface NumberValue {\n  /**\n   * Numeric decimal value, represented as a string.\n   * @decimalValue options { lte:9999999999999999.99, gte:-9999999999999999.99, maxScale:16 }\n   */\n  value?: string;\n}\n\nexport interface CounterValue {\n  /**\n   * Counter decimal value, represented as a string.\n   * @decimalValue options { lte:9999999999999999.99, gte:-9999999999999999.99, maxScale:16 }\n   */\n  value?: string;\n}\n\nexport enum Type {\n  /** String. */\n  STRING = 'STRING',\n  /** Boolean. */\n  BOOLEAN = 'BOOLEAN',\n  /** Number. */\n  NUMBER = 'NUMBER',\n  /**\n   * Counter.\n   *\n   * > **Note**: Counters are numeric values used for running totals. They support [atomic increment and decrement operations](https://dev.wix.com/docs/api-reference/business-management/automations/storage-item/introduction#atomic-updates).\n   */\n  COUNTER = 'COUNTER',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n  | Type\n  | 'STRING'\n  | 'BOOLEAN'\n  | 'NUMBER'\n  | 'COUNTER';\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  /**\n   * List of private tags.\n   *\n   * Private tags require additional permissions to access. They are usually hidden from site members and visitors.\n   */\n  privateTags?: TagList;\n  /**\n   * List of public tags.\n   *\n   * Public tags are visible to anyone with access to the main storage item, including site members and visitors.\n   */\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 ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface StorageItemValueUpdated {\n  /** Updated storage item. */\n  updatedStorageItem?: StorageItem;\n}\n\nexport interface StorageItemCounterUpdated {\n  /** Storage item with the updated counter. */\n  updatedStorageItem?: StorageItem;\n}\n\nexport interface TagsModified {\n  /** Storage item whose tags were modified. */\n  storageItem?: StorageItem;\n  /** Tags assigned. */\n  assignedTags?: Tags;\n  /** Tags removed. */\n  unassignedTags?: Tags;\n}\n\nexport interface CreateStorageItemRequest {\n  /** Storage item to create. */\n  storageItem: StorageItem;\n}\n\nexport interface CreateStorageItemResponse {\n  /** Created storage item. */\n  storageItem?: StorageItem;\n}\n\nexport interface GetStorageItemRequest {\n  /**\n   * Key of the storage item to retrieve.\n   * @minLength 1\n   * @maxLength 63\n   */\n  key: string;\n  /**\n   * Whether to retrieve the item from the primary instance. This decreases performance but ensures the item retrieved is up to date even immediately after an update.\n   *\n   * Default: `false`.\n   */\n  consistentRead?: boolean;\n}\n\nexport interface GetStorageItemResponse {\n  /** Retrieved storage item. */\n  storageItem?: StorageItem;\n}\n\nexport interface UpdateStorageItemValueRequest\n  extends UpdateStorageItemValueRequestValueOneOf {\n  /**\n   * String value.\n   * @maxLength 4096\n   */\n  stringValue?: string;\n  /** Boolean value. */\n  booleanValue?: boolean;\n  /**\n   * Number value represented as a string.\n   * @decimalValue options { lte:9999999999999999.99, gte:-9999999999999999.99, maxScale:2 }\n   */\n  numberValue?: string;\n  /**\n   * Key of the storage item to update.\n   * @minLength 1\n   * @maxLength 63\n   */\n  key: string;\n}\n\n/** @oneof */\nexport interface UpdateStorageItemValueRequestValueOneOf {\n  /**\n   * String value.\n   * @maxLength 4096\n   */\n  stringValue?: string;\n  /** Boolean value. */\n  booleanValue?: boolean;\n  /**\n   * Number value represented as a string.\n   * @decimalValue options { lte:9999999999999999.99, gte:-9999999999999999.99, maxScale:2 }\n   */\n  numberValue?: string;\n}\n\nexport interface UpdateStorageItemValueResponse {\n  /** Updated storage item. */\n  storageItem?: StorageItem;\n}\n\nexport interface UpdateStorageItemCounterByRequest {\n  /**\n   * Key of the storage item to update.\n   * @minLength 1\n   * @maxLength 63\n   */\n  key: string;\n  /**\n   * Value to add to the existing counter, represented as a string. To decrement the counter, use a negative value.\n   * @decimalValue options { lte:9999999999999999.99, gte:-9999999999999999.99, maxScale:2 }\n   */\n  value: string;\n}\n\nexport interface UpdateStorageItemCounterByResponse {\n  /** Updated storage item. */\n  storageItem?: StorageItem;\n}\n\nexport interface QueryStorageItemsRequest {\n  /**\n   * Query preferences.\n   *\n   * Learn more about [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n   */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\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 QueryStorageItemsResponse {\n  /** List of storage items that match the query criteria. */\n  storageItems?: StorageItem[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in current page. */\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 BulkUpdateStorageItemTagsRequest {\n  /**\n   * IDs of storage items to update.\n   * @minSize 1\n   * @maxSize 100\n   * @format GUID\n   */\n  storageItemIds: string[];\n  /** Tags to assign to the specified storage items. */\n  assignTags?: Tags;\n  /** Tags to remove from the specified storage items. */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdateStorageItemTagsResponse {\n  /**\n   * Update results.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdateStorageItemTagsResult[];\n  /** Bulk operation 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 BulkUpdateStorageItemTagsResult {\n  /** Update result 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 BulkUpdateStorageItemTagsByFilterRequest {\n  /** Filter criteria to select storage items for tag updates. Specifying an empty filter updates tags for all storage items. */\n  filter: Record<string, any> | null;\n  /** Tags to assign to the storage items. */\n  assignTags?: Tags;\n  /** Tags to remove from the storage items. */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdateStorageItemTagsByFilterResponse {\n  /**\n   * Job ID for tracking the progress of the bulk operation.\n   * @format GUID\n   */\n  jobId?: string;\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 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 CreateStorageItemApplicationErrors =\n  | {\n      code?: 'INVALID_STORAGE_ITEM_KEY_EXCEPTION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'TOO_MANY_STORAGE_ITEMS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'STORAGE_ITEM_VALUE_VALIDATION_EXCEPTION';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type UpdateStorageItemValueApplicationErrors =\n  | {\n      code?: 'INVALID_STORAGE_ITEM_TYPE_EXCEPTION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'VALUE_TYPE_MISMATCH_EXCEPTION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'STORAGE_ITEM_VALUE_VALIDATION_EXCEPTION';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type UpdateStorageItemCounterByApplicationErrors =\n  | {\n      code?: 'INVALID_STORAGE_ITEM_TYPE_EXCEPTION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_NUMBER_VALUE';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type BulkUpdateStorageItemTagsApplicationErrors = {\n  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateStorageItemTagsByFilterApplicationErrors = {\n  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixAutomationsStorageV1StorageItem from './automations-storage-v1-storage-item-storage-item.http.js';\nimport * as ambassadorWixAutomationsStorageV1StorageItemTypes from './automations-storage-v1-storage-item-storage-item.types.js';\nimport * as ambassadorWixAutomationsStorageV1StorageItemUniversalTypes from './automations-storage-v1-storage-item-storage-item.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 createStorageItem(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.CreateStorageItemRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.CreateStorageItemRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.CreateStorageItemResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.CreateStorageItemResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.createStorageItem(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/storage-items',\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 getStorageItem(): __PublicMethodMetaInfo<\n  'GET',\n  { key: string },\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.GetStorageItemRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.GetStorageItemRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.GetStorageItemResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.GetStorageItemResponse\n> {\n  const payload = { key: ':key' } as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.getStorageItem(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/storage-items/{key}',\n    pathParams: { key: 'key' },\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 updateStorageItemValue(): __PublicMethodMetaInfo<\n  'PATCH',\n  { key: string },\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.UpdateStorageItemValueRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.UpdateStorageItemValueRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.UpdateStorageItemValueResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.UpdateStorageItemValueResponse\n> {\n  const payload = { key: ':key' } as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.updateStorageItemValue(\n      payload\n    );\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/storage-items/{key}/update-value',\n    pathParams: { key: 'key' },\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 updateStorageItemCounterBy(): __PublicMethodMetaInfo<\n  'PATCH',\n  { key: string },\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.UpdateStorageItemCounterByRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.UpdateStorageItemCounterByRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.UpdateStorageItemCounterByResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.UpdateStorageItemCounterByResponse\n> {\n  const payload = { key: ':key' } as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.updateStorageItemCounterBy(\n      payload\n    );\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/storage-items/{key}/update-counter-by',\n    pathParams: { key: 'key' },\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 queryStorageItems(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.QueryStorageItemsRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.QueryStorageItemsRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.QueryStorageItemsResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.QueryStorageItemsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.queryStorageItems(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/storage-items/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 bulkUpdateStorageItemTags(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.BulkUpdateStorageItemTagsRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.BulkUpdateStorageItemTagsRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.BulkUpdateStorageItemTagsResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.BulkUpdateStorageItemTagsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.bulkUpdateStorageItemTags(\n      payload\n    );\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/storage-items/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 bulkUpdateStorageItemTagsByFilter(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.BulkUpdateStorageItemTagsByFilterRequest,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.BulkUpdateStorageItemTagsByFilterRequest,\n  ambassadorWixAutomationsStorageV1StorageItemUniversalTypes.BulkUpdateStorageItemTagsByFilterResponse,\n  ambassadorWixAutomationsStorageV1StorageItemTypes.BulkUpdateStorageItemTagsByFilterResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsStorageV1StorageItem.bulkUpdateStorageItemTagsByFilter(\n      payload\n    );\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/storage-items/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  StorageItem as StorageItemOriginal,\n  StorageItemValueOneOf as StorageItemValueOneOfOriginal,\n  Format as FormatOriginal,\n  FormatWithLiterals as FormatWithLiteralsOriginal,\n  StringValue as StringValueOriginal,\n  BooleanValue as BooleanValueOriginal,\n  NumberValue as NumberValueOriginal,\n  CounterValue as CounterValueOriginal,\n  Type as TypeOriginal,\n  TypeWithLiterals as TypeWithLiteralsOriginal,\n  Tags as TagsOriginal,\n  TagList as TagListOriginal,\n  ExtendedFields as ExtendedFieldsOriginal,\n  StorageItemValueUpdated as StorageItemValueUpdatedOriginal,\n  StorageItemCounterUpdated as StorageItemCounterUpdatedOriginal,\n  TagsModified as TagsModifiedOriginal,\n  CreateStorageItemRequest as CreateStorageItemRequestOriginal,\n  CreateStorageItemResponse as CreateStorageItemResponseOriginal,\n  GetStorageItemRequest as GetStorageItemRequestOriginal,\n  GetStorageItemResponse as GetStorageItemResponseOriginal,\n  UpdateStorageItemValueRequest as UpdateStorageItemValueRequestOriginal,\n  UpdateStorageItemValueRequestValueOneOf as UpdateStorageItemValueRequestValueOneOfOriginal,\n  UpdateStorageItemValueResponse as UpdateStorageItemValueResponseOriginal,\n  UpdateStorageItemCounterByRequest as UpdateStorageItemCounterByRequestOriginal,\n  UpdateStorageItemCounterByResponse as UpdateStorageItemCounterByResponseOriginal,\n  QueryStorageItemsRequest as QueryStorageItemsRequestOriginal,\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  QueryStorageItemsResponse as QueryStorageItemsResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  BulkUpdateStorageItemTagsRequest as BulkUpdateStorageItemTagsRequestOriginal,\n  BulkUpdateStorageItemTagsResponse as BulkUpdateStorageItemTagsResponseOriginal,\n  ItemMetadata as ItemMetadataOriginal,\n  ApplicationError as ApplicationErrorOriginal,\n  BulkUpdateStorageItemTagsResult as BulkUpdateStorageItemTagsResultOriginal,\n  BulkActionMetadata as BulkActionMetadataOriginal,\n  BulkUpdateStorageItemTagsByFilterRequest as BulkUpdateStorageItemTagsByFilterRequestOriginal,\n  BulkUpdateStorageItemTagsByFilterResponse as BulkUpdateStorageItemTagsByFilterResponseOriginal,\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  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  CreateStorageItemApplicationErrors as CreateStorageItemApplicationErrorsOriginal,\n  UpdateStorageItemValueApplicationErrors as UpdateStorageItemValueApplicationErrorsOriginal,\n  UpdateStorageItemCounterByApplicationErrors as UpdateStorageItemCounterByApplicationErrorsOriginal,\n  BulkUpdateStorageItemTagsApplicationErrors as BulkUpdateStorageItemTagsApplicationErrorsOriginal,\n  BulkUpdateStorageItemTagsByFilterApplicationErrors as BulkUpdateStorageItemTagsByFilterApplicationErrorsOriginal,\n} from './automations-storage-v1-storage-item-storage-item.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,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EAC1B;AACF;","names":["payload","Format","Type","SortOrder","WebhookIdentityType","createStorageItem","getStorageItem","updateStorageItemValue","updateStorageItemCounterBy","queryStorageItems","bulkUpdateStorageItemTags","bulkUpdateStorageItemTagsByFilter"]}