@linebundle-sdk/ts 1.0.0-rc.1 → 1.0.0-rc.10
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.
- package/CONTRIBUTING.md +26 -0
- package/FUNCTIONS.md +89 -0
- package/README.md +55 -0
- package/RUNTIMES.md +48 -0
- package/USAGE.md +20 -0
- package/esm/index.d.ts +7937 -3
- package/esm/index.js +4666 -2
- package/esm/index.js.map +1 -1
- package/package.json +6 -16
- package/tsup.config.ts +14 -0
- package/esm/client/client.gen.d.ts +0 -3
- package/esm/client/client.gen.d.ts.map +0 -1
- package/esm/client/client.gen.js +0 -236
- package/esm/client/client.gen.js.map +0 -1
- package/esm/client/index.d.ts +0 -9
- package/esm/client/index.d.ts.map +0 -1
- package/esm/client/index.js +0 -7
- package/esm/client/index.js.map +0 -1
- package/esm/client/types.gen.d.ts +0 -118
- package/esm/client/types.gen.d.ts.map +0 -1
- package/esm/client/types.gen.js +0 -3
- package/esm/client/types.gen.js.map +0 -1
- package/esm/client/utils.gen.d.ts +0 -34
- package/esm/client/utils.gen.d.ts.map +0 -1
- package/esm/client/utils.gen.js +0 -231
- package/esm/client/utils.gen.js.map +0 -1
- package/esm/client.gen.d.ts +0 -13
- package/esm/client.gen.d.ts.map +0 -1
- package/esm/client.gen.js +0 -4
- package/esm/client.gen.js.map +0 -1
- package/esm/core/auth.gen.d.ts +0 -19
- package/esm/core/auth.gen.d.ts.map +0 -1
- package/esm/core/auth.gen.js +0 -15
- package/esm/core/auth.gen.js.map +0 -1
- package/esm/core/bodySerializer.gen.d.ts +0 -26
- package/esm/core/bodySerializer.gen.d.ts.map +0 -1
- package/esm/core/bodySerializer.gen.js +0 -58
- package/esm/core/bodySerializer.gen.js.map +0 -1
- package/esm/core/params.gen.d.ts +0 -44
- package/esm/core/params.gen.d.ts.map +0 -1
- package/esm/core/params.gen.js +0 -101
- package/esm/core/params.gen.js.map +0 -1
- package/esm/core/pathSerializer.gen.d.ts +0 -34
- package/esm/core/pathSerializer.gen.d.ts.map +0 -1
- package/esm/core/pathSerializer.gen.js +0 -107
- package/esm/core/pathSerializer.gen.js.map +0 -1
- package/esm/core/queryKeySerializer.gen.d.ts +0 -19
- package/esm/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/esm/core/queryKeySerializer.gen.js +0 -93
- package/esm/core/queryKeySerializer.gen.js.map +0 -1
- package/esm/core/serverSentEvents.gen.d.ts +0 -72
- package/esm/core/serverSentEvents.gen.d.ts.map +0 -1
- package/esm/core/serverSentEvents.gen.js +0 -134
- package/esm/core/serverSentEvents.gen.js.map +0 -1
- package/esm/core/types.gen.d.ts +0 -79
- package/esm/core/types.gen.d.ts.map +0 -1
- package/esm/core/types.gen.js +0 -3
- package/esm/core/types.gen.js.map +0 -1
- package/esm/core/utils.gen.d.ts +0 -20
- package/esm/core/utils.gen.d.ts.map +0 -1
- package/esm/core/utils.gen.js +0 -88
- package/esm/core/utils.gen.js.map +0 -1
- package/esm/index.d.ts.map +0 -1
- package/esm/sdk.gen.d.ts +0 -1854
- package/esm/sdk.gen.d.ts.map +0 -1
- package/esm/sdk.gen.js +0 -3875
- package/esm/sdk.gen.js.map +0 -1
- package/esm/types.gen.d.ts +0 -12463
- package/esm/types.gen.d.ts.map +0 -1
- package/esm/types.gen.js +0 -3
- package/esm/types.gen.js.map +0 -1
- package/esm/zod.gen.d.ts +0 -8634
- package/esm/zod.gen.d.ts.map +0 -1
- package/esm/zod.gen.js +0 -4430
- package/esm/zod.gen.js.map +0 -1
package/esm/zod.gen.js
DELETED
|
@@ -1,4430 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import * as z from 'zod';
|
|
3
|
-
/**
|
|
4
|
-
* AddMemberRequest
|
|
5
|
-
*/
|
|
6
|
-
export const zAddMemberRequest = z.object({
|
|
7
|
-
user_id: z.uuid(),
|
|
8
|
-
role: z.string().optional().default('member')
|
|
9
|
-
});
|
|
10
|
-
/**
|
|
11
|
-
* AddPermissionRequest
|
|
12
|
-
*/
|
|
13
|
-
export const zAddPermissionRequest = z.object({
|
|
14
|
-
permission_code: z.string().min(1).max(255)
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* AgentType
|
|
18
|
-
*
|
|
19
|
-
* Enum representing different types of AI agents.
|
|
20
|
-
*/
|
|
21
|
-
export const zAgentType = z.enum([
|
|
22
|
-
'general',
|
|
23
|
-
'event_planner',
|
|
24
|
-
'content_writer',
|
|
25
|
-
'data_analyst',
|
|
26
|
-
'space_manager',
|
|
27
|
-
'moderator'
|
|
28
|
-
]);
|
|
29
|
-
/**
|
|
30
|
-
* AssistantResponse
|
|
31
|
-
*/
|
|
32
|
-
export const zAssistantResponse = z.object({
|
|
33
|
-
id: z.string(),
|
|
34
|
-
username: z.string(),
|
|
35
|
-
is_ai_assistant: z.boolean(),
|
|
36
|
-
owner_id: z.string(),
|
|
37
|
-
room_id: z.string().nullish()
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* AttendeeInfo
|
|
41
|
-
*
|
|
42
|
-
* Attendee information for API responses.
|
|
43
|
-
*/
|
|
44
|
-
export const zAttendeeInfo = z.object({
|
|
45
|
-
id: z.uuid(),
|
|
46
|
-
first_name: z.string().nullish(),
|
|
47
|
-
last_name: z.string().nullish(),
|
|
48
|
-
email: z.string().nullish(),
|
|
49
|
-
phone_primary: z.string().nullish(),
|
|
50
|
-
company: z.string().nullish(),
|
|
51
|
-
job_title: z.string().nullish(),
|
|
52
|
-
avatar_url: z.string().nullish()
|
|
53
|
-
});
|
|
54
|
-
/**
|
|
55
|
-
* AttendeeStatus
|
|
56
|
-
*
|
|
57
|
-
* Attendee status enumeration.
|
|
58
|
-
*/
|
|
59
|
-
export const zAttendeeStatus = z.enum([
|
|
60
|
-
'invited',
|
|
61
|
-
'confirmed',
|
|
62
|
-
'declined',
|
|
63
|
-
'tentative',
|
|
64
|
-
'checked_in'
|
|
65
|
-
]);
|
|
66
|
-
/**
|
|
67
|
-
* AvailabilityResponse
|
|
68
|
-
*
|
|
69
|
-
* Response schema for availability checks
|
|
70
|
-
*/
|
|
71
|
-
export const zAvailabilityResponse = z.object({
|
|
72
|
-
available: z.boolean(),
|
|
73
|
-
place_id: z.int(),
|
|
74
|
-
start_dt: z.iso.datetime(),
|
|
75
|
-
end_dt: z.iso.datetime()
|
|
76
|
-
});
|
|
77
|
-
/**
|
|
78
|
-
* AvatarUploadResponse
|
|
79
|
-
*/
|
|
80
|
-
export const zAvatarUploadResponse = z.object({
|
|
81
|
-
avatar_url: z.string(),
|
|
82
|
-
message: z.string()
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* BaseEventInfo
|
|
86
|
-
*
|
|
87
|
-
* Basic info about a base event when the current event is a milestone.
|
|
88
|
-
*/
|
|
89
|
-
export const zBaseEventInfo = z.object({
|
|
90
|
-
id: z.int(),
|
|
91
|
-
title: z.string(),
|
|
92
|
-
description: z.string().nullish(),
|
|
93
|
-
start_dt: z.string(),
|
|
94
|
-
end_dt: z.string(),
|
|
95
|
-
timezone: z.string()
|
|
96
|
-
});
|
|
97
|
-
/**
|
|
98
|
-
* Body_eventTimeline.createMilestone
|
|
99
|
-
*/
|
|
100
|
-
export const zBodyEventTimelineCreateMilestone = z.object({
|
|
101
|
-
request: z.string(),
|
|
102
|
-
file: z.string().nullish()
|
|
103
|
-
});
|
|
104
|
-
/**
|
|
105
|
-
* Body_events.create
|
|
106
|
-
*/
|
|
107
|
-
export const zBodyEventsCreate = z.object({
|
|
108
|
-
request: z.string(),
|
|
109
|
-
file: z.string().nullish()
|
|
110
|
-
});
|
|
111
|
-
/**
|
|
112
|
-
* Body_events.updateCover
|
|
113
|
-
*/
|
|
114
|
-
export const zBodyEventsUpdateCover = z.object({
|
|
115
|
-
file: z.string(),
|
|
116
|
-
theme: z.string().nullish()
|
|
117
|
-
});
|
|
118
|
-
/**
|
|
119
|
-
* Body_user.uploadAvatar
|
|
120
|
-
*/
|
|
121
|
-
export const zBodyUserUploadAvatar = z.object({
|
|
122
|
-
file: z.string()
|
|
123
|
-
});
|
|
124
|
-
/**
|
|
125
|
-
* BookingRead
|
|
126
|
-
*
|
|
127
|
-
* Response schema for booking data
|
|
128
|
-
*/
|
|
129
|
-
export const zBookingRead = z.object({
|
|
130
|
-
id: z.int(),
|
|
131
|
-
place_id: z.int(),
|
|
132
|
-
user_id: z.uuid(),
|
|
133
|
-
title: z.string(),
|
|
134
|
-
description: z.string().nullish(),
|
|
135
|
-
start_dt: z.string(),
|
|
136
|
-
end_dt: z.string(),
|
|
137
|
-
status: z.string(),
|
|
138
|
-
created_at: z.string(),
|
|
139
|
-
updated_at: z.string()
|
|
140
|
-
});
|
|
141
|
-
/**
|
|
142
|
-
* BulkUpdateParentRequest
|
|
143
|
-
*
|
|
144
|
-
* Request to update parent for multiple spaces
|
|
145
|
-
*/
|
|
146
|
-
export const zBulkUpdateParentRequest = z.object({
|
|
147
|
-
space_ids: z.array(z.int()),
|
|
148
|
-
parent_id: z.int().nullish()
|
|
149
|
-
});
|
|
150
|
-
/**
|
|
151
|
-
* ChatMetadata
|
|
152
|
-
*
|
|
153
|
-
* Named schema for arbitrary key-value metadata on chat rooms and messages.
|
|
154
|
-
*
|
|
155
|
-
* Using ``RootModel`` instead of an inline ``dict[str, Any]`` ensures FastAPI/Pydantic
|
|
156
|
-
* emits a single named ``ChatMetadata`` component (``$ref``) in the OpenAPI spec,
|
|
157
|
-
* preventing Speakeasy from flagging duplicate anonymous schemas.
|
|
158
|
-
*/
|
|
159
|
-
export const zChatMetadata = z.record(z.string(), z.unknown()).default({});
|
|
160
|
-
/**
|
|
161
|
-
* CheckAvailabilityRequest
|
|
162
|
-
*
|
|
163
|
-
* Request schema for checking place availability
|
|
164
|
-
*/
|
|
165
|
-
export const zCheckAvailabilityRequest = z.object({
|
|
166
|
-
place_id: z.int(),
|
|
167
|
-
start_dt: z.iso.datetime(),
|
|
168
|
-
end_dt: z.iso.datetime(),
|
|
169
|
-
exclude_booking_id: z.int().nullish()
|
|
170
|
-
});
|
|
171
|
-
/**
|
|
172
|
-
* ContactResponse
|
|
173
|
-
*
|
|
174
|
-
* Response model for a single contact.
|
|
175
|
-
*/
|
|
176
|
-
export const zContactResponse = z.object({
|
|
177
|
-
id: z.uuid(),
|
|
178
|
-
owner_id: z.uuid(),
|
|
179
|
-
org_id: z.uuid().nullish(),
|
|
180
|
-
first_name: z.string().nullish(),
|
|
181
|
-
last_name: z.string().nullish(),
|
|
182
|
-
middle_name: z.string().nullish(),
|
|
183
|
-
nickname: z.string().nullish(),
|
|
184
|
-
email: z.string().nullish(),
|
|
185
|
-
phone_primary: z.string().nullish(),
|
|
186
|
-
phone_secondary: z.string().nullish(),
|
|
187
|
-
phone_work: z.string().nullish(),
|
|
188
|
-
address_line1: z.string().nullish(),
|
|
189
|
-
address_line2: z.string().nullish(),
|
|
190
|
-
city: z.string().nullish(),
|
|
191
|
-
state_province: z.string().nullish(),
|
|
192
|
-
postal_code: z.string().nullish(),
|
|
193
|
-
country: z.string().nullish(),
|
|
194
|
-
company: z.string().nullish(),
|
|
195
|
-
job_title: z.string().nullish(),
|
|
196
|
-
website: z.string().nullish(),
|
|
197
|
-
notes: z.string().nullish(),
|
|
198
|
-
avatar_url: z.string().nullish(),
|
|
199
|
-
linked_user_id: z.uuid().nullish(),
|
|
200
|
-
is_favorite: z.boolean(),
|
|
201
|
-
tags: z.array(z.string()).nullish(),
|
|
202
|
-
created_at: z.iso.datetime(),
|
|
203
|
-
updated_at: z.iso.datetime()
|
|
204
|
-
});
|
|
205
|
-
/**
|
|
206
|
-
* ContactListResponse
|
|
207
|
-
*
|
|
208
|
-
* Response model for a list of contacts.
|
|
209
|
-
*/
|
|
210
|
-
export const zContactListResponse = z.object({
|
|
211
|
-
contacts: z.array(zContactResponse),
|
|
212
|
-
total: z.int(),
|
|
213
|
-
limit: z.int(),
|
|
214
|
-
offset: z.int()
|
|
215
|
-
});
|
|
216
|
-
/**
|
|
217
|
-
* ContactSearchResponse
|
|
218
|
-
*
|
|
219
|
-
* Response model for contact search results.
|
|
220
|
-
*/
|
|
221
|
-
export const zContactSearchResponse = z.object({
|
|
222
|
-
contacts: z.array(zContactResponse),
|
|
223
|
-
query: z.string(),
|
|
224
|
-
total: z.int()
|
|
225
|
-
});
|
|
226
|
-
/**
|
|
227
|
-
* CreateBookingRequest
|
|
228
|
-
*
|
|
229
|
-
* Request schema for creating a booking
|
|
230
|
-
*/
|
|
231
|
-
export const zCreateBookingRequest = z.object({
|
|
232
|
-
place_id: z.int(),
|
|
233
|
-
title: z.string(),
|
|
234
|
-
description: z.string().nullish(),
|
|
235
|
-
start_dt: z.iso.datetime(),
|
|
236
|
-
end_dt: z.iso.datetime()
|
|
237
|
-
});
|
|
238
|
-
/**
|
|
239
|
-
* CreateContactRequest
|
|
240
|
-
*
|
|
241
|
-
* Request model for creating a new contact.
|
|
242
|
-
*/
|
|
243
|
-
export const zCreateContactRequest = z.object({
|
|
244
|
-
org_id: z.uuid().nullish(),
|
|
245
|
-
first_name: z.string().max(255).nullish(),
|
|
246
|
-
last_name: z.string().max(255).nullish(),
|
|
247
|
-
middle_name: z.string().max(255).nullish(),
|
|
248
|
-
nickname: z.string().max(255).nullish(),
|
|
249
|
-
email: z.email().max(255).nullish(),
|
|
250
|
-
phone_primary: z.string().max(50).nullish(),
|
|
251
|
-
phone_secondary: z.string().max(50).nullish(),
|
|
252
|
-
phone_work: z.string().max(50).nullish(),
|
|
253
|
-
address_line1: z.string().max(255).nullish(),
|
|
254
|
-
address_line2: z.string().max(255).nullish(),
|
|
255
|
-
city: z.string().max(100).nullish(),
|
|
256
|
-
state_province: z.string().max(100).nullish(),
|
|
257
|
-
postal_code: z.string().max(20).nullish(),
|
|
258
|
-
country: z.string().max(100).nullish(),
|
|
259
|
-
company: z.string().max(255).nullish(),
|
|
260
|
-
job_title: z.string().max(255).nullish(),
|
|
261
|
-
website: z.string().max(255).nullish(),
|
|
262
|
-
notes: z.string().nullish(),
|
|
263
|
-
avatar_url: z.string().max(500).nullish(),
|
|
264
|
-
linked_user_id: z.string().nullish(),
|
|
265
|
-
is_favorite: z.boolean().optional().default(false),
|
|
266
|
-
tags: z.array(z.string()).nullish()
|
|
267
|
-
});
|
|
268
|
-
/**
|
|
269
|
-
* CreateDirectRoomRequest
|
|
270
|
-
*/
|
|
271
|
-
export const zCreateDirectRoomRequest = z.object({
|
|
272
|
-
other_user_id: z.uuid()
|
|
273
|
-
});
|
|
274
|
-
/**
|
|
275
|
-
* CreateEventRequest
|
|
276
|
-
*/
|
|
277
|
-
export const zCreateEventRequest = z.object({
|
|
278
|
-
title: z.string(),
|
|
279
|
-
description: z.string().nullish(),
|
|
280
|
-
start_dt: z.string(),
|
|
281
|
-
start_tm: z.string(),
|
|
282
|
-
end_dt: z.string(),
|
|
283
|
-
end_tm: z.string(),
|
|
284
|
-
timezone: z.string(),
|
|
285
|
-
visibility: z.int().nullish(),
|
|
286
|
-
keywords: z.array(z.string()).nullish(),
|
|
287
|
-
space_ids: z.array(z.int()).nullish(),
|
|
288
|
-
document_ids: z.array(z.uuid()).nullish(),
|
|
289
|
-
repeat_days: z.array(z.int()).nullish(),
|
|
290
|
-
repeat_presets: z.string().nullish(),
|
|
291
|
-
timeline_preset: z.string().nullish(),
|
|
292
|
-
latitude: z.number().gte(-90).lte(90).nullish(),
|
|
293
|
-
longitude: z.number().gte(-180).lte(180).nullish(),
|
|
294
|
-
address: z.string().nullish(),
|
|
295
|
-
event_metadata: z.record(z.string(), z.unknown()).nullish()
|
|
296
|
-
});
|
|
297
|
-
/**
|
|
298
|
-
* CreateGroupRoomRequest
|
|
299
|
-
*/
|
|
300
|
-
export const zCreateGroupRoomRequest = z.object({
|
|
301
|
-
name: z.string(),
|
|
302
|
-
description: z.string().nullish(),
|
|
303
|
-
visibility: z.int().optional().default(20)
|
|
304
|
-
});
|
|
305
|
-
/**
|
|
306
|
-
* CreateInviteRequest
|
|
307
|
-
*/
|
|
308
|
-
export const zCreateInviteRequest = z.object({
|
|
309
|
-
email: z.email(),
|
|
310
|
-
role: z.string().max(20).optional().default('member'),
|
|
311
|
-
expires_in_days: z.int().gte(1).lte(30).optional().default(7)
|
|
312
|
-
});
|
|
313
|
-
/**
|
|
314
|
-
* CreateOnlineMeetingRequest
|
|
315
|
-
*/
|
|
316
|
-
export const zCreateOnlineMeetingRequest = z.object({
|
|
317
|
-
title: z.string(),
|
|
318
|
-
description: z.string(),
|
|
319
|
-
visibility: z.int(),
|
|
320
|
-
keywords: z.array(z.string()).optional().default([]),
|
|
321
|
-
place_type: z.literal('online_meeting').optional().default('online_meeting'),
|
|
322
|
-
meeting_url: z.string()
|
|
323
|
-
});
|
|
324
|
-
/**
|
|
325
|
-
* CreateOrganizationRequest
|
|
326
|
-
*/
|
|
327
|
-
export const zCreateOrganizationRequest = z.object({
|
|
328
|
-
name: z.string().min(1).max(255),
|
|
329
|
-
plan: z.string().max(50).optional().default('free'),
|
|
330
|
-
allow_public_visibility: z.boolean().optional().default(true)
|
|
331
|
-
});
|
|
332
|
-
/**
|
|
333
|
-
* CreatePlaceResponseDTO
|
|
334
|
-
*/
|
|
335
|
-
export const zCreatePlaceResponseDto = z.object({
|
|
336
|
-
title: z.string(),
|
|
337
|
-
description: z.string(),
|
|
338
|
-
visibility: z.int(),
|
|
339
|
-
keywords: z.array(z.string())
|
|
340
|
-
});
|
|
341
|
-
/**
|
|
342
|
-
* CreateRoleRequest
|
|
343
|
-
*/
|
|
344
|
-
export const zCreateRoleRequest = z.object({
|
|
345
|
-
name: z.string().min(1).max(255),
|
|
346
|
-
description: z.string().max(500).nullish()
|
|
347
|
-
});
|
|
348
|
-
/**
|
|
349
|
-
* CreateRoomRequest
|
|
350
|
-
*/
|
|
351
|
-
export const zCreateRoomRequest = z.object({
|
|
352
|
-
title: z.string(),
|
|
353
|
-
description: z.string(),
|
|
354
|
-
visibility: z.int(),
|
|
355
|
-
keywords: z.array(z.string()).optional().default([]),
|
|
356
|
-
place_type: z.literal('room').optional().default('room'),
|
|
357
|
-
location_description: z.string(),
|
|
358
|
-
capacity: z.int().gte(1),
|
|
359
|
-
amenities: z.array(z.string()).optional().default([])
|
|
360
|
-
});
|
|
361
|
-
/**
|
|
362
|
-
* CreateRuleRequest
|
|
363
|
-
*
|
|
364
|
-
* Request to create automation rule.
|
|
365
|
-
*/
|
|
366
|
-
export const zCreateRuleRequest = z.object({
|
|
367
|
-
name: z.string().min(1).max(255),
|
|
368
|
-
description: z.string().nullish(),
|
|
369
|
-
scope: z.string(),
|
|
370
|
-
scope_id: z.uuid().nullish(),
|
|
371
|
-
enabled: z.boolean().optional().default(true),
|
|
372
|
-
priority: z.int().gte(0).lte(100).optional().default(0),
|
|
373
|
-
conditions: z.record(z.string(), z.unknown()),
|
|
374
|
-
actions: z.array(z.record(z.string(), z.unknown())).min(1),
|
|
375
|
-
schedule: z.record(z.string(), z.unknown()),
|
|
376
|
-
constraints: z.record(z.string(), z.unknown()).nullish(),
|
|
377
|
-
metadata: z.record(z.string(), z.unknown()).nullish()
|
|
378
|
-
});
|
|
379
|
-
/**
|
|
380
|
-
* CreateSessionRequest
|
|
381
|
-
*/
|
|
382
|
-
export const zCreateSessionRequest = z.object({
|
|
383
|
-
agent_type: zAgentType.optional().default('general'),
|
|
384
|
-
title: z.string().nullish(),
|
|
385
|
-
model: z.string().optional().default('gpt-4o'),
|
|
386
|
-
temperature: z.number().gte(0).lte(2).optional().default(0.7),
|
|
387
|
-
system_prompt: z.string().nullish()
|
|
388
|
-
});
|
|
389
|
-
/**
|
|
390
|
-
* CreateSpaceRequest
|
|
391
|
-
*/
|
|
392
|
-
export const zCreateSpaceRequest = z.object({
|
|
393
|
-
title: z.string(),
|
|
394
|
-
description: z.string(),
|
|
395
|
-
timezone: z.string(),
|
|
396
|
-
visibility: z.int()
|
|
397
|
-
});
|
|
398
|
-
/**
|
|
399
|
-
* CreateSpaceResponseDTO
|
|
400
|
-
*/
|
|
401
|
-
export const zCreateSpaceResponseDto = z.object({
|
|
402
|
-
id: z.int(),
|
|
403
|
-
title: z.string(),
|
|
404
|
-
description: z.string(),
|
|
405
|
-
timezone: z.string(),
|
|
406
|
-
visibility: z.int().nullish(),
|
|
407
|
-
creator_id: z.string().nullish()
|
|
408
|
-
});
|
|
409
|
-
/**
|
|
410
|
-
* CreateSpaceWithParentRequest
|
|
411
|
-
*
|
|
412
|
-
* Request to create a space with parent relationship
|
|
413
|
-
*/
|
|
414
|
-
export const zCreateSpaceWithParentRequest = z.object({
|
|
415
|
-
title: z.string().min(1).max(255),
|
|
416
|
-
description: z.string().optional().default(''),
|
|
417
|
-
timezone: z.string().optional().default('UTC'),
|
|
418
|
-
visibility: z.int().optional().default(10),
|
|
419
|
-
parent_id: z.int().nullish(),
|
|
420
|
-
inheritance_settings: z.record(z.string(), z.unknown()).nullish().default({
|
|
421
|
-
inherit_visibility: true,
|
|
422
|
-
inherit_members: true,
|
|
423
|
-
inherit_permissions: true,
|
|
424
|
-
inherit_timezone: true
|
|
425
|
-
})
|
|
426
|
-
});
|
|
427
|
-
/**
|
|
428
|
-
* EventAnalyticTotal
|
|
429
|
-
*/
|
|
430
|
-
export const zEventAnalyticTotal = z.object({
|
|
431
|
-
total_count: z.int()
|
|
432
|
-
});
|
|
433
|
-
/**
|
|
434
|
-
* EventAttendeeCreate
|
|
435
|
-
*
|
|
436
|
-
* Pydantic model for creating a new event attendee.
|
|
437
|
-
*/
|
|
438
|
-
export const zEventAttendeeCreate = z.object({
|
|
439
|
-
status: zAttendeeStatus.optional().default('invited'),
|
|
440
|
-
notes: z.string().max(1000).nullish(),
|
|
441
|
-
contact_id: z.uuid()
|
|
442
|
-
});
|
|
443
|
-
/**
|
|
444
|
-
* EventAttendeeRead
|
|
445
|
-
*
|
|
446
|
-
* Pydantic model for reading event attendee data.
|
|
447
|
-
*/
|
|
448
|
-
export const zEventAttendeeRead = z.object({
|
|
449
|
-
status: zAttendeeStatus.optional().default('invited'),
|
|
450
|
-
notes: z.string().max(1000).nullish(),
|
|
451
|
-
id: z.int(),
|
|
452
|
-
event_id: z.int(),
|
|
453
|
-
contact_id: z.uuid(),
|
|
454
|
-
is_checked_in: z.boolean(),
|
|
455
|
-
checked_in_at: z.iso.datetime().nullish(),
|
|
456
|
-
invited_at: z.iso.datetime().nullish(),
|
|
457
|
-
responded_at: z.iso.datetime().nullish(),
|
|
458
|
-
created_at: z.iso.datetime(),
|
|
459
|
-
updated_at: z.iso.datetime(),
|
|
460
|
-
contact: zAttendeeInfo.nullish()
|
|
461
|
-
});
|
|
462
|
-
/**
|
|
463
|
-
* EventAttendeeList
|
|
464
|
-
*
|
|
465
|
-
* Model for list of attendees with contact info.
|
|
466
|
-
*/
|
|
467
|
-
export const zEventAttendeeList = z.object({
|
|
468
|
-
attendees: z.array(zEventAttendeeRead).optional(),
|
|
469
|
-
total: z.int()
|
|
470
|
-
});
|
|
471
|
-
/**
|
|
472
|
-
* EventAttendeeUpdate
|
|
473
|
-
*
|
|
474
|
-
* Pydantic model for updating an existing event attendee.
|
|
475
|
-
*/
|
|
476
|
-
export const zEventAttendeeUpdate = z.object({
|
|
477
|
-
status: zAttendeeStatus.optional().default('invited'),
|
|
478
|
-
notes: z.string().max(1000).nullish()
|
|
479
|
-
});
|
|
480
|
-
/**
|
|
481
|
-
* EventLocationFilter
|
|
482
|
-
*
|
|
483
|
-
* Location-based filtering options for events.
|
|
484
|
-
*/
|
|
485
|
-
export const zEventLocationFilter = z.object({
|
|
486
|
-
latitude: z.number().gte(-90).lte(90).nullish(),
|
|
487
|
-
longitude: z.number().gte(-180).lte(180).nullish(),
|
|
488
|
-
radius_km: z.number().gte(0).lte(20037).nullish(),
|
|
489
|
-
has_location: z.boolean().nullish(),
|
|
490
|
-
address_contains: z.string().nullish()
|
|
491
|
-
});
|
|
492
|
-
/**
|
|
493
|
-
* EventPaginationOptions
|
|
494
|
-
*
|
|
495
|
-
* Pagination options for event queries.
|
|
496
|
-
*/
|
|
497
|
-
export const zEventPaginationOptions = z.object({
|
|
498
|
-
limit: z.int().gte(1).lte(1000).optional().default(10),
|
|
499
|
-
offset: z.int().gte(0).optional().default(0)
|
|
500
|
-
});
|
|
501
|
-
/**
|
|
502
|
-
* EventPreviewDTO
|
|
503
|
-
*/
|
|
504
|
-
export const zEventPreviewDto = z.object({
|
|
505
|
-
id: z.int(),
|
|
506
|
-
title: z.string(),
|
|
507
|
-
start_dt: z.string().nullish(),
|
|
508
|
-
end_dt: z.string().nullish(),
|
|
509
|
-
next_milestone: z.string().nullish(),
|
|
510
|
-
next_milestone_date: z.string().nullish(),
|
|
511
|
-
status: z.string(),
|
|
512
|
-
health: z.string().optional().default('healthy'),
|
|
513
|
-
attendee_count: z.int().optional().default(0)
|
|
514
|
-
});
|
|
515
|
-
/**
|
|
516
|
-
* EventRead
|
|
517
|
-
*
|
|
518
|
-
* Schema for reading Event data.
|
|
519
|
-
*
|
|
520
|
-
* This model represents the public API response for an event, including
|
|
521
|
-
* calculated fields like attendee counts and formatted timestamps.
|
|
522
|
-
*/
|
|
523
|
-
export const zEventRead = z.object({
|
|
524
|
-
id: z.int(),
|
|
525
|
-
title: z.string(),
|
|
526
|
-
description: z.string().nullish(),
|
|
527
|
-
is_deleted: z.boolean(),
|
|
528
|
-
is_locked: z.boolean(),
|
|
529
|
-
creator_id: z.uuid(),
|
|
530
|
-
org_id: z.uuid().nullish(),
|
|
531
|
-
created_dt: z.string(),
|
|
532
|
-
start_dt: z.string(),
|
|
533
|
-
end_dt: z.string(),
|
|
534
|
-
timezone: z.string(),
|
|
535
|
-
visibility: z.int().nullish(),
|
|
536
|
-
keywords: z.array(z.string()).nullish(),
|
|
537
|
-
url_shortcut: z.string().nullish(),
|
|
538
|
-
own_map_url: z.string(),
|
|
539
|
-
subcontrib_speakers_can_submit: z.boolean(),
|
|
540
|
-
repeat_days: z.array(z.int()).nullish(),
|
|
541
|
-
repeat_presets: z.string().nullish(),
|
|
542
|
-
timeline_preset: z.string().nullish(),
|
|
543
|
-
attendee_count: z.int().optional().default(0),
|
|
544
|
-
latitude: z.number().nullish(),
|
|
545
|
-
longitude: z.number().nullish(),
|
|
546
|
-
address: z.string().nullish(),
|
|
547
|
-
event_metadata: z.record(z.string(), z.unknown()).nullish(),
|
|
548
|
-
dependencies: z.array(z.unknown()).optional(),
|
|
549
|
-
documents: z.array(z.string()).optional(),
|
|
550
|
-
created_at: z.string(),
|
|
551
|
-
updated_at: z.string(),
|
|
552
|
-
base_events: z.array(zBaseEventInfo).optional()
|
|
553
|
-
});
|
|
554
|
-
/**
|
|
555
|
-
* EventRelationshipFilter
|
|
556
|
-
*
|
|
557
|
-
* Relationship-based filtering options for events.
|
|
558
|
-
*/
|
|
559
|
-
export const zEventRelationshipFilter = z.object({
|
|
560
|
-
space_ids: z.array(z.int()).nullish(),
|
|
561
|
-
document_ids: z.array(z.uuid()).nullish(),
|
|
562
|
-
has_documents: z.boolean().nullish(),
|
|
563
|
-
has_spaces: z.boolean().nullish(),
|
|
564
|
-
has_timelines: z.boolean().nullish()
|
|
565
|
-
});
|
|
566
|
-
/**
|
|
567
|
-
* EventRepeatFilter
|
|
568
|
-
*
|
|
569
|
-
* Recurrence/repeat-based filtering options for events.
|
|
570
|
-
*/
|
|
571
|
-
export const zEventRepeatFilter = z.object({
|
|
572
|
-
repeat_days: z.array(z.int()).nullish(),
|
|
573
|
-
repeat_presets: z.array(z.string()).nullish(),
|
|
574
|
-
is_recurring: z.boolean().nullish(),
|
|
575
|
-
timeline_preset: z.array(z.string()).nullish()
|
|
576
|
-
});
|
|
577
|
-
/**
|
|
578
|
-
* EventSortFieldConfig
|
|
579
|
-
*
|
|
580
|
-
* Individual sort field configuration.
|
|
581
|
-
*/
|
|
582
|
-
export const zEventSortFieldConfig = z.object({
|
|
583
|
-
field: z.enum([
|
|
584
|
-
'id',
|
|
585
|
-
'title',
|
|
586
|
-
'description',
|
|
587
|
-
'created_dt',
|
|
588
|
-
'start_dt',
|
|
589
|
-
'end_dt',
|
|
590
|
-
'visibility',
|
|
591
|
-
'creator_id',
|
|
592
|
-
'is_deleted',
|
|
593
|
-
'is_locked',
|
|
594
|
-
'latitude',
|
|
595
|
-
'longitude'
|
|
596
|
-
]),
|
|
597
|
-
order: z.enum(['asc', 'desc']).optional()
|
|
598
|
-
});
|
|
599
|
-
/**
|
|
600
|
-
* EventSortOptions
|
|
601
|
-
*
|
|
602
|
-
* Sorting options for event queries - supports multiple sort fields.
|
|
603
|
-
*/
|
|
604
|
-
export const zEventSortOptions = z.object({
|
|
605
|
-
sort_by: z.enum([
|
|
606
|
-
'id',
|
|
607
|
-
'title',
|
|
608
|
-
'description',
|
|
609
|
-
'created_dt',
|
|
610
|
-
'start_dt',
|
|
611
|
-
'end_dt',
|
|
612
|
-
'visibility',
|
|
613
|
-
'creator_id',
|
|
614
|
-
'is_deleted',
|
|
615
|
-
'is_locked',
|
|
616
|
-
'latitude',
|
|
617
|
-
'longitude'
|
|
618
|
-
]).nullish(),
|
|
619
|
-
sort_order: z.enum(['asc', 'desc']).nullish(),
|
|
620
|
-
sorts: z.array(zEventSortFieldConfig).nullish()
|
|
621
|
-
});
|
|
622
|
-
/**
|
|
623
|
-
* EventStatusFilter
|
|
624
|
-
*
|
|
625
|
-
* Status-based filtering options for events.
|
|
626
|
-
*/
|
|
627
|
-
export const zEventStatusFilter = z.object({
|
|
628
|
-
visibility: z.array(z.int()).nullish(),
|
|
629
|
-
is_deleted: z.boolean().nullish(),
|
|
630
|
-
is_locked: z.boolean().nullish(),
|
|
631
|
-
creator_ids: z.array(z.string()).nullish()
|
|
632
|
-
});
|
|
633
|
-
/**
|
|
634
|
-
* EventTextFilter
|
|
635
|
-
*
|
|
636
|
-
* Text-based filtering options for events.
|
|
637
|
-
*/
|
|
638
|
-
export const zEventTextFilter = z.object({
|
|
639
|
-
search: z.string().nullish(),
|
|
640
|
-
title: z.string().nullish(),
|
|
641
|
-
description: z.string().nullish(),
|
|
642
|
-
keywords: z.array(z.string()).nullish()
|
|
643
|
-
});
|
|
644
|
-
/**
|
|
645
|
-
* ExecuteRuleRequest
|
|
646
|
-
*
|
|
647
|
-
* Request to manually execute a rule.
|
|
648
|
-
*/
|
|
649
|
-
export const zExecuteRuleRequest = z.object({
|
|
650
|
-
trigger_type: z.string().optional().default('MANUAL'),
|
|
651
|
-
trigger_context: z.record(z.string(), z.unknown()).optional()
|
|
652
|
-
});
|
|
653
|
-
/**
|
|
654
|
-
* ExecuteRuleResponse
|
|
655
|
-
*
|
|
656
|
-
* Response from rule execution.
|
|
657
|
-
*/
|
|
658
|
-
export const zExecuteRuleResponse = z.object({
|
|
659
|
-
execution_id: z.uuid(),
|
|
660
|
-
status: z.string(),
|
|
661
|
-
conditions_met: z.boolean().nullish(),
|
|
662
|
-
condition_results: z.array(z.record(z.string(), z.unknown())).nullish(),
|
|
663
|
-
action_results: z.array(z.record(z.string(), z.unknown())).nullish(),
|
|
664
|
-
error: z.string().nullish(),
|
|
665
|
-
cached: z.boolean().optional().default(false)
|
|
666
|
-
});
|
|
667
|
-
/**
|
|
668
|
-
* ExecutionResponse
|
|
669
|
-
*
|
|
670
|
-
* Rule execution response.
|
|
671
|
-
*/
|
|
672
|
-
export const zExecutionResponse = z.object({
|
|
673
|
-
id: z.uuid(),
|
|
674
|
-
rule_id: z.uuid(),
|
|
675
|
-
org_id: z.uuid().nullable(),
|
|
676
|
-
creator_id: z.string(),
|
|
677
|
-
execution_key: z.string(),
|
|
678
|
-
trigger_type: z.string(),
|
|
679
|
-
trigger_context: z.record(z.string(), z.unknown()).nullable(),
|
|
680
|
-
status: z.string(),
|
|
681
|
-
started_at: z.iso.datetime().nullable(),
|
|
682
|
-
completed_at: z.iso.datetime().nullable(),
|
|
683
|
-
condition_results: z.record(z.string(), z.unknown()).nullable(),
|
|
684
|
-
action_results: z.record(z.string(), z.unknown()).nullable(),
|
|
685
|
-
error_message: z.string().nullable(),
|
|
686
|
-
retry_count: z.int(),
|
|
687
|
-
created_at: z.iso.datetime()
|
|
688
|
-
});
|
|
689
|
-
/**
|
|
690
|
-
* FilterOperator
|
|
691
|
-
*
|
|
692
|
-
* Supported filter operators for building query conditions.
|
|
693
|
-
*/
|
|
694
|
-
export const zFilterOperator = z.enum([
|
|
695
|
-
'eq',
|
|
696
|
-
'ne',
|
|
697
|
-
'gt',
|
|
698
|
-
'gte',
|
|
699
|
-
'lt',
|
|
700
|
-
'lte',
|
|
701
|
-
'contains',
|
|
702
|
-
'icontains',
|
|
703
|
-
'startswith',
|
|
704
|
-
'endswith',
|
|
705
|
-
'in',
|
|
706
|
-
'not_in',
|
|
707
|
-
'is_null',
|
|
708
|
-
'is_not_null',
|
|
709
|
-
'between',
|
|
710
|
-
'regex'
|
|
711
|
-
]);
|
|
712
|
-
/**
|
|
713
|
-
* EventDateFilter
|
|
714
|
-
*
|
|
715
|
-
* Date-based filtering options for events.
|
|
716
|
-
*/
|
|
717
|
-
export const zEventDateFilter = z.object({
|
|
718
|
-
start_date: z.iso.datetime().nullish(),
|
|
719
|
-
end_date: z.iso.datetime().nullish(),
|
|
720
|
-
created_after: z.iso.datetime().nullish(),
|
|
721
|
-
created_before: z.iso.datetime().nullish(),
|
|
722
|
-
date_operator: zFilterOperator.optional().default('between')
|
|
723
|
-
});
|
|
724
|
-
/**
|
|
725
|
-
* EventAdvancedFilters
|
|
726
|
-
*
|
|
727
|
-
* Complete advanced filtering options for events.
|
|
728
|
-
*/
|
|
729
|
-
export const zEventAdvancedFilters = z.object({
|
|
730
|
-
date_filters: zEventDateFilter.nullish(),
|
|
731
|
-
text_filters: zEventTextFilter.nullish(),
|
|
732
|
-
status_filters: zEventStatusFilter.nullish(),
|
|
733
|
-
relationship_filters: zEventRelationshipFilter.nullish(),
|
|
734
|
-
repeat_filters: zEventRepeatFilter.nullish(),
|
|
735
|
-
location_filters: zEventLocationFilter.nullish(),
|
|
736
|
-
custom_conditions: z.string().nullish()
|
|
737
|
-
});
|
|
738
|
-
/**
|
|
739
|
-
* EventFilterRequest
|
|
740
|
-
*
|
|
741
|
-
* Complete filter request for POST endpoint.
|
|
742
|
-
*/
|
|
743
|
-
export const zEventFilterRequest = z.object({
|
|
744
|
-
filters: zEventAdvancedFilters.nullish(),
|
|
745
|
-
sort: zEventSortOptions.nullish(),
|
|
746
|
-
pagination: zEventPaginationOptions.nullish()
|
|
747
|
-
});
|
|
748
|
-
/**
|
|
749
|
-
* GetPlaceListResponseDTO
|
|
750
|
-
*/
|
|
751
|
-
export const zGetPlaceListResponseDto = z.object({
|
|
752
|
-
id: z.int(),
|
|
753
|
-
title: z.string(),
|
|
754
|
-
description: z.string(),
|
|
755
|
-
visibility: z.int(),
|
|
756
|
-
keywords: z.array(z.string())
|
|
757
|
-
});
|
|
758
|
-
/**
|
|
759
|
-
* GetSpaceListResponseDTO
|
|
760
|
-
*/
|
|
761
|
-
export const zGetSpaceListResponseDto = z.object({
|
|
762
|
-
id: z.int(),
|
|
763
|
-
title: z.string(),
|
|
764
|
-
description: z.string(),
|
|
765
|
-
created_at: z.string(),
|
|
766
|
-
updated_at: z.string(),
|
|
767
|
-
timezone: z.string(),
|
|
768
|
-
visibility: z.int().nullish(),
|
|
769
|
-
creator_id: z.string().nullish(),
|
|
770
|
-
org_id: z.string().nullish(),
|
|
771
|
-
parent_id: z.int().nullish(),
|
|
772
|
-
children: z.array(z.int()).optional().default([]),
|
|
773
|
-
inheritance_settings: z.record(z.string(), z.unknown()).nullish(),
|
|
774
|
-
member_count: z.int().optional().default(0),
|
|
775
|
-
event_count: z.int().optional().default(0),
|
|
776
|
-
is_member: z.boolean().optional().default(false),
|
|
777
|
-
user_role: z.string().nullish()
|
|
778
|
-
});
|
|
779
|
-
/**
|
|
780
|
-
* GetUserListResponseDTO
|
|
781
|
-
*/
|
|
782
|
-
export const zGetUserListResponseDto = z.object({
|
|
783
|
-
id: z.string(),
|
|
784
|
-
email: z.string(),
|
|
785
|
-
username: z.string().nullish()
|
|
786
|
-
});
|
|
787
|
-
/**
|
|
788
|
-
* InviteRead
|
|
789
|
-
*
|
|
790
|
-
* Schema representing an organization invitation.
|
|
791
|
-
*/
|
|
792
|
-
export const zInviteRead = z.object({
|
|
793
|
-
id: z.string(),
|
|
794
|
-
org_id: z.string(),
|
|
795
|
-
email: z.string(),
|
|
796
|
-
role: z.string().optional().default('member'),
|
|
797
|
-
status: z.string().optional().default('pending'),
|
|
798
|
-
inviter_id: z.string(),
|
|
799
|
-
expires_at: z.iso.datetime().nullish(),
|
|
800
|
-
created_at: z.iso.datetime().nullish()
|
|
801
|
-
});
|
|
802
|
-
/**
|
|
803
|
-
* LocationResponse
|
|
804
|
-
*/
|
|
805
|
-
export const zLocationResponse = z.object({
|
|
806
|
-
latitude: z.number().nullish(),
|
|
807
|
-
longitude: z.number().nullish(),
|
|
808
|
-
address: z.string().nullish()
|
|
809
|
-
});
|
|
810
|
-
/**
|
|
811
|
-
* LocationUpdateSchema
|
|
812
|
-
*/
|
|
813
|
-
export const zLocationUpdateSchema = z.object({
|
|
814
|
-
latitude: z.number().nullish(),
|
|
815
|
-
longitude: z.number().nullish(),
|
|
816
|
-
address: z.string().nullish()
|
|
817
|
-
});
|
|
818
|
-
/**
|
|
819
|
-
* MemberResponse
|
|
820
|
-
*/
|
|
821
|
-
export const zMemberResponse = z.object({
|
|
822
|
-
id: z.uuid(),
|
|
823
|
-
room_id: z.uuid(),
|
|
824
|
-
user_id: z.uuid(),
|
|
825
|
-
role: z.string(),
|
|
826
|
-
created_at: z.iso.datetime(),
|
|
827
|
-
updated_at: z.iso.datetime()
|
|
828
|
-
});
|
|
829
|
-
/**
|
|
830
|
-
* MembersListResponse
|
|
831
|
-
*/
|
|
832
|
-
export const zMembersListResponse = z.object({
|
|
833
|
-
members: z.array(zMemberResponse),
|
|
834
|
-
total: z.int()
|
|
835
|
-
});
|
|
836
|
-
/**
|
|
837
|
-
* MetricBreakdown
|
|
838
|
-
*/
|
|
839
|
-
export const zMetricBreakdown = z.object({
|
|
840
|
-
total: z.int().optional().default(0),
|
|
841
|
-
assigned: z.int().optional().default(0),
|
|
842
|
-
unassigned: z.int().optional().default(0)
|
|
843
|
-
});
|
|
844
|
-
/**
|
|
845
|
-
* OrgCostSummary
|
|
846
|
-
*/
|
|
847
|
-
export const zOrgCostSummary = z.object({
|
|
848
|
-
org_id: z.uuid(),
|
|
849
|
-
total_cost_usd: z.number(),
|
|
850
|
-
total_tokens: z.int(),
|
|
851
|
-
session_count: z.int(),
|
|
852
|
-
user_count: z.int(),
|
|
853
|
-
start_date: z.iso.datetime().nullish(),
|
|
854
|
-
end_date: z.iso.datetime().nullish()
|
|
855
|
-
});
|
|
856
|
-
/**
|
|
857
|
-
* OrganizationRead
|
|
858
|
-
*/
|
|
859
|
-
export const zOrganizationRead = z.object({
|
|
860
|
-
id: z.uuid(),
|
|
861
|
-
name: z.string(),
|
|
862
|
-
zitadel_org_id: z.string(),
|
|
863
|
-
plan: z.string(),
|
|
864
|
-
allow_public_visibility: z.boolean().optional().default(false),
|
|
865
|
-
created_at: z.iso.datetime(),
|
|
866
|
-
updated_at: z.iso.datetime()
|
|
867
|
-
});
|
|
868
|
-
/**
|
|
869
|
-
* OrganizationResponse
|
|
870
|
-
*/
|
|
871
|
-
export const zOrganizationResponse = z.object({
|
|
872
|
-
id: z.uuid(),
|
|
873
|
-
name: z.string(),
|
|
874
|
-
zitadel_org_id: z.string(),
|
|
875
|
-
plan: z.string(),
|
|
876
|
-
allow_public_visibility: z.boolean(),
|
|
877
|
-
created_at: z.iso.datetime(),
|
|
878
|
-
updated_at: z.iso.datetime()
|
|
879
|
-
});
|
|
880
|
-
/**
|
|
881
|
-
* PaginatedSpaceListResponseDTO
|
|
882
|
-
*
|
|
883
|
-
* Paginated response for space list to support infinite scrolling
|
|
884
|
-
*/
|
|
885
|
-
export const zPaginatedSpaceListResponseDto = z.object({
|
|
886
|
-
items: z.array(zGetSpaceListResponseDto),
|
|
887
|
-
has_next: z.boolean(),
|
|
888
|
-
has_prev: z.boolean(),
|
|
889
|
-
total_count: z.int(),
|
|
890
|
-
next_cursor: z.int().nullish(),
|
|
891
|
-
prev_cursor: z.int().nullish()
|
|
892
|
-
});
|
|
893
|
-
/**
|
|
894
|
-
* PaginationMeta
|
|
895
|
-
*/
|
|
896
|
-
export const zPaginationMeta = z.object({
|
|
897
|
-
total: z.int().nullish(),
|
|
898
|
-
limit: z.int(),
|
|
899
|
-
offset: z.int(),
|
|
900
|
-
has_next: z.boolean(),
|
|
901
|
-
has_prev: z.boolean(),
|
|
902
|
-
next_cursor: z.string().nullish()
|
|
903
|
-
});
|
|
904
|
-
/**
|
|
905
|
-
* PermissionAuditStats
|
|
906
|
-
*
|
|
907
|
-
* Response schema for permission audit statistics.
|
|
908
|
-
*/
|
|
909
|
-
export const zPermissionAuditStats = z.object({
|
|
910
|
-
total_checks: z.int(),
|
|
911
|
-
granted_count: z.int(),
|
|
912
|
-
denied_count: z.int(),
|
|
913
|
-
unique_users: z.int(),
|
|
914
|
-
unique_permissions: z.int(),
|
|
915
|
-
most_checked_permissions: z.array(z.tuple([z.string(), z.int()])),
|
|
916
|
-
most_denied_permissions: z.array(z.tuple([z.string(), z.int()]))
|
|
917
|
-
});
|
|
918
|
-
/**
|
|
919
|
-
* PermissionResponse
|
|
920
|
-
*/
|
|
921
|
-
export const zPermissionResponse = z.object({
|
|
922
|
-
code: z.string(),
|
|
923
|
-
description: z.string().nullish()
|
|
924
|
-
});
|
|
925
|
-
/**
|
|
926
|
-
* PlaceAnalyticTotal
|
|
927
|
-
*/
|
|
928
|
-
export const zPlaceAnalyticTotal = z.object({
|
|
929
|
-
total_count: z.int()
|
|
930
|
-
});
|
|
931
|
-
/**
|
|
932
|
-
* PublishEventWithNotificationsRequest
|
|
933
|
-
*/
|
|
934
|
-
export const zPublishEventWithNotificationsRequest = z.object({
|
|
935
|
-
notify_attendees: z.boolean().optional().default(false),
|
|
936
|
-
notification_channels: z.array(z.string()).nullish()
|
|
937
|
-
});
|
|
938
|
-
/**
|
|
939
|
-
* PulseDTO
|
|
940
|
-
*/
|
|
941
|
-
export const zPulseDto = z.object({
|
|
942
|
-
members: zMetricBreakdown,
|
|
943
|
-
events: zMetricBreakdown,
|
|
944
|
-
materials: zMetricBreakdown,
|
|
945
|
-
velocity: z.string().optional().default('stable')
|
|
946
|
-
});
|
|
947
|
-
/**
|
|
948
|
-
* RoleListResponse
|
|
949
|
-
*/
|
|
950
|
-
export const zRoleListResponse = z.object({
|
|
951
|
-
id: z.uuid(),
|
|
952
|
-
org_id: z.uuid(),
|
|
953
|
-
name: z.string(),
|
|
954
|
-
description: z.string().nullish(),
|
|
955
|
-
permission_count: z.int().optional().default(0),
|
|
956
|
-
created_at: z.iso.datetime(),
|
|
957
|
-
updated_at: z.iso.datetime()
|
|
958
|
-
});
|
|
959
|
-
/**
|
|
960
|
-
* RoleResponse
|
|
961
|
-
*/
|
|
962
|
-
export const zRoleResponse = z.object({
|
|
963
|
-
id: z.uuid(),
|
|
964
|
-
org_id: z.uuid(),
|
|
965
|
-
name: z.string(),
|
|
966
|
-
description: z.string().nullish(),
|
|
967
|
-
permissions: z.array(zPermissionResponse).optional(),
|
|
968
|
-
created_at: z.iso.datetime(),
|
|
969
|
-
updated_at: z.iso.datetime()
|
|
970
|
-
});
|
|
971
|
-
/**
|
|
972
|
-
* RollbackSpaceRequest
|
|
973
|
-
*
|
|
974
|
-
* Request to rollback space to a specific version.
|
|
975
|
-
*/
|
|
976
|
-
export const zRollbackSpaceRequest = z.object({
|
|
977
|
-
version_number: z.int().gt(0)
|
|
978
|
-
});
|
|
979
|
-
/**
|
|
980
|
-
* RoomType
|
|
981
|
-
*/
|
|
982
|
-
export const zRoomType = z.enum([
|
|
983
|
-
'direct',
|
|
984
|
-
'group',
|
|
985
|
-
'channel'
|
|
986
|
-
]);
|
|
987
|
-
/**
|
|
988
|
-
* RoomResponse
|
|
989
|
-
*/
|
|
990
|
-
export const zRoomResponse = z.object({
|
|
991
|
-
id: z.uuid(),
|
|
992
|
-
org_id: z.uuid().nullish(),
|
|
993
|
-
room_type: zRoomType,
|
|
994
|
-
name: z.string().nullable(),
|
|
995
|
-
description: z.string().nullable(),
|
|
996
|
-
visibility: z.int(),
|
|
997
|
-
metadata_: zChatMetadata.optional(),
|
|
998
|
-
creator_id: z.uuid(),
|
|
999
|
-
created_at: z.iso.datetime(),
|
|
1000
|
-
updated_at: z.iso.datetime()
|
|
1001
|
-
});
|
|
1002
|
-
/**
|
|
1003
|
-
* RoomListResponse
|
|
1004
|
-
*/
|
|
1005
|
-
export const zRoomListResponse = z.object({
|
|
1006
|
-
rooms: z.array(zRoomResponse),
|
|
1007
|
-
next_cursor: z.string().nullish(),
|
|
1008
|
-
has_more: z.boolean().optional().default(false)
|
|
1009
|
-
});
|
|
1010
|
-
/**
|
|
1011
|
-
* RuleResponse
|
|
1012
|
-
*
|
|
1013
|
-
* Automation rule response.
|
|
1014
|
-
*/
|
|
1015
|
-
export const zRuleResponse = z.object({
|
|
1016
|
-
id: z.uuid(),
|
|
1017
|
-
org_id: z.uuid().nullable(),
|
|
1018
|
-
creator_id: z.string(),
|
|
1019
|
-
name: z.string(),
|
|
1020
|
-
description: z.string().nullable(),
|
|
1021
|
-
scope: z.string(),
|
|
1022
|
-
scope_id: z.uuid().nullable(),
|
|
1023
|
-
enabled: z.boolean(),
|
|
1024
|
-
priority: z.int(),
|
|
1025
|
-
conditions: z.record(z.string(), z.unknown()),
|
|
1026
|
-
actions: z.array(z.record(z.string(), z.unknown())),
|
|
1027
|
-
schedule: z.record(z.string(), z.unknown()),
|
|
1028
|
-
constraints: z.record(z.string(), z.unknown()).nullable(),
|
|
1029
|
-
rule_metadata: z.record(z.string(), z.unknown()).nullable(),
|
|
1030
|
-
version: z.int(),
|
|
1031
|
-
created_at: z.iso.datetime(),
|
|
1032
|
-
updated_at: z.iso.datetime(),
|
|
1033
|
-
scope_mode: z.string().nullish()
|
|
1034
|
-
});
|
|
1035
|
-
/**
|
|
1036
|
-
* RuleListResponse
|
|
1037
|
-
*
|
|
1038
|
-
* List of automation rules.
|
|
1039
|
-
*/
|
|
1040
|
-
export const zRuleListResponse = z.object({
|
|
1041
|
-
rules: z.array(zRuleResponse),
|
|
1042
|
-
total: z.int()
|
|
1043
|
-
});
|
|
1044
|
-
/**
|
|
1045
|
-
* SectionContentRead
|
|
1046
|
-
*
|
|
1047
|
-
* Partial response model for Content (Description, Metadata, Label).
|
|
1048
|
-
* Used by `PATCH /content` and `GET /section/content`.
|
|
1049
|
-
*/
|
|
1050
|
-
export const zSectionContentRead = z.object({
|
|
1051
|
-
id: z.int(),
|
|
1052
|
-
title: z.string(),
|
|
1053
|
-
status: z.string().nullish(),
|
|
1054
|
-
description: z.string().nullish(),
|
|
1055
|
-
event_metadata: z.record(z.string(), z.unknown()).nullish()
|
|
1056
|
-
});
|
|
1057
|
-
/**
|
|
1058
|
-
* SectionIdentificationRead
|
|
1059
|
-
*
|
|
1060
|
-
* Partial response model for Identification (Title, Status).
|
|
1061
|
-
* Used by `PATCH /identification` and `GET /section/identification`.
|
|
1062
|
-
*/
|
|
1063
|
-
export const zSectionIdentificationRead = z.object({
|
|
1064
|
-
id: z.int(),
|
|
1065
|
-
title: z.string(),
|
|
1066
|
-
status: z.string().nullish()
|
|
1067
|
-
});
|
|
1068
|
-
/**
|
|
1069
|
-
* SectionSettingsRead
|
|
1070
|
-
*
|
|
1071
|
-
* Partial response model for Settings (Visibility, Access Control).
|
|
1072
|
-
* Used by `PATCH /settings` and `GET /section/settings`.
|
|
1073
|
-
*/
|
|
1074
|
-
export const zSectionSettingsRead = z.object({
|
|
1075
|
-
id: z.int(),
|
|
1076
|
-
title: z.string(),
|
|
1077
|
-
status: z.string().nullish(),
|
|
1078
|
-
visibility: z.int().nullish(),
|
|
1079
|
-
keywords: z.array(z.string()).nullish(),
|
|
1080
|
-
is_locked: z.boolean().optional().default(false),
|
|
1081
|
-
subcontrib_speakers_can_submit: z.boolean().optional().default(true)
|
|
1082
|
-
});
|
|
1083
|
-
/**
|
|
1084
|
-
* SenderProfile
|
|
1085
|
-
*/
|
|
1086
|
-
export const zSenderProfile = z.object({
|
|
1087
|
-
id: z.string(),
|
|
1088
|
-
username: z.string().nullish(),
|
|
1089
|
-
first_name: z.string().nullish(),
|
|
1090
|
-
last_name: z.string().nullish(),
|
|
1091
|
-
avatar_url: z.string().nullish()
|
|
1092
|
-
});
|
|
1093
|
-
/**
|
|
1094
|
-
* SessionCostBreakdown
|
|
1095
|
-
*/
|
|
1096
|
-
export const zSessionCostBreakdown = z.object({
|
|
1097
|
-
total_cost_usd: z.number(),
|
|
1098
|
-
total_tokens: z.int(),
|
|
1099
|
-
total_input_tokens: z.int(),
|
|
1100
|
-
total_output_tokens: z.int(),
|
|
1101
|
-
message_count: z.int(),
|
|
1102
|
-
model: z.string(),
|
|
1103
|
-
last_message_cost_usd: z.number().nullish()
|
|
1104
|
-
});
|
|
1105
|
-
/**
|
|
1106
|
-
* SessionStatus
|
|
1107
|
-
*
|
|
1108
|
-
* Enum representing AI agent session status.
|
|
1109
|
-
*/
|
|
1110
|
-
export const zSessionStatus = z.enum([
|
|
1111
|
-
'active',
|
|
1112
|
-
'archived',
|
|
1113
|
-
'deleted'
|
|
1114
|
-
]);
|
|
1115
|
-
/**
|
|
1116
|
-
* CreateSessionResponse
|
|
1117
|
-
*/
|
|
1118
|
-
export const zCreateSessionResponse = z.object({
|
|
1119
|
-
id: z.uuid(),
|
|
1120
|
-
org_id: z.uuid().nullable(),
|
|
1121
|
-
creator_id: z.uuid(),
|
|
1122
|
-
title: z.string(),
|
|
1123
|
-
thread_id: z.string(),
|
|
1124
|
-
agent_type: zAgentType,
|
|
1125
|
-
model: z.string(),
|
|
1126
|
-
temperature: z.number(),
|
|
1127
|
-
system_prompt: z.string().nullable(),
|
|
1128
|
-
status: zSessionStatus,
|
|
1129
|
-
message_count: z.int(),
|
|
1130
|
-
created_at: z.iso.datetime(),
|
|
1131
|
-
updated_at: z.iso.datetime(),
|
|
1132
|
-
last_message_at: z.iso.datetime().nullable()
|
|
1133
|
-
});
|
|
1134
|
-
/**
|
|
1135
|
-
* SessionListResponse
|
|
1136
|
-
*/
|
|
1137
|
-
export const zSessionListResponse = z.object({
|
|
1138
|
-
sessions: z.array(zCreateSessionResponse),
|
|
1139
|
-
total: z.int(),
|
|
1140
|
-
limit: z.int(),
|
|
1141
|
-
offset: z.int()
|
|
1142
|
-
});
|
|
1143
|
-
/**
|
|
1144
|
-
* SetPermissionsRequest
|
|
1145
|
-
*/
|
|
1146
|
-
export const zSetPermissionsRequest = z.object({
|
|
1147
|
-
permission_codes: z.array(z.string())
|
|
1148
|
-
});
|
|
1149
|
-
/**
|
|
1150
|
-
* SpaceAnalyticTotal
|
|
1151
|
-
*/
|
|
1152
|
-
export const zSpaceAnalyticTotal = z.object({
|
|
1153
|
-
total_count: z.int()
|
|
1154
|
-
});
|
|
1155
|
-
/**
|
|
1156
|
-
* GetAnalyticTotalsDto
|
|
1157
|
-
*/
|
|
1158
|
-
export const zGetAnalyticTotalsDto = z.object({
|
|
1159
|
-
event: zEventAnalyticTotal,
|
|
1160
|
-
place: zPlaceAnalyticTotal,
|
|
1161
|
-
space: zSpaceAnalyticTotal
|
|
1162
|
-
});
|
|
1163
|
-
/**
|
|
1164
|
-
* SpaceContactCreate
|
|
1165
|
-
*
|
|
1166
|
-
* Pydantic model for creating a new space contact.
|
|
1167
|
-
*/
|
|
1168
|
-
export const zSpaceContactCreate = z.object({
|
|
1169
|
-
contact_id: z.uuid()
|
|
1170
|
-
});
|
|
1171
|
-
/**
|
|
1172
|
-
* SpaceContactInfo
|
|
1173
|
-
*
|
|
1174
|
-
* Space contact information for API responses.
|
|
1175
|
-
*/
|
|
1176
|
-
export const zSpaceContactInfo = z.object({
|
|
1177
|
-
id: z.uuid(),
|
|
1178
|
-
first_name: z.string().nullish(),
|
|
1179
|
-
last_name: z.string().nullish(),
|
|
1180
|
-
email: z.string().nullish(),
|
|
1181
|
-
phone_primary: z.string().nullish(),
|
|
1182
|
-
company: z.string().nullish(),
|
|
1183
|
-
job_title: z.string().nullish(),
|
|
1184
|
-
avatar_url: z.string().nullish()
|
|
1185
|
-
});
|
|
1186
|
-
/**
|
|
1187
|
-
* SpaceContactRead
|
|
1188
|
-
*
|
|
1189
|
-
* Pydantic model for reading space contact data.
|
|
1190
|
-
*/
|
|
1191
|
-
export const zSpaceContactRead = z.object({
|
|
1192
|
-
id: z.int(),
|
|
1193
|
-
space_id: z.int(),
|
|
1194
|
-
contact_id: z.uuid(),
|
|
1195
|
-
created_at: z.string(),
|
|
1196
|
-
updated_at: z.string(),
|
|
1197
|
-
contact: zSpaceContactInfo.nullish()
|
|
1198
|
-
});
|
|
1199
|
-
/**
|
|
1200
|
-
* SpaceContactList
|
|
1201
|
-
*
|
|
1202
|
-
* Model for list of space contacts with contact info.
|
|
1203
|
-
*/
|
|
1204
|
-
export const zSpaceContactList = z.object({
|
|
1205
|
-
contacts: z.array(zSpaceContactRead).optional(),
|
|
1206
|
-
total: z.int()
|
|
1207
|
-
});
|
|
1208
|
-
/**
|
|
1209
|
-
* SpaceEventCreate
|
|
1210
|
-
*
|
|
1211
|
-
* Pydantic model for creating a new space event association.
|
|
1212
|
-
*/
|
|
1213
|
-
export const zSpaceEventCreate = z.object({
|
|
1214
|
-
event_id: z.int()
|
|
1215
|
-
});
|
|
1216
|
-
/**
|
|
1217
|
-
* SpaceEventInfo
|
|
1218
|
-
*
|
|
1219
|
-
* Space event information for API responses.
|
|
1220
|
-
*/
|
|
1221
|
-
export const zSpaceEventInfo = z.object({
|
|
1222
|
-
id: z.int(),
|
|
1223
|
-
title: z.string(),
|
|
1224
|
-
description: z.string().nullish(),
|
|
1225
|
-
start_time: z.string().nullish(),
|
|
1226
|
-
end_time: z.string().nullish(),
|
|
1227
|
-
location: z.string().nullish(),
|
|
1228
|
-
status: z.string().nullish()
|
|
1229
|
-
});
|
|
1230
|
-
/**
|
|
1231
|
-
* SpaceHierarchyItem
|
|
1232
|
-
*
|
|
1233
|
-
* Space hierarchy item for tree display
|
|
1234
|
-
*/
|
|
1235
|
-
export const zSpaceHierarchyItem = z.object({
|
|
1236
|
-
id: z.int(),
|
|
1237
|
-
title: z.string(),
|
|
1238
|
-
description: z.string(),
|
|
1239
|
-
parent_id: z.int().nullable(),
|
|
1240
|
-
children: z.array(z.lazy(() => zSpaceHierarchyItem)).optional().default([]),
|
|
1241
|
-
level: z.int().optional().default(0),
|
|
1242
|
-
is_inherited: z.boolean().optional().default(true)
|
|
1243
|
-
});
|
|
1244
|
-
/**
|
|
1245
|
-
* SpaceInheritanceSettings
|
|
1246
|
-
*
|
|
1247
|
-
* Space inheritance configuration
|
|
1248
|
-
*/
|
|
1249
|
-
export const zSpaceInheritanceSettings = z.object({
|
|
1250
|
-
inherit_visibility: z.boolean().optional().default(true),
|
|
1251
|
-
inherit_members: z.boolean().optional().default(true),
|
|
1252
|
-
inherit_permissions: z.boolean().optional().default(true),
|
|
1253
|
-
inherit_timezone: z.boolean().optional().default(true)
|
|
1254
|
-
});
|
|
1255
|
-
/**
|
|
1256
|
-
* SpaceRole
|
|
1257
|
-
*
|
|
1258
|
-
* Space roles with hierarchical permissions
|
|
1259
|
-
*/
|
|
1260
|
-
export const zSpaceRole = z.enum([
|
|
1261
|
-
'space_owner',
|
|
1262
|
-
'space_admin',
|
|
1263
|
-
'space_member',
|
|
1264
|
-
'space_viewer'
|
|
1265
|
-
]);
|
|
1266
|
-
/**
|
|
1267
|
-
* AddSpaceMemberRequest
|
|
1268
|
-
*
|
|
1269
|
-
* Request model for adding a member to a space
|
|
1270
|
-
*/
|
|
1271
|
-
export const zAddSpaceMemberRequest = z.object({
|
|
1272
|
-
email: z.string(),
|
|
1273
|
-
role: zSpaceRole.optional().default('space_member')
|
|
1274
|
-
});
|
|
1275
|
-
/**
|
|
1276
|
-
* SpaceMemberResponse
|
|
1277
|
-
*
|
|
1278
|
-
* Response model for space member information
|
|
1279
|
-
*/
|
|
1280
|
-
export const zSpaceMemberResponse = z.object({
|
|
1281
|
-
user_id: z.string(),
|
|
1282
|
-
email: z.string(),
|
|
1283
|
-
name: z.string().nullish(),
|
|
1284
|
-
role: zSpaceRole,
|
|
1285
|
-
joined_at: z.string(),
|
|
1286
|
-
avatar_url: z.string().nullish()
|
|
1287
|
-
});
|
|
1288
|
-
/**
|
|
1289
|
-
* SpaceRoleCreate
|
|
1290
|
-
*
|
|
1291
|
-
* Space role creation model
|
|
1292
|
-
*/
|
|
1293
|
-
export const zSpaceRoleCreate = z.object({
|
|
1294
|
-
name: z.string().min(1).max(255),
|
|
1295
|
-
description: z.string().max(500).nullish()
|
|
1296
|
-
});
|
|
1297
|
-
/**
|
|
1298
|
-
* SpaceRolePermissionAssign
|
|
1299
|
-
*
|
|
1300
|
-
* Model for assigning permissions to space roles
|
|
1301
|
-
*/
|
|
1302
|
-
export const zSpaceRolePermissionAssign = z.object({
|
|
1303
|
-
permission_id: z.uuid()
|
|
1304
|
-
});
|
|
1305
|
-
/**
|
|
1306
|
-
* SpaceRoleRead
|
|
1307
|
-
*
|
|
1308
|
-
* Space role read model for API responses
|
|
1309
|
-
*/
|
|
1310
|
-
export const zSpaceRoleRead = z.object({
|
|
1311
|
-
id: z.uuid(),
|
|
1312
|
-
space_id: z.int(),
|
|
1313
|
-
name: z.string(),
|
|
1314
|
-
description: z.string().nullish(),
|
|
1315
|
-
org_id: z.uuid(),
|
|
1316
|
-
permissions: z.array(z.unknown()).optional(),
|
|
1317
|
-
created_at: z.iso.datetime(),
|
|
1318
|
-
updated_at: z.iso.datetime()
|
|
1319
|
-
});
|
|
1320
|
-
/**
|
|
1321
|
-
* SpaceRoleUpdate
|
|
1322
|
-
*
|
|
1323
|
-
* Space role update model
|
|
1324
|
-
*/
|
|
1325
|
-
export const zSpaceRoleUpdate = z.object({
|
|
1326
|
-
name: z.string().min(1).max(255).nullish(),
|
|
1327
|
-
description: z.string().max(500).nullish()
|
|
1328
|
-
});
|
|
1329
|
-
/**
|
|
1330
|
-
* SpaceStoryDTO
|
|
1331
|
-
*/
|
|
1332
|
-
export const zSpaceStoryDto = z.object({
|
|
1333
|
-
id: z.int(),
|
|
1334
|
-
name: z.string(),
|
|
1335
|
-
role: z.string(),
|
|
1336
|
-
member_count: z.int(),
|
|
1337
|
-
member_growth: z.int(),
|
|
1338
|
-
active_events: z.array(zEventPreviewDto).optional().default([]),
|
|
1339
|
-
ongoing_events_count: z.int().optional().default(0),
|
|
1340
|
-
upcoming_events_count: z.int().optional().default(0),
|
|
1341
|
-
remaining_events_count: z.int().optional().default(0),
|
|
1342
|
-
material_count: z.int().optional().default(0),
|
|
1343
|
-
subspace_count: z.int().optional().default(0),
|
|
1344
|
-
parent_space_name: z.string().nullish(),
|
|
1345
|
-
visibility: z.int().optional().default(0)
|
|
1346
|
-
});
|
|
1347
|
-
/**
|
|
1348
|
-
* DashboardStoryResponse
|
|
1349
|
-
*/
|
|
1350
|
-
export const zDashboardStoryResponse = z.object({
|
|
1351
|
-
pulse: zPulseDto,
|
|
1352
|
-
spaces: z.array(zSpaceStoryDto),
|
|
1353
|
-
total_spaces: z.int().optional().default(0)
|
|
1354
|
-
});
|
|
1355
|
-
/**
|
|
1356
|
-
* SpaceVersionContact
|
|
1357
|
-
*/
|
|
1358
|
-
export const zSpaceVersionContact = z.object({
|
|
1359
|
-
id: z.int(),
|
|
1360
|
-
contact_id: z.int(),
|
|
1361
|
-
contact: zContactResponse.nullable()
|
|
1362
|
-
});
|
|
1363
|
-
/**
|
|
1364
|
-
* SpaceVersionProfile
|
|
1365
|
-
*/
|
|
1366
|
-
export const zSpaceVersionProfile = z.object({
|
|
1367
|
-
id: z.uuid(),
|
|
1368
|
-
email: z.string().nullable(),
|
|
1369
|
-
first_name: z.string().nullable(),
|
|
1370
|
-
last_name: z.string().nullable(),
|
|
1371
|
-
avatar_url: z.string().nullable()
|
|
1372
|
-
});
|
|
1373
|
-
/**
|
|
1374
|
-
* SpaceVersionMember
|
|
1375
|
-
*/
|
|
1376
|
-
export const zSpaceVersionMember = z.object({
|
|
1377
|
-
user_id: z.uuid(),
|
|
1378
|
-
role: z.string(),
|
|
1379
|
-
is_active: z.boolean(),
|
|
1380
|
-
joined_at: z.iso.datetime().nullish(),
|
|
1381
|
-
profile: zSpaceVersionProfile.nullable()
|
|
1382
|
-
});
|
|
1383
|
-
/**
|
|
1384
|
-
* SpaceVersionRead
|
|
1385
|
-
*
|
|
1386
|
-
* Published space version response.
|
|
1387
|
-
*/
|
|
1388
|
-
export const zSpaceVersionRead = z.object({
|
|
1389
|
-
id: z.int(),
|
|
1390
|
-
space_id: z.int(),
|
|
1391
|
-
version_number: z.int(),
|
|
1392
|
-
status: z.string(),
|
|
1393
|
-
title: z.string(),
|
|
1394
|
-
description: z.string().nullable(),
|
|
1395
|
-
timezone: z.string(),
|
|
1396
|
-
visibility: z.int().nullable(),
|
|
1397
|
-
event_creation_mode: z.int(),
|
|
1398
|
-
suggestions_disabled: z.boolean(),
|
|
1399
|
-
notify_managers: z.boolean(),
|
|
1400
|
-
icon_metadata: z.record(z.string(), z.unknown()).nullable(),
|
|
1401
|
-
logo_metadata: z.record(z.string(), z.unknown()).nullable(),
|
|
1402
|
-
published_at: z.iso.datetime(),
|
|
1403
|
-
published_by: z.uuid().nullable(),
|
|
1404
|
-
created_at: z.iso.datetime(),
|
|
1405
|
-
updated_at: z.iso.datetime(),
|
|
1406
|
-
members: z.array(zSpaceVersionMember).optional().default([]),
|
|
1407
|
-
contacts: z.array(zSpaceVersionContact).optional().default([]),
|
|
1408
|
-
documents: z.array(z.string()).optional().default([])
|
|
1409
|
-
});
|
|
1410
|
-
/**
|
|
1411
|
-
* SpaceVersionListResponse
|
|
1412
|
-
*
|
|
1413
|
-
* List of space versions.
|
|
1414
|
-
*/
|
|
1415
|
-
export const zSpaceVersionListResponse = z.object({
|
|
1416
|
-
versions: z.array(zSpaceVersionRead),
|
|
1417
|
-
total: z.int()
|
|
1418
|
-
});
|
|
1419
|
-
/**
|
|
1420
|
-
* SpaceWithRelationshipsResponse
|
|
1421
|
-
*
|
|
1422
|
-
* Extended space response with relationship fields
|
|
1423
|
-
*/
|
|
1424
|
-
export const zSpaceWithRelationshipsResponse = z.object({
|
|
1425
|
-
id: z.int(),
|
|
1426
|
-
title: z.string(),
|
|
1427
|
-
description: z.string(),
|
|
1428
|
-
timezone: z.string(),
|
|
1429
|
-
visibility: z.int().nullable(),
|
|
1430
|
-
creator_id: z.string().nullable(),
|
|
1431
|
-
parent_id: z.int().nullable(),
|
|
1432
|
-
children: z.array(z.int()).optional().default([]),
|
|
1433
|
-
inheritance_settings: zSpaceInheritanceSettings.nullish()
|
|
1434
|
-
});
|
|
1435
|
-
/**
|
|
1436
|
-
* StartWorkflowAsyncResponse
|
|
1437
|
-
*/
|
|
1438
|
-
export const zStartWorkflowAsyncResponse = z.object({
|
|
1439
|
-
execution_id: z.uuid(),
|
|
1440
|
-
task_id: z.string(),
|
|
1441
|
-
status: z.string(),
|
|
1442
|
-
message: z.string().optional().default('Workflow execution queued')
|
|
1443
|
-
});
|
|
1444
|
-
/**
|
|
1445
|
-
* SubSpaceDisplayData
|
|
1446
|
-
*
|
|
1447
|
-
* Display data for sub-space in list
|
|
1448
|
-
*/
|
|
1449
|
-
export const zSubSpaceDisplayData = z.object({
|
|
1450
|
-
id: z.int(),
|
|
1451
|
-
title: z.string(),
|
|
1452
|
-
description: z.string(),
|
|
1453
|
-
event_count: z.int().optional().default(0),
|
|
1454
|
-
member_count: z.int().optional().default(0),
|
|
1455
|
-
is_inherited: z.boolean().optional().default(true)
|
|
1456
|
-
});
|
|
1457
|
-
/**
|
|
1458
|
-
* TaskMetadata
|
|
1459
|
-
*
|
|
1460
|
-
* Metadata describing an automation task (trigger, condition, or action).
|
|
1461
|
-
*/
|
|
1462
|
-
export const zTaskMetadata = z.object({
|
|
1463
|
-
task_type: z.string(),
|
|
1464
|
-
category: z.enum([
|
|
1465
|
-
'trigger',
|
|
1466
|
-
'condition',
|
|
1467
|
-
'action'
|
|
1468
|
-
]),
|
|
1469
|
-
name: z.string(),
|
|
1470
|
-
description: z.string(),
|
|
1471
|
-
icon: z.string().nullish(),
|
|
1472
|
-
tags: z.array(z.string()).optional(),
|
|
1473
|
-
config_schema: z.record(z.string(), z.unknown()),
|
|
1474
|
-
ui_config: z.record(z.string(), z.unknown()).nullish(),
|
|
1475
|
-
examples: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
1476
|
-
requires_org_context: z.boolean().optional().default(false),
|
|
1477
|
-
requires_event_scope: z.boolean().optional().default(false),
|
|
1478
|
-
version: z.string().optional().default('1.0.0')
|
|
1479
|
-
});
|
|
1480
|
-
/**
|
|
1481
|
-
* CombinedMetadataResponse
|
|
1482
|
-
*
|
|
1483
|
-
* Combined response with all metadata types.
|
|
1484
|
-
*/
|
|
1485
|
-
export const zCombinedMetadataResponse = z.object({
|
|
1486
|
-
triggers: z.array(zTaskMetadata),
|
|
1487
|
-
conditions: z.array(zTaskMetadata),
|
|
1488
|
-
actions: z.array(zTaskMetadata)
|
|
1489
|
-
});
|
|
1490
|
-
/**
|
|
1491
|
-
* ToggleFavoriteRequest
|
|
1492
|
-
*
|
|
1493
|
-
* Request model for toggling contact favorite status.
|
|
1494
|
-
*/
|
|
1495
|
-
export const zToggleFavoriteRequest = z.object({
|
|
1496
|
-
is_favorite: z.boolean().nullish()
|
|
1497
|
-
});
|
|
1498
|
-
/**
|
|
1499
|
-
* TokenUsage
|
|
1500
|
-
*/
|
|
1501
|
-
export const zTokenUsage = z.object({
|
|
1502
|
-
input: z.int(),
|
|
1503
|
-
output: z.int(),
|
|
1504
|
-
total: z.int()
|
|
1505
|
-
});
|
|
1506
|
-
/**
|
|
1507
|
-
* SendMessageResponse
|
|
1508
|
-
*/
|
|
1509
|
-
export const zSendMessageResponse = z.object({
|
|
1510
|
-
session_id: z.uuid(),
|
|
1511
|
-
thread_id: z.string(),
|
|
1512
|
-
message: z.string(),
|
|
1513
|
-
message_count: z.int(),
|
|
1514
|
-
timestamp: z.iso.datetime(),
|
|
1515
|
-
tokens_used: zTokenUsage.nullish(),
|
|
1516
|
-
cost_usd: z.number().nullish()
|
|
1517
|
-
});
|
|
1518
|
-
/**
|
|
1519
|
-
* TransferEventRequest
|
|
1520
|
-
*/
|
|
1521
|
-
export const zTransferEventRequest = z.object({
|
|
1522
|
-
target_org_id: z.uuid()
|
|
1523
|
-
});
|
|
1524
|
-
/**
|
|
1525
|
-
* TransferSpaceRequest
|
|
1526
|
-
*/
|
|
1527
|
-
export const zTransferSpaceRequest = z.object({
|
|
1528
|
-
target_org_id: z.uuid()
|
|
1529
|
-
});
|
|
1530
|
-
/**
|
|
1531
|
-
* TransferSpaceResponse
|
|
1532
|
-
*/
|
|
1533
|
-
export const zTransferSpaceResponse = z.object({
|
|
1534
|
-
status: z.string(),
|
|
1535
|
-
space_id: z.int(),
|
|
1536
|
-
target_org_id: z.string()
|
|
1537
|
-
});
|
|
1538
|
-
/**
|
|
1539
|
-
* UpdateBookingRequest
|
|
1540
|
-
*
|
|
1541
|
-
* Request schema for updating a booking
|
|
1542
|
-
*/
|
|
1543
|
-
export const zUpdateBookingRequest = z.object({
|
|
1544
|
-
title: z.string(),
|
|
1545
|
-
description: z.string().nullish(),
|
|
1546
|
-
start_dt: z.iso.datetime(),
|
|
1547
|
-
end_dt: z.iso.datetime(),
|
|
1548
|
-
status: z.string().optional().default('confirmed')
|
|
1549
|
-
});
|
|
1550
|
-
/**
|
|
1551
|
-
* UpdateContactRequest
|
|
1552
|
-
*
|
|
1553
|
-
* Request model for updating an existing contact.
|
|
1554
|
-
*/
|
|
1555
|
-
export const zUpdateContactRequest = z.object({
|
|
1556
|
-
org_id: z.uuid().nullish(),
|
|
1557
|
-
first_name: z.string().max(255).nullish(),
|
|
1558
|
-
last_name: z.string().max(255).nullish(),
|
|
1559
|
-
middle_name: z.string().max(255).nullish(),
|
|
1560
|
-
nickname: z.string().max(255).nullish(),
|
|
1561
|
-
email: z.email().max(255).nullish(),
|
|
1562
|
-
phone_primary: z.string().max(50).nullish(),
|
|
1563
|
-
phone_secondary: z.string().max(50).nullish(),
|
|
1564
|
-
phone_work: z.string().max(50).nullish(),
|
|
1565
|
-
address_line1: z.string().max(255).nullish(),
|
|
1566
|
-
address_line2: z.string().max(255).nullish(),
|
|
1567
|
-
city: z.string().max(100).nullish(),
|
|
1568
|
-
state_province: z.string().max(100).nullish(),
|
|
1569
|
-
postal_code: z.string().max(20).nullish(),
|
|
1570
|
-
country: z.string().max(100).nullish(),
|
|
1571
|
-
company: z.string().max(255).nullish(),
|
|
1572
|
-
job_title: z.string().max(255).nullish(),
|
|
1573
|
-
website: z.string().max(255).nullish(),
|
|
1574
|
-
notes: z.string().nullish(),
|
|
1575
|
-
avatar_url: z.string().max(500).nullish(),
|
|
1576
|
-
linked_user_id: z.string().nullish(),
|
|
1577
|
-
is_favorite: z.boolean().nullish(),
|
|
1578
|
-
tags: z.array(z.string()).nullish()
|
|
1579
|
-
});
|
|
1580
|
-
/**
|
|
1581
|
-
* UpdateEventContentRequest
|
|
1582
|
-
*/
|
|
1583
|
-
export const zUpdateEventContentRequest = z.object({
|
|
1584
|
-
description: z.string().nullish(),
|
|
1585
|
-
event_metadata: z.record(z.string(), z.unknown()).nullish()
|
|
1586
|
-
});
|
|
1587
|
-
/**
|
|
1588
|
-
* UpdateEventIdentificationRequest
|
|
1589
|
-
*/
|
|
1590
|
-
export const zUpdateEventIdentificationRequest = z.object({
|
|
1591
|
-
title: z.string(),
|
|
1592
|
-
status: z.string().nullish()
|
|
1593
|
-
});
|
|
1594
|
-
/**
|
|
1595
|
-
* UpdateEventSettingsRequest
|
|
1596
|
-
*/
|
|
1597
|
-
export const zUpdateEventSettingsRequest = z.object({
|
|
1598
|
-
visibility: z.int().nullish(),
|
|
1599
|
-
keywords: z.array(z.string()).nullish(),
|
|
1600
|
-
is_locked: z.boolean().nullish(),
|
|
1601
|
-
subcontrib_speakers_can_submit: z.boolean().nullish()
|
|
1602
|
-
});
|
|
1603
|
-
/**
|
|
1604
|
-
* UpdateOrganizationRequest
|
|
1605
|
-
*/
|
|
1606
|
-
export const zUpdateOrganizationRequest = z.object({
|
|
1607
|
-
name: z.string().min(1).max(255).nullish(),
|
|
1608
|
-
plan: z.string().max(50).nullish(),
|
|
1609
|
-
allow_public_visibility: z.boolean().nullish()
|
|
1610
|
-
});
|
|
1611
|
-
/**
|
|
1612
|
-
* UpdateParentRequest
|
|
1613
|
-
*
|
|
1614
|
-
* Request to update space parent
|
|
1615
|
-
*/
|
|
1616
|
-
export const zUpdateParentRequest = z.object({
|
|
1617
|
-
parent_id: z.int().nullish()
|
|
1618
|
-
});
|
|
1619
|
-
/**
|
|
1620
|
-
* UpdatePlaceRequest
|
|
1621
|
-
*/
|
|
1622
|
-
export const zUpdatePlaceRequest = z.object({
|
|
1623
|
-
title: z.string(),
|
|
1624
|
-
description: z.string(),
|
|
1625
|
-
visibility: z.int(),
|
|
1626
|
-
keywords: z.array(z.string()).optional().default([])
|
|
1627
|
-
});
|
|
1628
|
-
/**
|
|
1629
|
-
* UpdatePlaceResponseDTO
|
|
1630
|
-
*/
|
|
1631
|
-
export const zUpdatePlaceResponseDto = z.object({
|
|
1632
|
-
id: z.int(),
|
|
1633
|
-
title: z.string(),
|
|
1634
|
-
description: z.string(),
|
|
1635
|
-
visibility: z.int(),
|
|
1636
|
-
keywords: z.array(z.string())
|
|
1637
|
-
});
|
|
1638
|
-
/**
|
|
1639
|
-
* UpdateProfileRequest
|
|
1640
|
-
*
|
|
1641
|
-
* Profile update - only avatar and username can be changed locally.
|
|
1642
|
-
* Note: first_name and last_name are managed by external auth (Zitadel).
|
|
1643
|
-
*/
|
|
1644
|
-
export const zUpdateProfileRequest = z.object({
|
|
1645
|
-
username: z.string().nullish(),
|
|
1646
|
-
avatar_url: z.string().nullish()
|
|
1647
|
-
});
|
|
1648
|
-
/**
|
|
1649
|
-
* UpdateRoleRequest
|
|
1650
|
-
*/
|
|
1651
|
-
export const zUpdateRoleRequest = z.object({
|
|
1652
|
-
name: z.string().min(1).max(255).nullish(),
|
|
1653
|
-
description: z.string().max(500).nullish()
|
|
1654
|
-
});
|
|
1655
|
-
/**
|
|
1656
|
-
* UpdateRoomRequest
|
|
1657
|
-
*/
|
|
1658
|
-
export const zUpdateRoomRequest = z.object({
|
|
1659
|
-
name: z.string().nullish(),
|
|
1660
|
-
description: z.string().nullish(),
|
|
1661
|
-
visibility: z.int().nullish(),
|
|
1662
|
-
metadata: zChatMetadata.nullish()
|
|
1663
|
-
});
|
|
1664
|
-
/**
|
|
1665
|
-
* UpdateRuleRequest
|
|
1666
|
-
*
|
|
1667
|
-
* Request to update automation rule.
|
|
1668
|
-
*/
|
|
1669
|
-
export const zUpdateRuleRequest = z.object({
|
|
1670
|
-
name: z.string().min(1).max(255).nullish(),
|
|
1671
|
-
description: z.string().nullish(),
|
|
1672
|
-
enabled: z.boolean().nullish(),
|
|
1673
|
-
priority: z.int().gte(0).lte(100).nullish(),
|
|
1674
|
-
conditions: z.record(z.string(), z.unknown()).nullish(),
|
|
1675
|
-
actions: z.array(z.record(z.string(), z.unknown())).nullish(),
|
|
1676
|
-
schedule: z.record(z.string(), z.unknown()).nullish(),
|
|
1677
|
-
constraints: z.record(z.string(), z.unknown()).nullish(),
|
|
1678
|
-
metadata: z.record(z.string(), z.unknown()).nullish()
|
|
1679
|
-
});
|
|
1680
|
-
/**
|
|
1681
|
-
* UpdateSpaceMemberRoleRequest
|
|
1682
|
-
*
|
|
1683
|
-
* Request model for updating a space member's role
|
|
1684
|
-
*/
|
|
1685
|
-
export const zUpdateSpaceMemberRoleRequest = z.object({
|
|
1686
|
-
role: zSpaceRole
|
|
1687
|
-
});
|
|
1688
|
-
/**
|
|
1689
|
-
* UpdateSpaceResponseDTO
|
|
1690
|
-
*/
|
|
1691
|
-
export const zUpdateSpaceResponseDto = z.object({
|
|
1692
|
-
id: z.int(),
|
|
1693
|
-
title: z.string(),
|
|
1694
|
-
description: z.string(),
|
|
1695
|
-
timezone: z.string(),
|
|
1696
|
-
visibility: z.int().nullish(),
|
|
1697
|
-
creator_id: z.string().nullish()
|
|
1698
|
-
});
|
|
1699
|
-
/**
|
|
1700
|
-
* UserContextResponse
|
|
1701
|
-
*
|
|
1702
|
-
* Response schema for auth context endpoint.
|
|
1703
|
-
*/
|
|
1704
|
-
export const zUserContextResponse = z.object({
|
|
1705
|
-
user_id: z.string(),
|
|
1706
|
-
email: z.string().nullish(),
|
|
1707
|
-
username: z.string().nullish(),
|
|
1708
|
-
is_service_account: z.boolean().optional().default(false),
|
|
1709
|
-
organizations: z.array(zOrganizationRead).optional()
|
|
1710
|
-
});
|
|
1711
|
-
/**
|
|
1712
|
-
* UserCostBreakdown
|
|
1713
|
-
*/
|
|
1714
|
-
export const zUserCostBreakdown = z.object({
|
|
1715
|
-
user_id: z.uuid(),
|
|
1716
|
-
total_cost_usd: z.number(),
|
|
1717
|
-
total_tokens: z.int(),
|
|
1718
|
-
session_count: z.int()
|
|
1719
|
-
});
|
|
1720
|
-
/**
|
|
1721
|
-
* OrgCostDetailResponse
|
|
1722
|
-
*/
|
|
1723
|
-
export const zOrgCostDetailResponse = z.object({
|
|
1724
|
-
summary: zOrgCostSummary,
|
|
1725
|
-
by_user: z.array(zUserCostBreakdown)
|
|
1726
|
-
});
|
|
1727
|
-
/**
|
|
1728
|
-
* UserProfileResponse
|
|
1729
|
-
*/
|
|
1730
|
-
export const zUserProfileResponse = z.object({
|
|
1731
|
-
id: z.string(),
|
|
1732
|
-
email: z.string(),
|
|
1733
|
-
external_auth_id: z.string().nullish(),
|
|
1734
|
-
username: z.string().nullish(),
|
|
1735
|
-
avatar_url: z.string().nullish(),
|
|
1736
|
-
created_at: z.iso.datetime(),
|
|
1737
|
-
updated_at: z.iso.datetime()
|
|
1738
|
-
});
|
|
1739
|
-
/**
|
|
1740
|
-
* UserSearchResponseDTO
|
|
1741
|
-
*/
|
|
1742
|
-
export const zUserSearchResponseDto = z.object({
|
|
1743
|
-
id: z.string(),
|
|
1744
|
-
username: z.string().nullish(),
|
|
1745
|
-
email: z.string().nullish(),
|
|
1746
|
-
avatar_url: z.string().nullish(),
|
|
1747
|
-
created_at: z.string(),
|
|
1748
|
-
updated_at: z.string()
|
|
1749
|
-
});
|
|
1750
|
-
/**
|
|
1751
|
-
* ValidationError
|
|
1752
|
-
*/
|
|
1753
|
-
export const zValidationError = z.object({
|
|
1754
|
-
loc: z.array(z.union([z.string(), z.int()])),
|
|
1755
|
-
msg: z.string(),
|
|
1756
|
-
type: z.string()
|
|
1757
|
-
});
|
|
1758
|
-
/**
|
|
1759
|
-
* HTTPValidationError
|
|
1760
|
-
*/
|
|
1761
|
-
export const zHttpValidationError = z.object({
|
|
1762
|
-
detail: z.array(zValidationError).optional()
|
|
1763
|
-
});
|
|
1764
|
-
/**
|
|
1765
|
-
* VersionComparisonResponse
|
|
1766
|
-
*
|
|
1767
|
-
* Response showing differences between two versions.
|
|
1768
|
-
*/
|
|
1769
|
-
export const zVersionComparisonResponse = z.object({
|
|
1770
|
-
space_id: z.int(),
|
|
1771
|
-
version_a: z.int(),
|
|
1772
|
-
version_b: z.int(),
|
|
1773
|
-
differences: z.record(z.string(), z.unknown())
|
|
1774
|
-
});
|
|
1775
|
-
/**
|
|
1776
|
-
* WorkflowStatus
|
|
1777
|
-
*
|
|
1778
|
-
* Enum representing workflow execution status.
|
|
1779
|
-
*/
|
|
1780
|
-
export const zWorkflowStatus = z.enum([
|
|
1781
|
-
'pending',
|
|
1782
|
-
'running',
|
|
1783
|
-
'completed',
|
|
1784
|
-
'failed',
|
|
1785
|
-
'cancelled'
|
|
1786
|
-
]);
|
|
1787
|
-
/**
|
|
1788
|
-
* WorkflowType
|
|
1789
|
-
*
|
|
1790
|
-
* Enum representing different workflow types.
|
|
1791
|
-
*/
|
|
1792
|
-
export const zWorkflowType = z.enum([
|
|
1793
|
-
'supervisor',
|
|
1794
|
-
'parallel',
|
|
1795
|
-
'sequential',
|
|
1796
|
-
'evaluator_optimizer'
|
|
1797
|
-
]);
|
|
1798
|
-
/**
|
|
1799
|
-
* StartWorkflowRequest
|
|
1800
|
-
*/
|
|
1801
|
-
export const zStartWorkflowRequest = z.object({
|
|
1802
|
-
workflow_type: zWorkflowType,
|
|
1803
|
-
workflow_name: z.string().nullish(),
|
|
1804
|
-
input_data: z.record(z.string(), z.unknown()),
|
|
1805
|
-
session_id: z.uuid().nullish(),
|
|
1806
|
-
agent_types: z.array(zAgentType).nullish()
|
|
1807
|
-
});
|
|
1808
|
-
/**
|
|
1809
|
-
* WorkflowExecutionResponse
|
|
1810
|
-
*/
|
|
1811
|
-
export const zWorkflowExecutionResponse = z.object({
|
|
1812
|
-
id: z.uuid(),
|
|
1813
|
-
org_id: z.uuid().nullable(),
|
|
1814
|
-
creator_id: z.uuid(),
|
|
1815
|
-
session_id: z.uuid().nullable(),
|
|
1816
|
-
workflow_type: zWorkflowType,
|
|
1817
|
-
workflow_name: z.string(),
|
|
1818
|
-
input_data: z.record(z.string(), z.unknown()),
|
|
1819
|
-
output_data: z.record(z.string(), z.unknown()).nullable(),
|
|
1820
|
-
status: zWorkflowStatus,
|
|
1821
|
-
error_message: z.string().nullable(),
|
|
1822
|
-
agents_involved: z.array(z.string()).nullable(),
|
|
1823
|
-
execution_time_ms: z.int().nullable(),
|
|
1824
|
-
started_at: z.iso.datetime(),
|
|
1825
|
-
completed_at: z.iso.datetime().nullable()
|
|
1826
|
-
});
|
|
1827
|
-
/**
|
|
1828
|
-
* WorkflowExecutionListResponse
|
|
1829
|
-
*/
|
|
1830
|
-
export const zWorkflowExecutionListResponse = z.object({
|
|
1831
|
-
executions: z.array(zWorkflowExecutionResponse),
|
|
1832
|
-
total: z.int(),
|
|
1833
|
-
limit: z.int(),
|
|
1834
|
-
offset: z.int()
|
|
1835
|
-
});
|
|
1836
|
-
/**
|
|
1837
|
-
* SendMessageRequest
|
|
1838
|
-
*/
|
|
1839
|
-
export const zAppAiAgentAdapterInputApiV1SchemasSendMessageRequest = z.object({
|
|
1840
|
-
message: z.string().min(1).max(10000),
|
|
1841
|
-
stream: z.boolean().optional().default(false)
|
|
1842
|
-
});
|
|
1843
|
-
/**
|
|
1844
|
-
* MessageResponse
|
|
1845
|
-
*/
|
|
1846
|
-
export const zAppChatAdapterInputSchemasMessageMessageResponse = z.object({
|
|
1847
|
-
id: z.uuid(),
|
|
1848
|
-
room_id: z.uuid(),
|
|
1849
|
-
sender_id: z.uuid().nullable(),
|
|
1850
|
-
sender: zSenderProfile.nullish(),
|
|
1851
|
-
message_type: z.string(),
|
|
1852
|
-
content: z.string(),
|
|
1853
|
-
metadata_: zChatMetadata,
|
|
1854
|
-
created_at: z.iso.datetime(),
|
|
1855
|
-
updated_at: z.iso.datetime()
|
|
1856
|
-
});
|
|
1857
|
-
/**
|
|
1858
|
-
* SendMessageRequest
|
|
1859
|
-
*/
|
|
1860
|
-
export const zAppChatAdapterInputSchemasMessageSendMessageRequest = z.object({
|
|
1861
|
-
content: z.string(),
|
|
1862
|
-
message_type: z.string().optional().default('text'),
|
|
1863
|
-
metadata: zChatMetadata.optional()
|
|
1864
|
-
});
|
|
1865
|
-
/**
|
|
1866
|
-
* SpaceInfo
|
|
1867
|
-
*/
|
|
1868
|
-
export const zAppEventAdapterInputApiV1ResponseSpaceInfo = z.object({
|
|
1869
|
-
id: z.int(),
|
|
1870
|
-
title: z.string(),
|
|
1871
|
-
description: z.string()
|
|
1872
|
-
});
|
|
1873
|
-
/**
|
|
1874
|
-
* GetEventListResponse
|
|
1875
|
-
*/
|
|
1876
|
-
export const zGetEventListResponse = z.object({
|
|
1877
|
-
id: z.int(),
|
|
1878
|
-
org_id: z.string().nullish(),
|
|
1879
|
-
title: z.string(),
|
|
1880
|
-
description: z.string(),
|
|
1881
|
-
start_dt: z.string(),
|
|
1882
|
-
end_dt: z.string(),
|
|
1883
|
-
timezone: z.string(),
|
|
1884
|
-
visibility: z.int(),
|
|
1885
|
-
keywords: z.array(z.string()),
|
|
1886
|
-
spaces: z.array(zAppEventAdapterInputApiV1ResponseSpaceInfo).optional(),
|
|
1887
|
-
repeat_days: z.array(z.int()).nullish(),
|
|
1888
|
-
repeat_presets: z.string().nullish(),
|
|
1889
|
-
timeline_preset: z.string().nullish(),
|
|
1890
|
-
created_at: z.string(),
|
|
1891
|
-
updated_at: z.string(),
|
|
1892
|
-
latitude: z.number().nullish(),
|
|
1893
|
-
longitude: z.number().nullish(),
|
|
1894
|
-
address: z.string().nullish(),
|
|
1895
|
-
event_metadata: z.record(z.string(), z.unknown()).nullish(),
|
|
1896
|
-
base_events: z.array(zBaseEventInfo).optional()
|
|
1897
|
-
});
|
|
1898
|
-
/**
|
|
1899
|
-
* PaginatedEventListResponse
|
|
1900
|
-
*/
|
|
1901
|
-
export const zPaginatedEventListResponse = z.object({
|
|
1902
|
-
items: z.array(zGetEventListResponse),
|
|
1903
|
-
meta: zPaginationMeta
|
|
1904
|
-
});
|
|
1905
|
-
/**
|
|
1906
|
-
* SpaceInfo
|
|
1907
|
-
*
|
|
1908
|
-
* Comparison model for Space information.
|
|
1909
|
-
*/
|
|
1910
|
-
export const zAppEventDomainEntityEventSpaceInfo = z.object({
|
|
1911
|
-
id: z.int(),
|
|
1912
|
-
title: z.string(),
|
|
1913
|
-
description: z.string()
|
|
1914
|
-
});
|
|
1915
|
-
/**
|
|
1916
|
-
* EventVersionRead
|
|
1917
|
-
*
|
|
1918
|
-
* Published event version response.
|
|
1919
|
-
*/
|
|
1920
|
-
export const zEventVersionRead = z.object({
|
|
1921
|
-
id: z.int(),
|
|
1922
|
-
event_id: z.int(),
|
|
1923
|
-
transaction_id: z.int(),
|
|
1924
|
-
status: z.string(),
|
|
1925
|
-
title: z.string(),
|
|
1926
|
-
description: z.string().nullish(),
|
|
1927
|
-
start_dt: z.iso.datetime(),
|
|
1928
|
-
end_dt: z.iso.datetime(),
|
|
1929
|
-
timezone: z.string(),
|
|
1930
|
-
visibility: z.int().nullable(),
|
|
1931
|
-
keywords: z.array(z.string()),
|
|
1932
|
-
latitude: z.number().nullable(),
|
|
1933
|
-
longitude: z.number().nullable(),
|
|
1934
|
-
address: z.string().nullish(),
|
|
1935
|
-
event_metadata: z.record(z.string(), z.unknown()).nullish(),
|
|
1936
|
-
published_at: z.iso.datetime(),
|
|
1937
|
-
published_by: z.uuid(),
|
|
1938
|
-
spaces: z.array(zAppEventDomainEntityEventSpaceInfo).optional(),
|
|
1939
|
-
documents: z.array(z.string()).optional(),
|
|
1940
|
-
timeline: z.array(zEventRead).optional(),
|
|
1941
|
-
created_at: z.iso.datetime(),
|
|
1942
|
-
updated_at: z.iso.datetime()
|
|
1943
|
-
});
|
|
1944
|
-
/**
|
|
1945
|
-
* SpaceInfo
|
|
1946
|
-
*
|
|
1947
|
-
* Space information for API responses.
|
|
1948
|
-
*/
|
|
1949
|
-
export const zAppSpaceDomainEntitySpaceEventSpaceInfo = z.object({
|
|
1950
|
-
id: z.int(),
|
|
1951
|
-
title: z.string(),
|
|
1952
|
-
description: z.string().nullish()
|
|
1953
|
-
});
|
|
1954
|
-
/**
|
|
1955
|
-
* SpaceEventRead
|
|
1956
|
-
*
|
|
1957
|
-
* Pydantic model for reading space event data.
|
|
1958
|
-
*/
|
|
1959
|
-
export const zSpaceEventRead = z.object({
|
|
1960
|
-
id: z.int(),
|
|
1961
|
-
space_id: z.int(),
|
|
1962
|
-
event_id: z.int(),
|
|
1963
|
-
created_at: z.string(),
|
|
1964
|
-
updated_at: z.string(),
|
|
1965
|
-
event: zSpaceEventInfo.nullish(),
|
|
1966
|
-
space: zAppSpaceDomainEntitySpaceEventSpaceInfo.nullish()
|
|
1967
|
-
});
|
|
1968
|
-
/**
|
|
1969
|
-
* SpaceEventList
|
|
1970
|
-
*
|
|
1971
|
-
* Model for list of space events with event info.
|
|
1972
|
-
*/
|
|
1973
|
-
export const zSpaceEventList = z.object({
|
|
1974
|
-
events: z.array(zSpaceEventRead).optional(),
|
|
1975
|
-
total: z.int()
|
|
1976
|
-
});
|
|
1977
|
-
/**
|
|
1978
|
-
* MessageResponse
|
|
1979
|
-
*/
|
|
1980
|
-
export const zAppUserAdapterInputApiV1ResponseMessageResponse = z.object({
|
|
1981
|
-
message: z.string()
|
|
1982
|
-
});
|
|
1983
|
-
export const zUserGetAssistantData = z.object({
|
|
1984
|
-
body: z.never().optional(),
|
|
1985
|
-
path: z.never().optional(),
|
|
1986
|
-
query: z.never().optional()
|
|
1987
|
-
});
|
|
1988
|
-
/**
|
|
1989
|
-
* Response User.Getassistant
|
|
1990
|
-
*
|
|
1991
|
-
* Successful Response
|
|
1992
|
-
*/
|
|
1993
|
-
export const zUserGetAssistantResponse = zAssistantResponse.nullable();
|
|
1994
|
-
export const zUserCreateAssistantData = z.object({
|
|
1995
|
-
body: z.never().optional(),
|
|
1996
|
-
path: z.never().optional(),
|
|
1997
|
-
query: z.never().optional()
|
|
1998
|
-
});
|
|
1999
|
-
/**
|
|
2000
|
-
* Successful Response
|
|
2001
|
-
*/
|
|
2002
|
-
export const zUserCreateAssistantResponse = zAssistantResponse;
|
|
2003
|
-
export const zUserListData = z.object({
|
|
2004
|
-
body: z.never().optional(),
|
|
2005
|
-
path: z.never().optional(),
|
|
2006
|
-
query: z.object({
|
|
2007
|
-
limit: z.int().optional().default(10),
|
|
2008
|
-
prev: z.int().optional()
|
|
2009
|
-
}).optional()
|
|
2010
|
-
});
|
|
2011
|
-
/**
|
|
2012
|
-
* Response User.List
|
|
2013
|
-
*
|
|
2014
|
-
* Successful Response
|
|
2015
|
-
*/
|
|
2016
|
-
export const zUserListResponse = z.array(zGetUserListResponseDto);
|
|
2017
|
-
export const zUsersSearchData = z.object({
|
|
2018
|
-
body: z.never().optional(),
|
|
2019
|
-
path: z.never().optional(),
|
|
2020
|
-
query: z.object({
|
|
2021
|
-
q: z.string().optional().default(''),
|
|
2022
|
-
limit: z.int().optional().default(10),
|
|
2023
|
-
prev: z.int().optional(),
|
|
2024
|
-
org_id: z.uuid().optional()
|
|
2025
|
-
}).optional()
|
|
2026
|
-
});
|
|
2027
|
-
/**
|
|
2028
|
-
* Response Users.Search
|
|
2029
|
-
*
|
|
2030
|
-
* Successful Response
|
|
2031
|
-
*/
|
|
2032
|
-
export const zUsersSearchResponse = z.array(zUserSearchResponseDto);
|
|
2033
|
-
export const zUsersGetCurrentProfileData = z.object({
|
|
2034
|
-
body: z.never().optional(),
|
|
2035
|
-
path: z.never().optional(),
|
|
2036
|
-
query: z.never().optional()
|
|
2037
|
-
});
|
|
2038
|
-
/**
|
|
2039
|
-
* Successful Response
|
|
2040
|
-
*/
|
|
2041
|
-
export const zUsersGetCurrentProfileResponse = zUserProfileResponse;
|
|
2042
|
-
export const zUserUpdateProfileData = z.object({
|
|
2043
|
-
body: zUpdateProfileRequest,
|
|
2044
|
-
path: z.never().optional(),
|
|
2045
|
-
query: z.never().optional()
|
|
2046
|
-
});
|
|
2047
|
-
/**
|
|
2048
|
-
* Successful Response
|
|
2049
|
-
*/
|
|
2050
|
-
export const zUserUpdateProfileResponse = zUserProfileResponse;
|
|
2051
|
-
export const zUserGetProfileData = z.object({
|
|
2052
|
-
body: z.never().optional(),
|
|
2053
|
-
path: z.object({
|
|
2054
|
-
user_id: z.string()
|
|
2055
|
-
}),
|
|
2056
|
-
query: z.never().optional()
|
|
2057
|
-
});
|
|
2058
|
-
/**
|
|
2059
|
-
* Successful Response
|
|
2060
|
-
*/
|
|
2061
|
-
export const zUserGetProfileResponse = zUserProfileResponse;
|
|
2062
|
-
export const zUsersDeleteAvatarData = z.object({
|
|
2063
|
-
body: z.never().optional(),
|
|
2064
|
-
path: z.never().optional(),
|
|
2065
|
-
query: z.never().optional()
|
|
2066
|
-
});
|
|
2067
|
-
/**
|
|
2068
|
-
* Successful Response
|
|
2069
|
-
*/
|
|
2070
|
-
export const zUsersDeleteAvatarResponse = zAppUserAdapterInputApiV1ResponseMessageResponse;
|
|
2071
|
-
export const zUsersGetAvatarData = z.object({
|
|
2072
|
-
body: z.never().optional(),
|
|
2073
|
-
path: z.never().optional(),
|
|
2074
|
-
query: z.never().optional()
|
|
2075
|
-
});
|
|
2076
|
-
export const zUserUploadAvatarData = z.object({
|
|
2077
|
-
body: zBodyUserUploadAvatar,
|
|
2078
|
-
path: z.never().optional(),
|
|
2079
|
-
query: z.never().optional()
|
|
2080
|
-
});
|
|
2081
|
-
/**
|
|
2082
|
-
* Successful Response
|
|
2083
|
-
*/
|
|
2084
|
-
export const zUserUploadAvatarResponse = zAvatarUploadResponse;
|
|
2085
|
-
export const zUsersGetAvatarByIdData = z.object({
|
|
2086
|
-
body: z.never().optional(),
|
|
2087
|
-
path: z.object({
|
|
2088
|
-
user_id: z.string()
|
|
2089
|
-
}),
|
|
2090
|
-
query: z.never().optional()
|
|
2091
|
-
});
|
|
2092
|
-
export const zAuthContextsGetData = z.object({
|
|
2093
|
-
body: z.never().optional(),
|
|
2094
|
-
path: z.never().optional(),
|
|
2095
|
-
query: z.never().optional()
|
|
2096
|
-
});
|
|
2097
|
-
/**
|
|
2098
|
-
* Successful Response
|
|
2099
|
-
*/
|
|
2100
|
-
export const zAuthContextsGetResponse = zUserContextResponse;
|
|
2101
|
-
export const zAuditLogsListPermissionsData = z.object({
|
|
2102
|
-
body: z.never().optional(),
|
|
2103
|
-
path: z.never().optional(),
|
|
2104
|
-
query: z.object({
|
|
2105
|
-
user_id: z.uuid().nullish(),
|
|
2106
|
-
org_id: z.uuid().nullish(),
|
|
2107
|
-
permission_code: z.string().nullish(),
|
|
2108
|
-
result: z.string().nullish(),
|
|
2109
|
-
start_date: z.iso.datetime().nullish(),
|
|
2110
|
-
end_date: z.iso.datetime().nullish(),
|
|
2111
|
-
skip: z.int().gte(0).optional().default(0),
|
|
2112
|
-
limit: z.int().gte(1).lte(1000).optional().default(100)
|
|
2113
|
-
}).optional()
|
|
2114
|
-
});
|
|
2115
|
-
/**
|
|
2116
|
-
* Response Auditlogs.Listpermissions
|
|
2117
|
-
*
|
|
2118
|
-
* Successful Response
|
|
2119
|
-
*/
|
|
2120
|
-
export const zAuditLogsListPermissionsResponse = z.record(z.string(), z.unknown());
|
|
2121
|
-
export const zAuditLogsGetPermissionStatsData = z.object({
|
|
2122
|
-
body: z.never().optional(),
|
|
2123
|
-
path: z.never().optional(),
|
|
2124
|
-
query: z.object({
|
|
2125
|
-
org_id: z.uuid().nullish(),
|
|
2126
|
-
start_date: z.iso.datetime().nullish(),
|
|
2127
|
-
end_date: z.iso.datetime().nullish()
|
|
2128
|
-
}).optional()
|
|
2129
|
-
});
|
|
2130
|
-
/**
|
|
2131
|
-
* Successful Response
|
|
2132
|
-
*/
|
|
2133
|
-
export const zAuditLogsGetPermissionStatsResponse = zPermissionAuditStats;
|
|
2134
|
-
export const zEventsListData = z.object({
|
|
2135
|
-
body: z.never().optional(),
|
|
2136
|
-
path: z.never().optional(),
|
|
2137
|
-
query: z.object({
|
|
2138
|
-
limit: z.int().gte(1).lte(1000).optional().default(10),
|
|
2139
|
-
offset: z.int().gte(0).optional().default(0),
|
|
2140
|
-
sort_by: z.string().optional().default('created_dt'),
|
|
2141
|
-
sort_order: z.string().regex(/^(asc|desc)$/).optional().default('desc'),
|
|
2142
|
-
search: z.string().nullish(),
|
|
2143
|
-
start_dt: z.iso.datetime().nullish(),
|
|
2144
|
-
end_dt: z.iso.datetime().nullish(),
|
|
2145
|
-
visibility: z.array(z.int()).nullish(),
|
|
2146
|
-
creator_ids: z.array(z.string()).nullish(),
|
|
2147
|
-
is_deleted: z.boolean().nullish(),
|
|
2148
|
-
is_locked: z.boolean().nullish(),
|
|
2149
|
-
space_ids: z.array(z.int()).nullish(),
|
|
2150
|
-
document_ids: z.array(z.uuid()).nullish(),
|
|
2151
|
-
has_documents: z.boolean().nullish(),
|
|
2152
|
-
has_spaces: z.boolean().nullish(),
|
|
2153
|
-
title: z.string().nullish(),
|
|
2154
|
-
description: z.string().nullish(),
|
|
2155
|
-
keywords: z.array(z.string()).nullish(),
|
|
2156
|
-
is_recurring: z.boolean().nullish(),
|
|
2157
|
-
repeat_presets: z.array(z.string()).nullish(),
|
|
2158
|
-
repeat_days: z.array(z.int()).nullish(),
|
|
2159
|
-
filters: z.string().nullish()
|
|
2160
|
-
}).optional()
|
|
2161
|
-
});
|
|
2162
|
-
/**
|
|
2163
|
-
* Successful Response
|
|
2164
|
-
*/
|
|
2165
|
-
export const zEventsListResponse = zPaginatedEventListResponse;
|
|
2166
|
-
export const zEventsCreateData = z.object({
|
|
2167
|
-
body: zBodyEventsCreate,
|
|
2168
|
-
path: z.never().optional(),
|
|
2169
|
-
query: z.never().optional()
|
|
2170
|
-
});
|
|
2171
|
-
/**
|
|
2172
|
-
* Successful Response
|
|
2173
|
-
*/
|
|
2174
|
-
export const zEventsCreateResponse = zEventRead;
|
|
2175
|
-
export const zEventsListCalendarData = z.object({
|
|
2176
|
-
body: z.never().optional(),
|
|
2177
|
-
path: z.never().optional(),
|
|
2178
|
-
query: z.object({
|
|
2179
|
-
start_date: z.iso.datetime(),
|
|
2180
|
-
end_date: z.iso.datetime(),
|
|
2181
|
-
sort_by: z.string().optional().default('start_dt'),
|
|
2182
|
-
sort_order: z.string().regex(/^(asc|desc)$/).optional().default('asc'),
|
|
2183
|
-
search: z.string().nullish(),
|
|
2184
|
-
visibility: z.array(z.int()).nullish(),
|
|
2185
|
-
creator_ids: z.array(z.string()).nullish(),
|
|
2186
|
-
is_deleted: z.boolean().nullish(),
|
|
2187
|
-
is_locked: z.boolean().nullish(),
|
|
2188
|
-
space_ids: z.array(z.int()).nullish(),
|
|
2189
|
-
document_ids: z.array(z.uuid()).nullish(),
|
|
2190
|
-
has_documents: z.boolean().nullish(),
|
|
2191
|
-
has_spaces: z.boolean().nullish(),
|
|
2192
|
-
title: z.string().nullish(),
|
|
2193
|
-
description: z.string().nullish(),
|
|
2194
|
-
keywords: z.array(z.string()).nullish(),
|
|
2195
|
-
is_recurring: z.boolean().nullish(),
|
|
2196
|
-
repeat_presets: z.array(z.string()).nullish(),
|
|
2197
|
-
repeat_days: z.array(z.int()).nullish(),
|
|
2198
|
-
filters: z.string().nullish()
|
|
2199
|
-
})
|
|
2200
|
-
});
|
|
2201
|
-
/**
|
|
2202
|
-
* Successful Response
|
|
2203
|
-
*/
|
|
2204
|
-
export const zEventsListCalendarResponse = zPaginatedEventListResponse;
|
|
2205
|
-
export const zEventsGetSocialFeedData = z.object({
|
|
2206
|
-
body: z.never().optional(),
|
|
2207
|
-
path: z.never().optional(),
|
|
2208
|
-
query: z.object({
|
|
2209
|
-
cursor: z.string().nullish(),
|
|
2210
|
-
limit: z.int().gte(1).lte(100).optional().default(20),
|
|
2211
|
-
current_time: z.iso.datetime().nullish()
|
|
2212
|
-
}).optional()
|
|
2213
|
-
});
|
|
2214
|
-
/**
|
|
2215
|
-
* Successful Response
|
|
2216
|
-
*/
|
|
2217
|
-
export const zEventsGetSocialFeedResponse = zPaginatedEventListResponse;
|
|
2218
|
-
export const zEventsFilterAdvancedData = z.object({
|
|
2219
|
-
body: zEventFilterRequest,
|
|
2220
|
-
path: z.never().optional(),
|
|
2221
|
-
query: z.never().optional()
|
|
2222
|
-
});
|
|
2223
|
-
/**
|
|
2224
|
-
* Successful Response
|
|
2225
|
-
*/
|
|
2226
|
-
export const zEventsFilterAdvancedResponse = zPaginatedEventListResponse;
|
|
2227
|
-
export const zEventsListBySpaceData = z.object({
|
|
2228
|
-
body: z.never().optional(),
|
|
2229
|
-
path: z.object({
|
|
2230
|
-
space_id: z.int()
|
|
2231
|
-
}),
|
|
2232
|
-
query: z.object({
|
|
2233
|
-
limit: z.int().optional().default(10),
|
|
2234
|
-
offset: z.int().optional().default(0),
|
|
2235
|
-
sort_by: z.string().optional().default('created_at'),
|
|
2236
|
-
sort_order: z.string().optional().default('desc'),
|
|
2237
|
-
search: z.string().optional(),
|
|
2238
|
-
start_dt: z.iso.datetime().nullish(),
|
|
2239
|
-
end_dt: z.iso.datetime().nullish()
|
|
2240
|
-
}).optional()
|
|
2241
|
-
});
|
|
2242
|
-
/**
|
|
2243
|
-
* Successful Response
|
|
2244
|
-
*/
|
|
2245
|
-
export const zEventsListBySpaceResponse = zPaginatedEventListResponse;
|
|
2246
|
-
export const zEventsDeleteData = z.object({
|
|
2247
|
-
body: z.never().optional(),
|
|
2248
|
-
path: z.object({
|
|
2249
|
-
event_id: z.int()
|
|
2250
|
-
}),
|
|
2251
|
-
query: z.never().optional()
|
|
2252
|
-
});
|
|
2253
|
-
export const zEventGetData = z.object({
|
|
2254
|
-
body: z.never().optional(),
|
|
2255
|
-
path: z.object({
|
|
2256
|
-
event_id: z.int()
|
|
2257
|
-
}),
|
|
2258
|
-
query: z.never().optional()
|
|
2259
|
-
});
|
|
2260
|
-
/**
|
|
2261
|
-
* Successful Response
|
|
2262
|
-
*/
|
|
2263
|
-
export const zEventGetResponse = zEventRead;
|
|
2264
|
-
export const zEventUpdateData = z.object({
|
|
2265
|
-
body: zCreateEventRequest,
|
|
2266
|
-
path: z.object({
|
|
2267
|
-
event_id: z.int()
|
|
2268
|
-
}),
|
|
2269
|
-
query: z.never().optional()
|
|
2270
|
-
});
|
|
2271
|
-
/**
|
|
2272
|
-
* Successful Response
|
|
2273
|
-
*/
|
|
2274
|
-
export const zEventUpdateResponse = zEventRead;
|
|
2275
|
-
export const zEventsPatchIdentificationData = z.object({
|
|
2276
|
-
body: zUpdateEventIdentificationRequest,
|
|
2277
|
-
path: z.object({
|
|
2278
|
-
event_id: z.int()
|
|
2279
|
-
}),
|
|
2280
|
-
query: z.never().optional()
|
|
2281
|
-
});
|
|
2282
|
-
/**
|
|
2283
|
-
* Successful Response
|
|
2284
|
-
*/
|
|
2285
|
-
export const zEventsPatchIdentificationResponse = zSectionIdentificationRead;
|
|
2286
|
-
export const zEventsGetSectionIdentificationData = z.object({
|
|
2287
|
-
body: z.never().optional(),
|
|
2288
|
-
path: z.object({
|
|
2289
|
-
event_id: z.int()
|
|
2290
|
-
}),
|
|
2291
|
-
query: z.never().optional()
|
|
2292
|
-
});
|
|
2293
|
-
/**
|
|
2294
|
-
* Successful Response
|
|
2295
|
-
*/
|
|
2296
|
-
export const zEventsGetSectionIdentificationResponse = zSectionIdentificationRead;
|
|
2297
|
-
export const zEventsGetSectionContentData = z.object({
|
|
2298
|
-
body: z.never().optional(),
|
|
2299
|
-
path: z.object({
|
|
2300
|
-
event_id: z.int()
|
|
2301
|
-
}),
|
|
2302
|
-
query: z.never().optional()
|
|
2303
|
-
});
|
|
2304
|
-
/**
|
|
2305
|
-
* Successful Response
|
|
2306
|
-
*/
|
|
2307
|
-
export const zEventsGetSectionContentResponse = zSectionContentRead;
|
|
2308
|
-
export const zEventGetSectionSettingsData = z.object({
|
|
2309
|
-
body: z.never().optional(),
|
|
2310
|
-
path: z.object({
|
|
2311
|
-
event_id: z.int()
|
|
2312
|
-
}),
|
|
2313
|
-
query: z.never().optional()
|
|
2314
|
-
});
|
|
2315
|
-
/**
|
|
2316
|
-
* Successful Response
|
|
2317
|
-
*/
|
|
2318
|
-
export const zEventGetSectionSettingsResponse = zSectionSettingsRead;
|
|
2319
|
-
export const zEventsPatchContentData = z.object({
|
|
2320
|
-
body: zUpdateEventContentRequest,
|
|
2321
|
-
path: z.object({
|
|
2322
|
-
event_id: z.int()
|
|
2323
|
-
}),
|
|
2324
|
-
query: z.never().optional()
|
|
2325
|
-
});
|
|
2326
|
-
/**
|
|
2327
|
-
* Successful Response
|
|
2328
|
-
*/
|
|
2329
|
-
export const zEventsPatchContentResponse = zSectionContentRead;
|
|
2330
|
-
export const zEventsGetSettingsData = z.object({
|
|
2331
|
-
body: z.never().optional(),
|
|
2332
|
-
path: z.object({
|
|
2333
|
-
event_id: z.int()
|
|
2334
|
-
}),
|
|
2335
|
-
query: z.never().optional()
|
|
2336
|
-
});
|
|
2337
|
-
/**
|
|
2338
|
-
* Successful Response
|
|
2339
|
-
*/
|
|
2340
|
-
export const zEventsGetSettingsResponse = zSectionSettingsRead;
|
|
2341
|
-
export const zEventsPatchSettingsData = z.object({
|
|
2342
|
-
body: zUpdateEventSettingsRequest,
|
|
2343
|
-
path: z.object({
|
|
2344
|
-
event_id: z.int()
|
|
2345
|
-
}),
|
|
2346
|
-
query: z.never().optional()
|
|
2347
|
-
});
|
|
2348
|
-
/**
|
|
2349
|
-
* Successful Response
|
|
2350
|
-
*/
|
|
2351
|
-
export const zEventsPatchSettingsResponse = zSectionSettingsRead;
|
|
2352
|
-
export const zEventsUpdateCoverData = z.object({
|
|
2353
|
-
body: zBodyEventsUpdateCover,
|
|
2354
|
-
path: z.object({
|
|
2355
|
-
event_id: z.int()
|
|
2356
|
-
}),
|
|
2357
|
-
query: z.never().optional()
|
|
2358
|
-
});
|
|
2359
|
-
/**
|
|
2360
|
-
* Successful Response
|
|
2361
|
-
*/
|
|
2362
|
-
export const zEventsUpdateCoverResponse = zEventRead;
|
|
2363
|
-
export const zEventsPublishData = z.object({
|
|
2364
|
-
body: z.never().optional(),
|
|
2365
|
-
path: z.object({
|
|
2366
|
-
event_id: z.int()
|
|
2367
|
-
}),
|
|
2368
|
-
query: z.never().optional()
|
|
2369
|
-
});
|
|
2370
|
-
export const zEventsPublishWithNotificationsData = z.object({
|
|
2371
|
-
body: zPublishEventWithNotificationsRequest,
|
|
2372
|
-
path: z.object({
|
|
2373
|
-
event_id: z.int()
|
|
2374
|
-
}),
|
|
2375
|
-
query: z.never().optional()
|
|
2376
|
-
});
|
|
2377
|
-
export const zEventsArchiveData = z.object({
|
|
2378
|
-
body: z.never().optional(),
|
|
2379
|
-
path: z.object({
|
|
2380
|
-
event_id: z.int()
|
|
2381
|
-
}),
|
|
2382
|
-
query: z.never().optional()
|
|
2383
|
-
});
|
|
2384
|
-
export const zEventsTransferData = z.object({
|
|
2385
|
-
body: zTransferEventRequest,
|
|
2386
|
-
path: z.object({
|
|
2387
|
-
event_id: z.int()
|
|
2388
|
-
}),
|
|
2389
|
-
query: z.never().optional()
|
|
2390
|
-
});
|
|
2391
|
-
/**
|
|
2392
|
-
* Response Events.Transfer
|
|
2393
|
-
*
|
|
2394
|
-
* Successful Response
|
|
2395
|
-
*/
|
|
2396
|
-
export const zEventsTransferResponse = z.record(z.string(), z.unknown());
|
|
2397
|
-
export const zEventsPublishVersionData = z.object({
|
|
2398
|
-
body: z.never().optional(),
|
|
2399
|
-
path: z.object({
|
|
2400
|
-
event_id: z.int()
|
|
2401
|
-
}),
|
|
2402
|
-
query: z.never().optional()
|
|
2403
|
-
});
|
|
2404
|
-
export const zEventUnpublishVersionData = z.object({
|
|
2405
|
-
body: z.never().optional(),
|
|
2406
|
-
path: z.object({
|
|
2407
|
-
event_id: z.int()
|
|
2408
|
-
}),
|
|
2409
|
-
query: z.never().optional()
|
|
2410
|
-
});
|
|
2411
|
-
/**
|
|
2412
|
-
* Successful Response
|
|
2413
|
-
*/
|
|
2414
|
-
export const zEventUnpublishVersionResponse = z.void();
|
|
2415
|
-
export const zEventsListVersionsData = z.object({
|
|
2416
|
-
body: z.never().optional(),
|
|
2417
|
-
path: z.object({
|
|
2418
|
-
event_id: z.int()
|
|
2419
|
-
}),
|
|
2420
|
-
query: z.never().optional()
|
|
2421
|
-
});
|
|
2422
|
-
export const zEventsRollbackVersionData = z.object({
|
|
2423
|
-
body: z.never().optional(),
|
|
2424
|
-
path: z.object({
|
|
2425
|
-
event_id: z.int()
|
|
2426
|
-
}),
|
|
2427
|
-
query: z.object({
|
|
2428
|
-
transaction_id: z.int().gt(0)
|
|
2429
|
-
})
|
|
2430
|
-
});
|
|
2431
|
-
/**
|
|
2432
|
-
* Successful Response
|
|
2433
|
-
*/
|
|
2434
|
-
export const zEventsRollbackVersionResponse = zEventRead;
|
|
2435
|
-
export const zEventCompareVersionsData = z.object({
|
|
2436
|
-
body: z.never().optional(),
|
|
2437
|
-
path: z.object({
|
|
2438
|
-
event_id: z.int()
|
|
2439
|
-
}),
|
|
2440
|
-
query: z.object({
|
|
2441
|
-
transaction_id_a: z.int().gt(0),
|
|
2442
|
-
transaction_id_b: z.int().gt(0)
|
|
2443
|
-
})
|
|
2444
|
-
});
|
|
2445
|
-
export const zEventGetLatestVersionData = z.object({
|
|
2446
|
-
body: z.never().optional(),
|
|
2447
|
-
path: z.object({
|
|
2448
|
-
event_id: z.int()
|
|
2449
|
-
}),
|
|
2450
|
-
query: z.never().optional()
|
|
2451
|
-
});
|
|
2452
|
-
/**
|
|
2453
|
-
* Successful Response
|
|
2454
|
-
*/
|
|
2455
|
-
export const zEventGetLatestVersionResponse = zEventVersionRead;
|
|
2456
|
-
export const zEventGetVersionData = z.object({
|
|
2457
|
-
body: z.never().optional(),
|
|
2458
|
-
path: z.object({
|
|
2459
|
-
event_id: z.int(),
|
|
2460
|
-
transaction_id: z.int()
|
|
2461
|
-
}),
|
|
2462
|
-
query: z.never().optional()
|
|
2463
|
-
});
|
|
2464
|
-
/**
|
|
2465
|
-
* Successful Response
|
|
2466
|
-
*/
|
|
2467
|
-
export const zEventGetVersionResponse = zEventVersionRead;
|
|
2468
|
-
export const zEventsGetTimezonesData = z.object({
|
|
2469
|
-
body: z.never().optional(),
|
|
2470
|
-
path: z.never().optional(),
|
|
2471
|
-
query: z.never().optional()
|
|
2472
|
-
});
|
|
2473
|
-
/**
|
|
2474
|
-
* Response Events.Gettimezones
|
|
2475
|
-
*
|
|
2476
|
-
* Successful Response
|
|
2477
|
-
*/
|
|
2478
|
-
export const zEventsGetTimezonesResponse = z.record(z.string(), z.unknown());
|
|
2479
|
-
export const zEventTimezonesValidateData = z.object({
|
|
2480
|
-
body: z.never().optional(),
|
|
2481
|
-
path: z.never().optional(),
|
|
2482
|
-
query: z.object({
|
|
2483
|
-
timezone: z.string()
|
|
2484
|
-
})
|
|
2485
|
-
});
|
|
2486
|
-
/**
|
|
2487
|
-
* Response Eventtimezones.Validate
|
|
2488
|
-
*
|
|
2489
|
-
* Successful Response
|
|
2490
|
-
*/
|
|
2491
|
-
export const zEventTimezonesValidateResponse = z.record(z.string(), z.unknown());
|
|
2492
|
-
export const zEventAttendeesGetData = z.object({
|
|
2493
|
-
body: z.never().optional(),
|
|
2494
|
-
path: z.object({
|
|
2495
|
-
event_id: z.int()
|
|
2496
|
-
}),
|
|
2497
|
-
query: z.object({
|
|
2498
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
2499
|
-
offset: z.int().gte(0).optional().default(0),
|
|
2500
|
-
status: zAttendeeStatus.nullish(),
|
|
2501
|
-
is_checked_in: z.boolean().nullish()
|
|
2502
|
-
}).optional()
|
|
2503
|
-
});
|
|
2504
|
-
/**
|
|
2505
|
-
* Successful Response
|
|
2506
|
-
*/
|
|
2507
|
-
export const zEventAttendeesGetResponse = zEventAttendeeList;
|
|
2508
|
-
export const zEventAttendeesAddData = z.object({
|
|
2509
|
-
body: zEventAttendeeCreate,
|
|
2510
|
-
path: z.object({
|
|
2511
|
-
event_id: z.int()
|
|
2512
|
-
}),
|
|
2513
|
-
query: z.never().optional()
|
|
2514
|
-
});
|
|
2515
|
-
/**
|
|
2516
|
-
* Successful Response
|
|
2517
|
-
*/
|
|
2518
|
-
export const zEventAttendeesAddResponse = zEventAttendeeRead;
|
|
2519
|
-
export const zEventAttendeesRemoveBulkData = z.object({
|
|
2520
|
-
body: z.array(z.uuid()),
|
|
2521
|
-
path: z.object({
|
|
2522
|
-
event_id: z.int()
|
|
2523
|
-
}),
|
|
2524
|
-
query: z.never().optional()
|
|
2525
|
-
});
|
|
2526
|
-
/**
|
|
2527
|
-
* Response Eventattendees.Removebulk
|
|
2528
|
-
*
|
|
2529
|
-
* Successful Response
|
|
2530
|
-
*/
|
|
2531
|
-
export const zEventAttendeesRemoveBulkResponse = z.record(z.string(), z.unknown());
|
|
2532
|
-
export const zEventAttendeesAddBulkData = z.object({
|
|
2533
|
-
body: z.array(z.uuid()),
|
|
2534
|
-
path: z.object({
|
|
2535
|
-
event_id: z.int()
|
|
2536
|
-
}),
|
|
2537
|
-
query: z.object({
|
|
2538
|
-
status: zAttendeeStatus.optional().default('invited')
|
|
2539
|
-
}).optional()
|
|
2540
|
-
});
|
|
2541
|
-
/**
|
|
2542
|
-
* Response Eventattendees.Addbulk
|
|
2543
|
-
*
|
|
2544
|
-
* Successful Response
|
|
2545
|
-
*/
|
|
2546
|
-
export const zEventAttendeesAddBulkResponse = z.array(zEventAttendeeRead);
|
|
2547
|
-
export const zEventAttendeesRemoveData = z.object({
|
|
2548
|
-
body: z.never().optional(),
|
|
2549
|
-
path: z.object({
|
|
2550
|
-
event_id: z.int(),
|
|
2551
|
-
attendee_id: z.int()
|
|
2552
|
-
}),
|
|
2553
|
-
query: z.never().optional()
|
|
2554
|
-
});
|
|
2555
|
-
/**
|
|
2556
|
-
* Successful Response
|
|
2557
|
-
*/
|
|
2558
|
-
export const zEventAttendeesRemoveResponse = z.void();
|
|
2559
|
-
export const zEventAttendeesUpdateData = z.object({
|
|
2560
|
-
body: zEventAttendeeUpdate,
|
|
2561
|
-
path: z.object({
|
|
2562
|
-
event_id: z.int(),
|
|
2563
|
-
attendee_id: z.int()
|
|
2564
|
-
}),
|
|
2565
|
-
query: z.never().optional()
|
|
2566
|
-
});
|
|
2567
|
-
/**
|
|
2568
|
-
* Successful Response
|
|
2569
|
-
*/
|
|
2570
|
-
export const zEventAttendeesUpdateResponse = zEventAttendeeRead;
|
|
2571
|
-
export const zEventAttendeesCheckInData = z.object({
|
|
2572
|
-
body: z.never().optional(),
|
|
2573
|
-
path: z.object({
|
|
2574
|
-
event_id: z.int(),
|
|
2575
|
-
attendee_id: z.int()
|
|
2576
|
-
}),
|
|
2577
|
-
query: z.never().optional()
|
|
2578
|
-
});
|
|
2579
|
-
/**
|
|
2580
|
-
* Successful Response
|
|
2581
|
-
*/
|
|
2582
|
-
export const zEventAttendeesCheckInResponse = zEventAttendeeRead;
|
|
2583
|
-
export const zEventAttendeesUpdateBulkStatusData = z.object({
|
|
2584
|
-
body: z.array(z.uuid()),
|
|
2585
|
-
path: z.object({
|
|
2586
|
-
event_id: z.int()
|
|
2587
|
-
}),
|
|
2588
|
-
query: z.object({
|
|
2589
|
-
status: zAttendeeStatus
|
|
2590
|
-
})
|
|
2591
|
-
});
|
|
2592
|
-
/**
|
|
2593
|
-
* Response Eventattendees.Updatebulkstatus
|
|
2594
|
-
*
|
|
2595
|
-
* Successful Response
|
|
2596
|
-
*/
|
|
2597
|
-
export const zEventAttendeesUpdateBulkStatusResponse = z.record(z.string(), z.unknown());
|
|
2598
|
-
export const zEventTimelineGetData = z.object({
|
|
2599
|
-
body: z.never().optional(),
|
|
2600
|
-
path: z.object({
|
|
2601
|
-
event_id: z.int()
|
|
2602
|
-
}),
|
|
2603
|
-
query: z.never().optional()
|
|
2604
|
-
});
|
|
2605
|
-
/**
|
|
2606
|
-
* Response Eventtimeline.Get
|
|
2607
|
-
*
|
|
2608
|
-
* Successful Response
|
|
2609
|
-
*/
|
|
2610
|
-
export const zEventTimelineGetResponse = z.array(zEventRead);
|
|
2611
|
-
export const zEventTimelineGetPublishedData = z.object({
|
|
2612
|
-
body: z.never().optional(),
|
|
2613
|
-
path: z.object({
|
|
2614
|
-
event_id: z.int()
|
|
2615
|
-
}),
|
|
2616
|
-
query: z.never().optional()
|
|
2617
|
-
});
|
|
2618
|
-
/**
|
|
2619
|
-
* Response Eventtimeline.Getpublished
|
|
2620
|
-
*
|
|
2621
|
-
* Successful Response
|
|
2622
|
-
*/
|
|
2623
|
-
export const zEventTimelineGetPublishedResponse = z.array(zEventRead);
|
|
2624
|
-
export const zEventTimelineCreateMilestoneData = z.object({
|
|
2625
|
-
body: zBodyEventTimelineCreateMilestone,
|
|
2626
|
-
path: z.object({
|
|
2627
|
-
event_id: z.int()
|
|
2628
|
-
}),
|
|
2629
|
-
query: z.never().optional()
|
|
2630
|
-
});
|
|
2631
|
-
/**
|
|
2632
|
-
* Successful Response
|
|
2633
|
-
*/
|
|
2634
|
-
export const zEventTimelineCreateMilestoneResponse = zEventRead;
|
|
2635
|
-
export const zEventTimelineLinkMilestoneData = z.object({
|
|
2636
|
-
body: z.never().optional(),
|
|
2637
|
-
path: z.object({
|
|
2638
|
-
event_id: z.int()
|
|
2639
|
-
}),
|
|
2640
|
-
query: z.object({
|
|
2641
|
-
milestone_event_id: z.int(),
|
|
2642
|
-
sequence: z.int().optional().default(0)
|
|
2643
|
-
})
|
|
2644
|
-
});
|
|
2645
|
-
export const zEventTimelineUnlinkData = z.object({
|
|
2646
|
-
body: z.never().optional(),
|
|
2647
|
-
path: z.object({
|
|
2648
|
-
event_id: z.int(),
|
|
2649
|
-
milestone_event_id: z.int()
|
|
2650
|
-
}),
|
|
2651
|
-
query: z.never().optional()
|
|
2652
|
-
});
|
|
2653
|
-
export const zEventDocumentsRemoveData = z.object({
|
|
2654
|
-
body: z.never().optional(),
|
|
2655
|
-
path: z.object({
|
|
2656
|
-
event_id: z.int(),
|
|
2657
|
-
document_id: z.uuid()
|
|
2658
|
-
}),
|
|
2659
|
-
query: z.never().optional()
|
|
2660
|
-
});
|
|
2661
|
-
/**
|
|
2662
|
-
* Successful Response
|
|
2663
|
-
*/
|
|
2664
|
-
export const zEventDocumentsRemoveResponse = z.void();
|
|
2665
|
-
export const zEventDocumentsAddDocumentData = z.object({
|
|
2666
|
-
body: z.never().optional(),
|
|
2667
|
-
path: z.object({
|
|
2668
|
-
event_id: z.int(),
|
|
2669
|
-
document_id: z.uuid()
|
|
2670
|
-
}),
|
|
2671
|
-
query: z.never().optional()
|
|
2672
|
-
});
|
|
2673
|
-
export const zEventDocumentsGetDocumentsData = z.object({
|
|
2674
|
-
body: z.never().optional(),
|
|
2675
|
-
path: z.object({
|
|
2676
|
-
event_id: z.int()
|
|
2677
|
-
}),
|
|
2678
|
-
query: z.never().optional()
|
|
2679
|
-
});
|
|
2680
|
-
/**
|
|
2681
|
-
* Response Eventdocuments.Getdocuments
|
|
2682
|
-
*
|
|
2683
|
-
* Successful Response
|
|
2684
|
-
*/
|
|
2685
|
-
export const zEventDocumentsGetDocumentsResponse = z.array(z.uuid());
|
|
2686
|
-
export const zEventLocationGetData = z.object({
|
|
2687
|
-
body: z.never().optional(),
|
|
2688
|
-
path: z.object({
|
|
2689
|
-
event_id: z.int()
|
|
2690
|
-
}),
|
|
2691
|
-
query: z.never().optional()
|
|
2692
|
-
});
|
|
2693
|
-
/**
|
|
2694
|
-
* Successful Response
|
|
2695
|
-
*/
|
|
2696
|
-
export const zEventLocationGetResponse = zLocationResponse;
|
|
2697
|
-
export const zEventLocationUpdateData = z.object({
|
|
2698
|
-
body: zLocationUpdateSchema,
|
|
2699
|
-
path: z.object({
|
|
2700
|
-
event_id: z.int()
|
|
2701
|
-
}),
|
|
2702
|
-
query: z.never().optional()
|
|
2703
|
-
});
|
|
2704
|
-
/**
|
|
2705
|
-
* Successful Response
|
|
2706
|
-
*/
|
|
2707
|
-
export const zEventLocationUpdateResponse = zLocationResponse;
|
|
2708
|
-
export const zSpaceTestAuthData = z.object({
|
|
2709
|
-
body: z.never().optional(),
|
|
2710
|
-
path: z.never().optional(),
|
|
2711
|
-
query: z.never().optional()
|
|
2712
|
-
});
|
|
2713
|
-
export const zSpacesListData = z.object({
|
|
2714
|
-
body: z.never().optional(),
|
|
2715
|
-
path: z.never().optional(),
|
|
2716
|
-
query: z.object({
|
|
2717
|
-
limit: z.int().optional().default(10),
|
|
2718
|
-
offset: z.int().optional().default(0),
|
|
2719
|
-
prev: z.int().optional(),
|
|
2720
|
-
search: z.string().optional()
|
|
2721
|
-
}).optional()
|
|
2722
|
-
});
|
|
2723
|
-
/**
|
|
2724
|
-
* Successful Response
|
|
2725
|
-
*/
|
|
2726
|
-
export const zSpacesListResponse = zPaginatedSpaceListResponseDto;
|
|
2727
|
-
export const zSpacesCreateSpaceData = z.object({
|
|
2728
|
-
body: zCreateSpaceRequest,
|
|
2729
|
-
path: z.never().optional(),
|
|
2730
|
-
query: z.never().optional()
|
|
2731
|
-
});
|
|
2732
|
-
/**
|
|
2733
|
-
* Successful Response
|
|
2734
|
-
*/
|
|
2735
|
-
export const zSpacesCreateSpaceResponse = zCreateSpaceResponseDto;
|
|
2736
|
-
export const zSpacesDeleteByIdData = z.object({
|
|
2737
|
-
body: z.never().optional(),
|
|
2738
|
-
path: z.object({
|
|
2739
|
-
space_id: z.int()
|
|
2740
|
-
}),
|
|
2741
|
-
query: z.never().optional()
|
|
2742
|
-
});
|
|
2743
|
-
export const zSpacesGetByIdData = z.object({
|
|
2744
|
-
body: z.never().optional(),
|
|
2745
|
-
path: z.object({
|
|
2746
|
-
space_id: z.int()
|
|
2747
|
-
}),
|
|
2748
|
-
query: z.never().optional()
|
|
2749
|
-
});
|
|
2750
|
-
/**
|
|
2751
|
-
* Successful Response
|
|
2752
|
-
*/
|
|
2753
|
-
export const zSpacesGetByIdResponse = zGetSpaceListResponseDto;
|
|
2754
|
-
export const zSpaceUpdateData = z.object({
|
|
2755
|
-
body: zCreateSpaceRequest,
|
|
2756
|
-
path: z.object({
|
|
2757
|
-
space_id: z.int()
|
|
2758
|
-
}),
|
|
2759
|
-
query: z.never().optional()
|
|
2760
|
-
});
|
|
2761
|
-
/**
|
|
2762
|
-
* Successful Response
|
|
2763
|
-
*/
|
|
2764
|
-
export const zSpaceUpdateResponse = zUpdateSpaceResponseDto;
|
|
2765
|
-
export const zSpacesCreateWithParentData = z.object({
|
|
2766
|
-
body: zCreateSpaceWithParentRequest,
|
|
2767
|
-
path: z.never().optional(),
|
|
2768
|
-
query: z.never().optional()
|
|
2769
|
-
});
|
|
2770
|
-
/**
|
|
2771
|
-
* Successful Response
|
|
2772
|
-
*/
|
|
2773
|
-
export const zSpacesCreateWithParentResponse = zCreateSpaceResponseDto;
|
|
2774
|
-
export const zSpacePublishData = z.object({
|
|
2775
|
-
body: z.never().optional(),
|
|
2776
|
-
path: z.object({
|
|
2777
|
-
space_id: z.int()
|
|
2778
|
-
}),
|
|
2779
|
-
query: z.never().optional()
|
|
2780
|
-
});
|
|
2781
|
-
export const zSpacesPublishVersionData = z.object({
|
|
2782
|
-
body: z.never().optional(),
|
|
2783
|
-
path: z.object({
|
|
2784
|
-
space_id: z.int()
|
|
2785
|
-
}),
|
|
2786
|
-
query: z.never().optional()
|
|
2787
|
-
});
|
|
2788
|
-
/**
|
|
2789
|
-
* Successful Response
|
|
2790
|
-
*/
|
|
2791
|
-
export const zSpacesPublishVersionResponse = zSpaceVersionRead;
|
|
2792
|
-
export const zSpaceArchiveData = z.object({
|
|
2793
|
-
body: z.never().optional(),
|
|
2794
|
-
path: z.object({
|
|
2795
|
-
space_id: z.int()
|
|
2796
|
-
}),
|
|
2797
|
-
query: z.never().optional()
|
|
2798
|
-
});
|
|
2799
|
-
export const zSpacesGetMembersData = z.object({
|
|
2800
|
-
body: z.never().optional(),
|
|
2801
|
-
path: z.object({
|
|
2802
|
-
space_id: z.int()
|
|
2803
|
-
}),
|
|
2804
|
-
query: z.never().optional()
|
|
2805
|
-
});
|
|
2806
|
-
/**
|
|
2807
|
-
* Response Spaces.Getmembers
|
|
2808
|
-
*
|
|
2809
|
-
* Successful Response
|
|
2810
|
-
*/
|
|
2811
|
-
export const zSpacesGetMembersResponse = z.array(zSpaceMemberResponse);
|
|
2812
|
-
export const zSpacesAddMemberData = z.object({
|
|
2813
|
-
body: zAddSpaceMemberRequest,
|
|
2814
|
-
path: z.object({
|
|
2815
|
-
space_id: z.int()
|
|
2816
|
-
}),
|
|
2817
|
-
query: z.never().optional()
|
|
2818
|
-
});
|
|
2819
|
-
/**
|
|
2820
|
-
* Successful Response
|
|
2821
|
-
*/
|
|
2822
|
-
export const zSpacesAddMemberResponse = zSpaceMemberResponse;
|
|
2823
|
-
export const zSpacesRemoveMemberData = z.object({
|
|
2824
|
-
body: z.never().optional(),
|
|
2825
|
-
path: z.object({
|
|
2826
|
-
space_id: z.int(),
|
|
2827
|
-
user_id: z.string()
|
|
2828
|
-
}),
|
|
2829
|
-
query: z.never().optional()
|
|
2830
|
-
});
|
|
2831
|
-
export const zSpaceUpdateMemberRoleData = z.object({
|
|
2832
|
-
body: zUpdateSpaceMemberRoleRequest,
|
|
2833
|
-
path: z.object({
|
|
2834
|
-
space_id: z.int(),
|
|
2835
|
-
user_id: z.string()
|
|
2836
|
-
}),
|
|
2837
|
-
query: z.never().optional()
|
|
2838
|
-
});
|
|
2839
|
-
/**
|
|
2840
|
-
* Successful Response
|
|
2841
|
-
*/
|
|
2842
|
-
export const zSpaceUpdateMemberRoleResponse = zSpaceMemberResponse;
|
|
2843
|
-
export const zSpacesGetJoinableByUserData = z.object({
|
|
2844
|
-
body: z.never().optional(),
|
|
2845
|
-
path: z.object({
|
|
2846
|
-
user_id: z.string()
|
|
2847
|
-
}),
|
|
2848
|
-
query: z.object({
|
|
2849
|
-
limit: z.int().optional().default(10),
|
|
2850
|
-
prev: z.int().optional(),
|
|
2851
|
-
sort_by: z.string().optional().default('created_at'),
|
|
2852
|
-
sort_order: z.string().optional().default('desc')
|
|
2853
|
-
}).optional()
|
|
2854
|
-
});
|
|
2855
|
-
/**
|
|
2856
|
-
* Response Spaces.Getjoinablebyuser
|
|
2857
|
-
*
|
|
2858
|
-
* Successful Response
|
|
2859
|
-
*/
|
|
2860
|
-
export const zSpacesGetJoinableByUserResponse = z.array(zGetSpaceListResponseDto);
|
|
2861
|
-
export const zSpacesJoinData = z.object({
|
|
2862
|
-
body: z.never().optional(),
|
|
2863
|
-
path: z.object({
|
|
2864
|
-
space_id: z.int()
|
|
2865
|
-
}),
|
|
2866
|
-
query: z.never().optional()
|
|
2867
|
-
});
|
|
2868
|
-
/**
|
|
2869
|
-
* Successful Response
|
|
2870
|
-
*/
|
|
2871
|
-
export const zSpacesJoinResponse = zSpaceMemberResponse;
|
|
2872
|
-
export const zSpaceTransferData = z.object({
|
|
2873
|
-
body: zTransferSpaceRequest,
|
|
2874
|
-
path: z.object({
|
|
2875
|
-
space_id: z.int()
|
|
2876
|
-
}),
|
|
2877
|
-
query: z.never().optional()
|
|
2878
|
-
});
|
|
2879
|
-
/**
|
|
2880
|
-
* Successful Response
|
|
2881
|
-
*/
|
|
2882
|
-
export const zSpaceTransferResponse = zTransferSpaceResponse;
|
|
2883
|
-
export const zSpacesListChildrenData = z.object({
|
|
2884
|
-
body: z.never().optional(),
|
|
2885
|
-
path: z.object({
|
|
2886
|
-
space_id: z.int()
|
|
2887
|
-
}),
|
|
2888
|
-
query: z.never().optional()
|
|
2889
|
-
});
|
|
2890
|
-
/**
|
|
2891
|
-
* Response Spaces.Listchildren
|
|
2892
|
-
*
|
|
2893
|
-
* Successful Response
|
|
2894
|
-
*/
|
|
2895
|
-
export const zSpacesListChildrenResponse = z.array(zSubSpaceDisplayData);
|
|
2896
|
-
export const zSpacesDetachParentData = z.object({
|
|
2897
|
-
body: z.never().optional(),
|
|
2898
|
-
path: z.object({
|
|
2899
|
-
space_id: z.int()
|
|
2900
|
-
}),
|
|
2901
|
-
query: z.never().optional()
|
|
2902
|
-
});
|
|
2903
|
-
/**
|
|
2904
|
-
* Successful Response
|
|
2905
|
-
*/
|
|
2906
|
-
export const zSpacesDetachParentResponse = zGetSpaceListResponseDto;
|
|
2907
|
-
export const zSpacesGetParentData = z.object({
|
|
2908
|
-
body: z.never().optional(),
|
|
2909
|
-
path: z.object({
|
|
2910
|
-
space_id: z.int()
|
|
2911
|
-
}),
|
|
2912
|
-
query: z.never().optional()
|
|
2913
|
-
});
|
|
2914
|
-
/**
|
|
2915
|
-
* Successful Response
|
|
2916
|
-
*/
|
|
2917
|
-
export const zSpacesGetParentResponse = zGetSpaceListResponseDto;
|
|
2918
|
-
export const zSpacesUpdateParentData = z.object({
|
|
2919
|
-
body: zUpdateParentRequest,
|
|
2920
|
-
path: z.object({
|
|
2921
|
-
space_id: z.int()
|
|
2922
|
-
}),
|
|
2923
|
-
query: z.never().optional()
|
|
2924
|
-
});
|
|
2925
|
-
/**
|
|
2926
|
-
* Successful Response
|
|
2927
|
-
*/
|
|
2928
|
-
export const zSpacesUpdateParentResponse = zSpaceWithRelationshipsResponse;
|
|
2929
|
-
export const zSpacesGetHierarchyData = z.object({
|
|
2930
|
-
body: z.never().optional(),
|
|
2931
|
-
path: z.object({
|
|
2932
|
-
space_id: z.int()
|
|
2933
|
-
}),
|
|
2934
|
-
query: z.never().optional()
|
|
2935
|
-
});
|
|
2936
|
-
/**
|
|
2937
|
-
* Successful Response
|
|
2938
|
-
*/
|
|
2939
|
-
export const zSpacesGetHierarchyResponse = zSpaceHierarchyItem;
|
|
2940
|
-
export const zSpaceBulkUpdateParentData = z.object({
|
|
2941
|
-
body: zBulkUpdateParentRequest,
|
|
2942
|
-
path: z.never().optional(),
|
|
2943
|
-
query: z.never().optional()
|
|
2944
|
-
});
|
|
2945
|
-
/**
|
|
2946
|
-
* Response Space.Bulkupdateparent
|
|
2947
|
-
*
|
|
2948
|
-
* Successful Response
|
|
2949
|
-
*/
|
|
2950
|
-
export const zSpaceBulkUpdateParentResponse = z.array(zSpaceWithRelationshipsResponse);
|
|
2951
|
-
export const zSpacesUnpublishData = z.object({
|
|
2952
|
-
body: z.never().optional(),
|
|
2953
|
-
path: z.object({
|
|
2954
|
-
space_id: z.int()
|
|
2955
|
-
}),
|
|
2956
|
-
query: z.never().optional()
|
|
2957
|
-
});
|
|
2958
|
-
/**
|
|
2959
|
-
* Successful Response
|
|
2960
|
-
*/
|
|
2961
|
-
export const zSpacesUnpublishResponse = z.void();
|
|
2962
|
-
export const zSpacesListVersionsData = z.object({
|
|
2963
|
-
body: z.never().optional(),
|
|
2964
|
-
path: z.object({
|
|
2965
|
-
space_id: z.int()
|
|
2966
|
-
}),
|
|
2967
|
-
query: z.never().optional()
|
|
2968
|
-
});
|
|
2969
|
-
/**
|
|
2970
|
-
* Successful Response
|
|
2971
|
-
*/
|
|
2972
|
-
export const zSpacesListVersionsResponse = zSpaceVersionListResponse;
|
|
2973
|
-
export const zSpaceGetLatestVersionData = z.object({
|
|
2974
|
-
body: z.never().optional(),
|
|
2975
|
-
path: z.object({
|
|
2976
|
-
space_id: z.int()
|
|
2977
|
-
}),
|
|
2978
|
-
query: z.never().optional()
|
|
2979
|
-
});
|
|
2980
|
-
/**
|
|
2981
|
-
* Successful Response
|
|
2982
|
-
*/
|
|
2983
|
-
export const zSpaceGetLatestVersionResponse = zSpaceVersionRead;
|
|
2984
|
-
export const zSpacesGetVersionData = z.object({
|
|
2985
|
-
body: z.never().optional(),
|
|
2986
|
-
path: z.object({
|
|
2987
|
-
space_id: z.int(),
|
|
2988
|
-
version_number: z.int()
|
|
2989
|
-
}),
|
|
2990
|
-
query: z.never().optional()
|
|
2991
|
-
});
|
|
2992
|
-
/**
|
|
2993
|
-
* Successful Response
|
|
2994
|
-
*/
|
|
2995
|
-
export const zSpacesGetVersionResponse = zSpaceVersionRead;
|
|
2996
|
-
export const zSpacesCompareVersionsData = z.object({
|
|
2997
|
-
body: z.never().optional(),
|
|
2998
|
-
path: z.object({
|
|
2999
|
-
space_id: z.int()
|
|
3000
|
-
}),
|
|
3001
|
-
query: z.object({
|
|
3002
|
-
version_a: z.int().gt(0),
|
|
3003
|
-
version_b: z.int().gt(0)
|
|
3004
|
-
})
|
|
3005
|
-
});
|
|
3006
|
-
/**
|
|
3007
|
-
* Successful Response
|
|
3008
|
-
*/
|
|
3009
|
-
export const zSpacesCompareVersionsResponse = zVersionComparisonResponse;
|
|
3010
|
-
export const zSpacesRollbackData = z.object({
|
|
3011
|
-
body: zRollbackSpaceRequest,
|
|
3012
|
-
path: z.object({
|
|
3013
|
-
space_id: z.int()
|
|
3014
|
-
}),
|
|
3015
|
-
query: z.never().optional()
|
|
3016
|
-
});
|
|
3017
|
-
/**
|
|
3018
|
-
* Successful Response
|
|
3019
|
-
*/
|
|
3020
|
-
export const zSpacesRollbackResponse = zGetSpaceListResponseDto;
|
|
3021
|
-
export const zSpaceRolesListRolesData = z.object({
|
|
3022
|
-
body: z.never().optional(),
|
|
3023
|
-
path: z.object({
|
|
3024
|
-
space_id: z.int()
|
|
3025
|
-
}),
|
|
3026
|
-
query: z.never().optional()
|
|
3027
|
-
});
|
|
3028
|
-
/**
|
|
3029
|
-
* Response Spaceroles.Listroles
|
|
3030
|
-
*
|
|
3031
|
-
* Successful Response
|
|
3032
|
-
*/
|
|
3033
|
-
export const zSpaceRolesListRolesResponse = z.array(zSpaceRoleRead);
|
|
3034
|
-
export const zSpaceRolesCreateData = z.object({
|
|
3035
|
-
body: zSpaceRoleCreate,
|
|
3036
|
-
path: z.object({
|
|
3037
|
-
space_id: z.int()
|
|
3038
|
-
}),
|
|
3039
|
-
query: z.never().optional()
|
|
3040
|
-
});
|
|
3041
|
-
/**
|
|
3042
|
-
* Successful Response
|
|
3043
|
-
*/
|
|
3044
|
-
export const zSpaceRolesCreateResponse = zSpaceRoleRead;
|
|
3045
|
-
export const zSpaceRolesDeleteData = z.object({
|
|
3046
|
-
body: z.never().optional(),
|
|
3047
|
-
path: z.object({
|
|
3048
|
-
space_id: z.int(),
|
|
3049
|
-
role_id: z.uuid()
|
|
3050
|
-
}),
|
|
3051
|
-
query: z.never().optional()
|
|
3052
|
-
});
|
|
3053
|
-
/**
|
|
3054
|
-
* Successful Response
|
|
3055
|
-
*/
|
|
3056
|
-
export const zSpaceRolesDeleteResponse = z.void();
|
|
3057
|
-
export const zSpaceRolesGetData = z.object({
|
|
3058
|
-
body: z.never().optional(),
|
|
3059
|
-
path: z.object({
|
|
3060
|
-
space_id: z.int(),
|
|
3061
|
-
role_id: z.uuid()
|
|
3062
|
-
}),
|
|
3063
|
-
query: z.never().optional()
|
|
3064
|
-
});
|
|
3065
|
-
/**
|
|
3066
|
-
* Successful Response
|
|
3067
|
-
*/
|
|
3068
|
-
export const zSpaceRolesGetResponse = zSpaceRoleRead;
|
|
3069
|
-
export const zSpaceRolesUpdateRoleData = z.object({
|
|
3070
|
-
body: zSpaceRoleUpdate,
|
|
3071
|
-
path: z.object({
|
|
3072
|
-
space_id: z.int(),
|
|
3073
|
-
role_id: z.uuid()
|
|
3074
|
-
}),
|
|
3075
|
-
query: z.never().optional()
|
|
3076
|
-
});
|
|
3077
|
-
/**
|
|
3078
|
-
* Successful Response
|
|
3079
|
-
*/
|
|
3080
|
-
export const zSpaceRolesUpdateRoleResponse = zSpaceRoleRead;
|
|
3081
|
-
export const zSpaceRolesAssignPermissionData = z.object({
|
|
3082
|
-
body: zSpaceRolePermissionAssign,
|
|
3083
|
-
path: z.object({
|
|
3084
|
-
space_id: z.int(),
|
|
3085
|
-
role_id: z.uuid()
|
|
3086
|
-
}),
|
|
3087
|
-
query: z.never().optional()
|
|
3088
|
-
});
|
|
3089
|
-
export const zSpaceRolesRemovePermissionData = z.object({
|
|
3090
|
-
body: z.never().optional(),
|
|
3091
|
-
path: z.object({
|
|
3092
|
-
space_id: z.int(),
|
|
3093
|
-
role_id: z.uuid(),
|
|
3094
|
-
permission_id: z.uuid()
|
|
3095
|
-
}),
|
|
3096
|
-
query: z.never().optional()
|
|
3097
|
-
});
|
|
3098
|
-
/**
|
|
3099
|
-
* Successful Response
|
|
3100
|
-
*/
|
|
3101
|
-
export const zSpaceRolesRemovePermissionResponse = z.void();
|
|
3102
|
-
export const zSpaceGetUserRolesData = z.object({
|
|
3103
|
-
body: z.never().optional(),
|
|
3104
|
-
path: z.object({
|
|
3105
|
-
space_id: z.int(),
|
|
3106
|
-
user_id: z.uuid()
|
|
3107
|
-
}),
|
|
3108
|
-
query: z.never().optional()
|
|
3109
|
-
});
|
|
3110
|
-
/**
|
|
3111
|
-
* Response Space.Getuserroles
|
|
3112
|
-
*
|
|
3113
|
-
* Successful Response
|
|
3114
|
-
*/
|
|
3115
|
-
export const zSpaceGetUserRolesResponse = z.array(z.record(z.string(), z.unknown()));
|
|
3116
|
-
export const zSpaceAssignUserToRoleData = z.object({
|
|
3117
|
-
body: z.never().optional(),
|
|
3118
|
-
path: z.object({
|
|
3119
|
-
space_id: z.int(),
|
|
3120
|
-
user_id: z.uuid()
|
|
3121
|
-
}),
|
|
3122
|
-
query: z.object({
|
|
3123
|
-
space_role_id: z.uuid()
|
|
3124
|
-
})
|
|
3125
|
-
});
|
|
3126
|
-
export const zSpacesRemoveUserFromRoleData = z.object({
|
|
3127
|
-
body: z.never().optional(),
|
|
3128
|
-
path: z.object({
|
|
3129
|
-
space_id: z.int(),
|
|
3130
|
-
user_id: z.uuid(),
|
|
3131
|
-
space_role_id: z.uuid()
|
|
3132
|
-
}),
|
|
3133
|
-
query: z.never().optional()
|
|
3134
|
-
});
|
|
3135
|
-
/**
|
|
3136
|
-
* Successful Response
|
|
3137
|
-
*/
|
|
3138
|
-
export const zSpacesRemoveUserFromRoleResponse = z.void();
|
|
3139
|
-
export const zSpaceContactsGetContactsBySpaceData = z.object({
|
|
3140
|
-
body: z.never().optional(),
|
|
3141
|
-
path: z.object({
|
|
3142
|
-
space_id: z.int()
|
|
3143
|
-
}),
|
|
3144
|
-
query: z.object({
|
|
3145
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3146
|
-
offset: z.int().gte(0).optional().default(0)
|
|
3147
|
-
}).optional()
|
|
3148
|
-
});
|
|
3149
|
-
/**
|
|
3150
|
-
* Successful Response
|
|
3151
|
-
*/
|
|
3152
|
-
export const zSpaceContactsGetContactsBySpaceResponse = zSpaceContactList;
|
|
3153
|
-
export const zSpaceContactsAddData = z.object({
|
|
3154
|
-
body: zSpaceContactCreate,
|
|
3155
|
-
path: z.object({
|
|
3156
|
-
space_id: z.int()
|
|
3157
|
-
}),
|
|
3158
|
-
query: z.never().optional()
|
|
3159
|
-
});
|
|
3160
|
-
/**
|
|
3161
|
-
* Successful Response
|
|
3162
|
-
*/
|
|
3163
|
-
export const zSpaceContactsAddResponse = zSpaceContactRead;
|
|
3164
|
-
export const zSpaceContactsGetSpacesByContactData = z.object({
|
|
3165
|
-
body: z.never().optional(),
|
|
3166
|
-
path: z.object({
|
|
3167
|
-
contact_id: z.uuid()
|
|
3168
|
-
}),
|
|
3169
|
-
query: z.object({
|
|
3170
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3171
|
-
offset: z.int().gte(0).optional().default(0)
|
|
3172
|
-
}).optional()
|
|
3173
|
-
});
|
|
3174
|
-
/**
|
|
3175
|
-
* Response Spacecontacts.Getspacesbycontact
|
|
3176
|
-
*
|
|
3177
|
-
* Successful Response
|
|
3178
|
-
*/
|
|
3179
|
-
export const zSpaceContactsGetSpacesByContactResponse = z.array(zSpaceContactRead);
|
|
3180
|
-
export const zSpaceContactsRemoveData = z.object({
|
|
3181
|
-
body: z.never().optional(),
|
|
3182
|
-
path: z.object({
|
|
3183
|
-
space_contact_id: z.int()
|
|
3184
|
-
}),
|
|
3185
|
-
query: z.never().optional()
|
|
3186
|
-
});
|
|
3187
|
-
/**
|
|
3188
|
-
* Response Spacecontacts.Remove
|
|
3189
|
-
*
|
|
3190
|
-
* Successful Response
|
|
3191
|
-
*/
|
|
3192
|
-
export const zSpaceContactsRemoveResponse = z.record(z.string(), z.unknown());
|
|
3193
|
-
export const zSpaceContactsGetData = z.object({
|
|
3194
|
-
body: z.never().optional(),
|
|
3195
|
-
path: z.object({
|
|
3196
|
-
space_contact_id: z.int()
|
|
3197
|
-
}),
|
|
3198
|
-
query: z.never().optional()
|
|
3199
|
-
});
|
|
3200
|
-
/**
|
|
3201
|
-
* Successful Response
|
|
3202
|
-
*/
|
|
3203
|
-
export const zSpaceContactsGetResponse = zSpaceContactRead;
|
|
3204
|
-
export const zSpaceContactsBulkDeleteData = z.object({
|
|
3205
|
-
body: z.array(z.uuid()),
|
|
3206
|
-
path: z.object({
|
|
3207
|
-
space_id: z.int()
|
|
3208
|
-
}),
|
|
3209
|
-
query: z.never().optional()
|
|
3210
|
-
});
|
|
3211
|
-
/**
|
|
3212
|
-
* Response Spacecontacts.Bulkdelete
|
|
3213
|
-
*
|
|
3214
|
-
* Successful Response
|
|
3215
|
-
*/
|
|
3216
|
-
export const zSpaceContactsBulkDeleteResponse = z.record(z.string(), z.unknown());
|
|
3217
|
-
export const zSpaceContactsAddBulkData = z.object({
|
|
3218
|
-
body: z.array(z.uuid()),
|
|
3219
|
-
path: z.object({
|
|
3220
|
-
space_id: z.int()
|
|
3221
|
-
}),
|
|
3222
|
-
query: z.never().optional()
|
|
3223
|
-
});
|
|
3224
|
-
/**
|
|
3225
|
-
* Response Spacecontacts.Addbulk
|
|
3226
|
-
*
|
|
3227
|
-
* Successful Response
|
|
3228
|
-
*/
|
|
3229
|
-
export const zSpaceContactsAddBulkResponse = z.array(zSpaceContactRead);
|
|
3230
|
-
export const zSpaceContactsCountData = z.object({
|
|
3231
|
-
body: z.never().optional(),
|
|
3232
|
-
path: z.object({
|
|
3233
|
-
space_id: z.int()
|
|
3234
|
-
}),
|
|
3235
|
-
query: z.never().optional()
|
|
3236
|
-
});
|
|
3237
|
-
/**
|
|
3238
|
-
* Response Spacecontacts.Count
|
|
3239
|
-
*
|
|
3240
|
-
* Successful Response
|
|
3241
|
-
*/
|
|
3242
|
-
export const zSpaceContactsCountResponse = z.record(z.string(), z.unknown());
|
|
3243
|
-
export const zSpaceEventsGetData = z.object({
|
|
3244
|
-
body: z.never().optional(),
|
|
3245
|
-
path: z.object({
|
|
3246
|
-
space_id: z.int()
|
|
3247
|
-
}),
|
|
3248
|
-
query: z.object({
|
|
3249
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3250
|
-
offset: z.int().gte(0).optional().default(0)
|
|
3251
|
-
}).optional()
|
|
3252
|
-
});
|
|
3253
|
-
/**
|
|
3254
|
-
* Successful Response
|
|
3255
|
-
*/
|
|
3256
|
-
export const zSpaceEventsGetResponse = zSpaceEventList;
|
|
3257
|
-
export const zSpaceEventsAddData = z.object({
|
|
3258
|
-
body: zSpaceEventCreate,
|
|
3259
|
-
path: z.object({
|
|
3260
|
-
space_id: z.int()
|
|
3261
|
-
}),
|
|
3262
|
-
query: z.never().optional()
|
|
3263
|
-
});
|
|
3264
|
-
/**
|
|
3265
|
-
* Successful Response
|
|
3266
|
-
*/
|
|
3267
|
-
export const zSpaceEventsAddResponse = zSpaceEventRead;
|
|
3268
|
-
export const zSpaceEventsGetEventSpacesData = z.object({
|
|
3269
|
-
body: z.never().optional(),
|
|
3270
|
-
path: z.object({
|
|
3271
|
-
event_id: z.int()
|
|
3272
|
-
}),
|
|
3273
|
-
query: z.object({
|
|
3274
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3275
|
-
offset: z.int().gte(0).optional().default(0)
|
|
3276
|
-
}).optional()
|
|
3277
|
-
});
|
|
3278
|
-
/**
|
|
3279
|
-
* Response Spaceevents.Geteventspaces
|
|
3280
|
-
*
|
|
3281
|
-
* Successful Response
|
|
3282
|
-
*/
|
|
3283
|
-
export const zSpaceEventsGetEventSpacesResponse = z.array(zSpaceEventRead);
|
|
3284
|
-
export const zSpaceEventsRemoveEventData = z.object({
|
|
3285
|
-
body: z.never().optional(),
|
|
3286
|
-
path: z.object({
|
|
3287
|
-
space_event_id: z.int()
|
|
3288
|
-
}),
|
|
3289
|
-
query: z.never().optional()
|
|
3290
|
-
});
|
|
3291
|
-
/**
|
|
3292
|
-
* Response Spaceevents.Removeevent
|
|
3293
|
-
*
|
|
3294
|
-
* Successful Response
|
|
3295
|
-
*/
|
|
3296
|
-
export const zSpaceEventsRemoveEventResponse = z.record(z.string(), z.unknown());
|
|
3297
|
-
export const zSpaceEventsGetByIdData = z.object({
|
|
3298
|
-
body: z.never().optional(),
|
|
3299
|
-
path: z.object({
|
|
3300
|
-
space_event_id: z.int()
|
|
3301
|
-
}),
|
|
3302
|
-
query: z.never().optional()
|
|
3303
|
-
});
|
|
3304
|
-
/**
|
|
3305
|
-
* Successful Response
|
|
3306
|
-
*/
|
|
3307
|
-
export const zSpaceEventsGetByIdResponse = zSpaceEventRead;
|
|
3308
|
-
export const zSpaceEventsBulkRemoveData = z.object({
|
|
3309
|
-
body: z.never().optional(),
|
|
3310
|
-
path: z.object({
|
|
3311
|
-
space_id: z.int()
|
|
3312
|
-
}),
|
|
3313
|
-
query: z.object({
|
|
3314
|
-
event_ids: z.array(z.int())
|
|
3315
|
-
})
|
|
3316
|
-
});
|
|
3317
|
-
/**
|
|
3318
|
-
* Response Spaceevents.Bulkremove
|
|
3319
|
-
*
|
|
3320
|
-
* Successful Response
|
|
3321
|
-
*/
|
|
3322
|
-
export const zSpaceEventsBulkRemoveResponse = z.record(z.string(), z.unknown());
|
|
3323
|
-
export const zSpaceEventsBulkAddData = z.object({
|
|
3324
|
-
body: z.array(z.int()),
|
|
3325
|
-
path: z.object({
|
|
3326
|
-
space_id: z.int()
|
|
3327
|
-
}),
|
|
3328
|
-
query: z.never().optional()
|
|
3329
|
-
});
|
|
3330
|
-
/**
|
|
3331
|
-
* Response Spaceevents.Bulkadd
|
|
3332
|
-
*
|
|
3333
|
-
* Successful Response
|
|
3334
|
-
*/
|
|
3335
|
-
export const zSpaceEventsBulkAddResponse = z.array(zSpaceEventRead);
|
|
3336
|
-
export const zSpaceEventsCountData = z.object({
|
|
3337
|
-
body: z.never().optional(),
|
|
3338
|
-
path: z.object({
|
|
3339
|
-
space_id: z.int()
|
|
3340
|
-
}),
|
|
3341
|
-
query: z.never().optional()
|
|
3342
|
-
});
|
|
3343
|
-
/**
|
|
3344
|
-
* Response Spaceevents.Count
|
|
3345
|
-
*
|
|
3346
|
-
* Successful Response
|
|
3347
|
-
*/
|
|
3348
|
-
export const zSpaceEventsCountResponse = z.record(z.string(), z.unknown());
|
|
3349
|
-
export const zSpaceDocumentsRemoveData = z.object({
|
|
3350
|
-
body: z.never().optional(),
|
|
3351
|
-
path: z.object({
|
|
3352
|
-
space_id: z.int(),
|
|
3353
|
-
document_id: z.uuid()
|
|
3354
|
-
}),
|
|
3355
|
-
query: z.never().optional()
|
|
3356
|
-
});
|
|
3357
|
-
/**
|
|
3358
|
-
* Successful Response
|
|
3359
|
-
*/
|
|
3360
|
-
export const zSpaceDocumentsRemoveResponse = z.void();
|
|
3361
|
-
export const zSpaceDocumentsAddData = z.object({
|
|
3362
|
-
body: z.never().optional(),
|
|
3363
|
-
path: z.object({
|
|
3364
|
-
space_id: z.int(),
|
|
3365
|
-
document_id: z.uuid()
|
|
3366
|
-
}),
|
|
3367
|
-
query: z.never().optional()
|
|
3368
|
-
});
|
|
3369
|
-
export const zSpaceDocumentsGetData = z.object({
|
|
3370
|
-
body: z.never().optional(),
|
|
3371
|
-
path: z.object({
|
|
3372
|
-
space_id: z.int()
|
|
3373
|
-
}),
|
|
3374
|
-
query: z.never().optional()
|
|
3375
|
-
});
|
|
3376
|
-
/**
|
|
3377
|
-
* Response Spacedocuments.Get
|
|
3378
|
-
*
|
|
3379
|
-
* Successful Response
|
|
3380
|
-
*/
|
|
3381
|
-
export const zSpaceDocumentsGetResponse = z.array(z.uuid());
|
|
3382
|
-
export const zPlacesListData = z.object({
|
|
3383
|
-
body: z.never().optional(),
|
|
3384
|
-
path: z.never().optional(),
|
|
3385
|
-
query: z.object({
|
|
3386
|
-
limit: z.int().optional().default(10),
|
|
3387
|
-
prev: z.int().optional()
|
|
3388
|
-
}).optional()
|
|
3389
|
-
});
|
|
3390
|
-
/**
|
|
3391
|
-
* Response Places.List
|
|
3392
|
-
*
|
|
3393
|
-
* Successful Response
|
|
3394
|
-
*/
|
|
3395
|
-
export const zPlacesListResponse = z.array(zGetPlaceListResponseDto);
|
|
3396
|
-
export const zPlacesCreateData = z.object({
|
|
3397
|
-
body: z.union([
|
|
3398
|
-
z.object({
|
|
3399
|
-
place_type: z.literal('room')
|
|
3400
|
-
}).and(zCreateRoomRequest),
|
|
3401
|
-
z.object({
|
|
3402
|
-
place_type: z.literal('online_meeting')
|
|
3403
|
-
}).and(zCreateOnlineMeetingRequest)
|
|
3404
|
-
]),
|
|
3405
|
-
path: z.never().optional(),
|
|
3406
|
-
query: z.never().optional()
|
|
3407
|
-
});
|
|
3408
|
-
/**
|
|
3409
|
-
* Successful Response
|
|
3410
|
-
*/
|
|
3411
|
-
export const zPlacesCreateResponse = zCreatePlaceResponseDto;
|
|
3412
|
-
export const zPlacesDeleteData = z.object({
|
|
3413
|
-
body: z.never().optional(),
|
|
3414
|
-
path: z.object({
|
|
3415
|
-
place_id: z.int()
|
|
3416
|
-
}),
|
|
3417
|
-
query: z.never().optional()
|
|
3418
|
-
});
|
|
3419
|
-
export const zPlacesGetData = z.object({
|
|
3420
|
-
body: z.never().optional(),
|
|
3421
|
-
path: z.object({
|
|
3422
|
-
place_id: z.int()
|
|
3423
|
-
}),
|
|
3424
|
-
query: z.never().optional()
|
|
3425
|
-
});
|
|
3426
|
-
/**
|
|
3427
|
-
* Successful Response
|
|
3428
|
-
*/
|
|
3429
|
-
export const zPlacesGetResponse = zGetPlaceListResponseDto;
|
|
3430
|
-
export const zPlacesUpdateData = z.object({
|
|
3431
|
-
body: zUpdatePlaceRequest,
|
|
3432
|
-
path: z.object({
|
|
3433
|
-
place_id: z.int()
|
|
3434
|
-
}),
|
|
3435
|
-
query: z.never().optional()
|
|
3436
|
-
});
|
|
3437
|
-
/**
|
|
3438
|
-
* Successful Response
|
|
3439
|
-
*/
|
|
3440
|
-
export const zPlacesUpdateResponse = zUpdatePlaceResponseDto;
|
|
3441
|
-
export const zPlacePublishData = z.object({
|
|
3442
|
-
body: z.never().optional(),
|
|
3443
|
-
path: z.object({
|
|
3444
|
-
place_id: z.int()
|
|
3445
|
-
}),
|
|
3446
|
-
query: z.never().optional()
|
|
3447
|
-
});
|
|
3448
|
-
export const zPlaceArchiveData = z.object({
|
|
3449
|
-
body: z.never().optional(),
|
|
3450
|
-
path: z.object({
|
|
3451
|
-
place_id: z.int()
|
|
3452
|
-
}),
|
|
3453
|
-
query: z.never().optional()
|
|
3454
|
-
});
|
|
3455
|
-
export const zAnalyticGetTotalsData = z.object({
|
|
3456
|
-
body: z.never().optional(),
|
|
3457
|
-
path: z.never().optional(),
|
|
3458
|
-
query: z.never().optional()
|
|
3459
|
-
});
|
|
3460
|
-
/**
|
|
3461
|
-
* Successful Response
|
|
3462
|
-
*/
|
|
3463
|
-
export const zAnalyticGetTotalsResponse = zGetAnalyticTotalsDto;
|
|
3464
|
-
export const zAnalyticGetDashboardData = z.object({
|
|
3465
|
-
body: z.never().optional(),
|
|
3466
|
-
path: z.never().optional(),
|
|
3467
|
-
query: z.never().optional()
|
|
3468
|
-
});
|
|
3469
|
-
/**
|
|
3470
|
-
* Successful Response
|
|
3471
|
-
*/
|
|
3472
|
-
export const zAnalyticGetDashboardResponse = zDashboardStoryResponse;
|
|
3473
|
-
export const zOrganizationsListData = z.object({
|
|
3474
|
-
body: z.never().optional(),
|
|
3475
|
-
path: z.never().optional(),
|
|
3476
|
-
query: z.object({
|
|
3477
|
-
limit: z.int().optional().default(100),
|
|
3478
|
-
offset: z.int().optional().default(0)
|
|
3479
|
-
}).optional()
|
|
3480
|
-
});
|
|
3481
|
-
/**
|
|
3482
|
-
* Response Organizations.List
|
|
3483
|
-
*
|
|
3484
|
-
* Successful Response
|
|
3485
|
-
*/
|
|
3486
|
-
export const zOrganizationsListResponse = z.array(zOrganizationResponse);
|
|
3487
|
-
export const zOrganizationsCreateData = z.object({
|
|
3488
|
-
body: zCreateOrganizationRequest,
|
|
3489
|
-
path: z.never().optional(),
|
|
3490
|
-
query: z.never().optional()
|
|
3491
|
-
});
|
|
3492
|
-
/**
|
|
3493
|
-
* Successful Response
|
|
3494
|
-
*/
|
|
3495
|
-
export const zOrganizationsCreateResponse = zOrganizationResponse;
|
|
3496
|
-
export const zOrganizationsGetCurrentData = z.object({
|
|
3497
|
-
body: z.never().optional(),
|
|
3498
|
-
path: z.never().optional(),
|
|
3499
|
-
query: z.never().optional()
|
|
3500
|
-
});
|
|
3501
|
-
/**
|
|
3502
|
-
* Successful Response
|
|
3503
|
-
*/
|
|
3504
|
-
export const zOrganizationsGetCurrentResponse = zOrganizationResponse;
|
|
3505
|
-
export const zOrganizationsGetInvitesData = z.object({
|
|
3506
|
-
body: z.never().optional(),
|
|
3507
|
-
path: z.object({
|
|
3508
|
-
org_id: z.string()
|
|
3509
|
-
}),
|
|
3510
|
-
query: z.never().optional()
|
|
3511
|
-
});
|
|
3512
|
-
/**
|
|
3513
|
-
* Response Organizations.Getinvites
|
|
3514
|
-
*
|
|
3515
|
-
* Successful Response
|
|
3516
|
-
*/
|
|
3517
|
-
export const zOrganizationsGetInvitesResponse = z.array(zInviteRead);
|
|
3518
|
-
export const zOrganizationsCreateInviteData = z.object({
|
|
3519
|
-
body: zCreateInviteRequest,
|
|
3520
|
-
path: z.object({
|
|
3521
|
-
org_id: z.string()
|
|
3522
|
-
}),
|
|
3523
|
-
query: z.never().optional()
|
|
3524
|
-
});
|
|
3525
|
-
/**
|
|
3526
|
-
* Successful Response
|
|
3527
|
-
*/
|
|
3528
|
-
export const zOrganizationsCreateInviteResponse = zInviteRead;
|
|
3529
|
-
export const zOrganizationsDeleteInviteData = z.object({
|
|
3530
|
-
body: z.never().optional(),
|
|
3531
|
-
path: z.object({
|
|
3532
|
-
org_id: z.string(),
|
|
3533
|
-
invite_id: z.string()
|
|
3534
|
-
}),
|
|
3535
|
-
query: z.never().optional()
|
|
3536
|
-
});
|
|
3537
|
-
/**
|
|
3538
|
-
* Successful Response
|
|
3539
|
-
*/
|
|
3540
|
-
export const zOrganizationsDeleteInviteResponse = z.void();
|
|
3541
|
-
export const zOrganizationsArchiveData = z.object({
|
|
3542
|
-
body: z.never().optional(),
|
|
3543
|
-
path: z.object({
|
|
3544
|
-
org_id: z.string()
|
|
3545
|
-
}),
|
|
3546
|
-
query: z.never().optional()
|
|
3547
|
-
});
|
|
3548
|
-
/**
|
|
3549
|
-
* Successful Response
|
|
3550
|
-
*/
|
|
3551
|
-
export const zOrganizationsArchiveResponse = z.void();
|
|
3552
|
-
export const zOrganizationsGetByIdData = z.object({
|
|
3553
|
-
body: z.never().optional(),
|
|
3554
|
-
path: z.object({
|
|
3555
|
-
org_id: z.string()
|
|
3556
|
-
}),
|
|
3557
|
-
query: z.never().optional()
|
|
3558
|
-
});
|
|
3559
|
-
/**
|
|
3560
|
-
* Successful Response
|
|
3561
|
-
*/
|
|
3562
|
-
export const zOrganizationsGetByIdResponse = zOrganizationResponse;
|
|
3563
|
-
export const zOrganizationsUpdateData = z.object({
|
|
3564
|
-
body: zUpdateOrganizationRequest,
|
|
3565
|
-
path: z.object({
|
|
3566
|
-
org_id: z.string()
|
|
3567
|
-
}),
|
|
3568
|
-
query: z.never().optional()
|
|
3569
|
-
});
|
|
3570
|
-
/**
|
|
3571
|
-
* Successful Response
|
|
3572
|
-
*/
|
|
3573
|
-
export const zOrganizationsUpdateResponse = zOrganizationResponse;
|
|
3574
|
-
export const zCustomRolesListData = z.object({
|
|
3575
|
-
body: z.never().optional(),
|
|
3576
|
-
path: z.never().optional(),
|
|
3577
|
-
query: z.object({
|
|
3578
|
-
org_id: z.string().nullish(),
|
|
3579
|
-
limit: z.int().gte(1).lte(100).optional().default(50)
|
|
3580
|
-
}).optional()
|
|
3581
|
-
});
|
|
3582
|
-
/**
|
|
3583
|
-
* Response Customroles.List
|
|
3584
|
-
*
|
|
3585
|
-
* Successful Response
|
|
3586
|
-
*/
|
|
3587
|
-
export const zCustomRolesListResponse = z.array(zRoleListResponse);
|
|
3588
|
-
export const zCustomRolesCreateData = z.object({
|
|
3589
|
-
body: zCreateRoleRequest,
|
|
3590
|
-
path: z.never().optional(),
|
|
3591
|
-
query: z.object({
|
|
3592
|
-
org_id: z.string().nullish()
|
|
3593
|
-
}).optional()
|
|
3594
|
-
});
|
|
3595
|
-
/**
|
|
3596
|
-
* Successful Response
|
|
3597
|
-
*/
|
|
3598
|
-
export const zCustomRolesCreateResponse = zRoleResponse;
|
|
3599
|
-
export const zRolesDeleteData = z.object({
|
|
3600
|
-
body: z.never().optional(),
|
|
3601
|
-
path: z.object({
|
|
3602
|
-
role_id: z.string()
|
|
3603
|
-
}),
|
|
3604
|
-
query: z.never().optional()
|
|
3605
|
-
});
|
|
3606
|
-
/**
|
|
3607
|
-
* Successful Response
|
|
3608
|
-
*/
|
|
3609
|
-
export const zRolesDeleteResponse = z.void();
|
|
3610
|
-
export const zCustomRolesGetData = z.object({
|
|
3611
|
-
body: z.never().optional(),
|
|
3612
|
-
path: z.object({
|
|
3613
|
-
role_id: z.string()
|
|
3614
|
-
}),
|
|
3615
|
-
query: z.never().optional()
|
|
3616
|
-
});
|
|
3617
|
-
/**
|
|
3618
|
-
* Successful Response
|
|
3619
|
-
*/
|
|
3620
|
-
export const zCustomRolesGetResponse = zRoleResponse;
|
|
3621
|
-
export const zCustomRolesUpdateData = z.object({
|
|
3622
|
-
body: zUpdateRoleRequest,
|
|
3623
|
-
path: z.object({
|
|
3624
|
-
role_id: z.string()
|
|
3625
|
-
}),
|
|
3626
|
-
query: z.never().optional()
|
|
3627
|
-
});
|
|
3628
|
-
/**
|
|
3629
|
-
* Successful Response
|
|
3630
|
-
*/
|
|
3631
|
-
export const zCustomRolesUpdateResponse = zRoleResponse;
|
|
3632
|
-
export const zCustomRolesAddPermissionData = z.object({
|
|
3633
|
-
body: zAddPermissionRequest,
|
|
3634
|
-
path: z.object({
|
|
3635
|
-
role_id: z.string()
|
|
3636
|
-
}),
|
|
3637
|
-
query: z.never().optional()
|
|
3638
|
-
});
|
|
3639
|
-
export const zCustomRolesSetPermissionsData = z.object({
|
|
3640
|
-
body: zSetPermissionsRequest,
|
|
3641
|
-
path: z.object({
|
|
3642
|
-
role_id: z.string()
|
|
3643
|
-
}),
|
|
3644
|
-
query: z.never().optional()
|
|
3645
|
-
});
|
|
3646
|
-
export const zCustomRolesRemovePermissionData = z.object({
|
|
3647
|
-
body: z.never().optional(),
|
|
3648
|
-
path: z.object({
|
|
3649
|
-
role_id: z.string(),
|
|
3650
|
-
permission_code: z.string()
|
|
3651
|
-
}),
|
|
3652
|
-
query: z.never().optional()
|
|
3653
|
-
});
|
|
3654
|
-
/**
|
|
3655
|
-
* Successful Response
|
|
3656
|
-
*/
|
|
3657
|
-
export const zCustomRolesRemovePermissionResponse = z.void();
|
|
3658
|
-
export const zCustomRolesGetMyPermissionsData = z.object({
|
|
3659
|
-
body: z.never().optional(),
|
|
3660
|
-
path: z.never().optional(),
|
|
3661
|
-
query: z.never().optional()
|
|
3662
|
-
});
|
|
3663
|
-
/**
|
|
3664
|
-
* Response Customroles.Getmypermissions
|
|
3665
|
-
*
|
|
3666
|
-
* Successful Response
|
|
3667
|
-
*/
|
|
3668
|
-
export const zCustomRolesGetMyPermissionsResponse = z.array(zPermissionResponse);
|
|
3669
|
-
export const zCustomRolesAssignToUserData = z.object({
|
|
3670
|
-
body: z.never().optional(),
|
|
3671
|
-
path: z.object({
|
|
3672
|
-
user_id: z.string()
|
|
3673
|
-
}),
|
|
3674
|
-
query: z.object({
|
|
3675
|
-
role_id: z.string()
|
|
3676
|
-
})
|
|
3677
|
-
});
|
|
3678
|
-
export const zCustomRolesRemoveUserRoleData = z.object({
|
|
3679
|
-
body: z.never().optional(),
|
|
3680
|
-
path: z.object({
|
|
3681
|
-
user_id: z.string(),
|
|
3682
|
-
role_id: z.string()
|
|
3683
|
-
}),
|
|
3684
|
-
query: z.never().optional()
|
|
3685
|
-
});
|
|
3686
|
-
/**
|
|
3687
|
-
* Successful Response
|
|
3688
|
-
*/
|
|
3689
|
-
export const zCustomRolesRemoveUserRoleResponse = z.void();
|
|
3690
|
-
export const zPermissionsListData = z.object({
|
|
3691
|
-
body: z.never().optional(),
|
|
3692
|
-
path: z.never().optional(),
|
|
3693
|
-
query: z.never().optional()
|
|
3694
|
-
});
|
|
3695
|
-
/**
|
|
3696
|
-
* Response Permissions.List
|
|
3697
|
-
*
|
|
3698
|
-
* Successful Response
|
|
3699
|
-
*/
|
|
3700
|
-
export const zPermissionsListResponse = z.array(zPermissionResponse);
|
|
3701
|
-
export const zPermissionsGetData = z.object({
|
|
3702
|
-
body: z.never().optional(),
|
|
3703
|
-
path: z.object({
|
|
3704
|
-
permission_code: z.string()
|
|
3705
|
-
}),
|
|
3706
|
-
query: z.never().optional()
|
|
3707
|
-
});
|
|
3708
|
-
/**
|
|
3709
|
-
* Successful Response
|
|
3710
|
-
*/
|
|
3711
|
-
export const zPermissionsGetResponse = zPermissionResponse;
|
|
3712
|
-
export const zBookingsListData = z.object({
|
|
3713
|
-
body: z.never().optional(),
|
|
3714
|
-
path: z.never().optional(),
|
|
3715
|
-
query: z.object({
|
|
3716
|
-
user_id: z.string().nullish(),
|
|
3717
|
-
place_id: z.int().nullish(),
|
|
3718
|
-
start_date: z.iso.datetime().nullish(),
|
|
3719
|
-
end_date: z.iso.datetime().nullish(),
|
|
3720
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3721
|
-
offset: z.int().gte(0).optional().default(0)
|
|
3722
|
-
}).optional()
|
|
3723
|
-
});
|
|
3724
|
-
/**
|
|
3725
|
-
* Response Bookings.List
|
|
3726
|
-
*
|
|
3727
|
-
* Successful Response
|
|
3728
|
-
*/
|
|
3729
|
-
export const zBookingsListResponse = z.array(zBookingRead);
|
|
3730
|
-
export const zBookingCreateData = z.object({
|
|
3731
|
-
body: zCreateBookingRequest,
|
|
3732
|
-
path: z.never().optional(),
|
|
3733
|
-
query: z.never().optional()
|
|
3734
|
-
});
|
|
3735
|
-
/**
|
|
3736
|
-
* Successful Response
|
|
3737
|
-
*/
|
|
3738
|
-
export const zBookingCreateResponse = zBookingRead;
|
|
3739
|
-
export const zBookingsDeleteData = z.object({
|
|
3740
|
-
body: z.never().optional(),
|
|
3741
|
-
path: z.object({
|
|
3742
|
-
booking_id: z.int()
|
|
3743
|
-
}),
|
|
3744
|
-
query: z.never().optional()
|
|
3745
|
-
});
|
|
3746
|
-
/**
|
|
3747
|
-
* Successful Response
|
|
3748
|
-
*/
|
|
3749
|
-
export const zBookingsDeleteResponse = z.void();
|
|
3750
|
-
export const zBookingsGetByIdData = z.object({
|
|
3751
|
-
body: z.never().optional(),
|
|
3752
|
-
path: z.object({
|
|
3753
|
-
booking_id: z.int()
|
|
3754
|
-
}),
|
|
3755
|
-
query: z.never().optional()
|
|
3756
|
-
});
|
|
3757
|
-
/**
|
|
3758
|
-
* Successful Response
|
|
3759
|
-
*/
|
|
3760
|
-
export const zBookingsGetByIdResponse = zBookingRead;
|
|
3761
|
-
export const zBookingsUpdateData = z.object({
|
|
3762
|
-
body: zUpdateBookingRequest,
|
|
3763
|
-
path: z.object({
|
|
3764
|
-
booking_id: z.int()
|
|
3765
|
-
}),
|
|
3766
|
-
query: z.never().optional()
|
|
3767
|
-
});
|
|
3768
|
-
/**
|
|
3769
|
-
* Successful Response
|
|
3770
|
-
*/
|
|
3771
|
-
export const zBookingsUpdateResponse = zBookingRead;
|
|
3772
|
-
export const zBookingsCheckAvailabilityData = z.object({
|
|
3773
|
-
body: zCheckAvailabilityRequest,
|
|
3774
|
-
path: z.never().optional(),
|
|
3775
|
-
query: z.never().optional()
|
|
3776
|
-
});
|
|
3777
|
-
/**
|
|
3778
|
-
* Successful Response
|
|
3779
|
-
*/
|
|
3780
|
-
export const zBookingsCheckAvailabilityResponse = zAvailabilityResponse;
|
|
3781
|
-
export const zBookingsGetPlaceScheduleData = z.object({
|
|
3782
|
-
body: z.never().optional(),
|
|
3783
|
-
path: z.object({
|
|
3784
|
-
place_id: z.int()
|
|
3785
|
-
}),
|
|
3786
|
-
query: z.object({
|
|
3787
|
-
start_date: z.iso.datetime(),
|
|
3788
|
-
end_date: z.iso.datetime()
|
|
3789
|
-
})
|
|
3790
|
-
});
|
|
3791
|
-
/**
|
|
3792
|
-
* Response Bookings.Getplaceschedule
|
|
3793
|
-
*
|
|
3794
|
-
* Successful Response
|
|
3795
|
-
*/
|
|
3796
|
-
export const zBookingsGetPlaceScheduleResponse = z.array(zBookingRead);
|
|
3797
|
-
export const zChatRoomsCreateDirectData = z.object({
|
|
3798
|
-
body: zCreateDirectRoomRequest,
|
|
3799
|
-
path: z.never().optional(),
|
|
3800
|
-
query: z.never().optional()
|
|
3801
|
-
});
|
|
3802
|
-
/**
|
|
3803
|
-
* Successful Response
|
|
3804
|
-
*/
|
|
3805
|
-
export const zChatRoomsCreateDirectResponse = zRoomResponse;
|
|
3806
|
-
export const zChatRoomsCreateGroupData = z.object({
|
|
3807
|
-
body: zCreateGroupRoomRequest,
|
|
3808
|
-
path: z.never().optional(),
|
|
3809
|
-
query: z.never().optional()
|
|
3810
|
-
});
|
|
3811
|
-
/**
|
|
3812
|
-
* Successful Response
|
|
3813
|
-
*/
|
|
3814
|
-
export const zChatRoomsCreateGroupResponse = zRoomResponse;
|
|
3815
|
-
export const zChatRoomsListData = z.object({
|
|
3816
|
-
body: z.never().optional(),
|
|
3817
|
-
path: z.never().optional(),
|
|
3818
|
-
query: z.object({
|
|
3819
|
-
skip: z.int().gte(0).optional().default(0),
|
|
3820
|
-
limit: z.int().gte(1).lte(100).optional().default(50)
|
|
3821
|
-
}).optional()
|
|
3822
|
-
});
|
|
3823
|
-
/**
|
|
3824
|
-
* Successful Response
|
|
3825
|
-
*/
|
|
3826
|
-
export const zChatRoomsListResponse = zRoomListResponse;
|
|
3827
|
-
export const zChatRoomsGetByIdData = z.object({
|
|
3828
|
-
body: z.never().optional(),
|
|
3829
|
-
path: z.object({
|
|
3830
|
-
room_id: z.uuid()
|
|
3831
|
-
}),
|
|
3832
|
-
query: z.never().optional()
|
|
3833
|
-
});
|
|
3834
|
-
/**
|
|
3835
|
-
* Successful Response
|
|
3836
|
-
*/
|
|
3837
|
-
export const zChatRoomsGetByIdResponse = zRoomResponse;
|
|
3838
|
-
export const zChatRoomsUpdateData = z.object({
|
|
3839
|
-
body: zUpdateRoomRequest,
|
|
3840
|
-
path: z.object({
|
|
3841
|
-
room_id: z.uuid()
|
|
3842
|
-
}),
|
|
3843
|
-
query: z.never().optional()
|
|
3844
|
-
});
|
|
3845
|
-
/**
|
|
3846
|
-
* Successful Response
|
|
3847
|
-
*/
|
|
3848
|
-
export const zChatRoomsUpdateResponse = zRoomResponse;
|
|
3849
|
-
export const zChatRoomsListMembersData = z.object({
|
|
3850
|
-
body: z.never().optional(),
|
|
3851
|
-
path: z.object({
|
|
3852
|
-
room_id: z.uuid()
|
|
3853
|
-
}),
|
|
3854
|
-
query: z.never().optional()
|
|
3855
|
-
});
|
|
3856
|
-
/**
|
|
3857
|
-
* Successful Response
|
|
3858
|
-
*/
|
|
3859
|
-
export const zChatRoomsListMembersResponse = zMembersListResponse;
|
|
3860
|
-
export const zChatRoomsAddMemberData = z.object({
|
|
3861
|
-
body: zAddMemberRequest,
|
|
3862
|
-
path: z.object({
|
|
3863
|
-
room_id: z.uuid()
|
|
3864
|
-
}),
|
|
3865
|
-
query: z.never().optional()
|
|
3866
|
-
});
|
|
3867
|
-
/**
|
|
3868
|
-
* Successful Response
|
|
3869
|
-
*/
|
|
3870
|
-
export const zChatRoomsAddMemberResponse = zMemberResponse;
|
|
3871
|
-
export const zChatRoomsRemoveMemberData = z.object({
|
|
3872
|
-
body: z.never().optional(),
|
|
3873
|
-
path: z.object({
|
|
3874
|
-
room_id: z.uuid(),
|
|
3875
|
-
user_id: z.uuid()
|
|
3876
|
-
}),
|
|
3877
|
-
query: z.never().optional()
|
|
3878
|
-
});
|
|
3879
|
-
/**
|
|
3880
|
-
* Successful Response
|
|
3881
|
-
*/
|
|
3882
|
-
export const zChatRoomsRemoveMemberResponse = z.void();
|
|
3883
|
-
export const zChatMessagesListData = z.object({
|
|
3884
|
-
body: z.never().optional(),
|
|
3885
|
-
path: z.object({
|
|
3886
|
-
room_id: z.uuid()
|
|
3887
|
-
}),
|
|
3888
|
-
query: z.object({
|
|
3889
|
-
before_id: z.uuid().nullish(),
|
|
3890
|
-
limit: z.int().gte(1).lte(100).optional().default(50)
|
|
3891
|
-
}).optional()
|
|
3892
|
-
});
|
|
3893
|
-
/**
|
|
3894
|
-
* Response Chatmessages.List
|
|
3895
|
-
*
|
|
3896
|
-
* Successful Response
|
|
3897
|
-
*/
|
|
3898
|
-
export const zChatMessagesListResponse = z.array(zAppChatAdapterInputSchemasMessageMessageResponse);
|
|
3899
|
-
export const zAiAgentSendMessageData = z.object({
|
|
3900
|
-
body: zAppChatAdapterInputSchemasMessageSendMessageRequest,
|
|
3901
|
-
path: z.object({
|
|
3902
|
-
room_id: z.uuid()
|
|
3903
|
-
}),
|
|
3904
|
-
query: z.never().optional()
|
|
3905
|
-
});
|
|
3906
|
-
/**
|
|
3907
|
-
* Successful Response
|
|
3908
|
-
*/
|
|
3909
|
-
export const zAiAgentSendMessageResponse = zAppChatAdapterInputSchemasMessageMessageResponse;
|
|
3910
|
-
export const zChatMessagesDeleteData = z.object({
|
|
3911
|
-
body: z.never().optional(),
|
|
3912
|
-
path: z.object({
|
|
3913
|
-
message_id: z.uuid()
|
|
3914
|
-
}),
|
|
3915
|
-
query: z.never().optional()
|
|
3916
|
-
});
|
|
3917
|
-
/**
|
|
3918
|
-
* Successful Response
|
|
3919
|
-
*/
|
|
3920
|
-
export const zChatMessagesDeleteResponse = z.void();
|
|
3921
|
-
export const zChatMessagesGetCountData = z.object({
|
|
3922
|
-
body: z.never().optional(),
|
|
3923
|
-
path: z.object({
|
|
3924
|
-
room_id: z.uuid()
|
|
3925
|
-
}),
|
|
3926
|
-
query: z.never().optional()
|
|
3927
|
-
});
|
|
3928
|
-
/**
|
|
3929
|
-
* Response Chatmessages.Getcount
|
|
3930
|
-
*
|
|
3931
|
-
* Successful Response
|
|
3932
|
-
*/
|
|
3933
|
-
export const zChatMessagesGetCountResponse = z.record(z.string(), z.unknown());
|
|
3934
|
-
export const zChatMessagesMarkReadData = z.object({
|
|
3935
|
-
body: z.never().optional(),
|
|
3936
|
-
path: z.object({
|
|
3937
|
-
room_id: z.uuid()
|
|
3938
|
-
}),
|
|
3939
|
-
query: z.never().optional()
|
|
3940
|
-
});
|
|
3941
|
-
/**
|
|
3942
|
-
* Successful Response
|
|
3943
|
-
*/
|
|
3944
|
-
export const zChatMessagesMarkReadResponse = z.void();
|
|
3945
|
-
export const zChatMessagesGetUnreadCountData = z.object({
|
|
3946
|
-
body: z.never().optional(),
|
|
3947
|
-
path: z.object({
|
|
3948
|
-
room_id: z.uuid()
|
|
3949
|
-
}),
|
|
3950
|
-
query: z.never().optional()
|
|
3951
|
-
});
|
|
3952
|
-
/**
|
|
3953
|
-
* Response Chatmessages.Getunreadcount
|
|
3954
|
-
*
|
|
3955
|
-
* Successful Response
|
|
3956
|
-
*/
|
|
3957
|
-
export const zChatMessagesGetUnreadCountResponse = z.record(z.string(), z.unknown());
|
|
3958
|
-
export const zAiAgentListSessionsData = z.object({
|
|
3959
|
-
body: z.never().optional(),
|
|
3960
|
-
path: z.never().optional(),
|
|
3961
|
-
query: z.object({
|
|
3962
|
-
agent_type: zAgentType.nullish(),
|
|
3963
|
-
status: zSessionStatus.nullish(),
|
|
3964
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3965
|
-
offset: z.int().gte(0).optional().default(0)
|
|
3966
|
-
}).optional()
|
|
3967
|
-
});
|
|
3968
|
-
/**
|
|
3969
|
-
* Successful Response
|
|
3970
|
-
*/
|
|
3971
|
-
export const zAiAgentListSessionsResponse = zSessionListResponse;
|
|
3972
|
-
export const zAiAgentCreateSessionData = z.object({
|
|
3973
|
-
body: zCreateSessionRequest,
|
|
3974
|
-
path: z.never().optional(),
|
|
3975
|
-
query: z.never().optional()
|
|
3976
|
-
});
|
|
3977
|
-
/**
|
|
3978
|
-
* Successful Response
|
|
3979
|
-
*/
|
|
3980
|
-
export const zAiAgentCreateSessionResponse = zCreateSessionResponse;
|
|
3981
|
-
export const zAiAgentSendMessage2Data = z.object({
|
|
3982
|
-
body: zAppAiAgentAdapterInputApiV1SchemasSendMessageRequest,
|
|
3983
|
-
path: z.object({
|
|
3984
|
-
session_id: z.uuid()
|
|
3985
|
-
}),
|
|
3986
|
-
query: z.never().optional()
|
|
3987
|
-
});
|
|
3988
|
-
/**
|
|
3989
|
-
* Successful Response
|
|
3990
|
-
*/
|
|
3991
|
-
export const zAiAgentSendMessage2Response = zSendMessageResponse;
|
|
3992
|
-
export const zAIDeleteSessionData = z.object({
|
|
3993
|
-
body: z.never().optional(),
|
|
3994
|
-
path: z.object({
|
|
3995
|
-
session_id: z.uuid()
|
|
3996
|
-
}),
|
|
3997
|
-
query: z.never().optional()
|
|
3998
|
-
});
|
|
3999
|
-
/**
|
|
4000
|
-
* Successful Response
|
|
4001
|
-
*/
|
|
4002
|
-
export const zAIDeleteSessionResponse = z.void();
|
|
4003
|
-
export const zAiAgentGetSessionData = z.object({
|
|
4004
|
-
body: z.never().optional(),
|
|
4005
|
-
path: z.object({
|
|
4006
|
-
session_id: z.uuid()
|
|
4007
|
-
}),
|
|
4008
|
-
query: z.never().optional()
|
|
4009
|
-
});
|
|
4010
|
-
/**
|
|
4011
|
-
* Successful Response
|
|
4012
|
-
*/
|
|
4013
|
-
export const zAiAgentGetSessionResponse = zCreateSessionResponse;
|
|
4014
|
-
export const zAiAgentGetSessionCostsData = z.object({
|
|
4015
|
-
body: z.never().optional(),
|
|
4016
|
-
path: z.object({
|
|
4017
|
-
session_id: z.uuid()
|
|
4018
|
-
}),
|
|
4019
|
-
query: z.never().optional()
|
|
4020
|
-
});
|
|
4021
|
-
/**
|
|
4022
|
-
* Successful Response
|
|
4023
|
-
*/
|
|
4024
|
-
export const zAiAgentGetSessionCostsResponse = zSessionCostBreakdown;
|
|
4025
|
-
export const zAiAgentsGetOrgCostsData = z.object({
|
|
4026
|
-
body: z.never().optional(),
|
|
4027
|
-
path: z.never().optional(),
|
|
4028
|
-
query: z.object({
|
|
4029
|
-
start_date: z.string().nullish(),
|
|
4030
|
-
end_date: z.string().nullish()
|
|
4031
|
-
}).optional()
|
|
4032
|
-
});
|
|
4033
|
-
/**
|
|
4034
|
-
* Successful Response
|
|
4035
|
-
*/
|
|
4036
|
-
export const zAiAgentsGetOrgCostsResponse = zOrgCostDetailResponse;
|
|
4037
|
-
export const zAiAgentListWorkflowsData = z.object({
|
|
4038
|
-
body: z.never().optional(),
|
|
4039
|
-
path: z.never().optional(),
|
|
4040
|
-
query: z.object({
|
|
4041
|
-
workflow_type: zWorkflowType.nullish(),
|
|
4042
|
-
status: zWorkflowStatus.nullish(),
|
|
4043
|
-
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
4044
|
-
offset: z.int().gte(0).optional().default(0)
|
|
4045
|
-
}).optional()
|
|
4046
|
-
});
|
|
4047
|
-
/**
|
|
4048
|
-
* Successful Response
|
|
4049
|
-
*/
|
|
4050
|
-
export const zAiAgentListWorkflowsResponse = zWorkflowExecutionListResponse;
|
|
4051
|
-
export const zAiAgentStartWorkflowData = z.object({
|
|
4052
|
-
body: zStartWorkflowRequest,
|
|
4053
|
-
path: z.never().optional(),
|
|
4054
|
-
query: z.never().optional()
|
|
4055
|
-
});
|
|
4056
|
-
/**
|
|
4057
|
-
* Successful Response
|
|
4058
|
-
*/
|
|
4059
|
-
export const zAiAgentStartWorkflowResponse = zWorkflowExecutionResponse;
|
|
4060
|
-
export const zAiAgentStartWorkflowAsyncData = z.object({
|
|
4061
|
-
body: zStartWorkflowRequest,
|
|
4062
|
-
path: z.never().optional(),
|
|
4063
|
-
query: z.never().optional()
|
|
4064
|
-
});
|
|
4065
|
-
/**
|
|
4066
|
-
* Successful Response
|
|
4067
|
-
*/
|
|
4068
|
-
export const zAiAgentStartWorkflowAsyncResponse = zStartWorkflowAsyncResponse;
|
|
4069
|
-
export const zAiWorkflowsGetExecutionDetailsData = z.object({
|
|
4070
|
-
body: z.never().optional(),
|
|
4071
|
-
path: z.object({
|
|
4072
|
-
execution_id: z.uuid()
|
|
4073
|
-
}),
|
|
4074
|
-
query: z.never().optional()
|
|
4075
|
-
});
|
|
4076
|
-
/**
|
|
4077
|
-
* Successful Response
|
|
4078
|
-
*/
|
|
4079
|
-
export const zAiWorkflowsGetExecutionDetailsResponse = zWorkflowExecutionResponse;
|
|
4080
|
-
export const zAiAgentCancelWorkflowData = z.object({
|
|
4081
|
-
body: z.never().optional(),
|
|
4082
|
-
path: z.object({
|
|
4083
|
-
execution_id: z.uuid()
|
|
4084
|
-
}),
|
|
4085
|
-
query: z.never().optional()
|
|
4086
|
-
});
|
|
4087
|
-
/**
|
|
4088
|
-
* Successful Response
|
|
4089
|
-
*/
|
|
4090
|
-
export const zAiAgentCancelWorkflowResponse = zWorkflowExecutionResponse;
|
|
4091
|
-
export const zContactsListData = z.object({
|
|
4092
|
-
body: z.never().optional(),
|
|
4093
|
-
path: z.never().optional(),
|
|
4094
|
-
query: z.object({
|
|
4095
|
-
limit: z.int().lte(100).optional().default(50),
|
|
4096
|
-
offset: z.int().gte(0).optional().default(0),
|
|
4097
|
-
search: z.string().nullish(),
|
|
4098
|
-
is_favorite: z.boolean().nullish(),
|
|
4099
|
-
tags: z.array(z.string()).nullish()
|
|
4100
|
-
}).optional()
|
|
4101
|
-
});
|
|
4102
|
-
/**
|
|
4103
|
-
* Successful Response
|
|
4104
|
-
*/
|
|
4105
|
-
export const zContactsListResponse = zContactListResponse;
|
|
4106
|
-
export const zContactsCreateData = z.object({
|
|
4107
|
-
body: zCreateContactRequest,
|
|
4108
|
-
path: z.never().optional(),
|
|
4109
|
-
query: z.never().optional()
|
|
4110
|
-
});
|
|
4111
|
-
/**
|
|
4112
|
-
* Successful Response
|
|
4113
|
-
*/
|
|
4114
|
-
export const zContactsCreateResponse = zContactResponse;
|
|
4115
|
-
export const zContactsSearchData = z.object({
|
|
4116
|
-
body: z.never().optional(),
|
|
4117
|
-
path: z.never().optional(),
|
|
4118
|
-
query: z.object({
|
|
4119
|
-
query: z.string(),
|
|
4120
|
-
limit: z.int().lte(100).optional().default(20),
|
|
4121
|
-
offset: z.int().gte(0).optional().default(0)
|
|
4122
|
-
})
|
|
4123
|
-
});
|
|
4124
|
-
/**
|
|
4125
|
-
* Successful Response
|
|
4126
|
-
*/
|
|
4127
|
-
export const zContactsSearchResponse = zContactSearchResponse;
|
|
4128
|
-
export const zContactsDeleteData = z.object({
|
|
4129
|
-
body: z.never().optional(),
|
|
4130
|
-
path: z.object({
|
|
4131
|
-
contact_id: z.uuid()
|
|
4132
|
-
}),
|
|
4133
|
-
query: z.never().optional()
|
|
4134
|
-
});
|
|
4135
|
-
/**
|
|
4136
|
-
* Successful Response
|
|
4137
|
-
*/
|
|
4138
|
-
export const zContactsDeleteResponse = z.void();
|
|
4139
|
-
export const zContactsGetData = z.object({
|
|
4140
|
-
body: z.never().optional(),
|
|
4141
|
-
path: z.object({
|
|
4142
|
-
contact_id: z.uuid()
|
|
4143
|
-
}),
|
|
4144
|
-
query: z.never().optional()
|
|
4145
|
-
});
|
|
4146
|
-
/**
|
|
4147
|
-
* Successful Response
|
|
4148
|
-
*/
|
|
4149
|
-
export const zContactsGetResponse = zContactResponse;
|
|
4150
|
-
export const zContactsUpdateData = z.object({
|
|
4151
|
-
body: zUpdateContactRequest,
|
|
4152
|
-
path: z.object({
|
|
4153
|
-
contact_id: z.uuid()
|
|
4154
|
-
}),
|
|
4155
|
-
query: z.never().optional()
|
|
4156
|
-
});
|
|
4157
|
-
/**
|
|
4158
|
-
* Successful Response
|
|
4159
|
-
*/
|
|
4160
|
-
export const zContactsUpdateResponse = zContactResponse;
|
|
4161
|
-
export const zContactsToggleFavoriteData = z.object({
|
|
4162
|
-
body: zToggleFavoriteRequest,
|
|
4163
|
-
path: z.object({
|
|
4164
|
-
contact_id: z.uuid()
|
|
4165
|
-
}),
|
|
4166
|
-
query: z.never().optional()
|
|
4167
|
-
});
|
|
4168
|
-
/**
|
|
4169
|
-
* Successful Response
|
|
4170
|
-
*/
|
|
4171
|
-
export const zContactsToggleFavoriteResponse = zContactResponse;
|
|
4172
|
-
export const zAutomationRulesGetMetadataData = z.object({
|
|
4173
|
-
body: z.never().optional(),
|
|
4174
|
-
path: z.never().optional(),
|
|
4175
|
-
query: z.never().optional()
|
|
4176
|
-
});
|
|
4177
|
-
/**
|
|
4178
|
-
* Successful Response
|
|
4179
|
-
*/
|
|
4180
|
-
export const zAutomationRulesGetMetadataResponse = zCombinedMetadataResponse;
|
|
4181
|
-
export const zAutomationMetadataGetTriggersData = z.object({
|
|
4182
|
-
body: z.never().optional(),
|
|
4183
|
-
path: z.never().optional(),
|
|
4184
|
-
query: z.never().optional()
|
|
4185
|
-
});
|
|
4186
|
-
/**
|
|
4187
|
-
* Response Automationmetadata.Gettriggers
|
|
4188
|
-
*
|
|
4189
|
-
* Successful Response
|
|
4190
|
-
*/
|
|
4191
|
-
export const zAutomationMetadataGetTriggersResponse = z.array(zTaskMetadata);
|
|
4192
|
-
export const zAutomationRulesGetConditionsData = z.object({
|
|
4193
|
-
body: z.never().optional(),
|
|
4194
|
-
path: z.never().optional(),
|
|
4195
|
-
query: z.never().optional()
|
|
4196
|
-
});
|
|
4197
|
-
/**
|
|
4198
|
-
* Response Automationrules.Getconditions
|
|
4199
|
-
*
|
|
4200
|
-
* Successful Response
|
|
4201
|
-
*/
|
|
4202
|
-
export const zAutomationRulesGetConditionsResponse = z.array(zTaskMetadata);
|
|
4203
|
-
export const zAutomationMetadataGetActionsData = z.object({
|
|
4204
|
-
body: z.never().optional(),
|
|
4205
|
-
path: z.never().optional(),
|
|
4206
|
-
query: z.never().optional()
|
|
4207
|
-
});
|
|
4208
|
-
/**
|
|
4209
|
-
* Response Automationmetadata.Getactions
|
|
4210
|
-
*
|
|
4211
|
-
* Successful Response
|
|
4212
|
-
*/
|
|
4213
|
-
export const zAutomationMetadataGetActionsResponse = z.array(zTaskMetadata);
|
|
4214
|
-
export const zAutomationMetadataGetTaskData = z.object({
|
|
4215
|
-
body: z.never().optional(),
|
|
4216
|
-
path: z.object({
|
|
4217
|
-
task_type: z.string()
|
|
4218
|
-
}),
|
|
4219
|
-
query: z.never().optional()
|
|
4220
|
-
});
|
|
4221
|
-
/**
|
|
4222
|
-
* Successful Response
|
|
4223
|
-
*/
|
|
4224
|
-
export const zAutomationMetadataGetTaskResponse = zTaskMetadata;
|
|
4225
|
-
export const zAutomationMetadataGetTasksData = z.object({
|
|
4226
|
-
body: z.never().optional(),
|
|
4227
|
-
path: z.never().optional(),
|
|
4228
|
-
query: z.object({
|
|
4229
|
-
category: z.string().nullish(),
|
|
4230
|
-
tags: z.array(z.string()).nullish(),
|
|
4231
|
-
search: z.string().nullish()
|
|
4232
|
-
}).optional()
|
|
4233
|
-
});
|
|
4234
|
-
/**
|
|
4235
|
-
* Response Automationmetadata.Gettasks
|
|
4236
|
-
*
|
|
4237
|
-
* Successful Response
|
|
4238
|
-
*/
|
|
4239
|
-
export const zAutomationMetadataGetTasksResponse = z.array(zTaskMetadata);
|
|
4240
|
-
export const zAutomationCronTriggerScheduledData = z.object({
|
|
4241
|
-
body: z.never().optional(),
|
|
4242
|
-
path: z.never().optional(),
|
|
4243
|
-
query: z.never().optional(),
|
|
4244
|
-
headers: z.object({
|
|
4245
|
-
'X-Automation-Key': z.string()
|
|
4246
|
-
})
|
|
4247
|
-
});
|
|
4248
|
-
export const zAutomationCronHealthCheckData = z.object({
|
|
4249
|
-
body: z.never().optional(),
|
|
4250
|
-
path: z.never().optional(),
|
|
4251
|
-
query: z.never().optional()
|
|
4252
|
-
});
|
|
4253
|
-
export const zAutomationRulesListData = z.object({
|
|
4254
|
-
body: z.never().optional(),
|
|
4255
|
-
path: z.never().optional(),
|
|
4256
|
-
query: z.object({
|
|
4257
|
-
enabled_only: z.boolean().optional().default(true),
|
|
4258
|
-
scope: z.string().nullish(),
|
|
4259
|
-
scope_id: z.string().nullish()
|
|
4260
|
-
}).optional()
|
|
4261
|
-
});
|
|
4262
|
-
/**
|
|
4263
|
-
* Successful Response
|
|
4264
|
-
*/
|
|
4265
|
-
export const zAutomationRulesListResponse = zRuleListResponse;
|
|
4266
|
-
export const zAutomationRulesCreateData = z.object({
|
|
4267
|
-
body: zCreateRuleRequest,
|
|
4268
|
-
path: z.never().optional(),
|
|
4269
|
-
query: z.never().optional()
|
|
4270
|
-
});
|
|
4271
|
-
/**
|
|
4272
|
-
* Successful Response
|
|
4273
|
-
*/
|
|
4274
|
-
export const zAutomationRulesCreateResponse = zRuleResponse;
|
|
4275
|
-
export const zAutomationRulesDeleteData = z.object({
|
|
4276
|
-
body: z.never().optional(),
|
|
4277
|
-
path: z.object({
|
|
4278
|
-
rule_id: z.uuid()
|
|
4279
|
-
}),
|
|
4280
|
-
query: z.never().optional()
|
|
4281
|
-
});
|
|
4282
|
-
/**
|
|
4283
|
-
* Successful Response
|
|
4284
|
-
*/
|
|
4285
|
-
export const zAutomationRulesDeleteResponse = z.void();
|
|
4286
|
-
export const zAutomationRulesGetData = z.object({
|
|
4287
|
-
body: z.never().optional(),
|
|
4288
|
-
path: z.object({
|
|
4289
|
-
rule_id: z.uuid()
|
|
4290
|
-
}),
|
|
4291
|
-
query: z.never().optional()
|
|
4292
|
-
});
|
|
4293
|
-
/**
|
|
4294
|
-
* Successful Response
|
|
4295
|
-
*/
|
|
4296
|
-
export const zAutomationRulesGetResponse = zRuleResponse;
|
|
4297
|
-
export const zAutomationRulesPatchData = z.object({
|
|
4298
|
-
body: zUpdateRuleRequest,
|
|
4299
|
-
path: z.object({
|
|
4300
|
-
rule_id: z.uuid()
|
|
4301
|
-
}),
|
|
4302
|
-
query: z.never().optional()
|
|
4303
|
-
});
|
|
4304
|
-
/**
|
|
4305
|
-
* Successful Response
|
|
4306
|
-
*/
|
|
4307
|
-
export const zAutomationRulesPatchResponse = zRuleResponse;
|
|
4308
|
-
export const zAutomationRulesUpdateData = z.object({
|
|
4309
|
-
body: zUpdateRuleRequest,
|
|
4310
|
-
path: z.object({
|
|
4311
|
-
rule_id: z.uuid()
|
|
4312
|
-
}),
|
|
4313
|
-
query: z.never().optional()
|
|
4314
|
-
});
|
|
4315
|
-
/**
|
|
4316
|
-
* Successful Response
|
|
4317
|
-
*/
|
|
4318
|
-
export const zAutomationRulesUpdateResponse = zRuleResponse;
|
|
4319
|
-
export const zAutomationRulesExecuteData = z.object({
|
|
4320
|
-
body: zExecuteRuleRequest,
|
|
4321
|
-
path: z.object({
|
|
4322
|
-
rule_id: z.uuid()
|
|
4323
|
-
}),
|
|
4324
|
-
query: z.never().optional()
|
|
4325
|
-
});
|
|
4326
|
-
/**
|
|
4327
|
-
* Successful Response
|
|
4328
|
-
*/
|
|
4329
|
-
export const zAutomationRulesExecuteResponse = zExecuteRuleResponse;
|
|
4330
|
-
export const zAutomationRulesGetExecutionsData = z.object({
|
|
4331
|
-
body: z.never().optional(),
|
|
4332
|
-
path: z.object({
|
|
4333
|
-
rule_id: z.uuid()
|
|
4334
|
-
}),
|
|
4335
|
-
query: z.object({
|
|
4336
|
-
limit: z.int().optional().default(50)
|
|
4337
|
-
}).optional()
|
|
4338
|
-
});
|
|
4339
|
-
/**
|
|
4340
|
-
* Response Automationrules.Getexecutions
|
|
4341
|
-
*
|
|
4342
|
-
* Successful Response
|
|
4343
|
-
*/
|
|
4344
|
-
export const zAutomationRulesGetExecutionsResponse = z.array(zExecutionResponse);
|
|
4345
|
-
export const zHealthCheckAutomationData = z.object({
|
|
4346
|
-
body: z.never().optional(),
|
|
4347
|
-
path: z.never().optional(),
|
|
4348
|
-
query: z.never().optional()
|
|
4349
|
-
});
|
|
4350
|
-
export const zIntegrationHandleOrgRemovedData = z.object({
|
|
4351
|
-
body: z.never().optional(),
|
|
4352
|
-
path: z.never().optional(),
|
|
4353
|
-
query: z.never().optional()
|
|
4354
|
-
});
|
|
4355
|
-
export const zIntegrationUserHandleRemovedData = z.object({
|
|
4356
|
-
body: z.never().optional(),
|
|
4357
|
-
path: z.never().optional(),
|
|
4358
|
-
query: z.never().optional()
|
|
4359
|
-
});
|
|
4360
|
-
export const zHandleUserCreatedApiV1IntegrationUserCreatedPostData = z.object({
|
|
4361
|
-
body: z.never().optional(),
|
|
4362
|
-
path: z.never().optional(),
|
|
4363
|
-
query: z.never().optional()
|
|
4364
|
-
});
|
|
4365
|
-
export const zHandleUserUpdatedApiV1IntegrationUserUpdatedPostData = z.object({
|
|
4366
|
-
body: z.never().optional(),
|
|
4367
|
-
path: z.never().optional(),
|
|
4368
|
-
query: z.never().optional()
|
|
4369
|
-
});
|
|
4370
|
-
export const zGetLatestPublicEventVersionData = z.object({
|
|
4371
|
-
body: z.never().optional(),
|
|
4372
|
-
path: z.object({
|
|
4373
|
-
event_id: z.int()
|
|
4374
|
-
}),
|
|
4375
|
-
query: z.never().optional()
|
|
4376
|
-
});
|
|
4377
|
-
/**
|
|
4378
|
-
* Successful Response
|
|
4379
|
-
*/
|
|
4380
|
-
export const zGetLatestPublicEventVersionResponse = zEventVersionRead;
|
|
4381
|
-
export const zGetLatestPublicSpaceVersionData = z.object({
|
|
4382
|
-
body: z.never().optional(),
|
|
4383
|
-
path: z.object({
|
|
4384
|
-
space_id: z.int()
|
|
4385
|
-
}),
|
|
4386
|
-
query: z.never().optional()
|
|
4387
|
-
});
|
|
4388
|
-
/**
|
|
4389
|
-
* Successful Response
|
|
4390
|
-
*/
|
|
4391
|
-
export const zGetLatestPublicSpaceVersionResponse = zSpaceVersionRead;
|
|
4392
|
-
export const zHealthCheckData = z.object({
|
|
4393
|
-
body: z.never().optional(),
|
|
4394
|
-
path: z.never().optional(),
|
|
4395
|
-
query: z.object({
|
|
4396
|
-
shallow: z.boolean().optional().default(true),
|
|
4397
|
-
deep: z.boolean().optional().default(false)
|
|
4398
|
-
}).optional()
|
|
4399
|
-
});
|
|
4400
|
-
export const zSentryTriggerErrorData = z.object({
|
|
4401
|
-
body: z.never().optional(),
|
|
4402
|
-
path: z.never().optional(),
|
|
4403
|
-
query: z.never().optional()
|
|
4404
|
-
});
|
|
4405
|
-
export const zHealthNotificationsCheckData = z.object({
|
|
4406
|
-
body: z.never().optional(),
|
|
4407
|
-
path: z.never().optional(),
|
|
4408
|
-
query: z.never().optional()
|
|
4409
|
-
});
|
|
4410
|
-
export const zMetricsGetData = z.object({
|
|
4411
|
-
body: z.never().optional(),
|
|
4412
|
-
path: z.never().optional(),
|
|
4413
|
-
query: z.never().optional()
|
|
4414
|
-
});
|
|
4415
|
-
export const zFeaturesGetData = z.object({
|
|
4416
|
-
body: z.never().optional(),
|
|
4417
|
-
path: z.never().optional(),
|
|
4418
|
-
query: z.never().optional()
|
|
4419
|
-
});
|
|
4420
|
-
export const zRealtimeGetInfoData = z.object({
|
|
4421
|
-
body: z.never().optional(),
|
|
4422
|
-
path: z.never().optional(),
|
|
4423
|
-
query: z.never().optional()
|
|
4424
|
-
});
|
|
4425
|
-
export const zConnectWebSocketData = z.object({
|
|
4426
|
-
body: z.never().optional(),
|
|
4427
|
-
path: z.never().optional(),
|
|
4428
|
-
query: z.never().optional()
|
|
4429
|
-
});
|
|
4430
|
-
//# sourceMappingURL=zod.gen.js.map
|