{"version":3,"sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetAppInstanceRequest = z.object({});\nexport const GetAppInstanceResponse = z.object({\n  instance: z\n    .object({\n      instanceId: z\n        .string()\n        .describe(\n          \"App instance ID. Useful to keep track of the\\ndata that's associated with the specific instance of your app\\ninstalled on a Wix site.\"\n        )\n        .optional(),\n      appName: z\n        .string()\n        .describe('App name, as you entered it in the App Dashboard.')\n        .optional(),\n      appVersion: z\n        .string()\n        .describe(\"Version of your app that's installed on the Wix site.\")\n        .optional()\n        .nullable(),\n      isFree: z\n        .boolean()\n        .describe(\n          'Whether the Wix user has installed a free or paid version of your app\\non their site.'\n        )\n        .optional(),\n      billing: z\n        .object({\n          packageName: z\n            .string()\n            .describe('Name of the package that the site owner has paid for.')\n            .optional(),\n          billingCycle: z\n            .enum([\n              'NO_CYCLE',\n              'MONTHLY',\n              'YEARLY',\n              'ONE_TIME',\n              'TWO_YEARS',\n              'THREE_YEARS',\n              'FOUR_YEARS',\n              'FIVE_YEARS',\n            ])\n            .describe(\n              'Interval of the billing cycle. `ONE_TIME` indicates that the Wix user has\\nmade a single upfront payment without any automatic subscription renewal.\\nThis is primarily for usage credits (for example, 5 SMS) but may occasionally apply\\nto a one-time setup for the app.'\n            )\n            .optional(),\n          timeStamp: z\n            .string()\n            .describe(\n              \"Date and time the Wix user purchased the app's paid plan or began their free trial. In\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.\"\n            )\n            .optional(),\n          expirationDate: z\n            .string()\n            .describe(\n              \"Date and time the app's current billing cycle ends in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and\\nmulti-yearly plans.\"\n            )\n            .optional()\n            .nullable(),\n          autoRenewing: z\n            .boolean()\n            .describe(\n              \"Whether the app's subscription automatically renews at the end of the\\ncurrent billing cycle.\"\n            )\n            .optional()\n            .nullable(),\n          invoiceId: z\n            .string()\n            .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n            .describe('ID of the invoice for the current billing cycle.')\n            .optional()\n            .nullable(),\n          source: z\n            .string()\n            .describe(\n              \"Information about any discounts applied to the app instance's current billing cycle.\\nIf the site owners applied a developer coupon or Wix Voucher\\nwhen installing the paid version of your app, this field holds the coupon's\\nname or `“Wix discount coupon”`. Site owners may receive a Wix Voucher when\\nupgrading their Wix subscription. If there is no discount for the\\ncurrent billing cycle, the field is an empty string.\"\n            )\n            .optional()\n            .nullable(),\n          freeTrialInfo: z\n            .object({\n              status: z\n                .enum(['IN_PROGRESS', 'ENDED', 'NOT_AVAILABLE'])\n                .describe('Current free trial status.')\n                .optional(),\n              endDate: z\n                .date()\n                .describe(\n                  'When the free trial has ended. Populated only once the free trial is over.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe('Information about the free trial applied, if relevant.')\n            .optional(),\n        })\n        .describe(\n          'Billing information for the app instance. Available only in case\\n`{\"isFree\": false}`.'\n        )\n        .optional(),\n      permissions: z.array(z.string()).optional(),\n      availablePlans: z\n        .array(\n          z.object({\n            packageName: z\n              .string()\n              .describe('Package name of the available plan.')\n              .optional(),\n            source: z\n              .string()\n              .describe(\n                'Source of the available plan. Can be a bundle or 3rd-party app.'\n              )\n              .optional(),\n          })\n        )\n        .optional(),\n      originInstanceId: z\n        .string()\n        .describe(\n          'ID of the Wix site from which the instance of your app has been cloned.\\n\\nAll visual settings of the Wix site and app data are duplicated during the\\ncloning process. Wix also notifies you in case there is any additional\\nexternal functionality for the original site.'\n        )\n        .optional()\n        .nullable(),\n      isOriginSiteTemplate: z\n        .boolean()\n        .describe(\n          '__Deprecated__. This parameter will be removed on March 30, 2023. Use\\n`copiedFromTemplate` instead.'\n        )\n        .optional(),\n      copiedFromTemplate: z\n        .boolean()\n        .describe(\n          'Whether this app instance was created when another Wix site was cloned.'\n        )\n        .optional(),\n      freeTrialAvailable: z\n        .boolean()\n        .describe(\n          \"Whether this app instance includes a free trial that hasn't started yet.\"\n        )\n        .optional(),\n    })\n    .describe('Retrieved app instance.')\n    .optional(),\n  site: z\n    .object({\n      siteDisplayName: z\n        .string()\n        .describe('Display name of the site.')\n        .optional()\n        .nullable(),\n      locale: z\n        .string()\n        .describe(\n          \"2-letter language code of the site's locale in\\n[ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\"\n        )\n        .optional(),\n      paymentCurrency: z\n        .string()\n        .describe(\n          \"3-letter currency code for the site's billing in\\n[ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\"\n        )\n        .optional(),\n      multilingual: z\n        .object({\n          isMultiLingual: z\n            .boolean()\n            .describe('Whether the site supports more than a single language.')\n            .optional(),\n          supportedLanguages: z\n            .array(\n              z.object({\n                languageCode: z\n                  .string()\n                  .describe(\n                    'Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.'\n                  )\n                  .optional(),\n                locale: z\n                  .object({\n                    languageCode: z\n                      .string()\n                      .describe(\n                        'Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.'\n                      )\n                      .optional(),\n                    country: z\n                      .string()\n                      .describe(\n                        'Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n                      )\n                      .optional(),\n                  })\n                  .describe('Locale.')\n                  .optional(),\n                isPrimary: z\n                  .boolean()\n                  .describe(\n                    'Whether the supported language is the primary language for the site.'\n                  )\n                  .optional(),\n                countryCode: z.string().describe('Language icon.').optional(),\n                resolutionMethod: z\n                  .enum(['QUERY_PARAM', 'SUBDOMAIN', 'SUBDIRECTORY'])\n                  .describe(\n                    'How the language will be resolved. For internal use.'\n                  )\n                  .optional(),\n                isVisitorPrimary: z\n                  .boolean()\n                  .describe(\n                    'Whether the supported language is the primary language for site visitors.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n            )\n            .optional(),\n        })\n        .describe(\"Information about the site's supported languages.\")\n        .optional(),\n      url: z\n        .string()\n        .describe(\n          'URL of the site. Available only when the site has been published.'\n        )\n        .optional()\n        .nullable(),\n      description: z\n        .string()\n        .describe('Description of the site.')\n        .optional()\n        .nullable(),\n      installedWixApps: z.array(z.string()).optional(),\n      ownerEmail: z\n        .string()\n        .describe(\n          '> **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead.'\n        )\n        .email()\n        .optional()\n        .nullable(),\n      ownerInfo: z\n        .object({\n          email: z\n            .string()\n            .describe(\n              \"Wix user's email address. Identical to the their login email.\"\n            )\n            .email()\n            .optional(),\n          emailStatus: z\n            .string()\n            .describe(\n              'Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,\\n`NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.\\n\\nWhether the Wix user has verified their email and whether they have chosen\\nto receive email notifications from Wix.'\n            )\n            .optional(),\n        })\n        .describe(\n          \"Information about the site's Wix user. Available only when calling\\n_Get App Instance_ with the __Read Site Owner Email__ permission scope.\"\n        )\n        .optional(),\n      siteId: z.string().describe('Site ID.').optional(),\n      siteUserType: z\n        .string()\n        .describe(\n          'Type of Wix user who owns the site.\\nAvailable only when calling _Get App Instance_ with the __Read Site User Type__ permission scope.\\nSupported values: `\"Channel DIY\"`, `\"Channel DIFM\"`, `\"Enterprise\"`.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Information about the site.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO,CAAC,CAAC;AACzC,IAAM,yBAA2B,SAAO;AAAA,EAC7C,UACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,SAAO,EACP,SAAS,mDAAmD,EAC5D,SAAS;AAAA,IACZ,YACG,SAAO,EACP,SAAS,uDAAuD,EAChE,SAAS,EACT,SAAS;AAAA,IACZ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