@wix/auto_sdk_events_forms 1.0.110 → 1.0.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +5 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +13 -4
  5. package/build/cjs/index.typings.js +5 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +2 -2
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +787 -787
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.d.mts +2 -2
  12. package/build/es/index.mjs +5 -2
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +13 -4
  15. package/build/es/index.typings.mjs +5 -2
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +2 -2
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +787 -787
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.d.ts +2 -2
  22. package/build/internal/cjs/index.typings.d.ts +13 -4
  23. package/build/internal/cjs/meta.d.ts +2 -2
  24. package/build/internal/es/index.d.mts +2 -2
  25. package/build/internal/es/index.typings.d.mts +13 -4
  26. package/build/internal/es/meta.d.mts +2 -2
  27. package/package.json +2 -2
  28. package/build/internal/cjs/index.js +0 -1954
  29. package/build/internal/cjs/index.js.map +0 -1
  30. package/build/internal/cjs/index.typings.js +0 -1676
  31. package/build/internal/cjs/index.typings.js.map +0 -1
  32. package/build/internal/cjs/meta.js +0 -1584
  33. package/build/internal/cjs/meta.js.map +0 -1
  34. package/build/internal/cjs/schemas.js +0 -1452
  35. package/build/internal/cjs/schemas.js.map +0 -1
  36. package/build/internal/es/index.mjs +0 -1842
  37. package/build/internal/es/index.mjs.map +0 -1
  38. package/build/internal/es/index.typings.mjs +0 -1565
  39. package/build/internal/es/index.typings.mjs.map +0 -1
  40. package/build/internal/es/meta.mjs +0 -1470
  41. package/build/internal/es/meta.mjs.map +0 -1
  42. package/build/internal/es/schemas.mjs +0 -1402
  43. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,15 +1,15 @@
1
1
  // src/events-v1-form-forms.schemas.ts
2
2
  import * as z from "zod";
3
3
  var GetFormRequest = /* @__PURE__ */ z.object({
4
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
4
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
5
5
  /^[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}$/,
6
6
  "Must be a valid GUID"
7
7
  )
8
8
  });
