/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import * as zod from 'zod'; export const FacebookServiceDeleteGetStartedWebitelImApiProviderV1FacebookServiceParams = zod.object({ gate_id: zod.string(), }); export const FacebookServiceDeleteGetStartedWebitelImApiProviderV1FacebookServiceResponse = zod.looseObject({}); export const FacebookServiceSetGetStartedWebitelImApiProviderV1FacebookServiceParams = zod.object({ gate_id: zod.string(), }); export const FacebookServiceSetGetStartedWebitelImApiProviderV1FacebookServiceBody = zod.object({ payload: zod.string().optional(), }); export const FacebookServiceSetGetStartedWebitelImApiProviderV1FacebookServiceResponse = zod.looseObject({}); export const FacebookServiceDeletePersistentMenuWebitelImApiProviderV1FacebookServiceParams = zod.object({ gate_id: zod.string(), }); export const FacebookServiceDeletePersistentMenuWebitelImApiProviderV1FacebookServiceResponse = zod.looseObject({}); export const FacebookServiceSetPersistentMenuWebitelImApiProviderV1FacebookServiceParams = zod.object({ gate_id: zod.string(), }); export const FacebookServiceSetPersistentMenuWebitelImApiProviderV1FacebookServiceBody = zod.object({ composerInputDisabled: zod.boolean().optional(), items: zod .array( zod.object({ nested: zod .object({ items: zod.array(zod.unknown()).optional(), }) .optional(), payload: zod.string().optional(), title: zod.string().optional(), url: zod.string().optional(), }), ) .optional(), }); export const FacebookServiceSetPersistentMenuWebitelImApiProviderV1FacebookServiceResponse = zod.looseObject({}); export const FacebookServiceDeleteFacebookGateWebitelImApiProviderV1FacebookServiceParams = zod.object({ id: zod.string(), }); export const facebookServiceDeleteFacebookGateWebitelImApiProviderV1FacebookServiceResponseItemStatusDefault = `PROVIDER_STATUS_UNSPECIFIED`; export const FacebookServiceDeleteFacebookGateWebitelImApiProviderV1FacebookServiceResponse = zod.object({ item: zod .object({ createdAt: zod.string().optional(), enabled: zod.boolean().optional(), id: zod.string().optional(), metaAppId: zod.string().optional(), name: zod.string().optional(), pageId: zod.string().optional(), pageName: zod.string().optional(), status: zod .enum([ 'PROVIDER_STATUS_UNSPECIFIED', 'PROVIDER_STATUS_ACTIVE', 'PROVIDER_STATUS_INACTIVE', 'PROVIDER_STATUS_ERROR', ]) .default( facebookServiceDeleteFacebookGateWebitelImApiProviderV1FacebookServiceResponseItemStatusDefault, ) .describe( '/ ProviderStatus represents the operational state of a provider gateway.', ), updatedAt: zod.string().optional(), }) .optional(), }); export const FacebookServiceGetFacebookGateWebitelImApiProviderV1FacebookServiceParams = zod.object({ id: zod.string(), }); export const facebookServiceGetFacebookGateWebitelImApiProviderV1FacebookServiceResponseItemStatusDefault = `PROVIDER_STATUS_UNSPECIFIED`; export const FacebookServiceGetFacebookGateWebitelImApiProviderV1FacebookServiceResponse = zod.object({ item: zod .object({ createdAt: zod.string().optional(), enabled: zod.boolean().optional(), id: zod.string().optional(), metaAppId: zod.string().optional(), name: zod.string().optional(), pageId: zod.string().optional(), pageName: zod.string().optional(), status: zod .enum([ 'PROVIDER_STATUS_UNSPECIFIED', 'PROVIDER_STATUS_ACTIVE', 'PROVIDER_STATUS_INACTIVE', 'PROVIDER_STATUS_ERROR', ]) .default( facebookServiceGetFacebookGateWebitelImApiProviderV1FacebookServiceResponseItemStatusDefault, ) .describe( '/ ProviderStatus represents the operational state of a provider gateway.', ), updatedAt: zod.string().optional(), }) .optional(), }); export const FacebookServiceUpdateFacebookGateWebitelImApiProviderV1FacebookServiceParams = zod.object({ id: zod.string(), }); export const FacebookServiceUpdateFacebookGateWebitelImApiProviderV1FacebookServiceBody = zod.object({ enabled: zod.boolean().optional(), name: zod.string().optional(), pageToken: zod.string().optional(), peer: zod .object({ iss: zod.string().optional(), sub: zod.string().optional(), }) .optional(), }); export const facebookServiceUpdateFacebookGateWebitelImApiProviderV1FacebookServiceResponseItemStatusDefault = `PROVIDER_STATUS_UNSPECIFIED`; export const FacebookServiceUpdateFacebookGateWebitelImApiProviderV1FacebookServiceResponse = zod.object({ item: zod .object({ createdAt: zod.string().optional(), enabled: zod.boolean().optional(), id: zod.string().optional(), metaAppId: zod.string().optional(), name: zod.string().optional(), pageId: zod.string().optional(), pageName: zod.string().optional(), status: zod .enum([ 'PROVIDER_STATUS_UNSPECIFIED', 'PROVIDER_STATUS_ACTIVE', 'PROVIDER_STATUS_INACTIVE', 'PROVIDER_STATUS_ERROR', ]) .default( facebookServiceUpdateFacebookGateWebitelImApiProviderV1FacebookServiceResponseItemStatusDefault, ) .describe( '/ ProviderStatus represents the operational state of a provider gateway.', ), updatedAt: zod.string().optional(), }) .optional(), });