"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// schemas.ts
var schemas_exports = {};
__export(schemas_exports, {
  CreateDataExtensionSchemaRequest: () => CreateDataExtensionSchemaRequest,
  CreateDataExtensionSchemaResponse: () => CreateDataExtensionSchemaResponse,
  DeleteByWhiteListedMetaSiteRequest: () => DeleteByWhiteListedMetaSiteRequest,
  DeleteByWhiteListedMetaSiteResponse: () => DeleteByWhiteListedMetaSiteResponse,
  DeleteUserDefinedFieldsRequest: () => DeleteUserDefinedFieldsRequest,
  DeleteUserDefinedFieldsResponse: () => DeleteUserDefinedFieldsResponse,
  ListDataExtensionSchemasRequest: () => ListDataExtensionSchemasRequest,
  ListDataExtensionSchemasResponse: () => ListDataExtensionSchemasResponse,
  UpdateDataExtensionSchemaRequest: () => UpdateDataExtensionSchemaRequest,
  UpdateDataExtensionSchemaResponse: () => UpdateDataExtensionSchemaResponse
});
module.exports = __toCommonJS(schemas_exports);

// src/data-extensions-v1-data-extension-schema-schemas.schemas.ts
var z = __toESM(require("zod"));
var CreateDataExtensionSchemaRequest = z.object({
  dataExtensionSchema: z.object({
    _id: z.string().describe("Schema ID.").regex(
      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
      "Must be a valid GUID"
    ).optional().nullable(),
    fqdn: z.string().describe(
      "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
    ).max(255),
    namespace: z.string().describe(
      "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
    ).max(164),
    jsonSchema: z.record(z.string(), z.any()).describe(
      'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
    ),
    _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
    _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
    revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
      "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
    ).optional().nullable(),
    maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
    currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
  }).describe("Schema to create.")
});
var CreateDataExtensionSchemaResponse = z.object({
  _id: z.string().describe("Schema ID.").regex(
    /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
    "Must be a valid GUID"
  ).optional().nullable(),
  fqdn: z.string().describe(
    "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
  ).max(255).optional().nullable(),
  namespace: z.string().describe(
    "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
  ).max(164).optional().nullable(),
  jsonSchema: z.record(z.string(), z.any()).describe(
    'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
  ).optional().nullable(),
  _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
  _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
    "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
  ).optional().nullable(),
  maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
  currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
});
var UpdateDataExtensionSchemaRequest = z.object({
  dataExtensionSchema: z.object({
    _id: z.string().describe("Schema ID.").regex(
      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
      "Must be a valid GUID"
    ),
    fqdn: z.string().describe(
      "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
    ).max(255).optional().nullable(),
    namespace: z.string().describe(
      "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
    ).max(164).optional().nullable(),
    jsonSchema: z.record(z.string(), z.any()).describe(
      'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
    ),
    _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
    _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
    revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
      "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
    ),
    maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
    currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
  }).describe("Schema to update.")
});
var UpdateDataExtensionSchemaResponse = z.object({
  dataExtensionSchema: z.object({
    _id: z.string().describe("Schema ID.").regex(
      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
      "Must be a valid GUID"
    ).optional().nullable(),
    fqdn: z.string().describe(
      "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
    ).max(255).optional().nullable(),
    namespace: z.string().describe(
      "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
    ).max(164).optional().nullable(),
    jsonSchema: z.record(z.string(), z.any()).describe(
      'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
    ).optional().nullable(),
    _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
    _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
    revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
      "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
    ).optional().nullable(),
    maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
    currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
  }).describe("Updated schema.").optional()
});
var ListDataExtensionSchemasRequest = z.object({
  fqdn: z.string().describe(
    "[Fully qualified domain name](https://dev.wix.com/docs/rest/articles/getting-started/fqdns)."
  ).max(255),
  options: z.object({
    namespaces: z.array(z.string()).max(100).optional(),
    fields: z.array(z.enum(["UNKNOWN_REQUESTED_FIELD", "ARCHIVED"])).max(5).optional(),
    extensionPoints: z.array(z.string()).max(20).optional()
  }).optional()
});
var ListDataExtensionSchemasResponse = z.object({
  dataExtensionSchemas: z.array(
    z.object({
      _id: z.string().describe("Schema ID.").regex(
        /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
        "Must be a valid GUID"
      ).optional().nullable(),
      fqdn: z.string().describe(
        "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
      ).max(255).optional().nullable(),
      namespace: z.string().describe(
        "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
      ).max(164).optional().nullable(),
      jsonSchema: z.record(z.string(), z.any()).describe(
        'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
      ).optional().nullable(),
      _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
      _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
      revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
        "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
      ).optional().nullable(),
      maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
      currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
    })
  ).optional()
});
var DeleteByWhiteListedMetaSiteRequest = z.object({
  metaSiteId: z.string().describe("Meta site id").regex(
    /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
    "Must be a valid GUID"
  )
});
var DeleteByWhiteListedMetaSiteResponse = z.object({
  hasMore: z.boolean().describe("has more").optional()
});
var DeleteUserDefinedFieldsRequest = z.object({
  dataExtensionSchemaId: z.string().describe("Schema ID.").regex(
    /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
    "Must be a valid GUID"
  ),
  options: z.object({ fieldsToDelete: z.array(z.string()).min(1).max(10) })
});
var DeleteUserDefinedFieldsResponse = z.object({
  dataExtensionSchema: z.object({
    _id: z.string().describe("Schema ID.").regex(
      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
      "Must be a valid GUID"
    ).optional().nullable(),
    fqdn: z.string().describe(
      "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
    ).max(255).optional().nullable(),
    namespace: z.string().describe(
      "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
    ).max(164).optional().nullable(),
    jsonSchema: z.record(z.string(), z.any()).describe(
      'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
    ).optional().nullable(),
    _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
    _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
    revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
      "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
    ).optional().nullable(),
    maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
    currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
  }).describe("Updated schema.").optional()
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CreateDataExtensionSchemaRequest,
  CreateDataExtensionSchemaResponse,
  DeleteByWhiteListedMetaSiteRequest,
  DeleteByWhiteListedMetaSiteResponse,
  DeleteUserDefinedFieldsRequest,
  DeleteUserDefinedFieldsResponse,
  ListDataExtensionSchemasRequest,
  ListDataExtensionSchemasResponse,
  UpdateDataExtensionSchemaRequest,
  UpdateDataExtensionSchemaResponse
});
//# sourceMappingURL=schemas.js.map