@remit/api-openapi-spec 0.0.89 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ const formats = {
10
10
  };
11
11
  const requestBodyValidator = (() => {
12
12
  const exports = {};
13
- "use strict";exports.AccountOperations_createAccount = validate10;const schema11 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["email","imapHost","imapPort","imapTls","imapStartTls"],"properties":{"email":{"type":"string","minLength":1,"description":"Primary email address for this account"},"displayName":{"type":"string","description":"Display name (optional)"},"username":{"type":"string","description":"IMAP login username (defaults to email if not provided)"},"authType":{"allOf":[{"type":"string","enum":["password","oauthMicrosoft"],"description":"Authentication mechanism used by an email account"}],"description":"Authentication mechanism for this account. Defaults to `password`. Pass `oauthMicrosoft` only via the OAuth connect flow (POST /accounts/oauth/microsoft/start)."},"syncedServices":{"type":"array","items":{"type":"string","enum":["Mail","Calendar"],"description":"A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store."},"description":"Services this account syncs. Defaults to `#[Mail]`. Refused when empty, and refused for a password account unless it is exactly `#[Mail]`."},"password":{"type":"string","format":"password","description":"Account password (will be encrypted). Required for password accounts; omit for OAuth accounts."},"imapHost":{"type":"string","minLength":1,"description":"IMAP server hostname"},"imapPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"IMAP server port"},"imapTls":{"type":"boolean","description":"Use TLS encryption"},"imapStartTls":{"type":"boolean","description":"Use STARTTLS upgrade"},"smtpEnabled":{"type":"boolean","description":"Whether to enable SMTP sending for this account. When omitted, the server enables sending if an SMTP host is supplied."},"smtpHost":{"type":"string","description":"SMTP server hostname (optional)"},"smtpPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"SMTP server port"},"smtpTls":{"type":"boolean","description":"Use TLS encryption for SMTP"},"smtpStartTls":{"type":"boolean","description":"Use STARTTLS upgrade for SMTP"},"smtpUsername":{"type":"string","description":"SMTP username if different from IMAP"},"smtpPassword":{"type":"string","format":"password","description":"SMTP password if different from IMAP"}},"description":"Input for creating a new email account"}},"required":["requestBody"],"$id":"AccountOperations_createAccount"};const func2 = ucs2length;const formats0 = formats.password;const formats2 = formats.int32;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AccountOperations_createAccount" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((((data0.email === undefined) && (missing1 = "email")) || ((data0.imapHost === undefined) && (missing1 = "imapHost"))) || ((data0.imapPort === undefined) && (missing1 = "imapPort"))) || ((data0.imapTls === undefined) && (missing1 = "imapTls"))) || ((data0.imapStartTls === undefined) && (missing1 = "imapStartTls"))){validate10.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.email !== undefined){let data1 = data0.email;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func2(data1) < 1){validate10.errors = [{instancePath:instancePath+"/requestBody/email",schemaPath:"#/properties/requestBody/properties/email/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/email",schemaPath:"#/properties/requestBody/properties/email/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.displayName !== undefined){const _errs6 = errors;if(typeof data0.displayName !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.username !== undefined){const _errs8 = errors;if(typeof data0.username !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/username",schemaPath:"#/properties/requestBody/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.authType !== undefined){let data4 = data0.authType;const _errs10 = errors;if(typeof data4 !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/authType",schemaPath:"#/properties/requestBody/properties/authType/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "password") || (data4 === "oauthMicrosoft"))){validate10.errors = [{instancePath:instancePath+"/requestBody/authType",schemaPath:"#/properties/requestBody/properties/authType/allOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.requestBody.properties.authType.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.syncedServices !== undefined){let data5 = data0.syncedServices;const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs15 = errors;if(typeof data6 !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data6 === "Mail") || (data6 === "Calendar"))){validate10.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/enum",keyword:"enum",params:{allowedValues: schema11.properties.requestBody.properties.syncedServices.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;if(!valid3){break;}}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/syncedServices",schemaPath:"#/properties/requestBody/properties/syncedServices/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.password !== undefined){let data7 = data0.password;const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate10.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapHost !== undefined){let data8 = data0.imapHost;const _errs19 = errors;if(errors === _errs19){if(typeof data8 === "string"){if(func2(data8) < 1){validate10.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapPort !== undefined){let data9 = data0.imapPort;const _errs21 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs21){if(typeof data9 == "number"){if(data9 > 65535 || isNaN(data9)){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data9))){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapTls !== undefined){const _errs23 = errors;if(typeof data0.imapTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/imapTls",schemaPath:"#/properties/requestBody/properties/imapTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapStartTls !== undefined){const _errs25 = errors;if(typeof data0.imapStartTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/imapStartTls",schemaPath:"#/properties/requestBody/properties/imapStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpEnabled !== undefined){const _errs27 = errors;if(typeof data0.smtpEnabled !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpEnabled",schemaPath:"#/properties/requestBody/properties/smtpEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpHost !== undefined){const _errs29 = errors;if(typeof data0.smtpHost !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpHost",schemaPath:"#/properties/requestBody/properties/smtpHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPort !== undefined){let data14 = data0.smtpPort;const _errs31 = errors;if(!((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14)))){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs31){if(typeof data14 == "number"){if(data14 > 65535 || isNaN(data14)){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data14 < 1 || isNaN(data14)){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data14))){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs31 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpTls !== undefined){const _errs33 = errors;if(typeof data0.smtpTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpTls",schemaPath:"#/properties/requestBody/properties/smtpTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs33 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpStartTls !== undefined){const _errs35 = errors;if(typeof data0.smtpStartTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpStartTls",schemaPath:"#/properties/requestBody/properties/smtpStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs35 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpUsername !== undefined){const _errs37 = errors;if(typeof data0.smtpUsername !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpUsername",schemaPath:"#/properties/requestBody/properties/smtpUsername/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs37 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPassword !== undefined){let data18 = data0.smtpPassword;const _errs39 = errors;if(errors === _errs39){if(errors === _errs39){if(typeof data18 === "string"){if(!(formats0.validate(data18))){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs39 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}}}}else {validate10.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}exports.MicrosoftOAuthOperations_microsoftOAuthStart = validate11;const schema12 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"email":{"type":"string","description":"Optional email hint for the Microsoft login page"},"services":{"type":"array","items":{"type":"string","enum":["Mail","Calendar"],"description":"A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store."},"minItems":1,"description":"Services to request consent for. The authorization URL asks for the scopes these map to. Defaults to `#[Mail]`; refused when empty. Adding a service to a connected account is this same request carrying the full set the account should sync."}}}},"required":["requestBody"],"$id":"MicrosoftOAuthOperations_microsoftOAuthStart"};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MicrosoftOAuthOperations_microsoftOAuthStart" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate11.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.email !== undefined){const _errs4 = errors;if(typeof data0.email !== "string"){validate11.errors = [{instancePath:instancePath+"/requestBody/email",schemaPath:"#/properties/requestBody/properties/email/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.services !== undefined){let data2 = data0.services;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data2)){if(data2.length < 1){validate11.errors = [{instancePath:instancePath+"/requestBody/services",schemaPath:"#/properties/requestBody/properties/services/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs8 = errors;if(typeof data3 !== "string"){validate11.errors = [{instancePath:instancePath+"/requestBody/services/" + i0,schemaPath:"#/properties/requestBody/properties/services/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data3 === "Mail") || (data3 === "Calendar"))){validate11.errors = [{instancePath:instancePath+"/requestBody/services/" + i0,schemaPath:"#/properties/requestBody/properties/services/items/enum",keyword:"enum",params:{allowedValues: schema12.properties.requestBody.properties.services.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs8 === errors;if(!valid2){break;}}}}else {validate11.errors = [{instancePath:instancePath+"/requestBody/services",schemaPath:"#/properties/requestBody/properties/services/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}else {validate11.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}exports.AccountOperations_testConnection = validate12;const schema13 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["username","imapHost","imapPort","imapTls","imapStartTls"],"properties":{"accountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Account ID (optional, used to retrieve stored password if password is empty)"},"username":{"type":"string","minLength":1,"description":"IMAP login username"},"password":{"type":"string","format":"password","description":"Account password (optional if accountId provided - uses stored password)"},"imapHost":{"type":"string","minLength":1,"description":"IMAP server hostname"},"imapPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"IMAP server port"},"imapTls":{"type":"boolean","description":"Use TLS encryption"},"imapStartTls":{"type":"boolean","description":"Use STARTTLS upgrade"},"smtpHost":{"type":"string","description":"SMTP server hostname (optional)"},"smtpPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"SMTP server port"},"smtpTls":{"type":"boolean","description":"Use TLS encryption for SMTP"},"smtpStartTls":{"type":"boolean","description":"Use STARTTLS upgrade for SMTP"},"smtpUsername":{"type":"string","description":"SMTP username (defaults to IMAP username)"},"smtpPassword":{"type":"string","format":"password","description":"SMTP password (defaults to IMAP password)"}},"description":"Input for testing connection without saving"}},"required":["requestBody"],"$id":"AccountOperations_testConnection"};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AccountOperations_testConnection" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate12.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((((data0.username === undefined) && (missing1 = "username")) || ((data0.imapHost === undefined) && (missing1 = "imapHost"))) || ((data0.imapPort === undefined) && (missing1 = "imapPort"))) || ((data0.imapTls === undefined) && (missing1 = "imapTls"))) || ((data0.imapStartTls === undefined) && (missing1 = "imapStartTls"))){validate12.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.accountId !== undefined){let data1 = data0.accountId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate12.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate12.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.username !== undefined){let data2 = data0.username;const _errs7 = errors;if(errors === _errs7){if(typeof data2 === "string"){if(func2(data2) < 1){validate12.errors = [{instancePath:instancePath+"/requestBody/username",schemaPath:"#/properties/requestBody/properties/username/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/username",schemaPath:"#/properties/requestBody/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.password !== undefined){let data3 = data0.password;const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(typeof data3 === "string"){if(!(formats0.validate(data3))){validate12.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapHost !== undefined){let data4 = data0.imapHost;const _errs11 = errors;if(errors === _errs11){if(typeof data4 === "string"){if(func2(data4) < 1){validate12.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapPort !== undefined){let data5 = data0.imapPort;const _errs13 = errors;if(!((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5)))){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs13){if(typeof data5 == "number"){if(data5 > 65535 || isNaN(data5)){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data5 < 1 || isNaN(data5)){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data5))){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapTls !== undefined){const _errs15 = errors;if(typeof data0.imapTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/imapTls",schemaPath:"#/properties/requestBody/properties/imapTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapStartTls !== undefined){const _errs17 = errors;if(typeof data0.imapStartTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/imapStartTls",schemaPath:"#/properties/requestBody/properties/imapStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpHost !== undefined){const _errs19 = errors;if(typeof data0.smtpHost !== "string"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpHost",schemaPath:"#/properties/requestBody/properties/smtpHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPort !== undefined){let data9 = data0.smtpPort;const _errs21 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs21){if(typeof data9 == "number"){if(data9 > 65535 || isNaN(data9)){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data9))){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpTls !== undefined){const _errs23 = errors;if(typeof data0.smtpTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpTls",schemaPath:"#/properties/requestBody/properties/smtpTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpStartTls !== undefined){const _errs25 = errors;if(typeof data0.smtpStartTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpStartTls",schemaPath:"#/properties/requestBody/properties/smtpStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpUsername !== undefined){const _errs27 = errors;if(typeof data0.smtpUsername !== "string"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpUsername",schemaPath:"#/properties/requestBody/properties/smtpUsername/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPassword !== undefined){let data13 = data0.smtpPassword;const _errs29 = errors;if(errors === _errs29){if(errors === _errs29){if(typeof data13 === "string"){if(!(formats0.validate(data13))){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs29 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}else {validate12.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate12.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate12.errors = vErrors;return errors === 0;}exports.AccountDetailOperations_updateAccount = validate13;const schema14 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"displayName":{"type":"string","description":"Display name"},"password":{"type":"string","format":"password","description":"Account password (only if changing)"},"imapHost":{"type":"string","description":"IMAP server hostname"},"imapPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"IMAP server port"},"imapTls":{"type":"boolean","description":"Use TLS encryption"},"imapStartTls":{"type":"boolean","description":"Use STARTTLS upgrade"},"smtpEnabled":{"type":"boolean","description":"Whether SMTP sending is enabled for this account. When omitted, the server enables sending if an SMTP host is supplied here or already stored."},"smtpHost":{"type":"string","description":"SMTP server hostname"},"smtpPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"SMTP server port"},"smtpTls":{"type":"boolean","description":"Use TLS encryption for SMTP"},"smtpStartTls":{"type":"boolean","description":"Use STARTTLS upgrade for SMTP"},"smtpUsername":{"type":"string","description":"SMTP username"},"smtpPassword":{"type":"string","format":"password","description":"SMTP password (only if changing)"},"isActive":{"type":"boolean","description":"Enable/disable account"},"syncedServices":{"type":"array","items":{"type":"string","enum":["Mail","Calendar"],"description":"A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store."},"description":"Replaces the stored service set outright. Refused when empty, on a password account unless it is exactly `#[Mail]`, or when it names a service the account's OAuth grant does not cover. That last case is a consent round trip through the OAuth start route."},"signaturePlainText":{"type":"string","description":"Plain text email signature"},"signatureHtml":{"type":"string","description":"HTML email signature"},"composeLanguages":{"type":"array","items":{"type":"string"},"description":"BCP 47 language tags this account writes mail in, most-used first (issue #686). Replaces the stored list outright; an empty array clears it."},"muted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"}],"description":"Sender is muted: do not notify on new mail"}],"nullable":true,"description":"Account-level mute flag. Pass a MutedFlag object to mute; pass `null` to clear the mute."}},"description":"Input for updating an existing account"}},"required":["requestBody"],"$id":"AccountDetailOperations_updateAccount"};const formats24 = formats.int64;function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AccountDetailOperations_updateAccount" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate13.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.displayName !== undefined){const _errs4 = errors;if(typeof data0.displayName !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.password !== undefined){let data2 = data0.password;const _errs6 = errors;if(errors === _errs6){if(errors === _errs6){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate13.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapHost !== undefined){const _errs8 = errors;if(typeof data0.imapHost !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapPort !== undefined){let data4 = data0.imapPort;const _errs10 = errors;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs10){if(typeof data4 == "number"){if(data4 > 65535 || isNaN(data4)){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data4 < 1 || isNaN(data4)){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data4))){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapTls !== undefined){const _errs12 = errors;if(typeof data0.imapTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/imapTls",schemaPath:"#/properties/requestBody/properties/imapTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapStartTls !== undefined){const _errs14 = errors;if(typeof data0.imapStartTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/imapStartTls",schemaPath:"#/properties/requestBody/properties/imapStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs14 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpEnabled !== undefined){const _errs16 = errors;if(typeof data0.smtpEnabled !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpEnabled",schemaPath:"#/properties/requestBody/properties/smtpEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpHost !== undefined){const _errs18 = errors;if(typeof data0.smtpHost !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpHost",schemaPath:"#/properties/requestBody/properties/smtpHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs18 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPort !== undefined){let data9 = data0.smtpPort;const _errs20 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs20){if(typeof data9 == "number"){if(data9 > 65535 || isNaN(data9)){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data9))){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpTls !== undefined){const _errs22 = errors;if(typeof data0.smtpTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpTls",schemaPath:"#/properties/requestBody/properties/smtpTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpStartTls !== undefined){const _errs24 = errors;if(typeof data0.smtpStartTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpStartTls",schemaPath:"#/properties/requestBody/properties/smtpStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs24 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpUsername !== undefined){const _errs26 = errors;if(typeof data0.smtpUsername !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpUsername",schemaPath:"#/properties/requestBody/properties/smtpUsername/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPassword !== undefined){let data13 = data0.smtpPassword;const _errs28 = errors;if(errors === _errs28){if(errors === _errs28){if(typeof data13 === "string"){if(!(formats0.validate(data13))){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs28 === errors;}else {var valid1 = true;}if(valid1){if(data0.isActive !== undefined){const _errs30 = errors;if(typeof data0.isActive !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/isActive",schemaPath:"#/properties/requestBody/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs30 === errors;}else {var valid1 = true;}if(valid1){if(data0.syncedServices !== undefined){let data15 = data0.syncedServices;const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data15)){var valid2 = true;const len0 = data15.length;for(let i0=0; i0<len0; i0++){let data16 = data15[i0];const _errs34 = errors;if(typeof data16 !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data16 === "Mail") || (data16 === "Calendar"))){validate13.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/enum",keyword:"enum",params:{allowedValues: schema14.properties.requestBody.properties.syncedServices.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs34 === errors;if(!valid2){break;}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/syncedServices",schemaPath:"#/properties/requestBody/properties/syncedServices/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs32 === errors;}else {var valid1 = true;}if(valid1){if(data0.signaturePlainText !== undefined){const _errs36 = errors;if(typeof data0.signaturePlainText !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/signaturePlainText",schemaPath:"#/properties/requestBody/properties/signaturePlainText/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs36 === errors;}else {var valid1 = true;}if(valid1){if(data0.signatureHtml !== undefined){const _errs38 = errors;if(typeof data0.signatureHtml !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/signatureHtml",schemaPath:"#/properties/requestBody/properties/signatureHtml/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs38 === errors;}else {var valid1 = true;}if(valid1){if(data0.composeLanguages !== undefined){let data19 = data0.composeLanguages;const _errs40 = errors;if(errors === _errs40){if(Array.isArray(data19)){var valid3 = true;const len1 = data19.length;for(let i1=0; i1<len1; i1++){const _errs42 = errors;if(typeof data19[i1] !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/composeLanguages/" + i1,schemaPath:"#/properties/requestBody/properties/composeLanguages/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs42 === errors;if(!valid3){break;}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/composeLanguages",schemaPath:"#/properties/requestBody/properties/composeLanguages/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs40 === errors;}else {var valid1 = true;}if(valid1){if(data0.muted !== undefined){let data21 = data0.muted;const _errs44 = errors;if((!(data21 && typeof data21 == "object" && !Array.isArray(data21))) && (data21 !== null)){validate13.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs47 = errors;const _errs49 = errors;if(errors === _errs49){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.setAt !== undefined){let data22 = data21.setAt;const _errs51 = errors;if(!((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22)))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs51){if(typeof data22 == "number"){if(!(formats24.validate(data22))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs51 === errors;}else {var valid6 = true;}if(valid6){if(data21.setBy !== undefined){const _errs53 = errors;if(typeof data21.setBy !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/setBy",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data21.expiresAt !== undefined){let data24 = data21.expiresAt;const _errs55 = errors;if(!((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24)))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs55){if(typeof data24 == "number"){if(!(formats24.validate(data24))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data21.reason !== undefined){const _errs57 = errors;if(typeof data21.reason !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/reason",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs57 === errors;}else {var valid6 = true;}}}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs47){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.value !== undefined){if(typeof data21.value !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/value",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs44 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}}}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate13.errors = vErrors;return errors === 0;}exports.FilterOperations_createFilter = validate14;const schema15 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["name","scope","matchOperator","literalClauses","actionLabelId","actionMailboxId"],"properties":{"name":{"allOf":[{"type":"string","maxLength":256}],"description":"Plain-language name or editable label for this filter"},"scope":{"allOf":[{"type":"string","enum":["Standing","Temporary"],"description":"Whether a Filter is permanent or expires (RFC 034 Decision 1). A Filter row exists only for these two standing scopes — the one-time \"just these\" / \"all like these\" batch actions never create one."}],"description":"Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again."},"expiresAt":{"type":"string","description":"ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does."},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"$ref":"#/properties/requestBody/properties/name/allOf/0"}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"minItems":1,"description":"Literal from/subject/has-words predicate clauses (RFC 031). A filter carries at least one."},"actionLabelId":{"type":"string","description":"Label applied when this filter matches — additive action, any number of filters can independently apply their own label (RFC 034 Decision 3.1). The named sentinel `\"None\"` means no label action; never an empty/optional field.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `\"None\"` means no move action.","default":"None"}},"description":"Input for creating a filter (RFC 034). `ttl` is omitted — it is derived\nserver-side from `expiresAt` when `scope` is `Temporary` (RFC 034 Decision\n1.3), never client-supplied. `state`, `ruleChangedAt`, and `filterId` are\nall server-derived and excluded by their Read-only visibility."}},"required":["requestBody"],"$id":"FilterOperations_createFilter"};const schema16 = {"type":"string","maxLength":256};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="FilterOperations_createFilter" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate14.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((((data0.name === undefined) && (missing1 = "name")) || ((data0.scope === undefined) && (missing1 = "scope"))) || ((data0.matchOperator === undefined) && (missing1 = "matchOperator"))) || ((data0.literalClauses === undefined) && (missing1 = "literalClauses"))) || ((data0.actionLabelId === undefined) && (missing1 = "actionLabelId"))) || ((data0.actionMailboxId === undefined) && (missing1 = "actionMailboxId"))){validate14.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 256){validate14.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.scope !== undefined){let data2 = data0.scope;const _errs7 = errors;if(typeof data2 !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "Standing") || (data2 === "Temporary"))){validate14.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/enum",keyword:"enum",params:{allowedValues: schema15.properties.requestBody.properties.scope.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.expiresAt !== undefined){const _errs10 = errors;if(typeof data0.expiresAt !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/expiresAt",schemaPath:"#/properties/requestBody/properties/expiresAt/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data4 = data0.matchOperator;const _errs12 = errors;if(typeof data4 !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "And") || (data4 === "Or"))){validate14.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema15.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data5 = data0.literalClauses;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data5)){if(data5.length < 1){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid5 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs17 = errors;if(errors === _errs17){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if(((data6.field === undefined) && (missing2 = "field")) || ((data6.value === undefined) && (missing2 = "value"))){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data6.field !== undefined){let data7 = data6.field;const _errs19 = errors;if(typeof data7 !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data7 === "From") || (data7 === "Subject")) || (data7 === "HasWords")) || (data7 === "ListId")) || (data7 === "FromDomain"))){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema15.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs19 === errors;}else {var valid6 = true;}if(valid6){if(data6.value !== undefined){let data8 = data6.value;const _errs22 = errors;const _errs24 = errors;if(errors === _errs24){if(typeof data8 === "string"){if(func2(data8) > 256){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs22 === errors;}else {var valid6 = true;}}}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs17 === errors;if(!valid5){break;}}}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs26 = errors;if(typeof data0.actionLabelId !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs28 = errors;if(typeof data0.actionMailboxId !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs28 === errors;}else {var valid1 = true;}}}}}}}}}else {validate14.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate14.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate14.errors = vErrors;return errors === 0;}exports.FilterDetailOperations_updateFilter = validate15;const schema17 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"name":{"allOf":[{"type":"string","maxLength":256}],"description":"Plain-language name or editable label for this filter"},"scope":{"allOf":[{"type":"string","enum":["Standing","Temporary"],"description":"Whether a Filter is permanent or expires (RFC 034 Decision 1). A Filter row exists only for these two standing scopes — the one-time \"just these\" / \"all like these\" batch actions never create one."}],"description":"Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again."},"expiresAt":{"type":"string","description":"ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does."},"state":{"allOf":[{"type":"string","enum":["Active","Expired","Disabled"],"description":"Whether a Filter runs, backing the byAccountAndState index (RFC 034 Decision 1.2). Active and Disabled are written; Expired is a lazily-patched cache of Filter.expiresAt, which stays the source of truth for expiry. A Disabled filter records why in Filter.disabledReason."}],"description":"Whether this filter runs, backing byAccountAndState (RFC 034 Decision 1.2). Starts Active. The user sets Active or Disabled on update; the system sets Disabled when the filter cannot work as designed, and records why in disabledReason. Expired is lazily patched the first time something reads a Temporary filter past its expiresAt, which stays the correctness source for expiry.","default":"Active"},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"$ref":"#/properties/requestBody/properties/name/allOf/0"}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"minItems":1,"description":"Literal from/subject/has-words predicate clauses (RFC 031). A filter carries at least one."},"actionLabelId":{"type":"string","description":"Label applied when this filter matches — additive action, any number of filters can independently apply their own label (RFC 034 Decision 3.1). The named sentinel `\"None\"` means no label action; never an empty/optional field.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `\"None\"` means no move action.","default":"None"}},"description":"Input for updating a filter (RFC 034, reader #266). The name, predicate,\naction, scope, and expiresAt are all updatable; `ttl` is always\nserver-derived from `scope`/`expiresAt`, never client-supplied, and\n`disabledReason`/`ruleChangedAt`/`actionChangedAt`/`filterId` are\nserver-derived too. `state` takes `Active` or `Disabled`: the user turns a\nfilter off or back on, and turning it on clears `disabledReason`. `Expired`\nis refused; the expiry is set through `scope`/`expiresAt`. A patch touching the predicate, the action, `scope`, or\n`expiresAt` bumps `ruleChangedAt`; a name-only rename never does (RFC 034\nDecision 3.2, reader #266). Only a patch touching the predicate or the\naction bumps `actionChangedAt`, the narrower signal exclusive-move\nprecedence reads (reader #384) — a scope/expiresAt-only edit leaves it\nuntouched."}},"required":["requestBody"],"$id":"FilterDetailOperations_updateFilter"};const schema18 = {"type":"string","maxLength":256};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="FilterDetailOperations_updateFilter" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate15.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 256){validate15.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.scope !== undefined){let data2 = data0.scope;const _errs7 = errors;if(typeof data2 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "Standing") || (data2 === "Temporary"))){validate15.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.scope.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.expiresAt !== undefined){const _errs10 = errors;if(typeof data0.expiresAt !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/expiresAt",schemaPath:"#/properties/requestBody/properties/expiresAt/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.state !== undefined){let data4 = data0.state;const _errs12 = errors;if(typeof data4 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/state",schemaPath:"#/properties/requestBody/properties/state/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data4 === "Active") || (data4 === "Expired")) || (data4 === "Disabled"))){validate15.errors = [{instancePath:instancePath+"/requestBody/state",schemaPath:"#/properties/requestBody/properties/state/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.state.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data5 = data0.matchOperator;const _errs15 = errors;if(typeof data5 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data5 === "And") || (data5 === "Or"))){validate15.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data6 = data0.literalClauses;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data6)){if(data6.length < 1){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid6 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){let data7 = data6[i0];const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.field === undefined) && (missing1 = "field")) || ((data7.value === undefined) && (missing1 = "value"))){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data7.field !== undefined){let data8 = data7.field;const _errs22 = errors;if(typeof data8 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data8 === "From") || (data8 === "Subject")) || (data8 === "HasWords")) || (data8 === "ListId")) || (data8 === "FromDomain"))){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid7 = _errs22 === errors;}else {var valid7 = true;}if(valid7){if(data7.value !== undefined){let data9 = data7.value;const _errs25 = errors;const _errs27 = errors;if(errors === _errs27){if(typeof data9 === "string"){if(func2(data9) > 256){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs25 === errors;}else {var valid7 = true;}}}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs20 === errors;if(!valid6){break;}}}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs29 = errors;if(typeof data0.actionLabelId !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs31 = errors;if(typeof data0.actionMailboxId !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs31 === errors;}else {var valid1 = true;}}}}}}}}}else {validate15.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate15.errors = vErrors;return errors === 0;}exports.FolderRoleOperations_appointFolderRole = validate16;const schema19 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["mailboxId"],"properties":{"mailboxId":{"type":"string","nullable":true,"description":"Mailbox to appoint to the role, or `null` to clear the appointment. Typed as an inline nullable string rather than `UUID | null`: a named scalar union renders as allOf + nullable with no sibling type, which openapi-backend's AJV rejects for a `null` value — the same gotcha documented on RenameMailboxInput.displayNameOverride. An inline string keeps `null` valid at the wire; the handler validates the value as a UUID."}},"description":"Input for PUT /accounts/{accountId}/folder-roles/{role}. Appoints the mailbox to the role, replacing whichever mailbox previously held it (exclusive by construction — the map has one slot per role). Pass `mailboxId: null` to clear the role back to unfilled."}},"required":["requestBody"],"$id":"FolderRoleOperations_appointFolderRole"};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="FolderRoleOperations_appointFolderRole" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate16.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.mailboxId === undefined) && (missing1 = "mailboxId")){validate16.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.mailboxId !== undefined){let data1 = data0.mailboxId;if((typeof data1 !== "string") && (data1 !== null)){validate16.errors = [{instancePath:instancePath+"/requestBody/mailboxId",schemaPath:"#/properties/requestBody/properties/mailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate16.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate16.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate16.errors = vErrors;return errors === 0;}exports.LabelOperations_createLabel = validate17;const schema20 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["name","color"],"properties":{"name":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable label name (display)"},"color":{"allOf":[{"type":"string","enum":["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],"description":"Display color for a user-defined Label (RFC 030)."}],"description":"Display color for this label","default":"Default"}},"description":"Input for creating a label (RFC 030). `normalizedName` is server-derived from `name` and excluded by its Read-only visibility."}},"required":["requestBody"],"$id":"LabelOperations_createLabel"};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="LabelOperations_createLabel" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate17.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.name === undefined) && (missing1 = "name")) || ((data0.color === undefined) && (missing1 = "color"))){validate17.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate17.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate17.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data2 = data0.color;const _errs7 = errors;if(typeof data2 !== "string"){validate17.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data2 === "Default") || (data2 === "Red")) || (data2 === "Orange")) || (data2 === "Yellow")) || (data2 === "Green")) || (data2 === "Teal")) || (data2 === "Blue")) || (data2 === "Purple")) || (data2 === "Gray"))){validate17.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema20.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}else {validate17.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate17.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate17.errors = vErrors;return errors === 0;}exports.LabelDetailOperations_updateLabel = validate18;const schema21 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"name":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable label name (display)"},"color":{"allOf":[{"type":"string","enum":["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],"description":"Display color for a user-defined Label (RFC 030)."}],"description":"Display color for this label","default":"Default"}},"description":"Input for updating a label (RFC 030). Only `name` and `color` are mutable."}},"required":["requestBody"],"$id":"LabelDetailOperations_updateLabel"};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="LabelDetailOperations_updateLabel" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate18.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate18.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate18.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data2 = data0.color;const _errs7 = errors;if(typeof data2 !== "string"){validate18.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data2 === "Default") || (data2 === "Red")) || (data2 === "Orange")) || (data2 === "Yellow")) || (data2 === "Green")) || (data2 === "Teal")) || (data2 === "Blue")) || (data2 === "Purple")) || (data2 === "Gray"))){validate18.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema21.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}else {validate18.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate18.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate18.errors = vErrors;return errors === 0;}exports.MailboxOperations_createMailbox = validate19;const schema22 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["namespaceType","fullPath"],"properties":{"namespaceType":{"allOf":[{"type":"string","enum":["personal","other_users","shared"],"description":"IMAP namespace types per RFC 9051 Section 6.3.10"}],"description":"Namespace type: personal, other_users, or shared","default":"personal"},"fullPath":{"allOf":[{"type":"string","maxLength":512}],"minLength":1,"description":"Complete mailbox path including hierarchy"}},"description":"Input for creating a new mailbox"}},"required":["requestBody"],"$id":"MailboxOperations_createMailbox"};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MailboxOperations_createMailbox" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate19.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.namespaceType === undefined) && (missing1 = "namespaceType")) || ((data0.fullPath === undefined) && (missing1 = "fullPath"))){validate19.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.namespaceType !== undefined){let data1 = data0.namespaceType;const _errs4 = errors;if(typeof data1 !== "string"){validate19.errors = [{instancePath:instancePath+"/requestBody/namespaceType",schemaPath:"#/properties/requestBody/properties/namespaceType/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data1 === "personal") || (data1 === "other_users")) || (data1 === "shared"))){validate19.errors = [{instancePath:instancePath+"/requestBody/namespaceType",schemaPath:"#/properties/requestBody/properties/namespaceType/allOf/0/enum",keyword:"enum",params:{allowedValues: schema22.properties.requestBody.properties.namespaceType.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.fullPath !== undefined){let data2 = data0.fullPath;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 512){validate19.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate19.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}if(errors === _errs7){if(typeof data2 === "string"){if(func2(data2) < 1){validate19.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}else {validate19.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate19.errors = vErrors;return errors === 0;}exports.MailboxDetailOperations_renameMailbox = validate20;const schema23 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"fullPath":{"allOf":[{"type":"string","maxLength":512}],"description":"New full path (triggers IMAP rename when present)"},"muted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"}],"description":"Sender is muted: do not notify on new mail"}],"nullable":true,"description":"Mute flag. Pass a MutedFlag object to mute; pass `null` to clear the mute."},"displayNameOverride":{"type":"string","nullable":true,"maxLength":256,"description":"Sidebar display-name override. Pass a string to set; pass `null` to clear (UI falls back to the canonical/derived label). Typed as an inline nullable string with `@maxLength(256)` rather than `String256 | null`: a named scalar union renders as allOf + nullable with no sibling type, which openapi-backend's AJV rejects for a `null` value (the `$ref` re-imposes the string type), 400ing the clear path. An inline string attaches `type:string`, AJV compiles, and `null` stays valid at the wire while the 256-length cap is preserved."}},"description":"Input for updating a mailbox. Rename (IMAP sync) is triggered only when `fullPath` is provided. The `muted` flag and the `displayNameOverride` override can be updated independently without triggering IMAP machinery; pass `null` to clear either. The canonical role a folder fills is appointed separately — see FolderRoleOperations.appointFolderRole (RFC 032 exclusive-folder-appointment)."}},"required":["requestBody"],"$id":"MailboxDetailOperations_renameMailbox"};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MailboxDetailOperations_renameMailbox" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate20.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.fullPath !== undefined){let data1 = data0.fullPath;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 512){validate20.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate20.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.muted !== undefined){let data2 = data0.muted;const _errs7 = errors;if((!(data2 && typeof data2 == "object" && !Array.isArray(data2))) && (data2 !== null)){validate20.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs10 = errors;const _errs12 = errors;if(errors === _errs12){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.setAt !== undefined){let data3 = data2.setAt;const _errs14 = errors;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs14){if(typeof data3 == "number"){if(!(formats24.validate(data3))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data2.setBy !== undefined){const _errs16 = errors;if(typeof data2.setBy !== "string"){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/setBy",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data2.expiresAt !== undefined){let data5 = data2.expiresAt;const _errs18 = errors;if(!((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5)))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if(typeof data5 == "number"){if(!(formats24.validate(data5))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data2.reason !== undefined){const _errs20 = errors;if(typeof data2.reason !== "string"){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/reason",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs20 === errors;}else {var valid5 = true;}}}}}else {validate20.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs10){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.value !== undefined){if(typeof data2.value !== "boolean"){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/value",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate20.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.displayNameOverride !== undefined){let data8 = data0.displayNameOverride;const _errs24 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate20.errors = [{instancePath:instancePath+"/requestBody/displayNameOverride",schemaPath:"#/properties/requestBody/properties/displayNameOverride/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(errors === _errs24){if(typeof data8 === "string"){if(func2(data8) > 256){validate20.errors = [{instancePath:instancePath+"/requestBody/displayNameOverride",schemaPath:"#/properties/requestBody/properties/displayNameOverride/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}}var valid1 = _errs24 === errors;}else {var valid1 = true;}}}}else {validate20.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}exports.OrganizeOperations_createOrganizeJob = validate21;const schema24 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["matchOperator","literalClauses","actionLabelId","actionMailboxId"],"properties":{"filterId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Back-apply this standing filter instead of the predicate in this body. The server reads the filter's persisted predicate and action, runs the pass over the inbox, and skips a move another active filter outranks, as index time does. The predicate and action fields of this body are ignored when it is set."},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine. Meaningless when literalClauses is empty.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"type":"string","maxLength":256}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"description":"Literal from/subject/has-words clauses (RFC 031), reusing the Filter predicate shape.","default":[]},"actionLabelId":{"type":"string","description":"Label applied to every matching message — additive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no label action.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox every matching message is moved into — exclusive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no move action.","default":"None"}},"description":"The predicate + action for a one-time \"all like these\" back-apply (RFC 034\nrecap, #1278). A distinct model, deliberately NOT a Filter: it carries no\n`scope`, `expiresAt`, or `name`, so it structurally cannot create a standing\nrule."}},"required":["requestBody"],"$id":"OrganizeOperations_createOrganizeJob"};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OrganizeOperations_createOrganizeJob" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate21.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.matchOperator === undefined) && (missing1 = "matchOperator")) || ((data0.literalClauses === undefined) && (missing1 = "literalClauses"))) || ((data0.actionLabelId === undefined) && (missing1 = "actionLabelId"))) || ((data0.actionMailboxId === undefined) && (missing1 = "actionMailboxId"))){validate21.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.filterId !== undefined){let data1 = data0.filterId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate21.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate21.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data2 = data0.matchOperator;const _errs7 = errors;if(typeof data2 !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "And") || (data2 === "Or"))){validate21.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema24.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data3 = data0.literalClauses;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){var valid4 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs12 = errors;if(errors === _errs12){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing2;if(((data4.field === undefined) && (missing2 = "field")) || ((data4.value === undefined) && (missing2 = "value"))){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data4.field !== undefined){let data5 = data4.field;const _errs14 = errors;if(typeof data5 !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data5 === "From") || (data5 === "Subject")) || (data5 === "HasWords")) || (data5 === "ListId")) || (data5 === "FromDomain"))){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema24.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data4.value !== undefined){let data6 = data4.value;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data6 === "string"){if(func2(data6) > 256){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs17 === errors;}else {var valid5 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs12 === errors;if(!valid4){break;}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs20 = errors;if(typeof data0.actionLabelId !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs22 = errors;if(typeof data0.actionMailboxId !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}exports.OrganizeOperations_previewOrganize = validate22;const schema25 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["matchOperator","literalClauses","actionLabelId","actionMailboxId"],"properties":{"filterId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Back-apply this standing filter instead of the predicate in this body. The server reads the filter's persisted predicate and action, runs the pass over the inbox, and skips a move another active filter outranks, as index time does. The predicate and action fields of this body are ignored when it is set."},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine. Meaningless when literalClauses is empty.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"type":"string","maxLength":256}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"description":"Literal from/subject/has-words clauses (RFC 031), reusing the Filter predicate shape.","default":[]},"actionLabelId":{"type":"string","description":"Label applied to every matching message — additive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no label action.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox every matching message is moved into — exclusive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no move action.","default":"None"}},"description":"The predicate + action for a one-time \"all like these\" back-apply (RFC 034\nrecap, #1278). A distinct model, deliberately NOT a Filter: it carries no\n`scope`, `expiresAt`, or `name`, so it structurally cannot create a standing\nrule."}},"required":["requestBody"],"$id":"OrganizeOperations_previewOrganize"};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OrganizeOperations_previewOrganize" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate22.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.matchOperator === undefined) && (missing1 = "matchOperator")) || ((data0.literalClauses === undefined) && (missing1 = "literalClauses"))) || ((data0.actionLabelId === undefined) && (missing1 = "actionLabelId"))) || ((data0.actionMailboxId === undefined) && (missing1 = "actionMailboxId"))){validate22.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.filterId !== undefined){let data1 = data0.filterId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate22.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate22.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data2 = data0.matchOperator;const _errs7 = errors;if(typeof data2 !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "And") || (data2 === "Or"))){validate22.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema25.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data3 = data0.literalClauses;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){var valid4 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs12 = errors;if(errors === _errs12){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing2;if(((data4.field === undefined) && (missing2 = "field")) || ((data4.value === undefined) && (missing2 = "value"))){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data4.field !== undefined){let data5 = data4.field;const _errs14 = errors;if(typeof data5 !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data5 === "From") || (data5 === "Subject")) || (data5 === "HasWords")) || (data5 === "ListId")) || (data5 === "FromDomain"))){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema25.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data4.value !== undefined){let data6 = data4.value;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data6 === "string"){if(func2(data6) > 256){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs17 === errors;}else {var valid5 = true;}}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs12 === errors;if(!valid4){break;}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs20 = errors;if(typeof data0.actionLabelId !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs22 = errors;if(typeof data0.actionMailboxId !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}}}}}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}exports.AddressDetailOperations_updateAddress = validate23;const schema26 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"flags":{"allOf":[{"type":"object","properties":{"trusted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"}],"description":"Sender is trusted: auto-load images, allow author backgrounds"}],"nullable":true},"blocked":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is blocked: mail is placed in Junk, and images never load, even on explicit click"}],"nullable":true},"neverSpam":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is never spam: their mail is rescued from Junk whatever the authentication signals say. Mutually exclusive with `blocked` — the flag written last removes the other."}],"nullable":true,"description":"Setting this to `value: true` removes `blocked`, and setting `blocked` removes this one; the two cannot both stand"},"muted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is muted: do not notify on new mail"}],"nullable":true},"vip":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is VIP: priority surface and push escalation"}],"nullable":true},"wellknown":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is wellknown: engagement counters crossed the promotion threshold"}],"nullable":true},"junkOnly":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by naming this key in `UpdateAddressInput.clearFlags`."}],"nullable":true,"description":"Name this key in `clearFlags` to offer the address in autocomplete again"},"category":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"string","enum":["uncategorized","personal","newsletter","marketing","automated","transactional","social"],"description":"Header-derived message category. Set by classifyByHeaders during body-sync. Defaults to `uncategorized`, which covers both a message that has not been classified yet and one the classifier declined to categorize; `Message.classificationState` is what tells those apart."}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Category override for auto-classification"}],"nullable":true},"autoArchive":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Auto-archive: skip inbox, file directly"}],"nullable":true},"unsubscribed":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"User has unsubscribed; auto-mark-read until sender stops"}],"nullable":true}},"description":"Patch payload for AddressFlags entries. Sets the flags named here and leaves the others untouched. Removal travels in `UpdateAddressInput.clearFlags`, not here: the `null` alternative below is unreachable over OAS 3.0, where a nullable `$ref` emits as `allOf` and the request validator drops the `nullable` — and no `null` form exists at all for `category`, whose value is an enum with no false-equivalent member."}],"description":"Per-flag merge update; omitted flags are untouched"},"clearFlags":{"type":"array","items":{"type":"string","enum":["trusted","blocked","muted","vip","junkOnly","category","autoArchive","unsubscribed","neverSpam"],"description":"Names a key of `AddressFlags` that a client may address in `PATCH /addresses/{addressId}`. `wellknown` is deliberately absent: it is server-owned, derived from engagement counters, and is never written or removed by a client."},"description":"Flag keys to remove from the sparse map, leaving the rest untouched. This is the removal form for every flag, whatever its value type — clearing `category` reverts the sender to automatic classification. Applied after `flags`, so a key named in both ends up removed. Removing an absent flag succeeds and changes nothing."}},"description":"Input for updating an Address (currently flag updates only)"}},"required":["requestBody"],"$id":"AddressDetailOperations_updateAddress"};const schema27 = {"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AddressDetailOperations_updateAddress" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate23.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.flags !== undefined){let data1 = data0.flags;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.trusted !== undefined){let data2 = data1.trusted;const _errs7 = errors;if((!(data2 && typeof data2 == "object" && !Array.isArray(data2))) && (data2 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs10 = errors;const _errs12 = errors;if(errors === _errs12){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.setAt !== undefined){let data3 = data2.setAt;const _errs14 = errors;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs14){if(typeof data3 == "number"){if(!(formats24.validate(data3))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs14 === errors;}else {var valid6 = true;}if(valid6){if(data2.setBy !== undefined){const _errs16 = errors;if(typeof data2.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs16 === errors;}else {var valid6 = true;}if(valid6){if(data2.expiresAt !== undefined){let data5 = data2.expiresAt;const _errs18 = errors;if(!((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if(typeof data5 == "number"){if(!(formats24.validate(data5))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs18 === errors;}else {var valid6 = true;}if(valid6){if(data2.reason !== undefined){const _errs20 = errors;if(typeof data2.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs20 === errors;}else {var valid6 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs10){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.value !== undefined){if(typeof data2.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data1.blocked !== undefined){let data8 = data1.blocked;const _errs24 = errors;if((!(data8 && typeof data8 == "object" && !Array.isArray(data8))) && (data8 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/blocked/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs27 = errors;const _errs30 = errors;if(errors === _errs30){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.setAt !== undefined){let data9 = data8.setAt;const _errs32 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs32){if(typeof data9 == "number"){if(!(formats24.validate(data9))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid11 = _errs32 === errors;}else {var valid11 = true;}if(valid11){if(data8.setBy !== undefined){const _errs34 = errors;if(typeof data8.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs34 === errors;}else {var valid11 = true;}if(valid11){if(data8.expiresAt !== undefined){let data11 = data8.expiresAt;const _errs36 = errors;if(!((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs36){if(typeof data11 == "number"){if(!(formats24.validate(data11))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid11 = _errs36 === errors;}else {var valid11 = true;}if(valid11){if(data8.reason !== undefined){const _errs38 = errors;if(typeof data8.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs38 === errors;}else {var valid11 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs27){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.value !== undefined){if(typeof data8.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/blocked/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/blocked/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs24 === errors;}else {var valid3 = true;}if(valid3){if(data1.neverSpam !== undefined){let data14 = data1.neverSpam;const _errs42 = errors;if((!(data14 && typeof data14 == "object" && !Array.isArray(data14))) && (data14 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/neverSpam/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs45 = errors;const _errs48 = errors;if(errors === _errs48){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.setAt !== undefined){let data15 = data14.setAt;const _errs50 = errors;if(!((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs50){if(typeof data15 == "number"){if(!(formats24.validate(data15))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid16 = _errs50 === errors;}else {var valid16 = true;}if(valid16){if(data14.setBy !== undefined){const _errs52 = errors;if(typeof data14.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid16 = _errs52 === errors;}else {var valid16 = true;}if(valid16){if(data14.expiresAt !== undefined){let data17 = data14.expiresAt;const _errs54 = errors;if(!((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs54){if(typeof data17 == "number"){if(!(formats24.validate(data17))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid16 = _errs54 === errors;}else {var valid16 = true;}if(valid16){if(data14.reason !== undefined){const _errs56 = errors;if(typeof data14.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid16 = _errs56 === errors;}else {var valid16 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs45){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.value !== undefined){if(typeof data14.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/neverSpam/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/neverSpam/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs42 === errors;}else {var valid3 = true;}if(valid3){if(data1.muted !== undefined){let data20 = data1.muted;const _errs60 = errors;if((!(data20 && typeof data20 == "object" && !Array.isArray(data20))) && (data20 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/muted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs63 = errors;const _errs66 = errors;if(errors === _errs66){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.setAt !== undefined){let data21 = data20.setAt;const _errs68 = errors;if(!((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs68){if(typeof data21 == "number"){if(!(formats24.validate(data21))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid21 = _errs68 === errors;}else {var valid21 = true;}if(valid21){if(data20.setBy !== undefined){const _errs70 = errors;if(typeof data20.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid21 = _errs70 === errors;}else {var valid21 = true;}if(valid21){if(data20.expiresAt !== undefined){let data23 = data20.expiresAt;const _errs72 = errors;if(!((typeof data23 == "number") && (!(data23 % 1) && !isNaN(data23)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs72){if(typeof data23 == "number"){if(!(formats24.validate(data23))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid21 = _errs72 === errors;}else {var valid21 = true;}if(valid21){if(data20.reason !== undefined){const _errs74 = errors;if(typeof data20.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid21 = _errs74 === errors;}else {var valid21 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs63){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.value !== undefined){if(typeof data20.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/muted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/muted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs60 === errors;}else {var valid3 = true;}if(valid3){if(data1.vip !== undefined){let data26 = data1.vip;const _errs78 = errors;if((!(data26 && typeof data26 == "object" && !Array.isArray(data26))) && (data26 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/vip/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs81 = errors;const _errs84 = errors;if(errors === _errs84){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.setAt !== undefined){let data27 = data26.setAt;const _errs86 = errors;if(!((typeof data27 == "number") && (!(data27 % 1) && !isNaN(data27)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs86){if(typeof data27 == "number"){if(!(formats24.validate(data27))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid26 = _errs86 === errors;}else {var valid26 = true;}if(valid26){if(data26.setBy !== undefined){const _errs88 = errors;if(typeof data26.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs88 === errors;}else {var valid26 = true;}if(valid26){if(data26.expiresAt !== undefined){let data29 = data26.expiresAt;const _errs90 = errors;if(!((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs90){if(typeof data29 == "number"){if(!(formats24.validate(data29))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid26 = _errs90 === errors;}else {var valid26 = true;}if(valid26){if(data26.reason !== undefined){const _errs92 = errors;if(typeof data26.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs92 === errors;}else {var valid26 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs81){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.value !== undefined){if(typeof data26.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/vip/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/vip/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs78 === errors;}else {var valid3 = true;}if(valid3){if(data1.wellknown !== undefined){let data32 = data1.wellknown;const _errs96 = errors;if((!(data32 && typeof data32 == "object" && !Array.isArray(data32))) && (data32 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/wellknown/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs99 = errors;const _errs102 = errors;if(errors === _errs102){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.setAt !== undefined){let data33 = data32.setAt;const _errs104 = errors;if(!((typeof data33 == "number") && (!(data33 % 1) && !isNaN(data33)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs104){if(typeof data33 == "number"){if(!(formats24.validate(data33))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid31 = _errs104 === errors;}else {var valid31 = true;}if(valid31){if(data32.setBy !== undefined){const _errs106 = errors;if(typeof data32.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid31 = _errs106 === errors;}else {var valid31 = true;}if(valid31){if(data32.expiresAt !== undefined){let data35 = data32.expiresAt;const _errs108 = errors;if(!((typeof data35 == "number") && (!(data35 % 1) && !isNaN(data35)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs108){if(typeof data35 == "number"){if(!(formats24.validate(data35))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid31 = _errs108 === errors;}else {var valid31 = true;}if(valid31){if(data32.reason !== undefined){const _errs110 = errors;if(typeof data32.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid31 = _errs110 === errors;}else {var valid31 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs99){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/wellknown/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/wellknown/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs96 === errors;}else {var valid3 = true;}if(valid3){if(data1.junkOnly !== undefined){let data38 = data1.junkOnly;const _errs114 = errors;if((!(data38 && typeof data38 == "object" && !Array.isArray(data38))) && (data38 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/junkOnly/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs117 = errors;const _errs120 = errors;if(errors === _errs120){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.setAt !== undefined){let data39 = data38.setAt;const _errs122 = errors;if(!((typeof data39 == "number") && (!(data39 % 1) && !isNaN(data39)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs122){if(typeof data39 == "number"){if(!(formats24.validate(data39))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid36 = _errs122 === errors;}else {var valid36 = true;}if(valid36){if(data38.setBy !== undefined){const _errs124 = errors;if(typeof data38.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid36 = _errs124 === errors;}else {var valid36 = true;}if(valid36){if(data38.expiresAt !== undefined){let data41 = data38.expiresAt;const _errs126 = errors;if(!((typeof data41 == "number") && (!(data41 % 1) && !isNaN(data41)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs126){if(typeof data41 == "number"){if(!(formats24.validate(data41))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid36 = _errs126 === errors;}else {var valid36 = true;}if(valid36){if(data38.reason !== undefined){const _errs128 = errors;if(typeof data38.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid36 = _errs128 === errors;}else {var valid36 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs117){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/junkOnly/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/junkOnly/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs114 === errors;}else {var valid3 = true;}if(valid3){if(data1.category !== undefined){let data44 = data1.category;const _errs132 = errors;if((!(data44 && typeof data44 == "object" && !Array.isArray(data44))) && (data44 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs135 = errors;const _errs138 = errors;if(errors === _errs138){if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.setAt !== undefined){let data45 = data44.setAt;const _errs140 = errors;if(!((typeof data45 == "number") && (!(data45 % 1) && !isNaN(data45)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs140){if(typeof data45 == "number"){if(!(formats24.validate(data45))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid41 = _errs140 === errors;}else {var valid41 = true;}if(valid41){if(data44.setBy !== undefined){const _errs142 = errors;if(typeof data44.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid41 = _errs142 === errors;}else {var valid41 = true;}if(valid41){if(data44.expiresAt !== undefined){let data47 = data44.expiresAt;const _errs144 = errors;if(!((typeof data47 == "number") && (!(data47 % 1) && !isNaN(data47)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs144){if(typeof data47 == "number"){if(!(formats24.validate(data47))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid41 = _errs144 === errors;}else {var valid41 = true;}if(valid41){if(data44.reason !== undefined){const _errs146 = errors;if(typeof data44.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid41 = _errs146 === errors;}else {var valid41 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs135){if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.value !== undefined){let data49 = data44.value;if(typeof data49 !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/allOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data49 === "uncategorized") || (data49 === "personal")) || (data49 === "newsletter")) || (data49 === "marketing")) || (data49 === "automated")) || (data49 === "transactional")) || (data49 === "social"))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/allOf/0/properties/value/enum",keyword:"enum",params:{allowedValues: schema26.properties.requestBody.properties.flags.allOf[0].properties.category.allOf[0].properties.value.enum},message:"must be equal to one of the allowed values"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs132 === errors;}else {var valid3 = true;}if(valid3){if(data1.autoArchive !== undefined){let data50 = data1.autoArchive;const _errs150 = errors;if((!(data50 && typeof data50 == "object" && !Array.isArray(data50))) && (data50 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/autoArchive/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs153 = errors;const _errs156 = errors;if(errors === _errs156){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.setAt !== undefined){let data51 = data50.setAt;const _errs158 = errors;if(!((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs158){if(typeof data51 == "number"){if(!(formats24.validate(data51))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid46 = _errs158 === errors;}else {var valid46 = true;}if(valid46){if(data50.setBy !== undefined){const _errs160 = errors;if(typeof data50.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid46 = _errs160 === errors;}else {var valid46 = true;}if(valid46){if(data50.expiresAt !== undefined){let data53 = data50.expiresAt;const _errs162 = errors;if(!((typeof data53 == "number") && (!(data53 % 1) && !isNaN(data53)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs162){if(typeof data53 == "number"){if(!(formats24.validate(data53))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid46 = _errs162 === errors;}else {var valid46 = true;}if(valid46){if(data50.reason !== undefined){const _errs164 = errors;if(typeof data50.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid46 = _errs164 === errors;}else {var valid46 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs153){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.value !== undefined){if(typeof data50.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/autoArchive/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/autoArchive/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs150 === errors;}else {var valid3 = true;}if(valid3){if(data1.unsubscribed !== undefined){let data56 = data1.unsubscribed;const _errs168 = errors;if((!(data56 && typeof data56 == "object" && !Array.isArray(data56))) && (data56 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/unsubscribed/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs171 = errors;const _errs174 = errors;if(errors === _errs174){if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.setAt !== undefined){let data57 = data56.setAt;const _errs176 = errors;if(!((typeof data57 == "number") && (!(data57 % 1) && !isNaN(data57)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs176){if(typeof data57 == "number"){if(!(formats24.validate(data57))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid51 = _errs176 === errors;}else {var valid51 = true;}if(valid51){if(data56.setBy !== undefined){const _errs178 = errors;if(typeof data56.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid51 = _errs178 === errors;}else {var valid51 = true;}if(valid51){if(data56.expiresAt !== undefined){let data59 = data56.expiresAt;const _errs180 = errors;if(!((typeof data59 == "number") && (!(data59 % 1) && !isNaN(data59)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs180){if(typeof data59 == "number"){if(!(formats24.validate(data59))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid51 = _errs180 === errors;}else {var valid51 = true;}if(valid51){if(data56.reason !== undefined){const _errs182 = errors;if(typeof data56.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid51 = _errs182 === errors;}else {var valid51 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs171){if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.value !== undefined){if(typeof data56.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/unsubscribed/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/unsubscribed/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs168 === errors;}else {var valid3 = true;}}}}}}}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.clearFlags !== undefined){let data62 = data0.clearFlags;const _errs186 = errors;if(errors === _errs186){if(Array.isArray(data62)){var valid53 = true;const len0 = data62.length;for(let i0=0; i0<len0; i0++){let data63 = data62[i0];const _errs188 = errors;if(typeof data63 !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/clearFlags/" + i0,schemaPath:"#/properties/requestBody/properties/clearFlags/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data63 === "trusted") || (data63 === "blocked")) || (data63 === "muted")) || (data63 === "vip")) || (data63 === "junkOnly")) || (data63 === "category")) || (data63 === "autoArchive")) || (data63 === "unsubscribed")) || (data63 === "neverSpam"))){validate23.errors = [{instancePath:instancePath+"/requestBody/clearFlags/" + i0,schemaPath:"#/properties/requestBody/properties/clearFlags/items/enum",keyword:"enum",params:{allowedValues: schema26.properties.requestBody.properties.clearFlags.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid53 = _errs188 === errors;if(!valid53){break;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/clearFlags",schemaPath:"#/properties/requestBody/properties/clearFlags/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs186 === errors;}else {var valid1 = true;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate23.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate23.errors = vErrors;return errors === 0;}exports.CalendarEventOperations_createCalendarEvent = validate24;const schema36 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["calendarId","summary","start","end"],"properties":{"calendarId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Collection to write the event into"},"summary":{"allOf":[{"type":"string","maxLength":512}],"description":"SUMMARY of the event"},"description":{"allOf":[{"type":"string","maxLength":2048}],"description":"DESCRIPTION of the event. Absent writes none."},"location":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"LOCATION of the event. Absent writes none."},"start":{"allOf":[{"type":"string","maxLength":64}],"description":"When the event starts: an ISO 8601 date-time with zone offset, or a `YYYY-MM-DD` date when `allDay` is set."},"end":{"allOf":[{"$ref":"#/properties/requestBody/properties/start/allOf/0"}],"description":"When the event ends, in the same form as `start`. Exclusive for an all-day event, per RFC 5545 3.6.1."},"allDay":{"type":"boolean","description":"Whether this is an all-day event, whose times are civil dates rather than instants"},"timeZone":{"allOf":[{"$ref":"#/properties/requestBody/properties/start/allOf/0"}],"description":"IANA time zone the event is anchored in, e.g. \"Europe/Amsterdam\", written as the DTSTART TZID. Absent anchors the event in UTC. Refused with 400 when the zone is one this server cannot resolve — a calendar that accepted an unknown zone would draw the event hours away from where it belongs."},"status":{"allOf":[{"type":"string","enum":["Confirmed","Tentative","Cancelled"],"description":"Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated."}],"description":"STATUS of the event"},"transparency":{"allOf":[{"type":"string","enum":["Opaque","Transparent"],"description":"Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default."}],"description":"TRANSP of the event — whether it consumes free/busy time"},"recurrenceRule":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"RRULE value for a recurring event, e.g. \"FREQ=WEEKLY;BYDAY=MO\" (RFC 5545 3.8.5.3), without the property name. `\"\"` creates a single event. Refused with 400 when it is not a rule this server can read."},"attendees":{"type":"array","items":{"type":"object","required":["email","displayName"],"properties":{"email":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"The guest's mail address"},"displayName":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"The guest's name. The address itself when the contact has none."}},"description":"A guest as the event editor sends one."},"description":"The guests. Each gets an invitation from the organizer's account, queued in the same write. Absent or empty creates an event nobody is invited to."},"organizerAccountId":{"allOf":[{"$ref":"#/properties/requestBody/properties/calendarId/allOf/0"}],"description":"The account the event is organized and its invitations sent from. Refused with 400 `unknown_organizer` when it is not an account of the caller's account config, or `organizer_cannot_send` when that account has Mail turned off. Absent, an event with guests is sent from the default invitation sender in effect (`getUserSettings`)."}},"description":"Input for creating an event (issue #15). The server builds the VEVENT and\nwrites it through the single calendar write path, so an event created here,\none accepted from an invitation, and one PUT over CalDAV are the same bytes\nwritten the same way.\n\nTimes are ISO 8601 with zone offset — or a bare `YYYY-MM-DD` date when\n`allDay` is set. The offset pins the instant; `timeZone` names the zone the\nevent is anchored in, which is what a recurring event needs to survive a DST\ntransition. An offset alone cannot: a weekly 09:00 meeting written as\n`+02:00` becomes an 08:00 meeting in November."}},"required":["requestBody"],"$id":"CalendarEventOperations_createCalendarEvent"};const schema37 = {"type":"string","maxLength":512};const schema38 = {"type":"string","maxLength":64};const schema43 = {"type":"string","minLength":25,"maxLength":25};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarEventOperations_createCalendarEvent" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate24.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.calendarId === undefined) && (missing1 = "calendarId")) || ((data0.summary === undefined) && (missing1 = "summary"))) || ((data0.start === undefined) && (missing1 = "start"))) || ((data0.end === undefined) && (missing1 = "end"))){validate24.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.calendarId !== undefined){let data1 = data0.calendarId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate24.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate24.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.summary !== undefined){let data2 = data0.summary;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data3 = data0.description;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func2(data3) > 2048){validate24.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.location !== undefined){let data4 = data0.location;const _errs13 = errors;const _errs15 = errors;if(errors === _errs15){if(typeof data4 === "string"){if(func2(data4) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.start !== undefined){let data5 = data0.start;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data5 === "string"){if(func2(data5) > 64){validate24.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.end !== undefined){let data6 = data0.end;const _errs20 = errors;const _errs22 = errors;if(errors === _errs22){if(typeof data6 === "string"){if(func2(data6) > 64){validate24.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs24 = errors;if(typeof data0.allDay !== "boolean"){validate24.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs24 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data8 = data0.timeZone;const _errs26 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data8 === "string"){if(func2(data8) > 64){validate24.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.status !== undefined){let data9 = data0.status;const _errs30 = errors;if(typeof data9 !== "string"){validate24.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data9 === "Confirmed") || (data9 === "Tentative")) || (data9 === "Cancelled"))){validate24.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/allOf/0/enum",keyword:"enum",params:{allowedValues: schema36.properties.requestBody.properties.status.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs30 === errors;}else {var valid1 = true;}if(valid1){if(data0.transparency !== undefined){let data10 = data0.transparency;const _errs33 = errors;if(typeof data10 !== "string"){validate24.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data10 === "Opaque") || (data10 === "Transparent"))){validate24.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/allOf/0/enum",keyword:"enum",params:{allowedValues: schema36.properties.requestBody.properties.transparency.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs33 === errors;}else {var valid1 = true;}if(valid1){if(data0.recurrenceRule !== undefined){let data11 = data0.recurrenceRule;const _errs36 = errors;const _errs38 = errors;if(errors === _errs38){if(typeof data11 === "string"){if(func2(data11) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs36 === errors;}else {var valid1 = true;}if(valid1){if(data0.attendees !== undefined){let data12 = data0.attendees;const _errs40 = errors;if(errors === _errs40){if(Array.isArray(data12)){var valid16 = true;const len0 = data12.length;for(let i0=0; i0<len0; i0++){let data13 = data12[i0];const _errs42 = errors;if(errors === _errs42){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing2;if(((data13.email === undefined) && (missing2 = "email")) || ((data13.displayName === undefined) && (missing2 = "displayName"))){validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data13.email !== undefined){let data14 = data13.email;const _errs44 = errors;const _errs46 = errors;if(errors === _errs46){if(typeof data14 === "string"){if(func2(data14) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid17 = _errs44 === errors;}else {var valid17 = true;}if(valid17){if(data13.displayName !== undefined){let data15 = data13.displayName;const _errs48 = errors;const _errs50 = errors;if(errors === _errs50){if(typeof data15 === "string"){if(func2(data15) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid17 = _errs48 === errors;}else {var valid17 = true;}}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid16 = _errs42 === errors;if(!valid16){break;}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees",schemaPath:"#/properties/requestBody/properties/attendees/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs40 === errors;}else {var valid1 = true;}if(valid1){if(data0.organizerAccountId !== undefined){let data16 = data0.organizerAccountId;const _errs52 = errors;const _errs54 = errors;if(errors === _errs54){if(typeof data16 === "string"){if(func2(data16) > 25){validate24.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data16) < 25){validate24.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs52 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate24.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate24.errors = vErrors;return errors === 0;}exports.CalendarEventDetailOperations_updateCalendarEvent = validate25;const schema44 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"summary":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":2048},"location":{"$ref":"#/properties/requestBody/properties/summary"},"start":{"type":"string","maxLength":64},"end":{"$ref":"#/properties/requestBody/properties/start"},"allDay":{"type":"boolean"},"timeZone":{"$ref":"#/properties/requestBody/properties/start"},"status":{"type":"string","enum":["Confirmed","Tentative","Cancelled"],"description":"Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated."},"transparency":{"type":"string","enum":["Opaque","Transparent"],"description":"Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default."},"recurrenceRule":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary"}],"description":"RRULE value, or `\"\"` to drop the rule. Only meaningful with `scope=All` or `scope=Following`: an override is one occurrence and carries no rule of its own."},"attendees":{"type":"array","items":{"type":"object","required":["email","displayName"],"properties":{"email":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary"}],"description":"The guest's mail address"},"displayName":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary"}],"description":"The guest's name. The address itself when the contact has none."}},"description":"A guest as the event editor sends one."},"description":"The whole guest list after the edit. A new guest gets an invitation and a removed one a cancellation. Refused with 400 `not_organizer` on an event the reader does not organize."},"organizerAccountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"The account that organizes the event, for an event that names no organizer yet. Refused with 400 `not_organizer` when the event already names a different one: the organizer never changes."},"answer":{"allOf":[{"type":"string","enum":["Accepted","Tentative","Declined"],"description":"The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12)."}],"description":"The reader's answer as a guest. Writes their PARTSTAT and queues a REPLY to the organizer. `scope` `This` answers one occurrence and `All` the series; `Following` is refused with 400. Refused with 400 `not_a_guest` when the reader organizes the event or is not on its guest list."}},"description":"Input for updating an event. Every field is optional and absence means\nuntouched — a patch that carries only `summary` renames the event and moves\nnothing.\n\nWhat the patch applies to is the `scope` parameter's business: `All` rewrites\nthe master, `This` writes a RECURRENCE-ID override for one occurrence, and\n`Following` splits the series at one occurrence and applies the patch to the\nremainder."}},"required":["requestBody"],"$id":"CalendarEventDetailOperations_updateCalendarEvent"};const schema45 = {"type":"string","maxLength":512};const schema46 = {"type":"string","maxLength":64};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarEventDetailOperations_updateCalendarEvent" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate25.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.summary !== undefined){let data1 = data0.summary;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func2(data1) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data2 = data0.description;const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 2048){validate25.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.location !== undefined){let data3 = data0.location;const _errs8 = errors;const _errs9 = errors;if(errors === _errs9){if(typeof data3 === "string"){if(func2(data3) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.start !== undefined){let data4 = data0.start;const _errs11 = errors;if(errors === _errs11){if(typeof data4 === "string"){if(func2(data4) > 64){validate25.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.end !== undefined){let data5 = data0.end;const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(typeof data5 === "string"){if(func2(data5) > 64){validate25.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs16 = errors;if(typeof data0.allDay !== "boolean"){validate25.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data7 = data0.timeZone;const _errs18 = errors;const _errs19 = errors;if(errors === _errs19){if(typeof data7 === "string"){if(func2(data7) > 64){validate25.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}if(valid1){if(data0.status !== undefined){let data8 = data0.status;const _errs21 = errors;if(typeof data8 !== "string"){validate25.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data8 === "Confirmed") || (data8 === "Tentative")) || (data8 === "Cancelled"))){validate25.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/enum",keyword:"enum",params:{allowedValues: schema44.properties.requestBody.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.transparency !== undefined){let data9 = data0.transparency;const _errs23 = errors;if(typeof data9 !== "string"){validate25.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data9 === "Opaque") || (data9 === "Transparent"))){validate25.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/enum",keyword:"enum",params:{allowedValues: schema44.properties.requestBody.properties.transparency.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.recurrenceRule !== undefined){let data10 = data0.recurrenceRule;const _errs25 = errors;const _errs27 = errors;if(errors === _errs27){if(typeof data10 === "string"){if(func2(data10) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.attendees !== undefined){let data11 = data0.attendees;const _errs29 = errors;if(errors === _errs29){if(Array.isArray(data11)){var valid7 = true;const len0 = data11.length;for(let i0=0; i0<len0; i0++){let data12 = data11[i0];const _errs31 = errors;if(errors === _errs31){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing1;if(((data12.email === undefined) && (missing1 = "email")) || ((data12.displayName === undefined) && (missing1 = "displayName"))){validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data12.email !== undefined){let data13 = data12.email;const _errs33 = errors;const _errs35 = errors;if(errors === _errs35){if(typeof data13 === "string"){if(func2(data13) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs33 === errors;}else {var valid8 = true;}if(valid8){if(data12.displayName !== undefined){let data14 = data12.displayName;const _errs37 = errors;const _errs39 = errors;if(errors === _errs39){if(typeof data14 === "string"){if(func2(data14) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs37 === errors;}else {var valid8 = true;}}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs31 === errors;if(!valid7){break;}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees",schemaPath:"#/properties/requestBody/properties/attendees/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data0.organizerAccountId !== undefined){let data15 = data0.organizerAccountId;const _errs41 = errors;const _errs42 = errors;if(errors === _errs42){if(typeof data15 === "string"){if(func2(data15) > 25){validate25.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/organizerAccountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data15) < 25){validate25.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/organizerAccountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/organizerAccountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs41 === errors;}else {var valid1 = true;}if(valid1){if(data0.answer !== undefined){let data16 = data0.answer;const _errs44 = errors;if(typeof data16 !== "string"){validate25.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data16 === "Accepted") || (data16 === "Tentative")) || (data16 === "Declined"))){validate25.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/enum",keyword:"enum",params:{allowedValues: schema44.properties.requestBody.properties.answer.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs44 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;return errors === 0;}exports.CalendarSuggestionActionOperations_acceptCalendarSuggestion = validate26;const schema51 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["calendarId"],"properties":{"calendarId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Collection the accepted event is written into."},"answer":{"allOf":[{"type":"string","enum":["Accepted","Tentative","Declined"],"description":"The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12)."}],"description":"How the user answers. `Tentative` adds the event as a maybe. Refused with 400 on a `Cancel` suggestion, which has nothing to answer tentatively.","default":"Accepted"},"event":{"allOf":[{"type":"object","properties":{"summary":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":2048},"location":{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"},"start":{"type":"string","maxLength":64},"end":{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/start"},"allDay":{"type":"boolean"},"timeZone":{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/start"},"status":{"type":"string","enum":["Confirmed","Tentative","Cancelled"],"description":"Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated."},"transparency":{"type":"string","enum":["Opaque","Transparent"],"description":"Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default."},"recurrenceRule":{"allOf":[{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"}],"description":"RRULE value, or `\"\"` to drop the rule. Only meaningful with `scope=All` or `scope=Following`: an override is one occurrence and carries no rule of its own."},"attendees":{"type":"array","items":{"type":"object","required":["email","displayName"],"properties":{"email":{"allOf":[{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"}],"description":"The guest's mail address"},"displayName":{"allOf":[{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"}],"description":"The guest's name. The address itself when the contact has none."}},"description":"A guest as the event editor sends one."},"description":"The whole guest list after the edit. A new guest gets an invitation and a removed one a cancellation. Refused with 400 `not_organizer` on an event the reader does not organize."},"organizerAccountId":{"allOf":[{"$ref":"#/properties/requestBody/properties/calendarId/allOf/0"}],"description":"The account that organizes the event, for an event that names no organizer yet. Refused with 400 `not_organizer` when the event already names a different one: the organizer never changes."},"answer":{"allOf":[{"$ref":"#/properties/requestBody/properties/answer/allOf/0"}],"description":"The reader's answer as a guest. Writes their PARTSTAT and queues a REPLY to the organizer. `scope` `This` answers one occurrence and `All` the series; `Following` is refused with 400. Refused with 400 `not_a_guest` when the reader organizes the event or is not on its guest list."}},"description":"Input for updating an event. Every field is optional and absence means\nuntouched — a patch that carries only `summary` renames the event and moves\nnothing.\n\nWhat the patch applies to is the `scope` parameter's business: `All` rewrites\nthe master, `This` writes a RECURRENCE-ID override for one occurrence, and\n`Following` splits the series at one occurrence and applies the patch to the\nremainder."}],"description":"Corrections the reader made before adding it, applied to the invitation's master VEVENT. A field left out keeps what the invitation said; omitted, the invitation is added as it arrived. Refused with 400 on a `Cancel` suggestion, which names no event to correct."}},"description":"Body of `POST /calendar-suggestions/{suggestionId}/accept`. Names the collection the event is written into; there is no default, because filing someone else's invitation into a calendar the user did not pick is a decision the server does not get to make."}},"required":["requestBody"],"$id":"CalendarSuggestionActionOperations_acceptCalendarSuggestion"};const schema52 = {"type":"string","maxLength":512};const schema53 = {"type":"string","maxLength":64};const schema58 = {"type":"string","minLength":25,"maxLength":25};const schema59 = {"type":"string","enum":["Accepted","Tentative","Declined"],"description":"The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12)."};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarSuggestionActionOperations_acceptCalendarSuggestion" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate26.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.calendarId === undefined) && (missing1 = "calendarId")){validate26.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.calendarId !== undefined){let data1 = data0.calendarId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate26.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate26.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.answer !== undefined){let data2 = data0.answer;const _errs7 = errors;if(typeof data2 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data2 === "Accepted") || (data2 === "Tentative")) || (data2 === "Declined"))){validate26.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/enum",keyword:"enum",params:{allowedValues: schema51.properties.requestBody.properties.answer.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.event !== undefined){let data3 = data0.event;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.summary !== undefined){let data4 = data3.summary;const _errs13 = errors;if(errors === _errs13){if(typeof data4 === "string"){if(func2(data4) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/summary",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/summary",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data3.description !== undefined){let data5 = data3.description;const _errs15 = errors;if(errors === _errs15){if(typeof data5 === "string"){if(func2(data5) > 2048){validate26.errors = [{instancePath:instancePath+"/requestBody/event/description",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/description/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/description",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs15 === errors;}else {var valid5 = true;}if(valid5){if(data3.location !== undefined){let data6 = data3.location;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data6 === "string"){if(func2(data6) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/location",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/location",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs17 === errors;}else {var valid5 = true;}if(valid5){if(data3.start !== undefined){let data7 = data3.start;const _errs20 = errors;if(errors === _errs20){if(typeof data7 === "string"){if(func2(data7) > 64){validate26.errors = [{instancePath:instancePath+"/requestBody/event/start",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/start",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data3.end !== undefined){let data8 = data3.end;const _errs22 = errors;const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(func2(data8) > 64){validate26.errors = [{instancePath:instancePath+"/requestBody/event/end",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/end",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs22 === errors;}else {var valid5 = true;}if(valid5){if(data3.allDay !== undefined){const _errs25 = errors;if(typeof data3.allDay !== "boolean"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/allDay",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data3.timeZone !== undefined){let data10 = data3.timeZone;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(func2(data10) > 64){validate26.errors = [{instancePath:instancePath+"/requestBody/event/timeZone",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/timeZone",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data3.status !== undefined){let data11 = data3.status;const _errs30 = errors;if(typeof data11 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/status",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data11 === "Confirmed") || (data11 === "Tentative")) || (data11 === "Cancelled"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/status",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/status/enum",keyword:"enum",params:{allowedValues: schema51.properties.requestBody.properties.event.allOf[0].properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs30 === errors;}else {var valid5 = true;}if(valid5){if(data3.transparency !== undefined){let data12 = data3.transparency;const _errs32 = errors;if(typeof data12 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/transparency",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/transparency/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data12 === "Opaque") || (data12 === "Transparent"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/transparency",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/transparency/enum",keyword:"enum",params:{allowedValues: schema51.properties.requestBody.properties.event.allOf[0].properties.transparency.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}if(valid5){if(data3.recurrenceRule !== undefined){let data13 = data3.recurrenceRule;const _errs34 = errors;const _errs36 = errors;if(errors === _errs36){if(typeof data13 === "string"){if(func2(data13) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/recurrenceRule",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/recurrenceRule",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs34 === errors;}else {var valid5 = true;}if(valid5){if(data3.attendees !== undefined){let data14 = data3.attendees;const _errs38 = errors;if(errors === _errs38){if(Array.isArray(data14)){var valid11 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs40 = errors;if(errors === _errs40){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing2;if(((data15.email === undefined) && (missing2 = "email")) || ((data15.displayName === undefined) && (missing2 = "displayName"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/attendees/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data15.email !== undefined){let data16 = data15.email;const _errs42 = errors;const _errs44 = errors;if(errors === _errs44){if(typeof data16 === "string"){if(func2(data16) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid12 = _errs42 === errors;}else {var valid12 = true;}if(valid12){if(data15.displayName !== undefined){let data17 = data15.displayName;const _errs46 = errors;const _errs48 = errors;if(errors === _errs48){if(typeof data17 === "string"){if(func2(data17) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid12 = _errs46 === errors;}else {var valid12 = true;}}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/attendees/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid11 = _errs40 === errors;if(!valid11){break;}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/attendees/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid5 = _errs38 === errors;}else {var valid5 = true;}if(valid5){if(data3.organizerAccountId !== undefined){let data18 = data3.organizerAccountId;const _errs50 = errors;const _errs52 = errors;if(errors === _errs52){if(typeof data18 === "string"){if(func2(data18) > 25){validate26.errors = [{instancePath:instancePath+"/requestBody/event/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data18) < 25){validate26.errors = [{instancePath:instancePath+"/requestBody/event/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs50 === errors;}else {var valid5 = true;}if(valid5){if(data3.answer !== undefined){let data19 = data3.answer;const _errs54 = errors;if(typeof data19 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data19 === "Accepted") || (data19 === "Tentative")) || (data19 === "Declined"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/enum",keyword:"enum",params:{allowedValues: schema59.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs54 === errors;}else {var valid5 = true;}}}}}}}}}}}}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event",schemaPath:"#/properties/requestBody/properties/event/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}}}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate26.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate26.errors = vErrors;return errors === 0;}exports.CalendarSuggestionActionOperations_dismissCalendarSuggestion = validate27;const schema60 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["muteSender"],"properties":{"muteSender":{"type":"boolean","description":"Also stop offering invitations from this message's sender, by writing a standing `Filter` rule. `false` dismisses this one card and nothing else.","default":false}},"description":"Body of `POST /calendar-suggestions/{suggestionId}/dismiss`."}},"required":["requestBody"],"$id":"CalendarSuggestionActionOperations_dismissCalendarSuggestion"};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarSuggestionActionOperations_dismissCalendarSuggestion" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate27.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.muteSender === undefined) && (missing1 = "muteSender")){validate27.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.muteSender !== undefined){if(typeof data0.muteSender !== "boolean"){validate27.errors = [{instancePath:instancePath+"/requestBody/muteSender",schemaPath:"#/properties/requestBody/properties/muteSender/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}}else {validate27.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}exports.CalendarTaskOperations_createCalendarTask = validate28;const schema61 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["summary","due"],"properties":{"calendarId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Collection to write the task into. Absent writes it into the account config's task collection. Refused with 400 when it names a collection that is not `VtodoOnly`."},"summary":{"allOf":[{"type":"string","maxLength":512}],"description":"SUMMARY of the task"},"description":{"allOf":[{"type":"string","maxLength":2048}],"description":"DESCRIPTION of the task. Absent writes none."},"due":{"allOf":[{"type":"string","maxLength":64}],"description":"When the task is due: an ISO 8601 date-time with zone offset, or a `YYYY-MM-DD` date when `allDay` is set."},"allDay":{"type":"boolean","description":"Whether the task is due on a day rather than at a time"},"timeZone":{"allOf":[{"$ref":"#/properties/requestBody/properties/due/allOf/0"}],"description":"IANA time zone the due time is anchored in. Absent anchors it in UTC."}},"description":"Input for creating a task. The server builds the VTODO."}},"required":["requestBody"],"$id":"CalendarTaskOperations_createCalendarTask"};const schema62 = {"type":"string","maxLength":64};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarTaskOperations_createCalendarTask" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate28.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.summary === undefined) && (missing1 = "summary")) || ((data0.due === undefined) && (missing1 = "due"))){validate28.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.calendarId !== undefined){let data1 = data0.calendarId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate28.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate28.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.summary !== undefined){let data2 = data0.summary;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 512){validate28.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data3 = data0.description;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func2(data3) > 2048){validate28.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.due !== undefined){let data4 = data0.due;const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(typeof data4 === "string"){if(func2(data4) > 64){validate28.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs16 = errors;if(typeof data0.allDay !== "boolean"){validate28.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data6 = data0.timeZone;const _errs18 = errors;const _errs20 = errors;if(errors === _errs20){if(typeof data6 === "string"){if(func2(data6) > 64){validate28.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}}}}}}}}else {validate28.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate28.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate28.errors = vErrors;return errors === 0;}exports.CalendarTaskDetailOperations_updateCalendarTask = validate29;const schema63 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"summary":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":2048},"due":{"type":"string","maxLength":64},"allDay":{"type":"boolean"},"timeZone":{"$ref":"#/properties/requestBody/properties/due"},"completed":{"type":"boolean","description":"Marks the task done (`STATUS:COMPLETED`) or not done again (`STATUS:NEEDS-ACTION`)"}},"description":"Input for updating a task. Every field is optional and absence means untouched."}},"required":["requestBody"],"$id":"CalendarTaskDetailOperations_updateCalendarTask"};const schema64 = {"type":"string","maxLength":64};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarTaskDetailOperations_updateCalendarTask" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate29.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.summary !== undefined){let data1 = data0.summary;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func2(data1) > 512){validate29.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data2 = data0.description;const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 2048){validate29.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.due !== undefined){let data3 = data0.due;const _errs8 = errors;if(errors === _errs8){if(typeof data3 === "string"){if(func2(data3) > 64){validate29.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs10 = errors;if(typeof data0.allDay !== "boolean"){validate29.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data5 = data0.timeZone;const _errs12 = errors;const _errs13 = errors;if(errors === _errs13){if(typeof data5 === "string"){if(func2(data5) > 64){validate29.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.completed !== undefined){const _errs15 = errors;if(typeof data0.completed !== "boolean"){validate29.errors = [{instancePath:instancePath+"/requestBody/completed",schemaPath:"#/properties/requestBody/properties/completed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}}}}}}}else {validate29.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate29.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate29.errors = vErrors;return errors === 0;}exports.CalendarOperations_createCalendar = validate30;const schema65 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["displayName","urlSegment"],"properties":{"displayName":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable collection name (display)"},"urlSegment":{"allOf":[{"type":"string","maxLength":64}],"description":"Path segment addressing this collection, unique within the account config. Case-folded on write, so \"Work\" and \"work\" name the same collection and the second create is refused rather than silently merged into the first."},"color":{"allOf":[{"type":"string","enum":["Cal1","Cal2","Cal3","Cal4","Cal5","Cal6"],"description":"Display color for a calendar collection. Positional rather than named: the palette is a client-side concern, so the store carries the slot and the client owns what it renders (issue #15)."}],"description":"Display colour slot. Absent takes the collection's own default."},"timezone":{"allOf":[{"$ref":"#/properties/requestBody/properties/urlSegment/allOf/0"}],"description":"IANA time zone this collection's floating times are read in. Absent reads them as UTC."},"subscriptionUrl":{"allOf":[{"type":"string","maxLength":2048}],"description":"A read-only iCalendar URL to subscribe the collection to. `http`, `https` and `webcal` are accepted. The server fetches it once before creating anything and refuses with 400 when the fetch fails, so a mistyped address leaves no empty calendar behind. The collection is then `Subscribed`: it refuses event writes, and the scheduled refresh keeps it in step with the feed."}},"description":"Input for creating a calendar collection (issue #15).\n\n`urlSegment` is supplied rather than derived from the display name: it is the\ncollection's identity — `calendarId` is a hash of it — and the path a CalDAV\nclient will later bookmark. Slugging a name would make two calendars called\n\"Work\" one row, and a rename would either move a bookmarked path or leave a\nsegment that no longer matches anything a person recognises. The name is the\nmutable overlay; this is the address."}},"required":["requestBody"],"$id":"CalendarOperations_createCalendar"};const schema66 = {"type":"string","maxLength":64};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarOperations_createCalendar" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate30.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.displayName === undefined) && (missing1 = "displayName")) || ((data0.urlSegment === undefined) && (missing1 = "urlSegment"))){validate30.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.displayName !== undefined){let data1 = data0.displayName;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate30.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.urlSegment !== undefined){let data2 = data0.urlSegment;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 64){validate30.errors = [{instancePath:instancePath+"/requestBody/urlSegment",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/urlSegment",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data3 = data0.color;const _errs10 = errors;if(typeof data3 !== "string"){validate30.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data3 === "Cal1") || (data3 === "Cal2")) || (data3 === "Cal3")) || (data3 === "Cal4")) || (data3 === "Cal5")) || (data3 === "Cal6"))){validate30.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema65.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.timezone !== undefined){let data4 = data0.timezone;const _errs13 = errors;const _errs15 = errors;if(errors === _errs15){if(typeof data4 === "string"){if(func2(data4) > 64){validate30.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.subscriptionUrl !== undefined){let data5 = data0.subscriptionUrl;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data5 === "string"){if(func2(data5) > 2048){validate30.errors = [{instancePath:instancePath+"/requestBody/subscriptionUrl",schemaPath:"#/properties/requestBody/properties/subscriptionUrl/allOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/subscriptionUrl",schemaPath:"#/properties/requestBody/properties/subscriptionUrl/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs17 === errors;}else {var valid1 = true;}}}}}}}else {validate30.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}exports.CalendarDetailOperations_updateCalendar = validate31;const schema67 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"displayName":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable collection name (display)"},"color":{"allOf":[{"type":"string","enum":["Cal1","Cal2","Cal3","Cal4","Cal5","Cal6"],"description":"Display color for a calendar collection. Positional rather than named: the palette is a client-side concern, so the store carries the slot and the client owns what it renders (issue #15)."}],"description":"Display color slot for this collection","default":"Cal1"},"timezone":{"allOf":[{"type":"string","maxLength":64}],"description":"IANA time zone this collection's floating times are read in, e.g. \"Europe/Amsterdam\". `\"\"` when none is set, which reads as UTC.","default":""},"subscriptionEnabled":{"type":"boolean","description":"Whether the scheduled refresh re-reads `subscriptionUrl`. Turning it off stops the refresh and keeps every stored event. Always `false` on a collection that is not `Subscribed`.","default":false}},"description":"Input for updating a calendar collection. The name, colour and timezone are the mutable overlay, and `subscriptionEnabled` turns a subscribed collection's refresh off and on. `urlSegment` is not among them, because it is the collection's identity and the path a client has bookmarked."}},"required":["requestBody"],"$id":"CalendarDetailOperations_updateCalendar"};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarDetailOperations_updateCalendar" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate31.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.displayName !== undefined){let data1 = data0.displayName;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate31.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate31.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data2 = data0.color;const _errs7 = errors;if(typeof data2 !== "string"){validate31.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data2 === "Cal1") || (data2 === "Cal2")) || (data2 === "Cal3")) || (data2 === "Cal4")) || (data2 === "Cal5")) || (data2 === "Cal6"))){validate31.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema67.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.timezone !== undefined){let data3 = data0.timezone;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func2(data3) > 64){validate31.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/timezone/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate31.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/timezone/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.subscriptionEnabled !== undefined){const _errs13 = errors;if(typeof data0.subscriptionEnabled !== "boolean"){validate31.errors = [{instancePath:instancePath+"/requestBody/subscriptionEnabled",schemaPath:"#/properties/requestBody/properties/subscriptionEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}}}}}else {validate31.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate31.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate31.errors = vErrors;return errors === 0;}exports.ConfigOperations_importConfig = validate32;const schema68 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["document"],"properties":{"mode":{"allOf":[{"type":"string","enum":["validate","apply"],"description":"Whether an import writes. The default is the dry run, so the wizard can show what a file would do before anything lands."}],"description":"`validate` writes nothing; `apply` writes.","default":"validate"},"onExisting":{"allOf":[{"type":"string","enum":["abort","merge"],"description":"What an import does when the configuration it is importing into is not empty."}],"description":"What to do when this configuration is not empty.","default":"abort"},"document":{"type":"object","additionalProperties":{},"description":"The config document, as exported."}},"description":"Request body for POST /config/import"}},"required":["requestBody"],"$id":"ConfigOperations_importConfig"};function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="ConfigOperations_importConfig" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate32.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.document === undefined) && (missing1 = "document")){validate32.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.mode !== undefined){let data1 = data0.mode;const _errs4 = errors;if(typeof data1 !== "string"){validate32.errors = [{instancePath:instancePath+"/requestBody/mode",schemaPath:"#/properties/requestBody/properties/mode/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "validate") || (data1 === "apply"))){validate32.errors = [{instancePath:instancePath+"/requestBody/mode",schemaPath:"#/properties/requestBody/properties/mode/allOf/0/enum",keyword:"enum",params:{allowedValues: schema68.properties.requestBody.properties.mode.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.onExisting !== undefined){let data2 = data0.onExisting;const _errs7 = errors;if(typeof data2 !== "string"){validate32.errors = [{instancePath:instancePath+"/requestBody/onExisting",schemaPath:"#/properties/requestBody/properties/onExisting/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "abort") || (data2 === "merge"))){validate32.errors = [{instancePath:instancePath+"/requestBody/onExisting",schemaPath:"#/properties/requestBody/properties/onExisting/allOf/0/enum",keyword:"enum",params:{allowedValues: schema68.properties.requestBody.properties.onExisting.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.document !== undefined){let data3 = data0.document;const _errs10 = errors;if(errors === _errs10){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){}else {validate32.errors = [{instancePath:instancePath+"/requestBody/document",schemaPath:"#/properties/requestBody/properties/document/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}}}}}else {validate32.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate32.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate32.errors = vErrors;return errors === 0;}exports.MeOperations_deleteMe = validate33;const schema69 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["confirmEmail"],"properties":{"confirmEmail":{"type":"string","description":"Must match the caller's Cognito email claim (case-insensitive)"}},"description":"Input for DELETE /me — requires the caller to confirm their email address"}},"required":["requestBody"],"$id":"MeOperations_deleteMe"};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MeOperations_deleteMe" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate33.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.confirmEmail === undefined) && (missing1 = "confirmEmail")){validate33.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.confirmEmail !== undefined){if(typeof data0.confirmEmail !== "string"){validate33.errors = [{instancePath:instancePath+"/requestBody/confirmEmail",schemaPath:"#/properties/requestBody/properties/confirmEmail/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate33.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate33.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate33.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_copyMessages = validate34;const schema70 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds","destinationMailboxId"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to copy"},"destinationMailboxId":{"allOf":[{"$ref":"#/properties/requestBody/properties/messageIds/items"}],"description":"Destination mailbox ID"}},"description":"Input for copying messages to another mailbox"}},"required":["requestBody"],"$id":"MessageBulkOperations_copyMessages"};const schema71 = {"type":"string","minLength":25,"maxLength":25};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_copyMessages" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate34.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.messageIds === undefined) && (missing1 = "messageIds")) || ((data0.destinationMailboxId === undefined) && (missing1 = "destinationMailboxId"))){validate34.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.destinationMailboxId !== undefined){let data3 = data0.destinationMailboxId;const _errs8 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func2(data3) > 25){validate34.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data3) < 25){validate34.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate34.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate34.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_deleteMessages = validate35;const schema72 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to delete"},"permanent":{"type":"boolean","description":"Permanently delete instead of moving to Trash. Default: false"}},"description":"Input for deleting messages"}},"required":["requestBody"],"$id":"MessageBulkOperations_deleteMessages"};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_deleteMessages" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate35.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate35.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.permanent !== undefined){const _errs8 = errors;if(typeof data0.permanent !== "boolean"){validate35.errors = [{instancePath:instancePath+"/requestBody/permanent",schemaPath:"#/properties/requestBody/properties/permanent/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate35.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate35.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate35.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_updateFlags = validate36;const schema73 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to update"},"isRead":{"type":"boolean","description":"Set messages as read (maps to \\Seen flag)"},"isStarred":{"type":"boolean","description":"Set messages as starred (maps to \\Flagged flag)"},"starColor":{"allOf":[{"type":"string","enum":["none","yellow","orange","red","purple","blue","teal","green","yellow_bang","red_bang","purple_question","blue_info","orange_guillemet","green_check","yellow_check","blue_star"],"description":"Gmail-style star colors for message/thread marking"}],"description":"Star color for visual categorization"}},"description":"Input for bulk flag update operations"}},"required":["requestBody"],"$id":"MessageBulkOperations_updateFlags"};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_updateFlags" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate36.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate36.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.isRead !== undefined){const _errs8 = errors;if(typeof data0.isRead !== "boolean"){validate36.errors = [{instancePath:instancePath+"/requestBody/isRead",schemaPath:"#/properties/requestBody/properties/isRead/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.isStarred !== undefined){const _errs10 = errors;if(typeof data0.isStarred !== "boolean"){validate36.errors = [{instancePath:instancePath+"/requestBody/isStarred",schemaPath:"#/properties/requestBody/properties/isStarred/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.starColor !== undefined){let data5 = data0.starColor;const _errs12 = errors;if(typeof data5 !== "string"){validate36.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((((((((((data5 === "none") || (data5 === "yellow")) || (data5 === "orange")) || (data5 === "red")) || (data5 === "purple")) || (data5 === "blue")) || (data5 === "teal")) || (data5 === "green")) || (data5 === "yellow_bang")) || (data5 === "red_bang")) || (data5 === "purple_question")) || (data5 === "blue_info")) || (data5 === "orange_guillemet")) || (data5 === "green_check")) || (data5 === "yellow_check")) || (data5 === "blue_star"))){validate36.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/enum",keyword:"enum",params:{allowedValues: schema73.properties.requestBody.properties.starColor.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}}else {validate36.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate36.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate36.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_updateMessageLabels = validate37;const schema74 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds","labelId","action"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"},"labelId":{"allOf":[{"$ref":"#/properties/requestBody/properties/messageIds/items"}],"description":"Label to apply or remove"},"action":{"allOf":[{"type":"string","enum":["Apply","Remove"],"description":"Manual bulk label action (issue #26) — apply or remove a label on a `just these` selection. Never sets `appliedByFilterId`: that field is reserved for filter-driven applies (RFC 034 Decision 3.3)."}],"description":"Whether to apply or remove the label"}},"description":"Input for a manual bulk label action — the \"just these\" scope (RFC 034 recap). `appliedByFilterId` never gets set on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies (RFC 034 Decision 3.3)."}},"required":["requestBody"],"$id":"MessageBulkOperations_updateMessageLabels"};const schema75 = {"type":"string","minLength":25,"maxLength":25};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_updateMessageLabels" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate37.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.messageIds === undefined) && (missing1 = "messageIds")) || ((data0.labelId === undefined) && (missing1 = "labelId"))) || ((data0.action === undefined) && (missing1 = "action"))){validate37.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.labelId !== undefined){let data3 = data0.labelId;const _errs8 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func2(data3) > 25){validate37.errors = [{instancePath:instancePath+"/requestBody/labelId",schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data3) < 25){validate37.errors = [{instancePath:instancePath+"/requestBody/labelId",schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody/labelId",schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.action !== undefined){let data4 = data0.action;const _errs12 = errors;if(typeof data4 !== "string"){validate37.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "Apply") || (data4 === "Remove"))){validate37.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/allOf/0/enum",keyword:"enum",params:{allowedValues: schema74.properties.requestBody.properties.action.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_moveMessages = validate38;const schema76 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds","destinationMailboxId"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"},"destinationMailboxId":{"allOf":[{"$ref":"#/properties/requestBody/properties/messageIds/items"}],"description":"Destination mailbox ID"}},"description":"Input for moving messages"}},"required":["requestBody"],"$id":"MessageBulkOperations_moveMessages"};const schema77 = {"type":"string","minLength":25,"maxLength":25};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_moveMessages" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate38.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.messageIds === undefined) && (missing1 = "messageIds")) || ((data0.destinationMailboxId === undefined) && (missing1 = "destinationMailboxId"))){validate38.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.destinationMailboxId !== undefined){let data3 = data0.destinationMailboxId;const _errs8 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func2(data3) > 25){validate38.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data3) < 25){validate38.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate38.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate38.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_notSpam = validate39;const schema78 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"}},"description":"Input for bulk message operations"}},"required":["requestBody"],"$id":"MessageBulkOperations_notSpam"};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_notSpam" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate39.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate39.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate39.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate39.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate39.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_reportSpam = validate40;const schema79 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"}},"description":"Input for bulk message operations"}},"required":["requestBody"],"$id":"MessageBulkOperations_reportSpam"};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_reportSpam" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate40.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate40.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate40.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate40.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate40.errors = vErrors;return errors === 0;}exports.MessageOperations_updateMessageFlags = validate41;const schema80 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"isRead":{"type":"boolean","description":"Set message as read (maps to \\Seen flag)"},"isStarred":{"type":"boolean","description":"Set message as starred (maps to \\Flagged flag)"},"starColor":{"allOf":[{"type":"string","enum":["none","yellow","orange","red","purple","blue","teal","green","yellow_bang","red_bang","purple_question","blue_info","orange_guillemet","green_check","yellow_check","blue_star"],"description":"Gmail-style star colors for message/thread marking"}],"description":"Star color for visual categorization"}},"description":"Input for updating message flags (translated to IMAP flags server-side)"}},"required":["requestBody"],"$id":"MessageOperations_updateMessageFlags"};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageOperations_updateMessageFlags" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate41.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.isRead !== undefined){const _errs4 = errors;if(typeof data0.isRead !== "boolean"){validate41.errors = [{instancePath:instancePath+"/requestBody/isRead",schemaPath:"#/properties/requestBody/properties/isRead/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.isStarred !== undefined){const _errs6 = errors;if(typeof data0.isStarred !== "boolean"){validate41.errors = [{instancePath:instancePath+"/requestBody/isStarred",schemaPath:"#/properties/requestBody/properties/isStarred/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.starColor !== undefined){let data3 = data0.starColor;const _errs8 = errors;if(typeof data3 !== "string"){validate41.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((((((((((data3 === "none") || (data3 === "yellow")) || (data3 === "orange")) || (data3 === "red")) || (data3 === "purple")) || (data3 === "blue")) || (data3 === "teal")) || (data3 === "green")) || (data3 === "yellow_bang")) || (data3 === "red_bang")) || (data3 === "purple_question")) || (data3 === "blue_info")) || (data3 === "orange_guillemet")) || (data3 === "green_check")) || (data3 === "yellow_check")) || (data3 === "blue_star"))){validate41.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/enum",keyword:"enum",params:{allowedValues: schema80.properties.requestBody.properties.starColor.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate41.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate41.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate41.errors = vErrors;return errors === 0;}exports.OutboxOperations_createOutboxMessage = validate42;const schema81 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["accountId","toAddresses"],"properties":{"accountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Account to send from"},"toAddresses":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Recipient addresses (To)"},"ccAddresses":{"type":"array","items":{"type":"string"},"description":"CC recipient addresses"},"bccAddresses":{"type":"array","items":{"type":"string"},"description":"BCC recipient addresses"},"subject":{"type":"string","description":"Subject line"},"textBody":{"type":"string","description":"Plain text body"},"htmlBody":{"type":"string","description":"HTML body"},"inReplyTo":{"type":"string","description":"For replies: parent message's Message-ID"},"references":{"type":"array","items":{"type":"string"},"description":"For replies: full References chain from parent"},"sendImmediately":{"type":"boolean","description":"Whether to send immediately or save as draft"}},"description":"Input for creating an outbox message"}},"required":["requestBody"],"$id":"OutboxOperations_createOutboxMessage"};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OutboxOperations_createOutboxMessage" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate42.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.accountId === undefined) && (missing1 = "accountId")) || ((data0.toAddresses === undefined) && (missing1 = "toAddresses"))){validate42.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.accountId !== undefined){let data1 = data0.accountId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate42.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate42.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.toAddresses !== undefined){let data2 = data0.toAddresses;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data2)){if(data2.length < 1){validate42.errors = [{instancePath:instancePath+"/requestBody/toAddresses",schemaPath:"#/properties/requestBody/properties/toAddresses/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data2[i0] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/toAddresses/" + i0,schemaPath:"#/properties/requestBody/properties/toAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs9 === errors;if(!valid3){break;}}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/toAddresses",schemaPath:"#/properties/requestBody/properties/toAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.ccAddresses !== undefined){let data4 = data0.ccAddresses;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid4 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){const _errs13 = errors;if(typeof data4[i1] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/ccAddresses/" + i1,schemaPath:"#/properties/requestBody/properties/ccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs13 === errors;if(!valid4){break;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/ccAddresses",schemaPath:"#/properties/requestBody/properties/ccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.bccAddresses !== undefined){let data6 = data0.bccAddresses;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data6)){var valid5 = true;const len2 = data6.length;for(let i2=0; i2<len2; i2++){const _errs17 = errors;if(typeof data6[i2] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/bccAddresses/" + i2,schemaPath:"#/properties/requestBody/properties/bccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs17 === errors;if(!valid5){break;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/bccAddresses",schemaPath:"#/properties/requestBody/properties/bccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.subject !== undefined){const _errs19 = errors;if(typeof data0.subject !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/subject",schemaPath:"#/properties/requestBody/properties/subject/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data0.textBody !== undefined){const _errs21 = errors;if(typeof data0.textBody !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/textBody",schemaPath:"#/properties/requestBody/properties/textBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.htmlBody !== undefined){const _errs23 = errors;if(typeof data0.htmlBody !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/htmlBody",schemaPath:"#/properties/requestBody/properties/htmlBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.inReplyTo !== undefined){const _errs25 = errors;if(typeof data0.inReplyTo !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/inReplyTo",schemaPath:"#/properties/requestBody/properties/inReplyTo/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.references !== undefined){let data12 = data0.references;const _errs27 = errors;if(errors === _errs27){if(Array.isArray(data12)){var valid6 = true;const len3 = data12.length;for(let i3=0; i3<len3; i3++){const _errs29 = errors;if(typeof data12[i3] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/references/" + i3,schemaPath:"#/properties/requestBody/properties/references/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs29 === errors;if(!valid6){break;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/references",schemaPath:"#/properties/requestBody/properties/references/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data0.sendImmediately !== undefined){const _errs31 = errors;if(typeof data0.sendImmediately !== "boolean"){validate42.errors = [{instancePath:instancePath+"/requestBody/sendImmediately",schemaPath:"#/properties/requestBody/properties/sendImmediately/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs31 === errors;}else {var valid1 = true;}}}}}}}}}}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate42.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate42.errors = vErrors;return errors === 0;}exports.OutboxDetailOperations_updateOutboxMessage = validate43;const schema82 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"attachmentIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"description":"The files this draft keeps. Anything left out is removed with its bytes."},"toAddresses":{"type":"array","items":{"type":"string"},"description":"Recipient addresses (To)"},"ccAddresses":{"type":"array","items":{"type":"string"},"description":"CC recipient addresses"},"bccAddresses":{"type":"array","items":{"type":"string"},"description":"BCC recipient addresses"},"subject":{"type":"string","description":"Subject line"},"textBody":{"type":"string","description":"Plain text body"},"htmlBody":{"type":"string","description":"HTML body"},"inReplyTo":{"type":"string","description":"For replies: parent message's Message-ID"},"references":{"type":"array","items":{"type":"string"},"description":"For replies: full References chain from parent"}},"description":"Input for updating a draft outbox message"}},"required":["requestBody"],"$id":"OutboxDetailOperations_updateOutboxMessage"};function validate43(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OutboxDetailOperations_updateOutboxMessage" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate43.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.attachmentIds !== undefined){let data1 = data0.attachmentIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds/" + i0,schemaPath:"#/properties/requestBody/properties/attachmentIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds/" + i0,schemaPath:"#/properties/requestBody/properties/attachmentIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds/" + i0,schemaPath:"#/properties/requestBody/properties/attachmentIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds",schemaPath:"#/properties/requestBody/properties/attachmentIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.toAddresses !== undefined){let data3 = data0.toAddresses;const _errs8 = errors;if(errors === _errs8){if(Array.isArray(data3)){var valid3 = true;const len1 = data3.length;for(let i1=0; i1<len1; i1++){const _errs10 = errors;if(typeof data3[i1] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/toAddresses/" + i1,schemaPath:"#/properties/requestBody/properties/toAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs10 === errors;if(!valid3){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/toAddresses",schemaPath:"#/properties/requestBody/properties/toAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.ccAddresses !== undefined){let data5 = data0.ccAddresses;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data5)){var valid4 = true;const len2 = data5.length;for(let i2=0; i2<len2; i2++){const _errs14 = errors;if(typeof data5[i2] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/ccAddresses/" + i2,schemaPath:"#/properties/requestBody/properties/ccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs14 === errors;if(!valid4){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/ccAddresses",schemaPath:"#/properties/requestBody/properties/ccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.bccAddresses !== undefined){let data7 = data0.bccAddresses;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data7)){var valid5 = true;const len3 = data7.length;for(let i3=0; i3<len3; i3++){const _errs18 = errors;if(typeof data7[i3] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/bccAddresses/" + i3,schemaPath:"#/properties/requestBody/properties/bccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs18 === errors;if(!valid5){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/bccAddresses",schemaPath:"#/properties/requestBody/properties/bccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.subject !== undefined){const _errs20 = errors;if(typeof data0.subject !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/subject",schemaPath:"#/properties/requestBody/properties/subject/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.textBody !== undefined){const _errs22 = errors;if(typeof data0.textBody !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/textBody",schemaPath:"#/properties/requestBody/properties/textBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}if(valid1){if(data0.htmlBody !== undefined){const _errs24 = errors;if(typeof data0.htmlBody !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/htmlBody",schemaPath:"#/properties/requestBody/properties/htmlBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs24 === errors;}else {var valid1 = true;}if(valid1){if(data0.inReplyTo !== undefined){const _errs26 = errors;if(typeof data0.inReplyTo !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/inReplyTo",schemaPath:"#/properties/requestBody/properties/inReplyTo/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.references !== undefined){let data13 = data0.references;const _errs28 = errors;if(errors === _errs28){if(Array.isArray(data13)){var valid6 = true;const len4 = data13.length;for(let i4=0; i4<len4; i4++){const _errs30 = errors;if(typeof data13[i4] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/references/" + i4,schemaPath:"#/properties/requestBody/properties/references/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs30 === errors;if(!valid6){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/references",schemaPath:"#/properties/requestBody/properties/references/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs28 === errors;}else {var valid1 = true;}}}}}}}}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate43.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate43.errors = vErrors;return errors === 0;}exports.OutboxDetailOperations_mintOutboxAttachment = validate44;const schema83 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["filename","contentType","sizeBytes"],"properties":{"filename":{"allOf":[{"type":"string","maxLength":256}],"description":"Filename as the sender picked it. Sanitized server-side."},"contentType":{"allOf":[{"$ref":"#/properties/requestBody/properties/filename/allOf/0"}],"description":"Media type the browser reported. Recorded, never trusted for rendering."},"sizeBytes":{"type":"integer","format":"int64","minimum":1,"description":"Exact size of the file. The upload is bound to this number."}},"description":"What the client intends to attach, before any bytes move"}},"required":["requestBody"],"$id":"OutboxDetailOperations_mintOutboxAttachment"};const schema84 = {"type":"string","maxLength":256};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OutboxDetailOperations_mintOutboxAttachment" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate44.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.filename === undefined) && (missing1 = "filename")) || ((data0.contentType === undefined) && (missing1 = "contentType"))) || ((data0.sizeBytes === undefined) && (missing1 = "sizeBytes"))){validate44.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.filename !== undefined){let data1 = data0.filename;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 256){validate44.errors = [{instancePath:instancePath+"/requestBody/filename",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate44.errors = [{instancePath:instancePath+"/requestBody/filename",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.contentType !== undefined){let data2 = data0.contentType;const _errs7 = errors;const _errs9 = errors;if(errors === _errs9){if(typeof data2 === "string"){if(func2(data2) > 256){validate44.errors = [{instancePath:instancePath+"/requestBody/contentType",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate44.errors = [{instancePath:instancePath+"/requestBody/contentType",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.sizeBytes !== undefined){let data3 = data0.sizeBytes;const _errs11 = errors;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){validate44.errors = [{instancePath:instancePath+"/requestBody/sizeBytes",schemaPath:"#/properties/requestBody/properties/sizeBytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs11){if(typeof data3 == "number"){if(data3 < 1 || isNaN(data3)){validate44.errors = [{instancePath:instancePath+"/requestBody/sizeBytes",schemaPath:"#/properties/requestBody/properties/sizeBytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats24.validate(data3))){validate44.errors = [{instancePath:instancePath+"/requestBody/sizeBytes",schemaPath:"#/properties/requestBody/properties/sizeBytes/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}else {validate44.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate44.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate44.errors = vErrors;return errors === 0;}exports.PeopleOperations_createStepUp = validate45;const schema85 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["password","action","userId"],"properties":{"password":{"type":"string","description":"The caller's own current password."},"action":{"type":"string","enum":["SignOut","Disable","Enable","ResetPassword"],"description":"The operation a step-up token is spent on. `updatePerson` maps `Disabled` to `Disable` and `Active` to `Enable`."},"userId":{"type":"string","description":"The person the token will act on."}},"description":"The caller's current password, and the one action on one person the token will allow."}},"required":["requestBody"],"$id":"PeopleOperations_createStepUp"};function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_createStepUp" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate45.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.password === undefined) && (missing1 = "password")) || ((data0.action === undefined) && (missing1 = "action"))) || ((data0.userId === undefined) && (missing1 = "userId"))){validate45.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.password !== undefined){const _errs4 = errors;if(typeof data0.password !== "string"){validate45.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.action !== undefined){let data2 = data0.action;const _errs6 = errors;if(typeof data2 !== "string"){validate45.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data2 === "SignOut") || (data2 === "Disable")) || (data2 === "Enable")) || (data2 === "ResetPassword"))){validate45.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/enum",keyword:"enum",params:{allowedValues: schema85.properties.requestBody.properties.action.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.userId !== undefined){const _errs8 = errors;if(typeof data0.userId !== "string"){validate45.errors = [{instancePath:instancePath+"/requestBody/userId",schemaPath:"#/properties/requestBody/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}}else {validate45.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate45.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate45.errors = vErrors;return errors === 0;}exports.PeopleOperations_updatePerson = validate46;const schema86 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["status","stepUpToken"],"properties":{"status":{"type":"string","enum":["Active","Disabled"],"description":"Whether a person may sign in. A disabled person's sessions, MCP grants and calendar feeds are revoked, and every sign-in is refused."},"stepUpToken":{"type":"string"}},"description":"Disable or enable the person. Disabling also revokes their sessions, MCP grants and calendar feeds."}},"required":["requestBody"],"$id":"PeopleOperations_updatePerson"};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_updatePerson" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate46.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.status === undefined) && (missing1 = "status")) || ((data0.stepUpToken === undefined) && (missing1 = "stepUpToken"))){validate46.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.status !== undefined){let data1 = data0.status;const _errs4 = errors;if(typeof data1 !== "string"){validate46.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "Active") || (data1 === "Disabled"))){validate46.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/enum",keyword:"enum",params:{allowedValues: schema86.properties.requestBody.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.stepUpToken !== undefined){const _errs6 = errors;if(typeof data0.stepUpToken !== "string"){validate46.errors = [{instancePath:instancePath+"/requestBody/stepUpToken",schemaPath:"#/properties/requestBody/properties/stepUpToken/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}else {validate46.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate46.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate46.errors = vErrors;return errors === 0;}exports.PeopleOperations_createPasswordReset = validate47;const schema87 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["stepUpToken"],"properties":{"stepUpToken":{"type":"string"}},"description":"Issue a password reset link for the person. Their old password stops working and their sessions are revoked."}},"required":["requestBody"],"$id":"PeopleOperations_createPasswordReset"};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_createPasswordReset" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.stepUpToken === undefined) && (missing1 = "stepUpToken")){validate47.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.stepUpToken !== undefined){if(typeof data0.stepUpToken !== "string"){validate47.errors = [{instancePath:instancePath+"/requestBody/stepUpToken",schemaPath:"#/properties/requestBody/properties/stepUpToken/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate47.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}exports.PeopleOperations_signOutPerson = validate48;const schema88 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["stepUpToken"],"properties":{"stepUpToken":{"type":"string"}},"description":"Sign the person out of every browser session and MCP connection."}},"required":["requestBody"],"$id":"PeopleOperations_signOutPerson"};function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_signOutPerson" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate48.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.stepUpToken === undefined) && (missing1 = "stepUpToken")){validate48.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.stepUpToken !== undefined){if(typeof data0.stepUpToken !== "string"){validate48.errors = [{instancePath:instancePath+"/requestBody/stepUpToken",schemaPath:"#/properties/requestBody/properties/stepUpToken/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate48.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate48.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate48.errors = vErrors;return errors === 0;}exports.UserSettingsOperations_updateUserSettings = validate49;const schema89 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"defaultInvitationSenderAccountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"The account invitations go out from by default. Refused with 400 `unknown_sender` when it is not an account of the caller's account config that sends mail. Cleared with `clearDefaultInvitationSender`."},"classificationPresetId":{"allOf":[{"type":"string","enum":["Jev","Jina","Mistral","Gemini","OpenAiCompatible","Local"],"description":"A classification provider preset: a known provider with its adapter shape, default base URL and default model."}],"description":"Save a classification provider. Saving another preset deletes the stored key. Without it, the classification fields below apply to the saved provider."},"classificationModel":{"type":"string","description":"The model to ask for. Empty means the preset's default model."},"classificationBaseUrl":{"type":"string","description":"The http or https base URL to call. Empty means the preset's default base URL. Refused with 400 `invalid_classification_base_url` when it is not a URL, or when the preset has no default base URL and none is given."},"classificationApiKey":{"type":"string","description":"The provider's API key. Write-only: stored encrypted and never returned. Refused with 400 `classification_api_key_required` when the preset needs a key and none is stored for it."},"classificationEnabled":{"type":"boolean","description":"Switch classification on or off. Switching on with no saved provider is refused with 400 `classification_not_configured`; switching off keeps the provider and key."},"classificationDailyLimit":{"type":"integer","format":"int32","minimum":1,"description":"The most classification calls per mail account per UTC day. Needs a saved provider."}},"description":"A change to the caller's settings. Every field is optional and absence means untouched."}},"required":["requestBody"],"$id":"UserSettingsOperations_updateUserSettings"};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="UserSettingsOperations_updateUserSettings" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.defaultInvitationSenderAccountId !== undefined){let data1 = data0.defaultInvitationSenderAccountId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate49.errors = [{instancePath:instancePath+"/requestBody/defaultInvitationSenderAccountId",schemaPath:"#/properties/requestBody/properties/defaultInvitationSenderAccountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate49.errors = [{instancePath:instancePath+"/requestBody/defaultInvitationSenderAccountId",schemaPath:"#/properties/requestBody/properties/defaultInvitationSenderAccountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate49.errors = [{instancePath:instancePath+"/requestBody/defaultInvitationSenderAccountId",schemaPath:"#/properties/requestBody/properties/defaultInvitationSenderAccountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationPresetId !== undefined){let data2 = data0.classificationPresetId;const _errs7 = errors;if(typeof data2 !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationPresetId",schemaPath:"#/properties/requestBody/properties/classificationPresetId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data2 === "Jev") || (data2 === "Jina")) || (data2 === "Mistral")) || (data2 === "Gemini")) || (data2 === "OpenAiCompatible")) || (data2 === "Local"))){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationPresetId",schemaPath:"#/properties/requestBody/properties/classificationPresetId/allOf/0/enum",keyword:"enum",params:{allowedValues: schema89.properties.requestBody.properties.classificationPresetId.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationModel !== undefined){const _errs10 = errors;if(typeof data0.classificationModel !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationModel",schemaPath:"#/properties/requestBody/properties/classificationModel/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationBaseUrl !== undefined){const _errs12 = errors;if(typeof data0.classificationBaseUrl !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationBaseUrl",schemaPath:"#/properties/requestBody/properties/classificationBaseUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationApiKey !== undefined){const _errs14 = errors;if(typeof data0.classificationApiKey !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationApiKey",schemaPath:"#/properties/requestBody/properties/classificationApiKey/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs14 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationEnabled !== undefined){const _errs16 = errors;if(typeof data0.classificationEnabled !== "boolean"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationEnabled",schemaPath:"#/properties/requestBody/properties/classificationEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationDailyLimit !== undefined){let data7 = data0.classificationDailyLimit;const _errs18 = errors;if(!((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7)))){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationDailyLimit",schemaPath:"#/properties/requestBody/properties/classificationDailyLimit/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if(typeof data7 == "number"){if(data7 < 1 || isNaN(data7)){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationDailyLimit",schemaPath:"#/properties/requestBody/properties/classificationDailyLimit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data7))){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationDailyLimit",schemaPath:"#/properties/requestBody/properties/classificationDailyLimit/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}var valid1 = _errs18 === errors;}else {var valid1 = true;}}}}}}}}else {validate49.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}exports.UserSettingsOperations_testClassificationProvider = validate50;const schema90 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["presetId","model","baseUrl","apiKey"],"properties":{"presetId":{"type":"string","enum":["Jev","Jina","Mistral","Gemini","OpenAiCompatible","Local"],"description":"A classification provider preset: a known provider with its adapter shape, default base URL and default model."},"model":{"type":"string","description":"The model to ask for. Empty means the preset's default model."},"baseUrl":{"type":"string","description":"The http or https base URL to call. Empty means the preset's default base URL."},"apiKey":{"type":"string","description":"The provider's API key. Empty means the key saved for this preset."}},"description":"The classification provider form as it stands, saved or not."}},"required":["requestBody"],"$id":"UserSettingsOperations_testClassificationProvider"};function validate50(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="UserSettingsOperations_testClassificationProvider" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate50.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.presetId === undefined) && (missing1 = "presetId")) || ((data0.model === undefined) && (missing1 = "model"))) || ((data0.baseUrl === undefined) && (missing1 = "baseUrl"))) || ((data0.apiKey === undefined) && (missing1 = "apiKey"))){validate50.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.presetId !== undefined){let data1 = data0.presetId;const _errs4 = errors;if(typeof data1 !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/presetId",schemaPath:"#/properties/requestBody/properties/presetId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data1 === "Jev") || (data1 === "Jina")) || (data1 === "Mistral")) || (data1 === "Gemini")) || (data1 === "OpenAiCompatible")) || (data1 === "Local"))){validate50.errors = [{instancePath:instancePath+"/requestBody/presetId",schemaPath:"#/properties/requestBody/properties/presetId/enum",keyword:"enum",params:{allowedValues: schema90.properties.requestBody.properties.presetId.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.model !== undefined){const _errs6 = errors;if(typeof data0.model !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/model",schemaPath:"#/properties/requestBody/properties/model/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.baseUrl !== undefined){const _errs8 = errors;if(typeof data0.baseUrl !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/baseUrl",schemaPath:"#/properties/requestBody/properties/baseUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.apiKey !== undefined){const _errs10 = errors;if(typeof data0.apiKey !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/apiKey",schemaPath:"#/properties/requestBody/properties/apiKey/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}}}}}}else {validate50.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate50.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate50.errors = vErrors;return errors === 0;}exports.SystemOperations_applySystemUpdate = validate51;const schema91 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["targetVersion"],"properties":{"targetVersion":{"type":"string","description":"The release version to install, `vX.Y.Z`"}},"description":"Request to install a specific release. `targetVersion` must equal the version the latest check reported; the backend passes exactly this one field across the control seam and resolves nothing else (RFC 037 R6)."}},"required":["requestBody"],"$id":"SystemOperations_applySystemUpdate"};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="SystemOperations_applySystemUpdate" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate51.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.targetVersion === undefined) && (missing1 = "targetVersion")){validate51.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.targetVersion !== undefined){if(typeof data0.targetVersion !== "string"){validate51.errors = [{instancePath:instancePath+"/requestBody/targetVersion",schemaPath:"#/properties/requestBody/properties/targetVersion/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate51.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate51.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate51.errors = vErrors;return errors === 0;}
13
+ "use strict";exports.AccountOperations_createAccount = validate10;const schema11 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["email","imapHost","imapPort","imapTls","imapStartTls"],"properties":{"email":{"type":"string","minLength":1,"description":"Primary email address for this account"},"displayName":{"type":"string","description":"Display name (optional)"},"username":{"type":"string","description":"IMAP login username (defaults to email if not provided)"},"authType":{"allOf":[{"type":"string","enum":["password","oauthMicrosoft"],"description":"Authentication mechanism used by an email account"}],"description":"Authentication mechanism for this account. Defaults to `password`. Pass `oauthMicrosoft` only via the OAuth connect flow (POST /accounts/oauth/microsoft/start)."},"syncedServices":{"type":"array","items":{"type":"string","enum":["Mail","Calendar"],"description":"A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store."},"description":"Services this account syncs. Defaults to `#[Mail]`. Refused when empty, and refused for a password account unless it is exactly `#[Mail]`."},"password":{"type":"string","format":"password","description":"Account password (will be encrypted). Required for password accounts; omit for OAuth accounts."},"imapHost":{"type":"string","minLength":1,"description":"IMAP server hostname"},"imapPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"IMAP server port"},"imapTls":{"type":"boolean","description":"Use TLS encryption"},"imapStartTls":{"type":"boolean","description":"Use STARTTLS upgrade"},"smtpEnabled":{"type":"boolean","description":"Whether to enable SMTP sending for this account. When omitted, the server enables sending if an SMTP host is supplied."},"smtpHost":{"type":"string","description":"SMTP server hostname (optional)"},"smtpPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"SMTP server port"},"smtpTls":{"type":"boolean","description":"Use TLS encryption for SMTP"},"smtpStartTls":{"type":"boolean","description":"Use STARTTLS upgrade for SMTP"},"smtpUsername":{"type":"string","description":"SMTP username if different from IMAP"},"smtpPassword":{"type":"string","format":"password","description":"SMTP password if different from IMAP"}},"description":"Input for creating a new email account"}},"required":["requestBody"],"$id":"AccountOperations_createAccount"};const func2 = ucs2length;const formats0 = formats.password;const formats2 = formats.int32;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AccountOperations_createAccount" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((((data0.email === undefined) && (missing1 = "email")) || ((data0.imapHost === undefined) && (missing1 = "imapHost"))) || ((data0.imapPort === undefined) && (missing1 = "imapPort"))) || ((data0.imapTls === undefined) && (missing1 = "imapTls"))) || ((data0.imapStartTls === undefined) && (missing1 = "imapStartTls"))){validate10.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.email !== undefined){let data1 = data0.email;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func2(data1) < 1){validate10.errors = [{instancePath:instancePath+"/requestBody/email",schemaPath:"#/properties/requestBody/properties/email/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/email",schemaPath:"#/properties/requestBody/properties/email/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.displayName !== undefined){const _errs6 = errors;if(typeof data0.displayName !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.username !== undefined){const _errs8 = errors;if(typeof data0.username !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/username",schemaPath:"#/properties/requestBody/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.authType !== undefined){let data4 = data0.authType;const _errs10 = errors;if(typeof data4 !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/authType",schemaPath:"#/properties/requestBody/properties/authType/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "password") || (data4 === "oauthMicrosoft"))){validate10.errors = [{instancePath:instancePath+"/requestBody/authType",schemaPath:"#/properties/requestBody/properties/authType/allOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.requestBody.properties.authType.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.syncedServices !== undefined){let data5 = data0.syncedServices;const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs15 = errors;if(typeof data6 !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data6 === "Mail") || (data6 === "Calendar"))){validate10.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/enum",keyword:"enum",params:{allowedValues: schema11.properties.requestBody.properties.syncedServices.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid3 = _errs15 === errors;if(!valid3){break;}}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/syncedServices",schemaPath:"#/properties/requestBody/properties/syncedServices/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.password !== undefined){let data7 = data0.password;const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate10.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapHost !== undefined){let data8 = data0.imapHost;const _errs19 = errors;if(errors === _errs19){if(typeof data8 === "string"){if(func2(data8) < 1){validate10.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapPort !== undefined){let data9 = data0.imapPort;const _errs21 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs21){if(typeof data9 == "number"){if(data9 > 65535 || isNaN(data9)){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data9))){validate10.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapTls !== undefined){const _errs23 = errors;if(typeof data0.imapTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/imapTls",schemaPath:"#/properties/requestBody/properties/imapTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapStartTls !== undefined){const _errs25 = errors;if(typeof data0.imapStartTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/imapStartTls",schemaPath:"#/properties/requestBody/properties/imapStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpEnabled !== undefined){const _errs27 = errors;if(typeof data0.smtpEnabled !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpEnabled",schemaPath:"#/properties/requestBody/properties/smtpEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpHost !== undefined){const _errs29 = errors;if(typeof data0.smtpHost !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpHost",schemaPath:"#/properties/requestBody/properties/smtpHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPort !== undefined){let data14 = data0.smtpPort;const _errs31 = errors;if(!((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14)))){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs31){if(typeof data14 == "number"){if(data14 > 65535 || isNaN(data14)){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data14 < 1 || isNaN(data14)){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data14))){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs31 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpTls !== undefined){const _errs33 = errors;if(typeof data0.smtpTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpTls",schemaPath:"#/properties/requestBody/properties/smtpTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs33 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpStartTls !== undefined){const _errs35 = errors;if(typeof data0.smtpStartTls !== "boolean"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpStartTls",schemaPath:"#/properties/requestBody/properties/smtpStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs35 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpUsername !== undefined){const _errs37 = errors;if(typeof data0.smtpUsername !== "string"){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpUsername",schemaPath:"#/properties/requestBody/properties/smtpUsername/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs37 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPassword !== undefined){let data18 = data0.smtpPassword;const _errs39 = errors;if(errors === _errs39){if(errors === _errs39){if(typeof data18 === "string"){if(!(formats0.validate(data18))){validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate10.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs39 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}}}}else {validate10.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}exports.MicrosoftOAuthOperations_microsoftOAuthStart = validate11;const schema12 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"email":{"type":"string","description":"Optional email hint for the Microsoft login page"},"services":{"type":"array","items":{"type":"string","enum":["Mail","Calendar"],"description":"A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store."},"minItems":1,"description":"Services to request consent for. The authorization URL asks for the scopes these map to. Defaults to `#[Mail]`; refused when empty. Adding a service to a connected account is this same request carrying the full set the account should sync."}}}},"required":["requestBody"],"$id":"MicrosoftOAuthOperations_microsoftOAuthStart"};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MicrosoftOAuthOperations_microsoftOAuthStart" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate11.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.email !== undefined){const _errs4 = errors;if(typeof data0.email !== "string"){validate11.errors = [{instancePath:instancePath+"/requestBody/email",schemaPath:"#/properties/requestBody/properties/email/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.services !== undefined){let data2 = data0.services;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data2)){if(data2.length < 1){validate11.errors = [{instancePath:instancePath+"/requestBody/services",schemaPath:"#/properties/requestBody/properties/services/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs8 = errors;if(typeof data3 !== "string"){validate11.errors = [{instancePath:instancePath+"/requestBody/services/" + i0,schemaPath:"#/properties/requestBody/properties/services/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data3 === "Mail") || (data3 === "Calendar"))){validate11.errors = [{instancePath:instancePath+"/requestBody/services/" + i0,schemaPath:"#/properties/requestBody/properties/services/items/enum",keyword:"enum",params:{allowedValues: schema12.properties.requestBody.properties.services.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs8 === errors;if(!valid2){break;}}}}else {validate11.errors = [{instancePath:instancePath+"/requestBody/services",schemaPath:"#/properties/requestBody/properties/services/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}else {validate11.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}exports.AccountOperations_testConnection = validate12;const schema13 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["username","imapHost","imapPort","imapTls","imapStartTls"],"properties":{"accountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Account ID (optional, used to retrieve stored password if password is empty)"},"username":{"type":"string","minLength":1,"description":"IMAP login username"},"password":{"type":"string","format":"password","description":"Account password (optional if accountId provided - uses stored password)"},"imapHost":{"type":"string","minLength":1,"description":"IMAP server hostname"},"imapPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"IMAP server port"},"imapTls":{"type":"boolean","description":"Use TLS encryption"},"imapStartTls":{"type":"boolean","description":"Use STARTTLS upgrade"},"smtpHost":{"type":"string","description":"SMTP server hostname (optional)"},"smtpPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"SMTP server port"},"smtpTls":{"type":"boolean","description":"Use TLS encryption for SMTP"},"smtpStartTls":{"type":"boolean","description":"Use STARTTLS upgrade for SMTP"},"smtpUsername":{"type":"string","description":"SMTP username (defaults to IMAP username)"},"smtpPassword":{"type":"string","format":"password","description":"SMTP password (defaults to IMAP password)"}},"description":"Input for testing connection without saving"}},"required":["requestBody"],"$id":"AccountOperations_testConnection"};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AccountOperations_testConnection" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate12.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((((data0.username === undefined) && (missing1 = "username")) || ((data0.imapHost === undefined) && (missing1 = "imapHost"))) || ((data0.imapPort === undefined) && (missing1 = "imapPort"))) || ((data0.imapTls === undefined) && (missing1 = "imapTls"))) || ((data0.imapStartTls === undefined) && (missing1 = "imapStartTls"))){validate12.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.accountId !== undefined){let data1 = data0.accountId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate12.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate12.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.username !== undefined){let data2 = data0.username;const _errs7 = errors;if(errors === _errs7){if(typeof data2 === "string"){if(func2(data2) < 1){validate12.errors = [{instancePath:instancePath+"/requestBody/username",schemaPath:"#/properties/requestBody/properties/username/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/username",schemaPath:"#/properties/requestBody/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.password !== undefined){let data3 = data0.password;const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(typeof data3 === "string"){if(!(formats0.validate(data3))){validate12.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapHost !== undefined){let data4 = data0.imapHost;const _errs11 = errors;if(errors === _errs11){if(typeof data4 === "string"){if(func2(data4) < 1){validate12.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapPort !== undefined){let data5 = data0.imapPort;const _errs13 = errors;if(!((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5)))){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs13){if(typeof data5 == "number"){if(data5 > 65535 || isNaN(data5)){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data5 < 1 || isNaN(data5)){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data5))){validate12.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapTls !== undefined){const _errs15 = errors;if(typeof data0.imapTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/imapTls",schemaPath:"#/properties/requestBody/properties/imapTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapStartTls !== undefined){const _errs17 = errors;if(typeof data0.imapStartTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/imapStartTls",schemaPath:"#/properties/requestBody/properties/imapStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpHost !== undefined){const _errs19 = errors;if(typeof data0.smtpHost !== "string"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpHost",schemaPath:"#/properties/requestBody/properties/smtpHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPort !== undefined){let data9 = data0.smtpPort;const _errs21 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs21){if(typeof data9 == "number"){if(data9 > 65535 || isNaN(data9)){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data9))){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpTls !== undefined){const _errs23 = errors;if(typeof data0.smtpTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpTls",schemaPath:"#/properties/requestBody/properties/smtpTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpStartTls !== undefined){const _errs25 = errors;if(typeof data0.smtpStartTls !== "boolean"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpStartTls",schemaPath:"#/properties/requestBody/properties/smtpStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpUsername !== undefined){const _errs27 = errors;if(typeof data0.smtpUsername !== "string"){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpUsername",schemaPath:"#/properties/requestBody/properties/smtpUsername/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPassword !== undefined){let data13 = data0.smtpPassword;const _errs29 = errors;if(errors === _errs29){if(errors === _errs29){if(typeof data13 === "string"){if(!(formats0.validate(data13))){validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs29 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}else {validate12.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate12.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate12.errors = vErrors;return errors === 0;}exports.AccountDetailOperations_updateAccount = validate13;const schema14 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"displayName":{"type":"string","description":"Display name"},"password":{"type":"string","format":"password","description":"Account password (only if changing)"},"imapHost":{"type":"string","description":"IMAP server hostname"},"imapPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"IMAP server port"},"imapTls":{"type":"boolean","description":"Use TLS encryption"},"imapStartTls":{"type":"boolean","description":"Use STARTTLS upgrade"},"smtpEnabled":{"type":"boolean","description":"Whether SMTP sending is enabled for this account. When omitted, the server enables sending if an SMTP host is supplied here or already stored."},"smtpHost":{"type":"string","description":"SMTP server hostname"},"smtpPort":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"SMTP server port"},"smtpTls":{"type":"boolean","description":"Use TLS encryption for SMTP"},"smtpStartTls":{"type":"boolean","description":"Use STARTTLS upgrade for SMTP"},"smtpUsername":{"type":"string","description":"SMTP username"},"smtpPassword":{"type":"string","format":"password","description":"SMTP password (only if changing)"},"isActive":{"type":"boolean","description":"Enable/disable account"},"syncedServices":{"type":"array","items":{"type":"string","enum":["Mail","Calendar"],"description":"A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store."},"description":"Replaces the stored service set outright. Refused when empty, on a password account unless it is exactly `#[Mail]`, or when it names a service the account's OAuth grant does not cover. That last case is a consent round trip through the OAuth start route."},"signaturePlainText":{"type":"string","description":"Plain text email signature"},"signatureHtml":{"type":"string","description":"HTML email signature"},"composeLanguages":{"type":"array","items":{"type":"string"},"description":"BCP 47 language tags this account writes mail in, most-used first (issue #686). Replaces the stored list outright; an empty array clears it."},"muted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"}],"description":"Sender is muted: do not notify on new mail"}],"nullable":true,"description":"Account-level mute flag. Pass a MutedFlag object to mute; pass `null` to clear the mute."}},"description":"Input for updating an existing account"}},"required":["requestBody"],"$id":"AccountDetailOperations_updateAccount"};const formats24 = formats.int64;function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AccountDetailOperations_updateAccount" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate13.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.displayName !== undefined){const _errs4 = errors;if(typeof data0.displayName !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.password !== undefined){let data2 = data0.password;const _errs6 = errors;if(errors === _errs6){if(errors === _errs6){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate13.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapHost !== undefined){const _errs8 = errors;if(typeof data0.imapHost !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/imapHost",schemaPath:"#/properties/requestBody/properties/imapHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapPort !== undefined){let data4 = data0.imapPort;const _errs10 = errors;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs10){if(typeof data4 == "number"){if(data4 > 65535 || isNaN(data4)){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data4 < 1 || isNaN(data4)){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data4))){validate13.errors = [{instancePath:instancePath+"/requestBody/imapPort",schemaPath:"#/properties/requestBody/properties/imapPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapTls !== undefined){const _errs12 = errors;if(typeof data0.imapTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/imapTls",schemaPath:"#/properties/requestBody/properties/imapTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.imapStartTls !== undefined){const _errs14 = errors;if(typeof data0.imapStartTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/imapStartTls",schemaPath:"#/properties/requestBody/properties/imapStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs14 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpEnabled !== undefined){const _errs16 = errors;if(typeof data0.smtpEnabled !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpEnabled",schemaPath:"#/properties/requestBody/properties/smtpEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpHost !== undefined){const _errs18 = errors;if(typeof data0.smtpHost !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpHost",schemaPath:"#/properties/requestBody/properties/smtpHost/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs18 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPort !== undefined){let data9 = data0.smtpPort;const _errs20 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs20){if(typeof data9 == "number"){if(data9 > 65535 || isNaN(data9)){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data9))){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPort",schemaPath:"#/properties/requestBody/properties/smtpPort/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpTls !== undefined){const _errs22 = errors;if(typeof data0.smtpTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpTls",schemaPath:"#/properties/requestBody/properties/smtpTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpStartTls !== undefined){const _errs24 = errors;if(typeof data0.smtpStartTls !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpStartTls",schemaPath:"#/properties/requestBody/properties/smtpStartTls/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs24 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpUsername !== undefined){const _errs26 = errors;if(typeof data0.smtpUsername !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpUsername",schemaPath:"#/properties/requestBody/properties/smtpUsername/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.smtpPassword !== undefined){let data13 = data0.smtpPassword;const _errs28 = errors;if(errors === _errs28){if(errors === _errs28){if(typeof data13 === "string"){if(!(formats0.validate(data13))){validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/format",keyword:"format",params:{format: "password"},message:"must match format \""+"password"+"\""}];return false;}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/smtpPassword",schemaPath:"#/properties/requestBody/properties/smtpPassword/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid1 = _errs28 === errors;}else {var valid1 = true;}if(valid1){if(data0.isActive !== undefined){const _errs30 = errors;if(typeof data0.isActive !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/isActive",schemaPath:"#/properties/requestBody/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs30 === errors;}else {var valid1 = true;}if(valid1){if(data0.syncedServices !== undefined){let data15 = data0.syncedServices;const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data15)){var valid2 = true;const len0 = data15.length;for(let i0=0; i0<len0; i0++){let data16 = data15[i0];const _errs34 = errors;if(typeof data16 !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data16 === "Mail") || (data16 === "Calendar"))){validate13.errors = [{instancePath:instancePath+"/requestBody/syncedServices/" + i0,schemaPath:"#/properties/requestBody/properties/syncedServices/items/enum",keyword:"enum",params:{allowedValues: schema14.properties.requestBody.properties.syncedServices.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs34 === errors;if(!valid2){break;}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/syncedServices",schemaPath:"#/properties/requestBody/properties/syncedServices/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs32 === errors;}else {var valid1 = true;}if(valid1){if(data0.signaturePlainText !== undefined){const _errs36 = errors;if(typeof data0.signaturePlainText !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/signaturePlainText",schemaPath:"#/properties/requestBody/properties/signaturePlainText/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs36 === errors;}else {var valid1 = true;}if(valid1){if(data0.signatureHtml !== undefined){const _errs38 = errors;if(typeof data0.signatureHtml !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/signatureHtml",schemaPath:"#/properties/requestBody/properties/signatureHtml/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs38 === errors;}else {var valid1 = true;}if(valid1){if(data0.composeLanguages !== undefined){let data19 = data0.composeLanguages;const _errs40 = errors;if(errors === _errs40){if(Array.isArray(data19)){var valid3 = true;const len1 = data19.length;for(let i1=0; i1<len1; i1++){const _errs42 = errors;if(typeof data19[i1] !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/composeLanguages/" + i1,schemaPath:"#/properties/requestBody/properties/composeLanguages/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs42 === errors;if(!valid3){break;}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/composeLanguages",schemaPath:"#/properties/requestBody/properties/composeLanguages/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs40 === errors;}else {var valid1 = true;}if(valid1){if(data0.muted !== undefined){let data21 = data0.muted;const _errs44 = errors;if((!(data21 && typeof data21 == "object" && !Array.isArray(data21))) && (data21 !== null)){validate13.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs47 = errors;const _errs49 = errors;if(errors === _errs49){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.setAt !== undefined){let data22 = data21.setAt;const _errs51 = errors;if(!((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22)))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs51){if(typeof data22 == "number"){if(!(formats24.validate(data22))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs51 === errors;}else {var valid6 = true;}if(valid6){if(data21.setBy !== undefined){const _errs53 = errors;if(typeof data21.setBy !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/setBy",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data21.expiresAt !== undefined){let data24 = data21.expiresAt;const _errs55 = errors;if(!((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24)))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs55){if(typeof data24 == "number"){if(!(formats24.validate(data24))){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data21.reason !== undefined){const _errs57 = errors;if(typeof data21.reason !== "string"){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/reason",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs57 === errors;}else {var valid6 = true;}}}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs47){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.value !== undefined){if(typeof data21.value !== "boolean"){validate13.errors = [{instancePath:instancePath+"/requestBody/muted/value",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs44 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}}}}}else {validate13.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate13.errors = vErrors;return errors === 0;}exports.FilterOperations_createFilter = validate14;const schema15 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["name","scope","matchOperator","literalClauses","actionLabelId","actionMailboxId"],"properties":{"name":{"allOf":[{"type":"string","maxLength":256}],"description":"Plain-language name or editable label for this filter"},"scope":{"allOf":[{"type":"string","enum":["Standing","Temporary"],"description":"Whether a Filter is permanent or expires (RFC 034 Decision 1). A Filter row exists only for these two standing scopes — the one-time \"just these\" / \"all like these\" batch actions never create one."}],"description":"Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again."},"expiresAt":{"type":"string","description":"ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does."},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"$ref":"#/properties/requestBody/properties/name/allOf/0"}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"minItems":1,"description":"Literal from/subject/has-words predicate clauses (RFC 031). A filter carries at least one."},"actionLabelId":{"type":"string","description":"Label applied when this filter matches — additive action, any number of filters can independently apply their own label (RFC 034 Decision 3.1). The named sentinel `\"None\"` means no label action; never an empty/optional field.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `\"None\"` means no move action.","default":"None"}},"description":"Input for creating a filter (RFC 034). `ttl` is omitted — it is derived\nserver-side from `expiresAt` when `scope` is `Temporary` (RFC 034 Decision\n1.3), never client-supplied. `state`, `ruleChangedAt`, and `filterId` are\nall server-derived and excluded by their Read-only visibility."}},"required":["requestBody"],"$id":"FilterOperations_createFilter"};const schema16 = {"type":"string","maxLength":256};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="FilterOperations_createFilter" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate14.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((((data0.name === undefined) && (missing1 = "name")) || ((data0.scope === undefined) && (missing1 = "scope"))) || ((data0.matchOperator === undefined) && (missing1 = "matchOperator"))) || ((data0.literalClauses === undefined) && (missing1 = "literalClauses"))) || ((data0.actionLabelId === undefined) && (missing1 = "actionLabelId"))) || ((data0.actionMailboxId === undefined) && (missing1 = "actionMailboxId"))){validate14.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 256){validate14.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.scope !== undefined){let data2 = data0.scope;const _errs7 = errors;if(typeof data2 !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "Standing") || (data2 === "Temporary"))){validate14.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/enum",keyword:"enum",params:{allowedValues: schema15.properties.requestBody.properties.scope.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.expiresAt !== undefined){const _errs10 = errors;if(typeof data0.expiresAt !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/expiresAt",schemaPath:"#/properties/requestBody/properties/expiresAt/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data4 = data0.matchOperator;const _errs12 = errors;if(typeof data4 !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "And") || (data4 === "Or"))){validate14.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema15.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data5 = data0.literalClauses;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data5)){if(data5.length < 1){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid5 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs17 = errors;if(errors === _errs17){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if(((data6.field === undefined) && (missing2 = "field")) || ((data6.value === undefined) && (missing2 = "value"))){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data6.field !== undefined){let data7 = data6.field;const _errs19 = errors;if(typeof data7 !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data7 === "From") || (data7 === "Subject")) || (data7 === "HasWords")) || (data7 === "ListId")) || (data7 === "FromDomain"))){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema15.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs19 === errors;}else {var valid6 = true;}if(valid6){if(data6.value !== undefined){let data8 = data6.value;const _errs22 = errors;const _errs24 = errors;if(errors === _errs24){if(typeof data8 === "string"){if(func2(data8) > 256){validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs22 === errors;}else {var valid6 = true;}}}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs17 === errors;if(!valid5){break;}}}}else {validate14.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs26 = errors;if(typeof data0.actionLabelId !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs28 = errors;if(typeof data0.actionMailboxId !== "string"){validate14.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs28 === errors;}else {var valid1 = true;}}}}}}}}}else {validate14.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate14.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate14.errors = vErrors;return errors === 0;}exports.FilterDetailOperations_updateFilter = validate15;const schema17 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"name":{"allOf":[{"type":"string","maxLength":256}],"description":"Plain-language name or editable label for this filter"},"scope":{"allOf":[{"type":"string","enum":["Standing","Temporary"],"description":"Whether a Filter is permanent or expires (RFC 034 Decision 1). A Filter row exists only for these two standing scopes — the one-time \"just these\" / \"all like these\" batch actions never create one."}],"description":"Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again."},"expiresAt":{"type":"string","description":"ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does."},"state":{"allOf":[{"type":"string","enum":["Active","Expired","Disabled"],"description":"Whether a Filter runs, backing the byAccountAndState index (RFC 034 Decision 1.2). Active and Disabled are written; Expired is a lazily-patched cache of Filter.expiresAt, which stays the source of truth for expiry. A Disabled filter records why in Filter.disabledReason."}],"description":"Whether this filter runs, backing byAccountAndState (RFC 034 Decision 1.2). Starts Active. The user sets Active or Disabled on update; the system sets Disabled when the filter cannot work as designed, and records why in disabledReason. Expired is lazily patched the first time something reads a Temporary filter past its expiresAt, which stays the correctness source for expiry.","default":"Active"},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"$ref":"#/properties/requestBody/properties/name/allOf/0"}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"minItems":1,"description":"Literal from/subject/has-words predicate clauses (RFC 031). A filter carries at least one."},"actionLabelId":{"type":"string","description":"Label applied when this filter matches — additive action, any number of filters can independently apply their own label (RFC 034 Decision 3.1). The named sentinel `\"None\"` means no label action; never an empty/optional field.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `\"None\"` means no move action.","default":"None"}},"description":"Input for updating a filter (RFC 034, reader #266). The name, predicate,\naction, scope, and expiresAt are all updatable; `ttl` is always\nserver-derived from `scope`/`expiresAt`, never client-supplied, and\n`disabledReason`/`ruleChangedAt`/`actionChangedAt`/`filterId` are\nserver-derived too. `state` takes `Active` or `Disabled`: the user turns a\nfilter off or back on, and turning it on clears `disabledReason`. `Expired`\nis refused; the expiry is set through `scope`/`expiresAt`. A patch touching the predicate, the action, `scope`, or\n`expiresAt` bumps `ruleChangedAt`; a name-only rename never does (RFC 034\nDecision 3.2, reader #266). Only a patch touching the predicate or the\naction bumps `actionChangedAt`, the narrower signal exclusive-move\nprecedence reads (reader #384) — a scope/expiresAt-only edit leaves it\nuntouched."}},"required":["requestBody"],"$id":"FilterDetailOperations_updateFilter"};const schema18 = {"type":"string","maxLength":256};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="FilterDetailOperations_updateFilter" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate15.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 256){validate15.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.scope !== undefined){let data2 = data0.scope;const _errs7 = errors;if(typeof data2 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "Standing") || (data2 === "Temporary"))){validate15.errors = [{instancePath:instancePath+"/requestBody/scope",schemaPath:"#/properties/requestBody/properties/scope/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.scope.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.expiresAt !== undefined){const _errs10 = errors;if(typeof data0.expiresAt !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/expiresAt",schemaPath:"#/properties/requestBody/properties/expiresAt/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.state !== undefined){let data4 = data0.state;const _errs12 = errors;if(typeof data4 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/state",schemaPath:"#/properties/requestBody/properties/state/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data4 === "Active") || (data4 === "Expired")) || (data4 === "Disabled"))){validate15.errors = [{instancePath:instancePath+"/requestBody/state",schemaPath:"#/properties/requestBody/properties/state/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.state.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data5 = data0.matchOperator;const _errs15 = errors;if(typeof data5 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data5 === "And") || (data5 === "Or"))){validate15.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data6 = data0.literalClauses;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data6)){if(data6.length < 1){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid6 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){let data7 = data6[i0];const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.field === undefined) && (missing1 = "field")) || ((data7.value === undefined) && (missing1 = "value"))){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data7.field !== undefined){let data8 = data7.field;const _errs22 = errors;if(typeof data8 !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data8 === "From") || (data8 === "Subject")) || (data8 === "HasWords")) || (data8 === "ListId")) || (data8 === "FromDomain"))){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema17.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid7 = _errs22 === errors;}else {var valid7 = true;}if(valid7){if(data7.value !== undefined){let data9 = data7.value;const _errs25 = errors;const _errs27 = errors;if(errors === _errs27){if(typeof data9 === "string"){if(func2(data9) > 256){validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs25 === errors;}else {var valid7 = true;}}}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs20 === errors;if(!valid6){break;}}}}else {validate15.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs29 = errors;if(typeof data0.actionLabelId !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs31 = errors;if(typeof data0.actionMailboxId !== "string"){validate15.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs31 === errors;}else {var valid1 = true;}}}}}}}}}else {validate15.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate15.errors = vErrors;return errors === 0;}exports.FolderRoleOperations_appointFolderRole = validate16;const schema19 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["mailboxId"],"properties":{"mailboxId":{"type":"string","nullable":true,"description":"Mailbox to appoint to the role, or `null` to clear the appointment. Typed as an inline nullable string rather than `UUID | null`: a named scalar union renders as allOf + nullable with no sibling type, which openapi-backend's AJV rejects for a `null` value — the same gotcha documented on RenameMailboxInput.displayNameOverride. An inline string keeps `null` valid at the wire; the handler validates the value as a UUID."}},"description":"Input for PUT /accounts/{accountId}/folder-roles/{role}. Appoints the mailbox to the role, replacing whichever mailbox previously held it (exclusive by construction — the map has one slot per role). Pass `mailboxId: null` to clear the role back to unfilled."}},"required":["requestBody"],"$id":"FolderRoleOperations_appointFolderRole"};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="FolderRoleOperations_appointFolderRole" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate16.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.mailboxId === undefined) && (missing1 = "mailboxId")){validate16.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.mailboxId !== undefined){let data1 = data0.mailboxId;if((typeof data1 !== "string") && (data1 !== null)){validate16.errors = [{instancePath:instancePath+"/requestBody/mailboxId",schemaPath:"#/properties/requestBody/properties/mailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate16.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate16.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate16.errors = vErrors;return errors === 0;}exports.LabelOperations_createLabel = validate17;const schema20 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["name","color"],"properties":{"name":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable label name (display)"},"color":{"allOf":[{"type":"string","enum":["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],"description":"Display color for a user-defined Label (RFC 030)."}],"description":"Display color for this label","default":"Default"}},"description":"Input for creating a label (RFC 030). `normalizedName` is server-derived from `name` and excluded by its Read-only visibility."}},"required":["requestBody"],"$id":"LabelOperations_createLabel"};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="LabelOperations_createLabel" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate17.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.name === undefined) && (missing1 = "name")) || ((data0.color === undefined) && (missing1 = "color"))){validate17.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate17.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate17.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data2 = data0.color;const _errs7 = errors;if(typeof data2 !== "string"){validate17.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data2 === "Default") || (data2 === "Red")) || (data2 === "Orange")) || (data2 === "Yellow")) || (data2 === "Green")) || (data2 === "Teal")) || (data2 === "Blue")) || (data2 === "Purple")) || (data2 === "Gray"))){validate17.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema20.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}else {validate17.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate17.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate17.errors = vErrors;return errors === 0;}exports.LabelDetailOperations_updateLabel = validate18;const schema21 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"name":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable label name (display)"},"color":{"allOf":[{"type":"string","enum":["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],"description":"Display color for a user-defined Label (RFC 030)."}],"description":"Display color for this label","default":"Default"}},"description":"Input for updating a label (RFC 030). Only `name` and `color` are mutable."}},"required":["requestBody"],"$id":"LabelDetailOperations_updateLabel"};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="LabelDetailOperations_updateLabel" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate18.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate18.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate18.errors = [{instancePath:instancePath+"/requestBody/name",schemaPath:"#/properties/requestBody/properties/name/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data2 = data0.color;const _errs7 = errors;if(typeof data2 !== "string"){validate18.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data2 === "Default") || (data2 === "Red")) || (data2 === "Orange")) || (data2 === "Yellow")) || (data2 === "Green")) || (data2 === "Teal")) || (data2 === "Blue")) || (data2 === "Purple")) || (data2 === "Gray"))){validate18.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema21.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}else {validate18.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate18.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate18.errors = vErrors;return errors === 0;}exports.MailboxOperations_createMailbox = validate19;const schema22 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["namespaceType","fullPath"],"properties":{"namespaceType":{"allOf":[{"type":"string","enum":["personal","other_users","shared"],"description":"IMAP namespace types per RFC 9051 Section 6.3.10"}],"description":"Namespace type: personal, other_users, or shared","default":"personal"},"fullPath":{"allOf":[{"type":"string","maxLength":512}],"minLength":1,"description":"Complete mailbox path including hierarchy"}},"description":"Input for creating a new mailbox"}},"required":["requestBody"],"$id":"MailboxOperations_createMailbox"};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MailboxOperations_createMailbox" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate19.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.namespaceType === undefined) && (missing1 = "namespaceType")) || ((data0.fullPath === undefined) && (missing1 = "fullPath"))){validate19.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.namespaceType !== undefined){let data1 = data0.namespaceType;const _errs4 = errors;if(typeof data1 !== "string"){validate19.errors = [{instancePath:instancePath+"/requestBody/namespaceType",schemaPath:"#/properties/requestBody/properties/namespaceType/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data1 === "personal") || (data1 === "other_users")) || (data1 === "shared"))){validate19.errors = [{instancePath:instancePath+"/requestBody/namespaceType",schemaPath:"#/properties/requestBody/properties/namespaceType/allOf/0/enum",keyword:"enum",params:{allowedValues: schema22.properties.requestBody.properties.namespaceType.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.fullPath !== undefined){let data2 = data0.fullPath;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 512){validate19.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate19.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}if(errors === _errs7){if(typeof data2 === "string"){if(func2(data2) < 1){validate19.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}else {validate19.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate19.errors = vErrors;return errors === 0;}exports.MailboxDetailOperations_renameMailbox = validate20;const schema23 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"fullPath":{"allOf":[{"type":"string","maxLength":512}],"description":"New full path (triggers IMAP rename when present)"},"muted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"}],"description":"Sender is muted: do not notify on new mail"}],"nullable":true,"description":"Mute flag. Pass a MutedFlag object to mute; pass `null` to clear the mute."},"displayNameOverride":{"type":"string","nullable":true,"maxLength":256,"description":"Sidebar display-name override. Pass a string to set; pass `null` to clear (UI falls back to the canonical/derived label). Typed as an inline nullable string with `@maxLength(256)` rather than `String256 | null`: a named scalar union renders as allOf + nullable with no sibling type, which openapi-backend's AJV rejects for a `null` value (the `$ref` re-imposes the string type), 400ing the clear path. An inline string attaches `type:string`, AJV compiles, and `null` stays valid at the wire while the 256-length cap is preserved."}},"description":"Input for updating a mailbox. Rename (IMAP sync) is triggered only when `fullPath` is provided. The `muted` flag and the `displayNameOverride` override can be updated independently without triggering IMAP machinery; pass `null` to clear either. The canonical role a folder fills is appointed separately — see FolderRoleOperations.appointFolderRole (RFC 032 exclusive-folder-appointment)."}},"required":["requestBody"],"$id":"MailboxDetailOperations_renameMailbox"};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MailboxDetailOperations_renameMailbox" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate20.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.fullPath !== undefined){let data1 = data0.fullPath;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 512){validate20.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate20.errors = [{instancePath:instancePath+"/requestBody/fullPath",schemaPath:"#/properties/requestBody/properties/fullPath/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.muted !== undefined){let data2 = data0.muted;const _errs7 = errors;if((!(data2 && typeof data2 == "object" && !Array.isArray(data2))) && (data2 !== null)){validate20.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs10 = errors;const _errs12 = errors;if(errors === _errs12){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.setAt !== undefined){let data3 = data2.setAt;const _errs14 = errors;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs14){if(typeof data3 == "number"){if(!(formats24.validate(data3))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/setAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data2.setBy !== undefined){const _errs16 = errors;if(typeof data2.setBy !== "string"){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/setBy",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data2.expiresAt !== undefined){let data5 = data2.expiresAt;const _errs18 = errors;if(!((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5)))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if(typeof data5 == "number"){if(!(formats24.validate(data5))){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data2.reason !== undefined){const _errs20 = errors;if(typeof data2.reason !== "string"){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/reason",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs20 === errors;}else {var valid5 = true;}}}}}else {validate20.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs10){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.value !== undefined){if(typeof data2.value !== "boolean"){validate20.errors = [{instancePath:instancePath+"/requestBody/muted/value",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate20.errors = [{instancePath:instancePath+"/requestBody/muted",schemaPath:"#/properties/requestBody/properties/muted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.displayNameOverride !== undefined){let data8 = data0.displayNameOverride;const _errs24 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate20.errors = [{instancePath:instancePath+"/requestBody/displayNameOverride",schemaPath:"#/properties/requestBody/properties/displayNameOverride/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(errors === _errs24){if(typeof data8 === "string"){if(func2(data8) > 256){validate20.errors = [{instancePath:instancePath+"/requestBody/displayNameOverride",schemaPath:"#/properties/requestBody/properties/displayNameOverride/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}}var valid1 = _errs24 === errors;}else {var valid1 = true;}}}}else {validate20.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}exports.OrganizeOperations_createOrganizeJob = validate21;const schema24 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["matchOperator","literalClauses","actionLabelId","actionMailboxId"],"properties":{"filterId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Back-apply this standing filter instead of the predicate in this body. The server reads the filter's persisted predicate and action, runs the pass over the inbox, and skips a move another active filter outranks, as index time does. The predicate and action fields of this body are ignored when it is set."},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine. Meaningless when literalClauses is empty.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"type":"string","maxLength":256}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"description":"Literal from/subject/has-words clauses (RFC 031), reusing the Filter predicate shape.","default":[]},"actionLabelId":{"type":"string","description":"Label applied to every matching message — additive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no label action.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox every matching message is moved into — exclusive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no move action.","default":"None"}},"description":"The predicate + action for a one-time \"all like these\" back-apply (RFC 034\nrecap, #1278). A distinct model, deliberately NOT a Filter: it carries no\n`scope`, `expiresAt`, or `name`, so it structurally cannot create a standing\nrule."}},"required":["requestBody"],"$id":"OrganizeOperations_createOrganizeJob"};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OrganizeOperations_createOrganizeJob" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate21.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.matchOperator === undefined) && (missing1 = "matchOperator")) || ((data0.literalClauses === undefined) && (missing1 = "literalClauses"))) || ((data0.actionLabelId === undefined) && (missing1 = "actionLabelId"))) || ((data0.actionMailboxId === undefined) && (missing1 = "actionMailboxId"))){validate21.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.filterId !== undefined){let data1 = data0.filterId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate21.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate21.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data2 = data0.matchOperator;const _errs7 = errors;if(typeof data2 !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "And") || (data2 === "Or"))){validate21.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema24.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data3 = data0.literalClauses;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){var valid4 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs12 = errors;if(errors === _errs12){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing2;if(((data4.field === undefined) && (missing2 = "field")) || ((data4.value === undefined) && (missing2 = "value"))){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data4.field !== undefined){let data5 = data4.field;const _errs14 = errors;if(typeof data5 !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data5 === "From") || (data5 === "Subject")) || (data5 === "HasWords")) || (data5 === "ListId")) || (data5 === "FromDomain"))){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema24.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data4.value !== undefined){let data6 = data4.value;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data6 === "string"){if(func2(data6) > 256){validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs17 === errors;}else {var valid5 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs12 === errors;if(!valid4){break;}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs20 = errors;if(typeof data0.actionLabelId !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs22 = errors;if(typeof data0.actionMailboxId !== "string"){validate21.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}exports.OrganizeOperations_previewOrganize = validate22;const schema25 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["matchOperator","literalClauses","actionLabelId","actionMailboxId"],"properties":{"filterId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Back-apply this standing filter instead of the predicate in this body. The server reads the filter's persisted predicate and action, runs the pass over the inbox, and skips a move another active filter outranks, as index time does. The predicate and action fields of this body are ignored when it is set."},"matchOperator":{"allOf":[{"type":"string","enum":["And","Or"],"description":"How a Filter's literalClauses combine (RFC 031 \"literal predicates, AND/OR\"). Ignored when literalClauses is empty."}],"description":"How literalClauses combine. Meaningless when literalClauses is empty.","default":"And"},"literalClauses":{"type":"array","items":{"type":"object","required":["field","value"],"properties":{"field":{"allOf":[{"type":"string","enum":["From","Subject","HasWords","ListId","FromDomain"],"description":"Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched at index time and in the back-apply corpus projection."}],"description":"Message attribute this clause matches against"},"value":{"allOf":[{"type":"string","maxLength":256}],"description":"Literal text to match"}},"description":"A single literal predicate clause (from / subject / has-words), combined with its siblings via Filter.matchOperator (RFC 031)."},"description":"Literal from/subject/has-words clauses (RFC 031), reusing the Filter predicate shape.","default":[]},"actionLabelId":{"type":"string","description":"Label applied to every matching message — additive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no label action.","default":"None"},"actionMailboxId":{"type":"string","description":"Mailbox every matching message is moved into — exclusive action (RFC 034 Decision 3.1). The `\"None\"` sentinel means no move action.","default":"None"}},"description":"The predicate + action for a one-time \"all like these\" back-apply (RFC 034\nrecap, #1278). A distinct model, deliberately NOT a Filter: it carries no\n`scope`, `expiresAt`, or `name`, so it structurally cannot create a standing\nrule."}},"required":["requestBody"],"$id":"OrganizeOperations_previewOrganize"};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OrganizeOperations_previewOrganize" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate22.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.matchOperator === undefined) && (missing1 = "matchOperator")) || ((data0.literalClauses === undefined) && (missing1 = "literalClauses"))) || ((data0.actionLabelId === undefined) && (missing1 = "actionLabelId"))) || ((data0.actionMailboxId === undefined) && (missing1 = "actionMailboxId"))){validate22.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.filterId !== undefined){let data1 = data0.filterId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate22.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate22.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/filterId",schemaPath:"#/properties/requestBody/properties/filterId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.matchOperator !== undefined){let data2 = data0.matchOperator;const _errs7 = errors;if(typeof data2 !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "And") || (data2 === "Or"))){validate22.errors = [{instancePath:instancePath+"/requestBody/matchOperator",schemaPath:"#/properties/requestBody/properties/matchOperator/allOf/0/enum",keyword:"enum",params:{allowedValues: schema25.properties.requestBody.properties.matchOperator.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.literalClauses !== undefined){let data3 = data0.literalClauses;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){var valid4 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs12 = errors;if(errors === _errs12){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing2;if(((data4.field === undefined) && (missing2 = "field")) || ((data4.value === undefined) && (missing2 = "value"))){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data4.field !== undefined){let data5 = data4.field;const _errs14 = errors;if(typeof data5 !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data5 === "From") || (data5 === "Subject")) || (data5 === "HasWords")) || (data5 === "ListId")) || (data5 === "FromDomain"))){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/field",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/field/allOf/0/enum",keyword:"enum",params:{allowedValues: schema25.properties.requestBody.properties.literalClauses.items.properties.field.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data4.value !== undefined){let data6 = data4.value;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data6 === "string"){if(func2(data6) > 256){validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0+"/value",schemaPath:"#/properties/requestBody/properties/literalClauses/items/properties/value/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs17 === errors;}else {var valid5 = true;}}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses/" + i0,schemaPath:"#/properties/requestBody/properties/literalClauses/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs12 === errors;if(!valid4){break;}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody/literalClauses",schemaPath:"#/properties/requestBody/properties/literalClauses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionLabelId !== undefined){const _errs20 = errors;if(typeof data0.actionLabelId !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/actionLabelId",schemaPath:"#/properties/requestBody/properties/actionLabelId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.actionMailboxId !== undefined){const _errs22 = errors;if(typeof data0.actionMailboxId !== "string"){validate22.errors = [{instancePath:instancePath+"/requestBody/actionMailboxId",schemaPath:"#/properties/requestBody/properties/actionMailboxId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}}}}}}}else {validate22.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}exports.AddressDetailOperations_updateAddress = validate23;const schema26 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"flags":{"allOf":[{"type":"object","properties":{"trusted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"}],"description":"Sender is trusted: auto-load images, allow author backgrounds"}],"nullable":true},"blocked":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is blocked: mail is placed in Junk, and images never load, even on explicit click"}],"nullable":true},"neverSpam":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is never spam: their mail is rescued from Junk whatever the authentication signals say. Mutually exclusive with `blocked` — the flag written last removes the other."}],"nullable":true,"description":"Setting this to `value: true` removes `blocked`, and setting `blocked` removes this one; the two cannot both stand"},"muted":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is muted: do not notify on new mail"}],"nullable":true},"vip":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is VIP: priority surface and push escalation"}],"nullable":true},"wellknown":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Sender is wellknown: engagement counters crossed the promotion threshold"}],"nullable":true},"junkOnly":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by naming this key in `UpdateAddressInput.clearFlags`."}],"nullable":true,"description":"Name this key in `clearFlags` to offer the address in autocomplete again"},"category":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"string","enum":["uncategorized","personal","newsletter","marketing","automated","transactional","social"],"description":"Header-derived message category. Set by classifyByHeaders during body-sync. Defaults to `uncategorized`, which covers both a message that has not been classified yet and one the classifier declined to categorize; `Message.classificationState` is what tells those apart."}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Category override for auto-classification"}],"nullable":true},"autoArchive":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"Auto-archive: skip inbox, file directly"}],"nullable":true},"unsubscribed":{"type":"object","allOf":[{"type":"object","properties":{"value":{"type":"boolean"}},"allOf":[{"$ref":"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0"}],"description":"User has unsubscribed; auto-mark-read until sender stops"}],"nullable":true}},"description":"Patch payload for AddressFlags entries. Sets the flags named here and leaves the others untouched. Removal travels in `UpdateAddressInput.clearFlags`, not here: the `null` alternative below is unreachable over OAS 3.0, where a nullable `$ref` emits as `allOf` and the request validator drops the `nullable` — and no `null` form exists at all for `category`, whose value is an enum with no false-equivalent member."}],"description":"Per-flag merge update; omitted flags are untouched"},"clearFlags":{"type":"array","items":{"type":"string","enum":["trusted","blocked","muted","vip","junkOnly","category","autoArchive","unsubscribed","neverSpam"],"description":"Names a key of `AddressFlags` that a client may address in `PATCH /addresses/{addressId}`. `wellknown` is deliberately absent: it is server-owned, derived from engagement counters, and is never written or removed by a client."},"description":"Flag keys to remove from the sparse map, leaving the rest untouched. This is the removal form for every flag, whatever its value type — clearing `category` reverts the sender to automatic classification. Applied after `flags`, so a key named in both ends up removed. Removing an absent flag succeeds and changes nothing."}},"description":"Input for updating an Address (currently flag updates only)"}},"required":["requestBody"],"$id":"AddressDetailOperations_updateAddress"};const schema27 = {"type":"object","properties":{"setAt":{"type":"integer","format":"int64","description":"Timestamp when the flag was set"},"setBy":{"type":"string","description":"Device/session/user identifier that set the flag (audit trail)"},"expiresAt":{"type":"integer","format":"int64","description":"Optional auto-revoke timestamp"},"reason":{"type":"string","description":"Free-text user note"}},"description":"Common metadata for sender-level flags"};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="AddressDetailOperations_updateAddress" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate23.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.flags !== undefined){let data1 = data0.flags;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.trusted !== undefined){let data2 = data1.trusted;const _errs7 = errors;if((!(data2 && typeof data2 == "object" && !Array.isArray(data2))) && (data2 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs10 = errors;const _errs12 = errors;if(errors === _errs12){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.setAt !== undefined){let data3 = data2.setAt;const _errs14 = errors;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs14){if(typeof data3 == "number"){if(!(formats24.validate(data3))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs14 === errors;}else {var valid6 = true;}if(valid6){if(data2.setBy !== undefined){const _errs16 = errors;if(typeof data2.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs16 === errors;}else {var valid6 = true;}if(valid6){if(data2.expiresAt !== undefined){let data5 = data2.expiresAt;const _errs18 = errors;if(!((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if(typeof data5 == "number"){if(!(formats24.validate(data5))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid6 = _errs18 === errors;}else {var valid6 = true;}if(valid6){if(data2.reason !== undefined){const _errs20 = errors;if(typeof data2.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs20 === errors;}else {var valid6 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs10){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.value !== undefined){if(typeof data2.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/trusted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data1.blocked !== undefined){let data8 = data1.blocked;const _errs24 = errors;if((!(data8 && typeof data8 == "object" && !Array.isArray(data8))) && (data8 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/blocked/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs27 = errors;const _errs30 = errors;if(errors === _errs30){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.setAt !== undefined){let data9 = data8.setAt;const _errs32 = errors;if(!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs32){if(typeof data9 == "number"){if(!(formats24.validate(data9))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid11 = _errs32 === errors;}else {var valid11 = true;}if(valid11){if(data8.setBy !== undefined){const _errs34 = errors;if(typeof data8.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs34 === errors;}else {var valid11 = true;}if(valid11){if(data8.expiresAt !== undefined){let data11 = data8.expiresAt;const _errs36 = errors;if(!((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs36){if(typeof data11 == "number"){if(!(formats24.validate(data11))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid11 = _errs36 === errors;}else {var valid11 = true;}if(valid11){if(data8.reason !== undefined){const _errs38 = errors;if(typeof data8.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs38 === errors;}else {var valid11 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs27){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.value !== undefined){if(typeof data8.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/blocked/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/blocked",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/blocked/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs24 === errors;}else {var valid3 = true;}if(valid3){if(data1.neverSpam !== undefined){let data14 = data1.neverSpam;const _errs42 = errors;if((!(data14 && typeof data14 == "object" && !Array.isArray(data14))) && (data14 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/neverSpam/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs45 = errors;const _errs48 = errors;if(errors === _errs48){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.setAt !== undefined){let data15 = data14.setAt;const _errs50 = errors;if(!((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs50){if(typeof data15 == "number"){if(!(formats24.validate(data15))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid16 = _errs50 === errors;}else {var valid16 = true;}if(valid16){if(data14.setBy !== undefined){const _errs52 = errors;if(typeof data14.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid16 = _errs52 === errors;}else {var valid16 = true;}if(valid16){if(data14.expiresAt !== undefined){let data17 = data14.expiresAt;const _errs54 = errors;if(!((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs54){if(typeof data17 == "number"){if(!(formats24.validate(data17))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid16 = _errs54 === errors;}else {var valid16 = true;}if(valid16){if(data14.reason !== undefined){const _errs56 = errors;if(typeof data14.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid16 = _errs56 === errors;}else {var valid16 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs45){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.value !== undefined){if(typeof data14.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/neverSpam/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/neverSpam",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/neverSpam/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs42 === errors;}else {var valid3 = true;}if(valid3){if(data1.muted !== undefined){let data20 = data1.muted;const _errs60 = errors;if((!(data20 && typeof data20 == "object" && !Array.isArray(data20))) && (data20 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/muted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs63 = errors;const _errs66 = errors;if(errors === _errs66){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.setAt !== undefined){let data21 = data20.setAt;const _errs68 = errors;if(!((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs68){if(typeof data21 == "number"){if(!(formats24.validate(data21))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid21 = _errs68 === errors;}else {var valid21 = true;}if(valid21){if(data20.setBy !== undefined){const _errs70 = errors;if(typeof data20.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid21 = _errs70 === errors;}else {var valid21 = true;}if(valid21){if(data20.expiresAt !== undefined){let data23 = data20.expiresAt;const _errs72 = errors;if(!((typeof data23 == "number") && (!(data23 % 1) && !isNaN(data23)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs72){if(typeof data23 == "number"){if(!(formats24.validate(data23))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid21 = _errs72 === errors;}else {var valid21 = true;}if(valid21){if(data20.reason !== undefined){const _errs74 = errors;if(typeof data20.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid21 = _errs74 === errors;}else {var valid21 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs63){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.value !== undefined){if(typeof data20.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/muted/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/muted",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/muted/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs60 === errors;}else {var valid3 = true;}if(valid3){if(data1.vip !== undefined){let data26 = data1.vip;const _errs78 = errors;if((!(data26 && typeof data26 == "object" && !Array.isArray(data26))) && (data26 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/vip/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs81 = errors;const _errs84 = errors;if(errors === _errs84){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.setAt !== undefined){let data27 = data26.setAt;const _errs86 = errors;if(!((typeof data27 == "number") && (!(data27 % 1) && !isNaN(data27)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs86){if(typeof data27 == "number"){if(!(formats24.validate(data27))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid26 = _errs86 === errors;}else {var valid26 = true;}if(valid26){if(data26.setBy !== undefined){const _errs88 = errors;if(typeof data26.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs88 === errors;}else {var valid26 = true;}if(valid26){if(data26.expiresAt !== undefined){let data29 = data26.expiresAt;const _errs90 = errors;if(!((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs90){if(typeof data29 == "number"){if(!(formats24.validate(data29))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid26 = _errs90 === errors;}else {var valid26 = true;}if(valid26){if(data26.reason !== undefined){const _errs92 = errors;if(typeof data26.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs92 === errors;}else {var valid26 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs81){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.value !== undefined){if(typeof data26.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/vip/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/vip",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/vip/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs78 === errors;}else {var valid3 = true;}if(valid3){if(data1.wellknown !== undefined){let data32 = data1.wellknown;const _errs96 = errors;if((!(data32 && typeof data32 == "object" && !Array.isArray(data32))) && (data32 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/wellknown/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs99 = errors;const _errs102 = errors;if(errors === _errs102){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.setAt !== undefined){let data33 = data32.setAt;const _errs104 = errors;if(!((typeof data33 == "number") && (!(data33 % 1) && !isNaN(data33)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs104){if(typeof data33 == "number"){if(!(formats24.validate(data33))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid31 = _errs104 === errors;}else {var valid31 = true;}if(valid31){if(data32.setBy !== undefined){const _errs106 = errors;if(typeof data32.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid31 = _errs106 === errors;}else {var valid31 = true;}if(valid31){if(data32.expiresAt !== undefined){let data35 = data32.expiresAt;const _errs108 = errors;if(!((typeof data35 == "number") && (!(data35 % 1) && !isNaN(data35)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs108){if(typeof data35 == "number"){if(!(formats24.validate(data35))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid31 = _errs108 === errors;}else {var valid31 = true;}if(valid31){if(data32.reason !== undefined){const _errs110 = errors;if(typeof data32.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid31 = _errs110 === errors;}else {var valid31 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs99){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/wellknown/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/wellknown",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/wellknown/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs96 === errors;}else {var valid3 = true;}if(valid3){if(data1.junkOnly !== undefined){let data38 = data1.junkOnly;const _errs114 = errors;if((!(data38 && typeof data38 == "object" && !Array.isArray(data38))) && (data38 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/junkOnly/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs117 = errors;const _errs120 = errors;if(errors === _errs120){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.setAt !== undefined){let data39 = data38.setAt;const _errs122 = errors;if(!((typeof data39 == "number") && (!(data39 % 1) && !isNaN(data39)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs122){if(typeof data39 == "number"){if(!(formats24.validate(data39))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid36 = _errs122 === errors;}else {var valid36 = true;}if(valid36){if(data38.setBy !== undefined){const _errs124 = errors;if(typeof data38.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid36 = _errs124 === errors;}else {var valid36 = true;}if(valid36){if(data38.expiresAt !== undefined){let data41 = data38.expiresAt;const _errs126 = errors;if(!((typeof data41 == "number") && (!(data41 % 1) && !isNaN(data41)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs126){if(typeof data41 == "number"){if(!(formats24.validate(data41))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid36 = _errs126 === errors;}else {var valid36 = true;}if(valid36){if(data38.reason !== undefined){const _errs128 = errors;if(typeof data38.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid36 = _errs128 === errors;}else {var valid36 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs117){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/junkOnly/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/junkOnly",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/junkOnly/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs114 === errors;}else {var valid3 = true;}if(valid3){if(data1.category !== undefined){let data44 = data1.category;const _errs132 = errors;if((!(data44 && typeof data44 == "object" && !Array.isArray(data44))) && (data44 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs135 = errors;const _errs138 = errors;if(errors === _errs138){if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.setAt !== undefined){let data45 = data44.setAt;const _errs140 = errors;if(!((typeof data45 == "number") && (!(data45 % 1) && !isNaN(data45)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs140){if(typeof data45 == "number"){if(!(formats24.validate(data45))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid41 = _errs140 === errors;}else {var valid41 = true;}if(valid41){if(data44.setBy !== undefined){const _errs142 = errors;if(typeof data44.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid41 = _errs142 === errors;}else {var valid41 = true;}if(valid41){if(data44.expiresAt !== undefined){let data47 = data44.expiresAt;const _errs144 = errors;if(!((typeof data47 == "number") && (!(data47 % 1) && !isNaN(data47)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs144){if(typeof data47 == "number"){if(!(formats24.validate(data47))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid41 = _errs144 === errors;}else {var valid41 = true;}if(valid41){if(data44.reason !== undefined){const _errs146 = errors;if(typeof data44.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid41 = _errs146 === errors;}else {var valid41 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs135){if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.value !== undefined){let data49 = data44.value;if(typeof data49 !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/allOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data49 === "uncategorized") || (data49 === "personal")) || (data49 === "newsletter")) || (data49 === "marketing")) || (data49 === "automated")) || (data49 === "transactional")) || (data49 === "social"))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/allOf/0/properties/value/enum",keyword:"enum",params:{allowedValues: schema26.properties.requestBody.properties.flags.allOf[0].properties.category.allOf[0].properties.value.enum},message:"must be equal to one of the allowed values"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/category",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/category/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs132 === errors;}else {var valid3 = true;}if(valid3){if(data1.autoArchive !== undefined){let data50 = data1.autoArchive;const _errs150 = errors;if((!(data50 && typeof data50 == "object" && !Array.isArray(data50))) && (data50 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/autoArchive/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs153 = errors;const _errs156 = errors;if(errors === _errs156){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.setAt !== undefined){let data51 = data50.setAt;const _errs158 = errors;if(!((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs158){if(typeof data51 == "number"){if(!(formats24.validate(data51))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid46 = _errs158 === errors;}else {var valid46 = true;}if(valid46){if(data50.setBy !== undefined){const _errs160 = errors;if(typeof data50.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid46 = _errs160 === errors;}else {var valid46 = true;}if(valid46){if(data50.expiresAt !== undefined){let data53 = data50.expiresAt;const _errs162 = errors;if(!((typeof data53 == "number") && (!(data53 % 1) && !isNaN(data53)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs162){if(typeof data53 == "number"){if(!(formats24.validate(data53))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid46 = _errs162 === errors;}else {var valid46 = true;}if(valid46){if(data50.reason !== undefined){const _errs164 = errors;if(typeof data50.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid46 = _errs164 === errors;}else {var valid46 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs153){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.value !== undefined){if(typeof data50.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/autoArchive/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/autoArchive",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/autoArchive/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs150 === errors;}else {var valid3 = true;}if(valid3){if(data1.unsubscribed !== undefined){let data56 = data1.unsubscribed;const _errs168 = errors;if((!(data56 && typeof data56 == "object" && !Array.isArray(data56))) && (data56 !== null)){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/unsubscribed/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs171 = errors;const _errs174 = errors;if(errors === _errs174){if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.setAt !== undefined){let data57 = data56.setAt;const _errs176 = errors;if(!((typeof data57 == "number") && (!(data57 % 1) && !isNaN(data57)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs176){if(typeof data57 == "number"){if(!(formats24.validate(data57))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/setAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid51 = _errs176 === errors;}else {var valid51 = true;}if(valid51){if(data56.setBy !== undefined){const _errs178 = errors;if(typeof data56.setBy !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/setBy",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/setBy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid51 = _errs178 === errors;}else {var valid51 = true;}if(valid51){if(data56.expiresAt !== undefined){let data59 = data56.expiresAt;const _errs180 = errors;if(!((typeof data59 == "number") && (!(data59 % 1) && !isNaN(data59)))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs180){if(typeof data59 == "number"){if(!(formats24.validate(data59))){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/expiresAt",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/expiresAt/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}var valid51 = _errs180 === errors;}else {var valid51 = true;}if(valid51){if(data56.reason !== undefined){const _errs182 = errors;if(typeof data56.reason !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/reason",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid51 = _errs182 === errors;}else {var valid51 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/trusted/allOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}if(errors === _errs171){if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.value !== undefined){if(typeof data56.value !== "boolean"){validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed/value",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/unsubscribed/allOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags/unsubscribed",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/properties/unsubscribed/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs168 === errors;}else {var valid3 = true;}}}}}}}}}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/flags",schemaPath:"#/properties/requestBody/properties/flags/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.clearFlags !== undefined){let data62 = data0.clearFlags;const _errs186 = errors;if(errors === _errs186){if(Array.isArray(data62)){var valid53 = true;const len0 = data62.length;for(let i0=0; i0<len0; i0++){let data63 = data62[i0];const _errs188 = errors;if(typeof data63 !== "string"){validate23.errors = [{instancePath:instancePath+"/requestBody/clearFlags/" + i0,schemaPath:"#/properties/requestBody/properties/clearFlags/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data63 === "trusted") || (data63 === "blocked")) || (data63 === "muted")) || (data63 === "vip")) || (data63 === "junkOnly")) || (data63 === "category")) || (data63 === "autoArchive")) || (data63 === "unsubscribed")) || (data63 === "neverSpam"))){validate23.errors = [{instancePath:instancePath+"/requestBody/clearFlags/" + i0,schemaPath:"#/properties/requestBody/properties/clearFlags/items/enum",keyword:"enum",params:{allowedValues: schema26.properties.requestBody.properties.clearFlags.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid53 = _errs188 === errors;if(!valid53){break;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody/clearFlags",schemaPath:"#/properties/requestBody/properties/clearFlags/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs186 === errors;}else {var valid1 = true;}}}else {validate23.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate23.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate23.errors = vErrors;return errors === 0;}exports.CalendarEventOperations_createCalendarEvent = validate24;const schema36 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["calendarId","summary","start","end"],"properties":{"calendarId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Collection to write the event into"},"summary":{"allOf":[{"type":"string","maxLength":512}],"description":"SUMMARY of the event"},"description":{"allOf":[{"type":"string","maxLength":2048}],"description":"DESCRIPTION of the event. Absent writes none."},"location":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"LOCATION of the event. Absent writes none."},"start":{"allOf":[{"type":"string","maxLength":64}],"description":"When the event starts: an ISO 8601 date-time with zone offset, or a `YYYY-MM-DD` date when `allDay` is set."},"end":{"allOf":[{"$ref":"#/properties/requestBody/properties/start/allOf/0"}],"description":"When the event ends, in the same form as `start`. Exclusive for an all-day event, per RFC 5545 3.6.1."},"allDay":{"type":"boolean","description":"Whether this is an all-day event, whose times are civil dates rather than instants"},"timeZone":{"allOf":[{"$ref":"#/properties/requestBody/properties/start/allOf/0"}],"description":"IANA time zone the event is anchored in, e.g. \"Europe/Amsterdam\", written as the DTSTART TZID. Absent anchors the event in UTC. Refused with 400 when the zone is one this server cannot resolve — a calendar that accepted an unknown zone would draw the event hours away from where it belongs."},"status":{"allOf":[{"type":"string","enum":["Confirmed","Tentative","Cancelled"],"description":"Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated."}],"description":"STATUS of the event"},"transparency":{"allOf":[{"type":"string","enum":["Opaque","Transparent"],"description":"Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default."}],"description":"TRANSP of the event — whether it consumes free/busy time"},"recurrenceRule":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"RRULE value for a recurring event, e.g. \"FREQ=WEEKLY;BYDAY=MO\" (RFC 5545 3.8.5.3), without the property name. `\"\"` creates a single event. Refused with 400 when it is not a rule this server can read."},"attendees":{"type":"array","items":{"type":"object","required":["email","displayName"],"properties":{"email":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"The guest's mail address"},"displayName":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary/allOf/0"}],"description":"The guest's name. The address itself when the contact has none."}},"description":"A guest as the event editor sends one."},"description":"The guests. Each gets an invitation from the organizer's account, queued in the same write. Absent or empty creates an event nobody is invited to."},"organizerAccountId":{"allOf":[{"$ref":"#/properties/requestBody/properties/calendarId/allOf/0"}],"description":"The account the event is organized and its invitations sent from. Refused with 400 `unknown_organizer` when it is not an account of the caller's account config, or `organizer_cannot_send` when that account has Mail turned off. Absent, an event with guests is sent from the default invitation sender in effect (`getUserSettings`)."}},"description":"Input for creating an event (issue #15). The server builds the VEVENT and\nwrites it through the single calendar write path, so an event created here,\none accepted from an invitation, and one PUT over CalDAV are the same bytes\nwritten the same way.\n\nTimes are ISO 8601 with zone offset — or a bare `YYYY-MM-DD` date when\n`allDay` is set. The offset pins the instant; `timeZone` names the zone the\nevent is anchored in, which is what a recurring event needs to survive a DST\ntransition. An offset alone cannot: a weekly 09:00 meeting written as\n`+02:00` becomes an 08:00 meeting in November."}},"required":["requestBody"],"$id":"CalendarEventOperations_createCalendarEvent"};const schema37 = {"type":"string","maxLength":512};const schema38 = {"type":"string","maxLength":64};const schema43 = {"type":"string","minLength":25,"maxLength":25};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarEventOperations_createCalendarEvent" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate24.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.calendarId === undefined) && (missing1 = "calendarId")) || ((data0.summary === undefined) && (missing1 = "summary"))) || ((data0.start === undefined) && (missing1 = "start"))) || ((data0.end === undefined) && (missing1 = "end"))){validate24.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.calendarId !== undefined){let data1 = data0.calendarId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate24.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate24.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.summary !== undefined){let data2 = data0.summary;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data3 = data0.description;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func2(data3) > 2048){validate24.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.location !== undefined){let data4 = data0.location;const _errs13 = errors;const _errs15 = errors;if(errors === _errs15){if(typeof data4 === "string"){if(func2(data4) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.start !== undefined){let data5 = data0.start;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data5 === "string"){if(func2(data5) > 64){validate24.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.end !== undefined){let data6 = data0.end;const _errs20 = errors;const _errs22 = errors;if(errors === _errs22){if(typeof data6 === "string"){if(func2(data6) > 64){validate24.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs24 = errors;if(typeof data0.allDay !== "boolean"){validate24.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs24 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data8 = data0.timeZone;const _errs26 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data8 === "string"){if(func2(data8) > 64){validate24.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.status !== undefined){let data9 = data0.status;const _errs30 = errors;if(typeof data9 !== "string"){validate24.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data9 === "Confirmed") || (data9 === "Tentative")) || (data9 === "Cancelled"))){validate24.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/allOf/0/enum",keyword:"enum",params:{allowedValues: schema36.properties.requestBody.properties.status.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs30 === errors;}else {var valid1 = true;}if(valid1){if(data0.transparency !== undefined){let data10 = data0.transparency;const _errs33 = errors;if(typeof data10 !== "string"){validate24.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data10 === "Opaque") || (data10 === "Transparent"))){validate24.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/allOf/0/enum",keyword:"enum",params:{allowedValues: schema36.properties.requestBody.properties.transparency.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs33 === errors;}else {var valid1 = true;}if(valid1){if(data0.recurrenceRule !== undefined){let data11 = data0.recurrenceRule;const _errs36 = errors;const _errs38 = errors;if(errors === _errs38){if(typeof data11 === "string"){if(func2(data11) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs36 === errors;}else {var valid1 = true;}if(valid1){if(data0.attendees !== undefined){let data12 = data0.attendees;const _errs40 = errors;if(errors === _errs40){if(Array.isArray(data12)){var valid16 = true;const len0 = data12.length;for(let i0=0; i0<len0; i0++){let data13 = data12[i0];const _errs42 = errors;if(errors === _errs42){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing2;if(((data13.email === undefined) && (missing2 = "email")) || ((data13.displayName === undefined) && (missing2 = "displayName"))){validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data13.email !== undefined){let data14 = data13.email;const _errs44 = errors;const _errs46 = errors;if(errors === _errs46){if(typeof data14 === "string"){if(func2(data14) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid17 = _errs44 === errors;}else {var valid17 = true;}if(valid17){if(data13.displayName !== undefined){let data15 = data13.displayName;const _errs48 = errors;const _errs50 = errors;if(errors === _errs50){if(typeof data15 === "string"){if(func2(data15) > 512){validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid17 = _errs48 === errors;}else {var valid17 = true;}}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid16 = _errs42 === errors;if(!valid16){break;}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/attendees",schemaPath:"#/properties/requestBody/properties/attendees/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs40 === errors;}else {var valid1 = true;}if(valid1){if(data0.organizerAccountId !== undefined){let data16 = data0.organizerAccountId;const _errs52 = errors;const _errs54 = errors;if(errors === _errs54){if(typeof data16 === "string"){if(func2(data16) > 25){validate24.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data16) < 25){validate24.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs52 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}else {validate24.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate24.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate24.errors = vErrors;return errors === 0;}exports.CalendarEventDetailOperations_updateCalendarEvent = validate25;const schema44 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"summary":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":2048},"location":{"$ref":"#/properties/requestBody/properties/summary"},"start":{"type":"string","maxLength":64},"end":{"$ref":"#/properties/requestBody/properties/start"},"allDay":{"type":"boolean"},"timeZone":{"$ref":"#/properties/requestBody/properties/start"},"status":{"type":"string","enum":["Confirmed","Tentative","Cancelled"],"description":"Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated."},"transparency":{"type":"string","enum":["Opaque","Transparent"],"description":"Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default."},"recurrenceRule":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary"}],"description":"RRULE value, or `\"\"` to drop the rule. Only meaningful with `scope=All` or `scope=Following`: an override is one occurrence and carries no rule of its own."},"attendees":{"type":"array","items":{"type":"object","required":["email","displayName"],"properties":{"email":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary"}],"description":"The guest's mail address"},"displayName":{"allOf":[{"$ref":"#/properties/requestBody/properties/summary"}],"description":"The guest's name. The address itself when the contact has none."}},"description":"A guest as the event editor sends one."},"description":"The whole guest list after the edit. A new guest gets an invitation and a removed one a cancellation. Refused with 400 `not_organizer` on an event the reader does not organize."},"organizerAccountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"The account that organizes the event, for an event that names no organizer yet. Refused with 400 `not_organizer` when the event already names a different one: the organizer never changes."},"answer":{"allOf":[{"type":"string","enum":["Accepted","Tentative","Declined"],"description":"The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12)."}],"description":"The reader's answer as a guest. Writes their PARTSTAT and queues a REPLY to the organizer. `scope` `This` answers one occurrence and `All` the series; `Following` is refused with 400. Refused with 400 `not_a_guest` when the reader organizes the event or is not on its guest list."}},"description":"Input for updating an event. Every field is optional and absence means\nuntouched — a patch that carries only `summary` renames the event and moves\nnothing.\n\nWhat the patch applies to is the `scope` parameter's business: `All` rewrites\nthe master, `This` writes a RECURRENCE-ID override for one occurrence, and\n`Following` splits the series at one occurrence and applies the patch to the\nremainder."}},"required":["requestBody"],"$id":"CalendarEventDetailOperations_updateCalendarEvent"};const schema45 = {"type":"string","maxLength":512};const schema46 = {"type":"string","maxLength":64};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarEventDetailOperations_updateCalendarEvent" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate25.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.summary !== undefined){let data1 = data0.summary;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func2(data1) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data2 = data0.description;const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 2048){validate25.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.location !== undefined){let data3 = data0.location;const _errs8 = errors;const _errs9 = errors;if(errors === _errs9){if(typeof data3 === "string"){if(func2(data3) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/location",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.start !== undefined){let data4 = data0.start;const _errs11 = errors;if(errors === _errs11){if(typeof data4 === "string"){if(func2(data4) > 64){validate25.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/start",schemaPath:"#/properties/requestBody/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.end !== undefined){let data5 = data0.end;const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(typeof data5 === "string"){if(func2(data5) > 64){validate25.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/end",schemaPath:"#/properties/requestBody/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs16 = errors;if(typeof data0.allDay !== "boolean"){validate25.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data7 = data0.timeZone;const _errs18 = errors;const _errs19 = errors;if(errors === _errs19){if(typeof data7 === "string"){if(func2(data7) > 64){validate25.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}if(valid1){if(data0.status !== undefined){let data8 = data0.status;const _errs21 = errors;if(typeof data8 !== "string"){validate25.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data8 === "Confirmed") || (data8 === "Tentative")) || (data8 === "Cancelled"))){validate25.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/enum",keyword:"enum",params:{allowedValues: schema44.properties.requestBody.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.transparency !== undefined){let data9 = data0.transparency;const _errs23 = errors;if(typeof data9 !== "string"){validate25.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data9 === "Opaque") || (data9 === "Transparent"))){validate25.errors = [{instancePath:instancePath+"/requestBody/transparency",schemaPath:"#/properties/requestBody/properties/transparency/enum",keyword:"enum",params:{allowedValues: schema44.properties.requestBody.properties.transparency.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.recurrenceRule !== undefined){let data10 = data0.recurrenceRule;const _errs25 = errors;const _errs27 = errors;if(errors === _errs27){if(typeof data10 === "string"){if(func2(data10) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/recurrenceRule",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.attendees !== undefined){let data11 = data0.attendees;const _errs29 = errors;if(errors === _errs29){if(Array.isArray(data11)){var valid7 = true;const len0 = data11.length;for(let i0=0; i0<len0; i0++){let data12 = data11[i0];const _errs31 = errors;if(errors === _errs31){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing1;if(((data12.email === undefined) && (missing1 = "email")) || ((data12.displayName === undefined) && (missing1 = "displayName"))){validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data12.email !== undefined){let data13 = data12.email;const _errs33 = errors;const _errs35 = errors;if(errors === _errs35){if(typeof data13 === "string"){if(func2(data13) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs33 === errors;}else {var valid8 = true;}if(valid8){if(data12.displayName !== undefined){let data14 = data12.displayName;const _errs37 = errors;const _errs39 = errors;if(errors === _errs39){if(typeof data14 === "string"){if(func2(data14) > 512){validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs37 === errors;}else {var valid8 = true;}}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/attendees/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs31 === errors;if(!valid7){break;}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/attendees",schemaPath:"#/properties/requestBody/properties/attendees/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data0.organizerAccountId !== undefined){let data15 = data0.organizerAccountId;const _errs41 = errors;const _errs42 = errors;if(errors === _errs42){if(typeof data15 === "string"){if(func2(data15) > 25){validate25.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/organizerAccountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data15) < 25){validate25.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/organizerAccountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody/organizerAccountId",schemaPath:"#/properties/requestBody/properties/organizerAccountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs41 === errors;}else {var valid1 = true;}if(valid1){if(data0.answer !== undefined){let data16 = data0.answer;const _errs44 = errors;if(typeof data16 !== "string"){validate25.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data16 === "Accepted") || (data16 === "Tentative")) || (data16 === "Declined"))){validate25.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/enum",keyword:"enum",params:{allowedValues: schema44.properties.requestBody.properties.answer.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs44 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}else {validate25.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;return errors === 0;}exports.CalendarSuggestionActionOperations_acceptCalendarSuggestion = validate26;const schema51 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["calendarId"],"properties":{"calendarId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Collection the accepted event is written into."},"answer":{"allOf":[{"type":"string","enum":["Accepted","Tentative","Declined"],"description":"The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12)."}],"description":"How the user answers. `Tentative` adds the event as a maybe. Refused with 400 on a `Cancel` suggestion, which has nothing to answer tentatively.","default":"Accepted"},"event":{"allOf":[{"type":"object","properties":{"summary":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":2048},"location":{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"},"start":{"type":"string","maxLength":64},"end":{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/start"},"allDay":{"type":"boolean"},"timeZone":{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/start"},"status":{"type":"string","enum":["Confirmed","Tentative","Cancelled"],"description":"Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated."},"transparency":{"type":"string","enum":["Opaque","Transparent"],"description":"Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default."},"recurrenceRule":{"allOf":[{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"}],"description":"RRULE value, or `\"\"` to drop the rule. Only meaningful with `scope=All` or `scope=Following`: an override is one occurrence and carries no rule of its own."},"attendees":{"type":"array","items":{"type":"object","required":["email","displayName"],"properties":{"email":{"allOf":[{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"}],"description":"The guest's mail address"},"displayName":{"allOf":[{"$ref":"#/properties/requestBody/properties/event/allOf/0/properties/summary"}],"description":"The guest's name. The address itself when the contact has none."}},"description":"A guest as the event editor sends one."},"description":"The whole guest list after the edit. A new guest gets an invitation and a removed one a cancellation. Refused with 400 `not_organizer` on an event the reader does not organize."},"organizerAccountId":{"allOf":[{"$ref":"#/properties/requestBody/properties/calendarId/allOf/0"}],"description":"The account that organizes the event, for an event that names no organizer yet. Refused with 400 `not_organizer` when the event already names a different one: the organizer never changes."},"answer":{"allOf":[{"$ref":"#/properties/requestBody/properties/answer/allOf/0"}],"description":"The reader's answer as a guest. Writes their PARTSTAT and queues a REPLY to the organizer. `scope` `This` answers one occurrence and `All` the series; `Following` is refused with 400. Refused with 400 `not_a_guest` when the reader organizes the event or is not on its guest list."}},"description":"Input for updating an event. Every field is optional and absence means\nuntouched — a patch that carries only `summary` renames the event and moves\nnothing.\n\nWhat the patch applies to is the `scope` parameter's business: `All` rewrites\nthe master, `This` writes a RECURRENCE-ID override for one occurrence, and\n`Following` splits the series at one occurrence and applies the patch to the\nremainder."}],"description":"Corrections the reader made before adding it, applied to the invitation's master VEVENT. A field left out keeps what the invitation said; omitted, the invitation is added as it arrived. Refused with 400 on a `Cancel` suggestion, which names no event to correct."}},"description":"Body of `POST /calendar-suggestions/{suggestionId}/accept`. Names the collection the event is written into; there is no default, because filing someone else's invitation into a calendar the user did not pick is a decision the server does not get to make."}},"required":["requestBody"],"$id":"CalendarSuggestionActionOperations_acceptCalendarSuggestion"};const schema52 = {"type":"string","maxLength":512};const schema53 = {"type":"string","maxLength":64};const schema58 = {"type":"string","minLength":25,"maxLength":25};const schema59 = {"type":"string","enum":["Accepted","Tentative","Declined"],"description":"The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12)."};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarSuggestionActionOperations_acceptCalendarSuggestion" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate26.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.calendarId === undefined) && (missing1 = "calendarId")){validate26.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.calendarId !== undefined){let data1 = data0.calendarId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate26.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate26.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.answer !== undefined){let data2 = data0.answer;const _errs7 = errors;if(typeof data2 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data2 === "Accepted") || (data2 === "Tentative")) || (data2 === "Declined"))){validate26.errors = [{instancePath:instancePath+"/requestBody/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/enum",keyword:"enum",params:{allowedValues: schema51.properties.requestBody.properties.answer.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.event !== undefined){let data3 = data0.event;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.summary !== undefined){let data4 = data3.summary;const _errs13 = errors;if(errors === _errs13){if(typeof data4 === "string"){if(func2(data4) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/summary",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/summary",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data3.description !== undefined){let data5 = data3.description;const _errs15 = errors;if(errors === _errs15){if(typeof data5 === "string"){if(func2(data5) > 2048){validate26.errors = [{instancePath:instancePath+"/requestBody/event/description",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/description/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/description",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs15 === errors;}else {var valid5 = true;}if(valid5){if(data3.location !== undefined){let data6 = data3.location;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data6 === "string"){if(func2(data6) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/location",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/location",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs17 === errors;}else {var valid5 = true;}if(valid5){if(data3.start !== undefined){let data7 = data3.start;const _errs20 = errors;if(errors === _errs20){if(typeof data7 === "string"){if(func2(data7) > 64){validate26.errors = [{instancePath:instancePath+"/requestBody/event/start",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/start",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data3.end !== undefined){let data8 = data3.end;const _errs22 = errors;const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(func2(data8) > 64){validate26.errors = [{instancePath:instancePath+"/requestBody/event/end",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/end",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs22 === errors;}else {var valid5 = true;}if(valid5){if(data3.allDay !== undefined){const _errs25 = errors;if(typeof data3.allDay !== "boolean"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/allDay",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data3.timeZone !== undefined){let data10 = data3.timeZone;const _errs27 = errors;const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(func2(data10) > 64){validate26.errors = [{instancePath:instancePath+"/requestBody/event/timeZone",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/timeZone",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/start/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data3.status !== undefined){let data11 = data3.status;const _errs30 = errors;if(typeof data11 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/status",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data11 === "Confirmed") || (data11 === "Tentative")) || (data11 === "Cancelled"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/status",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/status/enum",keyword:"enum",params:{allowedValues: schema51.properties.requestBody.properties.event.allOf[0].properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs30 === errors;}else {var valid5 = true;}if(valid5){if(data3.transparency !== undefined){let data12 = data3.transparency;const _errs32 = errors;if(typeof data12 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/transparency",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/transparency/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data12 === "Opaque") || (data12 === "Transparent"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/transparency",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/transparency/enum",keyword:"enum",params:{allowedValues: schema51.properties.requestBody.properties.event.allOf[0].properties.transparency.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}if(valid5){if(data3.recurrenceRule !== undefined){let data13 = data3.recurrenceRule;const _errs34 = errors;const _errs36 = errors;if(errors === _errs36){if(typeof data13 === "string"){if(func2(data13) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/recurrenceRule",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/recurrenceRule",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs34 === errors;}else {var valid5 = true;}if(valid5){if(data3.attendees !== undefined){let data14 = data3.attendees;const _errs38 = errors;if(errors === _errs38){if(Array.isArray(data14)){var valid11 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs40 = errors;if(errors === _errs40){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing2;if(((data15.email === undefined) && (missing2 = "email")) || ((data15.displayName === undefined) && (missing2 = "displayName"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/attendees/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data15.email !== undefined){let data16 = data15.email;const _errs42 = errors;const _errs44 = errors;if(errors === _errs44){if(typeof data16 === "string"){if(func2(data16) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/email",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid12 = _errs42 === errors;}else {var valid12 = true;}if(valid12){if(data15.displayName !== undefined){let data17 = data15.displayName;const _errs46 = errors;const _errs48 = errors;if(errors === _errs48){if(typeof data17 === "string"){if(func2(data17) > 512){validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0+"/displayName",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid12 = _errs46 === errors;}else {var valid12 = true;}}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees/" + i0,schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/attendees/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid11 = _errs40 === errors;if(!valid11){break;}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/attendees",schemaPath:"#/properties/requestBody/properties/event/allOf/0/properties/attendees/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid5 = _errs38 === errors;}else {var valid5 = true;}if(valid5){if(data3.organizerAccountId !== undefined){let data18 = data3.organizerAccountId;const _errs50 = errors;const _errs52 = errors;if(errors === _errs52){if(typeof data18 === "string"){if(func2(data18) > 25){validate26.errors = [{instancePath:instancePath+"/requestBody/event/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data18) < 25){validate26.errors = [{instancePath:instancePath+"/requestBody/event/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event/organizerAccountId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs50 === errors;}else {var valid5 = true;}if(valid5){if(data3.answer !== undefined){let data19 = data3.answer;const _errs54 = errors;if(typeof data19 !== "string"){validate26.errors = [{instancePath:instancePath+"/requestBody/event/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data19 === "Accepted") || (data19 === "Tentative")) || (data19 === "Declined"))){validate26.errors = [{instancePath:instancePath+"/requestBody/event/answer",schemaPath:"#/properties/requestBody/properties/answer/allOf/0/enum",keyword:"enum",params:{allowedValues: schema59.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs54 === errors;}else {var valid5 = true;}}}}}}}}}}}}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody/event",schemaPath:"#/properties/requestBody/properties/event/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}}}}}else {validate26.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate26.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate26.errors = vErrors;return errors === 0;}exports.CalendarSuggestionActionOperations_dismissCalendarSuggestion = validate27;const schema60 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["muteSender"],"properties":{"muteSender":{"type":"boolean","description":"Also stop offering invitations from this message's sender, by writing a standing `Filter` rule. `false` dismisses this one card and nothing else.","default":false}},"description":"Body of `POST /calendar-suggestions/{suggestionId}/dismiss`."}},"required":["requestBody"],"$id":"CalendarSuggestionActionOperations_dismissCalendarSuggestion"};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarSuggestionActionOperations_dismissCalendarSuggestion" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate27.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.muteSender === undefined) && (missing1 = "muteSender")){validate27.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.muteSender !== undefined){if(typeof data0.muteSender !== "boolean"){validate27.errors = [{instancePath:instancePath+"/requestBody/muteSender",schemaPath:"#/properties/requestBody/properties/muteSender/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}}else {validate27.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}exports.CalendarTaskOperations_createCalendarTask = validate28;const schema61 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["summary","due"],"properties":{"calendarId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Collection to write the task into. Absent writes it into the account config's task collection. Refused with 400 when it names a collection that is not `VtodoOnly`."},"summary":{"allOf":[{"type":"string","maxLength":512}],"description":"SUMMARY of the task"},"description":{"allOf":[{"type":"string","maxLength":2048}],"description":"DESCRIPTION of the task. Absent writes none."},"due":{"allOf":[{"type":"string","maxLength":64}],"description":"When the task is due: an ISO 8601 date-time with zone offset, or a `YYYY-MM-DD` date when `allDay` is set."},"allDay":{"type":"boolean","description":"Whether the task is due on a day rather than at a time"},"timeZone":{"allOf":[{"$ref":"#/properties/requestBody/properties/due/allOf/0"}],"description":"IANA time zone the due time is anchored in. Absent anchors it in UTC."}},"description":"Input for creating a task. The server builds the VTODO."}},"required":["requestBody"],"$id":"CalendarTaskOperations_createCalendarTask"};const schema62 = {"type":"string","maxLength":64};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarTaskOperations_createCalendarTask" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate28.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.summary === undefined) && (missing1 = "summary")) || ((data0.due === undefined) && (missing1 = "due"))){validate28.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.calendarId !== undefined){let data1 = data0.calendarId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate28.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate28.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/calendarId",schemaPath:"#/properties/requestBody/properties/calendarId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.summary !== undefined){let data2 = data0.summary;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 512){validate28.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data3 = data0.description;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func2(data3) > 2048){validate28.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.due !== undefined){let data4 = data0.due;const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(typeof data4 === "string"){if(func2(data4) > 64){validate28.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs16 = errors;if(typeof data0.allDay !== "boolean"){validate28.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data6 = data0.timeZone;const _errs18 = errors;const _errs20 = errors;if(errors === _errs20){if(typeof data6 === "string"){if(func2(data6) > 64){validate28.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}}}}}}}}else {validate28.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate28.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate28.errors = vErrors;return errors === 0;}exports.CalendarTaskDetailOperations_updateCalendarTask = validate29;const schema63 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"summary":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":2048},"due":{"type":"string","maxLength":64},"allDay":{"type":"boolean"},"timeZone":{"$ref":"#/properties/requestBody/properties/due"},"completed":{"type":"boolean","description":"Marks the task done (`STATUS:COMPLETED`) or not done again (`STATUS:NEEDS-ACTION`)"}},"description":"Input for updating a task. Every field is optional and absence means untouched."}},"required":["requestBody"],"$id":"CalendarTaskDetailOperations_updateCalendarTask"};const schema64 = {"type":"string","maxLength":64};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarTaskDetailOperations_updateCalendarTask" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate29.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.summary !== undefined){let data1 = data0.summary;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func2(data1) > 512){validate29.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/summary",schemaPath:"#/properties/requestBody/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.description !== undefined){let data2 = data0.description;const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 2048){validate29.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/description",schemaPath:"#/properties/requestBody/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.due !== undefined){let data3 = data0.due;const _errs8 = errors;if(errors === _errs8){if(typeof data3 === "string"){if(func2(data3) > 64){validate29.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/due",schemaPath:"#/properties/requestBody/properties/due/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.allDay !== undefined){const _errs10 = errors;if(typeof data0.allDay !== "boolean"){validate29.errors = [{instancePath:instancePath+"/requestBody/allDay",schemaPath:"#/properties/requestBody/properties/allDay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.timeZone !== undefined){let data5 = data0.timeZone;const _errs12 = errors;const _errs13 = errors;if(errors === _errs13){if(typeof data5 === "string"){if(func2(data5) > 64){validate29.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate29.errors = [{instancePath:instancePath+"/requestBody/timeZone",schemaPath:"#/properties/requestBody/properties/due/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.completed !== undefined){const _errs15 = errors;if(typeof data0.completed !== "boolean"){validate29.errors = [{instancePath:instancePath+"/requestBody/completed",schemaPath:"#/properties/requestBody/properties/completed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}}}}}}}else {validate29.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate29.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate29.errors = vErrors;return errors === 0;}exports.CalendarOperations_createCalendar = validate30;const schema65 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["displayName","urlSegment"],"properties":{"displayName":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable collection name (display)"},"urlSegment":{"allOf":[{"type":"string","maxLength":64}],"description":"Path segment addressing this collection, unique within the account config. Case-folded on write, so \"Work\" and \"work\" name the same collection and the second create is refused rather than silently merged into the first."},"color":{"allOf":[{"type":"string","enum":["Cal1","Cal2","Cal3","Cal4","Cal5","Cal6"],"description":"Display color for a calendar collection. Positional rather than named: the palette is a client-side concern, so the store carries the slot and the client owns what it renders (issue #15)."}],"description":"Display colour slot. Absent takes the collection's own default."},"timezone":{"allOf":[{"$ref":"#/properties/requestBody/properties/urlSegment/allOf/0"}],"description":"IANA time zone this collection's floating times are read in. Absent reads them as UTC."},"subscriptionUrl":{"allOf":[{"type":"string","maxLength":2048}],"description":"A read-only iCalendar URL to subscribe the collection to. `http`, `https` and `webcal` are accepted. The server fetches it once before creating anything and refuses with 400 when the fetch fails, so a mistyped address leaves no empty calendar behind. The collection is then `Subscribed`: it refuses event writes, and the scheduled refresh keeps it in step with the feed."}},"description":"Input for creating a calendar collection (issue #15).\n\n`urlSegment` is supplied rather than derived from the display name: it is the\ncollection's identity — `calendarId` is a hash of it — and the path a CalDAV\nclient will later bookmark. Slugging a name would make two calendars called\n\"Work\" one row, and a rename would either move a bookmarked path or leave a\nsegment that no longer matches anything a person recognises. The name is the\nmutable overlay; this is the address."}},"required":["requestBody"],"$id":"CalendarOperations_createCalendar"};const schema66 = {"type":"string","maxLength":64};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarOperations_createCalendar" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate30.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.displayName === undefined) && (missing1 = "displayName")) || ((data0.urlSegment === undefined) && (missing1 = "urlSegment"))){validate30.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.displayName !== undefined){let data1 = data0.displayName;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate30.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.urlSegment !== undefined){let data2 = data0.urlSegment;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func2(data2) > 64){validate30.errors = [{instancePath:instancePath+"/requestBody/urlSegment",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/urlSegment",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data3 = data0.color;const _errs10 = errors;if(typeof data3 !== "string"){validate30.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data3 === "Cal1") || (data3 === "Cal2")) || (data3 === "Cal3")) || (data3 === "Cal4")) || (data3 === "Cal5")) || (data3 === "Cal6"))){validate30.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema65.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.timezone !== undefined){let data4 = data0.timezone;const _errs13 = errors;const _errs15 = errors;if(errors === _errs15){if(typeof data4 === "string"){if(func2(data4) > 64){validate30.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/urlSegment/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data0.subscriptionUrl !== undefined){let data5 = data0.subscriptionUrl;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data5 === "string"){if(func2(data5) > 2048){validate30.errors = [{instancePath:instancePath+"/requestBody/subscriptionUrl",schemaPath:"#/properties/requestBody/properties/subscriptionUrl/allOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate30.errors = [{instancePath:instancePath+"/requestBody/subscriptionUrl",schemaPath:"#/properties/requestBody/properties/subscriptionUrl/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs17 === errors;}else {var valid1 = true;}}}}}}}else {validate30.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}exports.CalendarDetailOperations_updateCalendar = validate31;const schema67 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"displayName":{"allOf":[{"type":"string","maxLength":140}],"description":"Human-readable collection name (display)"},"color":{"allOf":[{"type":"string","enum":["Cal1","Cal2","Cal3","Cal4","Cal5","Cal6"],"description":"Display color for a calendar collection. Positional rather than named: the palette is a client-side concern, so the store carries the slot and the client owns what it renders (issue #15)."}],"description":"Display color slot for this collection","default":"Cal1"},"timezone":{"allOf":[{"type":"string","maxLength":64}],"description":"IANA time zone this collection's floating times are read in, e.g. \"Europe/Amsterdam\". `\"\"` when none is set, which reads as UTC.","default":""},"subscriptionEnabled":{"type":"boolean","description":"Whether the scheduled refresh re-reads `subscriptionUrl`. Turning it off stops the refresh and keeps every stored event. Always `false` on a collection that is not `Subscribed`.","default":false}},"description":"Input for updating a calendar collection. The name, colour and timezone are the mutable overlay, and `subscriptionEnabled` turns a subscribed collection's refresh off and on. `urlSegment` is not among them, because it is the collection's identity and the path a client has bookmarked."}},"required":["requestBody"],"$id":"CalendarDetailOperations_updateCalendar"};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="CalendarDetailOperations_updateCalendar" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate31.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.displayName !== undefined){let data1 = data0.displayName;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 140){validate31.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"}];return false;}}else {validate31.errors = [{instancePath:instancePath+"/requestBody/displayName",schemaPath:"#/properties/requestBody/properties/displayName/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.color !== undefined){let data2 = data0.color;const _errs7 = errors;if(typeof data2 !== "string"){validate31.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data2 === "Cal1") || (data2 === "Cal2")) || (data2 === "Cal3")) || (data2 === "Cal4")) || (data2 === "Cal5")) || (data2 === "Cal6"))){validate31.errors = [{instancePath:instancePath+"/requestBody/color",schemaPath:"#/properties/requestBody/properties/color/allOf/0/enum",keyword:"enum",params:{allowedValues: schema67.properties.requestBody.properties.color.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.timezone !== undefined){let data3 = data0.timezone;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func2(data3) > 64){validate31.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/timezone/allOf/0/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}else {validate31.errors = [{instancePath:instancePath+"/requestBody/timezone",schemaPath:"#/properties/requestBody/properties/timezone/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.subscriptionEnabled !== undefined){const _errs13 = errors;if(typeof data0.subscriptionEnabled !== "boolean"){validate31.errors = [{instancePath:instancePath+"/requestBody/subscriptionEnabled",schemaPath:"#/properties/requestBody/properties/subscriptionEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}}}}}else {validate31.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate31.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate31.errors = vErrors;return errors === 0;}exports.ConfigOperations_importConfig = validate32;const schema68 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["document"],"properties":{"mode":{"allOf":[{"type":"string","enum":["validate","apply"],"description":"Whether an import writes. The default is the dry run, so the wizard can show what a file would do before anything lands."}],"description":"`validate` writes nothing; `apply` writes.","default":"validate"},"onExisting":{"allOf":[{"type":"string","enum":["abort","merge"],"description":"What an import does when the configuration it is importing into is not empty."}],"description":"What to do when this configuration is not empty.","default":"abort"},"document":{"type":"object","additionalProperties":{},"description":"The config document, as exported."}},"description":"Request body for POST /config/import"}},"required":["requestBody"],"$id":"ConfigOperations_importConfig"};function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="ConfigOperations_importConfig" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate32.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.document === undefined) && (missing1 = "document")){validate32.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.mode !== undefined){let data1 = data0.mode;const _errs4 = errors;if(typeof data1 !== "string"){validate32.errors = [{instancePath:instancePath+"/requestBody/mode",schemaPath:"#/properties/requestBody/properties/mode/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "validate") || (data1 === "apply"))){validate32.errors = [{instancePath:instancePath+"/requestBody/mode",schemaPath:"#/properties/requestBody/properties/mode/allOf/0/enum",keyword:"enum",params:{allowedValues: schema68.properties.requestBody.properties.mode.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.onExisting !== undefined){let data2 = data0.onExisting;const _errs7 = errors;if(typeof data2 !== "string"){validate32.errors = [{instancePath:instancePath+"/requestBody/onExisting",schemaPath:"#/properties/requestBody/properties/onExisting/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "abort") || (data2 === "merge"))){validate32.errors = [{instancePath:instancePath+"/requestBody/onExisting",schemaPath:"#/properties/requestBody/properties/onExisting/allOf/0/enum",keyword:"enum",params:{allowedValues: schema68.properties.requestBody.properties.onExisting.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.document !== undefined){let data3 = data0.document;const _errs10 = errors;if(errors === _errs10){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){}else {validate32.errors = [{instancePath:instancePath+"/requestBody/document",schemaPath:"#/properties/requestBody/properties/document/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs10 === errors;}else {var valid1 = true;}}}}}else {validate32.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate32.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate32.errors = vErrors;return errors === 0;}exports.MeOperations_deleteMe = validate33;const schema69 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["confirmEmail"],"properties":{"confirmEmail":{"type":"string","description":"Must match the caller's Cognito email claim (case-insensitive)"}},"description":"Input for DELETE /me — requires the caller to confirm their email address"}},"required":["requestBody"],"$id":"MeOperations_deleteMe"};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MeOperations_deleteMe" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate33.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.confirmEmail === undefined) && (missing1 = "confirmEmail")){validate33.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.confirmEmail !== undefined){if(typeof data0.confirmEmail !== "string"){validate33.errors = [{instancePath:instancePath+"/requestBody/confirmEmail",schemaPath:"#/properties/requestBody/properties/confirmEmail/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate33.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate33.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate33.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_copyMessages = validate34;const schema70 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds","destinationMailboxId"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to copy"},"destinationMailboxId":{"allOf":[{"$ref":"#/properties/requestBody/properties/messageIds/items"}],"description":"Destination mailbox ID"}},"description":"Input for copying messages to another mailbox"}},"required":["requestBody"],"$id":"MessageBulkOperations_copyMessages"};const schema71 = {"type":"string","minLength":25,"maxLength":25};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_copyMessages" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate34.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.messageIds === undefined) && (missing1 = "messageIds")) || ((data0.destinationMailboxId === undefined) && (missing1 = "destinationMailboxId"))){validate34.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.destinationMailboxId !== undefined){let data3 = data0.destinationMailboxId;const _errs8 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func2(data3) > 25){validate34.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data3) < 25){validate34.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate34.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate34.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate34.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_deleteMessages = validate35;const schema72 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to delete"},"permanent":{"type":"boolean","description":"Permanently delete instead of moving to Trash. Default: false"}},"description":"Input for deleting messages"}},"required":["requestBody"],"$id":"MessageBulkOperations_deleteMessages"};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_deleteMessages" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate35.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate35.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate35.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.permanent !== undefined){const _errs8 = errors;if(typeof data0.permanent !== "boolean"){validate35.errors = [{instancePath:instancePath+"/requestBody/permanent",schemaPath:"#/properties/requestBody/properties/permanent/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate35.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate35.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate35.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_updateFlags = validate36;const schema73 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to update"},"isRead":{"type":"boolean","description":"Set messages as read (maps to \\Seen flag)"},"isStarred":{"type":"boolean","description":"Set messages as starred (maps to \\Flagged flag)"},"starColor":{"allOf":[{"type":"string","enum":["none","yellow","orange","red","purple","blue","teal","green","yellow_bang","red_bang","purple_question","blue_info","orange_guillemet","green_check","yellow_check","blue_star"],"description":"Gmail-style star colors for message/thread marking"}],"description":"Star color for visual categorization"}},"description":"Input for bulk flag update operations"}},"required":["requestBody"],"$id":"MessageBulkOperations_updateFlags"};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_updateFlags" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate36.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate36.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate36.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.isRead !== undefined){const _errs8 = errors;if(typeof data0.isRead !== "boolean"){validate36.errors = [{instancePath:instancePath+"/requestBody/isRead",schemaPath:"#/properties/requestBody/properties/isRead/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.isStarred !== undefined){const _errs10 = errors;if(typeof data0.isStarred !== "boolean"){validate36.errors = [{instancePath:instancePath+"/requestBody/isStarred",schemaPath:"#/properties/requestBody/properties/isStarred/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.starColor !== undefined){let data5 = data0.starColor;const _errs12 = errors;if(typeof data5 !== "string"){validate36.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((((((((((data5 === "none") || (data5 === "yellow")) || (data5 === "orange")) || (data5 === "red")) || (data5 === "purple")) || (data5 === "blue")) || (data5 === "teal")) || (data5 === "green")) || (data5 === "yellow_bang")) || (data5 === "red_bang")) || (data5 === "purple_question")) || (data5 === "blue_info")) || (data5 === "orange_guillemet")) || (data5 === "green_check")) || (data5 === "yellow_check")) || (data5 === "blue_star"))){validate36.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/enum",keyword:"enum",params:{allowedValues: schema73.properties.requestBody.properties.starColor.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}}else {validate36.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate36.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate36.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_updateMessageLabels = validate37;const schema74 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds","labelId","action"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"},"labelId":{"allOf":[{"$ref":"#/properties/requestBody/properties/messageIds/items"}],"description":"Label to apply or remove"},"action":{"allOf":[{"type":"string","enum":["Apply","Remove"],"description":"Manual bulk label action (issue #26) — apply or remove a label on a `just these` selection. Never sets `appliedByFilterId`: that field is reserved for filter-driven applies (RFC 034 Decision 3.3)."}],"description":"Whether to apply or remove the label"}},"description":"Input for a manual bulk label action — the \"just these\" scope (RFC 034 recap). `appliedByFilterId` never gets set on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies (RFC 034 Decision 3.3)."}},"required":["requestBody"],"$id":"MessageBulkOperations_updateMessageLabels"};const schema75 = {"type":"string","minLength":25,"maxLength":25};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_updateMessageLabels" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate37.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.messageIds === undefined) && (missing1 = "messageIds")) || ((data0.labelId === undefined) && (missing1 = "labelId"))) || ((data0.action === undefined) && (missing1 = "action"))){validate37.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.labelId !== undefined){let data3 = data0.labelId;const _errs8 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func2(data3) > 25){validate37.errors = [{instancePath:instancePath+"/requestBody/labelId",schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data3) < 25){validate37.errors = [{instancePath:instancePath+"/requestBody/labelId",schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody/labelId",schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.action !== undefined){let data4 = data0.action;const _errs12 = errors;if(typeof data4 !== "string"){validate37.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "Apply") || (data4 === "Remove"))){validate37.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/allOf/0/enum",keyword:"enum",params:{allowedValues: schema74.properties.requestBody.properties.action.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}}}}}else {validate37.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_moveMessages = validate38;const schema76 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds","destinationMailboxId"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"},"destinationMailboxId":{"allOf":[{"$ref":"#/properties/requestBody/properties/messageIds/items"}],"description":"Destination mailbox ID"}},"description":"Input for moving messages"}},"required":["requestBody"],"$id":"MessageBulkOperations_moveMessages"};const schema77 = {"type":"string","minLength":25,"maxLength":25};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_moveMessages" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate38.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.messageIds === undefined) && (missing1 = "messageIds")) || ((data0.destinationMailboxId === undefined) && (missing1 = "destinationMailboxId"))){validate38.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.destinationMailboxId !== undefined){let data3 = data0.destinationMailboxId;const _errs8 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func2(data3) > 25){validate38.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data3) < 25){validate38.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody/destinationMailboxId",schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate38.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate38.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate38.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_notSpam = validate39;const schema78 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"}},"description":"Input for bulk message operations"}},"required":["requestBody"],"$id":"MessageBulkOperations_notSpam"};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_notSpam" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate39.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate39.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate39.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate39.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate39.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate39.errors = vErrors;return errors === 0;}exports.MessageBulkOperations_reportSpam = validate40;const schema79 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["messageIds"],"properties":{"messageIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"minItems":1,"maxItems":100,"description":"List of message IDs to operate on"}},"description":"Input for bulk message operations"}},"required":["requestBody"],"$id":"MessageBulkOperations_reportSpam"};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageBulkOperations_reportSpam" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate40.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.messageIds === undefined) && (missing1 = "messageIds")){validate40.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.messageIds !== undefined){let data1 = data0.messageIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){if(data1.length > 100){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {if(data1.length < 1){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds/" + i0,schemaPath:"#/properties/requestBody/properties/messageIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}}}else {validate40.errors = [{instancePath:instancePath+"/requestBody/messageIds",schemaPath:"#/properties/requestBody/properties/messageIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate40.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate40.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate40.errors = vErrors;return errors === 0;}exports.MessageOperations_updateMessageFlags = validate41;const schema80 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"isRead":{"type":"boolean","description":"Set message as read (maps to \\Seen flag)"},"isStarred":{"type":"boolean","description":"Set message as starred (maps to \\Flagged flag)"},"starColor":{"allOf":[{"type":"string","enum":["none","yellow","orange","red","purple","blue","teal","green","yellow_bang","red_bang","purple_question","blue_info","orange_guillemet","green_check","yellow_check","blue_star"],"description":"Gmail-style star colors for message/thread marking"}],"description":"Star color for visual categorization"}},"description":"Input for updating message flags (translated to IMAP flags server-side)"}},"required":["requestBody"],"$id":"MessageOperations_updateMessageFlags"};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="MessageOperations_updateMessageFlags" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate41.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.isRead !== undefined){const _errs4 = errors;if(typeof data0.isRead !== "boolean"){validate41.errors = [{instancePath:instancePath+"/requestBody/isRead",schemaPath:"#/properties/requestBody/properties/isRead/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.isStarred !== undefined){const _errs6 = errors;if(typeof data0.isStarred !== "boolean"){validate41.errors = [{instancePath:instancePath+"/requestBody/isStarred",schemaPath:"#/properties/requestBody/properties/isStarred/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.starColor !== undefined){let data3 = data0.starColor;const _errs8 = errors;if(typeof data3 !== "string"){validate41.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((((((((((data3 === "none") || (data3 === "yellow")) || (data3 === "orange")) || (data3 === "red")) || (data3 === "purple")) || (data3 === "blue")) || (data3 === "teal")) || (data3 === "green")) || (data3 === "yellow_bang")) || (data3 === "red_bang")) || (data3 === "purple_question")) || (data3 === "blue_info")) || (data3 === "orange_guillemet")) || (data3 === "green_check")) || (data3 === "yellow_check")) || (data3 === "blue_star"))){validate41.errors = [{instancePath:instancePath+"/requestBody/starColor",schemaPath:"#/properties/requestBody/properties/starColor/allOf/0/enum",keyword:"enum",params:{allowedValues: schema80.properties.requestBody.properties.starColor.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}else {validate41.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate41.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate41.errors = vErrors;return errors === 0;}exports.OutboxOperations_createOutboxMessage = validate42;const schema81 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["accountId","toAddresses"],"properties":{"accountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"Account to send from"},"toAddresses":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Recipient addresses (To)"},"ccAddresses":{"type":"array","items":{"type":"string"},"description":"CC recipient addresses"},"bccAddresses":{"type":"array","items":{"type":"string"},"description":"BCC recipient addresses"},"subject":{"type":"string","description":"Subject line"},"textBody":{"type":"string","description":"Plain text body"},"htmlBody":{"type":"string","description":"HTML body"},"inReplyTo":{"type":"string","description":"For replies: parent message's Message-ID"},"references":{"type":"array","items":{"type":"string"},"description":"For replies: full References chain from parent"},"sendImmediately":{"type":"boolean","description":"Whether to send immediately or save as draft"}},"description":"Input for creating an outbox message"}},"required":["requestBody"],"$id":"OutboxOperations_createOutboxMessage"};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OutboxOperations_createOutboxMessage" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate42.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.accountId === undefined) && (missing1 = "accountId")) || ((data0.toAddresses === undefined) && (missing1 = "toAddresses"))){validate42.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.accountId !== undefined){let data1 = data0.accountId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate42.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate42.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/accountId",schemaPath:"#/properties/requestBody/properties/accountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.toAddresses !== undefined){let data2 = data0.toAddresses;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data2)){if(data2.length < 1){validate42.errors = [{instancePath:instancePath+"/requestBody/toAddresses",schemaPath:"#/properties/requestBody/properties/toAddresses/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data2[i0] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/toAddresses/" + i0,schemaPath:"#/properties/requestBody/properties/toAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs9 === errors;if(!valid3){break;}}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/toAddresses",schemaPath:"#/properties/requestBody/properties/toAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.ccAddresses !== undefined){let data4 = data0.ccAddresses;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid4 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){const _errs13 = errors;if(typeof data4[i1] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/ccAddresses/" + i1,schemaPath:"#/properties/requestBody/properties/ccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs13 === errors;if(!valid4){break;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/ccAddresses",schemaPath:"#/properties/requestBody/properties/ccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.bccAddresses !== undefined){let data6 = data0.bccAddresses;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data6)){var valid5 = true;const len2 = data6.length;for(let i2=0; i2<len2; i2++){const _errs17 = errors;if(typeof data6[i2] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/bccAddresses/" + i2,schemaPath:"#/properties/requestBody/properties/bccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs17 === errors;if(!valid5){break;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/bccAddresses",schemaPath:"#/properties/requestBody/properties/bccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data0.subject !== undefined){const _errs19 = errors;if(typeof data0.subject !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/subject",schemaPath:"#/properties/requestBody/properties/subject/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data0.textBody !== undefined){const _errs21 = errors;if(typeof data0.textBody !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/textBody",schemaPath:"#/properties/requestBody/properties/textBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data0.htmlBody !== undefined){const _errs23 = errors;if(typeof data0.htmlBody !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/htmlBody",schemaPath:"#/properties/requestBody/properties/htmlBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data0.inReplyTo !== undefined){const _errs25 = errors;if(typeof data0.inReplyTo !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/inReplyTo",schemaPath:"#/properties/requestBody/properties/inReplyTo/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data0.references !== undefined){let data12 = data0.references;const _errs27 = errors;if(errors === _errs27){if(Array.isArray(data12)){var valid6 = true;const len3 = data12.length;for(let i3=0; i3<len3; i3++){const _errs29 = errors;if(typeof data12[i3] !== "string"){validate42.errors = [{instancePath:instancePath+"/requestBody/references/" + i3,schemaPath:"#/properties/requestBody/properties/references/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs29 === errors;if(!valid6){break;}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody/references",schemaPath:"#/properties/requestBody/properties/references/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data0.sendImmediately !== undefined){const _errs31 = errors;if(typeof data0.sendImmediately !== "boolean"){validate42.errors = [{instancePath:instancePath+"/requestBody/sendImmediately",schemaPath:"#/properties/requestBody/properties/sendImmediately/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs31 === errors;}else {var valid1 = true;}}}}}}}}}}}}else {validate42.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate42.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate42.errors = vErrors;return errors === 0;}exports.OutboxDetailOperations_updateOutboxMessage = validate43;const schema82 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"attachmentIds":{"type":"array","items":{"type":"string","minLength":25,"maxLength":25},"description":"The files this draft keeps. Anything left out is removed with its bytes."},"toAddresses":{"type":"array","items":{"type":"string"},"description":"Recipient addresses (To)"},"ccAddresses":{"type":"array","items":{"type":"string"},"description":"CC recipient addresses"},"bccAddresses":{"type":"array","items":{"type":"string"},"description":"BCC recipient addresses"},"subject":{"type":"string","description":"Subject line"},"textBody":{"type":"string","description":"Plain text body"},"htmlBody":{"type":"string","description":"HTML body"},"inReplyTo":{"type":"string","description":"For replies: parent message's Message-ID"},"references":{"type":"array","items":{"type":"string"},"description":"For replies: full References chain from parent"}},"description":"Input for updating a draft outbox message"}},"required":["requestBody"],"$id":"OutboxDetailOperations_updateOutboxMessage"};function validate43(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OutboxDetailOperations_updateOutboxMessage" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate43.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.attachmentIds !== undefined){let data1 = data0.attachmentIds;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func2(data2) > 25){validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds/" + i0,schemaPath:"#/properties/requestBody/properties/attachmentIds/items/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data2) < 25){validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds/" + i0,schemaPath:"#/properties/requestBody/properties/attachmentIds/items/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds/" + i0,schemaPath:"#/properties/requestBody/properties/attachmentIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/attachmentIds",schemaPath:"#/properties/requestBody/properties/attachmentIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.toAddresses !== undefined){let data3 = data0.toAddresses;const _errs8 = errors;if(errors === _errs8){if(Array.isArray(data3)){var valid3 = true;const len1 = data3.length;for(let i1=0; i1<len1; i1++){const _errs10 = errors;if(typeof data3[i1] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/toAddresses/" + i1,schemaPath:"#/properties/requestBody/properties/toAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs10 === errors;if(!valid3){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/toAddresses",schemaPath:"#/properties/requestBody/properties/toAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.ccAddresses !== undefined){let data5 = data0.ccAddresses;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data5)){var valid4 = true;const len2 = data5.length;for(let i2=0; i2<len2; i2++){const _errs14 = errors;if(typeof data5[i2] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/ccAddresses/" + i2,schemaPath:"#/properties/requestBody/properties/ccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs14 === errors;if(!valid4){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/ccAddresses",schemaPath:"#/properties/requestBody/properties/ccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.bccAddresses !== undefined){let data7 = data0.bccAddresses;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data7)){var valid5 = true;const len3 = data7.length;for(let i3=0; i3<len3; i3++){const _errs18 = errors;if(typeof data7[i3] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/bccAddresses/" + i3,schemaPath:"#/properties/requestBody/properties/bccAddresses/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs18 === errors;if(!valid5){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/bccAddresses",schemaPath:"#/properties/requestBody/properties/bccAddresses/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.subject !== undefined){const _errs20 = errors;if(typeof data0.subject !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/subject",schemaPath:"#/properties/requestBody/properties/subject/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs20 === errors;}else {var valid1 = true;}if(valid1){if(data0.textBody !== undefined){const _errs22 = errors;if(typeof data0.textBody !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/textBody",schemaPath:"#/properties/requestBody/properties/textBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs22 === errors;}else {var valid1 = true;}if(valid1){if(data0.htmlBody !== undefined){const _errs24 = errors;if(typeof data0.htmlBody !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/htmlBody",schemaPath:"#/properties/requestBody/properties/htmlBody/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs24 === errors;}else {var valid1 = true;}if(valid1){if(data0.inReplyTo !== undefined){const _errs26 = errors;if(typeof data0.inReplyTo !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/inReplyTo",schemaPath:"#/properties/requestBody/properties/inReplyTo/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs26 === errors;}else {var valid1 = true;}if(valid1){if(data0.references !== undefined){let data13 = data0.references;const _errs28 = errors;if(errors === _errs28){if(Array.isArray(data13)){var valid6 = true;const len4 = data13.length;for(let i4=0; i4<len4; i4++){const _errs30 = errors;if(typeof data13[i4] !== "string"){validate43.errors = [{instancePath:instancePath+"/requestBody/references/" + i4,schemaPath:"#/properties/requestBody/properties/references/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs30 === errors;if(!valid6){break;}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody/references",schemaPath:"#/properties/requestBody/properties/references/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs28 === errors;}else {var valid1 = true;}}}}}}}}}}else {validate43.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate43.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate43.errors = vErrors;return errors === 0;}exports.OutboxDetailOperations_mintOutboxAttachment = validate44;const schema83 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["filename","contentType","sizeBytes"],"properties":{"filename":{"allOf":[{"type":"string","maxLength":256}],"description":"Filename as the sender picked it. Sanitized server-side."},"contentType":{"allOf":[{"$ref":"#/properties/requestBody/properties/filename/allOf/0"}],"description":"Media type the browser reported. Recorded, never trusted for rendering."},"sizeBytes":{"type":"integer","format":"int64","minimum":1,"description":"Exact size of the file. The upload is bound to this number."}},"description":"What the client intends to attach, before any bytes move"}},"required":["requestBody"],"$id":"OutboxDetailOperations_mintOutboxAttachment"};const schema84 = {"type":"string","maxLength":256};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="OutboxDetailOperations_mintOutboxAttachment" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate44.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.filename === undefined) && (missing1 = "filename")) || ((data0.contentType === undefined) && (missing1 = "contentType"))) || ((data0.sizeBytes === undefined) && (missing1 = "sizeBytes"))){validate44.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.filename !== undefined){let data1 = data0.filename;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 256){validate44.errors = [{instancePath:instancePath+"/requestBody/filename",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate44.errors = [{instancePath:instancePath+"/requestBody/filename",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.contentType !== undefined){let data2 = data0.contentType;const _errs7 = errors;const _errs9 = errors;if(errors === _errs9){if(typeof data2 === "string"){if(func2(data2) > 256){validate44.errors = [{instancePath:instancePath+"/requestBody/contentType",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}}else {validate44.errors = [{instancePath:instancePath+"/requestBody/contentType",schemaPath:"#/properties/requestBody/properties/filename/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.sizeBytes !== undefined){let data3 = data0.sizeBytes;const _errs11 = errors;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){validate44.errors = [{instancePath:instancePath+"/requestBody/sizeBytes",schemaPath:"#/properties/requestBody/properties/sizeBytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs11){if(typeof data3 == "number"){if(data3 < 1 || isNaN(data3)){validate44.errors = [{instancePath:instancePath+"/requestBody/sizeBytes",schemaPath:"#/properties/requestBody/properties/sizeBytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats24.validate(data3))){validate44.errors = [{instancePath:instancePath+"/requestBody/sizeBytes",schemaPath:"#/properties/requestBody/properties/sizeBytes/format",keyword:"format",params:{format: "int64"},message:"must match format \""+"int64"+"\""}];return false;}}}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}else {validate44.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate44.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate44.errors = vErrors;return errors === 0;}exports.PeopleOperations_createStepUp = validate45;const schema85 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["password","action","userId"],"properties":{"password":{"type":"string","description":"The caller's own current password."},"action":{"type":"string","enum":["SignOut","Disable","Enable","ResetPassword"],"description":"The operation a step-up token is spent on. `updatePerson` maps `Disabled` to `Disable` and `Active` to `Enable`."},"userId":{"type":"string","description":"The person the token will act on."}},"description":"The caller's current password, and the one action on one person the token will allow."}},"required":["requestBody"],"$id":"PeopleOperations_createStepUp"};function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_createStepUp" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate45.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.password === undefined) && (missing1 = "password")) || ((data0.action === undefined) && (missing1 = "action"))) || ((data0.userId === undefined) && (missing1 = "userId"))){validate45.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.password !== undefined){const _errs4 = errors;if(typeof data0.password !== "string"){validate45.errors = [{instancePath:instancePath+"/requestBody/password",schemaPath:"#/properties/requestBody/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.action !== undefined){let data2 = data0.action;const _errs6 = errors;if(typeof data2 !== "string"){validate45.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data2 === "SignOut") || (data2 === "Disable")) || (data2 === "Enable")) || (data2 === "ResetPassword"))){validate45.errors = [{instancePath:instancePath+"/requestBody/action",schemaPath:"#/properties/requestBody/properties/action/enum",keyword:"enum",params:{allowedValues: schema85.properties.requestBody.properties.action.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.userId !== undefined){const _errs8 = errors;if(typeof data0.userId !== "string"){validate45.errors = [{instancePath:instancePath+"/requestBody/userId",schemaPath:"#/properties/requestBody/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}}}}}else {validate45.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate45.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate45.errors = vErrors;return errors === 0;}exports.PeopleOperations_updatePerson = validate46;const schema86 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["status","stepUpToken"],"properties":{"status":{"type":"string","enum":["Active","Disabled"],"description":"Whether a person may sign in. A disabled person's sessions, MCP grants and calendar feeds are revoked, and every sign-in is refused."},"stepUpToken":{"type":"string"}},"description":"Disable or enable the person. Disabling also revokes their sessions, MCP grants and calendar feeds."}},"required":["requestBody"],"$id":"PeopleOperations_updatePerson"};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_updatePerson" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate46.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((data0.status === undefined) && (missing1 = "status")) || ((data0.stepUpToken === undefined) && (missing1 = "stepUpToken"))){validate46.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.status !== undefined){let data1 = data0.status;const _errs4 = errors;if(typeof data1 !== "string"){validate46.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "Active") || (data1 === "Disabled"))){validate46.errors = [{instancePath:instancePath+"/requestBody/status",schemaPath:"#/properties/requestBody/properties/status/enum",keyword:"enum",params:{allowedValues: schema86.properties.requestBody.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.stepUpToken !== undefined){const _errs6 = errors;if(typeof data0.stepUpToken !== "string"){validate46.errors = [{instancePath:instancePath+"/requestBody/stepUpToken",schemaPath:"#/properties/requestBody/properties/stepUpToken/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}else {validate46.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate46.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate46.errors = vErrors;return errors === 0;}exports.PeopleOperations_createPasswordReset = validate47;const schema87 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["stepUpToken"],"properties":{"stepUpToken":{"type":"string"}},"description":"Issue a password reset link for the person. Their old password stops working and their sessions are revoked."}},"required":["requestBody"],"$id":"PeopleOperations_createPasswordReset"};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_createPasswordReset" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.stepUpToken === undefined) && (missing1 = "stepUpToken")){validate47.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.stepUpToken !== undefined){if(typeof data0.stepUpToken !== "string"){validate47.errors = [{instancePath:instancePath+"/requestBody/stepUpToken",schemaPath:"#/properties/requestBody/properties/stepUpToken/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate47.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}exports.PeopleOperations_signOutPerson = validate48;const schema88 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["stepUpToken"],"properties":{"stepUpToken":{"type":"string"}},"description":"Sign the person out of every browser session and MCP connection."}},"required":["requestBody"],"$id":"PeopleOperations_signOutPerson"};function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="PeopleOperations_signOutPerson" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate48.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.stepUpToken === undefined) && (missing1 = "stepUpToken")){validate48.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.stepUpToken !== undefined){if(typeof data0.stepUpToken !== "string"){validate48.errors = [{instancePath:instancePath+"/requestBody/stepUpToken",schemaPath:"#/properties/requestBody/properties/stepUpToken/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate48.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate48.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate48.errors = vErrors;return errors === 0;}exports.UserSettingsOperations_updateUserSettings = validate49;const schema89 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","properties":{"defaultInvitationSenderAccountId":{"allOf":[{"type":"string","minLength":25,"maxLength":25}],"description":"The account invitations go out from by default. Refused with 400 `unknown_sender` when it is not an account of the caller's account config that sends mail. Cleared with `clearDefaultInvitationSender`."},"classificationPresetId":{"allOf":[{"type":"string","enum":["Jev","Jina","Mistral","Gemini","OpenAiCompatible","Local"],"description":"A classification provider preset: a known provider with its adapter shape, default base URL and default model."}],"description":"Save a classification provider. Saving another preset deletes the stored key, model and base URL. Without it, the classification fields below apply to the provider in effect, saved or inherited from the deployment."},"classificationModel":{"type":"string","description":"The model to ask for. Empty deletes the saved model, so it is inherited again."},"classificationBaseUrl":{"type":"string","description":"The http or https base URL to call. Empty deletes the saved base URL, so it is inherited again. Refused with 400 `invalid_classification_base_url` when it is not a URL, or when no base URL is saved, inherited or given by the preset."},"classificationApiKey":{"type":"string","description":"The provider's API key. Write-only: stored encrypted and never returned. Refused with 400 `classification_api_key_required` when the preset needs a key and none is saved, or inherited from the deployment for the same preset and base URL."},"classificationEnabled":{"type":"boolean","description":"Switch classification on or off. Switching on with no provider in effect is refused with 400 `classification_not_configured`; switching off keeps the provider and key."},"classificationDailyLimit":{"type":"integer","format":"int32","minimum":1,"description":"The most classification calls per mail account per UTC day. Needs a provider in effect, saved or inherited."}},"description":"A change to the caller's settings. Every field is optional and absence means untouched."}},"required":["requestBody"],"$id":"UserSettingsOperations_updateUserSettings"};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="UserSettingsOperations_updateUserSettings" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.defaultInvitationSenderAccountId !== undefined){let data1 = data0.defaultInvitationSenderAccountId;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(func2(data1) > 25){validate49.errors = [{instancePath:instancePath+"/requestBody/defaultInvitationSenderAccountId",schemaPath:"#/properties/requestBody/properties/defaultInvitationSenderAccountId/allOf/0/maxLength",keyword:"maxLength",params:{limit: 25},message:"must NOT have more than 25 characters"}];return false;}else {if(func2(data1) < 25){validate49.errors = [{instancePath:instancePath+"/requestBody/defaultInvitationSenderAccountId",schemaPath:"#/properties/requestBody/properties/defaultInvitationSenderAccountId/allOf/0/minLength",keyword:"minLength",params:{limit: 25},message:"must NOT have fewer than 25 characters"}];return false;}}}else {validate49.errors = [{instancePath:instancePath+"/requestBody/defaultInvitationSenderAccountId",schemaPath:"#/properties/requestBody/properties/defaultInvitationSenderAccountId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationPresetId !== undefined){let data2 = data0.classificationPresetId;const _errs7 = errors;if(typeof data2 !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationPresetId",schemaPath:"#/properties/requestBody/properties/classificationPresetId/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data2 === "Jev") || (data2 === "Jina")) || (data2 === "Mistral")) || (data2 === "Gemini")) || (data2 === "OpenAiCompatible")) || (data2 === "Local"))){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationPresetId",schemaPath:"#/properties/requestBody/properties/classificationPresetId/allOf/0/enum",keyword:"enum",params:{allowedValues: schema89.properties.requestBody.properties.classificationPresetId.allOf[0].enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationModel !== undefined){const _errs10 = errors;if(typeof data0.classificationModel !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationModel",schemaPath:"#/properties/requestBody/properties/classificationModel/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationBaseUrl !== undefined){const _errs12 = errors;if(typeof data0.classificationBaseUrl !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationBaseUrl",schemaPath:"#/properties/requestBody/properties/classificationBaseUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationApiKey !== undefined){const _errs14 = errors;if(typeof data0.classificationApiKey !== "string"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationApiKey",schemaPath:"#/properties/requestBody/properties/classificationApiKey/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs14 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationEnabled !== undefined){const _errs16 = errors;if(typeof data0.classificationEnabled !== "boolean"){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationEnabled",schemaPath:"#/properties/requestBody/properties/classificationEnabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data0.classificationDailyLimit !== undefined){let data7 = data0.classificationDailyLimit;const _errs18 = errors;if(!((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7)))){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationDailyLimit",schemaPath:"#/properties/requestBody/properties/classificationDailyLimit/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if(typeof data7 == "number"){if(data7 < 1 || isNaN(data7)){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationDailyLimit",schemaPath:"#/properties/requestBody/properties/classificationDailyLimit/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}else {if(!(formats2.validate(data7))){validate49.errors = [{instancePath:instancePath+"/requestBody/classificationDailyLimit",schemaPath:"#/properties/requestBody/properties/classificationDailyLimit/format",keyword:"format",params:{format: "int32"},message:"must match format \""+"int32"+"\""}];return false;}}}}var valid1 = _errs18 === errors;}else {var valid1 = true;}}}}}}}}else {validate49.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}exports.UserSettingsOperations_testClassificationProvider = validate50;const schema90 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["presetId","model","baseUrl","apiKey"],"properties":{"presetId":{"type":"string","enum":["Jev","Jina","Mistral","Gemini","OpenAiCompatible","Local"],"description":"A classification provider preset: a known provider with its adapter shape, default base URL and default model."},"model":{"type":"string","description":"The model to ask for. Empty means the inherited model."},"baseUrl":{"type":"string","description":"The http or https base URL to call. Empty means the inherited base URL."},"apiKey":{"type":"string","description":"The provider's API key. Empty means the key saved for this preset, or the deployment's key when the preset and base URL match the deployment's."}},"description":"The classification provider form as it stands, saved or not."}},"required":["requestBody"],"$id":"UserSettingsOperations_testClassificationProvider"};function validate50(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="UserSettingsOperations_testClassificationProvider" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate50.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if(((((data0.presetId === undefined) && (missing1 = "presetId")) || ((data0.model === undefined) && (missing1 = "model"))) || ((data0.baseUrl === undefined) && (missing1 = "baseUrl"))) || ((data0.apiKey === undefined) && (missing1 = "apiKey"))){validate50.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.presetId !== undefined){let data1 = data0.presetId;const _errs4 = errors;if(typeof data1 !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/presetId",schemaPath:"#/properties/requestBody/properties/presetId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data1 === "Jev") || (data1 === "Jina")) || (data1 === "Mistral")) || (data1 === "Gemini")) || (data1 === "OpenAiCompatible")) || (data1 === "Local"))){validate50.errors = [{instancePath:instancePath+"/requestBody/presetId",schemaPath:"#/properties/requestBody/properties/presetId/enum",keyword:"enum",params:{allowedValues: schema90.properties.requestBody.properties.presetId.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.model !== undefined){const _errs6 = errors;if(typeof data0.model !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/model",schemaPath:"#/properties/requestBody/properties/model/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data0.baseUrl !== undefined){const _errs8 = errors;if(typeof data0.baseUrl !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/baseUrl",schemaPath:"#/properties/requestBody/properties/baseUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data0.apiKey !== undefined){const _errs10 = errors;if(typeof data0.apiKey !== "string"){validate50.errors = [{instancePath:instancePath+"/requestBody/apiKey",schemaPath:"#/properties/requestBody/properties/apiKey/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs10 === errors;}else {var valid1 = true;}}}}}}else {validate50.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate50.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate50.errors = vErrors;return errors === 0;}exports.SystemOperations_applySystemUpdate = validate51;const schema91 = {"title":"Request","type":"object","additionalProperties":true,"properties":{"requestBody":{"type":"object","required":["targetVersion"],"properties":{"targetVersion":{"type":"string","description":"The release version to install, `vX.Y.Z`"}},"description":"Request to install a specific release. `targetVersion` must equal the version the latest check reported; the backend passes exactly this one field across the control seam and resolves nothing else (RFC 037 R6)."}},"required":["requestBody"],"$id":"SystemOperations_applySystemUpdate"};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="SystemOperations_applySystemUpdate" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.requestBody === undefined) && (missing0 = "requestBody")){validate51.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.requestBody !== undefined){let data0 = data.requestBody;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.targetVersion === undefined) && (missing1 = "targetVersion")){validate51.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.targetVersion !== undefined){if(typeof data0.targetVersion !== "string"){validate51.errors = [{instancePath:instancePath+"/requestBody/targetVersion",schemaPath:"#/properties/requestBody/properties/targetVersion/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate51.errors = [{instancePath:instancePath+"/requestBody",schemaPath:"#/properties/requestBody/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate51.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate51.errors = vErrors;return errors === 0;}
14
14
  return exports;
15
15
  })();
16
16
  const paramsValidator = (() => {