{"version":3,"sources":["../../../src/bookings-calendar-v2-external-calendar-external-calendars.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListProvidersRequest = z.object({});\nexport const ListProvidersResponse = z.object({\n  providers: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the external calendar provider.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        name: z\n          .string()\n          .describe('Name of the external calendar provider.')\n          .optional()\n          .nullable(),\n        calendarType: z\n          .enum([\n            'UNDEFINED',\n            'GOOGLE',\n            'I_CAL',\n            'OUTLOOK',\n            'OFFICE_365',\n            'MICROSOFT',\n            'OTHER',\n          ])\n          .describe('External calendar provider type.')\n          .optional(),\n        features: z\n          .object({\n            connectMethods: z\n              .array(z.enum(['UNDEFINED', 'OAUTH', 'CREDENTIALS']))\n              .optional(),\n            updateSyncConfig: z\n              .boolean()\n              .describe(\n                'Whether you can update `syncConfic` for all external calendar connections\\nby calling [Update Sync Config](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/update-sync-config).'\n              )\n              .optional()\n              .nullable(),\n            listEventFromCalendars: z\n              .enum([\n                'UNDEFINED',\n                'NOT_SUPPORTED',\n                'PRIMARY_CALENDAR_ONLY',\n                'SPECIFIC_CALENDARS',\n              ])\n              .describe(\n                'Information about which events you can import from the external calendar to\\nthe Wix site.'\n              )\n              .optional(),\n            syncToCalendar: z\n              .enum([\n                'UNDEFINED',\n                'NOT_SUPPORTED',\n                'PRIMARY_CALENDAR_ONLY',\n                'SPECIFIC_CALENDAR',\n                'DEDICATED_CALENDAR',\n              ])\n              .describe(\n                'Whether you can export Wix calendar [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nto the external calendar.'\n              )\n              .optional(),\n          })\n          .describe(\n            'Information about how you can connect the external calendar to the Wix site,\\nand which functionality it supports.'\n          )\n          .optional(),\n      })\n    )\n    .optional(),\n});\nexport const GetConnectionRequest = z.object({\n  connectionId: z.string().describe('ID of the connection to retrieve.'),\n});\nexport const GetConnectionResponse = z.object({\n  connection: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          'ID of the connection between the external calendar and the Wix site.'\n        )\n        .optional()\n        .nullable(),\n      providerId: z\n        .string()\n        .describe('ID of the external calendar provider.')\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      calendarType: z\n        .enum([\n          'UNDEFINED',\n          'GOOGLE',\n          'I_CAL',\n          'OUTLOOK',\n          'OFFICE_365',\n          'MICROSOFT',\n          'OTHER',\n        ])\n        .describe('External calendar type.')\n        .optional(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\\nthat's connected to the external calendar.\"\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      userId: z\n        .string()\n        .describe(\n          'ID of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the external calendar connection belongs.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app which created the external calendar connection.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      externalAccountEmail: z\n        .string()\n        .describe(\n          'Email address associated with the external calendar account. Available only\\nafter completed successfully.'\n        )\n        .email()\n        .optional()\n        .nullable(),\n      status: z\n        .enum([\n          'UNDEFINED',\n          'CONNECTED',\n          'SYNC_IN_PROGRESS',\n          'SYNCED',\n          'DISCONNECTED',\n          'ERROR',\n        ])\n        .describe('Connection status.')\n        .optional(),\n      errorReason: z\n        .enum([\n          'UNDEFINED',\n          'TOKEN_REVOKED',\n          'EXTERNAL_CALENDAR_CREATION_FAILED',\n          'EXTERNAL_CALENDAR_DELETED',\n        ])\n        .describe(\n          'Reason for the error. Available only if `status` is `ERROR`.'\n        )\n        .optional(),\n      syncConfig: z\n        .object({\n          listEventFromCalendars: z\n            .intersection(\n              z.object({\n                enabled: z\n                  .boolean()\n                  .describe(\n                    'Whether you can call [List Events](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/list-events)\\nto import events from the external calendar to the Wix site.'\n                  )\n                  .optional()\n                  .nullable(),\n              }),\n              z.xor([\n                z.object({ calendars: z.never().optional() }),\n                z.object({\n                  calendars: z\n                    .object({\n                      calendars: z\n                        .array(\n                          z.object({\n                            _id: z\n                              .string()\n                              .describe('ID of the external calendar account.')\n                              .optional()\n                              .nullable(),\n                            name: z\n                              .string()\n                              .describe(\n                                'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n                              )\n                              .optional()\n                              .nullable(),\n                          })\n                        )\n                        .optional(),\n                    })\n                    .describe(\n                      'You can import events from the list of specified external calendar\\naccounts. The list may include the primary calendar.'\n                    ),\n                }),\n              ])\n            )\n            .describe(\n              'Configuration for importing events from the external calendar to the Wix\\nsite.'\n            )\n            .optional(),\n          syncToCalendar: z\n            .object({\n              enabled: z\n                .boolean()\n                .describe(\n                  'Whether Wix [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nare exported to the external calendar.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Configuration for exporting events from the Wix site to the external\\ncalendar.'\n            )\n            .optional(),\n        })\n        .describe('Settings about which sync operations are supported.')\n        .optional(),\n    })\n    .describe('Retrieved external calendar connection.')\n    .optional(),\n});\nexport const ListConnectionsRequest = z.object({\n  options: z\n    .object({\n      scheduleIds: z.array(z.string()).optional(),\n      partialFailure: z\n        .boolean()\n        .describe(\n          \"Whether to return a partial list of connections if details can't be\\nretrieved for all connections.\\n\\nDefault: `false`\"\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Options to use when listing connections.')\n    .optional(),\n});\nexport const ListConnectionsResponse = z.object({\n  connections: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe(\n            'ID of the connection between the external calendar and the Wix site.'\n          )\n          .optional()\n          .nullable(),\n        providerId: z\n          .string()\n          .describe('ID of the external calendar provider.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        calendarType: z\n          .enum([\n            'UNDEFINED',\n            'GOOGLE',\n            'I_CAL',\n            'OUTLOOK',\n            'OFFICE_365',\n            'MICROSOFT',\n            'OTHER',\n          ])\n          .describe('External calendar type.')\n          .optional(),\n        scheduleId: z\n          .string()\n          .describe(\n            \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\\nthat's connected to the external calendar.\"\n          )\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        userId: z\n          .string()\n          .describe(\n            'ID of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the external calendar connection belongs.'\n          )\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        appId: z\n          .string()\n          .describe(\n            'ID of the app which created the external calendar connection.'\n          )\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        externalAccountEmail: z\n          .string()\n          .describe(\n            'Email address associated with the external calendar account. Available only\\nafter completed successfully.'\n          )\n          .email()\n          .optional()\n          .nullable(),\n        status: z\n          .enum([\n            'UNDEFINED',\n            'CONNECTED',\n            'SYNC_IN_PROGRESS',\n            'SYNCED',\n            'DISCONNECTED',\n            'ERROR',\n          ])\n          .describe('Connection status.')\n          .optional(),\n        errorReason: z\n          .enum([\n            'UNDEFINED',\n            'TOKEN_REVOKED',\n            'EXTERNAL_CALENDAR_CREATION_FAILED',\n            'EXTERNAL_CALENDAR_DELETED',\n          ])\n          .describe(\n            'Reason for the error. Available only if `status` is `ERROR`.'\n          )\n          .optional(),\n        syncConfig: z\n          .object({\n            listEventFromCalendars: z\n              .intersection(\n                z.object({\n                  enabled: z\n                    .boolean()\n                    .describe(\n                      'Whether you can call [List Events](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/list-events)\\nto import events from the external calendar to the Wix site.'\n                    )\n                    .optional()\n                    .nullable(),\n                }),\n                z.xor([\n                  z.object({ calendars: z.never().optional() }),\n                  z.object({\n                    calendars: z\n                      .object({\n                        calendars: z\n                          .array(\n                            z.object({\n                              _id: z\n                                .string()\n                                .describe(\n                                  'ID of the external calendar account.'\n                                )\n                                .optional()\n                                .nullable(),\n                              name: z\n                                .string()\n                                .describe(\n                                  'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n                                )\n                                .optional()\n                                .nullable(),\n                            })\n                          )\n                          .optional(),\n                      })\n                      .describe(\n                        'You can import events from the list of specified external calendar\\naccounts. The list may include the primary calendar.'\n                      ),\n                  }),\n                ])\n              )\n              .describe(\n                'Configuration for importing events from the external calendar to the Wix\\nsite.'\n              )\n              .optional(),\n            syncToCalendar: z\n              .object({\n                enabled: z\n                  .boolean()\n                  .describe(\n                    'Whether Wix [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nare exported to the external calendar.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Configuration for exporting events from the Wix site to the external\\ncalendar.'\n              )\n              .optional(),\n          })\n          .describe('Settings about which sync operations are supported.')\n          .optional(),\n      })\n    )\n    .optional(),\n  failedProviderIds: z.array(z.string()).optional(),\n});\nexport const ConnectByOAuthRequest = z.object({\n  providerId: z\n    .string()\n    .describe(\n      'ID of the external calendar provider. Find this with the `listProviders()` function.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  scheduleId: z\n    .string()\n    .describe(\n      'ID of the schedule to connect with the external calendar account.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  redirectUrl: z\n    .string()\n    .describe(\n      'URL to redirect the user to after they authorize access to the external calendar account.\\n\\nIf the connection is successfully established, the user is redirected to this URL with a query parameter `connectionId` containing the new connection ID.\\nIf the attempt to connect fails, the user is redirected to this URL with a query parameter `error` containing the error type.'\n    )\n    .url(),\n});\nexport const ConnectByOAuthResponse = z.object({\n  oauthUrl: z\n    .string()\n    .describe(\n      'URL of the external calendar authorization page to redirect the user to.'\n    )\n    .url()\n    .optional()\n    .nullable(),\n});\nexport const ConnectByCredentialsRequest = z.object({\n  providerId: z\n    .string()\n    .describe(\n      'ID of the external calendar provider. Find this with the `listProviders()` function.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  scheduleId: z\n    .string()\n    .describe(\n      'ID of the schedule to connect with the external calendar account.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  email: z\n    .string()\n    .describe('Email address for the external calendar account.')\n    .email(),\n  password: z.string().describe('Password for the external calendar account.'),\n});\nexport const ConnectByCredentialsResponse = z.object({\n  connection: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          'ID of the connection between the external calendar and the Wix site.'\n        )\n        .optional()\n        .nullable(),\n      providerId: z\n        .string()\n        .describe('ID of the external calendar provider.')\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      calendarType: z\n        .enum([\n          'UNDEFINED',\n          'GOOGLE',\n          'I_CAL',\n          'OUTLOOK',\n          'OFFICE_365',\n          'MICROSOFT',\n          'OTHER',\n        ])\n        .describe('External calendar type.')\n        .optional(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\\nthat's connected to the external calendar.\"\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      userId: z\n        .string()\n        .describe(\n          'ID of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the external calendar connection belongs.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app which created the external calendar connection.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      externalAccountEmail: z\n        .string()\n        .describe(\n          'Email address associated with the external calendar account. Available only\\nafter completed successfully.'\n        )\n        .email()\n        .optional()\n        .nullable(),\n      status: z\n        .enum([\n          'UNDEFINED',\n          'CONNECTED',\n          'SYNC_IN_PROGRESS',\n          'SYNCED',\n          'DISCONNECTED',\n          'ERROR',\n        ])\n        .describe('Connection status.')\n        .optional(),\n      errorReason: z\n        .enum([\n          'UNDEFINED',\n          'TOKEN_REVOKED',\n          'EXTERNAL_CALENDAR_CREATION_FAILED',\n          'EXTERNAL_CALENDAR_DELETED',\n        ])\n        .describe(\n          'Reason for the error. Available only if `status` is `ERROR`.'\n        )\n        .optional(),\n      syncConfig: z\n        .object({\n          listEventFromCalendars: z\n            .intersection(\n              z.object({\n                enabled: z\n                  .boolean()\n                  .describe(\n                    'Whether you can call [List Events](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/list-events)\\nto import events from the external calendar to the Wix site.'\n                  )\n                  .optional()\n                  .nullable(),\n              }),\n              z.xor([\n                z.object({ calendars: z.never().optional() }),\n                z.object({\n                  calendars: z\n                    .object({\n                      calendars: z\n                        .array(\n                          z.object({\n                            _id: z\n                              .string()\n                              .describe('ID of the external calendar account.')\n                              .optional()\n                              .nullable(),\n                            name: z\n                              .string()\n                              .describe(\n                                'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n                              )\n                              .optional()\n                              .nullable(),\n                          })\n                        )\n                        .optional(),\n                    })\n                    .describe(\n                      'You can import events from the list of specified external calendar\\naccounts. The list may include the primary calendar.'\n                    ),\n                }),\n              ])\n            )\n            .describe(\n              'Configuration for importing events from the external calendar to the Wix\\nsite.'\n            )\n            .optional(),\n          syncToCalendar: z\n            .object({\n              enabled: z\n                .boolean()\n                .describe(\n                  'Whether Wix [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nare exported to the external calendar.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Configuration for exporting events from the Wix site to the external\\ncalendar.'\n            )\n            .optional(),\n        })\n        .describe('Settings about which sync operations are supported.')\n        .optional(),\n    })\n    .describe('Established connection details.')\n    .optional(),\n});\nexport const ListCalendarsRequest = z.object({\n  connectionId: z\n    .string()\n    .describe('ID of the external calendar connection to list calendars for.'),\n});\nexport const ListCalendarsResponse = z.object({\n  calendars: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the external calendar account.')\n          .optional()\n          .nullable(),\n        name: z\n          .string()\n          .describe(\n            'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n          )\n          .optional()\n          .nullable(),\n      })\n    )\n    .optional(),\n});\nexport const UpdateSyncConfigRequest = z.object({\n  connectionId: z\n    .string()\n    .describe('ID of the external calendar connection to update.'),\n  syncConfig: z\n    .object({\n      listEventFromCalendars: z\n        .intersection(\n          z.object({\n            enabled: z\n              .boolean()\n              .describe(\n                'Whether you can call [List Events](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/list-events)\\nto import events from the external calendar to the Wix site.'\n              )\n              .optional()\n              .nullable(),\n          }),\n          z.xor([\n            z.object({ calendars: z.never().optional() }),\n            z.object({\n              calendars: z\n                .object({\n                  calendars: z\n                    .array(\n                      z.object({\n                        _id: z\n                          .string()\n                          .describe('ID of the external calendar account.')\n                          .optional()\n                          .nullable(),\n                        name: z\n                          .string()\n                          .describe(\n                            'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n                          )\n                          .optional()\n                          .nullable(),\n                      })\n                    )\n                    .optional(),\n                })\n                .describe(\n                  'You can import events from the list of specified external calendar\\naccounts. The list may include the primary calendar.'\n                ),\n            }),\n          ])\n        )\n        .describe(\n          'Configuration for importing events from the external calendar to the Wix\\nsite.'\n        )\n        .optional(),\n      syncToCalendar: z\n        .object({\n          enabled: z\n            .boolean()\n            .describe(\n              'Whether Wix [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nare exported to the external calendar.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Configuration for exporting events from the Wix site to the external\\ncalendar.'\n        )\n        .optional(),\n    })\n    .describe('Updated sync configuration details.'),\n});\nexport const UpdateSyncConfigResponse = z.object({\n  connection: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          'ID of the connection between the external calendar and the Wix site.'\n        )\n        .optional()\n        .nullable(),\n      providerId: z\n        .string()\n        .describe('ID of the external calendar provider.')\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      calendarType: z\n        .enum([\n          'UNDEFINED',\n          'GOOGLE',\n          'I_CAL',\n          'OUTLOOK',\n          'OFFICE_365',\n          'MICROSOFT',\n          'OTHER',\n        ])\n        .describe('External calendar type.')\n        .optional(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\\nthat's connected to the external calendar.\"\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      userId: z\n        .string()\n        .describe(\n          'ID of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the external calendar connection belongs.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app which created the external calendar connection.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      externalAccountEmail: z\n        .string()\n        .describe(\n          'Email address associated with the external calendar account. Available only\\nafter completed successfully.'\n        )\n        .email()\n        .optional()\n        .nullable(),\n      status: z\n        .enum([\n          'UNDEFINED',\n          'CONNECTED',\n          'SYNC_IN_PROGRESS',\n          'SYNCED',\n          'DISCONNECTED',\n          'ERROR',\n        ])\n        .describe('Connection status.')\n        .optional(),\n      errorReason: z\n        .enum([\n          'UNDEFINED',\n          'TOKEN_REVOKED',\n          'EXTERNAL_CALENDAR_CREATION_FAILED',\n          'EXTERNAL_CALENDAR_DELETED',\n        ])\n        .describe(\n          'Reason for the error. Available only if `status` is `ERROR`.'\n        )\n        .optional(),\n      syncConfig: z\n        .object({\n          listEventFromCalendars: z\n            .intersection(\n              z.object({\n                enabled: z\n                  .boolean()\n                  .describe(\n                    'Whether you can call [List Events](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/list-events)\\nto import events from the external calendar to the Wix site.'\n                  )\n                  .optional()\n                  .nullable(),\n              }),\n              z.xor([\n                z.object({ calendars: z.never().optional() }),\n                z.object({\n                  calendars: z\n                    .object({\n                      calendars: z\n                        .array(\n                          z.object({\n                            _id: z\n                              .string()\n                              .describe('ID of the external calendar account.')\n                              .optional()\n                              .nullable(),\n                            name: z\n                              .string()\n                              .describe(\n                                'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n                              )\n                              .optional()\n                              .nullable(),\n                          })\n                        )\n                        .optional(),\n                    })\n                    .describe(\n                      'You can import events from the list of specified external calendar\\naccounts. The list may include the primary calendar.'\n                    ),\n                }),\n              ])\n            )\n            .describe(\n              'Configuration for importing events from the external calendar to the Wix\\nsite.'\n            )\n            .optional(),\n          syncToCalendar: z\n            .object({\n              enabled: z\n                .boolean()\n                .describe(\n                  'Whether Wix [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nare exported to the external calendar.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Configuration for exporting events from the Wix site to the external\\ncalendar.'\n            )\n            .optional(),\n        })\n        .describe('Settings about which sync operations are supported.')\n        .optional(),\n    })\n    .describe('Connection with updated sync configuration.')\n    .optional(),\n});\nexport const DisconnectRequest = z.object({\n  connectionId: z\n    .string()\n    .describe('ID of the external calendar connection to disconnect.'),\n});\nexport const DisconnectResponse = z.object({\n  connection: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          'ID of the connection between the external calendar and the Wix site.'\n        )\n        .optional()\n        .nullable(),\n      providerId: z\n        .string()\n        .describe('ID of the external calendar provider.')\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      calendarType: z\n        .enum([\n          'UNDEFINED',\n          'GOOGLE',\n          'I_CAL',\n          'OUTLOOK',\n          'OFFICE_365',\n          'MICROSOFT',\n          'OTHER',\n        ])\n        .describe('External calendar type.')\n        .optional(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\\nthat's connected to the external calendar.\"\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      userId: z\n        .string()\n        .describe(\n          'ID of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the external calendar connection belongs.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app which created the external calendar connection.'\n        )\n        .regex(\n          /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n          'Must be a valid GUID'\n        )\n        .optional()\n        .nullable(),\n      externalAccountEmail: z\n        .string()\n        .describe(\n          'Email address associated with the external calendar account. Available only\\nafter completed successfully.'\n        )\n        .email()\n        .optional()\n        .nullable(),\n      status: z\n        .enum([\n          'UNDEFINED',\n          'CONNECTED',\n          'SYNC_IN_PROGRESS',\n          'SYNCED',\n          'DISCONNECTED',\n          'ERROR',\n        ])\n        .describe('Connection status.')\n        .optional(),\n      errorReason: z\n        .enum([\n          'UNDEFINED',\n          'TOKEN_REVOKED',\n          'EXTERNAL_CALENDAR_CREATION_FAILED',\n          'EXTERNAL_CALENDAR_DELETED',\n        ])\n        .describe(\n          'Reason for the error. Available only if `status` is `ERROR`.'\n        )\n        .optional(),\n      syncConfig: z\n        .object({\n          listEventFromCalendars: z\n            .intersection(\n              z.object({\n                enabled: z\n                  .boolean()\n                  .describe(\n                    'Whether you can call [List Events](https://dev.wix.com/docs/rest/business-solutions/bookings/calendar/external-calendar-v2/list-events)\\nto import events from the external calendar to the Wix site.'\n                  )\n                  .optional()\n                  .nullable(),\n              }),\n              z.xor([\n                z.object({ calendars: z.never().optional() }),\n                z.object({\n                  calendars: z\n                    .object({\n                      calendars: z\n                        .array(\n                          z.object({\n                            _id: z\n                              .string()\n                              .describe('ID of the external calendar account.')\n                              .optional()\n                              .nullable(),\n                            name: z\n                              .string()\n                              .describe(\n                                'Display name of the external calendar account.\\nFor example, `Primary` or `Birthdays`.'\n                              )\n                              .optional()\n                              .nullable(),\n                          })\n                        )\n                        .optional(),\n                    })\n                    .describe(\n                      'You can import events from the list of specified external calendar\\naccounts. The list may include the primary calendar.'\n                    ),\n                }),\n              ])\n            )\n            .describe(\n              'Configuration for importing events from the external calendar to the Wix\\nsite.'\n            )\n            .optional(),\n          syncToCalendar: z\n            .object({\n              enabled: z\n                .boolean()\n                .describe(\n                  'Whether Wix [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\\nare exported to the external calendar.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Configuration for exporting events from the Wix site to the external\\ncalendar.'\n            )\n            .optional(),\n        })\n        .describe('Settings about which sync operations are supported.')\n        .optional(),\n    })\n    .describe('Updated connection details.')\n    .optional(),\n});\nexport const ListEventsRequest = z.object({\n  options: z\n    .object({\n      from: z\n        .string()\n        .describe(\n          'Date and time from which to retrieve events,\\nformatted according to [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt).\\nRequired, unless `cursorPaging.cursor` is provided.\\n\\nEvents which start before the `from` time and end after it are included in the returned list.'\n        )\n        .optional()\n        .nullable(),\n      to: z\n        .string()\n        .describe(\n          'Date and time until which to retrieve events,\\nformatted according to [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt).\\nRequired, unless `cursorPaging.cursor` is provided.\\n\\nEvents which start before the `to` time and end after it are included in the returned list.'\n        )\n        .optional()\n        .nullable(),\n      scheduleIds: z.array(z.string()).max(100).optional(),\n      userIds: z.array(z.string()).max(100).optional(),\n      allDay: z\n        .boolean()\n        .describe(\n          'Whether to include only all-day events in the returned list.\\nIf `true`, only all-day events are returned.\\nIf `false`, only events with a specified time are returned.\\n\\nDefault: All events are returned.'\n        )\n        .optional()\n        .nullable(),\n      fieldsets: z.array(z.string()).optional(),\n      cursorPaging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe('Number of events to load.\\nMax: `1000`')\n            .min(0)\n            .max(1000)\n            .optional()\n            .nullable(),\n          cursor: z\n            .string()\n            .describe(\n              \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Pagination options.')\n        .optional(),\n      partialFailure: z\n        .boolean()\n        .describe(\n          \"Whether to return a partial list of events if details can't be retrieved for some connections.\\n\\nDefault: `false`\"\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Options to use when listing events.')\n    .optional(),\n});\nexport const ListEventsResponse = z.object({\n  events: z\n    .array(\n      z.object({\n        scheduleId: z\n          .string()\n          .describe(\n            'ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\\nto which the event belongs.'\n          )\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        calendarType: z\n          .enum([\n            'UNDEFINED',\n            'GOOGLE',\n            'I_CAL',\n            'OUTLOOK',\n            'OFFICE_365',\n            'MICROSOFT',\n            'OTHER',\n          ])\n          .describe('External calendar type.')\n          .optional(),\n        calendarName: z\n          .string()\n          .describe(\n            'Display name of the external calendar.\\nFor example, `Primary` or `Birthdays`.'\n          )\n          .optional()\n          .nullable(),\n        title: z.string().describe('Event title.').optional().nullable(),\n        start: z\n          .string()\n          .describe(\n            'Start date and time of the event (inclusive), formatted according to [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt).'\n          )\n          .optional()\n          .nullable(),\n        end: z\n          .string()\n          .describe(\n            'End date and time of the event (exclusive), formatted according to [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt).'\n          )\n          .optional()\n          .nullable(),\n        allDay: z\n          .boolean()\n          .describe(\n            'Whether the event is an all-day event.\\n\\nDefault: `false`'\n          )\n          .optional()\n          .nullable(),\n        scheduleOwnerId: z\n          .string()\n          .describe(\n            'ID of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the schedule belongs.\\nFor Bookings [staff members](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction)\\nidentical to their [resource ID](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction).'\n          )\n          .optional()\n          .nullable(),\n        scheduleOwnerName: z\n          .string()\n          .describe(\n            'Name of the [Wix user](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-user)\\nto whom the schedule belongs.\\nFor example, the `name` of a Bookings [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction).'\n          )\n          .optional()\n          .nullable(),\n      })\n    )\n    .optional(),\n  pagingMetadata: z\n    .object({\n      count: z\n        .number()\n        .int()\n        .describe('Number of items returned in the response.')\n        .optional()\n        .nullable(),\n      cursors: z\n        .object({\n          next: z\n            .string()\n            .describe('Cursor pointing to next page in the list of results.')\n            .optional()\n            .nullable(),\n        })\n        .describe('Offset that was requested.')\n        .optional(),\n      hasNext: z\n        .boolean()\n        .describe(\n          'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Paging metadata.')\n    .optional(),\n  failedProviderIds: z.array(z.string()).optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,uBAAyB,SAAO,CAAC,CAAC;AACxC,IAAM,wBAA0B,SAAO;AAAA,EAC5C,WACG;AAAA,IACG,SAAO;AAAA,MACP,KACG,SAAO,EACP,SAAS,uCAAuC,EAChD;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ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