{"version":3,"sources":["../../src/multilingual-machine-v1-credit-data-translation-credits.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetCreditDataRequest = z.object({});\nexport const GetCreditDataResponse = z.object({\n  creditData: z\n    .intersection(\n      z.object({\n        creditsUsed: z\n          .number()\n          .int()\n          .describe(\n            'Total number of word credits consumed by a site. For sites with an unlimited word credit quota, this property still reflects the number of credits used, even though no usage limit applies.'\n          )\n          .min(0)\n          .optional()\n          .nullable(),\n        quotaType: z.enum(['LIMITED']).describe('Quota type.').optional(),\n      }),\n      z.xor([\n        z.object({ limitedQuota: z.never().optional() }),\n        z.object({\n          limitedQuota: z\n            .object({\n              quota: z\n                .number()\n                .int()\n                .describe(\n                  'Total word credit allocation for the site. This includes the initial quota and any additional credits purchased through the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager).'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe('Limited word credit quota.'),\n        }),\n      ])\n    )\n    .describe('Credit data.')\n    .optional(),\n});\nexport const CheckSufficientCreditsRequest = z.object({\n  wordCount: z.number().int().describe('Number of words to translate.').min(0),\n});\nexport const CheckSufficientCreditsResponse = z.object({\n  sufficientCredits: z\n    .boolean()\n    .describe(\n      'Whether the site has enough credits to translate the specified number of words.'\n    )\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,uBAAyB,SAAO,CAAC,CAAC;AACxC,IAAM,wBAA0B,SAAO;AAAA,EAC5C,YACG;AAAA,IACG,SAAO;AAAA,MACP,aACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,SAAS,EACT,SAAS;AAAA,MACZ,WAAa,OAAK,CAAC,SAAS,CAAC,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,IAClE,CAAC;AAAA,IACC,MAAI;AAAA,MACF,SAAO,EAAE,cAAgB,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,MAC7C,SAAO;AAAA,QACP,cACG,SAAO;AAAA,UACN,OACG,SAAO,EACP,IAAI,EACJ;AAAA,YACC;AAAA,UACF,EACC,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA,SAAS,4BAA4B;AAAA,MAC1C,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS,cAAc,EACvB,SAAS;AACd,CAAC;AACM,IAAM,gCAAkC,SAAO;AAAA,EACpD,WAAa,SAAO,EAAE,IAAI,EAAE,SAAS,+BAA+B,EAAE,IAAI,CAAC;AAC7E,CAAC;AACM,IAAM,iCAAmC,SAAO;AAAA,EACrD,mBACG,UAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;","names":[]}