{"version":3,"sources":["../../src/calendar-v3-event-events.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListEventsByContactIdRequest = z.object({\n  contactId: z\n    .string()\n    .describe(\n      'ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nto retrieve events for. Required, unless you provide `cursorPaging`.'\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  options: z\n    .object({\n      fromLocalDate: z\n        .string()\n        .describe(\n          \"Local start date and time from which events are returned in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.\\n\\nEvents that start before the `fromLocalDate` but end after it are included in\\nthe results. Must be earlier than `toLocalDate` unless the sort order is descending.\"\n        )\n        .optional()\n        .nullable(),\n      toLocalDate: z\n        .string()\n        .describe(\n          \"Local end date and time up to which events are returned in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2024-01-30T13:30:00`. Can't be more than a full year after\\n`2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.\\n\\nEvents that start before `toLocalDate` but end after it are included in the\\nresults. Must be later than `fromLocalDate` unless the sort order is descending.\"\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and\\n`adjustedEnd`. For example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n      appId: z\n        .string()\n        .describe(\n          '[App ID](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix) to filter events by.'\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      cursorPaging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe(\n              'Number of events to return.\\nDefaults to `50`. Maximum `100`.'\n            )\n            .min(1)\n            .max(100)\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('Cursor to retrieve the next page of the results.')\n        .optional(),\n      sort: z\n        .object({\n          fieldName: z\n            .string()\n            .describe(\n              'The field to sort by.\\nEither `start` or `end`.\\nDefault is `start`.'\n            )\n            .optional(),\n          order: z.enum(['ASC', 'DESC']).optional(),\n        })\n        .describe(\n          'Sorting for the results.\\nIf not specified, results are sorted by `start` ascending.\\nFor DESC order, events are sorted by `end` time in descending order.'\n        )\n        .optional(),\n    })\n    .optional(),\n});\nexport const ListEventsByContactIdResponse = z.object({\n  events: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Event ID.')\n          .min(36)\n          .max(250)\n          .optional()\n          .nullable(),\n        scheduleId: z\n          .string()\n          .describe(\n            \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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        externalScheduleId: z\n          .string()\n          .describe(\n            'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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        scheduleName: z\n          .string()\n          .describe('Schedule name.')\n          .optional()\n          .nullable(),\n        type: z\n          .string()\n          .describe(\n            'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n          )\n          .optional()\n          .nullable(),\n        status: z\n          .enum(['CONFIRMED', 'CANCELLED'])\n          .describe(\n            'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n          )\n          .optional(),\n        title: z\n          .string()\n          .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n          .min(1)\n          .max(200)\n          .optional()\n          .nullable(),\n        start: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('Information about when the event starts.')\n          .optional(),\n        end: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n          )\n          .optional(),\n        adjustedStart: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        adjustedEnd: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        timeZone: z\n          .string()\n          .describe(\n            'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n          )\n          .optional()\n          .nullable(),\n        recurrenceType: z\n          .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n          .describe(\n            \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n          )\n          .optional(),\n        recurrenceRule: z\n          .object({\n            frequency: z\n              .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n              .describe(\n                \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n              )\n              .optional(),\n            interval: z\n              .number()\n              .int()\n              .describe(\n                'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n              )\n              .min(1)\n              .max(4)\n              .optional()\n              .nullable(),\n            days: z\n              .array(\n                z.enum([\n                  'MONDAY',\n                  'TUESDAY',\n                  'WEDNESDAY',\n                  'THURSDAY',\n                  'FRIDAY',\n                  'SATURDAY',\n                  'SUNDAY',\n                ])\n              )\n              .min(1)\n              .max(1)\n              .optional(),\n            until: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n              )\n              .optional(),\n            adjustedUntil: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n          )\n          .optional(),\n        recurringEventId: z\n          .string()\n          .describe(\n            'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n          )\n          .min(64)\n          .max(64)\n          .optional()\n          .nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n          )\n          .optional(),\n        location: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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            type: z\n              .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n              .describe(\n                \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n              )\n              .optional(),\n            name: z\n              .string()\n              .describe(\n                \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n            address: z\n              .string()\n              .describe(\n                \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n              )\n              .min(1)\n              .max(300)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .optional(),\n        resources: z\n          .array(\n            z.object({\n              _id: z\n                .string()\n                .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n              type: z.string().describe('Resource type.').optional().nullable(),\n              transparency: z\n                .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                .describe(\n                  \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                )\n                .optional(),\n              permissionRole: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                )\n                .optional(),\n            })\n          )\n          .max(100)\n          .optional(),\n        totalCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .min(0)\n          .optional()\n          .nullable(),\n        remainingCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Number of participants who can still be added to the event.'\n          )\n          .optional()\n          .nullable(),\n        participants: z\n          .object({\n            total: z\n              .number()\n              .int()\n              .describe('Total number of participants.\\n\\nMin: `0`')\n              .min(0)\n              .optional()\n              .nullable(),\n            list: z\n              .array(\n                z.object({\n                  name: z\n                    .string()\n                    .describe(\n                      'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                    )\n                    .min(1)\n                    .max(200)\n                    .optional()\n                    .nullable(),\n                  phone: z\n                    .string()\n                    .describe(\"Participant's phone number.\")\n                    .optional()\n                    .nullable(),\n                  email: z\n                    .string()\n                    .describe(\"Participant's email address.\")\n                    .email()\n                    .optional()\n                    .nullable(),\n                  contactId: z\n                    .string()\n                    .describe(\n                      '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                })\n              )\n              .max(50)\n              .optional(),\n            hasMore: z\n              .boolean()\n              .describe(\n                \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n              .describe(\n                \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n          )\n          .optional(),\n        conferencingDetails: z\n          .object({\n            type: z\n              .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n              .describe('Conference type. For example, `Zoom`.')\n              .optional(),\n            hostUrl: z\n              .string()\n              .describe(\n                'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            guestUrl: z\n              .string()\n              .describe(\n                'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            password: z\n              .string()\n              .describe(\n                'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n              )\n              .min(1)\n              .max(100)\n              .optional()\n              .nullable(),\n            externalId: z\n              .string()\n              .describe(\n                'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n          )\n          .optional(),\n        notes: z\n          .string()\n          .describe(\n            'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n          )\n          .min(1)\n          .max(5000)\n          .optional()\n          .nullable(),\n        inheritedFields: z\n          .array(\n            z.enum([\n              'TITLE',\n              'TIME_ZONE',\n              'TIME',\n              'LOCATION',\n              'RESOURCES',\n              'CAPACITY',\n              'PARTICIPANTS',\n              'CONFERENCING_DETAILS',\n            ])\n          )\n          .optional(),\n        appId: z\n          .string()\n          .describe(\n            'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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        permissions: z\n          .array(\n            z.object({\n              identity: z\n                .intersection(\n                  z.object({}),\n                  z.xor([\n                    z.object({ wixUserId: z.never().optional() }),\n                    z.object({\n                      wixUserId: z\n                        .string()\n                        .describe(\n                          'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                    }),\n                  ])\n                )\n                .describe(\n                  '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                )\n                .optional(),\n              role: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                )\n                .optional(),\n            })\n          )\n          .optional(),\n        extendedFields: z\n          .object({\n            namespaces: z\n              .record(z.string(), z.record(z.string(), z.any()))\n              .describe(\n                'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n              )\n              .optional(),\n          })\n          .describe(\n            'Extensions enabling applications or users to save custom data related to the event.'\n          )\n          .optional(),\n        revision: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n          )\n          .optional()\n          .nullable(),\n        _createdDate: z\n          .date()\n          .describe(\n            'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n        _updatedDate: z\n          .date()\n          .describe(\n            'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\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(\n          'Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging).'\n        )\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});\nexport const ListEventsByMemberIdRequest = z.object({\n  memberId: z\n    .string()\n    .describe(\n      \"ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)\\nto retrieve events for. Required, unless you provide `cursorPaging`.\\nProvide `me` to retrieve events for the currently logged-in member.\\nYou must have the `Read Calendars - Including PI`\\n[permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)\\nto retrieve events for members who aren't the currently logged in member.\"\n    )\n    .min(2)\n    .max(36),\n  options: z\n    .object({\n      fromLocalDate: z\n        .string()\n        .describe(\n          'Local start date and time from which events are returned in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2024-01-30T13:30:00`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.\\n\\nEvents that start before the `fromLocalDate` but end after it are included in\\nthe results. Must be earlier than `toLocalDate` unless the sort order is descending.'\n        )\n        .optional()\n        .nullable(),\n      toLocalDate: z\n        .string()\n        .describe(\n          \"Local end date and time up to which events are returned in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2024-01-30T13:30:00`. Can't be more than a full year after\\n`fromLocalDate`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.\\n\\nEvents that start before `toLocalDate` but end after it are included in the\\nresults. Must be later than `fromLocalDate` unless the sort order is descending.\"\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and\\n`adjustedEnd`. For example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n      appId: z\n        .string()\n        .describe(\n          '[App ID](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix) to filter events by.'\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      cursorPaging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe(\n              'Number of events to return.\\nDefaults to `50`. Maximum `100`.'\n            )\n            .min(1)\n            .max(100)\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('Cursor to retrieve the next page of the results.')\n        .optional(),\n      eventIds: z.array(z.string()).max(100).optional(),\n      sort: z\n        .object({\n          fieldName: z\n            .string()\n            .describe(\n              'The field to sort by.\\nEither `start` or `end`.\\nDefault is `start`.'\n            )\n            .optional(),\n          order: z.enum(['ASC', 'DESC']).optional(),\n        })\n        .describe(\n          'Sorting for the results.\\nIf not specified, results are sorted by `start` ascending.\\nFor DESC order, events are sorted by `end` time in descending order.'\n        )\n        .optional(),\n    })\n    .optional(),\n});\nexport const ListEventsByMemberIdResponse = z.object({\n  events: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Event ID.')\n          .min(36)\n          .max(250)\n          .optional()\n          .nullable(),\n        scheduleId: z\n          .string()\n          .describe(\n            \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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        externalScheduleId: z\n          .string()\n          .describe(\n            'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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        scheduleName: z\n          .string()\n          .describe('Schedule name.')\n          .optional()\n          .nullable(),\n        type: z\n          .string()\n          .describe(\n            'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n          )\n          .optional()\n          .nullable(),\n        status: z\n          .enum(['CONFIRMED', 'CANCELLED'])\n          .describe(\n            'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n          )\n          .optional(),\n        title: z\n          .string()\n          .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n          .min(1)\n          .max(200)\n          .optional()\n          .nullable(),\n        start: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('Information about when the event starts.')\n          .optional(),\n        end: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n          )\n          .optional(),\n        adjustedStart: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        adjustedEnd: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        timeZone: z\n          .string()\n          .describe(\n            'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n          )\n          .optional()\n          .nullable(),\n        recurrenceType: z\n          .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n          .describe(\n            \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n          )\n          .optional(),\n        recurrenceRule: z\n          .object({\n            frequency: z\n              .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n              .describe(\n                \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n              )\n              .optional(),\n            interval: z\n              .number()\n              .int()\n              .describe(\n                'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n              )\n              .min(1)\n              .max(4)\n              .optional()\n              .nullable(),\n            days: z\n              .array(\n                z.enum([\n                  'MONDAY',\n                  'TUESDAY',\n                  'WEDNESDAY',\n                  'THURSDAY',\n                  'FRIDAY',\n                  'SATURDAY',\n                  'SUNDAY',\n                ])\n              )\n              .min(1)\n              .max(1)\n              .optional(),\n            until: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n              )\n              .optional(),\n            adjustedUntil: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n          )\n          .optional(),\n        recurringEventId: z\n          .string()\n          .describe(\n            'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n          )\n          .min(64)\n          .max(64)\n          .optional()\n          .nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n          )\n          .optional(),\n        location: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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            type: z\n              .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n              .describe(\n                \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n              )\n              .optional(),\n            name: z\n              .string()\n              .describe(\n                \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n            address: z\n              .string()\n              .describe(\n                \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n              )\n              .min(1)\n              .max(300)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .optional(),\n        resources: z\n          .array(\n            z.object({\n              _id: z\n                .string()\n                .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n              type: z.string().describe('Resource type.').optional().nullable(),\n              transparency: z\n                .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                .describe(\n                  \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                )\n                .optional(),\n              permissionRole: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                )\n                .optional(),\n            })\n          )\n          .max(100)\n          .optional(),\n        totalCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .min(0)\n          .optional()\n          .nullable(),\n        remainingCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Number of participants who can still be added to the event.'\n          )\n          .optional()\n          .nullable(),\n        participants: z\n          .object({\n            total: z\n              .number()\n              .int()\n              .describe('Total number of participants.\\n\\nMin: `0`')\n              .min(0)\n              .optional()\n              .nullable(),\n            list: z\n              .array(\n                z.object({\n                  name: z\n                    .string()\n                    .describe(\n                      'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                    )\n                    .min(1)\n                    .max(200)\n                    .optional()\n                    .nullable(),\n                  phone: z\n                    .string()\n                    .describe(\"Participant's phone number.\")\n                    .optional()\n                    .nullable(),\n                  email: z\n                    .string()\n                    .describe(\"Participant's email address.\")\n                    .email()\n                    .optional()\n                    .nullable(),\n                  contactId: z\n                    .string()\n                    .describe(\n                      '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                })\n              )\n              .max(50)\n              .optional(),\n            hasMore: z\n              .boolean()\n              .describe(\n                \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n              .describe(\n                \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n          )\n          .optional(),\n        conferencingDetails: z\n          .object({\n            type: z\n              .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n              .describe('Conference type. For example, `Zoom`.')\n              .optional(),\n            hostUrl: z\n              .string()\n              .describe(\n                'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            guestUrl: z\n              .string()\n              .describe(\n                'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            password: z\n              .string()\n              .describe(\n                'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n              )\n              .min(1)\n              .max(100)\n              .optional()\n              .nullable(),\n            externalId: z\n              .string()\n              .describe(\n                'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n          )\n          .optional(),\n        notes: z\n          .string()\n          .describe(\n            'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n          )\n          .min(1)\n          .max(5000)\n          .optional()\n          .nullable(),\n        inheritedFields: z\n          .array(\n            z.enum([\n              'TITLE',\n              'TIME_ZONE',\n              'TIME',\n              'LOCATION',\n              'RESOURCES',\n              'CAPACITY',\n              'PARTICIPANTS',\n              'CONFERENCING_DETAILS',\n            ])\n          )\n          .optional(),\n        appId: z\n          .string()\n          .describe(\n            'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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        permissions: z\n          .array(\n            z.object({\n              identity: z\n                .intersection(\n                  z.object({}),\n                  z.xor([\n                    z.object({ wixUserId: z.never().optional() }),\n                    z.object({\n                      wixUserId: z\n                        .string()\n                        .describe(\n                          'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                    }),\n                  ])\n                )\n                .describe(\n                  '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                )\n                .optional(),\n              role: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                )\n                .optional(),\n            })\n          )\n          .optional(),\n        extendedFields: z\n          .object({\n            namespaces: z\n              .record(z.string(), z.record(z.string(), z.any()))\n              .describe(\n                'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n              )\n              .optional(),\n          })\n          .describe(\n            'Extensions enabling applications or users to save custom data related to the event.'\n          )\n          .optional(),\n        revision: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n          )\n          .optional()\n          .nullable(),\n        _createdDate: z\n          .date()\n          .describe(\n            'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n        _updatedDate: z\n          .date()\n          .describe(\n            'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\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(\n          'Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging).'\n        )\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});\nexport const GetEventRequest = z.object({\n  eventId: z\n    .string()\n    .describe(\n      'ID of the event to retrieve.\\n\\nMin: 36 characters\\nMax: 250 characters'\n    )\n    .min(36)\n    .max(250),\n  options: z\n    .object({\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n      fields: z\n        .array(z.enum(['PI_FIELDS', 'OWN_PI_FIELDS']))\n        .max(1)\n        .optional(),\n    })\n    .optional(),\n});\nexport const GetEventResponse = z.object({\n  _id: z.string().describe('Event ID.').min(36).max(250).optional().nullable(),\n  scheduleId: z\n    .string()\n    .describe(\n      \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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  externalScheduleId: z\n    .string()\n    .describe(\n      'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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  scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n  type: z\n    .string()\n    .describe(\n      'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n    )\n    .optional()\n    .nullable(),\n  status: z\n    .enum(['CONFIRMED', 'CANCELLED'])\n    .describe(\n      'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n    )\n    .optional(),\n  title: z\n    .string()\n    .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n    .min(1)\n    .max(200)\n    .optional()\n    .nullable(),\n  start: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Information about when the event starts.')\n    .optional(),\n  end: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n    )\n    .optional(),\n  adjustedStart: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n    )\n    .optional(),\n  adjustedEnd: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n    )\n    .optional(),\n  timeZone: z\n    .string()\n    .describe(\n      'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n    )\n    .optional()\n    .nullable(),\n  recurrenceType: z\n    .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n    .describe(\n      \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n    )\n    .optional(),\n  recurrenceRule: z\n    .object({\n      frequency: z\n        .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n        .describe(\n          \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n        )\n        .optional(),\n      interval: z\n        .number()\n        .int()\n        .describe(\n          'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n        )\n        .min(1)\n        .max(4)\n        .optional()\n        .nullable(),\n      days: z\n        .array(\n          z.enum([\n            'MONDAY',\n            'TUESDAY',\n            'WEDNESDAY',\n            'THURSDAY',\n            'FRIDAY',\n            'SATURDAY',\n            'SUNDAY',\n          ])\n        )\n        .min(1)\n        .max(1)\n        .optional(),\n      until: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n        )\n        .optional(),\n      adjustedUntil: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n    })\n    .describe(\n      \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n    )\n    .optional(),\n  recurringEventId: z\n    .string()\n    .describe(\n      'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n    )\n    .min(64)\n    .max(64)\n    .optional()\n    .nullable(),\n  transparency: z\n    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n    .describe(\n      'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n    )\n    .optional(),\n  location: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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      type: z\n        .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n        .describe(\n          \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n        )\n        .optional(),\n      name: z\n        .string()\n        .describe(\n          \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n        )\n        .min(1)\n        .max(150)\n        .optional()\n        .nullable(),\n      address: z\n        .string()\n        .describe(\n          \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n        )\n        .min(1)\n        .max(300)\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n    )\n    .optional(),\n  resources: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n        type: z.string().describe('Resource type.').optional().nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n          )\n          .optional(),\n        permissionRole: z\n          .enum(['WRITER', 'COMMENTER'])\n          .describe(\n            'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n          )\n          .optional(),\n      })\n    )\n    .max(100)\n    .optional(),\n  totalCapacity: z\n    .number()\n    .int()\n    .describe(\n      'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n    )\n    .min(0)\n    .optional()\n    .nullable(),\n  remainingCapacity: z\n    .number()\n    .int()\n    .describe('Number of participants who can still be added to the event.')\n    .optional()\n    .nullable(),\n  participants: z\n    .object({\n      total: z\n        .number()\n        .int()\n        .describe('Total number of participants.\\n\\nMin: `0`')\n        .min(0)\n        .optional()\n        .nullable(),\n      list: z\n        .array(\n          z.object({\n            name: z\n              .string()\n              .describe(\n                'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n              )\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            phone: z\n              .string()\n              .describe(\"Participant's phone number.\")\n              .optional()\n              .nullable(),\n            email: z\n              .string()\n              .describe(\"Participant's email address.\")\n              .email()\n              .optional()\n              .nullable(),\n            contactId: z\n              .string()\n              .describe(\n                '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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          })\n        )\n        .max(50)\n        .optional(),\n      hasMore: z\n        .boolean()\n        .describe(\n          \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n        .describe(\n          \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n        )\n        .optional(),\n    })\n    .describe(\n      \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n    )\n    .optional(),\n  conferencingDetails: z\n    .object({\n      type: z\n        .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n        .describe('Conference type. For example, `Zoom`.')\n        .optional(),\n      hostUrl: z\n        .string()\n        .describe(\n          'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n        )\n        .min(1)\n        .max(2000)\n        .optional()\n        .nullable(),\n      guestUrl: z\n        .string()\n        .describe(\n          'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n        )\n        .min(1)\n        .max(2000)\n        .optional()\n        .nullable(),\n      password: z\n        .string()\n        .describe(\n          'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n        )\n        .min(1)\n        .max(100)\n        .optional()\n        .nullable(),\n      externalId: z\n        .string()\n        .describe(\n          'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n        )\n        .min(1)\n        .max(150)\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n    )\n    .optional(),\n  notes: z\n    .string()\n    .describe(\n      'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n    )\n    .min(1)\n    .max(5000)\n    .optional()\n    .nullable(),\n  inheritedFields: z\n    .array(\n      z.enum([\n        'TITLE',\n        'TIME_ZONE',\n        'TIME',\n        'LOCATION',\n        'RESOURCES',\n        'CAPACITY',\n        'PARTICIPANTS',\n        'CONFERENCING_DETAILS',\n      ])\n    )\n    .optional(),\n  appId: z\n    .string()\n    .describe(\n      'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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  permissions: z\n    .array(\n      z.object({\n        identity: z\n          .intersection(\n            z.object({}),\n            z.xor([\n              z.object({ wixUserId: z.never().optional() }),\n              z.object({\n                wixUserId: z\n                  .string()\n                  .describe(\n                    'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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              }),\n            ])\n          )\n          .describe(\n            '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n          )\n          .optional(),\n        role: z\n          .enum(['WRITER', 'COMMENTER'])\n          .describe(\n            'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n          )\n          .optional(),\n      })\n    )\n    .optional(),\n  extendedFields: z\n    .object({\n      namespaces: z\n        .record(z.string(), z.record(z.string(), z.any()))\n        .describe(\n          'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n        )\n        .optional(),\n    })\n    .describe(\n      'Extensions enabling applications or users to save custom data related to the event.'\n    )\n    .optional(),\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe(\n      'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe(\n      'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n});\nexport const ListEventsRequest = z.object({\n  eventIds: z.array(z.string()).min(1).max(100),\n  options: z\n    .object({\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n      fields: z\n        .array(z.enum(['PI_FIELDS', 'OWN_PI_FIELDS']))\n        .max(1)\n        .optional(),\n    })\n    .optional(),\n});\nexport const ListEventsResponse = z.object({\n  events: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Event ID.')\n          .min(36)\n          .max(250)\n          .optional()\n          .nullable(),\n        scheduleId: z\n          .string()\n          .describe(\n            \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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        externalScheduleId: z\n          .string()\n          .describe(\n            'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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        scheduleName: z\n          .string()\n          .describe('Schedule name.')\n          .optional()\n          .nullable(),\n        type: z\n          .string()\n          .describe(\n            'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n          )\n          .optional()\n          .nullable(),\n        status: z\n          .enum(['CONFIRMED', 'CANCELLED'])\n          .describe(\n            'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n          )\n          .optional(),\n        title: z\n          .string()\n          .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n          .min(1)\n          .max(200)\n          .optional()\n          .nullable(),\n        start: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('Information about when the event starts.')\n          .optional(),\n        end: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n          )\n          .optional(),\n        adjustedStart: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        adjustedEnd: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        timeZone: z\n          .string()\n          .describe(\n            'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n          )\n          .optional()\n          .nullable(),\n        recurrenceType: z\n          .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n          .describe(\n            \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n          )\n          .optional(),\n        recurrenceRule: z\n          .object({\n            frequency: z\n              .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n              .describe(\n                \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n              )\n              .optional(),\n            interval: z\n              .number()\n              .int()\n              .describe(\n                'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n              )\n              .min(1)\n              .max(4)\n              .optional()\n              .nullable(),\n            days: z\n              .array(\n                z.enum([\n                  'MONDAY',\n                  'TUESDAY',\n                  'WEDNESDAY',\n                  'THURSDAY',\n                  'FRIDAY',\n                  'SATURDAY',\n                  'SUNDAY',\n                ])\n              )\n              .min(1)\n              .max(1)\n              .optional(),\n            until: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n              )\n              .optional(),\n            adjustedUntil: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n          )\n          .optional(),\n        recurringEventId: z\n          .string()\n          .describe(\n            'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n          )\n          .min(64)\n          .max(64)\n          .optional()\n          .nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n          )\n          .optional(),\n        location: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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            type: z\n              .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n              .describe(\n                \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n              )\n              .optional(),\n            name: z\n              .string()\n              .describe(\n                \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n            address: z\n              .string()\n              .describe(\n                \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n              )\n              .min(1)\n              .max(300)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .optional(),\n        resources: z\n          .array(\n            z.object({\n              _id: z\n                .string()\n                .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n              type: z.string().describe('Resource type.').optional().nullable(),\n              transparency: z\n                .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                .describe(\n                  \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                )\n                .optional(),\n              permissionRole: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                )\n                .optional(),\n            })\n          )\n          .max(100)\n          .optional(),\n        totalCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .min(0)\n          .optional()\n          .nullable(),\n        remainingCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Number of participants who can still be added to the event.'\n          )\n          .optional()\n          .nullable(),\n        participants: z\n          .object({\n            total: z\n              .number()\n              .int()\n              .describe('Total number of participants.\\n\\nMin: `0`')\n              .min(0)\n              .optional()\n              .nullable(),\n            list: z\n              .array(\n                z.object({\n                  name: z\n                    .string()\n                    .describe(\n                      'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                    )\n                    .min(1)\n                    .max(200)\n                    .optional()\n                    .nullable(),\n                  phone: z\n                    .string()\n                    .describe(\"Participant's phone number.\")\n                    .optional()\n                    .nullable(),\n                  email: z\n                    .string()\n                    .describe(\"Participant's email address.\")\n                    .email()\n                    .optional()\n                    .nullable(),\n                  contactId: z\n                    .string()\n                    .describe(\n                      '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                })\n              )\n              .max(50)\n              .optional(),\n            hasMore: z\n              .boolean()\n              .describe(\n                \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n              .describe(\n                \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n          )\n          .optional(),\n        conferencingDetails: z\n          .object({\n            type: z\n              .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n              .describe('Conference type. For example, `Zoom`.')\n              .optional(),\n            hostUrl: z\n              .string()\n              .describe(\n                'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            guestUrl: z\n              .string()\n              .describe(\n                'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            password: z\n              .string()\n              .describe(\n                'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n              )\n              .min(1)\n              .max(100)\n              .optional()\n              .nullable(),\n            externalId: z\n              .string()\n              .describe(\n                'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n          )\n          .optional(),\n        notes: z\n          .string()\n          .describe(\n            'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n          )\n          .min(1)\n          .max(5000)\n          .optional()\n          .nullable(),\n        inheritedFields: z\n          .array(\n            z.enum([\n              'TITLE',\n              'TIME_ZONE',\n              'TIME',\n              'LOCATION',\n              'RESOURCES',\n              'CAPACITY',\n              'PARTICIPANTS',\n              'CONFERENCING_DETAILS',\n            ])\n          )\n          .optional(),\n        appId: z\n          .string()\n          .describe(\n            'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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        permissions: z\n          .array(\n            z.object({\n              identity: z\n                .intersection(\n                  z.object({}),\n                  z.xor([\n                    z.object({ wixUserId: z.never().optional() }),\n                    z.object({\n                      wixUserId: z\n                        .string()\n                        .describe(\n                          'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                    }),\n                  ])\n                )\n                .describe(\n                  '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                )\n                .optional(),\n              role: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                )\n                .optional(),\n            })\n          )\n          .optional(),\n        extendedFields: z\n          .object({\n            namespaces: z\n              .record(z.string(), z.record(z.string(), z.any()))\n              .describe(\n                'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n              )\n              .optional(),\n          })\n          .describe(\n            'Extensions enabling applications or users to save custom data related to the event.'\n          )\n          .optional(),\n        revision: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n          )\n          .optional()\n          .nullable(),\n        _createdDate: z\n          .date()\n          .describe(\n            'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n        _updatedDate: z\n          .date()\n          .describe(\n            'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n      })\n    )\n    .optional(),\n});\nexport const QueryEventsRequest = z.object({\n  query: z\n    .object({\n      filter: z\n        .object({\n          transparency: z\n            .union([\n              z.string(),\n              z.object({ $eq: z.string() }).partial().strict(),\n            ])\n            .optional(),\n          appId: z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          scheduleId: z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          externalScheduleId: z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          type: z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          recurringEventId: z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          'location._id': z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          'location.type': z\n            .object({ $eq: z.string(), $in: z.array(z.string()) })\n            .partial()\n            .strict()\n            .optional(),\n          remainingCapacity: z\n            .object({\n              $eq: z.number(),\n              $gt: z.number(),\n              $gte: z.number(),\n              $lt: z.number(),\n              $lte: z.number(),\n              $ne: z.number(),\n            })\n            .partial()\n            .strict()\n            .optional(),\n          'participants.total': z\n            .object({\n              $eq: z.number(),\n              $gt: z.number(),\n              $gte: z.number(),\n              $lt: z.number(),\n              $lte: z.number(),\n              $ne: z.number(),\n            })\n            .partial()\n            .strict()\n            .optional(),\n          totalCapacity: z\n            .object({\n              $eq: z.number(),\n              $exists: z.boolean(),\n              $gt: z.number(),\n              $gte: z.number(),\n              $lt: z.number(),\n              $lte: z.number(),\n              $ne: z.number(),\n            })\n            .partial()\n            .strict()\n            .optional(),\n          'resources._id': z\n            .object({\n              $hasAll: z.array(z.string()),\n              $hasSome: z.array(z.string()),\n            })\n            .partial()\n            .strict()\n            .optional(),\n          'resources.type': z\n            .object({\n              $hasAll: z.array(z.string()),\n              $hasSome: z.array(z.string()),\n            })\n            .partial()\n            .strict()\n            .optional(),\n          'resources.transparency': z\n            .object({\n              $hasAll: z.array(z.string()),\n              $hasSome: z.array(z.string()),\n            })\n            .partial()\n            .strict()\n            .optional(),\n          location: z\n            .object({ $exists: z.boolean() })\n            .partial()\n            .strict()\n            .optional(),\n          conferencingDetails: z\n            .object({ $exists: z.boolean() })\n            .partial()\n            .strict()\n            .optional(),\n          $and: z.array(z.any()).optional(),\n          $or: z.array(z.any()).optional(),\n          $not: z.any().optional(),\n        })\n        .strict()\n        .optional(),\n      sort: z.array(z.object({})).optional(),\n    })\n    .catchall(z.any())\n    .describe(\n      'Query containing filters and paging.\\nDo not specify filters for start and end dates inside `query.filter`, instead\\nspecify `fromLocalDate` and `toLocalDate`.'\n    ),\n  options: z\n    .object({\n      fromLocalDate: z\n        .string()\n        .describe(\n          'Local start date and time from which events are returned in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2024-01-30T13:30:00`.\\n\\nEvents that start before the `fromLocalDate` but end after it are included in\\nthe results. Must be earlier than `toLocalDate` unless the sort order is\\ndescending.'\n        )\n        .optional()\n        .nullable(),\n      toLocalDate: z\n        .string()\n        .describe(\n          'Local end date and time up to which events are returned in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2024-01-30T13:30:00`.\\n\\nEvents that start before `toLocalDate` but end after it are included in the\\nresults. Must be later than `fromLocalDate` unless the sort order is\\ndescending.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and\\n`adjustedEnd`. For example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .array(z.enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION']))\n        .max(5)\n        .optional(),\n      fields: z\n        .array(z.enum(['PI_FIELDS', 'OWN_PI_FIELDS']))\n        .max(1)\n        .optional(),\n    })\n    .optional(),\n});\nexport const QueryEventsResponse = z.object({\n  events: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Event ID.')\n          .min(36)\n          .max(250)\n          .optional()\n          .nullable(),\n        scheduleId: z\n          .string()\n          .describe(\n            \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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        externalScheduleId: z\n          .string()\n          .describe(\n            'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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        scheduleName: z\n          .string()\n          .describe('Schedule name.')\n          .optional()\n          .nullable(),\n        type: z\n          .string()\n          .describe(\n            'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n          )\n          .optional()\n          .nullable(),\n        status: z\n          .enum(['CONFIRMED', 'CANCELLED'])\n          .describe(\n            'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n          )\n          .optional(),\n        title: z\n          .string()\n          .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n          .min(1)\n          .max(200)\n          .optional()\n          .nullable(),\n        start: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('Information about when the event starts.')\n          .optional(),\n        end: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n          )\n          .optional(),\n        adjustedStart: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        adjustedEnd: z\n          .object({\n            localDate: z\n              .string()\n              .describe(\n                'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n              )\n              .optional()\n              .nullable(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n              )\n              .optional()\n              .nullable(),\n            utcDate: z\n              .date()\n              .describe(\n                'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n          )\n          .optional(),\n        timeZone: z\n          .string()\n          .describe(\n            'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n          )\n          .optional()\n          .nullable(),\n        recurrenceType: z\n          .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n          .describe(\n            \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n          )\n          .optional(),\n        recurrenceRule: z\n          .object({\n            frequency: z\n              .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n              .describe(\n                \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n              )\n              .optional(),\n            interval: z\n              .number()\n              .int()\n              .describe(\n                'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n              )\n              .min(1)\n              .max(4)\n              .optional()\n              .nullable(),\n            days: z\n              .array(\n                z.enum([\n                  'MONDAY',\n                  'TUESDAY',\n                  'WEDNESDAY',\n                  'THURSDAY',\n                  'FRIDAY',\n                  'SATURDAY',\n                  'SUNDAY',\n                ])\n              )\n              .min(1)\n              .max(1)\n              .optional(),\n            until: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n              )\n              .optional(),\n            adjustedUntil: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n          )\n          .optional(),\n        recurringEventId: z\n          .string()\n          .describe(\n            'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n          )\n          .min(64)\n          .max(64)\n          .optional()\n          .nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n          )\n          .optional(),\n        location: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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            type: z\n              .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n              .describe(\n                \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n              )\n              .optional(),\n            name: z\n              .string()\n              .describe(\n                \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n            address: z\n              .string()\n              .describe(\n                \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n              )\n              .min(1)\n              .max(300)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .optional(),\n        resources: z\n          .array(\n            z.object({\n              _id: z\n                .string()\n                .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n              type: z.string().describe('Resource type.').optional().nullable(),\n              transparency: z\n                .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                .describe(\n                  \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                )\n                .optional(),\n              permissionRole: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                )\n                .optional(),\n            })\n          )\n          .max(100)\n          .optional(),\n        totalCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n          )\n          .min(0)\n          .optional()\n          .nullable(),\n        remainingCapacity: z\n          .number()\n          .int()\n          .describe(\n            'Number of participants who can still be added to the event.'\n          )\n          .optional()\n          .nullable(),\n        participants: z\n          .object({\n            total: z\n              .number()\n              .int()\n              .describe('Total number of participants.\\n\\nMin: `0`')\n              .min(0)\n              .optional()\n              .nullable(),\n            list: z\n              .array(\n                z.object({\n                  name: z\n                    .string()\n                    .describe(\n                      'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                    )\n                    .min(1)\n                    .max(200)\n                    .optional()\n                    .nullable(),\n                  phone: z\n                    .string()\n                    .describe(\"Participant's phone number.\")\n                    .optional()\n                    .nullable(),\n                  email: z\n                    .string()\n                    .describe(\"Participant's email address.\")\n                    .email()\n                    .optional()\n                    .nullable(),\n                  contactId: z\n                    .string()\n                    .describe(\n                      '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                })\n              )\n              .max(50)\n              .optional(),\n            hasMore: z\n              .boolean()\n              .describe(\n                \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n              .describe(\n                \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n              )\n              .optional(),\n          })\n          .describe(\n            \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n          )\n          .optional(),\n        conferencingDetails: z\n          .object({\n            type: z\n              .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n              .describe('Conference type. For example, `Zoom`.')\n              .optional(),\n            hostUrl: z\n              .string()\n              .describe(\n                'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            guestUrl: z\n              .string()\n              .describe(\n                'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n              )\n              .min(1)\n              .max(2000)\n              .optional()\n              .nullable(),\n            password: z\n              .string()\n              .describe(\n                'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n              )\n              .min(1)\n              .max(100)\n              .optional()\n              .nullable(),\n            externalId: z\n              .string()\n              .describe(\n                'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n              )\n              .min(1)\n              .max(150)\n              .optional()\n              .nullable(),\n          })\n          .describe(\n            \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n          )\n          .optional(),\n        notes: z\n          .string()\n          .describe(\n            'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n          )\n          .min(1)\n          .max(5000)\n          .optional()\n          .nullable(),\n        inheritedFields: z\n          .array(\n            z.enum([\n              'TITLE',\n              'TIME_ZONE',\n              'TIME',\n              'LOCATION',\n              'RESOURCES',\n              'CAPACITY',\n              'PARTICIPANTS',\n              'CONFERENCING_DETAILS',\n            ])\n          )\n          .optional(),\n        appId: z\n          .string()\n          .describe(\n            'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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        permissions: z\n          .array(\n            z.object({\n              identity: z\n                .intersection(\n                  z.object({}),\n                  z.xor([\n                    z.object({ wixUserId: z.never().optional() }),\n                    z.object({\n                      wixUserId: z\n                        .string()\n                        .describe(\n                          'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                    }),\n                  ])\n                )\n                .describe(\n                  '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                )\n                .optional(),\n              role: z\n                .enum(['WRITER', 'COMMENTER'])\n                .describe(\n                  'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                )\n                .optional(),\n            })\n          )\n          .optional(),\n        extendedFields: z\n          .object({\n            namespaces: z\n              .record(z.string(), z.record(z.string(), z.any()))\n              .describe(\n                'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n              )\n              .optional(),\n          })\n          .describe(\n            'Extensions enabling applications or users to save custom data related to the event.'\n          )\n          .optional(),\n        revision: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n          )\n          .optional()\n          .nullable(),\n        _createdDate: z\n          .date()\n          .describe(\n            'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n        _updatedDate: z\n          .date()\n          .describe(\n            'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\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(\n          'Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging).'\n        )\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});\nexport const CreateEventRequest = z.object({\n  event: z\n    .object({\n      _id: z\n        .string()\n        .describe('Event ID.')\n        .min(36)\n        .max(250)\n        .optional()\n        .nullable(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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      externalScheduleId: z\n        .string()\n        .describe(\n          'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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      scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n      type: z\n        .string()\n        .describe(\n          'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n        )\n        .optional()\n        .nullable(),\n      status: z.enum(['CONFIRMED', 'CANCELLED']).optional(),\n      title: z\n        .string()\n        .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n        .min(1)\n        .max(200)\n        .optional()\n        .nullable(),\n      start: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Information about when the event starts.'),\n      end: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n        ),\n      adjustedStart: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      adjustedEnd: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n        .optional(),\n      recurrenceRule: z\n        .object({\n          frequency: z.enum(['UNKNOWN_FREQUENCY', 'WEEKLY']),\n          interval: z\n            .number()\n            .int()\n            .describe(\n              'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n            )\n            .min(1)\n            .max(4)\n            .optional()\n            .nullable(),\n          days: z\n            .array(\n              z.enum([\n                'MONDAY',\n                'TUESDAY',\n                'WEDNESDAY',\n                'THURSDAY',\n                'FRIDAY',\n                'SATURDAY',\n                'SUNDAY',\n              ])\n            )\n            .min(1)\n            .max(1),\n          until: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                ),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n            )\n            .optional(),\n          adjustedUntil: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                ),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n        )\n        .optional(),\n      recurringEventId: z\n        .string()\n        .describe(\n          'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n        )\n        .min(64)\n        .max(64)\n        .optional()\n        .nullable(),\n      transparency: z\n        .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n        .optional(),\n      location: z\n        .object({\n          _id: z\n            .string()\n            .describe(\n              '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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          type: z.enum(['BUSINESS', 'CUSTOMER', 'CUSTOM']),\n          name: z\n            .string()\n            .describe(\n              \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n          address: z\n            .string()\n            .describe(\n              \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n            )\n            .min(1)\n            .max(300)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .optional(),\n      resources: z\n        .array(\n          z.object({\n            _id: z\n              .string()\n              .describe('Resource ID.')\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            name: z.string().describe('Resource name.').optional().nullable(),\n            type: z.string().describe('Resource type.').optional().nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .optional(),\n            permissionRole: z.enum(['WRITER', 'COMMENTER']).optional(),\n          })\n        )\n        .max(100)\n        .optional(),\n      totalCapacity: z\n        .number()\n        .int()\n        .describe(\n          'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .min(0)\n        .optional()\n        .nullable(),\n      remainingCapacity: z\n        .number()\n        .int()\n        .describe('Number of participants who can still be added to the event.')\n        .optional()\n        .nullable(),\n      participants: z\n        .object({\n          total: z\n            .number()\n            .int()\n            .describe('Total number of participants.\\n\\nMin: `0`')\n            .min(0)\n            .optional()\n            .nullable(),\n          list: z\n            .array(\n              z.object({\n                name: z\n                  .string()\n                  .describe(\n                    'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                  )\n                  .min(1)\n                  .max(200),\n                phone: z\n                  .string()\n                  .describe(\"Participant's phone number.\")\n                  .optional()\n                  .nullable(),\n                email: z\n                  .string()\n                  .describe(\"Participant's email address.\")\n                  .email()\n                  .optional()\n                  .nullable(),\n                contactId: z\n                  .string()\n                  .describe(\n                    '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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              })\n            )\n            .max(50)\n            .optional(),\n          hasMore: z\n            .boolean()\n            .describe(\n              \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n            )\n            .optional()\n            .nullable(),\n          status: z.enum(['CONFIRMED', 'PENDING_CONFIRMATION']).optional(),\n        })\n        .describe(\n          \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n        )\n        .optional(),\n      conferencingDetails: z\n        .object({\n          type: z.enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM']).optional(),\n          hostUrl: z\n            .string()\n            .describe(\n              'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000),\n          guestUrl: z\n            .string()\n            .describe(\n              'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000),\n          password: z\n            .string()\n            .describe(\n              'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n            )\n            .min(1)\n            .max(100)\n            .optional()\n            .nullable(),\n          externalId: z\n            .string()\n            .describe(\n              'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n        )\n        .optional(),\n      notes: z\n        .string()\n        .describe(\n          'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n        )\n        .min(1)\n        .max(5000)\n        .optional()\n        .nullable(),\n      inheritedFields: z\n        .array(\n          z.enum([\n            'TITLE',\n            'TIME_ZONE',\n            'TIME',\n            'LOCATION',\n            'RESOURCES',\n            'CAPACITY',\n            'PARTICIPANTS',\n            'CONFERENCING_DETAILS',\n          ])\n        )\n        .optional(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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      permissions: z\n        .array(\n          z.object({\n            identity: z\n              .intersection(\n                z.object({}),\n                z.xor([\n                  z.object({ wixUserId: z.never().optional() }),\n                  z.object({\n                    wixUserId: z\n                      .string()\n                      .describe(\n                        'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                  }),\n                ])\n              )\n              .describe(\n                '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n              )\n              .optional(),\n            role: z.enum(['WRITER', 'COMMENTER']).optional(),\n          })\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Extensions enabling applications or users to save custom data related to the event.'\n        )\n        .optional(),\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n        )\n        .optional()\n        .nullable(),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Event to create.'),\n  options: z\n    .object({\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n      idempotencyKey: z\n        .string()\n        .describe(\n          \"Idempotency key guaranteeing that you don't create the same event more than once.\\nMust be a valid UUID/GUID, for example `550e8400-e29b-41d4-a716-446655440000`.\"\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    })\n    .optional(),\n});\nexport const CreateEventResponse = z.object({\n  _id: z.string().describe('Event ID.').min(36).max(250).optional().nullable(),\n  scheduleId: z\n    .string()\n    .describe(\n      \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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  externalScheduleId: z\n    .string()\n    .describe(\n      'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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  scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n  type: z\n    .string()\n    .describe(\n      'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n    )\n    .optional()\n    .nullable(),\n  status: z\n    .enum(['CONFIRMED', 'CANCELLED'])\n    .describe(\n      'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n    )\n    .optional(),\n  title: z\n    .string()\n    .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n    .min(1)\n    .max(200)\n    .optional()\n    .nullable(),\n  start: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Information about when the event starts.')\n    .optional(),\n  end: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n    )\n    .optional(),\n  adjustedStart: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n    )\n    .optional(),\n  adjustedEnd: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n    )\n    .optional(),\n  timeZone: z\n    .string()\n    .describe(\n      'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n    )\n    .optional()\n    .nullable(),\n  recurrenceType: z\n    .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n    .describe(\n      \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n    )\n    .optional(),\n  recurrenceRule: z\n    .object({\n      frequency: z\n        .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n        .describe(\n          \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n        )\n        .optional(),\n      interval: z\n        .number()\n        .int()\n        .describe(\n          'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n        )\n        .min(1)\n        .max(4)\n        .optional()\n        .nullable(),\n      days: z\n        .array(\n          z.enum([\n            'MONDAY',\n            'TUESDAY',\n            'WEDNESDAY',\n            'THURSDAY',\n            'FRIDAY',\n            'SATURDAY',\n            'SUNDAY',\n          ])\n        )\n        .min(1)\n        .max(1)\n        .optional(),\n      until: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n        )\n        .optional(),\n      adjustedUntil: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n    })\n    .describe(\n      \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n    )\n    .optional(),\n  recurringEventId: z\n    .string()\n    .describe(\n      'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n    )\n    .min(64)\n    .max(64)\n    .optional()\n    .nullable(),\n  transparency: z\n    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n    .describe(\n      'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n    )\n    .optional(),\n  location: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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      type: z\n        .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n        .describe(\n          \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n        )\n        .optional(),\n      name: z\n        .string()\n        .describe(\n          \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n        )\n        .min(1)\n        .max(150)\n        .optional()\n        .nullable(),\n      address: z\n        .string()\n        .describe(\n          \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n        )\n        .min(1)\n        .max(300)\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n    )\n    .optional(),\n  resources: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n        type: z.string().describe('Resource type.').optional().nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n          )\n          .optional(),\n        permissionRole: z\n          .enum(['WRITER', 'COMMENTER'])\n          .describe(\n            'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n          )\n          .optional(),\n      })\n    )\n    .max(100)\n    .optional(),\n  totalCapacity: z\n    .number()\n    .int()\n    .describe(\n      'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n    )\n    .min(0)\n    .optional()\n    .nullable(),\n  remainingCapacity: z\n    .number()\n    .int()\n    .describe('Number of participants who can still be added to the event.')\n    .optional()\n    .nullable(),\n  participants: z\n    .object({\n      total: z\n        .number()\n        .int()\n        .describe('Total number of participants.\\n\\nMin: `0`')\n        .min(0)\n        .optional()\n        .nullable(),\n      list: z\n        .array(\n          z.object({\n            name: z\n              .string()\n              .describe(\n                'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n              )\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            phone: z\n              .string()\n              .describe(\"Participant's phone number.\")\n              .optional()\n              .nullable(),\n            email: z\n              .string()\n              .describe(\"Participant's email address.\")\n              .email()\n              .optional()\n              .nullable(),\n            contactId: z\n              .string()\n              .describe(\n                '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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          })\n        )\n        .max(50)\n        .optional(),\n      hasMore: z\n        .boolean()\n        .describe(\n          \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n        .describe(\n          \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n        )\n        .optional(),\n    })\n    .describe(\n      \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n    )\n    .optional(),\n  conferencingDetails: z\n    .object({\n      type: z\n        .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n        .describe('Conference type. For example, `Zoom`.')\n        .optional(),\n      hostUrl: z\n        .string()\n        .describe(\n          'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n        )\n        .min(1)\n        .max(2000)\n        .optional()\n        .nullable(),\n      guestUrl: z\n        .string()\n        .describe(\n          'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n        )\n        .min(1)\n        .max(2000)\n        .optional()\n        .nullable(),\n      password: z\n        .string()\n        .describe(\n          'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n        )\n        .min(1)\n        .max(100)\n        .optional()\n        .nullable(),\n      externalId: z\n        .string()\n        .describe(\n          'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n        )\n        .min(1)\n        .max(150)\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n    )\n    .optional(),\n  notes: z\n    .string()\n    .describe(\n      'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n    )\n    .min(1)\n    .max(5000)\n    .optional()\n    .nullable(),\n  inheritedFields: z\n    .array(\n      z.enum([\n        'TITLE',\n        'TIME_ZONE',\n        'TIME',\n        'LOCATION',\n        'RESOURCES',\n        'CAPACITY',\n        'PARTICIPANTS',\n        'CONFERENCING_DETAILS',\n      ])\n    )\n    .optional(),\n  appId: z\n    .string()\n    .describe(\n      'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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  permissions: z\n    .array(\n      z.object({\n        identity: z\n          .intersection(\n            z.object({}),\n            z.xor([\n              z.object({ wixUserId: z.never().optional() }),\n              z.object({\n                wixUserId: z\n                  .string()\n                  .describe(\n                    'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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              }),\n            ])\n          )\n          .describe(\n            '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n          )\n          .optional(),\n        role: z\n          .enum(['WRITER', 'COMMENTER'])\n          .describe(\n            'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n          )\n          .optional(),\n      })\n    )\n    .optional(),\n  extendedFields: z\n    .object({\n      namespaces: z\n        .record(z.string(), z.record(z.string(), z.any()))\n        .describe(\n          'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n        )\n        .optional(),\n    })\n    .describe(\n      'Extensions enabling applications or users to save custom data related to the event.'\n    )\n    .optional(),\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe(\n      'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe(\n      'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n});\nexport const BulkCreateEventRequest = z.object({\n  events: z\n    .array(\n      z.object({\n        event: z\n          .object({\n            _id: z\n              .string()\n              .describe('Event ID.')\n              .min(36)\n              .max(250)\n              .optional()\n              .nullable(),\n            scheduleId: z\n              .string()\n              .describe(\n                \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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            externalScheduleId: z\n              .string()\n              .describe(\n                'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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            scheduleName: z\n              .string()\n              .describe('Schedule name.')\n              .optional()\n              .nullable(),\n            type: z\n              .string()\n              .describe(\n                'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n              )\n              .optional()\n              .nullable(),\n            status: z.enum(['CONFIRMED', 'CANCELLED']).optional(),\n            title: z\n              .string()\n              .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            start: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Information about when the event starts.'),\n            end: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n              ),\n            adjustedStart: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            adjustedEnd: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n              )\n              .optional()\n              .nullable(),\n            recurrenceType: z\n              .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n              .optional(),\n            recurrenceRule: z\n              .object({\n                frequency: z.enum(['UNKNOWN_FREQUENCY', 'WEEKLY']),\n                interval: z\n                  .number()\n                  .int()\n                  .describe(\n                    'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n                  )\n                  .min(1)\n                  .max(4)\n                  .optional()\n                  .nullable(),\n                days: z\n                  .array(\n                    z.enum([\n                      'MONDAY',\n                      'TUESDAY',\n                      'WEDNESDAY',\n                      'THURSDAY',\n                      'FRIDAY',\n                      'SATURDAY',\n                      'SUNDAY',\n                    ])\n                  )\n                  .min(1)\n                  .max(1),\n                until: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      ),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n                  )\n                  .optional(),\n                adjustedUntil: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      ),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n              )\n              .optional(),\n            recurringEventId: z\n              .string()\n              .describe(\n                'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n              )\n              .min(64)\n              .max(64)\n              .optional()\n              .nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .optional(),\n            location: z\n              .object({\n                _id: z\n                  .string()\n                  .describe(\n                    '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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                type: z.enum(['BUSINESS', 'CUSTOMER', 'CUSTOM']),\n                name: z\n                  .string()\n                  .describe(\n                    \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n                address: z\n                  .string()\n                  .describe(\n                    \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n                  )\n                  .min(1)\n                  .max(300)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .optional(),\n            resources: z\n              .array(\n                z.object({\n                  _id: z\n                    .string()\n                    .describe('Resource ID.')\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                  name: z\n                    .string()\n                    .describe('Resource name.')\n                    .optional()\n                    .nullable(),\n                  type: z\n                    .string()\n                    .describe('Resource type.')\n                    .optional()\n                    .nullable(),\n                  transparency: z\n                    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                    .optional(),\n                  permissionRole: z.enum(['WRITER', 'COMMENTER']).optional(),\n                })\n              )\n              .max(100)\n              .optional(),\n            totalCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .min(0)\n              .optional()\n              .nullable(),\n            remainingCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Number of participants who can still be added to the event.'\n              )\n              .optional()\n              .nullable(),\n            participants: z\n              .object({\n                total: z\n                  .number()\n                  .int()\n                  .describe('Total number of participants.\\n\\nMin: `0`')\n                  .min(0)\n                  .optional()\n                  .nullable(),\n                list: z\n                  .array(\n                    z.object({\n                      name: z\n                        .string()\n                        .describe(\n                          'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                        )\n                        .min(1)\n                        .max(200),\n                      phone: z\n                        .string()\n                        .describe(\"Participant's phone number.\")\n                        .optional()\n                        .nullable(),\n                      email: z\n                        .string()\n                        .describe(\"Participant's email address.\")\n                        .email()\n                        .optional()\n                        .nullable(),\n                      contactId: z\n                        .string()\n                        .describe(\n                          '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                    })\n                  )\n                  .max(50)\n                  .optional(),\n                hasMore: z\n                  .boolean()\n                  .describe(\n                    \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n                  )\n                  .optional()\n                  .nullable(),\n                status: z\n                  .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n                  .optional(),\n              })\n              .describe(\n                \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n              )\n              .optional(),\n            conferencingDetails: z\n              .object({\n                type: z.enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM']).optional(),\n                hostUrl: z\n                  .string()\n                  .describe(\n                    'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000),\n                guestUrl: z\n                  .string()\n                  .describe(\n                    'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000),\n                password: z\n                  .string()\n                  .describe(\n                    'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n                  )\n                  .min(1)\n                  .max(100)\n                  .optional()\n                  .nullable(),\n                externalId: z\n                  .string()\n                  .describe(\n                    'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n              )\n              .optional(),\n            notes: z\n              .string()\n              .describe(\n                'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n              )\n              .min(1)\n              .max(5000)\n              .optional()\n              .nullable(),\n            inheritedFields: z\n              .array(\n                z.enum([\n                  'TITLE',\n                  'TIME_ZONE',\n                  'TIME',\n                  'LOCATION',\n                  'RESOURCES',\n                  'CAPACITY',\n                  'PARTICIPANTS',\n                  'CONFERENCING_DETAILS',\n                ])\n              )\n              .optional(),\n            appId: z\n              .string()\n              .describe(\n                'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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            permissions: z\n              .array(\n                z.object({\n                  identity: z\n                    .intersection(\n                      z.object({}),\n                      z.xor([\n                        z.object({ wixUserId: z.never().optional() }),\n                        z.object({\n                          wixUserId: z\n                            .string()\n                            .describe(\n                              'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                        }),\n                      ])\n                    )\n                    .describe(\n                      '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                    )\n                    .optional(),\n                  role: z.enum(['WRITER', 'COMMENTER']).optional(),\n                })\n              )\n              .optional(),\n            extendedFields: z\n              .object({\n                namespaces: z\n                  .record(z.string(), z.record(z.string(), z.any()))\n                  .describe(\n                    'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n                  )\n                  .optional(),\n              })\n              .describe(\n                'Extensions enabling applications or users to save custom data related to the event.'\n              )\n              .optional(),\n            revision: z\n              .string()\n              .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n              .describe(\n                'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n              )\n              .optional()\n              .nullable(),\n            _createdDate: z\n              .date()\n              .describe(\n                'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n            _updatedDate: z\n              .date()\n              .describe(\n                'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('Event to create.'),\n      })\n    )\n    .min(1)\n    .max(50),\n  options: z\n    .object({\n      returnEntity: z\n        .boolean()\n        .describe('Whether to return created events.\\n\\nDefault: `false`.')\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const BulkCreateEventResponse = z.object({\n  results: z\n    .array(\n      z.object({\n        itemMetadata: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                \"Event ID.\\nShould always be available, unless it's impossible (for example, when failing to create an event).\"\n              )\n              .optional()\n              .nullable(),\n            originalIndex: z\n              .number()\n              .int()\n              .describe(\n                'Index of the item within the request array, for correlation between request and response items.'\n              )\n              .optional(),\n            success: z\n              .boolean()\n              .describe(\n                'Whether the requested action was successful for this event.\\nWhen `false`, the `error` field is populated.'\n              )\n              .optional(),\n            error: z\n              .object({\n                code: z.string().describe('Error code.').optional(),\n                description: z\n                  .string()\n                  .describe('Description of the error.')\n                  .optional(),\n                data: z\n                  .record(z.string(), z.any())\n                  .describe('Data related to the error.')\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Details about the error in case of failure.')\n              .optional(),\n          })\n          .describe('Whether the requested action was successful.')\n          .optional(),\n        item: z\n          .object({\n            _id: z\n              .string()\n              .describe('Event ID.')\n              .min(36)\n              .max(250)\n              .optional()\n              .nullable(),\n            scheduleId: z\n              .string()\n              .describe(\n                \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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            externalScheduleId: z\n              .string()\n              .describe(\n                'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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            scheduleName: z\n              .string()\n              .describe('Schedule name.')\n              .optional()\n              .nullable(),\n            type: z\n              .string()\n              .describe(\n                'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'CANCELLED'])\n              .describe(\n                'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n              )\n              .optional(),\n            title: z\n              .string()\n              .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            start: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Information about when the event starts.')\n              .optional(),\n            end: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n              )\n              .optional(),\n            adjustedStart: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            adjustedEnd: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n              )\n              .optional()\n              .nullable(),\n            recurrenceType: z\n              .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n              .describe(\n                \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n              )\n              .optional(),\n            recurrenceRule: z\n              .object({\n                frequency: z\n                  .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n                  .describe(\n                    \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n                  )\n                  .optional(),\n                interval: z\n                  .number()\n                  .int()\n                  .describe(\n                    'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n                  )\n                  .min(1)\n                  .max(4)\n                  .optional()\n                  .nullable(),\n                days: z\n                  .array(\n                    z.enum([\n                      'MONDAY',\n                      'TUESDAY',\n                      'WEDNESDAY',\n                      'THURSDAY',\n                      'FRIDAY',\n                      'SATURDAY',\n                      'SUNDAY',\n                    ])\n                  )\n                  .min(1)\n                  .max(1)\n                  .optional(),\n                until: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      )\n                      .optional()\n                      .nullable(),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n                  )\n                  .optional(),\n                adjustedUntil: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      )\n                      .optional()\n                      .nullable(),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n              )\n              .optional(),\n            recurringEventId: z\n              .string()\n              .describe(\n                'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n              )\n              .min(64)\n              .max(64)\n              .optional()\n              .nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n              )\n              .optional(),\n            location: z\n              .object({\n                _id: z\n                  .string()\n                  .describe(\n                    '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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                type: z\n                  .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n                  .describe(\n                    \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n                  )\n                  .optional(),\n                name: z\n                  .string()\n                  .describe(\n                    \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n                address: z\n                  .string()\n                  .describe(\n                    \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n                  )\n                  .min(1)\n                  .max(300)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .optional(),\n            resources: z\n              .array(\n                z.object({\n                  _id: z\n                    .string()\n                    .describe('Resource ID.')\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('Resource name.')\n                    .optional()\n                    .nullable(),\n                  type: z\n                    .string()\n                    .describe('Resource type.')\n                    .optional()\n                    .nullable(),\n                  transparency: z\n                    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                    .describe(\n                      \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                    )\n                    .optional(),\n                  permissionRole: z\n                    .enum(['WRITER', 'COMMENTER'])\n                    .describe(\n                      'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                    )\n                    .optional(),\n                })\n              )\n              .max(100)\n              .optional(),\n            totalCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .min(0)\n              .optional()\n              .nullable(),\n            remainingCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Number of participants who can still be added to the event.'\n              )\n              .optional()\n              .nullable(),\n            participants: z\n              .object({\n                total: z\n                  .number()\n                  .int()\n                  .describe('Total number of participants.\\n\\nMin: `0`')\n                  .min(0)\n                  .optional()\n                  .nullable(),\n                list: z\n                  .array(\n                    z.object({\n                      name: z\n                        .string()\n                        .describe(\n                          'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                        )\n                        .min(1)\n                        .max(200)\n                        .optional()\n                        .nullable(),\n                      phone: z\n                        .string()\n                        .describe(\"Participant's phone number.\")\n                        .optional()\n                        .nullable(),\n                      email: z\n                        .string()\n                        .describe(\"Participant's email address.\")\n                        .email()\n                        .optional()\n                        .nullable(),\n                      contactId: z\n                        .string()\n                        .describe(\n                          '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                    })\n                  )\n                  .max(50)\n                  .optional(),\n                hasMore: z\n                  .boolean()\n                  .describe(\n                    \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n                  )\n                  .optional()\n                  .nullable(),\n                status: z\n                  .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n                  .describe(\n                    \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n              )\n              .optional(),\n            conferencingDetails: z\n              .object({\n                type: z\n                  .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n                  .describe('Conference type. For example, `Zoom`.')\n                  .optional(),\n                hostUrl: z\n                  .string()\n                  .describe(\n                    'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000)\n                  .optional()\n                  .nullable(),\n                guestUrl: z\n                  .string()\n                  .describe(\n                    'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000)\n                  .optional()\n                  .nullable(),\n                password: z\n                  .string()\n                  .describe(\n                    'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n                  )\n                  .min(1)\n                  .max(100)\n                  .optional()\n                  .nullable(),\n                externalId: z\n                  .string()\n                  .describe(\n                    'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n              )\n              .optional(),\n            notes: z\n              .string()\n              .describe(\n                'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n              )\n              .min(1)\n              .max(5000)\n              .optional()\n              .nullable(),\n            inheritedFields: z\n              .array(\n                z.enum([\n                  'TITLE',\n                  'TIME_ZONE',\n                  'TIME',\n                  'LOCATION',\n                  'RESOURCES',\n                  'CAPACITY',\n                  'PARTICIPANTS',\n                  'CONFERENCING_DETAILS',\n                ])\n              )\n              .optional(),\n            appId: z\n              .string()\n              .describe(\n                'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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            permissions: z\n              .array(\n                z.object({\n                  identity: z\n                    .intersection(\n                      z.object({}),\n                      z.xor([\n                        z.object({ wixUserId: z.never().optional() }),\n                        z.object({\n                          wixUserId: z\n                            .string()\n                            .describe(\n                              'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                        }),\n                      ])\n                    )\n                    .describe(\n                      '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                    )\n                    .optional(),\n                  role: z\n                    .enum(['WRITER', 'COMMENTER'])\n                    .describe(\n                      'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                    )\n                    .optional(),\n                })\n              )\n              .optional(),\n            extendedFields: z\n              .object({\n                namespaces: z\n                  .record(z.string(), z.record(z.string(), z.any()))\n                  .describe(\n                    'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n                  )\n                  .optional(),\n              })\n              .describe(\n                'Extensions enabling applications or users to save custom data related to the event.'\n              )\n              .optional(),\n            revision: z\n              .string()\n              .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n              .describe(\n                'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n              )\n              .optional()\n              .nullable(),\n            _createdDate: z\n              .date()\n              .describe(\n                'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n            _updatedDate: z\n              .date()\n              .describe(\n                'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('The event.')\n          .optional(),\n      })\n    )\n    .optional(),\n  bulkActionMetadata: z\n    .object({\n      totalSuccesses: z\n        .number()\n        .int()\n        .describe('Number of events that were successfully processed.')\n        .optional(),\n      totalFailures: z\n        .number()\n        .int()\n        .describe(\"Number of events that couldn't be processed.\")\n        .optional(),\n    })\n    .describe('Total successes and failures.')\n    .optional(),\n});\nexport const UpdateEventRequest = z.object({\n  _id: z.string().describe('Event ID.').min(36).max(250),\n  event: z\n    .object({\n      _id: z\n        .string()\n        .describe('Event ID.')\n        .min(36)\n        .max(250)\n        .optional()\n        .nullable(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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      externalScheduleId: z\n        .string()\n        .describe(\n          'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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      scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n      type: z\n        .string()\n        .describe(\n          'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n        )\n        .optional()\n        .nullable(),\n      status: z.enum(['CONFIRMED', 'CANCELLED']).optional(),\n      title: z\n        .string()\n        .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n        .min(1)\n        .max(200)\n        .optional()\n        .nullable(),\n      start: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Information about when the event starts.')\n        .optional(),\n      end: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n        )\n        .optional(),\n      adjustedStart: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      adjustedEnd: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            ),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n        .optional(),\n      recurrenceRule: z\n        .object({\n          frequency: z.enum(['UNKNOWN_FREQUENCY', 'WEEKLY']),\n          interval: z\n            .number()\n            .int()\n            .describe(\n              'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n            )\n            .min(1)\n            .max(4)\n            .optional()\n            .nullable(),\n          days: z\n            .array(\n              z.enum([\n                'MONDAY',\n                'TUESDAY',\n                'WEDNESDAY',\n                'THURSDAY',\n                'FRIDAY',\n                'SATURDAY',\n                'SUNDAY',\n              ])\n            )\n            .min(1)\n            .max(1),\n          until: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                ),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n            )\n            .optional(),\n          adjustedUntil: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                ),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n        )\n        .optional(),\n      recurringEventId: z\n        .string()\n        .describe(\n          'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n        )\n        .min(64)\n        .max(64)\n        .optional()\n        .nullable(),\n      transparency: z\n        .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n        .optional(),\n      location: z\n        .object({\n          _id: z\n            .string()\n            .describe(\n              '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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          type: z.enum(['BUSINESS', 'CUSTOMER', 'CUSTOM']),\n          name: z\n            .string()\n            .describe(\n              \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n          address: z\n            .string()\n            .describe(\n              \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n            )\n            .min(1)\n            .max(300)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .optional(),\n      resources: z\n        .array(\n          z.object({\n            _id: z\n              .string()\n              .describe('Resource ID.')\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            name: z.string().describe('Resource name.').optional().nullable(),\n            type: z.string().describe('Resource type.').optional().nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .optional(),\n            permissionRole: z.enum(['WRITER', 'COMMENTER']).optional(),\n          })\n        )\n        .max(100)\n        .optional(),\n      totalCapacity: z\n        .number()\n        .int()\n        .describe(\n          'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .min(0)\n        .optional()\n        .nullable(),\n      remainingCapacity: z\n        .number()\n        .int()\n        .describe('Number of participants who can still be added to the event.')\n        .optional()\n        .nullable(),\n      participants: z\n        .object({\n          total: z\n            .number()\n            .int()\n            .describe('Total number of participants.\\n\\nMin: `0`')\n            .min(0)\n            .optional()\n            .nullable(),\n          list: z\n            .array(\n              z.object({\n                name: z\n                  .string()\n                  .describe(\n                    'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                  )\n                  .min(1)\n                  .max(200),\n                phone: z\n                  .string()\n                  .describe(\"Participant's phone number.\")\n                  .optional()\n                  .nullable(),\n                email: z\n                  .string()\n                  .describe(\"Participant's email address.\")\n                  .email()\n                  .optional()\n                  .nullable(),\n                contactId: z\n                  .string()\n                  .describe(\n                    '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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              })\n            )\n            .max(50)\n            .optional(),\n          hasMore: z\n            .boolean()\n            .describe(\n              \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n            )\n            .optional()\n            .nullable(),\n          status: z.enum(['CONFIRMED', 'PENDING_CONFIRMATION']).optional(),\n        })\n        .describe(\n          \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n        )\n        .optional(),\n      conferencingDetails: z\n        .object({\n          type: z.enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM']).optional(),\n          hostUrl: z\n            .string()\n            .describe(\n              'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000),\n          guestUrl: z\n            .string()\n            .describe(\n              'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000),\n          password: z\n            .string()\n            .describe(\n              'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n            )\n            .min(1)\n            .max(100)\n            .optional()\n            .nullable(),\n          externalId: z\n            .string()\n            .describe(\n              'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n        )\n        .optional(),\n      notes: z\n        .string()\n        .describe(\n          'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n        )\n        .min(1)\n        .max(5000)\n        .optional()\n        .nullable(),\n      inheritedFields: z\n        .array(\n          z.enum([\n            'TITLE',\n            'TIME_ZONE',\n            'TIME',\n            'LOCATION',\n            'RESOURCES',\n            'CAPACITY',\n            'PARTICIPANTS',\n            'CONFERENCING_DETAILS',\n          ])\n        )\n        .optional(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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      permissions: z\n        .array(\n          z.object({\n            identity: z\n              .intersection(\n                z.object({}),\n                z.xor([\n                  z.object({ wixUserId: z.never().optional() }),\n                  z.object({\n                    wixUserId: z\n                      .string()\n                      .describe(\n                        'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                  }),\n                ])\n              )\n              .describe(\n                '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n              )\n              .optional(),\n            role: z.enum(['WRITER', 'COMMENTER']).optional(),\n          })\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Extensions enabling applications or users to save custom data related to the event.'\n        )\n        .optional(),\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n        ),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Event to update.'),\n  options: z\n    .object({\n      participantNotification: z\n        .object({\n          notifyParticipants: z\n            .boolean()\n            .describe(\n              'Whether to notify the participants about changes made to the schedule or event.\\n\\nDefault: `false`'\n            )\n            .optional()\n            .nullable(),\n          message: z\n            .string()\n            .describe(\n              'Message to send.\\n\\nMin: 1 character\\nMax: 5000 characters'\n            )\n            .min(1)\n            .max(5000)\n            .optional()\n            .nullable(),\n          metadata: z\n            .record(z.string(), z.string())\n            .describe(\n              'Information about the delivery channels used to send the notification.\\nFor example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\\n\\nMax: 10 keys\\nMax key length: 64 characters\\nMax value length: 1000 characters'\n            )\n            .optional(),\n        })\n        .describe(\n          'Information about whether participants of the updated event are notified and\\nthe message they receive.'\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const UpdateEventResponse = z.object({\n  _id: z.string().describe('Event ID.').min(36).max(250).optional().nullable(),\n  scheduleId: z\n    .string()\n    .describe(\n      \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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  externalScheduleId: z\n    .string()\n    .describe(\n      'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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  scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n  type: z\n    .string()\n    .describe(\n      'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n    )\n    .optional()\n    .nullable(),\n  status: z\n    .enum(['CONFIRMED', 'CANCELLED'])\n    .describe(\n      'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n    )\n    .optional(),\n  title: z\n    .string()\n    .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n    .min(1)\n    .max(200)\n    .optional()\n    .nullable(),\n  start: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Information about when the event starts.')\n    .optional(),\n  end: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n    )\n    .optional(),\n  adjustedStart: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n    )\n    .optional(),\n  adjustedEnd: z\n    .object({\n      localDate: z\n        .string()\n        .describe(\n          'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n        )\n        .optional()\n        .nullable(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n        )\n        .optional()\n        .nullable(),\n      utcDate: z\n        .date()\n        .describe(\n          'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n    )\n    .optional(),\n  timeZone: z\n    .string()\n    .describe(\n      'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n    )\n    .optional()\n    .nullable(),\n  recurrenceType: z\n    .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n    .describe(\n      \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n    )\n    .optional(),\n  recurrenceRule: z\n    .object({\n      frequency: z\n        .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n        .describe(\n          \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n        )\n        .optional(),\n      interval: z\n        .number()\n        .int()\n        .describe(\n          'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n        )\n        .min(1)\n        .max(4)\n        .optional()\n        .nullable(),\n      days: z\n        .array(\n          z.enum([\n            'MONDAY',\n            'TUESDAY',\n            'WEDNESDAY',\n            'THURSDAY',\n            'FRIDAY',\n            'SATURDAY',\n            'SUNDAY',\n          ])\n        )\n        .min(1)\n        .max(1)\n        .optional(),\n      until: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n        )\n        .optional(),\n      adjustedUntil: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n    })\n    .describe(\n      \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n    )\n    .optional(),\n  recurringEventId: z\n    .string()\n    .describe(\n      'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n    )\n    .min(64)\n    .max(64)\n    .optional()\n    .nullable(),\n  transparency: z\n    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n    .describe(\n      'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n    )\n    .optional(),\n  location: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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      type: z\n        .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n        .describe(\n          \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n        )\n        .optional(),\n      name: z\n        .string()\n        .describe(\n          \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n        )\n        .min(1)\n        .max(150)\n        .optional()\n        .nullable(),\n      address: z\n        .string()\n        .describe(\n          \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n        )\n        .min(1)\n        .max(300)\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n    )\n    .optional(),\n  resources: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n        type: z.string().describe('Resource type.').optional().nullable(),\n        transparency: z\n          .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n          .describe(\n            \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n          )\n          .optional(),\n        permissionRole: z\n          .enum(['WRITER', 'COMMENTER'])\n          .describe(\n            'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n          )\n          .optional(),\n      })\n    )\n    .max(100)\n    .optional(),\n  totalCapacity: z\n    .number()\n    .int()\n    .describe(\n      'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n    )\n    .min(0)\n    .optional()\n    .nullable(),\n  remainingCapacity: z\n    .number()\n    .int()\n    .describe('Number of participants who can still be added to the event.')\n    .optional()\n    .nullable(),\n  participants: z\n    .object({\n      total: z\n        .number()\n        .int()\n        .describe('Total number of participants.\\n\\nMin: `0`')\n        .min(0)\n        .optional()\n        .nullable(),\n      list: z\n        .array(\n          z.object({\n            name: z\n              .string()\n              .describe(\n                'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n              )\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            phone: z\n              .string()\n              .describe(\"Participant's phone number.\")\n              .optional()\n              .nullable(),\n            email: z\n              .string()\n              .describe(\"Participant's email address.\")\n              .email()\n              .optional()\n              .nullable(),\n            contactId: z\n              .string()\n              .describe(\n                '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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          })\n        )\n        .max(50)\n        .optional(),\n      hasMore: z\n        .boolean()\n        .describe(\n          \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n        .describe(\n          \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n        )\n        .optional(),\n    })\n    .describe(\n      \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n    )\n    .optional(),\n  conferencingDetails: z\n    .object({\n      type: z\n        .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n        .describe('Conference type. For example, `Zoom`.')\n        .optional(),\n      hostUrl: z\n        .string()\n        .describe(\n          'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n        )\n        .min(1)\n        .max(2000)\n        .optional()\n        .nullable(),\n      guestUrl: z\n        .string()\n        .describe(\n          'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n        )\n        .min(1)\n        .max(2000)\n        .optional()\n        .nullable(),\n      password: z\n        .string()\n        .describe(\n          'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n        )\n        .min(1)\n        .max(100)\n        .optional()\n        .nullable(),\n      externalId: z\n        .string()\n        .describe(\n          'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n        )\n        .min(1)\n        .max(150)\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n    )\n    .optional(),\n  notes: z\n    .string()\n    .describe(\n      'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n    )\n    .min(1)\n    .max(5000)\n    .optional()\n    .nullable(),\n  inheritedFields: z\n    .array(\n      z.enum([\n        'TITLE',\n        'TIME_ZONE',\n        'TIME',\n        'LOCATION',\n        'RESOURCES',\n        'CAPACITY',\n        'PARTICIPANTS',\n        'CONFERENCING_DETAILS',\n      ])\n    )\n    .optional(),\n  appId: z\n    .string()\n    .describe(\n      'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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  permissions: z\n    .array(\n      z.object({\n        identity: z\n          .intersection(\n            z.object({}),\n            z.xor([\n              z.object({ wixUserId: z.never().optional() }),\n              z.object({\n                wixUserId: z\n                  .string()\n                  .describe(\n                    'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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              }),\n            ])\n          )\n          .describe(\n            '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n          )\n          .optional(),\n        role: z\n          .enum(['WRITER', 'COMMENTER'])\n          .describe(\n            'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n          )\n          .optional(),\n      })\n    )\n    .optional(),\n  extendedFields: z\n    .object({\n      namespaces: z\n        .record(z.string(), z.record(z.string(), z.any()))\n        .describe(\n          'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n        )\n        .optional(),\n    })\n    .describe(\n      'Extensions enabling applications or users to save custom data related to the event.'\n    )\n    .optional(),\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe(\n      'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe(\n      'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n});\nexport const BulkUpdateEventRequest = z.object({\n  events: z\n    .array(\n      z.object({\n        event: z\n          .object({\n            _id: z.string().describe('Event ID.').min(36).max(250),\n            scheduleId: z\n              .string()\n              .describe(\n                \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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            externalScheduleId: z\n              .string()\n              .describe(\n                'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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            scheduleName: z\n              .string()\n              .describe('Schedule name.')\n              .optional()\n              .nullable(),\n            type: z\n              .string()\n              .describe(\n                'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n              )\n              .optional()\n              .nullable(),\n            status: z.enum(['CONFIRMED', 'CANCELLED']).optional(),\n            title: z\n              .string()\n              .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            start: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Information about when the event starts.')\n              .optional(),\n            end: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n              )\n              .optional(),\n            adjustedStart: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            adjustedEnd: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  ),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n              )\n              .optional()\n              .nullable(),\n            recurrenceType: z\n              .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n              .optional(),\n            recurrenceRule: z\n              .object({\n                frequency: z.enum(['UNKNOWN_FREQUENCY', 'WEEKLY']),\n                interval: z\n                  .number()\n                  .int()\n                  .describe(\n                    'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n                  )\n                  .min(1)\n                  .max(4)\n                  .optional()\n                  .nullable(),\n                days: z\n                  .array(\n                    z.enum([\n                      'MONDAY',\n                      'TUESDAY',\n                      'WEDNESDAY',\n                      'THURSDAY',\n                      'FRIDAY',\n                      'SATURDAY',\n                      'SUNDAY',\n                    ])\n                  )\n                  .min(1)\n                  .max(1),\n                until: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      ),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n                  )\n                  .optional(),\n                adjustedUntil: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      ),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n              )\n              .optional(),\n            recurringEventId: z\n              .string()\n              .describe(\n                'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n              )\n              .min(64)\n              .max(64)\n              .optional()\n              .nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .optional(),\n            location: z\n              .object({\n                _id: z\n                  .string()\n                  .describe(\n                    '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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                type: z.enum(['BUSINESS', 'CUSTOMER', 'CUSTOM']),\n                name: z\n                  .string()\n                  .describe(\n                    \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n                address: z\n                  .string()\n                  .describe(\n                    \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n                  )\n                  .min(1)\n                  .max(300)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .optional(),\n            resources: z\n              .array(\n                z.object({\n                  _id: z\n                    .string()\n                    .describe('Resource ID.')\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                  name: z\n                    .string()\n                    .describe('Resource name.')\n                    .optional()\n                    .nullable(),\n                  type: z\n                    .string()\n                    .describe('Resource type.')\n                    .optional()\n                    .nullable(),\n                  transparency: z\n                    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                    .optional(),\n                  permissionRole: z.enum(['WRITER', 'COMMENTER']).optional(),\n                })\n              )\n              .max(100)\n              .optional(),\n            totalCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .min(0)\n              .optional()\n              .nullable(),\n            remainingCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Number of participants who can still be added to the event.'\n              )\n              .optional()\n              .nullable(),\n            participants: z\n              .object({\n                total: z\n                  .number()\n                  .int()\n                  .describe('Total number of participants.\\n\\nMin: `0`')\n                  .min(0)\n                  .optional()\n                  .nullable(),\n                list: z\n                  .array(\n                    z.object({\n                      name: z\n                        .string()\n                        .describe(\n                          'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                        )\n                        .min(1)\n                        .max(200),\n                      phone: z\n                        .string()\n                        .describe(\"Participant's phone number.\")\n                        .optional()\n                        .nullable(),\n                      email: z\n                        .string()\n                        .describe(\"Participant's email address.\")\n                        .email()\n                        .optional()\n                        .nullable(),\n                      contactId: z\n                        .string()\n                        .describe(\n                          '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                    })\n                  )\n                  .max(50)\n                  .optional(),\n                hasMore: z\n                  .boolean()\n                  .describe(\n                    \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n                  )\n                  .optional()\n                  .nullable(),\n                status: z\n                  .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n                  .optional(),\n              })\n              .describe(\n                \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n              )\n              .optional(),\n            conferencingDetails: z\n              .object({\n                type: z.enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM']).optional(),\n                hostUrl: z\n                  .string()\n                  .describe(\n                    'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000),\n                guestUrl: z\n                  .string()\n                  .describe(\n                    'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000),\n                password: z\n                  .string()\n                  .describe(\n                    'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n                  )\n                  .min(1)\n                  .max(100)\n                  .optional()\n                  .nullable(),\n                externalId: z\n                  .string()\n                  .describe(\n                    'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n              )\n              .optional(),\n            notes: z\n              .string()\n              .describe(\n                'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n              )\n              .min(1)\n              .max(5000)\n              .optional()\n              .nullable(),\n            inheritedFields: z\n              .array(\n                z.enum([\n                  'TITLE',\n                  'TIME_ZONE',\n                  'TIME',\n                  'LOCATION',\n                  'RESOURCES',\n                  'CAPACITY',\n                  'PARTICIPANTS',\n                  'CONFERENCING_DETAILS',\n                ])\n              )\n              .optional(),\n            appId: z\n              .string()\n              .describe(\n                'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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            permissions: z\n              .array(\n                z.object({\n                  identity: z\n                    .intersection(\n                      z.object({}),\n                      z.xor([\n                        z.object({ wixUserId: z.never().optional() }),\n                        z.object({\n                          wixUserId: z\n                            .string()\n                            .describe(\n                              'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                        }),\n                      ])\n                    )\n                    .describe(\n                      '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                    )\n                    .optional(),\n                  role: z.enum(['WRITER', 'COMMENTER']).optional(),\n                })\n              )\n              .optional(),\n            extendedFields: z\n              .object({\n                namespaces: z\n                  .record(z.string(), z.record(z.string(), z.any()))\n                  .describe(\n                    'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n                  )\n                  .optional(),\n              })\n              .describe(\n                'Extensions enabling applications or users to save custom data related to the event.'\n              )\n              .optional(),\n            revision: z\n              .string()\n              .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n              .describe(\n                'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n              ),\n            _createdDate: z\n              .date()\n              .describe(\n                'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n            _updatedDate: z\n              .date()\n              .describe(\n                'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('Event to update.'),\n      })\n    )\n    .min(1)\n    .max(50),\n  options: z\n    .object({\n      returnEntity: z\n        .boolean()\n        .describe('Whether to return the updated events.\\n\\nDefault: `false`')\n        .optional()\n        .nullable(),\n      participantNotification: z\n        .object({\n          notifyParticipants: z\n            .boolean()\n            .describe(\n              'Whether to notify the participants about changes made to the schedule or event.\\n\\nDefault: `false`'\n            )\n            .optional()\n            .nullable(),\n          message: z\n            .string()\n            .describe(\n              'Message to send.\\n\\nMin: 1 character\\nMax: 5000 characters'\n            )\n            .min(1)\n            .max(5000)\n            .optional()\n            .nullable(),\n          metadata: z\n            .record(z.string(), z.string())\n            .describe(\n              'Information about the delivery channels used to send the notification.\\nFor example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\\n\\nMax: 10 keys\\nMax key length: 64 characters\\nMax value length: 1000 characters'\n            )\n            .optional(),\n        })\n        .describe(\n          'Information about whether participants of the updated event are notified and\\nthe message they receive.'\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const BulkUpdateEventResponse = z.object({\n  results: z\n    .array(\n      z.object({\n        itemMetadata: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                \"Event ID.\\nShould always be available, unless it's impossible (for example, when failing to create an event).\"\n              )\n              .optional()\n              .nullable(),\n            originalIndex: z\n              .number()\n              .int()\n              .describe(\n                'Index of the item within the request array, for correlation between request and response items.'\n              )\n              .optional(),\n            success: z\n              .boolean()\n              .describe(\n                'Whether the requested action was successful for this event.\\nWhen `false`, the `error` field is populated.'\n              )\n              .optional(),\n            error: z\n              .object({\n                code: z.string().describe('Error code.').optional(),\n                description: z\n                  .string()\n                  .describe('Description of the error.')\n                  .optional(),\n                data: z\n                  .record(z.string(), z.any())\n                  .describe('Data related to the error.')\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Details about the error in case of failure.')\n              .optional(),\n          })\n          .describe('Whether the requested action was successful.')\n          .optional(),\n        item: z\n          .object({\n            _id: z\n              .string()\n              .describe('Event ID.')\n              .min(36)\n              .max(250)\n              .optional()\n              .nullable(),\n            scheduleId: z\n              .string()\n              .describe(\n                \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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            externalScheduleId: z\n              .string()\n              .describe(\n                'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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            scheduleName: z\n              .string()\n              .describe('Schedule name.')\n              .optional()\n              .nullable(),\n            type: z\n              .string()\n              .describe(\n                'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'CANCELLED'])\n              .describe(\n                'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n              )\n              .optional(),\n            title: z\n              .string()\n              .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            start: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Information about when the event starts.')\n              .optional(),\n            end: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n              )\n              .optional(),\n            adjustedStart: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            adjustedEnd: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n              )\n              .optional()\n              .nullable(),\n            recurrenceType: z\n              .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n              .describe(\n                \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n              )\n              .optional(),\n            recurrenceRule: z\n              .object({\n                frequency: z\n                  .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n                  .describe(\n                    \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n                  )\n                  .optional(),\n                interval: z\n                  .number()\n                  .int()\n                  .describe(\n                    'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n                  )\n                  .min(1)\n                  .max(4)\n                  .optional()\n                  .nullable(),\n                days: z\n                  .array(\n                    z.enum([\n                      'MONDAY',\n                      'TUESDAY',\n                      'WEDNESDAY',\n                      'THURSDAY',\n                      'FRIDAY',\n                      'SATURDAY',\n                      'SUNDAY',\n                    ])\n                  )\n                  .min(1)\n                  .max(1)\n                  .optional(),\n                until: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      )\n                      .optional()\n                      .nullable(),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n                  )\n                  .optional(),\n                adjustedUntil: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      )\n                      .optional()\n                      .nullable(),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n              )\n              .optional(),\n            recurringEventId: z\n              .string()\n              .describe(\n                'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n              )\n              .min(64)\n              .max(64)\n              .optional()\n              .nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n              )\n              .optional(),\n            location: z\n              .object({\n                _id: z\n                  .string()\n                  .describe(\n                    '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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                type: z\n                  .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n                  .describe(\n                    \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n                  )\n                  .optional(),\n                name: z\n                  .string()\n                  .describe(\n                    \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n                address: z\n                  .string()\n                  .describe(\n                    \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n                  )\n                  .min(1)\n                  .max(300)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .optional(),\n            resources: z\n              .array(\n                z.object({\n                  _id: z\n                    .string()\n                    .describe('Resource ID.')\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('Resource name.')\n                    .optional()\n                    .nullable(),\n                  type: z\n                    .string()\n                    .describe('Resource type.')\n                    .optional()\n                    .nullable(),\n                  transparency: z\n                    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                    .describe(\n                      \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                    )\n                    .optional(),\n                  permissionRole: z\n                    .enum(['WRITER', 'COMMENTER'])\n                    .describe(\n                      'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                    )\n                    .optional(),\n                })\n              )\n              .max(100)\n              .optional(),\n            totalCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .min(0)\n              .optional()\n              .nullable(),\n            remainingCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Number of participants who can still be added to the event.'\n              )\n              .optional()\n              .nullable(),\n            participants: z\n              .object({\n                total: z\n                  .number()\n                  .int()\n                  .describe('Total number of participants.\\n\\nMin: `0`')\n                  .min(0)\n                  .optional()\n                  .nullable(),\n                list: z\n                  .array(\n                    z.object({\n                      name: z\n                        .string()\n                        .describe(\n                          'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                        )\n                        .min(1)\n                        .max(200)\n                        .optional()\n                        .nullable(),\n                      phone: z\n                        .string()\n                        .describe(\"Participant's phone number.\")\n                        .optional()\n                        .nullable(),\n                      email: z\n                        .string()\n                        .describe(\"Participant's email address.\")\n                        .email()\n                        .optional()\n                        .nullable(),\n                      contactId: z\n                        .string()\n                        .describe(\n                          '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                    })\n                  )\n                  .max(50)\n                  .optional(),\n                hasMore: z\n                  .boolean()\n                  .describe(\n                    \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n                  )\n                  .optional()\n                  .nullable(),\n                status: z\n                  .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n                  .describe(\n                    \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n              )\n              .optional(),\n            conferencingDetails: z\n              .object({\n                type: z\n                  .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n                  .describe('Conference type. For example, `Zoom`.')\n                  .optional(),\n                hostUrl: z\n                  .string()\n                  .describe(\n                    'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000)\n                  .optional()\n                  .nullable(),\n                guestUrl: z\n                  .string()\n                  .describe(\n                    'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000)\n                  .optional()\n                  .nullable(),\n                password: z\n                  .string()\n                  .describe(\n                    'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n                  )\n                  .min(1)\n                  .max(100)\n                  .optional()\n                  .nullable(),\n                externalId: z\n                  .string()\n                  .describe(\n                    'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n              )\n              .optional(),\n            notes: z\n              .string()\n              .describe(\n                'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n              )\n              .min(1)\n              .max(5000)\n              .optional()\n              .nullable(),\n            inheritedFields: z\n              .array(\n                z.enum([\n                  'TITLE',\n                  'TIME_ZONE',\n                  'TIME',\n                  'LOCATION',\n                  'RESOURCES',\n                  'CAPACITY',\n                  'PARTICIPANTS',\n                  'CONFERENCING_DETAILS',\n                ])\n              )\n              .optional(),\n            appId: z\n              .string()\n              .describe(\n                'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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            permissions: z\n              .array(\n                z.object({\n                  identity: z\n                    .intersection(\n                      z.object({}),\n                      z.xor([\n                        z.object({ wixUserId: z.never().optional() }),\n                        z.object({\n                          wixUserId: z\n                            .string()\n                            .describe(\n                              'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                        }),\n                      ])\n                    )\n                    .describe(\n                      '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                    )\n                    .optional(),\n                  role: z\n                    .enum(['WRITER', 'COMMENTER'])\n                    .describe(\n                      'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                    )\n                    .optional(),\n                })\n              )\n              .optional(),\n            extendedFields: z\n              .object({\n                namespaces: z\n                  .record(z.string(), z.record(z.string(), z.any()))\n                  .describe(\n                    'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n                  )\n                  .optional(),\n              })\n              .describe(\n                'Extensions enabling applications or users to save custom data related to the event.'\n              )\n              .optional(),\n            revision: z\n              .string()\n              .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n              .describe(\n                'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n              )\n              .optional()\n              .nullable(),\n            _createdDate: z\n              .date()\n              .describe(\n                'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n            _updatedDate: z\n              .date()\n              .describe(\n                'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('The event.')\n          .optional(),\n      })\n    )\n    .optional(),\n  bulkActionMetadata: z\n    .object({\n      totalSuccesses: z\n        .number()\n        .int()\n        .describe('Number of events that were successfully processed.')\n        .optional(),\n      totalFailures: z\n        .number()\n        .int()\n        .describe(\"Number of events that couldn't be processed.\")\n        .optional(),\n    })\n    .describe('Total successes and failures.')\n    .optional(),\n});\nexport const RestoreEventDefaultsRequest = z.object({\n  eventId: z\n    .string()\n    .describe('ID of the event for which to restore default values.')\n    .min(36)\n    .max(250),\n  fields: z\n    .array(\n      z.enum([\n        'TITLE',\n        'TIME_ZONE',\n        'TIME',\n        'LOCATION',\n        'RESOURCES',\n        'CAPACITY',\n        'PARTICIPANTS',\n        'CONFERENCING_DETAILS',\n      ])\n    )\n    .min(1),\n  options: z\n    .object({\n      participantNotification: z\n        .object({\n          notifyParticipants: z\n            .boolean()\n            .describe(\n              'Whether to notify the participants about changes made to the schedule or event.\\n\\nDefault: `false`'\n            )\n            .optional()\n            .nullable(),\n          message: z\n            .string()\n            .describe(\n              'Message to send.\\n\\nMin: 1 character\\nMax: 5000 characters'\n            )\n            .min(1)\n            .max(5000)\n            .optional()\n            .nullable(),\n          metadata: z\n            .record(z.string(), z.string())\n            .describe(\n              'Information about the delivery channels used to send the notification.\\nFor example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\\n\\nMax: 10 keys\\nMax key length: 64 characters\\nMax value length: 1000 characters'\n            )\n            .optional(),\n        })\n        .describe(\n          'Information about whether participants of the updated event are notified and\\nthe message they receive.'\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const RestoreEventDefaultsResponse = z.object({\n  event: z\n    .object({\n      _id: z\n        .string()\n        .describe('Event ID.')\n        .min(36)\n        .max(250)\n        .optional()\n        .nullable(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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      externalScheduleId: z\n        .string()\n        .describe(\n          'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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      scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n      type: z\n        .string()\n        .describe(\n          'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'CANCELLED'])\n        .describe(\n          'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n        )\n        .optional(),\n      title: z\n        .string()\n        .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n        .min(1)\n        .max(200)\n        .optional()\n        .nullable(),\n      start: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Information about when the event starts.')\n        .optional(),\n      end: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n        )\n        .optional(),\n      adjustedStart: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      adjustedEnd: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n        .describe(\n          \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n        )\n        .optional(),\n      recurrenceRule: z\n        .object({\n          frequency: z\n            .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n            .describe(\n              \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n            )\n            .optional(),\n          interval: z\n            .number()\n            .int()\n            .describe(\n              'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n            )\n            .min(1)\n            .max(4)\n            .optional()\n            .nullable(),\n          days: z\n            .array(\n              z.enum([\n                'MONDAY',\n                'TUESDAY',\n                'WEDNESDAY',\n                'THURSDAY',\n                'FRIDAY',\n                'SATURDAY',\n                'SUNDAY',\n              ])\n            )\n            .min(1)\n            .max(1)\n            .optional(),\n          until: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n            )\n            .optional(),\n          adjustedUntil: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n        )\n        .optional(),\n      recurringEventId: z\n        .string()\n        .describe(\n          'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n        )\n        .min(64)\n        .max(64)\n        .optional()\n        .nullable(),\n      transparency: z\n        .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n        .describe(\n          'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n        )\n        .optional(),\n      location: z\n        .object({\n          _id: z\n            .string()\n            .describe(\n              '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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          type: z\n            .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n            .describe(\n              \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n            )\n            .optional(),\n          name: z\n            .string()\n            .describe(\n              \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n          address: z\n            .string()\n            .describe(\n              \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n            )\n            .min(1)\n            .max(300)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .optional(),\n      resources: z\n        .array(\n          z.object({\n            _id: z\n              .string()\n              .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n            type: z.string().describe('Resource type.').optional().nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n              )\n              .optional(),\n            permissionRole: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n              )\n              .optional(),\n          })\n        )\n        .max(100)\n        .optional(),\n      totalCapacity: z\n        .number()\n        .int()\n        .describe(\n          'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .min(0)\n        .optional()\n        .nullable(),\n      remainingCapacity: z\n        .number()\n        .int()\n        .describe('Number of participants who can still be added to the event.')\n        .optional()\n        .nullable(),\n      participants: z\n        .object({\n          total: z\n            .number()\n            .int()\n            .describe('Total number of participants.\\n\\nMin: `0`')\n            .min(0)\n            .optional()\n            .nullable(),\n          list: z\n            .array(\n              z.object({\n                name: z\n                  .string()\n                  .describe(\n                    'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                  )\n                  .min(1)\n                  .max(200)\n                  .optional()\n                  .nullable(),\n                phone: z\n                  .string()\n                  .describe(\"Participant's phone number.\")\n                  .optional()\n                  .nullable(),\n                email: z\n                  .string()\n                  .describe(\"Participant's email address.\")\n                  .email()\n                  .optional()\n                  .nullable(),\n                contactId: z\n                  .string()\n                  .describe(\n                    '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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              })\n            )\n            .max(50)\n            .optional(),\n          hasMore: z\n            .boolean()\n            .describe(\n              \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n            )\n            .optional()\n            .nullable(),\n          status: z\n            .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n            .describe(\n              \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n        )\n        .optional(),\n      conferencingDetails: z\n        .object({\n          type: z\n            .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n            .describe('Conference type. For example, `Zoom`.')\n            .optional(),\n          hostUrl: z\n            .string()\n            .describe(\n              'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          guestUrl: z\n            .string()\n            .describe(\n              'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          password: z\n            .string()\n            .describe(\n              'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n            )\n            .min(1)\n            .max(100)\n            .optional()\n            .nullable(),\n          externalId: z\n            .string()\n            .describe(\n              'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n        )\n        .optional(),\n      notes: z\n        .string()\n        .describe(\n          'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n        )\n        .min(1)\n        .max(5000)\n        .optional()\n        .nullable(),\n      inheritedFields: z\n        .array(\n          z.enum([\n            'TITLE',\n            'TIME_ZONE',\n            'TIME',\n            'LOCATION',\n            'RESOURCES',\n            'CAPACITY',\n            'PARTICIPANTS',\n            'CONFERENCING_DETAILS',\n          ])\n        )\n        .optional(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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      permissions: z\n        .array(\n          z.object({\n            identity: z\n              .intersection(\n                z.object({}),\n                z.xor([\n                  z.object({ wixUserId: z.never().optional() }),\n                  z.object({\n                    wixUserId: z\n                      .string()\n                      .describe(\n                        'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                  }),\n                ])\n              )\n              .describe(\n                '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n              )\n              .optional(),\n            role: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n              )\n              .optional(),\n          })\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Extensions enabling applications or users to save custom data related to the event.'\n        )\n        .optional(),\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n        )\n        .optional()\n        .nullable(),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Updated event.')\n    .optional(),\n});\nexport const SplitRecurringEventRequest = z.object({\n  recurringEventId: z\n    .string()\n    .describe('ID of the `MASTER` event to split.')\n    .min(36)\n    .max(250),\n  splitLocalDate: z\n    .object({ value: z.string().optional() })\n    .describe(\n      \"Local date and time at which the `MASTER` event is split in\\n[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,\\n`2025-03-11T09:00:00`.\\nMust be a future date that's after the `start` date of the next `INSTANCE` or\\n`EXCEPTION` event in the series. Additionally, there must be another\\n`INSTANCE` or `EXCEPTION` event following this next event, as the changes\\nwouldn't affect any event without a subsequent occurrence.\"\n    ),\n  options: z\n    .object({\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const SplitRecurringEventResponse = z.object({\n  updatedRecurringEventEndingBeforeSplit: z\n    .object({\n      _id: z\n        .string()\n        .describe('Event ID.')\n        .min(36)\n        .max(250)\n        .optional()\n        .nullable(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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      externalScheduleId: z\n        .string()\n        .describe(\n          'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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      scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n      type: z\n        .string()\n        .describe(\n          'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'CANCELLED'])\n        .describe(\n          'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n        )\n        .optional(),\n      title: z\n        .string()\n        .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n        .min(1)\n        .max(200)\n        .optional()\n        .nullable(),\n      start: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Information about when the event starts.')\n        .optional(),\n      end: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n        )\n        .optional(),\n      adjustedStart: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      adjustedEnd: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n        .describe(\n          \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n        )\n        .optional(),\n      recurrenceRule: z\n        .object({\n          frequency: z\n            .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n            .describe(\n              \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n            )\n            .optional(),\n          interval: z\n            .number()\n            .int()\n            .describe(\n              'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n            )\n            .min(1)\n            .max(4)\n            .optional()\n            .nullable(),\n          days: z\n            .array(\n              z.enum([\n                'MONDAY',\n                'TUESDAY',\n                'WEDNESDAY',\n                'THURSDAY',\n                'FRIDAY',\n                'SATURDAY',\n                'SUNDAY',\n              ])\n            )\n            .min(1)\n            .max(1)\n            .optional(),\n          until: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n            )\n            .optional(),\n          adjustedUntil: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n        )\n        .optional(),\n      recurringEventId: z\n        .string()\n        .describe(\n          'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n        )\n        .min(64)\n        .max(64)\n        .optional()\n        .nullable(),\n      transparency: z\n        .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n        .describe(\n          'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n        )\n        .optional(),\n      location: z\n        .object({\n          _id: z\n            .string()\n            .describe(\n              '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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          type: z\n            .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n            .describe(\n              \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n            )\n            .optional(),\n          name: z\n            .string()\n            .describe(\n              \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n          address: z\n            .string()\n            .describe(\n              \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n            )\n            .min(1)\n            .max(300)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .optional(),\n      resources: z\n        .array(\n          z.object({\n            _id: z\n              .string()\n              .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n            type: z.string().describe('Resource type.').optional().nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n              )\n              .optional(),\n            permissionRole: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n              )\n              .optional(),\n          })\n        )\n        .max(100)\n        .optional(),\n      totalCapacity: z\n        .number()\n        .int()\n        .describe(\n          'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .min(0)\n        .optional()\n        .nullable(),\n      remainingCapacity: z\n        .number()\n        .int()\n        .describe('Number of participants who can still be added to the event.')\n        .optional()\n        .nullable(),\n      participants: z\n        .object({\n          total: z\n            .number()\n            .int()\n            .describe('Total number of participants.\\n\\nMin: `0`')\n            .min(0)\n            .optional()\n            .nullable(),\n          list: z\n            .array(\n              z.object({\n                name: z\n                  .string()\n                  .describe(\n                    'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                  )\n                  .min(1)\n                  .max(200)\n                  .optional()\n                  .nullable(),\n                phone: z\n                  .string()\n                  .describe(\"Participant's phone number.\")\n                  .optional()\n                  .nullable(),\n                email: z\n                  .string()\n                  .describe(\"Participant's email address.\")\n                  .email()\n                  .optional()\n                  .nullable(),\n                contactId: z\n                  .string()\n                  .describe(\n                    '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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              })\n            )\n            .max(50)\n            .optional(),\n          hasMore: z\n            .boolean()\n            .describe(\n              \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n            )\n            .optional()\n            .nullable(),\n          status: z\n            .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n            .describe(\n              \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n        )\n        .optional(),\n      conferencingDetails: z\n        .object({\n          type: z\n            .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n            .describe('Conference type. For example, `Zoom`.')\n            .optional(),\n          hostUrl: z\n            .string()\n            .describe(\n              'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          guestUrl: z\n            .string()\n            .describe(\n              'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          password: z\n            .string()\n            .describe(\n              'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n            )\n            .min(1)\n            .max(100)\n            .optional()\n            .nullable(),\n          externalId: z\n            .string()\n            .describe(\n              'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n        )\n        .optional(),\n      notes: z\n        .string()\n        .describe(\n          'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n        )\n        .min(1)\n        .max(5000)\n        .optional()\n        .nullable(),\n      inheritedFields: z\n        .array(\n          z.enum([\n            'TITLE',\n            'TIME_ZONE',\n            'TIME',\n            'LOCATION',\n            'RESOURCES',\n            'CAPACITY',\n            'PARTICIPANTS',\n            'CONFERENCING_DETAILS',\n          ])\n        )\n        .optional(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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      permissions: z\n        .array(\n          z.object({\n            identity: z\n              .intersection(\n                z.object({}),\n                z.xor([\n                  z.object({ wixUserId: z.never().optional() }),\n                  z.object({\n                    wixUserId: z\n                      .string()\n                      .describe(\n                        'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                  }),\n                ])\n              )\n              .describe(\n                '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n              )\n              .optional(),\n            role: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n              )\n              .optional(),\n          })\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Extensions enabling applications or users to save custom data related to the event.'\n        )\n        .optional(),\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n        )\n        .optional()\n        .nullable(),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Original `MASTER` event that was shortened.')\n    .optional(),\n  newRecurringEventStartingFromSplit: z\n    .object({\n      _id: z\n        .string()\n        .describe('Event ID.')\n        .min(36)\n        .max(250)\n        .optional()\n        .nullable(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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      externalScheduleId: z\n        .string()\n        .describe(\n          'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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      scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n      type: z\n        .string()\n        .describe(\n          'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'CANCELLED'])\n        .describe(\n          'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n        )\n        .optional(),\n      title: z\n        .string()\n        .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n        .min(1)\n        .max(200)\n        .optional()\n        .nullable(),\n      start: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Information about when the event starts.')\n        .optional(),\n      end: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n        )\n        .optional(),\n      adjustedStart: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      adjustedEnd: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n        .describe(\n          \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n        )\n        .optional(),\n      recurrenceRule: z\n        .object({\n          frequency: z\n            .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n            .describe(\n              \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n            )\n            .optional(),\n          interval: z\n            .number()\n            .int()\n            .describe(\n              'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n            )\n            .min(1)\n            .max(4)\n            .optional()\n            .nullable(),\n          days: z\n            .array(\n              z.enum([\n                'MONDAY',\n                'TUESDAY',\n                'WEDNESDAY',\n                'THURSDAY',\n                'FRIDAY',\n                'SATURDAY',\n                'SUNDAY',\n              ])\n            )\n            .min(1)\n            .max(1)\n            .optional(),\n          until: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n            )\n            .optional(),\n          adjustedUntil: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n        )\n        .optional(),\n      recurringEventId: z\n        .string()\n        .describe(\n          'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n        )\n        .min(64)\n        .max(64)\n        .optional()\n        .nullable(),\n      transparency: z\n        .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n        .describe(\n          'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n        )\n        .optional(),\n      location: z\n        .object({\n          _id: z\n            .string()\n            .describe(\n              '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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          type: z\n            .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n            .describe(\n              \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n            )\n            .optional(),\n          name: z\n            .string()\n            .describe(\n              \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n          address: z\n            .string()\n            .describe(\n              \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n            )\n            .min(1)\n            .max(300)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .optional(),\n      resources: z\n        .array(\n          z.object({\n            _id: z\n              .string()\n              .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n            type: z.string().describe('Resource type.').optional().nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n              )\n              .optional(),\n            permissionRole: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n              )\n              .optional(),\n          })\n        )\n        .max(100)\n        .optional(),\n      totalCapacity: z\n        .number()\n        .int()\n        .describe(\n          'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .min(0)\n        .optional()\n        .nullable(),\n      remainingCapacity: z\n        .number()\n        .int()\n        .describe('Number of participants who can still be added to the event.')\n        .optional()\n        .nullable(),\n      participants: z\n        .object({\n          total: z\n            .number()\n            .int()\n            .describe('Total number of participants.\\n\\nMin: `0`')\n            .min(0)\n            .optional()\n            .nullable(),\n          list: z\n            .array(\n              z.object({\n                name: z\n                  .string()\n                  .describe(\n                    'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                  )\n                  .min(1)\n                  .max(200)\n                  .optional()\n                  .nullable(),\n                phone: z\n                  .string()\n                  .describe(\"Participant's phone number.\")\n                  .optional()\n                  .nullable(),\n                email: z\n                  .string()\n                  .describe(\"Participant's email address.\")\n                  .email()\n                  .optional()\n                  .nullable(),\n                contactId: z\n                  .string()\n                  .describe(\n                    '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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              })\n            )\n            .max(50)\n            .optional(),\n          hasMore: z\n            .boolean()\n            .describe(\n              \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n            )\n            .optional()\n            .nullable(),\n          status: z\n            .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n            .describe(\n              \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n        )\n        .optional(),\n      conferencingDetails: z\n        .object({\n          type: z\n            .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n            .describe('Conference type. For example, `Zoom`.')\n            .optional(),\n          hostUrl: z\n            .string()\n            .describe(\n              'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          guestUrl: z\n            .string()\n            .describe(\n              'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          password: z\n            .string()\n            .describe(\n              'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n            )\n            .min(1)\n            .max(100)\n            .optional()\n            .nullable(),\n          externalId: z\n            .string()\n            .describe(\n              'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n        )\n        .optional(),\n      notes: z\n        .string()\n        .describe(\n          'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n        )\n        .min(1)\n        .max(5000)\n        .optional()\n        .nullable(),\n      inheritedFields: z\n        .array(\n          z.enum([\n            'TITLE',\n            'TIME_ZONE',\n            'TIME',\n            'LOCATION',\n            'RESOURCES',\n            'CAPACITY',\n            'PARTICIPANTS',\n            'CONFERENCING_DETAILS',\n          ])\n        )\n        .optional(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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      permissions: z\n        .array(\n          z.object({\n            identity: z\n              .intersection(\n                z.object({}),\n                z.xor([\n                  z.object({ wixUserId: z.never().optional() }),\n                  z.object({\n                    wixUserId: z\n                      .string()\n                      .describe(\n                        'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                  }),\n                ])\n              )\n              .describe(\n                '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n              )\n              .optional(),\n            role: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n              )\n              .optional(),\n          })\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Extensions enabling applications or users to save custom data related to the event.'\n        )\n        .optional(),\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n        )\n        .optional()\n        .nullable(),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'New `MASTER` event starting with the first event after the split date.'\n    )\n    .optional(),\n});\nexport const CancelEventRequest = z.object({\n  eventId: z.string().describe('ID of the event to cancel.').min(36).max(250),\n  options: z\n    .object({\n      participantNotification: z\n        .object({\n          notifyParticipants: z\n            .boolean()\n            .describe(\n              'Whether to notify the participants about changes made to the schedule or event.\\n\\nDefault: `false`'\n            )\n            .optional()\n            .nullable(),\n          message: z\n            .string()\n            .describe(\n              'Message to send.\\n\\nMin: 1 character\\nMax: 5000 characters'\n            )\n            .min(1)\n            .max(5000)\n            .optional()\n            .nullable(),\n          metadata: z\n            .record(z.string(), z.string())\n            .describe(\n              'Information about the delivery channels used to send the notification.\\nFor example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\\n\\nMax: 10 keys\\nMax key length: 64 characters\\nMax value length: 1000 characters'\n            )\n            .optional(),\n        })\n        .describe(\n          'Information about whether participants of the canceled event are notified and\\nthe message they receive.'\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const CancelEventResponse = z.object({\n  event: z\n    .object({\n      _id: z\n        .string()\n        .describe('Event ID.')\n        .min(36)\n        .max(250)\n        .optional()\n        .nullable(),\n      scheduleId: z\n        .string()\n        .describe(\n          \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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      externalScheduleId: z\n        .string()\n        .describe(\n          'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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      scheduleName: z.string().describe('Schedule name.').optional().nullable(),\n      type: z\n        .string()\n        .describe(\n          'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n        )\n        .optional()\n        .nullable(),\n      status: z\n        .enum(['CONFIRMED', 'CANCELLED'])\n        .describe(\n          'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n        )\n        .optional(),\n      title: z\n        .string()\n        .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n        .min(1)\n        .max(200)\n        .optional()\n        .nullable(),\n      start: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Information about when the event starts.')\n        .optional(),\n      end: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n        )\n        .optional(),\n      adjustedStart: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      adjustedEnd: z\n        .object({\n          localDate: z\n            .string()\n            .describe(\n              'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n            )\n            .optional()\n            .nullable(),\n          timeZone: z\n            .string()\n            .describe(\n              'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n            )\n            .optional()\n            .nullable(),\n          utcDate: z\n            .date()\n            .describe(\n              'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n        )\n        .optional()\n        .nullable(),\n      recurrenceType: z\n        .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n        .describe(\n          \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n        )\n        .optional(),\n      recurrenceRule: z\n        .object({\n          frequency: z\n            .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n            .describe(\n              \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n            )\n            .optional(),\n          interval: z\n            .number()\n            .int()\n            .describe(\n              'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n            )\n            .min(1)\n            .max(4)\n            .optional()\n            .nullable(),\n          days: z\n            .array(\n              z.enum([\n                'MONDAY',\n                'TUESDAY',\n                'WEDNESDAY',\n                'THURSDAY',\n                'FRIDAY',\n                'SATURDAY',\n                'SUNDAY',\n              ])\n            )\n            .min(1)\n            .max(1)\n            .optional(),\n          until: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n            )\n            .optional(),\n          adjustedUntil: z\n            .object({\n              localDate: z\n                .string()\n                .describe(\n                  'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                )\n                .optional()\n                .nullable(),\n              timeZone: z\n                .string()\n                .describe(\n                  'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                )\n                .optional()\n                .nullable(),\n              utcDate: z\n                .date()\n                .describe(\n                  'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n        )\n        .optional(),\n      recurringEventId: z\n        .string()\n        .describe(\n          'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n        )\n        .min(64)\n        .max(64)\n        .optional()\n        .nullable(),\n      transparency: z\n        .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n        .describe(\n          'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n        )\n        .optional(),\n      location: z\n        .object({\n          _id: z\n            .string()\n            .describe(\n              '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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          type: z\n            .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n            .describe(\n              \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n            )\n            .optional(),\n          name: z\n            .string()\n            .describe(\n              \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n          address: z\n            .string()\n            .describe(\n              \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n            )\n            .min(1)\n            .max(300)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .optional(),\n      resources: z\n        .array(\n          z.object({\n            _id: z\n              .string()\n              .describe('Resource ID.')\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.string().describe('Resource name.').optional().nullable(),\n            type: z.string().describe('Resource type.').optional().nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n              )\n              .optional(),\n            permissionRole: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n              )\n              .optional(),\n          })\n        )\n        .max(100)\n        .optional(),\n      totalCapacity: z\n        .number()\n        .int()\n        .describe(\n          'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n        )\n        .min(0)\n        .optional()\n        .nullable(),\n      remainingCapacity: z\n        .number()\n        .int()\n        .describe('Number of participants who can still be added to the event.')\n        .optional()\n        .nullable(),\n      participants: z\n        .object({\n          total: z\n            .number()\n            .int()\n            .describe('Total number of participants.\\n\\nMin: `0`')\n            .min(0)\n            .optional()\n            .nullable(),\n          list: z\n            .array(\n              z.object({\n                name: z\n                  .string()\n                  .describe(\n                    'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                  )\n                  .min(1)\n                  .max(200)\n                  .optional()\n                  .nullable(),\n                phone: z\n                  .string()\n                  .describe(\"Participant's phone number.\")\n                  .optional()\n                  .nullable(),\n                email: z\n                  .string()\n                  .describe(\"Participant's email address.\")\n                  .email()\n                  .optional()\n                  .nullable(),\n                contactId: z\n                  .string()\n                  .describe(\n                    '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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              })\n            )\n            .max(50)\n            .optional(),\n          hasMore: z\n            .boolean()\n            .describe(\n              \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n            )\n            .optional()\n            .nullable(),\n          status: z\n            .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n            .describe(\n              \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n            )\n            .optional(),\n        })\n        .describe(\n          \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n        )\n        .optional(),\n      conferencingDetails: z\n        .object({\n          type: z\n            .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n            .describe('Conference type. For example, `Zoom`.')\n            .optional(),\n          hostUrl: z\n            .string()\n            .describe(\n              'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          guestUrl: z\n            .string()\n            .describe(\n              'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n            )\n            .min(1)\n            .max(2000)\n            .optional()\n            .nullable(),\n          password: z\n            .string()\n            .describe(\n              'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n            )\n            .min(1)\n            .max(100)\n            .optional()\n            .nullable(),\n          externalId: z\n            .string()\n            .describe(\n              'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n            )\n            .min(1)\n            .max(150)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n        )\n        .optional(),\n      notes: z\n        .string()\n        .describe(\n          'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n        )\n        .min(1)\n        .max(5000)\n        .optional()\n        .nullable(),\n      inheritedFields: z\n        .array(\n          z.enum([\n            'TITLE',\n            'TIME_ZONE',\n            'TIME',\n            'LOCATION',\n            'RESOURCES',\n            'CAPACITY',\n            'PARTICIPANTS',\n            'CONFERENCING_DETAILS',\n          ])\n        )\n        .optional(),\n      appId: z\n        .string()\n        .describe(\n          'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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      permissions: z\n        .array(\n          z.object({\n            identity: z\n              .intersection(\n                z.object({}),\n                z.xor([\n                  z.object({ wixUserId: z.never().optional() }),\n                  z.object({\n                    wixUserId: z\n                      .string()\n                      .describe(\n                        'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                  }),\n                ])\n              )\n              .describe(\n                '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n              )\n              .optional(),\n            role: z\n              .enum(['WRITER', 'COMMENTER'])\n              .describe(\n                'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n              )\n              .optional(),\n          })\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Extensions enabling applications or users to save custom data related to the event.'\n        )\n        .optional(),\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n        )\n        .optional()\n        .nullable(),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Canceled event.')\n    .optional(),\n});\nexport const BulkCancelEventRequest = z.object({\n  eventIds: z.array(z.string()).min(1).max(50),\n  options: z\n    .object({\n      returnEntity: z\n        .boolean()\n        .describe('Whether to return the canceled events.\\n\\nDefault: `false`')\n        .optional()\n        .nullable(),\n      participantNotification: z\n        .object({\n          notifyParticipants: z\n            .boolean()\n            .describe(\n              'Whether to notify the participants about changes made to the schedule or event.\\n\\nDefault: `false`'\n            )\n            .optional()\n            .nullable(),\n          message: z\n            .string()\n            .describe(\n              'Message to send.\\n\\nMin: 1 character\\nMax: 5000 characters'\n            )\n            .min(1)\n            .max(5000)\n            .optional()\n            .nullable(),\n          metadata: z\n            .record(z.string(), z.string())\n            .describe(\n              'Information about the delivery channels used to send the notification.\\nFor example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\\n\\nMax: 10 keys\\nMax key length: 64 characters\\nMax value length: 1000 characters'\n            )\n            .optional(),\n        })\n        .describe(\n          'Information about whether participants of the canceled events are notified and\\nthe message they receive.'\n        )\n        .optional(),\n      timeZone: z\n        .string()\n        .describe(\n          'Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)\\nfor calculating `adjustedStart` and `adjustedEnd`. For example,\\n`America/New_York` or `UTC`.\\n\\nDefault: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).'\n        )\n        .optional()\n        .nullable(),\n    })\n    .optional(),\n});\nexport const BulkCancelEventResponse = z.object({\n  results: z\n    .array(\n      z.object({\n        itemMetadata: z\n          .object({\n            _id: z\n              .string()\n              .describe(\n                \"Event ID.\\nShould always be available, unless it's impossible (for example, when failing to create an event).\"\n              )\n              .optional()\n              .nullable(),\n            originalIndex: z\n              .number()\n              .int()\n              .describe(\n                'Index of the item within the request array, for correlation between request and response items.'\n              )\n              .optional(),\n            success: z\n              .boolean()\n              .describe(\n                'Whether the requested action was successful for this event.\\nWhen `false`, the `error` field is populated.'\n              )\n              .optional(),\n            error: z\n              .object({\n                code: z.string().describe('Error code.').optional(),\n                description: z\n                  .string()\n                  .describe('Description of the error.')\n                  .optional(),\n                data: z\n                  .record(z.string(), z.any())\n                  .describe('Data related to the error.')\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Details about the error in case of failure.')\n              .optional(),\n          })\n          .describe('Whether the requested action was successful.')\n          .optional(),\n        item: z\n          .object({\n            _id: z\n              .string()\n              .describe('Event ID.')\n              .min(36)\n              .max(250)\n              .optional()\n              .nullable(),\n            scheduleId: z\n              .string()\n              .describe(\n                \"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nthe event belongs to.\\nAfter creating an event, you can't assign it to a different schedule.\"\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            externalScheduleId: z\n              .string()\n              .describe(\n                'ID of the external schedule the event belongs to.\\n\\nFor example, if the event belongs to a Bookings staff member, identical to\\nthe ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\\nIf the schedule belongs to a Bookings service,\\nidentical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).'\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            scheduleName: z\n              .string()\n              .describe('Schedule name.')\n              .optional()\n              .nullable(),\n            type: z\n              .string()\n              .describe(\n                'Event type. You can set the event type but you can\\'t update it.\\n\\nSupported values:\\n+ `DEFAULT`: A standard event that\\'s not further specified.\\n+ `WORKING_HOURS`: The event adds working hours to a schedule.\\nBy default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).\\nTo retrieve working hour events, specify `\"type\": \"WORKING_HOURS\"` in the query filter.\\nAdditional supported values, if Wix Bookings is installed:\\n+ `APPOINTMENT`: Bookings appointment event.\\n+ `CLASS`: Bookings class event.\\n+ `COURSE`: Bookings course event.'\n              )\n              .optional()\n              .nullable(),\n            status: z\n              .enum(['CONFIRMED', 'CANCELLED'])\n              .describe(\n                'Event status.\\n\\nSupported values:\\n+ `CONFIRMED`: Event is scheduled to happen or has happened.\\n+ `CANCELLED`: Event has been canceled.\\n\\nDefault: `CONFIRMED`'\n              )\n              .optional(),\n            title: z\n              .string()\n              .describe('Event title.\\n\\nMin: 1 character\\nMax: 200 characters')\n              .min(1)\n              .max(200)\n              .optional()\n              .nullable(),\n            start: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe('Information about when the event starts.')\n              .optional(),\n            end: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends.\\n\\nMaximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).\"\n              )\n              .optional(),\n            adjustedStart: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event starts adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            adjustedEnd: z\n              .object({\n                localDate: z\n                  .string()\n                  .describe(\n                    'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                  )\n                  .optional()\n                  .nullable(),\n                timeZone: z\n                  .string()\n                  .describe(\n                    'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                  )\n                  .optional()\n                  .nullable(),\n                utcDate: z\n                  .date()\n                  .describe(\n                    'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                  )\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about when the event ends adjusted to the `timeZone` of the\\nbusiness [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n              )\n              .optional(),\n            timeZone: z\n              .string()\n              .describe(\n                'Time zone the event is associated with in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nOnly regional time zones and UTC are supported.\\nFor example, `America/New_York` or `UTC`.\\n\\nDefault: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).'\n              )\n              .optional()\n              .nullable(),\n            recurrenceType: z\n              .enum(['NONE', 'MASTER', 'INSTANCE', 'EXCEPTION'])\n              .describe(\n                \"Information about whether the event is a single occurrence or part of a\\nrecurring series.\\n\\nSupported values:\\n+ `NONE`: The event occurs only once and doesn't repeat.\\n+ `MASTER`: Defines the recurrence pattern for a series of recurring events.\\n+ `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{\\\"recurrenceType\\\": \\\"INSTANCE\\\"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.\\n+ `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.\\n\\nDefault: `NONE`\"\n              )\n              .optional(),\n            recurrenceRule: z\n              .object({\n                frequency: z\n                  .enum(['UNKNOWN_FREQUENCY', 'WEEKLY'])\n                  .describe(\n                    \"Frequency how often the event repeats. Works together with `interval`.\\n\\nSupported values:\\n+ `WEEKLY`: The event's recurrence pattern is based on weeks.\"\n                  )\n                  .optional(),\n                interval: z\n                  .number()\n                  .int()\n                  .describe(\n                    'Interval how often the event repeats. Works together with `frequency`.\\nFor example, `frequency` set to `WEEKLY`  and `interval` set to `2` means\\nthe event repeats every 2 weeks.\\n\\nMin: `1`\\nMax: `4`\\nDefault: `1`'\n                  )\n                  .min(1)\n                  .max(4)\n                  .optional()\n                  .nullable(),\n                days: z\n                  .array(\n                    z.enum([\n                      'MONDAY',\n                      'TUESDAY',\n                      'WEDNESDAY',\n                      'THURSDAY',\n                      'FRIDAY',\n                      'SATURDAY',\n                      'SUNDAY',\n                    ])\n                  )\n                  .min(1)\n                  .max(1)\n                  .optional(),\n                until: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      )\n                      .optional()\n                      .nullable(),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    'Date until when the event repeats.\\nIf not specified, the event repeats forever.'\n                  )\n                  .optional(),\n                adjustedUntil: z\n                  .object({\n                    localDate: z\n                      .string()\n                      .describe(\n                        'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n                      )\n                      .optional()\n                      .nullable(),\n                    timeZone: z\n                      .string()\n                      .describe(\n                        'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n                      )\n                      .optional()\n                      .nullable(),\n                    utcDate: z\n                      .date()\n                      .describe(\n                        'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n                      )\n                      .optional()\n                      .nullable(),\n                  })\n                  .describe(\n                    \"Date until when the event repeats\\nadjusted to the `timeZone` of the business\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor a different `timeZone` you provide in the call's request.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Recurrence pattern for a series of events. This field is required when\\ncreating a `MASTER` event and isn't available for non-recurring events.\\nYou can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.\\n\\nFor example, an event that repeats every second Monday until January 7, 2026,\\nat 8:00 AM has the following `recurrenceRule`:\\n- `frequency = WEEKLY`\\n- `interval = 2`\\n- `days = [MONDAY]`\\n- `until = 20260107T08:00:00Z`\"\n              )\n              .optional(),\n            recurringEventId: z\n              .string()\n              .describe(\n                'ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`\\nand `EXCEPTION` events.'\n              )\n              .min(64)\n              .max(64)\n              .optional()\n              .nullable(),\n            transparency: z\n              .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n              .describe(\n                'Specifies whether the event blocks time in the schedule it belongs to.\\n\\nSupported values:\\n+ `OPAQUE`:  The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`'\n              )\n              .optional(),\n            location: z\n              .object({\n                _id: z\n                  .string()\n                  .describe(\n                    '[Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\nID. Available only for `BUSINESS` locations.'\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                type: z\n                  .enum(['BUSINESS', 'CUSTOMER', 'CUSTOM'])\n                  .describe(\n                    \"Location type.\\n\\nSupported values:\\n+ `BUSINESS`: The event is held at a business location.\\n+ `CUSTOMER`: The event is held at the customer's location, such as their home or office.\\n+ `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\"\n                  )\n                  .optional(),\n                name: z\n                  .string()\n                  .describe(\n                    \"Location name. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)\\n`name`.\\n\\nMin: 1 character\\nMax: 150 characters\"\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n                address: z\n                  .string()\n                  .describe(\n                    \"Location address. For `BUSINESS` locations, it's identical to the\\n[location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\\n`formattedAddress`.\"\n                  )\n                  .min(1)\n                  .max(300)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Event location.\\n\\nDefault: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .optional(),\n            resources: z\n              .array(\n                z.object({\n                  _id: z\n                    .string()\n                    .describe('Resource ID.')\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('Resource name.')\n                    .optional()\n                    .nullable(),\n                  type: z\n                    .string()\n                    .describe('Resource type.')\n                    .optional()\n                    .nullable(),\n                  transparency: z\n                    .enum(['UNKNOWN_TRANSPARENCY', 'OPAQUE', 'TRANSPARENT'])\n                    .describe(\n                      \"Specifies whether the event blocks time in the resource's schedule.\\n\\nSupported values:\\n+ `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.\\n+ `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.\\n\\nDefault: `OPAQUE`.\"\n                    )\n                    .optional(),\n                  permissionRole: z\n                    .enum(['WRITER', 'COMMENTER'])\n                    .describe(\n                      'Permission role associated with the resource. Refer to the\\n[permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)\\nfor more information.'\n                    )\n                    .optional(),\n                })\n              )\n              .max(100)\n              .optional(),\n            totalCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Maximum number of participants who can participate in the event.\\n\\nDefault: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to'\n              )\n              .min(0)\n              .optional()\n              .nullable(),\n            remainingCapacity: z\n              .number()\n              .int()\n              .describe(\n                'Number of participants who can still be added to the event.'\n              )\n              .optional()\n              .nullable(),\n            participants: z\n              .object({\n                total: z\n                  .number()\n                  .int()\n                  .describe('Total number of participants.\\n\\nMin: `0`')\n                  .min(0)\n                  .optional()\n                  .nullable(),\n                list: z\n                  .array(\n                    z.object({\n                      name: z\n                        .string()\n                        .describe(\n                          'Participant name.\\n\\nMin: 1 character\\nMax: 200 characters'\n                        )\n                        .min(1)\n                        .max(200)\n                        .optional()\n                        .nullable(),\n                      phone: z\n                        .string()\n                        .describe(\"Participant's phone number.\")\n                        .optional()\n                        .nullable(),\n                      email: z\n                        .string()\n                        .describe(\"Participant's email address.\")\n                        .email()\n                        .optional()\n                        .nullable(),\n                      contactId: z\n                        .string()\n                        .describe(\n                          '[Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)\\nID of the participant.'\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                    })\n                  )\n                  .max(50)\n                  .optional(),\n                hasMore: z\n                  .boolean()\n                  .describe(\n                    \"Whether there are more participants for the event than listed.\\n\\n+ `false`: The list includes all participants.\\n+ `true`: The list doesn't include all participants.\"\n                  )\n                  .optional()\n                  .nullable(),\n                status: z\n                  .enum(['CONFIRMED', 'PENDING_CONFIRMATION'])\n                  .describe(\n                    \"Participant's status.\\n\\nSupported values:\\n+ `CONFIRMED`: All participants are confirmed.\\n+ `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.\"\n                  )\n                  .optional(),\n              })\n              .describe(\n                \"Information about the event's participants.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\"\n              )\n              .optional(),\n            conferencingDetails: z\n              .object({\n                type: z\n                  .enum(['UNKNOWN_TYPE', 'ZOOM', 'CUSTOM'])\n                  .describe('Conference type. For example, `Zoom`.')\n                  .optional(),\n                hostUrl: z\n                  .string()\n                  .describe(\n                    'URL used by the host to start the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000)\n                  .optional()\n                  .nullable(),\n                guestUrl: z\n                  .string()\n                  .describe(\n                    'URL used by a guest to join the conference.\\n\\nMin: 1 character\\nMax: 2000 characters'\n                  )\n                  .min(1)\n                  .max(2000)\n                  .optional()\n                  .nullable(),\n                password: z\n                  .string()\n                  .describe(\n                    'Conference password.\\n\\nMin: 1 character\\nMax: 100 characters'\n                  )\n                  .min(1)\n                  .max(100)\n                  .optional()\n                  .nullable(),\n                externalId: z\n                  .string()\n                  .describe(\n                    'Conference ID in an external system.\\n\\nMin: 1 character\\nMax: 150 characters'\n                  )\n                  .min(1)\n                  .max(150)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                \"Information about the event's online conferencing.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nDefault: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to\"\n              )\n              .optional(),\n            notes: z\n              .string()\n              .describe(\n                'Additional notes about the event.\\nReturned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).\\n\\nMin: 1 character\\nMax: 5000 characters'\n              )\n              .min(1)\n              .max(5000)\n              .optional()\n              .nullable(),\n            inheritedFields: z\n              .array(\n                z.enum([\n                  'TITLE',\n                  'TIME_ZONE',\n                  'TIME',\n                  'LOCATION',\n                  'RESOURCES',\n                  'CAPACITY',\n                  'PARTICIPANTS',\n                  'CONFERENCING_DETAILS',\n                ])\n              )\n              .optional(),\n            appId: z\n              .string()\n              .describe(\n                'ID of the app that owns the event. Identical to `appId` of the\\n[schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the event belongs.\\nFor events from Wix apps, the following values apply:\\n- Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n- Wix Services: `\"cc552162-24a4-45e0-9695-230c4931ef40\"`\\n- Wix Meetings: `\"6646a75c-2027-4f49-976c-58f3d713ed0f\"`\\n[Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).'\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            permissions: z\n              .array(\n                z.object({\n                  identity: z\n                    .intersection(\n                      z.object({}),\n                      z.xor([\n                        z.object({ wixUserId: z.never().optional() }),\n                        z.object({\n                          wixUserId: z\n                            .string()\n                            .describe(\n                              'ID of a Wix user. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\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                        }),\n                      ])\n                    )\n                    .describe(\n                      '[Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\\ngranted the permission.'\n                    )\n                    .optional(),\n                  role: z\n                    .enum(['WRITER', 'COMMENTER'])\n                    .describe(\n                      'Permission role.\\n\\nSupported values:\\n+ `WRITER`: Full read and write access.\\n+ `COMMENTER`: Full read access, write access limited to `event.notes`.'\n                    )\n                    .optional(),\n                })\n              )\n              .optional(),\n            extendedFields: z\n              .object({\n                namespaces: z\n                  .record(z.string(), z.record(z.string(), z.any()))\n                  .describe(\n                    'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n                  )\n                  .optional(),\n              })\n              .describe(\n                'Extensions enabling applications or users to save custom data related to the event.'\n              )\n              .optional(),\n            revision: z\n              .string()\n              .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n              .describe(\n                'Revision number, which increments each time the event is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the event.\\nIgnored when creating an event.'\n              )\n              .optional()\n              .nullable(),\n            _createdDate: z\n              .date()\n              .describe(\n                'Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n            _updatedDate: z\n              .date()\n              .describe(\n                'Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.'\n              )\n              .optional()\n              .nullable(),\n          })\n          .describe('The event.')\n          .optional(),\n      })\n    )\n    .optional(),\n  bulkActionMetadata: z\n    .object({\n      totalSuccesses: z\n        .number()\n        .int()\n        .describe('Number of events that were successfully processed.')\n        .optional(),\n      totalFailures: z\n        .number()\n        .int()\n        .describe(\"Number of events that couldn't be processed.\")\n        .optional(),\n    })\n    .describe('Total successes and failures.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,+BAAiC,SAAO;AAAA,EACnD,WACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,eACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,aACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,SAAO;AAAA,MACN,OACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA,SAAS,kDAAkD,EAC3D,SAAS;AAAA,IACZ,MACG,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