9
9
  var GetFormResponse = /* @__PURE__ */ z.object({
10
- controls: z.array(
11
- z.object({
12
- type: z.enum([
10
+ controls: /* @__PURE__ */ z.array(
11
+ /* @__PURE__ */ z.object({
12
+ type: /* @__PURE__ */ z.enum([
13
13
  "INPUT",
14
14
  "TEXTAREA",
15
15
  "DROPDOWN",
@@ -21,47 +21,47 @@ var GetFormResponse = /* @__PURE__ */ z.object({
21
21
  "ADDRESS_FULL",
22
22
  "DATE"
23
23
  ]).describe("Field control type.").optional(),
24
- system: z.boolean().describe(
24
+ system: /* @__PURE__ */ z.boolean().describe(
25
25
  "Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
26
26
  ).optional(),
27
- name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
28
- inputs: z.array(
29
- z.object({
30
- name: z.string().describe("Field name.").optional(),
31
- array: z.boolean().describe(
27
+ name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
28
+ inputs: /* @__PURE__ */ z.array(
29
+ /* @__PURE__ */ z.object({
30
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
31
+ array: /* @__PURE__ */ z.boolean().describe(
32
32
  "*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
33
33
  ).optional(),
34
- label: z.string().describe("Main field label.").optional(),
35
- additionalLabels: z.record(z.string(), z.string()).describe(
34
+ label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
35
+ additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
36
36
  "Additional labels for multi-valued fields such as address."
37
37
  ).optional(),
38
- options: z.array(z.string()).optional(),
39
- mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
40
- maxLength: z.number().int().describe(
38
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
39
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
40
+ maxLength: /* @__PURE__ */ z.number().int().describe(
41
41
  "Maximum number of accepted characters (relevant for text fields)."
42
42
  ).optional(),
43
- type: z.enum(["TEXT", "NUMBER", "TEXT_ARRAY", "DATE_TIME", "ADDRESS"]).describe(
43
+ type: /* @__PURE__ */ z.enum(["TEXT", "NUMBER", "TEXT_ARRAY", "DATE_TIME", "ADDRESS"]).describe(
44
44
  "Type which determines field format.\nUsed to validate submitted response."
45
45
  ).optional(),
46
- maxSize: z.number().int().describe(
46
+ maxSize: /* @__PURE__ */ z.number().int().describe(
47
47
  "The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
48
48
  ).optional().nullable(),
49
- defaultOptionSelection: z.intersection(
50
- z.object({}),
51
- z.xor([
52
- z.object({
53
- optionIndex: z.never().optional(),
54
- placeholderText: z.never().optional()
49
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
50
+ /* @__PURE__ */ z.object({}),
51
+ /* @__PURE__ */ z.xor([
52
+ /* @__PURE__ */ z.object({
53
+ optionIndex: /* @__PURE__ */ z.never().optional(),
54
+ placeholderText: /* @__PURE__ */ z.never().optional()
55
55
  }),
56
- z.object({
57
- placeholderText: z.never().optional(),
58
- optionIndex: z.number().int().describe(
56
+ /* @__PURE__ */ z.object({
57
+ placeholderText: /* @__PURE__ */ z.never().optional(),
58
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
59
59
  "0-based index from predefined `controls.inputs.options` which is initial selection."
60
60
  ).min(0).max(199)
61
61
  }),
62
- z.object({
63
- optionIndex: z.never().optional(),
64
- placeholderText: z.string().describe(
62
+ /* @__PURE__ */ z.object({
63
+ optionIndex: /* @__PURE__ */ z.never().optional(),
64
+ placeholderText: /* @__PURE__ */ z.string().describe(
65
65
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
66
66
  ).max(200)
67
67
  })
@@ -69,186 +69,186 @@ var GetFormResponse = /* @__PURE__ */ z.object({
69
69
  ).describe(
70
70
  "Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
71
71
  ).optional(),
72
- labels: z.array(
73
- z.object({
74
- name: z.string().describe("Field name.").optional(),
75
- label: z.string().describe("Field label.").optional()
72
+ labels: /* @__PURE__ */ z.array(
73
+ /* @__PURE__ */ z.object({
74
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
75
+ label: /* @__PURE__ */ z.string().describe("Field label.").optional()
76
76
  })
77
77
  ).optional()
78
78
  })
79
79
  ).optional(),
80
- label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
81
- orderIndex: z.number().int().describe(
80
+ label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
81
+ orderIndex: /* @__PURE__ */ z.number().int().describe(
82
82
  "Field controls are sorted by this value in ascending order."
83
83
  ).optional(),
84
- _id: z.string().describe("Unique control ID.").optional(),
85
- deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
84
+ _id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
85
+ deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
86
86
  })
87
87
  ).optional(),
88
- messages: z.object({
89
- rsvp: z.object({
90
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
91
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
92
- positiveMessages: z.object({
93
- title: z.string().describe("Main form title for positive response.").optional(),
94
- confirmation: z.object({
95
- title: z.string().describe("Confirmation message title.").optional(),
96
- message: z.string().describe("Confirmation message text.").optional(),
97
- addToCalendarActionLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
98
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
88
+ messages: /* @__PURE__ */ z.object({
89
+ rsvp: /* @__PURE__ */ z.object({
90
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
91
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
92
+ positiveMessages: /* @__PURE__ */ z.object({
93
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
94
+ confirmation: /* @__PURE__ */ z.object({
95
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
96
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
97
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
98
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
99
99
  }).describe("Confirmation messages shown after registration.").optional()
100
100
  }).describe(
101
101
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
102
102
  ).optional(),
103
- waitlistMessages: z.object({
104
- title: z.string().describe("Main form title for positive response.").optional(),
105
- confirmation: z.object({
106
- title: z.string().describe("Confirmation message title.").optional(),
107
- message: z.string().describe("Confirmation message text.").optional(),
108
- addToCalendarActionLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
109
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
103
+ waitlistMessages: /* @__PURE__ */ z.object({
104
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
105
+ confirmation: /* @__PURE__ */ z.object({
106
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
107
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
108
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
109
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
110
110
  }).describe("Confirmation messages shown after registration.").optional()
111
111
  }).describe(
112
112
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
113
113
  ).optional(),
114
- negativeMessages: z.object({
115
- title: z.string().describe("Main form title for negative response.").optional(),
116
- confirmation: z.object({
117
- title: z.string().describe("Confirmation message title.").optional(),
118
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
114
+ negativeMessages: /* @__PURE__ */ z.object({
115
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
116
+ confirmation: /* @__PURE__ */ z.object({
117
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
118
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
119
119
  }).describe("Confirmation messages shown after registration.").optional()
120
120
  }).describe(
121
121
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
122
122
  ).optional(),
123
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
123
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
124
124
  }).describe(
125
125
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
126
126
  ).optional(),
127
- checkout: z.object({
128
- title: z.string().describe("Main form title for response.").optional(),
129
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
130
- confirmation: z.object({
131
- title: z.string().describe("Confirmation message title.").optional(),
132
- message: z.string().describe("Confirmation message text.").optional(),
133
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
134
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
135
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
127
+ checkout: /* @__PURE__ */ z.object({
128
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
129
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
130
+ confirmation: /* @__PURE__ */ z.object({
131
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
132
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
133
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
134
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
135
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
136
136
  }).describe("Confirmation messages shown after checkout.").optional()
137
137
  }).describe("Checkout form messages.").optional(),
138
- registrationClosed: z.object({
139
- message: z.string().describe("Message shown when event registration is closed.").optional(),
140
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
138
+ registrationClosed: /* @__PURE__ */ z.object({
139
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
140
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
141
141
  }).describe("Messages shown when event registration is closed.").optional(),
142
- ticketsUnavailable: z.object({
143
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
144
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
142
+ ticketsUnavailable: /* @__PURE__ */ z.object({
143
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
144
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
145
145
  }).describe("Messages shown when event tickets are unavailable.").optional()
146
146
  }).describe(
147
147
  'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
148
148
  ).optional()
149
149
  });
150
150
  var AddControlRequest = /* @__PURE__ */ z.object({
151
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
151
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
152
152
  /^[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}$/,
153
153
  "Must be a valid GUID"
154
154
  ),
155
- options: z.intersection(
156
- z.object({}),
157
- z.xor([
158
- z.object({
159
- address: z.never().optional(),
160
- date: z.never().optional(),
161
- additionalGuests: z.never().optional(),
162
- dropdown: z.never().optional(),
163
- checkbox: z.never().optional(),
164
- text: z.never().optional(),
165
- radioButton: z.never().optional(),
166
- phone: z.object({
167
- label: z.string().describe("Phone input label.").max(100).optional(),
168
- mandatory: z.boolean().describe("Whether the phone input is required.").optional()
155
+ options: /* @__PURE__ */ z.intersection(
156
+ /* @__PURE__ */ z.object({}),
157
+ /* @__PURE__ */ z.xor([
158
+ /* @__PURE__ */ z.object({
159
+ address: /* @__PURE__ */ z.never().optional(),
160
+ date: /* @__PURE__ */ z.never().optional(),
161
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
162
+ dropdown: /* @__PURE__ */ z.never().optional(),
163
+ checkbox: /* @__PURE__ */ z.never().optional(),
164
+ text: /* @__PURE__ */ z.never().optional(),
165
+ radioButton: /* @__PURE__ */ z.never().optional(),
166
+ phone: /* @__PURE__ */ z.object({
167
+ label: /* @__PURE__ */ z.string().describe("Phone input label.").max(100).optional(),
168
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether the phone input is required.").optional()
169
169
  }).describe("Phone number input control.")
170
170
  }),
171
- z.object({
172
- phone: z.never().optional(),
173
- date: z.never().optional(),
174
- additionalGuests: z.never().optional(),
175
- dropdown: z.never().optional(),
176
- checkbox: z.never().optional(),
177
- text: z.never().optional(),
178
- radioButton: z.never().optional(),
179
- address: z.object({
180
- labels: z.object({
181
- addressLine: z.string().describe("Single-line address input label.").max(100).optional(),
182
- country: z.string().describe("Country input label.").max(100).optional(),
183
- subdivision: z.string().describe("Subdivision input label.").max(100).optional(),
184
- city: z.string().describe("City input label.").max(100).optional(),
185
- postalCode: z.string().describe("Postal code input label.").max(100).optional(),
186
- streetAddress: z.string().describe("Street address input label.").max(100).optional()
171
+ /* @__PURE__ */ z.object({
172
+ phone: /* @__PURE__ */ z.never().optional(),
173
+ date: /* @__PURE__ */ z.never().optional(),
174
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
175
+ dropdown: /* @__PURE__ */ z.never().optional(),
176
+ checkbox: /* @__PURE__ */ z.never().optional(),
177
+ text: /* @__PURE__ */ z.never().optional(),
178
+ radioButton: /* @__PURE__ */ z.never().optional(),
179
+ address: /* @__PURE__ */ z.object({
180
+ labels: /* @__PURE__ */ z.object({
181
+ addressLine: /* @__PURE__ */ z.string().describe("Single-line address input label.").max(100).optional(),
182
+ country: /* @__PURE__ */ z.string().describe("Country input label.").max(100).optional(),
183
+ subdivision: /* @__PURE__ */ z.string().describe("Subdivision input label.").max(100).optional(),
184
+ city: /* @__PURE__ */ z.string().describe("City input label.").max(100).optional(),
185
+ postalCode: /* @__PURE__ */ z.string().describe("Postal code input label.").max(100).optional(),
186
+ streetAddress: /* @__PURE__ */ z.string().describe("Street address input label.").max(100).optional()
187
187
  }).describe("Address control labels for each input.").optional(),
188
- full: z.boolean().describe(
188
+ full: /* @__PURE__ */ z.boolean().describe(
189
189
  "Whether an address is multi-line (consisting of multiple fields such as country, city, postal code). When `false`, address is single-line."
190
190
  ).optional(),
191
- mandatory: z.boolean().describe("Whether the address input is required.").optional()
191
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether the address input is required.").optional()
192
192
  }).describe("Single-line or full address input control.")
193
193
  }),
194
- z.object({
195
- phone: z.never().optional(),
196
- address: z.never().optional(),
197
- additionalGuests: z.never().optional(),
198
- dropdown: z.never().optional(),
199
- checkbox: z.never().optional(),
200
- text: z.never().optional(),
201
- radioButton: z.never().optional(),
202
- date: z.object({
203
- label: z.string().describe("Input control label.").max(100).optional(),
204
- mandatory: z.boolean().describe("Whether the date input is required.").optional()
194
+ /* @__PURE__ */ z.object({
195
+ phone: /* @__PURE__ */ z.never().optional(),
196
+ address: /* @__PURE__ */ z.never().optional(),
197
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
198
+ dropdown: /* @__PURE__ */ z.never().optional(),
199
+ checkbox: /* @__PURE__ */ z.never().optional(),
200
+ text: /* @__PURE__ */ z.never().optional(),
201
+ radioButton: /* @__PURE__ */ z.never().optional(),
202
+ date: /* @__PURE__ */ z.object({
203
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(100).optional(),
204
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether the date input is required.").optional()
205
205
  }).describe("Day, month, year date input control.")
206
206
  }),
207
- z.object({
208
- phone: z.never().optional(),
209
- address: z.never().optional(),
210
- date: z.never().optional(),
211
- dropdown: z.never().optional(),
212
- checkbox: z.never().optional(),
213
- text: z.never().optional(),
214
- radioButton: z.never().optional(),
215
- additionalGuests: z.object({
216
- labels: z.object({
217
- single: z.string().describe("Input label for a single guest.").max(200).optional(),
218
- multiple: z.string().describe("Input label for multiple guests.").max(200).optional()
207
+ /* @__PURE__ */ z.object({
208
+ phone: /* @__PURE__ */ z.never().optional(),
209
+ address: /* @__PURE__ */ z.never().optional(),
210
+ date: /* @__PURE__ */ z.never().optional(),
211
+ dropdown: /* @__PURE__ */ z.never().optional(),
212
+ checkbox: /* @__PURE__ */ z.never().optional(),
213
+ text: /* @__PURE__ */ z.never().optional(),
214
+ radioButton: /* @__PURE__ */ z.never().optional(),
215
+ additionalGuests: /* @__PURE__ */ z.object({
216
+ labels: /* @__PURE__ */ z.object({
217
+ single: /* @__PURE__ */ z.string().describe("Input label for a single guest.").max(200).optional(),
218
+ multiple: /* @__PURE__ */ z.string().describe("Input label for multiple guests.").max(200).optional()
219
219
  }).describe("Additional guests control labels for each input.").optional(),
220
- namesMandatory: z.boolean().describe("Whether the individual guest names are required.").optional(),
221
- maxGuests: z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
220
+ namesMandatory: /* @__PURE__ */ z.boolean().describe("Whether the individual guest names are required.").optional(),
221
+ maxGuests: /* @__PURE__ */ z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
222
222
  }).describe("Additional guests input control.")
223
223
  }),
224
- z.object({
225
- phone: z.never().optional(),
226
- address: z.never().optional(),
227
- date: z.never().optional(),
228
- additionalGuests: z.never().optional(),
229
- checkbox: z.never().optional(),
230
- text: z.never().optional(),
231
- radioButton: z.never().optional(),
232
- dropdown: z.object({
233
- label: z.string().describe("Input control label.").max(200).optional(),
234
- options: z.array(z.string()).min(2).max(200).optional(),
235
- mandatory: z.boolean().describe("Whether a choice is required.").optional(),
236
- defaultOptionSelection: z.intersection(
237
- z.object({}),
238
- z.xor([
239
- z.object({
240
- optionIndex: z.never().optional(),
241
- placeholderText: z.never().optional()
224
+ /* @__PURE__ */ z.object({
225
+ phone: /* @__PURE__ */ z.never().optional(),
226
+ address: /* @__PURE__ */ z.never().optional(),
227
+ date: /* @__PURE__ */ z.never().optional(),
228
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
229
+ checkbox: /* @__PURE__ */ z.never().optional(),
230
+ text: /* @__PURE__ */ z.never().optional(),
231
+ radioButton: /* @__PURE__ */ z.never().optional(),
232
+ dropdown: /* @__PURE__ */ z.object({
233
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
234
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional(),
235
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether a choice is required.").optional(),
236
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
237
+ /* @__PURE__ */ z.object({}),
238
+ /* @__PURE__ */ z.xor([
239
+ /* @__PURE__ */ z.object({
240
+ optionIndex: /* @__PURE__ */ z.never().optional(),
241
+ placeholderText: /* @__PURE__ */ z.never().optional()
242
242
  }),
243
- z.object({
244
- placeholderText: z.never().optional(),
245
- optionIndex: z.number().int().describe(
243
+ /* @__PURE__ */ z.object({
244
+ placeholderText: /* @__PURE__ */ z.never().optional(),
245
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
246
246
  "0-based index from predefined `controls.inputs.options` which is initial selection."
247
247
  ).min(0).max(199)
248
248
  }),
249
- z.object({
250
- optionIndex: z.never().optional(),
251
- placeholderText: z.string().describe(
249
+ /* @__PURE__ */ z.object({
250
+ optionIndex: /* @__PURE__ */ z.never().optional(),
251
+ placeholderText: /* @__PURE__ */ z.string().describe(
252
252
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
253
253
  ).max(200)
254
254
  })
@@ -258,62 +258,62 @@ var AddControlRequest = /* @__PURE__ */ z.object({
258
258
  ).optional()
259
259
  }).describe("Single-choice dropdown style input control.")
260
260
  }),
261
- z.object({
262
- phone: z.never().optional(),
263
- address: z.never().optional(),
264
- date: z.never().optional(),
265
- additionalGuests: z.never().optional(),
266
- dropdown: z.never().optional(),
267
- text: z.never().optional(),
268
- radioButton: z.never().optional(),
269
- checkbox: z.object({
270
- label: z.string().describe("Input control label.").max(200).optional(),
271
- mandatory: z.boolean().describe("Whether at least one checkbox is required.").optional(),
272
- options: z.array(z.string()).min(1).max(200).optional()
261
+ /* @__PURE__ */ z.object({
262
+ phone: /* @__PURE__ */ z.never().optional(),
263
+ address: /* @__PURE__ */ z.never().optional(),
264
+ date: /* @__PURE__ */ z.never().optional(),
265
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
266
+ dropdown: /* @__PURE__ */ z.never().optional(),
267
+ text: /* @__PURE__ */ z.never().optional(),
268
+ radioButton: /* @__PURE__ */ z.never().optional(),
269
+ checkbox: /* @__PURE__ */ z.object({
270
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
271
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether at least one checkbox is required.").optional(),
272
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(200).optional()
273
273
  }).describe("Multiple-choice checkbox style input control.")
274
274
  }),
275
- z.object({
276
- phone: z.never().optional(),
277
- address: z.never().optional(),
278
- date: z.never().optional(),
279
- additionalGuests: z.never().optional(),
280
- dropdown: z.never().optional(),
281
- checkbox: z.never().optional(),
282
- radioButton: z.never().optional(),
283
- text: z.object({
284
- label: z.string().describe("Input control label.").max(200).optional(),
285
- mandatory: z.boolean().describe("Whether a text input is required.").optional(),
286
- maxLength: z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
287
- multiLine: z.boolean().describe(
275
+ /* @__PURE__ */ z.object({
276
+ phone: /* @__PURE__ */ z.never().optional(),
277
+ address: /* @__PURE__ */ z.never().optional(),
278
+ date: /* @__PURE__ */ z.never().optional(),
279
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
280
+ dropdown: /* @__PURE__ */ z.never().optional(),
281
+ checkbox: /* @__PURE__ */ z.never().optional(),
282
+ radioButton: /* @__PURE__ */ z.never().optional(),
283
+ text: /* @__PURE__ */ z.object({
284
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
285
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether a text input is required.").optional(),
286
+ maxLength: /* @__PURE__ */ z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
287
+ multiLine: /* @__PURE__ */ z.boolean().describe(
288
288
  "Whether the input control should allow multiple lines in text."
289
289
  ).optional(),
290
- comment: z.boolean().describe(
290
+ comment: /* @__PURE__ */ z.boolean().describe(
291
291
  "Whether the input control should be displayed as a comment."
292
292
  ).optional()
293
293
  }).describe("Free-form text input control.")
294
294
  }),
295
- z.object({
296
- phone: z.never().optional(),
297
- address: z.never().optional(),
298
- date: z.never().optional(),
299
- additionalGuests: z.never().optional(),
300
- dropdown: z.never().optional(),
301
- checkbox: z.never().optional(),
302
- text: z.never().optional(),
303
- radioButton: z.object({
304
- label: z.string().describe("Input control label.").max(200).optional(),
305
- options: z.array(z.string()).min(2).max(200).optional()
295
+ /* @__PURE__ */ z.object({
296
+ phone: /* @__PURE__ */ z.never().optional(),
297
+ address: /* @__PURE__ */ z.never().optional(),
298
+ date: /* @__PURE__ */ z.never().optional(),
299
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
300
+ dropdown: /* @__PURE__ */ z.never().optional(),
301
+ checkbox: /* @__PURE__ */ z.never().optional(),
302
+ text: /* @__PURE__ */ z.never().optional(),
303
+ radioButton: /* @__PURE__ */ z.object({
304
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
305
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional()
306
306
  }).describe("Single-choice radio button style input control.")
307
307
  })
308
308
  ])
309
309
  ).describe("Optional fields.")
310
310
  });
311
311
  var AddControlResponse = /* @__PURE__ */ z.object({
312
- _id: z.string().describe("Generated unique input control ID.").optional(),
313
- form: z.object({
314
- controls: z.array(
315
- z.object({
316
- type: z.enum([
312
+ _id: /* @__PURE__ */ z.string().describe("Generated unique input control ID.").optional(),
313
+ form: /* @__PURE__ */ z.object({
314
+ controls: /* @__PURE__ */ z.array(
315
+ /* @__PURE__ */ z.object({
316
+ type: /* @__PURE__ */ z.enum([
317
317
  "INPUT",
318
318
  "TEXTAREA",
319
319
  "DROPDOWN",
@@ -325,26 +325,26 @@ var AddControlResponse = /* @__PURE__ */ z.object({
325
325
  "ADDRESS_FULL",
326
326
  "DATE"
327
327
  ]).describe("Field control type.").optional(),
328
- system: z.boolean().describe(
328
+ system: /* @__PURE__ */ z.boolean().describe(
329
329
  "Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
330
330
  ).optional(),
331
- name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
332
- inputs: z.array(
333
- z.object({
334
- name: z.string().describe("Field name.").optional(),
335
- array: z.boolean().describe(
331
+ name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
332
+ inputs: /* @__PURE__ */ z.array(
333
+ /* @__PURE__ */ z.object({
334
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
335
+ array: /* @__PURE__ */ z.boolean().describe(
336
336
  "*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
337
337
  ).optional(),
338
- label: z.string().describe("Main field label.").optional(),
339
- additionalLabels: z.record(z.string(), z.string()).describe(
338
+ label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
339
+ additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
340
340
  "Additional labels for multi-valued fields such as address."
341
341
  ).optional(),
342
- options: z.array(z.string()).optional(),
343
- mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
344
- maxLength: z.number().int().describe(
342
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
343
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
344
+ maxLength: /* @__PURE__ */ z.number().int().describe(
345
345
  "Maximum number of accepted characters (relevant for text fields)."
346
346
  ).optional(),
347
- type: z.enum([
347
+ type: /* @__PURE__ */ z.enum([
348
348
  "TEXT",
349
349
  "NUMBER",
350
350
  "TEXT_ARRAY",
@@ -353,25 +353,25 @@ var AddControlResponse = /* @__PURE__ */ z.object({
353
353
  ]).describe(
354
354
  "Type which determines field format.\nUsed to validate submitted response."
355
355
  ).optional(),
356
- maxSize: z.number().int().describe(
356
+ maxSize: /* @__PURE__ */ z.number().int().describe(
357
357
  "The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
358
358
  ).optional().nullable(),
359
- defaultOptionSelection: z.intersection(
360
- z.object({}),
361
- z.xor([
362
- z.object({
363
- optionIndex: z.never().optional(),
364
- placeholderText: z.never().optional()
359
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
360
+ /* @__PURE__ */ z.object({}),
361
+ /* @__PURE__ */ z.xor([
362
+ /* @__PURE__ */ z.object({
363
+ optionIndex: /* @__PURE__ */ z.never().optional(),
364
+ placeholderText: /* @__PURE__ */ z.never().optional()
365
365
  }),
366
- z.object({
367
- placeholderText: z.never().optional(),
368
- optionIndex: z.number().int().describe(
366
+ /* @__PURE__ */ z.object({
367
+ placeholderText: /* @__PURE__ */ z.never().optional(),
368
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
369
369
  "0-based index from predefined `controls.inputs.options` which is initial selection."
370
370
  ).min(0).max(199)
371
371
  }),
372
- z.object({
373
- optionIndex: z.never().optional(),
374
- placeholderText: z.string().describe(
372
+ /* @__PURE__ */ z.object({
373
+ optionIndex: /* @__PURE__ */ z.never().optional(),
374
+ placeholderText: /* @__PURE__ */ z.string().describe(
375
375
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
376
376
  ).max(200)
377
377
  })
@@ -379,83 +379,83 @@ var AddControlResponse = /* @__PURE__ */ z.object({
379
379
  ).describe(
380
380
  "Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
381
381
  ).optional(),
382
- labels: z.array(
383
- z.object({
384
- name: z.string().describe("Field name.").optional(),
385
- label: z.string().describe("Field label.").optional()
382
+ labels: /* @__PURE__ */ z.array(
383
+ /* @__PURE__ */ z.object({
384
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
385
+ label: /* @__PURE__ */ z.string().describe("Field label.").optional()
386
386
  })
387
387
  ).optional()
388
388
  })
389
389
  ).optional(),
390
- label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
391
- orderIndex: z.number().int().describe(
390
+ label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
391
+ orderIndex: /* @__PURE__ */ z.number().int().describe(
392
392
  "Field controls are sorted by this value in ascending order."
393
393
  ).optional(),
394
- _id: z.string().describe("Unique control ID.").optional(),
395
- deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
394
+ _id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
395
+ deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
396
396
  })
397
397
  ).optional(),
398
- messages: z.object({
399
- rsvp: z.object({
400
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
401
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
402
- positiveMessages: z.object({
403
- title: z.string().describe("Main form title for positive response.").optional(),
404
- confirmation: z.object({
405
- title: z.string().describe("Confirmation message title.").optional(),
406
- message: z.string().describe("Confirmation message text.").optional(),
407
- addToCalendarActionLabel: z.string().describe(
398
+ messages: /* @__PURE__ */ z.object({
399
+ rsvp: /* @__PURE__ */ z.object({
400
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
401
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
402
+ positiveMessages: /* @__PURE__ */ z.object({
403
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
404
+ confirmation: /* @__PURE__ */ z.object({
405
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
406
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
407
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
408
408
  '"Add to calendar" call-to-action label text.'
409
409
  ).optional(),
410
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
410
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
411
411
  }).describe("Confirmation messages shown after registration.").optional()
412
412
  }).describe(
413
413
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
414
414
  ).optional(),
415
- waitlistMessages: z.object({
416
- title: z.string().describe("Main form title for positive response.").optional(),
417
- confirmation: z.object({
418
- title: z.string().describe("Confirmation message title.").optional(),
419
- message: z.string().describe("Confirmation message text.").optional(),
420
- addToCalendarActionLabel: z.string().describe(
415
+ waitlistMessages: /* @__PURE__ */ z.object({
416
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
417
+ confirmation: /* @__PURE__ */ z.object({
418
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
419
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
420
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
421
421
  '"Add to calendar" call-to-action label text.'
422
422
  ).optional(),
423
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
423
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
424
424
  }).describe("Confirmation messages shown after registration.").optional()
425
425
  }).describe(
426
426
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
427
427
  ).optional(),
428
- negativeMessages: z.object({
429
- title: z.string().describe("Main form title for negative response.").optional(),
430
- confirmation: z.object({
431
- title: z.string().describe("Confirmation message title.").optional(),
432
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
428
+ negativeMessages: /* @__PURE__ */ z.object({
429
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
430
+ confirmation: /* @__PURE__ */ z.object({
431
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
432
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
433
433
  }).describe("Confirmation messages shown after registration.").optional()
434
434
  }).describe(
435
435
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
436
436
  ).optional(),
437
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
437
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
438
438
  }).describe(
439
439
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
440
440
  ).optional(),
441
- checkout: z.object({
442
- title: z.string().describe("Main form title for response.").optional(),
443
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
444
- confirmation: z.object({
445
- title: z.string().describe("Confirmation message title.").optional(),
446
- message: z.string().describe("Confirmation message text.").optional(),
447
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
448
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
449
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
441
+ checkout: /* @__PURE__ */ z.object({
442
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
443
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
444
+ confirmation: /* @__PURE__ */ z.object({
445
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
446
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
447
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
448
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
449
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
450
450
  }).describe("Confirmation messages shown after checkout.").optional()
451
451
  }).describe("Checkout form messages.").optional(),
452
- registrationClosed: z.object({
453
- message: z.string().describe("Message shown when event registration is closed.").optional(),
454
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
452
+ registrationClosed: /* @__PURE__ */ z.object({
453
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
454
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
455
455
  }).describe("Messages shown when event registration is closed.").optional(),
456
- ticketsUnavailable: z.object({
457
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
458
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
456
+ ticketsUnavailable: /* @__PURE__ */ z.object({
457
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
458
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
459
459
  }).describe("Messages shown when event tickets are unavailable.").optional()
460
460
  }).describe(
461
461
  'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
@@ -463,122 +463,122 @@ var AddControlResponse = /* @__PURE__ */ z.object({
463
463
  }).describe("Modified event form.").optional()
464
464
  });
465
465
  var UpdateControlRequest = /* @__PURE__ */ z.object({
466
- identifiers: z.object({
467
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
466
+ identifiers: /* @__PURE__ */ z.object({
467
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
468
468
  /^[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}$/,
469
469
  "Must be a valid GUID"
470
470
  ),
471
- _id: z.string().describe("Unique input control ID.")
471
+ _id: /* @__PURE__ */ z.string().describe("Unique input control ID.")
472
472
  }).describe("Identifies what form to update."),
473
- options: z.intersection(
474
- z.object({
475
- orderIndex: z.number().int().describe("Index used to sort input controls in ascending order.").optional()
473
+ options: /* @__PURE__ */ z.intersection(
474
+ /* @__PURE__ */ z.object({
475
+ orderIndex: /* @__PURE__ */ z.number().int().describe("Index used to sort input controls in ascending order.").optional()
476
476
  }),
477
- z.xor([
478
- z.object({
479
- address: z.never().optional(),
480
- date: z.never().optional(),
481
- additionalGuests: z.never().optional(),
482
- dropdown: z.never().optional(),
483
- checkbox: z.never().optional(),
484
- text: z.never().optional(),
485
- name: z.never().optional(),
486
- email: z.never().optional(),
487
- radioButton: z.never().optional(),
488
- phone: z.object({
489
- label: z.string().describe("Phone input label.").max(100).optional(),
490
- mandatory: z.boolean().describe("Whether the phone input is required.").optional()
477
+ /* @__PURE__ */ z.xor([
478
+ /* @__PURE__ */ z.object({
479
+ address: /* @__PURE__ */ z.never().optional(),
480
+ date: /* @__PURE__ */ z.never().optional(),
481
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
482
+ dropdown: /* @__PURE__ */ z.never().optional(),
483
+ checkbox: /* @__PURE__ */ z.never().optional(),
484
+ text: /* @__PURE__ */ z.never().optional(),
485
+ name: /* @__PURE__ */ z.never().optional(),
486
+ email: /* @__PURE__ */ z.never().optional(),
487
+ radioButton: /* @__PURE__ */ z.never().optional(),
488
+ phone: /* @__PURE__ */ z.object({
489
+ label: /* @__PURE__ */ z.string().describe("Phone input label.").max(100).optional(),
490
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether the phone input is required.").optional()
491
491
  }).describe("Phone number input control.")
492
492
  }),
493
- z.object({
494
- phone: z.never().optional(),
495
- date: z.never().optional(),
496
- additionalGuests: z.never().optional(),
497
- dropdown: z.never().optional(),
498
- checkbox: z.never().optional(),
499
- text: z.never().optional(),
500
- name: z.never().optional(),
501
- email: z.never().optional(),
502
- radioButton: z.never().optional(),
503
- address: z.object({
504
- labels: z.object({
505
- addressLine: z.string().describe("Single-line address input label.").max(100).optional(),
506
- country: z.string().describe("Country input label.").max(100).optional(),
507
- subdivision: z.string().describe("Subdivision input label.").max(100).optional(),
508
- city: z.string().describe("City input label.").max(100).optional(),
509
- postalCode: z.string().describe("Postal code input label.").max(100).optional(),
510
- streetAddress: z.string().describe("Street address input label.").max(100).optional()
493
+ /* @__PURE__ */ z.object({
494
+ phone: /* @__PURE__ */ z.never().optional(),
495
+ date: /* @__PURE__ */ z.never().optional(),
496
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
497
+ dropdown: /* @__PURE__ */ z.never().optional(),
498
+ checkbox: /* @__PURE__ */ z.never().optional(),
499
+ text: /* @__PURE__ */ z.never().optional(),
500
+ name: /* @__PURE__ */ z.never().optional(),
501
+ email: /* @__PURE__ */ z.never().optional(),
502
+ radioButton: /* @__PURE__ */ z.never().optional(),
503
+ address: /* @__PURE__ */ z.object({
504
+ labels: /* @__PURE__ */ z.object({
505
+ addressLine: /* @__PURE__ */ z.string().describe("Single-line address input label.").max(100).optional(),
506
+ country: /* @__PURE__ */ z.string().describe("Country input label.").max(100).optional(),
507
+ subdivision: /* @__PURE__ */ z.string().describe("Subdivision input label.").max(100).optional(),
508
+ city: /* @__PURE__ */ z.string().describe("City input label.").max(100).optional(),
509
+ postalCode: /* @__PURE__ */ z.string().describe("Postal code input label.").max(100).optional(),
510
+ streetAddress: /* @__PURE__ */ z.string().describe("Street address input label.").max(100).optional()
511
511
  }).describe("Address control labels for each input.").optional(),
512
- full: z.boolean().describe(
512
+ full: /* @__PURE__ */ z.boolean().describe(
513
513
  "Whether an address is multi-line (consisting of multiple fields such as country, city, postal code). When `false`, address is single-line."
514
514
  ).optional(),
515
- mandatory: z.boolean().describe("Whether the address input is required.").optional()
515
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether the address input is required.").optional()
516
516
  }).describe("Single-line or full address input control.")
517
517
  }),
518
- z.object({
519
- phone: z.never().optional(),
520
- address: z.never().optional(),
521
- additionalGuests: z.never().optional(),
522
- dropdown: z.never().optional(),
523
- checkbox: z.never().optional(),
524
- text: z.never().optional(),
525
- name: z.never().optional(),
526
- email: z.never().optional(),
527
- radioButton: z.never().optional(),
528
- date: z.object({
529
- label: z.string().describe("Input control label.").max(100).optional(),
530
- mandatory: z.boolean().describe("Whether the date input is required.").optional()
518
+ /* @__PURE__ */ z.object({
519
+ phone: /* @__PURE__ */ z.never().optional(),
520
+ address: /* @__PURE__ */ z.never().optional(),
521
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
522
+ dropdown: /* @__PURE__ */ z.never().optional(),
523
+ checkbox: /* @__PURE__ */ z.never().optional(),
524
+ text: /* @__PURE__ */ z.never().optional(),
525
+ name: /* @__PURE__ */ z.never().optional(),
526
+ email: /* @__PURE__ */ z.never().optional(),
527
+ radioButton: /* @__PURE__ */ z.never().optional(),
528
+ date: /* @__PURE__ */ z.object({
529
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(100).optional(),
530
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether the date input is required.").optional()
531
531
  }).describe("Day, month, year date input control.")
532
532
  }),
533
- z.object({
534
- phone: z.never().optional(),
535
- address: z.never().optional(),
536
- date: z.never().optional(),
537
- dropdown: z.never().optional(),
538
- checkbox: z.never().optional(),
539
- text: z.never().optional(),
540
- name: z.never().optional(),
541
- email: z.never().optional(),
542
- radioButton: z.never().optional(),
543
- additionalGuests: z.object({
544
- labels: z.object({
545
- single: z.string().describe("Input label for a single guest.").max(200).optional(),
546
- multiple: z.string().describe("Input label for multiple guests.").max(200).optional()
533
+ /* @__PURE__ */ z.object({
534
+ phone: /* @__PURE__ */ z.never().optional(),
535
+ address: /* @__PURE__ */ z.never().optional(),
536
+ date: /* @__PURE__ */ z.never().optional(),
537
+ dropdown: /* @__PURE__ */ z.never().optional(),
538
+ checkbox: /* @__PURE__ */ z.never().optional(),
539
+ text: /* @__PURE__ */ z.never().optional(),
540
+ name: /* @__PURE__ */ z.never().optional(),
541
+ email: /* @__PURE__ */ z.never().optional(),
542
+ radioButton: /* @__PURE__ */ z.never().optional(),
543
+ additionalGuests: /* @__PURE__ */ z.object({
544
+ labels: /* @__PURE__ */ z.object({
545
+ single: /* @__PURE__ */ z.string().describe("Input label for a single guest.").max(200).optional(),
546
+ multiple: /* @__PURE__ */ z.string().describe("Input label for multiple guests.").max(200).optional()
547
547
  }).describe("Additional guests control labels for each input.").optional(),
548
- namesMandatory: z.boolean().describe("Whether the individual guest names are required.").optional(),
549
- maxGuests: z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
548
+ namesMandatory: /* @__PURE__ */ z.boolean().describe("Whether the individual guest names are required.").optional(),
549
+ maxGuests: /* @__PURE__ */ z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
550
550
  }).describe("Additional guests input control.")
551
551
  }),
552
- z.object({
553
- phone: z.never().optional(),
554
- address: z.never().optional(),
555
- date: z.never().optional(),
556
- additionalGuests: z.never().optional(),
557
- checkbox: z.never().optional(),
558
- text: z.never().optional(),
559
- name: z.never().optional(),
560
- email: z.never().optional(),
561
- radioButton: z.never().optional(),
562
- dropdown: z.object({
563
- label: z.string().describe("Input control label.").max(200).optional(),
564
- options: z.array(z.string()).min(2).max(200).optional(),
565
- mandatory: z.boolean().describe("Whether a choice is required.").optional(),
566
- defaultOptionSelection: z.intersection(
567
- z.object({}),
568
- z.xor([
569
- z.object({
570
- optionIndex: z.never().optional(),
571
- placeholderText: z.never().optional()
552
+ /* @__PURE__ */ z.object({
553
+ phone: /* @__PURE__ */ z.never().optional(),
554
+ address: /* @__PURE__ */ z.never().optional(),
555
+ date: /* @__PURE__ */ z.never().optional(),
556
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
557
+ checkbox: /* @__PURE__ */ z.never().optional(),
558
+ text: /* @__PURE__ */ z.never().optional(),
559
+ name: /* @__PURE__ */ z.never().optional(),
560
+ email: /* @__PURE__ */ z.never().optional(),
561
+ radioButton: /* @__PURE__ */ z.never().optional(),
562
+ dropdown: /* @__PURE__ */ z.object({
563
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
564
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional(),
565
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether a choice is required.").optional(),
566
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
567
+ /* @__PURE__ */ z.object({}),
568
+ /* @__PURE__ */ z.xor([
569
+ /* @__PURE__ */ z.object({
570
+ optionIndex: /* @__PURE__ */ z.never().optional(),
571
+ placeholderText: /* @__PURE__ */ z.never().optional()
572
572
  }),
573
- z.object({
574
- placeholderText: z.never().optional(),
575
- optionIndex: z.number().int().describe(
573
+ /* @__PURE__ */ z.object({
574
+ placeholderText: /* @__PURE__ */ z.never().optional(),
575
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
576
576
  "0-based index from predefined `controls.inputs.options` which is initial selection."
577
577
  ).min(0).max(199)
578
578
  }),
579
- z.object({
580
- optionIndex: z.never().optional(),
581
- placeholderText: z.string().describe(
579
+ /* @__PURE__ */ z.object({
580
+ optionIndex: /* @__PURE__ */ z.never().optional(),
581
+ placeholderText: /* @__PURE__ */ z.string().describe(
582
582
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
583
583
  ).max(200)
584
584
  })
@@ -588,98 +588,98 @@ var UpdateControlRequest = /* @__PURE__ */ z.object({
588
588
  ).optional()
589
589
  }).describe("Single-choice dropdown style input control.")
590
590
  }),
591
- z.object({
592
- phone: z.never().optional(),
593
- address: z.never().optional(),
594
- date: z.never().optional(),
595
- additionalGuests: z.never().optional(),
596
- dropdown: z.never().optional(),
597
- text: z.never().optional(),
598
- name: z.never().optional(),
599
- email: z.never().optional(),
600
- radioButton: z.never().optional(),
601
- checkbox: z.object({
602
- label: z.string().describe("Input control label.").max(200).optional(),
603
- mandatory: z.boolean().describe("Whether at least one checkbox is required.").optional(),
604
- options: z.array(z.string()).min(1).max(200).optional()
591
+ /* @__PURE__ */ z.object({
592
+ phone: /* @__PURE__ */ z.never().optional(),
593
+ address: /* @__PURE__ */ z.never().optional(),
594
+ date: /* @__PURE__ */ z.never().optional(),
595
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
596
+ dropdown: /* @__PURE__ */ z.never().optional(),
597
+ text: /* @__PURE__ */ z.never().optional(),
598
+ name: /* @__PURE__ */ z.never().optional(),
599
+ email: /* @__PURE__ */ z.never().optional(),
600
+ radioButton: /* @__PURE__ */ z.never().optional(),
601
+ checkbox: /* @__PURE__ */ z.object({
602
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
603
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether at least one checkbox is required.").optional(),
604
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(200).optional()
605
605
  }).describe("Multiple-choice checkbox style input control.")
606
606
  }),
607
- z.object({
608
- phone: z.never().optional(),
609
- address: z.never().optional(),
610
- date: z.never().optional(),
611
- additionalGuests: z.never().optional(),
612
- dropdown: z.never().optional(),
613
- checkbox: z.never().optional(),
614
- name: z.never().optional(),
615
- email: z.never().optional(),
616
- radioButton: z.never().optional(),
617
- text: z.object({
618
- label: z.string().describe("Input control label.").max(200).optional(),
619
- mandatory: z.boolean().describe("Whether a text input is required.").optional(),
620
- maxLength: z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
621
- multiLine: z.boolean().describe(
607
+ /* @__PURE__ */ z.object({
608
+ phone: /* @__PURE__ */ z.never().optional(),
609
+ address: /* @__PURE__ */ z.never().optional(),
610
+ date: /* @__PURE__ */ z.never().optional(),
611
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
612
+ dropdown: /* @__PURE__ */ z.never().optional(),
613
+ checkbox: /* @__PURE__ */ z.never().optional(),
614
+ name: /* @__PURE__ */ z.never().optional(),
615
+ email: /* @__PURE__ */ z.never().optional(),
616
+ radioButton: /* @__PURE__ */ z.never().optional(),
617
+ text: /* @__PURE__ */ z.object({
618
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
619
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether a text input is required.").optional(),
620
+ maxLength: /* @__PURE__ */ z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
621
+ multiLine: /* @__PURE__ */ z.boolean().describe(
622
622
  "Whether the input control should allow multiple lines in text."
623
623
  ).optional(),
624
- comment: z.boolean().describe(
624
+ comment: /* @__PURE__ */ z.boolean().describe(
625
625
  "Whether the input control should be displayed as a comment."
626
626
  ).optional()
627
627
  }).describe("Free-form text input control.")
628
628
  }),
629
- z.object({
630
- phone: z.never().optional(),
631
- address: z.never().optional(),
632
- date: z.never().optional(),
633
- additionalGuests: z.never().optional(),
634
- dropdown: z.never().optional(),
635
- checkbox: z.never().optional(),
636
- text: z.never().optional(),
637
- email: z.never().optional(),
638
- radioButton: z.never().optional(),
639
- name: z.object({
640
- labels: z.object({
641
- firstName: z.string().describe("First name input label.").max(100).optional(),
642
- lastName: z.string().describe("Last name input label .").max(100).optional()
629
+ /* @__PURE__ */ z.object({
630
+ phone: /* @__PURE__ */ z.never().optional(),
631
+ address: /* @__PURE__ */ z.never().optional(),
632
+ date: /* @__PURE__ */ z.never().optional(),
633
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
634
+ dropdown: /* @__PURE__ */ z.never().optional(),
635
+ checkbox: /* @__PURE__ */ z.never().optional(),
636
+ text: /* @__PURE__ */ z.never().optional(),
637
+ email: /* @__PURE__ */ z.never().optional(),
638
+ radioButton: /* @__PURE__ */ z.never().optional(),
639
+ name: /* @__PURE__ */ z.object({
640
+ labels: /* @__PURE__ */ z.object({
641
+ firstName: /* @__PURE__ */ z.string().describe("First name input label.").max(100).optional(),
642
+ lastName: /* @__PURE__ */ z.string().describe("Last name input label .").max(100).optional()
643
643
  }).describe("Name control labels of each input.").optional()
644
644
  }).describe("Main guest name input control.")
645
645
  }),
646
- z.object({
647
- phone: z.never().optional(),
648
- address: z.never().optional(),
649
- date: z.never().optional(),
650
- additionalGuests: z.never().optional(),
651
- dropdown: z.never().optional(),
652
- checkbox: z.never().optional(),
653
- text: z.never().optional(),
654
- name: z.never().optional(),
655
- radioButton: z.never().optional(),
656
- email: z.object({
657
- label: z.string().describe("Email input label.").max(100).optional()
646
+ /* @__PURE__ */ z.object({
647
+ phone: /* @__PURE__ */ z.never().optional(),
648
+ address: /* @__PURE__ */ z.never().optional(),
649
+ date: /* @__PURE__ */ z.never().optional(),
650
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
651
+ dropdown: /* @__PURE__ */ z.never().optional(),
652
+ checkbox: /* @__PURE__ */ z.never().optional(),
653
+ text: /* @__PURE__ */ z.never().optional(),
654
+ name: /* @__PURE__ */ z.never().optional(),
655
+ radioButton: /* @__PURE__ */ z.never().optional(),
656
+ email: /* @__PURE__ */ z.object({
657
+ label: /* @__PURE__ */ z.string().describe("Email input label.").max(100).optional()
658
658
  }).describe("Main guest email input control.")
659
659
  }),
660
- z.object({
661
- phone: z.never().optional(),
662
- address: z.never().optional(),
663
- date: z.never().optional(),
664
- additionalGuests: z.never().optional(),
665
- dropdown: z.never().optional(),
666
- checkbox: z.never().optional(),
667
- text: z.never().optional(),
668
- name: z.never().optional(),
669
- email: z.never().optional(),
670
- radioButton: z.object({
671
- label: z.string().describe("Input control label.").max(200).optional(),
672
- options: z.array(z.string()).min(2).max(200).optional()
660
+ /* @__PURE__ */ z.object({
661
+ phone: /* @__PURE__ */ z.never().optional(),
662
+ address: /* @__PURE__ */ z.never().optional(),
663
+ date: /* @__PURE__ */ z.never().optional(),
664
+ additionalGuests: /* @__PURE__ */ z.never().optional(),
665
+ dropdown: /* @__PURE__ */ z.never().optional(),
666
+ checkbox: /* @__PURE__ */ z.never().optional(),
667
+ text: /* @__PURE__ */ z.never().optional(),
668
+ name: /* @__PURE__ */ z.never().optional(),
669
+ email: /* @__PURE__ */ z.never().optional(),
670
+ radioButton: /* @__PURE__ */ z.object({
671
+ label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
672
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional()
673
673
  }).describe("Single-choice radio style input control.")
674
674
  })
675
675
  ])
676
676
  ).describe("Optional fields.")
677
677
  });
678
678
  var UpdateControlResponse = /* @__PURE__ */ z.object({
679
- form: z.object({
680
- controls: z.array(
681
- z.object({
682
- type: z.enum([
679
+ form: /* @__PURE__ */ z.object({
680
+ controls: /* @__PURE__ */ z.array(
681
+ /* @__PURE__ */ z.object({
682
+ type: /* @__PURE__ */ z.enum([
683
683
  "INPUT",
684
684
  "TEXTAREA",
685
685
  "DROPDOWN",
@@ -691,26 +691,26 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
691
691
  "ADDRESS_FULL",
692
692
  "DATE"
693
693
  ]).describe("Field control type.").optional(),
694
- system: z.boolean().describe(
694
+ system: /* @__PURE__ */ z.boolean().describe(
695
695
  "Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
696
696
  ).optional(),
697
- name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
698
- inputs: z.array(
699
- z.object({
700
- name: z.string().describe("Field name.").optional(),
701
- array: z.boolean().describe(
697
+ name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
698
+ inputs: /* @__PURE__ */ z.array(
699
+ /* @__PURE__ */ z.object({
700
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
701
+ array: /* @__PURE__ */ z.boolean().describe(
702
702
  "*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
703
703
  ).optional(),
704
- label: z.string().describe("Main field label.").optional(),
705
- additionalLabels: z.record(z.string(), z.string()).describe(
704
+ label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
705
+ additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
706
706
  "Additional labels for multi-valued fields such as address."
707
707
  ).optional(),
708
- options: z.array(z.string()).optional(),
709
- mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
710
- maxLength: z.number().int().describe(
708
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
709
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
710
+ maxLength: /* @__PURE__ */ z.number().int().describe(
711
711
  "Maximum number of accepted characters (relevant for text fields)."
712
712
  ).optional(),
713
- type: z.enum([
713
+ type: /* @__PURE__ */ z.enum([
714
714
  "TEXT",
715
715
  "NUMBER",
716
716
  "TEXT_ARRAY",
@@ -719,25 +719,25 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
719
719
  ]).describe(
720
720
  "Type which determines field format.\nUsed to validate submitted response."
721
721
  ).optional(),
722
- maxSize: z.number().int().describe(
722
+ maxSize: /* @__PURE__ */ z.number().int().describe(
723
723
  "The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
724
724
  ).optional().nullable(),
725
- defaultOptionSelection: z.intersection(
726
- z.object({}),
727
- z.xor([
728
- z.object({
729
- optionIndex: z.never().optional(),
730
- placeholderText: z.never().optional()
725
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
726
+ /* @__PURE__ */ z.object({}),
727
+ /* @__PURE__ */ z.xor([
728
+ /* @__PURE__ */ z.object({
729
+ optionIndex: /* @__PURE__ */ z.never().optional(),
730
+ placeholderText: /* @__PURE__ */ z.never().optional()
731
731
  }),
732
- z.object({
733
- placeholderText: z.never().optional(),
734
- optionIndex: z.number().int().describe(
732
+ /* @__PURE__ */ z.object({
733
+ placeholderText: /* @__PURE__ */ z.never().optional(),
734
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
735
735
  "0-based index from predefined `controls.inputs.options` which is initial selection."
736
736
  ).min(0).max(199)
737
737
  }),
738
- z.object({
739
- optionIndex: z.never().optional(),
740
- placeholderText: z.string().describe(
738
+ /* @__PURE__ */ z.object({
739
+ optionIndex: /* @__PURE__ */ z.never().optional(),
740
+ placeholderText: /* @__PURE__ */ z.string().describe(
741
741
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
742
742
  ).max(200)
743
743
  })
@@ -745,83 +745,83 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
745
745
  ).describe(
746
746
  "Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
747
747
  ).optional(),
748
- labels: z.array(
749
- z.object({
750
- name: z.string().describe("Field name.").optional(),
751
- label: z.string().describe("Field label.").optional()
748
+ labels: /* @__PURE__ */ z.array(
749
+ /* @__PURE__ */ z.object({
750
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
751
+ label: /* @__PURE__ */ z.string().describe("Field label.").optional()
752
752
  })
753
753
  ).optional()
754
754
  })
755
755
  ).optional(),
756
- label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
757
- orderIndex: z.number().int().describe(
756
+ label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
757
+ orderIndex: /* @__PURE__ */ z.number().int().describe(
758
758
  "Field controls are sorted by this value in ascending order."
759
759
  ).optional(),
760
- _id: z.string().describe("Unique control ID.").optional(),
761
- deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
760
+ _id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
761
+ deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
762
762
  })
763
763
  ).optional(),
764
- messages: z.object({
765
- rsvp: z.object({
766
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
767
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
768
- positiveMessages: z.object({
769
- title: z.string().describe("Main form title for positive response.").optional(),
770
- confirmation: z.object({
771
- title: z.string().describe("Confirmation message title.").optional(),
772
- message: z.string().describe("Confirmation message text.").optional(),
773
- addToCalendarActionLabel: z.string().describe(
764
+ messages: /* @__PURE__ */ z.object({
765
+ rsvp: /* @__PURE__ */ z.object({
766
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
767
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
768
+ positiveMessages: /* @__PURE__ */ z.object({
769
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
770
+ confirmation: /* @__PURE__ */ z.object({
771
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
772
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
773
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
774
774
  '"Add to calendar" call-to-action label text.'
775
775
  ).optional(),
776
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
776
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
777
777
  }).describe("Confirmation messages shown after registration.").optional()
778
778
  }).describe(
779
779
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
780
780
  ).optional(),
781
- waitlistMessages: z.object({
782
- title: z.string().describe("Main form title for positive response.").optional(),
783
- confirmation: z.object({
784
- title: z.string().describe("Confirmation message title.").optional(),
785
- message: z.string().describe("Confirmation message text.").optional(),
786
- addToCalendarActionLabel: z.string().describe(
781
+ waitlistMessages: /* @__PURE__ */ z.object({
782
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
783
+ confirmation: /* @__PURE__ */ z.object({
784
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
785
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
786
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
787
787
  '"Add to calendar" call-to-action label text.'
788
788
  ).optional(),
789
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
789
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
790
790
  }).describe("Confirmation messages shown after registration.").optional()
791
791
  }).describe(
792
792
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
793
793
  ).optional(),
794
- negativeMessages: z.object({
795
- title: z.string().describe("Main form title for negative response.").optional(),
796
- confirmation: z.object({
797
- title: z.string().describe("Confirmation message title.").optional(),
798
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
794
+ negativeMessages: /* @__PURE__ */ z.object({
795
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
796
+ confirmation: /* @__PURE__ */ z.object({
797
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
798
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
799
799
  }).describe("Confirmation messages shown after registration.").optional()
800
800
  }).describe(
801
801
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
802
802
  ).optional(),
803
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
803
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
804
804
  }).describe(
805
805
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
806
806
  ).optional(),
807
- checkout: z.object({
808
- title: z.string().describe("Main form title for response.").optional(),
809
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
810
- confirmation: z.object({
811
- title: z.string().describe("Confirmation message title.").optional(),
812
- message: z.string().describe("Confirmation message text.").optional(),
813
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
814
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
815
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
807
+ checkout: /* @__PURE__ */ z.object({
808
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
809
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
810
+ confirmation: /* @__PURE__ */ z.object({
811
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
812
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
813
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
814
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
815
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
816
816
  }).describe("Confirmation messages shown after checkout.").optional()
817
817
  }).describe("Checkout form messages.").optional(),
818
- registrationClosed: z.object({
819
- message: z.string().describe("Message shown when event registration is closed.").optional(),
820
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
818
+ registrationClosed: /* @__PURE__ */ z.object({
819
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
820
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
821
821
  }).describe("Messages shown when event registration is closed.").optional(),
822
- ticketsUnavailable: z.object({
823
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
824
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
822
+ ticketsUnavailable: /* @__PURE__ */ z.object({
823
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
824
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
825
825
  }).describe("Messages shown when event tickets are unavailable.").optional()
826
826
  }).describe(
827
827
  'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
@@ -829,19 +829,19 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
829
829
  }).describe("Modified event form.").optional()
830
830
  });
831
831
  var DeleteControlRequest = /* @__PURE__ */ z.object({
832
- identifiers: z.object({
833
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
832
+ identifiers: /* @__PURE__ */ z.object({
833
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
834
834
  /^[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}$/,
835
835
  "Must be a valid GUID"
836
836
  ),
837
- _id: z.string().describe("Unique input control ID.").max(100)
837
+ _id: /* @__PURE__ */ z.string().describe("Unique input control ID.").max(100)
838
838
  }).describe("Identifies what form to delete.")
839
839
  });
840
840
  var DeleteControlResponse = /* @__PURE__ */ z.object({
841
- form: z.object({
842
- controls: z.array(
843
- z.object({
844
- type: z.enum([
841
+ form: /* @__PURE__ */ z.object({
842
+ controls: /* @__PURE__ */ z.array(
843
+ /* @__PURE__ */ z.object({
844
+ type: /* @__PURE__ */ z.enum([
845
845
  "INPUT",
846
846
  "TEXTAREA",
847
847
  "DROPDOWN",
@@ -853,26 +853,26 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
853
853
  "ADDRESS_FULL",
854
854
  "DATE"
855
855
  ]).describe("Field control type.").optional(),
856
- system: z.boolean().describe(
856
+ system: /* @__PURE__ */ z.boolean().describe(
857
857
  "Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
858
858
  ).optional(),
859
- name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
860
- inputs: z.array(
861
- z.object({
862
- name: z.string().describe("Field name.").optional(),
863
- array: z.boolean().describe(
859
+ name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
860
+ inputs: /* @__PURE__ */ z.array(
861
+ /* @__PURE__ */ z.object({
862
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
863
+ array: /* @__PURE__ */ z.boolean().describe(
864
864
  "*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
865
865
  ).optional(),
866
- label: z.string().describe("Main field label.").optional(),
867
- additionalLabels: z.record(z.string(), z.string()).describe(
866
+ label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
867
+ additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
868
868
  "Additional labels for multi-valued fields such as address."
869
869
  ).optional(),
870
- options: z.array(z.string()).optional(),
871
- mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
872
- maxLength: z.number().int().describe(
870
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
871
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
872
+ maxLength: /* @__PURE__ */ z.number().int().describe(
873
873
  "Maximum number of accepted characters (relevant for text fields)."
874
874
  ).optional(),
875
- type: z.enum([
875
+ type: /* @__PURE__ */ z.enum([
876
876
  "TEXT",
877
877
  "NUMBER",
878
878
  "TEXT_ARRAY",
@@ -881,25 +881,25 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
881
881
  ]).describe(
882
882
  "Type which determines field format.\nUsed to validate submitted response."
883
883
  ).optional(),
884
- maxSize: z.number().int().describe(
884
+ maxSize: /* @__PURE__ */ z.number().int().describe(
885
885
  "The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
886
886
  ).optional().nullable(),
887
- defaultOptionSelection: z.intersection(
888
- z.object({}),
889
- z.xor([
890
- z.object({
891
- optionIndex: z.never().optional(),
892
- placeholderText: z.never().optional()
887
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
888
+ /* @__PURE__ */ z.object({}),
889
+ /* @__PURE__ */ z.xor([
890
+ /* @__PURE__ */ z.object({
891
+ optionIndex: /* @__PURE__ */ z.never().optional(),
892
+ placeholderText: /* @__PURE__ */ z.never().optional()
893
893
  }),
894
- z.object({
895
- placeholderText: z.never().optional(),
896
- optionIndex: z.number().int().describe(
894
+ /* @__PURE__ */ z.object({
895
+ placeholderText: /* @__PURE__ */ z.never().optional(),
896
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
897
897
  "0-based index from predefined `controls.inputs.options` which is initial selection."
898
898
  ).min(0).max(199)
899
899
  }),
900
- z.object({
901
- optionIndex: z.never().optional(),
902
- placeholderText: z.string().describe(
900
+ /* @__PURE__ */ z.object({
901
+ optionIndex: /* @__PURE__ */ z.never().optional(),
902
+ placeholderText: /* @__PURE__ */ z.string().describe(
903
903
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
904
904
  ).max(200)
905
905
  })
@@ -907,83 +907,83 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
907
907
  ).describe(
908
908
  "Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
909
909
  ).optional(),
910
- labels: z.array(
911
- z.object({
912
- name: z.string().describe("Field name.").optional(),
913
- label: z.string().describe("Field label.").optional()
910
+ labels: /* @__PURE__ */ z.array(
911
+ /* @__PURE__ */ z.object({
912
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
913
+ label: /* @__PURE__ */ z.string().describe("Field label.").optional()
914
914
  })
915
915
  ).optional()
916
916
  })
917
917
  ).optional(),
918
- label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
919
- orderIndex: z.number().int().describe(
918
+ label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
919
+ orderIndex: /* @__PURE__ */ z.number().int().describe(
920
920
  "Field controls are sorted by this value in ascending order."
921
921
  ).optional(),
922
- _id: z.string().describe("Unique control ID.").optional(),
923
- deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
922
+ _id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
923
+ deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
924
924
  })
925
925
  ).optional(),
926
- messages: z.object({
927
- rsvp: z.object({
928
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
929
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
930
- positiveMessages: z.object({
931
- title: z.string().describe("Main form title for positive response.").optional(),
932
- confirmation: z.object({
933
- title: z.string().describe("Confirmation message title.").optional(),
934
- message: z.string().describe("Confirmation message text.").optional(),
935
- addToCalendarActionLabel: z.string().describe(
926
+ messages: /* @__PURE__ */ z.object({
927
+ rsvp: /* @__PURE__ */ z.object({
928
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
929
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
930
+ positiveMessages: /* @__PURE__ */ z.object({
931
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
932
+ confirmation: /* @__PURE__ */ z.object({
933
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
934
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
935
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
936
936
  '"Add to calendar" call-to-action label text.'
937
937
  ).optional(),
938
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
938
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
939
939
  }).describe("Confirmation messages shown after registration.").optional()
940
940
  }).describe(
941
941
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
942
942
  ).optional(),
943
- waitlistMessages: z.object({
944
- title: z.string().describe("Main form title for positive response.").optional(),
945
- confirmation: z.object({
946
- title: z.string().describe("Confirmation message title.").optional(),
947
- message: z.string().describe("Confirmation message text.").optional(),
948
- addToCalendarActionLabel: z.string().describe(
943
+ waitlistMessages: /* @__PURE__ */ z.object({
944
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
945
+ confirmation: /* @__PURE__ */ z.object({
946
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
947
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
948
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
949
949
  '"Add to calendar" call-to-action label text.'
950
950
  ).optional(),
951
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
951
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
952
952
  }).describe("Confirmation messages shown after registration.").optional()
953
953
  }).describe(
954
954
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
955
955
  ).optional(),
956
- negativeMessages: z.object({
957
- title: z.string().describe("Main form title for negative response.").optional(),
958
- confirmation: z.object({
959
- title: z.string().describe("Confirmation message title.").optional(),
960
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
956
+ negativeMessages: /* @__PURE__ */ z.object({
957
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
958
+ confirmation: /* @__PURE__ */ z.object({
959
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
960
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
961
961
  }).describe("Confirmation messages shown after registration.").optional()
962
962
  }).describe(
963
963
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
964
964
  ).optional(),
965
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
965
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
966
966
  }).describe(
967
967
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
968
968
  ).optional(),
969
- checkout: z.object({
970
- title: z.string().describe("Main form title for response.").optional(),
971
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
972
- confirmation: z.object({
973
- title: z.string().describe("Confirmation message title.").optional(),
974
- message: z.string().describe("Confirmation message text.").optional(),
975
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
976
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
977
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
969
+ checkout: /* @__PURE__ */ z.object({
970
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
971
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
972
+ confirmation: /* @__PURE__ */ z.object({
973
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
974
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
975
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
976
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
977
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
978
978
  }).describe("Confirmation messages shown after checkout.").optional()
979
979
  }).describe("Checkout form messages.").optional(),
980
- registrationClosed: z.object({
981
- message: z.string().describe("Message shown when event registration is closed.").optional(),
982
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
980
+ registrationClosed: /* @__PURE__ */ z.object({
981
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
982
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
983
983
  }).describe("Messages shown when event registration is closed.").optional(),
984
- ticketsUnavailable: z.object({
985
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
986
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
984
+ ticketsUnavailable: /* @__PURE__ */ z.object({
985
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
986
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
987
987
  }).describe("Messages shown when event tickets are unavailable.").optional()
988
988
  }).describe(
989
989
  'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
@@ -991,84 +991,84 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
991
991
  }).describe("Modified event form").optional()
992
992
  });
993
993
  var UpdateMessagesRequest = /* @__PURE__ */ z.object({
994
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
994
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
995
995
  /^[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}$/,
996
996
  "Must be a valid GUID"
997
997
  ),
998
- options: z.object({
999
- fields: z.object({ paths: z.array(z.string()) }).describe(
998
+ options: /* @__PURE__ */ z.object({
999
+ fields: /* @__PURE__ */ z.object({ paths: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()) }).describe(
1000
1000
  "Set of field paths, specifying which parts of this resource to update.\nWhen fields are empty, request is interpreted as full update.\nBehavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics."
1001
1001
  ).optional().nullable(),
1002
- messages: z.object({
1003
- rsvp: z.object({
1004
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
1005
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
1006
- positiveMessages: z.object({
1007
- title: z.string().describe("Main form title for positive response.").optional(),
1008
- confirmation: z.object({
1009
- title: z.string().describe("Confirmation message title.").optional(),
1010
- message: z.string().describe("Confirmation message text.").optional(),
1011
- addToCalendarActionLabel: z.string().describe(
1002
+ messages: /* @__PURE__ */ z.object({
1003
+ rsvp: /* @__PURE__ */ z.object({
1004
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
1005
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
1006
+ positiveMessages: /* @__PURE__ */ z.object({
1007
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
1008
+ confirmation: /* @__PURE__ */ z.object({
1009
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1010
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1011
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
1012
1012
  '"Add to calendar" call-to-action label text.'
1013
1013
  ).optional(),
1014
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1014
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1015
1015
  }).describe("Confirmation messages shown after registration.").optional()
1016
1016
  }).describe(
1017
1017
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
1018
1018
  ).optional(),
1019
- waitlistMessages: z.object({
1020
- title: z.string().describe("Main form title for positive response.").optional(),
1021
- confirmation: z.object({
1022
- title: z.string().describe("Confirmation message title.").optional(),
1023
- message: z.string().describe("Confirmation message text.").optional(),
1024
- addToCalendarActionLabel: z.string().describe(
1019
+ waitlistMessages: /* @__PURE__ */ z.object({
1020
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
1021
+ confirmation: /* @__PURE__ */ z.object({
1022
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1023
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1024
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
1025
1025
  '"Add to calendar" call-to-action label text.'
1026
1026
  ).optional(),
1027
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1027
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1028
1028
  }).describe("Confirmation messages shown after registration.").optional()
1029
1029
  }).describe(
1030
1030
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
1031
1031
  ).optional(),
1032
- negativeMessages: z.object({
1033
- title: z.string().describe("Main form title for negative response.").optional(),
1034
- confirmation: z.object({
1035
- title: z.string().describe("Confirmation message title.").optional(),
1036
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1032
+ negativeMessages: /* @__PURE__ */ z.object({
1033
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
1034
+ confirmation: /* @__PURE__ */ z.object({
1035
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1036
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1037
1037
  }).describe("Confirmation messages shown after registration.").optional()
1038
1038
  }).describe(
1039
1039
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
1040
1040
  ).optional(),
1041
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
1041
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
1042
1042
  }).describe(
1043
1043
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
1044
1044
  ).optional(),
1045
- checkout: z.object({
1046
- title: z.string().describe("Main form title for response.").optional(),
1047
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
1048
- confirmation: z.object({
1049
- title: z.string().describe("Confirmation message title.").optional(),
1050
- message: z.string().describe("Confirmation message text.").optional(),
1051
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
1052
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
1053
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1045
+ checkout: /* @__PURE__ */ z.object({
1046
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
1047
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
1048
+ confirmation: /* @__PURE__ */ z.object({
1049
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1050
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1051
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
1052
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
1053
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1054
1054
  }).describe("Confirmation messages shown after checkout.").optional()
1055
1055
  }).describe("Checkout form messages.").optional(),
1056
- registrationClosed: z.object({
1057
- message: z.string().describe("Message shown when event registration is closed.").optional(),
1058
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
1056
+ registrationClosed: /* @__PURE__ */ z.object({
1057
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
1058
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
1059
1059
  }).describe("Messages shown when event registration is closed.").optional(),
1060
- ticketsUnavailable: z.object({
1061
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
1062
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
1060
+ ticketsUnavailable: /* @__PURE__ */ z.object({
1061
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
1062
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
1063
1063
  }).describe("Messages shown when event tickets are unavailable.").optional()
1064
1064
  }).describe("Set of configured form messages to update.").optional()
1065
1065
  }).describe("Optional fields.").optional()
1066
1066
  });
1067
1067
  var UpdateMessagesResponse = /* @__PURE__ */ z.object({
1068
- form: z.object({
1069
- controls: z.array(
1070
- z.object({
1071
- type: z.enum([
1068
+ form: /* @__PURE__ */ z.object({
1069
+ controls: /* @__PURE__ */ z.array(
1070
+ /* @__PURE__ */ z.object({
1071
+ type: /* @__PURE__ */ z.enum([
1072
1072
  "INPUT",
1073
1073
  "TEXTAREA",
1074
1074
  "DROPDOWN",
@@ -1080,26 +1080,26 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
1080
1080
  "ADDRESS_FULL",
1081
1081
  "DATE"
1082
1082
  ]).describe("Field control type.").optional(),
1083
- system: z.boolean().describe(
1083
+ system: /* @__PURE__ */ z.boolean().describe(
1084
1084
  "Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
1085
1085
  ).optional(),
1086
- name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
1087
- inputs: z.array(
1088
- z.object({
1089
- name: z.string().describe("Field name.").optional(),
1090
- array: z.boolean().describe(
1086
+ name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
1087
+ inputs: /* @__PURE__ */ z.array(
1088
+ /* @__PURE__ */ z.object({
1089
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
1090
+ array: /* @__PURE__ */ z.boolean().describe(
1091
1091
  "*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
1092
1092
  ).optional(),
1093
- label: z.string().describe("Main field label.").optional(),
1094
- additionalLabels: z.record(z.string(), z.string()).describe(
1093
+ label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
1094
+ additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
1095
1095
  "Additional labels for multi-valued fields such as address."
1096
1096
  ).optional(),
1097
- options: z.array(z.string()).optional(),
1098
- mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
1099
- maxLength: z.number().int().describe(
1097
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
1098
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
1099
+ maxLength: /* @__PURE__ */ z.number().int().describe(
1100
1100
  "Maximum number of accepted characters (relevant for text fields)."
1101
1101
  ).optional(),
1102
- type: z.enum([
1102
+ type: /* @__PURE__ */ z.enum([
1103
1103
  "TEXT",
1104
1104
  "NUMBER",
1105
1105
  "TEXT_ARRAY",
@@ -1108,25 +1108,25 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
1108
1108
  ]).describe(
1109
1109
  "Type which determines field format.\nUsed to validate submitted response."
1110
1110
  ).optional(),
1111
- maxSize: z.number().int().describe(
1111
+ maxSize: /* @__PURE__ */ z.number().int().describe(
1112
1112
  "The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
1113
1113
  ).optional().nullable(),
1114
- defaultOptionSelection: z.intersection(
1115
- z.object({}),
1116
- z.xor([
1117
- z.object({
1118
- optionIndex: z.never().optional(),
1119
- placeholderText: z.never().optional()
1114
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
1115
+ /* @__PURE__ */ z.object({}),
1116
+ /* @__PURE__ */ z.xor([
1117
+ /* @__PURE__ */ z.object({
1118
+ optionIndex: /* @__PURE__ */ z.never().optional(),
1119
+ placeholderText: /* @__PURE__ */ z.never().optional()
1120
1120
  }),
1121
- z.object({
1122
- placeholderText: z.never().optional(),
1123
- optionIndex: z.number().int().describe(
1121
+ /* @__PURE__ */ z.object({
1122
+ placeholderText: /* @__PURE__ */ z.never().optional(),
1123
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
1124
1124
  "0-based index from predefined `controls.inputs.options` which is initial selection."
1125
1125
  ).min(0).max(199)
1126
1126
  }),
1127
- z.object({
1128
- optionIndex: z.never().optional(),
1129
- placeholderText: z.string().describe(
1127
+ /* @__PURE__ */ z.object({
1128
+ optionIndex: /* @__PURE__ */ z.never().optional(),
1129
+ placeholderText: /* @__PURE__ */ z.string().describe(
1130
1130
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
1131
1131
  ).max(200)
1132
1132
  })
@@ -1134,83 +1134,83 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
1134
1134
  ).describe(
1135
1135
  "Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
1136
1136
  ).optional(),
1137
- labels: z.array(
1138
- z.object({
1139
- name: z.string().describe("Field name.").optional(),
1140
- label: z.string().describe("Field label.").optional()
1137
+ labels: /* @__PURE__ */ z.array(
1138
+ /* @__PURE__ */ z.object({
1139
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
1140
+ label: /* @__PURE__ */ z.string().describe("Field label.").optional()
1141
1141
  })
1142
1142
  ).optional()
1143
1143
  })
1144
1144
  ).optional(),
1145
- label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
1146
- orderIndex: z.number().int().describe(
1145
+ label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
1146
+ orderIndex: /* @__PURE__ */ z.number().int().describe(
1147
1147
  "Field controls are sorted by this value in ascending order."
1148
1148
  ).optional(),
1149
- _id: z.string().describe("Unique control ID.").optional(),
1150
- deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
1149
+ _id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
1150
+ deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
1151
1151
  })
1152
1152
  ).optional(),
1153
- messages: z.object({
1154
- rsvp: z.object({
1155
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
1156
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
1157
- positiveMessages: z.object({
1158
- title: z.string().describe("Main form title for positive response.").optional(),
1159
- confirmation: z.object({
1160
- title: z.string().describe("Confirmation message title.").optional(),
1161
- message: z.string().describe("Confirmation message text.").optional(),
1162
- addToCalendarActionLabel: z.string().describe(
1153
+ messages: /* @__PURE__ */ z.object({
1154
+ rsvp: /* @__PURE__ */ z.object({
1155
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
1156
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
1157
+ positiveMessages: /* @__PURE__ */ z.object({
1158
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
1159
+ confirmation: /* @__PURE__ */ z.object({
1160
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1161
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1162
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
1163
1163
  '"Add to calendar" call-to-action label text.'
1164
1164
  ).optional(),
1165
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1165
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1166
1166
  }).describe("Confirmation messages shown after registration.").optional()
1167
1167
  }).describe(
1168
1168
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
1169
1169
  ).optional(),
1170
- waitlistMessages: z.object({
1171
- title: z.string().describe("Main form title for positive response.").optional(),
1172
- confirmation: z.object({
1173
- title: z.string().describe("Confirmation message title.").optional(),
1174
- message: z.string().describe("Confirmation message text.").optional(),
1175
- addToCalendarActionLabel: z.string().describe(
1170
+ waitlistMessages: /* @__PURE__ */ z.object({
1171
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
1172
+ confirmation: /* @__PURE__ */ z.object({
1173
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1174
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1175
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
1176
1176
  '"Add to calendar" call-to-action label text.'
1177
1177
  ).optional(),
1178
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1178
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1179
1179
  }).describe("Confirmation messages shown after registration.").optional()
1180
1180
  }).describe(
1181
1181
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
1182
1182
  ).optional(),
1183
- negativeMessages: z.object({
1184
- title: z.string().describe("Main form title for negative response.").optional(),
1185
- confirmation: z.object({
1186
- title: z.string().describe("Confirmation message title.").optional(),
1187
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1183
+ negativeMessages: /* @__PURE__ */ z.object({
1184
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
1185
+ confirmation: /* @__PURE__ */ z.object({
1186
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1187
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1188
1188
  }).describe("Confirmation messages shown after registration.").optional()
1189
1189
  }).describe(
1190
1190
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
1191
1191
  ).optional(),
1192
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
1192
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
1193
1193
  }).describe(
1194
1194
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
1195
1195
  ).optional(),
1196
- checkout: z.object({
1197
- title: z.string().describe("Main form title for response.").optional(),
1198
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
1199
- confirmation: z.object({
1200
- title: z.string().describe("Confirmation message title.").optional(),
1201
- message: z.string().describe("Confirmation message text.").optional(),
1202
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
1203
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
1204
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1196
+ checkout: /* @__PURE__ */ z.object({
1197
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
1198
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
1199
+ confirmation: /* @__PURE__ */ z.object({
1200
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1201
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1202
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
1203
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
1204
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1205
1205
  }).describe("Confirmation messages shown after checkout.").optional()
1206
1206
  }).describe("Checkout form messages.").optional(),
1207
- registrationClosed: z.object({
1208
- message: z.string().describe("Message shown when event registration is closed.").optional(),
1209
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
1207
+ registrationClosed: /* @__PURE__ */ z.object({
1208
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
1209
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
1210
1210
  }).describe("Messages shown when event registration is closed.").optional(),
1211
- ticketsUnavailable: z.object({
1212
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
1213
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
1211
+ ticketsUnavailable: /* @__PURE__ */ z.object({
1212
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
1213
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
1214
1214
  }).describe("Messages shown when event tickets are unavailable.").optional()
1215
1215
  }).describe(
1216
1216
  'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
@@ -1218,16 +1218,16 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
1218
1218
  }).describe("Modified event form.").optional()
1219
1219
  });
1220
1220
  var PublishDraftRequest = /* @__PURE__ */ z.object({
1221
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
1221
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
1222
1222
  /^[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}$/,
1223
1223
  "Must be a valid GUID"
1224
1224
  )
1225
1225
  });
1226
1226
  var PublishDraftResponse = /* @__PURE__ */ z.object({
1227
- form: z.object({
1228
- controls: z.array(
1229
- z.object({
1230
- type: z.enum([
1227
+ form: /* @__PURE__ */ z.object({
1228
+ controls: /* @__PURE__ */ z.array(
1229
+ /* @__PURE__ */ z.object({
1230
+ type: /* @__PURE__ */ z.enum([
1231
1231
  "INPUT",
1232
1232
  "TEXTAREA",
1233
1233
  "DROPDOWN",
@@ -1239,26 +1239,26 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
1239
1239
  "ADDRESS_FULL",
1240
1240
  "DATE"
1241
1241
  ]).describe("Field control type.").optional(),
1242
- system: z.boolean().describe(
1242
+ system: /* @__PURE__ */ z.boolean().describe(
1243
1243
  "Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
1244
1244
  ).optional(),
1245
- name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
1246
- inputs: z.array(
1247
- z.object({
1248
- name: z.string().describe("Field name.").optional(),
1249
- array: z.boolean().describe(
1245
+ name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
1246
+ inputs: /* @__PURE__ */ z.array(
1247
+ /* @__PURE__ */ z.object({
1248
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
1249
+ array: /* @__PURE__ */ z.boolean().describe(
1250
1250
  "*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
1251
1251
  ).optional(),
1252
- label: z.string().describe("Main field label.").optional(),
1253
- additionalLabels: z.record(z.string(), z.string()).describe(
1252
+ label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
1253
+ additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
1254
1254
  "Additional labels for multi-valued fields such as address."
1255
1255
  ).optional(),
1256
- options: z.array(z.string()).optional(),
1257
- mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
1258
- maxLength: z.number().int().describe(
1256
+ options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
1257
+ mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
1258
+ maxLength: /* @__PURE__ */ z.number().int().describe(
1259
1259
  "Maximum number of accepted characters (relevant for text fields)."
1260
1260
  ).optional(),
1261
- type: z.enum([
1261
+ type: /* @__PURE__ */ z.enum([
1262
1262
  "TEXT",
1263
1263
  "NUMBER",
1264
1264
  "TEXT_ARRAY",
@@ -1267,25 +1267,25 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
1267
1267
  ]).describe(
1268
1268
  "Type which determines field format.\nUsed to validate submitted response."
1269
1269
  ).optional(),
1270
- maxSize: z.number().int().describe(
1270
+ maxSize: /* @__PURE__ */ z.number().int().describe(
1271
1271
  "The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
1272
1272
  ).optional().nullable(),
1273
- defaultOptionSelection: z.intersection(
1274
- z.object({}),
1275
- z.xor([
1276
- z.object({
1277
- optionIndex: z.never().optional(),
1278
- placeholderText: z.never().optional()
1273
+ defaultOptionSelection: /* @__PURE__ */ z.intersection(
1274
+ /* @__PURE__ */ z.object({}),
1275
+ /* @__PURE__ */ z.xor([
1276
+ /* @__PURE__ */ z.object({
1277
+ optionIndex: /* @__PURE__ */ z.never().optional(),
1278
+ placeholderText: /* @__PURE__ */ z.never().optional()
1279
1279
  }),
1280
- z.object({
1281
- placeholderText: z.never().optional(),
1282
- optionIndex: z.number().int().describe(
1280
+ /* @__PURE__ */ z.object({
1281
+ placeholderText: /* @__PURE__ */ z.never().optional(),
1282
+ optionIndex: /* @__PURE__ */ z.number().int().describe(
1283
1283
  "0-based index from predefined `controls.inputs.options` which is initial selection."
1284
1284
  ).min(0).max(199)
1285
1285
  }),
1286
- z.object({
1287
- optionIndex: z.never().optional(),
1288
- placeholderText: z.string().describe(
1286
+ /* @__PURE__ */ z.object({
1287
+ optionIndex: /* @__PURE__ */ z.never().optional(),
1288
+ placeholderText: /* @__PURE__ */ z.string().describe(
1289
1289
  'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
1290
1290
  ).max(200)
1291
1291
  })
@@ -1293,83 +1293,83 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
1293
1293
  ).describe(
1294
1294
  "Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
1295
1295
  ).optional(),
1296
- labels: z.array(
1297
- z.object({
1298
- name: z.string().describe("Field name.").optional(),
1299
- label: z.string().describe("Field label.").optional()
1296
+ labels: /* @__PURE__ */ z.array(
1297
+ /* @__PURE__ */ z.object({
1298
+ name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
1299
+ label: /* @__PURE__ */ z.string().describe("Field label.").optional()
1300
1300
  })
1301
1301
  ).optional()
1302
1302
  })
1303
1303
  ).optional(),
1304
- label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
1305
- orderIndex: z.number().int().describe(
1304
+ label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
1305
+ orderIndex: /* @__PURE__ */ z.number().int().describe(
1306
1306
  "Field controls are sorted by this value in ascending order."
1307
1307
  ).optional(),
1308
- _id: z.string().describe("Unique control ID.").optional(),
1309
- deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
1308
+ _id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
1309
+ deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
1310
1310
  })
1311
1311
  ).optional(),
1312
- messages: z.object({
1313
- rsvp: z.object({
1314
- rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
1315
- rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
1316
- positiveMessages: z.object({
1317
- title: z.string().describe("Main form title for positive response.").optional(),
1318
- confirmation: z.object({
1319
- title: z.string().describe("Confirmation message title.").optional(),
1320
- message: z.string().describe("Confirmation message text.").optional(),
1321
- addToCalendarActionLabel: z.string().describe(
1312
+ messages: /* @__PURE__ */ z.object({
1313
+ rsvp: /* @__PURE__ */ z.object({
1314
+ rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
1315
+ rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
1316
+ positiveMessages: /* @__PURE__ */ z.object({
1317
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
1318
+ confirmation: /* @__PURE__ */ z.object({
1319
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1320
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1321
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
1322
1322
  '"Add to calendar" call-to-action label text.'
1323
1323
  ).optional(),
1324
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1324
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1325
1325
  }).describe("Confirmation messages shown after registration.").optional()
1326
1326
  }).describe(
1327
1327
  'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
1328
1328
  ).optional(),
1329
- waitlistMessages: z.object({
1330
- title: z.string().describe("Main form title for positive response.").optional(),
1331
- confirmation: z.object({
1332
- title: z.string().describe("Confirmation message title.").optional(),
1333
- message: z.string().describe("Confirmation message text.").optional(),
1334
- addToCalendarActionLabel: z.string().describe(
1329
+ waitlistMessages: /* @__PURE__ */ z.object({
1330
+ title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
1331
+ confirmation: /* @__PURE__ */ z.object({
1332
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1333
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1334
+ addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
1335
1335
  '"Add to calendar" call-to-action label text.'
1336
1336
  ).optional(),
1337
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1337
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1338
1338
  }).describe("Confirmation messages shown after registration.").optional()
1339
1339
  }).describe(
1340
1340
  'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
1341
1341
  ).optional(),
1342
- negativeMessages: z.object({
1343
- title: z.string().describe("Main form title for negative response.").optional(),
1344
- confirmation: z.object({
1345
- title: z.string().describe("Confirmation message title.").optional(),
1346
- shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1342
+ negativeMessages: /* @__PURE__ */ z.object({
1343
+ title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
1344
+ confirmation: /* @__PURE__ */ z.object({
1345
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1346
+ shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1347
1347
  }).describe("Confirmation messages shown after registration.").optional()
1348
1348
  }).describe(
1349
1349
  'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
1350
1350
  ).optional(),
1351
- submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
1351
+ submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
1352
1352
  }).describe(
1353
1353
  "[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
1354
1354
  ).optional(),
1355
- checkout: z.object({
1356
- title: z.string().describe("Main form title for response.").optional(),
1357
- submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
1358
- confirmation: z.object({
1359
- title: z.string().describe("Confirmation message title.").optional(),
1360
- message: z.string().describe("Confirmation message text.").optional(),
1361
- downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
1362
- addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
1363
- shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
1355
+ checkout: /* @__PURE__ */ z.object({
1356
+ title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
1357
+ submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
1358
+ confirmation: /* @__PURE__ */ z.object({
1359
+ title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
1360
+ message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
1361
+ downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
1362
+ addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
1363
+ shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
1364
1364
  }).describe("Confirmation messages shown after checkout.").optional()
1365
1365
  }).describe("Checkout form messages.").optional(),
1366
- registrationClosed: z.object({
1367
- message: z.string().describe("Message shown when event registration is closed.").optional(),
1368
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
1366
+ registrationClosed: /* @__PURE__ */ z.object({
1367
+ message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
1368
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
1369
1369
  }).describe("Messages shown when event registration is closed.").optional(),
1370
- ticketsUnavailable: z.object({
1371
- message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
1372
- exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
1370
+ ticketsUnavailable: /* @__PURE__ */ z.object({
1371
+ message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
1372
+ exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
1373
1373
  }).describe("Messages shown when event tickets are unavailable.").optional()
1374
1374
  }).describe(
1375
1375
  'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
@@ -1377,7 +1377,7 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
1377
1377
  }).describe("Event form.").optional()
1378
1378
  });
1379
1379
  var DiscardDraftRequest = /* @__PURE__ */ z.object({
1380
- eventId: z.string().describe("Event ID to which the form belongs.").regex(
1380
+ eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
1381
1381
  /^[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}$/,
1382
1382
  "Must be a valid GUID"
1383
1383
  )