@1mtx/did-api-contract 1.0.1 → 1.1.0
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/dist/index.d.mts +784 -171
- package/dist/index.d.ts +784 -171
- package/dist/index.js +147 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +139 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -82,51 +82,57 @@ declare const authContract: {
|
|
|
82
82
|
*/
|
|
83
83
|
declare function buildAuthMessage(did: string, scheme?: AuthScheme, domain?: string, issuedAt?: string): string;
|
|
84
84
|
|
|
85
|
-
declare const SUPPORTED_FIELDS: readonly ["
|
|
85
|
+
declare const SUPPORTED_FIELDS: readonly ["documentNumber", "fullName", "dateOfBirth", "gender", "nationality", "ethnicity", "hometown", "permanentAddress", "identifyingMarks", "issueDate", "expiryDate", "fatherName", "motherName", "photo"];
|
|
86
86
|
type SupportedField = (typeof SUPPORTED_FIELDS)[number];
|
|
87
87
|
declare const CreateEventSchema: z.ZodObject<{
|
|
88
88
|
name: z.ZodString;
|
|
89
|
-
|
|
89
|
+
coverImageId: z.ZodOptional<z.ZodString>;
|
|
90
90
|
description: z.ZodOptional<z.ZodString>;
|
|
91
91
|
maxGuests: z.ZodNumber;
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
startDateTime: z.ZodString;
|
|
93
|
+
endDateTime: z.ZodString;
|
|
94
|
+
requestedFields: z.ZodArray<z.ZodEnum<["documentNumber", "fullName", "dateOfBirth", "gender", "nationality", "ethnicity", "hometown", "permanentAddress", "identifyingMarks", "issueDate", "expiryDate", "fatherName", "motherName", "photo"]>, "many">;
|
|
94
95
|
}, "strip", z.ZodTypeAny, {
|
|
95
96
|
name: string;
|
|
97
|
+
startDateTime: string;
|
|
98
|
+
endDateTime: string;
|
|
96
99
|
maxGuests: number;
|
|
97
|
-
|
|
98
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "permanentAddress" | "documentNumber")[];
|
|
100
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
99
101
|
description?: string | undefined;
|
|
100
|
-
|
|
102
|
+
coverImageId?: string | undefined;
|
|
101
103
|
}, {
|
|
102
104
|
name: string;
|
|
105
|
+
startDateTime: string;
|
|
106
|
+
endDateTime: string;
|
|
103
107
|
maxGuests: number;
|
|
104
|
-
|
|
105
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "permanentAddress" | "documentNumber")[];
|
|
108
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
106
109
|
description?: string | undefined;
|
|
107
|
-
|
|
110
|
+
coverImageId?: string | undefined;
|
|
108
111
|
}>;
|
|
109
112
|
declare const UpdateEventSchema: z.ZodObject<{
|
|
110
113
|
name: z.ZodOptional<z.ZodString>;
|
|
111
|
-
|
|
114
|
+
coverImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
115
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
116
|
maxGuests: z.ZodOptional<z.ZodNumber>;
|
|
114
|
-
|
|
117
|
+
startDateTime: z.ZodOptional<z.ZodString>;
|
|
118
|
+
endDateTime: z.ZodOptional<z.ZodString>;
|
|
115
119
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>>;
|
|
116
120
|
}, "strip", z.ZodTypeAny, {
|
|
117
121
|
description?: string | null | undefined;
|
|
118
122
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
119
123
|
name?: string | undefined;
|
|
120
|
-
|
|
124
|
+
startDateTime?: string | undefined;
|
|
125
|
+
endDateTime?: string | undefined;
|
|
126
|
+
coverImageId?: string | null | undefined;
|
|
121
127
|
maxGuests?: number | undefined;
|
|
122
|
-
dateTime?: string | undefined;
|
|
123
128
|
}, {
|
|
124
129
|
description?: string | null | undefined;
|
|
125
130
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
126
131
|
name?: string | undefined;
|
|
127
|
-
|
|
132
|
+
startDateTime?: string | undefined;
|
|
133
|
+
endDateTime?: string | undefined;
|
|
134
|
+
coverImageId?: string | null | undefined;
|
|
128
135
|
maxGuests?: number | undefined;
|
|
129
|
-
dateTime?: string | undefined;
|
|
130
136
|
}>;
|
|
131
137
|
declare const ParticipantSchema: z.ZodObject<{
|
|
132
138
|
id: z.ZodString;
|
|
@@ -148,9 +154,11 @@ declare const EventResponseSchema: z.ZodObject<{
|
|
|
148
154
|
id: z.ZodString;
|
|
149
155
|
name: z.ZodString;
|
|
150
156
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
157
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
151
158
|
description: z.ZodNullable<z.ZodString>;
|
|
152
159
|
maxGuests: z.ZodNumber;
|
|
153
|
-
|
|
160
|
+
startDateTime: z.ZodString;
|
|
161
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
154
162
|
userId: z.ZodString;
|
|
155
163
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
156
164
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -160,27 +168,31 @@ declare const EventResponseSchema: z.ZodObject<{
|
|
|
160
168
|
}, "strip", z.ZodTypeAny, {
|
|
161
169
|
description: string | null;
|
|
162
170
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
171
|
+
id: string;
|
|
163
172
|
name: string;
|
|
164
173
|
coverImageUrl: string | null;
|
|
174
|
+
thumbnailUrl: string | null;
|
|
175
|
+
startDateTime: string;
|
|
176
|
+
endDateTime: string | null;
|
|
177
|
+
participantCount: number;
|
|
165
178
|
maxGuests: number;
|
|
166
|
-
dateTime: string;
|
|
167
179
|
requestedFields: string[];
|
|
168
|
-
id: string;
|
|
169
180
|
userId: string;
|
|
170
|
-
participantCount: number;
|
|
171
181
|
createdAt: string;
|
|
172
182
|
updatedAt: string;
|
|
173
183
|
}, {
|
|
174
184
|
description: string | null;
|
|
175
185
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
186
|
+
id: string;
|
|
176
187
|
name: string;
|
|
177
188
|
coverImageUrl: string | null;
|
|
189
|
+
thumbnailUrl: string | null;
|
|
190
|
+
startDateTime: string;
|
|
191
|
+
endDateTime: string | null;
|
|
192
|
+
participantCount: number;
|
|
178
193
|
maxGuests: number;
|
|
179
|
-
dateTime: string;
|
|
180
194
|
requestedFields: string[];
|
|
181
|
-
id: string;
|
|
182
195
|
userId: string;
|
|
183
|
-
participantCount: number;
|
|
184
196
|
createdAt: string;
|
|
185
197
|
updatedAt: string;
|
|
186
198
|
}>;
|
|
@@ -188,9 +200,11 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
188
200
|
id: z.ZodString;
|
|
189
201
|
name: z.ZodString;
|
|
190
202
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
203
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
191
204
|
description: z.ZodNullable<z.ZodString>;
|
|
192
205
|
maxGuests: z.ZodNumber;
|
|
193
|
-
|
|
206
|
+
startDateTime: z.ZodString;
|
|
207
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
194
208
|
userId: z.ZodString;
|
|
195
209
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
196
210
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -218,14 +232,16 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
218
232
|
}, "strip", z.ZodTypeAny, {
|
|
219
233
|
description: string | null;
|
|
220
234
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
235
|
+
id: string;
|
|
221
236
|
name: string;
|
|
222
237
|
coverImageUrl: string | null;
|
|
238
|
+
thumbnailUrl: string | null;
|
|
239
|
+
startDateTime: string;
|
|
240
|
+
endDateTime: string | null;
|
|
241
|
+
participantCount: number;
|
|
223
242
|
maxGuests: number;
|
|
224
|
-
dateTime: string;
|
|
225
243
|
requestedFields: string[];
|
|
226
|
-
id: string;
|
|
227
244
|
userId: string;
|
|
228
|
-
participantCount: number;
|
|
229
245
|
createdAt: string;
|
|
230
246
|
updatedAt: string;
|
|
231
247
|
participants: {
|
|
@@ -238,14 +254,16 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
238
254
|
}, {
|
|
239
255
|
description: string | null;
|
|
240
256
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
257
|
+
id: string;
|
|
241
258
|
name: string;
|
|
242
259
|
coverImageUrl: string | null;
|
|
260
|
+
thumbnailUrl: string | null;
|
|
261
|
+
startDateTime: string;
|
|
262
|
+
endDateTime: string | null;
|
|
263
|
+
participantCount: number;
|
|
243
264
|
maxGuests: number;
|
|
244
|
-
dateTime: string;
|
|
245
265
|
requestedFields: string[];
|
|
246
|
-
id: string;
|
|
247
266
|
userId: string;
|
|
248
|
-
participantCount: number;
|
|
249
267
|
createdAt: string;
|
|
250
268
|
updatedAt: string;
|
|
251
269
|
participants: {
|
|
@@ -256,7 +274,74 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
256
274
|
}[];
|
|
257
275
|
vpRequest: Record<string, unknown>;
|
|
258
276
|
}>;
|
|
277
|
+
declare const EventDiscoverSchema: z.ZodObject<{
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
281
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
282
|
+
description: z.ZodNullable<z.ZodString>;
|
|
283
|
+
startDateTime: z.ZodString;
|
|
284
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
285
|
+
participantCount: z.ZodNumber;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
description: string | null;
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
coverImageUrl: string | null;
|
|
291
|
+
thumbnailUrl: string | null;
|
|
292
|
+
startDateTime: string;
|
|
293
|
+
endDateTime: string | null;
|
|
294
|
+
participantCount: number;
|
|
295
|
+
}, {
|
|
296
|
+
description: string | null;
|
|
297
|
+
id: string;
|
|
298
|
+
name: string;
|
|
299
|
+
coverImageUrl: string | null;
|
|
300
|
+
thumbnailUrl: string | null;
|
|
301
|
+
startDateTime: string;
|
|
302
|
+
endDateTime: string | null;
|
|
303
|
+
participantCount: number;
|
|
304
|
+
}>;
|
|
259
305
|
declare const eventsContract: {
|
|
306
|
+
discover: {
|
|
307
|
+
metadata: {
|
|
308
|
+
openApiTags: string[];
|
|
309
|
+
openApiSecurity: never[];
|
|
310
|
+
};
|
|
311
|
+
summary: "List public events for discovery (public)";
|
|
312
|
+
method: "GET";
|
|
313
|
+
path: "/v1/events/public/discover";
|
|
314
|
+
responses: {
|
|
315
|
+
200: z.ZodArray<z.ZodObject<{
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
name: z.ZodString;
|
|
318
|
+
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
319
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
320
|
+
description: z.ZodNullable<z.ZodString>;
|
|
321
|
+
startDateTime: z.ZodString;
|
|
322
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
323
|
+
participantCount: z.ZodNumber;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
description: string | null;
|
|
326
|
+
id: string;
|
|
327
|
+
name: string;
|
|
328
|
+
coverImageUrl: string | null;
|
|
329
|
+
thumbnailUrl: string | null;
|
|
330
|
+
startDateTime: string;
|
|
331
|
+
endDateTime: string | null;
|
|
332
|
+
participantCount: number;
|
|
333
|
+
}, {
|
|
334
|
+
description: string | null;
|
|
335
|
+
id: string;
|
|
336
|
+
name: string;
|
|
337
|
+
coverImageUrl: string | null;
|
|
338
|
+
thumbnailUrl: string | null;
|
|
339
|
+
startDateTime: string;
|
|
340
|
+
endDateTime: string | null;
|
|
341
|
+
participantCount: number;
|
|
342
|
+
}>, "many">;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
260
345
|
create: {
|
|
261
346
|
metadata: {
|
|
262
347
|
openApiTags: string[];
|
|
@@ -268,25 +353,28 @@ declare const eventsContract: {
|
|
|
268
353
|
method: "POST";
|
|
269
354
|
body: z.ZodObject<{
|
|
270
355
|
name: z.ZodString;
|
|
271
|
-
|
|
356
|
+
coverImageId: z.ZodOptional<z.ZodString>;
|
|
272
357
|
description: z.ZodOptional<z.ZodString>;
|
|
273
358
|
maxGuests: z.ZodNumber;
|
|
274
|
-
|
|
275
|
-
|
|
359
|
+
startDateTime: z.ZodString;
|
|
360
|
+
endDateTime: z.ZodString;
|
|
361
|
+
requestedFields: z.ZodArray<z.ZodEnum<["documentNumber", "fullName", "dateOfBirth", "gender", "nationality", "ethnicity", "hometown", "permanentAddress", "identifyingMarks", "issueDate", "expiryDate", "fatherName", "motherName", "photo"]>, "many">;
|
|
276
362
|
}, "strip", z.ZodTypeAny, {
|
|
277
363
|
name: string;
|
|
364
|
+
startDateTime: string;
|
|
365
|
+
endDateTime: string;
|
|
278
366
|
maxGuests: number;
|
|
279
|
-
|
|
280
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "permanentAddress" | "documentNumber")[];
|
|
367
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
281
368
|
description?: string | undefined;
|
|
282
|
-
|
|
369
|
+
coverImageId?: string | undefined;
|
|
283
370
|
}, {
|
|
284
371
|
name: string;
|
|
372
|
+
startDateTime: string;
|
|
373
|
+
endDateTime: string;
|
|
285
374
|
maxGuests: number;
|
|
286
|
-
|
|
287
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "permanentAddress" | "documentNumber")[];
|
|
375
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
288
376
|
description?: string | undefined;
|
|
289
|
-
|
|
377
|
+
coverImageId?: string | undefined;
|
|
290
378
|
}>;
|
|
291
379
|
path: "/v1/events";
|
|
292
380
|
responses: {
|
|
@@ -294,9 +382,11 @@ declare const eventsContract: {
|
|
|
294
382
|
id: z.ZodString;
|
|
295
383
|
name: z.ZodString;
|
|
296
384
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
385
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
297
386
|
description: z.ZodNullable<z.ZodString>;
|
|
298
387
|
maxGuests: z.ZodNumber;
|
|
299
|
-
|
|
388
|
+
startDateTime: z.ZodString;
|
|
389
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
300
390
|
userId: z.ZodString;
|
|
301
391
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
302
392
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -306,27 +396,31 @@ declare const eventsContract: {
|
|
|
306
396
|
}, "strip", z.ZodTypeAny, {
|
|
307
397
|
description: string | null;
|
|
308
398
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
399
|
+
id: string;
|
|
309
400
|
name: string;
|
|
310
401
|
coverImageUrl: string | null;
|
|
402
|
+
thumbnailUrl: string | null;
|
|
403
|
+
startDateTime: string;
|
|
404
|
+
endDateTime: string | null;
|
|
405
|
+
participantCount: number;
|
|
311
406
|
maxGuests: number;
|
|
312
|
-
dateTime: string;
|
|
313
407
|
requestedFields: string[];
|
|
314
|
-
id: string;
|
|
315
408
|
userId: string;
|
|
316
|
-
participantCount: number;
|
|
317
409
|
createdAt: string;
|
|
318
410
|
updatedAt: string;
|
|
319
411
|
}, {
|
|
320
412
|
description: string | null;
|
|
321
413
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
414
|
+
id: string;
|
|
322
415
|
name: string;
|
|
323
416
|
coverImageUrl: string | null;
|
|
417
|
+
thumbnailUrl: string | null;
|
|
418
|
+
startDateTime: string;
|
|
419
|
+
endDateTime: string | null;
|
|
420
|
+
participantCount: number;
|
|
324
421
|
maxGuests: number;
|
|
325
|
-
dateTime: string;
|
|
326
422
|
requestedFields: string[];
|
|
327
|
-
id: string;
|
|
328
423
|
userId: string;
|
|
329
|
-
participantCount: number;
|
|
330
424
|
createdAt: string;
|
|
331
425
|
updatedAt: string;
|
|
332
426
|
}>;
|
|
@@ -361,9 +455,11 @@ declare const eventsContract: {
|
|
|
361
455
|
id: z.ZodString;
|
|
362
456
|
name: z.ZodString;
|
|
363
457
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
458
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
364
459
|
description: z.ZodNullable<z.ZodString>;
|
|
365
460
|
maxGuests: z.ZodNumber;
|
|
366
|
-
|
|
461
|
+
startDateTime: z.ZodString;
|
|
462
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
367
463
|
userId: z.ZodString;
|
|
368
464
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
369
465
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -373,27 +469,31 @@ declare const eventsContract: {
|
|
|
373
469
|
}, "strip", z.ZodTypeAny, {
|
|
374
470
|
description: string | null;
|
|
375
471
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
472
|
+
id: string;
|
|
376
473
|
name: string;
|
|
377
474
|
coverImageUrl: string | null;
|
|
475
|
+
thumbnailUrl: string | null;
|
|
476
|
+
startDateTime: string;
|
|
477
|
+
endDateTime: string | null;
|
|
478
|
+
participantCount: number;
|
|
378
479
|
maxGuests: number;
|
|
379
|
-
dateTime: string;
|
|
380
480
|
requestedFields: string[];
|
|
381
|
-
id: string;
|
|
382
481
|
userId: string;
|
|
383
|
-
participantCount: number;
|
|
384
482
|
createdAt: string;
|
|
385
483
|
updatedAt: string;
|
|
386
484
|
}, {
|
|
387
485
|
description: string | null;
|
|
388
486
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
487
|
+
id: string;
|
|
389
488
|
name: string;
|
|
390
489
|
coverImageUrl: string | null;
|
|
490
|
+
thumbnailUrl: string | null;
|
|
491
|
+
startDateTime: string;
|
|
492
|
+
endDateTime: string | null;
|
|
493
|
+
participantCount: number;
|
|
391
494
|
maxGuests: number;
|
|
392
|
-
dateTime: string;
|
|
393
495
|
requestedFields: string[];
|
|
394
|
-
id: string;
|
|
395
496
|
userId: string;
|
|
396
|
-
participantCount: number;
|
|
397
497
|
createdAt: string;
|
|
398
498
|
updatedAt: string;
|
|
399
499
|
}>, "many">;
|
|
@@ -421,9 +521,11 @@ declare const eventsContract: {
|
|
|
421
521
|
id: z.ZodString;
|
|
422
522
|
name: z.ZodString;
|
|
423
523
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
524
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
424
525
|
description: z.ZodNullable<z.ZodString>;
|
|
425
526
|
maxGuests: z.ZodNumber;
|
|
426
|
-
|
|
527
|
+
startDateTime: z.ZodString;
|
|
528
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
427
529
|
userId: z.ZodString;
|
|
428
530
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
429
531
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -451,14 +553,16 @@ declare const eventsContract: {
|
|
|
451
553
|
}, "strip", z.ZodTypeAny, {
|
|
452
554
|
description: string | null;
|
|
453
555
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
556
|
+
id: string;
|
|
454
557
|
name: string;
|
|
455
558
|
coverImageUrl: string | null;
|
|
559
|
+
thumbnailUrl: string | null;
|
|
560
|
+
startDateTime: string;
|
|
561
|
+
endDateTime: string | null;
|
|
562
|
+
participantCount: number;
|
|
456
563
|
maxGuests: number;
|
|
457
|
-
dateTime: string;
|
|
458
564
|
requestedFields: string[];
|
|
459
|
-
id: string;
|
|
460
565
|
userId: string;
|
|
461
|
-
participantCount: number;
|
|
462
566
|
createdAt: string;
|
|
463
567
|
updatedAt: string;
|
|
464
568
|
participants: {
|
|
@@ -471,14 +575,16 @@ declare const eventsContract: {
|
|
|
471
575
|
}, {
|
|
472
576
|
description: string | null;
|
|
473
577
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
578
|
+
id: string;
|
|
474
579
|
name: string;
|
|
475
580
|
coverImageUrl: string | null;
|
|
581
|
+
thumbnailUrl: string | null;
|
|
582
|
+
startDateTime: string;
|
|
583
|
+
endDateTime: string | null;
|
|
584
|
+
participantCount: number;
|
|
476
585
|
maxGuests: number;
|
|
477
|
-
dateTime: string;
|
|
478
586
|
requestedFields: string[];
|
|
479
|
-
id: string;
|
|
480
587
|
userId: string;
|
|
481
|
-
participantCount: number;
|
|
482
588
|
createdAt: string;
|
|
483
589
|
updatedAt: string;
|
|
484
590
|
participants: {
|
|
@@ -523,25 +629,28 @@ declare const eventsContract: {
|
|
|
523
629
|
method: "PATCH";
|
|
524
630
|
body: z.ZodObject<{
|
|
525
631
|
name: z.ZodOptional<z.ZodString>;
|
|
526
|
-
|
|
632
|
+
coverImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
527
633
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
634
|
maxGuests: z.ZodOptional<z.ZodNumber>;
|
|
529
|
-
|
|
635
|
+
startDateTime: z.ZodOptional<z.ZodString>;
|
|
636
|
+
endDateTime: z.ZodOptional<z.ZodString>;
|
|
530
637
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>>;
|
|
531
638
|
}, "strip", z.ZodTypeAny, {
|
|
532
639
|
description?: string | null | undefined;
|
|
533
640
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
534
641
|
name?: string | undefined;
|
|
535
|
-
|
|
642
|
+
startDateTime?: string | undefined;
|
|
643
|
+
endDateTime?: string | undefined;
|
|
644
|
+
coverImageId?: string | null | undefined;
|
|
536
645
|
maxGuests?: number | undefined;
|
|
537
|
-
dateTime?: string | undefined;
|
|
538
646
|
}, {
|
|
539
647
|
description?: string | null | undefined;
|
|
540
648
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
541
649
|
name?: string | undefined;
|
|
542
|
-
|
|
650
|
+
startDateTime?: string | undefined;
|
|
651
|
+
endDateTime?: string | undefined;
|
|
652
|
+
coverImageId?: string | null | undefined;
|
|
543
653
|
maxGuests?: number | undefined;
|
|
544
|
-
dateTime?: string | undefined;
|
|
545
654
|
}>;
|
|
546
655
|
path: "/v1/events/:id";
|
|
547
656
|
responses: {
|
|
@@ -549,9 +658,11 @@ declare const eventsContract: {
|
|
|
549
658
|
id: z.ZodString;
|
|
550
659
|
name: z.ZodString;
|
|
551
660
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
661
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
552
662
|
description: z.ZodNullable<z.ZodString>;
|
|
553
663
|
maxGuests: z.ZodNumber;
|
|
554
|
-
|
|
664
|
+
startDateTime: z.ZodString;
|
|
665
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
555
666
|
userId: z.ZodString;
|
|
556
667
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
557
668
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -561,27 +672,31 @@ declare const eventsContract: {
|
|
|
561
672
|
}, "strip", z.ZodTypeAny, {
|
|
562
673
|
description: string | null;
|
|
563
674
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
675
|
+
id: string;
|
|
564
676
|
name: string;
|
|
565
677
|
coverImageUrl: string | null;
|
|
678
|
+
thumbnailUrl: string | null;
|
|
679
|
+
startDateTime: string;
|
|
680
|
+
endDateTime: string | null;
|
|
681
|
+
participantCount: number;
|
|
566
682
|
maxGuests: number;
|
|
567
|
-
dateTime: string;
|
|
568
683
|
requestedFields: string[];
|
|
569
|
-
id: string;
|
|
570
684
|
userId: string;
|
|
571
|
-
participantCount: number;
|
|
572
685
|
createdAt: string;
|
|
573
686
|
updatedAt: string;
|
|
574
687
|
}, {
|
|
575
688
|
description: string | null;
|
|
576
689
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
690
|
+
id: string;
|
|
577
691
|
name: string;
|
|
578
692
|
coverImageUrl: string | null;
|
|
693
|
+
thumbnailUrl: string | null;
|
|
694
|
+
startDateTime: string;
|
|
695
|
+
endDateTime: string | null;
|
|
696
|
+
participantCount: number;
|
|
579
697
|
maxGuests: number;
|
|
580
|
-
dateTime: string;
|
|
581
698
|
requestedFields: string[];
|
|
582
|
-
id: string;
|
|
583
699
|
userId: string;
|
|
584
|
-
participantCount: number;
|
|
585
700
|
createdAt: string;
|
|
586
701
|
updatedAt: string;
|
|
587
702
|
}>;
|
|
@@ -692,28 +807,34 @@ declare const EventPublicInfoSchema: z.ZodObject<{
|
|
|
692
807
|
id: z.ZodString;
|
|
693
808
|
name: z.ZodString;
|
|
694
809
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
810
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
695
811
|
description: z.ZodNullable<z.ZodString>;
|
|
696
812
|
maxGuests: z.ZodNumber;
|
|
697
|
-
|
|
813
|
+
startDateTime: z.ZodString;
|
|
814
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
698
815
|
currentGuests: z.ZodNumber;
|
|
699
816
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
700
817
|
}, "strip", z.ZodTypeAny, {
|
|
701
818
|
description: string | null;
|
|
702
819
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
820
|
+
id: string;
|
|
703
821
|
name: string;
|
|
704
822
|
coverImageUrl: string | null;
|
|
823
|
+
thumbnailUrl: string | null;
|
|
824
|
+
startDateTime: string;
|
|
825
|
+
endDateTime: string | null;
|
|
705
826
|
maxGuests: number;
|
|
706
|
-
dateTime: string;
|
|
707
|
-
id: string;
|
|
708
827
|
currentGuests: number;
|
|
709
828
|
}, {
|
|
710
829
|
description: string | null;
|
|
711
830
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
831
|
+
id: string;
|
|
712
832
|
name: string;
|
|
713
833
|
coverImageUrl: string | null;
|
|
834
|
+
thumbnailUrl: string | null;
|
|
835
|
+
startDateTime: string;
|
|
836
|
+
endDateTime: string | null;
|
|
714
837
|
maxGuests: number;
|
|
715
|
-
dateTime: string;
|
|
716
|
-
id: string;
|
|
717
838
|
currentGuests: number;
|
|
718
839
|
}>;
|
|
719
840
|
declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
@@ -721,28 +842,34 @@ declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
|
721
842
|
id: z.ZodString;
|
|
722
843
|
name: z.ZodString;
|
|
723
844
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
845
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
724
846
|
description: z.ZodNullable<z.ZodString>;
|
|
725
847
|
maxGuests: z.ZodNumber;
|
|
726
|
-
|
|
848
|
+
startDateTime: z.ZodString;
|
|
849
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
727
850
|
currentGuests: z.ZodNumber;
|
|
728
851
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
729
852
|
}, "strip", z.ZodTypeAny, {
|
|
730
853
|
description: string | null;
|
|
731
854
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
855
|
+
id: string;
|
|
732
856
|
name: string;
|
|
733
857
|
coverImageUrl: string | null;
|
|
858
|
+
thumbnailUrl: string | null;
|
|
859
|
+
startDateTime: string;
|
|
860
|
+
endDateTime: string | null;
|
|
734
861
|
maxGuests: number;
|
|
735
|
-
dateTime: string;
|
|
736
|
-
id: string;
|
|
737
862
|
currentGuests: number;
|
|
738
863
|
}, {
|
|
739
864
|
description: string | null;
|
|
740
865
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
866
|
+
id: string;
|
|
741
867
|
name: string;
|
|
742
868
|
coverImageUrl: string | null;
|
|
869
|
+
thumbnailUrl: string | null;
|
|
870
|
+
startDateTime: string;
|
|
871
|
+
endDateTime: string | null;
|
|
743
872
|
maxGuests: number;
|
|
744
|
-
dateTime: string;
|
|
745
|
-
id: string;
|
|
746
873
|
currentGuests: number;
|
|
747
874
|
}>;
|
|
748
875
|
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -751,11 +878,13 @@ declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
|
751
878
|
event: {
|
|
752
879
|
description: string | null;
|
|
753
880
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
881
|
+
id: string;
|
|
754
882
|
name: string;
|
|
755
883
|
coverImageUrl: string | null;
|
|
884
|
+
thumbnailUrl: string | null;
|
|
885
|
+
startDateTime: string;
|
|
886
|
+
endDateTime: string | null;
|
|
756
887
|
maxGuests: number;
|
|
757
|
-
dateTime: string;
|
|
758
|
-
id: string;
|
|
759
888
|
currentGuests: number;
|
|
760
889
|
};
|
|
761
890
|
}, {
|
|
@@ -763,11 +892,13 @@ declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
|
763
892
|
event: {
|
|
764
893
|
description: string | null;
|
|
765
894
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
895
|
+
id: string;
|
|
766
896
|
name: string;
|
|
767
897
|
coverImageUrl: string | null;
|
|
898
|
+
thumbnailUrl: string | null;
|
|
899
|
+
startDateTime: string;
|
|
900
|
+
endDateTime: string | null;
|
|
768
901
|
maxGuests: number;
|
|
769
|
-
dateTime: string;
|
|
770
|
-
id: string;
|
|
771
902
|
currentGuests: number;
|
|
772
903
|
};
|
|
773
904
|
}>;
|
|
@@ -803,28 +934,34 @@ declare const checkinContract: {
|
|
|
803
934
|
id: z.ZodString;
|
|
804
935
|
name: z.ZodString;
|
|
805
936
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
937
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
806
938
|
description: z.ZodNullable<z.ZodString>;
|
|
807
939
|
maxGuests: z.ZodNumber;
|
|
808
|
-
|
|
940
|
+
startDateTime: z.ZodString;
|
|
941
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
809
942
|
currentGuests: z.ZodNumber;
|
|
810
943
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
811
944
|
}, "strip", z.ZodTypeAny, {
|
|
812
945
|
description: string | null;
|
|
813
946
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
947
|
+
id: string;
|
|
814
948
|
name: string;
|
|
815
949
|
coverImageUrl: string | null;
|
|
950
|
+
thumbnailUrl: string | null;
|
|
951
|
+
startDateTime: string;
|
|
952
|
+
endDateTime: string | null;
|
|
816
953
|
maxGuests: number;
|
|
817
|
-
dateTime: string;
|
|
818
|
-
id: string;
|
|
819
954
|
currentGuests: number;
|
|
820
955
|
}, {
|
|
821
956
|
description: string | null;
|
|
822
957
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
958
|
+
id: string;
|
|
823
959
|
name: string;
|
|
824
960
|
coverImageUrl: string | null;
|
|
961
|
+
thumbnailUrl: string | null;
|
|
962
|
+
startDateTime: string;
|
|
963
|
+
endDateTime: string | null;
|
|
825
964
|
maxGuests: number;
|
|
826
|
-
dateTime: string;
|
|
827
|
-
id: string;
|
|
828
965
|
currentGuests: number;
|
|
829
966
|
}>;
|
|
830
967
|
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -833,11 +970,13 @@ declare const checkinContract: {
|
|
|
833
970
|
event: {
|
|
834
971
|
description: string | null;
|
|
835
972
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
973
|
+
id: string;
|
|
836
974
|
name: string;
|
|
837
975
|
coverImageUrl: string | null;
|
|
976
|
+
thumbnailUrl: string | null;
|
|
977
|
+
startDateTime: string;
|
|
978
|
+
endDateTime: string | null;
|
|
838
979
|
maxGuests: number;
|
|
839
|
-
dateTime: string;
|
|
840
|
-
id: string;
|
|
841
980
|
currentGuests: number;
|
|
842
981
|
};
|
|
843
982
|
}, {
|
|
@@ -845,11 +984,13 @@ declare const checkinContract: {
|
|
|
845
984
|
event: {
|
|
846
985
|
description: string | null;
|
|
847
986
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
987
|
+
id: string;
|
|
848
988
|
name: string;
|
|
849
989
|
coverImageUrl: string | null;
|
|
990
|
+
thumbnailUrl: string | null;
|
|
991
|
+
startDateTime: string;
|
|
992
|
+
endDateTime: string | null;
|
|
850
993
|
maxGuests: number;
|
|
851
|
-
dateTime: string;
|
|
852
|
-
id: string;
|
|
853
994
|
currentGuests: number;
|
|
854
995
|
};
|
|
855
996
|
}>;
|
|
@@ -872,9 +1013,11 @@ declare const checkinContract: {
|
|
|
872
1013
|
submit: {
|
|
873
1014
|
metadata: {
|
|
874
1015
|
openApiTags: string[];
|
|
875
|
-
openApiSecurity:
|
|
1016
|
+
openApiSecurity: {
|
|
1017
|
+
bearerAuth: never[];
|
|
1018
|
+
}[];
|
|
876
1019
|
};
|
|
877
|
-
summary: "Submit VP for event check-in — issues participation VC on success
|
|
1020
|
+
summary: "Submit VP for event check-in — issues participation VC on success";
|
|
878
1021
|
method: "POST";
|
|
879
1022
|
body: z.ZodObject<{
|
|
880
1023
|
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -905,6 +1048,13 @@ declare const checkinContract: {
|
|
|
905
1048
|
message: string;
|
|
906
1049
|
errors?: string[] | undefined;
|
|
907
1050
|
}>;
|
|
1051
|
+
401: z.ZodObject<{
|
|
1052
|
+
message: z.ZodString;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
message: string;
|
|
1055
|
+
}, {
|
|
1056
|
+
message: string;
|
|
1057
|
+
}>;
|
|
908
1058
|
404: z.ZodObject<{
|
|
909
1059
|
message: z.ZodString;
|
|
910
1060
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -936,59 +1086,72 @@ declare const checkinContract: {
|
|
|
936
1086
|
id: z.ZodString;
|
|
937
1087
|
eventId: z.ZodString;
|
|
938
1088
|
checkedInAt: z.ZodString;
|
|
1089
|
+
disclosedFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
939
1090
|
event: z.ZodObject<{
|
|
940
1091
|
id: z.ZodString;
|
|
941
1092
|
name: z.ZodString;
|
|
942
1093
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
1094
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
943
1095
|
description: z.ZodNullable<z.ZodString>;
|
|
944
1096
|
maxGuests: z.ZodNumber;
|
|
945
|
-
|
|
1097
|
+
startDateTime: z.ZodString;
|
|
1098
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
946
1099
|
currentGuests: z.ZodNumber;
|
|
947
1100
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
948
1101
|
}, "strip", z.ZodTypeAny, {
|
|
949
1102
|
description: string | null;
|
|
950
1103
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1104
|
+
id: string;
|
|
951
1105
|
name: string;
|
|
952
1106
|
coverImageUrl: string | null;
|
|
1107
|
+
thumbnailUrl: string | null;
|
|
1108
|
+
startDateTime: string;
|
|
1109
|
+
endDateTime: string | null;
|
|
953
1110
|
maxGuests: number;
|
|
954
|
-
dateTime: string;
|
|
955
|
-
id: string;
|
|
956
1111
|
currentGuests: number;
|
|
957
1112
|
}, {
|
|
958
1113
|
description: string | null;
|
|
959
1114
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1115
|
+
id: string;
|
|
960
1116
|
name: string;
|
|
961
1117
|
coverImageUrl: string | null;
|
|
1118
|
+
thumbnailUrl: string | null;
|
|
1119
|
+
startDateTime: string;
|
|
1120
|
+
endDateTime: string | null;
|
|
962
1121
|
maxGuests: number;
|
|
963
|
-
dateTime: string;
|
|
964
|
-
id: string;
|
|
965
1122
|
currentGuests: number;
|
|
966
1123
|
}>;
|
|
967
1124
|
}, "strip", z.ZodTypeAny, {
|
|
968
1125
|
id: string;
|
|
1126
|
+
disclosedFields: Record<string, unknown>;
|
|
969
1127
|
checkedInAt: string;
|
|
970
1128
|
event: {
|
|
971
1129
|
description: string | null;
|
|
972
1130
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1131
|
+
id: string;
|
|
973
1132
|
name: string;
|
|
974
1133
|
coverImageUrl: string | null;
|
|
1134
|
+
thumbnailUrl: string | null;
|
|
1135
|
+
startDateTime: string;
|
|
1136
|
+
endDateTime: string | null;
|
|
975
1137
|
maxGuests: number;
|
|
976
|
-
dateTime: string;
|
|
977
|
-
id: string;
|
|
978
1138
|
currentGuests: number;
|
|
979
1139
|
};
|
|
980
1140
|
eventId: string;
|
|
981
1141
|
}, {
|
|
982
1142
|
id: string;
|
|
1143
|
+
disclosedFields: Record<string, unknown>;
|
|
983
1144
|
checkedInAt: string;
|
|
984
1145
|
event: {
|
|
985
1146
|
description: string | null;
|
|
986
1147
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1148
|
+
id: string;
|
|
987
1149
|
name: string;
|
|
988
1150
|
coverImageUrl: string | null;
|
|
1151
|
+
thumbnailUrl: string | null;
|
|
1152
|
+
startDateTime: string;
|
|
1153
|
+
endDateTime: string | null;
|
|
989
1154
|
maxGuests: number;
|
|
990
|
-
dateTime: string;
|
|
991
|
-
id: string;
|
|
992
1155
|
currentGuests: number;
|
|
993
1156
|
};
|
|
994
1157
|
eventId: string;
|
|
@@ -1085,6 +1248,217 @@ declare const turnContract: {
|
|
|
1085
1248
|
};
|
|
1086
1249
|
};
|
|
1087
1250
|
|
|
1251
|
+
declare const UploadPresignedUrlSchema: z.ZodObject<{
|
|
1252
|
+
fileId: z.ZodString;
|
|
1253
|
+
original: z.ZodObject<{
|
|
1254
|
+
uploadUrl: z.ZodString;
|
|
1255
|
+
key: z.ZodString;
|
|
1256
|
+
publicUrl: z.ZodString;
|
|
1257
|
+
}, "strip", z.ZodTypeAny, {
|
|
1258
|
+
uploadUrl: string;
|
|
1259
|
+
key: string;
|
|
1260
|
+
publicUrl: string;
|
|
1261
|
+
}, {
|
|
1262
|
+
uploadUrl: string;
|
|
1263
|
+
key: string;
|
|
1264
|
+
publicUrl: string;
|
|
1265
|
+
}>;
|
|
1266
|
+
resize: z.ZodObject<{
|
|
1267
|
+
uploadUrl: z.ZodString;
|
|
1268
|
+
key: z.ZodString;
|
|
1269
|
+
publicUrl: z.ZodString;
|
|
1270
|
+
}, "strip", z.ZodTypeAny, {
|
|
1271
|
+
uploadUrl: string;
|
|
1272
|
+
key: string;
|
|
1273
|
+
publicUrl: string;
|
|
1274
|
+
}, {
|
|
1275
|
+
uploadUrl: string;
|
|
1276
|
+
key: string;
|
|
1277
|
+
publicUrl: string;
|
|
1278
|
+
}>;
|
|
1279
|
+
}, "strip", z.ZodTypeAny, {
|
|
1280
|
+
fileId: string;
|
|
1281
|
+
original: {
|
|
1282
|
+
uploadUrl: string;
|
|
1283
|
+
key: string;
|
|
1284
|
+
publicUrl: string;
|
|
1285
|
+
};
|
|
1286
|
+
resize: {
|
|
1287
|
+
uploadUrl: string;
|
|
1288
|
+
key: string;
|
|
1289
|
+
publicUrl: string;
|
|
1290
|
+
};
|
|
1291
|
+
}, {
|
|
1292
|
+
fileId: string;
|
|
1293
|
+
original: {
|
|
1294
|
+
uploadUrl: string;
|
|
1295
|
+
key: string;
|
|
1296
|
+
publicUrl: string;
|
|
1297
|
+
};
|
|
1298
|
+
resize: {
|
|
1299
|
+
uploadUrl: string;
|
|
1300
|
+
key: string;
|
|
1301
|
+
publicUrl: string;
|
|
1302
|
+
};
|
|
1303
|
+
}>;
|
|
1304
|
+
declare const uploadsContract: {
|
|
1305
|
+
generatePresignedUrls: {
|
|
1306
|
+
metadata: {
|
|
1307
|
+
openApiTags: string[];
|
|
1308
|
+
openApiSecurity: {
|
|
1309
|
+
bearerAuth: never[];
|
|
1310
|
+
}[];
|
|
1311
|
+
};
|
|
1312
|
+
summary: "Generate pre-signed URLs for event image upload";
|
|
1313
|
+
method: "POST";
|
|
1314
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1315
|
+
path: "/v1/uploads/urls";
|
|
1316
|
+
responses: {
|
|
1317
|
+
201: z.ZodObject<{
|
|
1318
|
+
fileId: z.ZodString;
|
|
1319
|
+
original: z.ZodObject<{
|
|
1320
|
+
uploadUrl: z.ZodString;
|
|
1321
|
+
key: z.ZodString;
|
|
1322
|
+
publicUrl: z.ZodString;
|
|
1323
|
+
}, "strip", z.ZodTypeAny, {
|
|
1324
|
+
uploadUrl: string;
|
|
1325
|
+
key: string;
|
|
1326
|
+
publicUrl: string;
|
|
1327
|
+
}, {
|
|
1328
|
+
uploadUrl: string;
|
|
1329
|
+
key: string;
|
|
1330
|
+
publicUrl: string;
|
|
1331
|
+
}>;
|
|
1332
|
+
resize: z.ZodObject<{
|
|
1333
|
+
uploadUrl: z.ZodString;
|
|
1334
|
+
key: z.ZodString;
|
|
1335
|
+
publicUrl: z.ZodString;
|
|
1336
|
+
}, "strip", z.ZodTypeAny, {
|
|
1337
|
+
uploadUrl: string;
|
|
1338
|
+
key: string;
|
|
1339
|
+
publicUrl: string;
|
|
1340
|
+
}, {
|
|
1341
|
+
uploadUrl: string;
|
|
1342
|
+
key: string;
|
|
1343
|
+
publicUrl: string;
|
|
1344
|
+
}>;
|
|
1345
|
+
}, "strip", z.ZodTypeAny, {
|
|
1346
|
+
fileId: string;
|
|
1347
|
+
original: {
|
|
1348
|
+
uploadUrl: string;
|
|
1349
|
+
key: string;
|
|
1350
|
+
publicUrl: string;
|
|
1351
|
+
};
|
|
1352
|
+
resize: {
|
|
1353
|
+
uploadUrl: string;
|
|
1354
|
+
key: string;
|
|
1355
|
+
publicUrl: string;
|
|
1356
|
+
};
|
|
1357
|
+
}, {
|
|
1358
|
+
fileId: string;
|
|
1359
|
+
original: {
|
|
1360
|
+
uploadUrl: string;
|
|
1361
|
+
key: string;
|
|
1362
|
+
publicUrl: string;
|
|
1363
|
+
};
|
|
1364
|
+
resize: {
|
|
1365
|
+
uploadUrl: string;
|
|
1366
|
+
key: string;
|
|
1367
|
+
publicUrl: string;
|
|
1368
|
+
};
|
|
1369
|
+
}>;
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1374
|
+
declare const TrackScanRequestSchema: z.ZodObject<{
|
|
1375
|
+
platform: z.ZodString;
|
|
1376
|
+
appVersion: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
}, "strip", z.ZodTypeAny, {
|
|
1378
|
+
platform: string;
|
|
1379
|
+
appVersion?: string | undefined;
|
|
1380
|
+
}, {
|
|
1381
|
+
platform: string;
|
|
1382
|
+
appVersion?: string | undefined;
|
|
1383
|
+
}>;
|
|
1384
|
+
declare const TrackScanResponseSchema: z.ZodObject<{
|
|
1385
|
+
id: z.ZodString;
|
|
1386
|
+
}, "strip", z.ZodTypeAny, {
|
|
1387
|
+
id: string;
|
|
1388
|
+
}, {
|
|
1389
|
+
id: string;
|
|
1390
|
+
}>;
|
|
1391
|
+
declare const trackingContract: {
|
|
1392
|
+
scan: {
|
|
1393
|
+
metadata: {
|
|
1394
|
+
openApiTags: string[];
|
|
1395
|
+
openApiSecurity: {
|
|
1396
|
+
bearerAuth: never[];
|
|
1397
|
+
}[];
|
|
1398
|
+
};
|
|
1399
|
+
summary: "Record a successful NFC scan event";
|
|
1400
|
+
method: "POST";
|
|
1401
|
+
body: z.ZodObject<{
|
|
1402
|
+
platform: z.ZodString;
|
|
1403
|
+
appVersion: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
}, "strip", z.ZodTypeAny, {
|
|
1405
|
+
platform: string;
|
|
1406
|
+
appVersion?: string | undefined;
|
|
1407
|
+
}, {
|
|
1408
|
+
platform: string;
|
|
1409
|
+
appVersion?: string | undefined;
|
|
1410
|
+
}>;
|
|
1411
|
+
path: "/v1/tracking/scan";
|
|
1412
|
+
responses: {
|
|
1413
|
+
201: z.ZodObject<{
|
|
1414
|
+
id: z.ZodString;
|
|
1415
|
+
}, "strip", z.ZodTypeAny, {
|
|
1416
|
+
id: string;
|
|
1417
|
+
}, {
|
|
1418
|
+
id: string;
|
|
1419
|
+
}>;
|
|
1420
|
+
401: z.ZodObject<{
|
|
1421
|
+
message: z.ZodString;
|
|
1422
|
+
}, "strip", z.ZodTypeAny, {
|
|
1423
|
+
message: string;
|
|
1424
|
+
}, {
|
|
1425
|
+
message: string;
|
|
1426
|
+
}>;
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
declare const appConfigContract: {
|
|
1432
|
+
appConfig: {
|
|
1433
|
+
metadata: {
|
|
1434
|
+
openApiTags: string[];
|
|
1435
|
+
openApiSecurity: never[];
|
|
1436
|
+
};
|
|
1437
|
+
summary: "Get app configuration (public)";
|
|
1438
|
+
method: "GET";
|
|
1439
|
+
path: "/v1/config/app";
|
|
1440
|
+
responses: {
|
|
1441
|
+
200: z.ZodObject<{
|
|
1442
|
+
demoMode: z.ZodObject<{
|
|
1443
|
+
enabled: z.ZodBoolean;
|
|
1444
|
+
}, "strip", z.ZodTypeAny, {
|
|
1445
|
+
enabled: boolean;
|
|
1446
|
+
}, {
|
|
1447
|
+
enabled: boolean;
|
|
1448
|
+
}>;
|
|
1449
|
+
}, "strip", z.ZodTypeAny, {
|
|
1450
|
+
demoMode: {
|
|
1451
|
+
enabled: boolean;
|
|
1452
|
+
};
|
|
1453
|
+
}, {
|
|
1454
|
+
demoMode: {
|
|
1455
|
+
enabled: boolean;
|
|
1456
|
+
};
|
|
1457
|
+
}>;
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1088
1462
|
declare const contract: {
|
|
1089
1463
|
v1: {
|
|
1090
1464
|
auth: {
|
|
@@ -1136,6 +1510,45 @@ declare const contract: {
|
|
|
1136
1510
|
};
|
|
1137
1511
|
};
|
|
1138
1512
|
events: {
|
|
1513
|
+
discover: {
|
|
1514
|
+
metadata: {
|
|
1515
|
+
openApiTags: string[];
|
|
1516
|
+
openApiSecurity: never[];
|
|
1517
|
+
};
|
|
1518
|
+
summary: "List public events for discovery (public)";
|
|
1519
|
+
method: "GET";
|
|
1520
|
+
path: "/v1/events/public/discover";
|
|
1521
|
+
responses: {
|
|
1522
|
+
200: zod.ZodArray<zod.ZodObject<{
|
|
1523
|
+
id: zod.ZodString;
|
|
1524
|
+
name: zod.ZodString;
|
|
1525
|
+
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1526
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1527
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1528
|
+
startDateTime: zod.ZodString;
|
|
1529
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1530
|
+
participantCount: zod.ZodNumber;
|
|
1531
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1532
|
+
description: string | null;
|
|
1533
|
+
id: string;
|
|
1534
|
+
name: string;
|
|
1535
|
+
coverImageUrl: string | null;
|
|
1536
|
+
thumbnailUrl: string | null;
|
|
1537
|
+
startDateTime: string;
|
|
1538
|
+
endDateTime: string | null;
|
|
1539
|
+
participantCount: number;
|
|
1540
|
+
}, {
|
|
1541
|
+
description: string | null;
|
|
1542
|
+
id: string;
|
|
1543
|
+
name: string;
|
|
1544
|
+
coverImageUrl: string | null;
|
|
1545
|
+
thumbnailUrl: string | null;
|
|
1546
|
+
startDateTime: string;
|
|
1547
|
+
endDateTime: string | null;
|
|
1548
|
+
participantCount: number;
|
|
1549
|
+
}>, "many">;
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1139
1552
|
create: {
|
|
1140
1553
|
metadata: {
|
|
1141
1554
|
openApiTags: string[];
|
|
@@ -1147,25 +1560,28 @@ declare const contract: {
|
|
|
1147
1560
|
method: "POST";
|
|
1148
1561
|
body: zod.ZodObject<{
|
|
1149
1562
|
name: zod.ZodString;
|
|
1150
|
-
|
|
1563
|
+
coverImageId: zod.ZodOptional<zod.ZodString>;
|
|
1151
1564
|
description: zod.ZodOptional<zod.ZodString>;
|
|
1152
1565
|
maxGuests: zod.ZodNumber;
|
|
1153
|
-
|
|
1154
|
-
|
|
1566
|
+
startDateTime: zod.ZodString;
|
|
1567
|
+
endDateTime: zod.ZodString;
|
|
1568
|
+
requestedFields: zod.ZodArray<zod.ZodEnum<["documentNumber", "fullName", "dateOfBirth", "gender", "nationality", "ethnicity", "hometown", "permanentAddress", "identifyingMarks", "issueDate", "expiryDate", "fatherName", "motherName", "photo"]>, "many">;
|
|
1155
1569
|
}, "strip", zod.ZodTypeAny, {
|
|
1156
1570
|
name: string;
|
|
1571
|
+
startDateTime: string;
|
|
1572
|
+
endDateTime: string;
|
|
1157
1573
|
maxGuests: number;
|
|
1158
|
-
|
|
1159
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "permanentAddress" | "documentNumber")[];
|
|
1574
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
1160
1575
|
description?: string | undefined;
|
|
1161
|
-
|
|
1576
|
+
coverImageId?: string | undefined;
|
|
1162
1577
|
}, {
|
|
1163
1578
|
name: string;
|
|
1579
|
+
startDateTime: string;
|
|
1580
|
+
endDateTime: string;
|
|
1164
1581
|
maxGuests: number;
|
|
1165
|
-
|
|
1166
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "permanentAddress" | "documentNumber")[];
|
|
1582
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
1167
1583
|
description?: string | undefined;
|
|
1168
|
-
|
|
1584
|
+
coverImageId?: string | undefined;
|
|
1169
1585
|
}>;
|
|
1170
1586
|
path: "/v1/events";
|
|
1171
1587
|
responses: {
|
|
@@ -1173,9 +1589,11 @@ declare const contract: {
|
|
|
1173
1589
|
id: zod.ZodString;
|
|
1174
1590
|
name: zod.ZodString;
|
|
1175
1591
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1592
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1176
1593
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1177
1594
|
maxGuests: zod.ZodNumber;
|
|
1178
|
-
|
|
1595
|
+
startDateTime: zod.ZodString;
|
|
1596
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1179
1597
|
userId: zod.ZodString;
|
|
1180
1598
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1181
1599
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1185,27 +1603,31 @@ declare const contract: {
|
|
|
1185
1603
|
}, "strip", zod.ZodTypeAny, {
|
|
1186
1604
|
description: string | null;
|
|
1187
1605
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1606
|
+
id: string;
|
|
1188
1607
|
name: string;
|
|
1189
1608
|
coverImageUrl: string | null;
|
|
1609
|
+
thumbnailUrl: string | null;
|
|
1610
|
+
startDateTime: string;
|
|
1611
|
+
endDateTime: string | null;
|
|
1612
|
+
participantCount: number;
|
|
1190
1613
|
maxGuests: number;
|
|
1191
|
-
dateTime: string;
|
|
1192
1614
|
requestedFields: string[];
|
|
1193
|
-
id: string;
|
|
1194
1615
|
userId: string;
|
|
1195
|
-
participantCount: number;
|
|
1196
1616
|
createdAt: string;
|
|
1197
1617
|
updatedAt: string;
|
|
1198
1618
|
}, {
|
|
1199
1619
|
description: string | null;
|
|
1200
1620
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1621
|
+
id: string;
|
|
1201
1622
|
name: string;
|
|
1202
1623
|
coverImageUrl: string | null;
|
|
1624
|
+
thumbnailUrl: string | null;
|
|
1625
|
+
startDateTime: string;
|
|
1626
|
+
endDateTime: string | null;
|
|
1627
|
+
participantCount: number;
|
|
1203
1628
|
maxGuests: number;
|
|
1204
|
-
dateTime: string;
|
|
1205
1629
|
requestedFields: string[];
|
|
1206
|
-
id: string;
|
|
1207
1630
|
userId: string;
|
|
1208
|
-
participantCount: number;
|
|
1209
1631
|
createdAt: string;
|
|
1210
1632
|
updatedAt: string;
|
|
1211
1633
|
}>;
|
|
@@ -1240,9 +1662,11 @@ declare const contract: {
|
|
|
1240
1662
|
id: zod.ZodString;
|
|
1241
1663
|
name: zod.ZodString;
|
|
1242
1664
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1665
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1243
1666
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1244
1667
|
maxGuests: zod.ZodNumber;
|
|
1245
|
-
|
|
1668
|
+
startDateTime: zod.ZodString;
|
|
1669
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1246
1670
|
userId: zod.ZodString;
|
|
1247
1671
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1248
1672
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1252,27 +1676,31 @@ declare const contract: {
|
|
|
1252
1676
|
}, "strip", zod.ZodTypeAny, {
|
|
1253
1677
|
description: string | null;
|
|
1254
1678
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1679
|
+
id: string;
|
|
1255
1680
|
name: string;
|
|
1256
1681
|
coverImageUrl: string | null;
|
|
1682
|
+
thumbnailUrl: string | null;
|
|
1683
|
+
startDateTime: string;
|
|
1684
|
+
endDateTime: string | null;
|
|
1685
|
+
participantCount: number;
|
|
1257
1686
|
maxGuests: number;
|
|
1258
|
-
dateTime: string;
|
|
1259
1687
|
requestedFields: string[];
|
|
1260
|
-
id: string;
|
|
1261
1688
|
userId: string;
|
|
1262
|
-
participantCount: number;
|
|
1263
1689
|
createdAt: string;
|
|
1264
1690
|
updatedAt: string;
|
|
1265
1691
|
}, {
|
|
1266
1692
|
description: string | null;
|
|
1267
1693
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1694
|
+
id: string;
|
|
1268
1695
|
name: string;
|
|
1269
1696
|
coverImageUrl: string | null;
|
|
1697
|
+
thumbnailUrl: string | null;
|
|
1698
|
+
startDateTime: string;
|
|
1699
|
+
endDateTime: string | null;
|
|
1700
|
+
participantCount: number;
|
|
1270
1701
|
maxGuests: number;
|
|
1271
|
-
dateTime: string;
|
|
1272
1702
|
requestedFields: string[];
|
|
1273
|
-
id: string;
|
|
1274
1703
|
userId: string;
|
|
1275
|
-
participantCount: number;
|
|
1276
1704
|
createdAt: string;
|
|
1277
1705
|
updatedAt: string;
|
|
1278
1706
|
}>, "many">;
|
|
@@ -1300,9 +1728,11 @@ declare const contract: {
|
|
|
1300
1728
|
id: zod.ZodString;
|
|
1301
1729
|
name: zod.ZodString;
|
|
1302
1730
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1731
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1303
1732
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1304
1733
|
maxGuests: zod.ZodNumber;
|
|
1305
|
-
|
|
1734
|
+
startDateTime: zod.ZodString;
|
|
1735
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1306
1736
|
userId: zod.ZodString;
|
|
1307
1737
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1308
1738
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1330,14 +1760,16 @@ declare const contract: {
|
|
|
1330
1760
|
}, "strip", zod.ZodTypeAny, {
|
|
1331
1761
|
description: string | null;
|
|
1332
1762
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1763
|
+
id: string;
|
|
1333
1764
|
name: string;
|
|
1334
1765
|
coverImageUrl: string | null;
|
|
1766
|
+
thumbnailUrl: string | null;
|
|
1767
|
+
startDateTime: string;
|
|
1768
|
+
endDateTime: string | null;
|
|
1769
|
+
participantCount: number;
|
|
1335
1770
|
maxGuests: number;
|
|
1336
|
-
dateTime: string;
|
|
1337
1771
|
requestedFields: string[];
|
|
1338
|
-
id: string;
|
|
1339
1772
|
userId: string;
|
|
1340
|
-
participantCount: number;
|
|
1341
1773
|
createdAt: string;
|
|
1342
1774
|
updatedAt: string;
|
|
1343
1775
|
participants: {
|
|
@@ -1350,14 +1782,16 @@ declare const contract: {
|
|
|
1350
1782
|
}, {
|
|
1351
1783
|
description: string | null;
|
|
1352
1784
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1785
|
+
id: string;
|
|
1353
1786
|
name: string;
|
|
1354
1787
|
coverImageUrl: string | null;
|
|
1788
|
+
thumbnailUrl: string | null;
|
|
1789
|
+
startDateTime: string;
|
|
1790
|
+
endDateTime: string | null;
|
|
1791
|
+
participantCount: number;
|
|
1355
1792
|
maxGuests: number;
|
|
1356
|
-
dateTime: string;
|
|
1357
1793
|
requestedFields: string[];
|
|
1358
|
-
id: string;
|
|
1359
1794
|
userId: string;
|
|
1360
|
-
participantCount: number;
|
|
1361
1795
|
createdAt: string;
|
|
1362
1796
|
updatedAt: string;
|
|
1363
1797
|
participants: {
|
|
@@ -1402,25 +1836,28 @@ declare const contract: {
|
|
|
1402
1836
|
method: "PATCH";
|
|
1403
1837
|
body: zod.ZodObject<{
|
|
1404
1838
|
name: zod.ZodOptional<zod.ZodString>;
|
|
1405
|
-
|
|
1839
|
+
coverImageId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1406
1840
|
description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1407
1841
|
maxGuests: zod.ZodOptional<zod.ZodNumber>;
|
|
1408
|
-
|
|
1842
|
+
startDateTime: zod.ZodOptional<zod.ZodString>;
|
|
1843
|
+
endDateTime: zod.ZodOptional<zod.ZodString>;
|
|
1409
1844
|
status: zod.ZodOptional<zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>>;
|
|
1410
1845
|
}, "strip", zod.ZodTypeAny, {
|
|
1411
1846
|
description?: string | null | undefined;
|
|
1412
1847
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
1413
1848
|
name?: string | undefined;
|
|
1414
|
-
|
|
1849
|
+
startDateTime?: string | undefined;
|
|
1850
|
+
endDateTime?: string | undefined;
|
|
1851
|
+
coverImageId?: string | null | undefined;
|
|
1415
1852
|
maxGuests?: number | undefined;
|
|
1416
|
-
dateTime?: string | undefined;
|
|
1417
1853
|
}, {
|
|
1418
1854
|
description?: string | null | undefined;
|
|
1419
1855
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
1420
1856
|
name?: string | undefined;
|
|
1421
|
-
|
|
1857
|
+
startDateTime?: string | undefined;
|
|
1858
|
+
endDateTime?: string | undefined;
|
|
1859
|
+
coverImageId?: string | null | undefined;
|
|
1422
1860
|
maxGuests?: number | undefined;
|
|
1423
|
-
dateTime?: string | undefined;
|
|
1424
1861
|
}>;
|
|
1425
1862
|
path: "/v1/events/:id";
|
|
1426
1863
|
responses: {
|
|
@@ -1428,9 +1865,11 @@ declare const contract: {
|
|
|
1428
1865
|
id: zod.ZodString;
|
|
1429
1866
|
name: zod.ZodString;
|
|
1430
1867
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1868
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1431
1869
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1432
1870
|
maxGuests: zod.ZodNumber;
|
|
1433
|
-
|
|
1871
|
+
startDateTime: zod.ZodString;
|
|
1872
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1434
1873
|
userId: zod.ZodString;
|
|
1435
1874
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1436
1875
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1440,27 +1879,31 @@ declare const contract: {
|
|
|
1440
1879
|
}, "strip", zod.ZodTypeAny, {
|
|
1441
1880
|
description: string | null;
|
|
1442
1881
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1882
|
+
id: string;
|
|
1443
1883
|
name: string;
|
|
1444
1884
|
coverImageUrl: string | null;
|
|
1885
|
+
thumbnailUrl: string | null;
|
|
1886
|
+
startDateTime: string;
|
|
1887
|
+
endDateTime: string | null;
|
|
1888
|
+
participantCount: number;
|
|
1445
1889
|
maxGuests: number;
|
|
1446
|
-
dateTime: string;
|
|
1447
1890
|
requestedFields: string[];
|
|
1448
|
-
id: string;
|
|
1449
1891
|
userId: string;
|
|
1450
|
-
participantCount: number;
|
|
1451
1892
|
createdAt: string;
|
|
1452
1893
|
updatedAt: string;
|
|
1453
1894
|
}, {
|
|
1454
1895
|
description: string | null;
|
|
1455
1896
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1897
|
+
id: string;
|
|
1456
1898
|
name: string;
|
|
1457
1899
|
coverImageUrl: string | null;
|
|
1900
|
+
thumbnailUrl: string | null;
|
|
1901
|
+
startDateTime: string;
|
|
1902
|
+
endDateTime: string | null;
|
|
1903
|
+
participantCount: number;
|
|
1458
1904
|
maxGuests: number;
|
|
1459
|
-
dateTime: string;
|
|
1460
1905
|
requestedFields: string[];
|
|
1461
|
-
id: string;
|
|
1462
1906
|
userId: string;
|
|
1463
|
-
participantCount: number;
|
|
1464
1907
|
createdAt: string;
|
|
1465
1908
|
updatedAt: string;
|
|
1466
1909
|
}>;
|
|
@@ -1581,28 +2024,34 @@ declare const contract: {
|
|
|
1581
2024
|
id: zod.ZodString;
|
|
1582
2025
|
name: zod.ZodString;
|
|
1583
2026
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
2027
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1584
2028
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1585
2029
|
maxGuests: zod.ZodNumber;
|
|
1586
|
-
|
|
2030
|
+
startDateTime: zod.ZodString;
|
|
2031
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1587
2032
|
currentGuests: zod.ZodNumber;
|
|
1588
2033
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
1589
2034
|
}, "strip", zod.ZodTypeAny, {
|
|
1590
2035
|
description: string | null;
|
|
1591
2036
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2037
|
+
id: string;
|
|
1592
2038
|
name: string;
|
|
1593
2039
|
coverImageUrl: string | null;
|
|
2040
|
+
thumbnailUrl: string | null;
|
|
2041
|
+
startDateTime: string;
|
|
2042
|
+
endDateTime: string | null;
|
|
1594
2043
|
maxGuests: number;
|
|
1595
|
-
dateTime: string;
|
|
1596
|
-
id: string;
|
|
1597
2044
|
currentGuests: number;
|
|
1598
2045
|
}, {
|
|
1599
2046
|
description: string | null;
|
|
1600
2047
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2048
|
+
id: string;
|
|
1601
2049
|
name: string;
|
|
1602
2050
|
coverImageUrl: string | null;
|
|
2051
|
+
thumbnailUrl: string | null;
|
|
2052
|
+
startDateTime: string;
|
|
2053
|
+
endDateTime: string | null;
|
|
1603
2054
|
maxGuests: number;
|
|
1604
|
-
dateTime: string;
|
|
1605
|
-
id: string;
|
|
1606
2055
|
currentGuests: number;
|
|
1607
2056
|
}>;
|
|
1608
2057
|
vpRequest: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
@@ -1611,11 +2060,13 @@ declare const contract: {
|
|
|
1611
2060
|
event: {
|
|
1612
2061
|
description: string | null;
|
|
1613
2062
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2063
|
+
id: string;
|
|
1614
2064
|
name: string;
|
|
1615
2065
|
coverImageUrl: string | null;
|
|
2066
|
+
thumbnailUrl: string | null;
|
|
2067
|
+
startDateTime: string;
|
|
2068
|
+
endDateTime: string | null;
|
|
1616
2069
|
maxGuests: number;
|
|
1617
|
-
dateTime: string;
|
|
1618
|
-
id: string;
|
|
1619
2070
|
currentGuests: number;
|
|
1620
2071
|
};
|
|
1621
2072
|
}, {
|
|
@@ -1623,11 +2074,13 @@ declare const contract: {
|
|
|
1623
2074
|
event: {
|
|
1624
2075
|
description: string | null;
|
|
1625
2076
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2077
|
+
id: string;
|
|
1626
2078
|
name: string;
|
|
1627
2079
|
coverImageUrl: string | null;
|
|
2080
|
+
thumbnailUrl: string | null;
|
|
2081
|
+
startDateTime: string;
|
|
2082
|
+
endDateTime: string | null;
|
|
1628
2083
|
maxGuests: number;
|
|
1629
|
-
dateTime: string;
|
|
1630
|
-
id: string;
|
|
1631
2084
|
currentGuests: number;
|
|
1632
2085
|
};
|
|
1633
2086
|
}>;
|
|
@@ -1650,9 +2103,11 @@ declare const contract: {
|
|
|
1650
2103
|
submit: {
|
|
1651
2104
|
metadata: {
|
|
1652
2105
|
openApiTags: string[];
|
|
1653
|
-
openApiSecurity:
|
|
2106
|
+
openApiSecurity: {
|
|
2107
|
+
bearerAuth: never[];
|
|
2108
|
+
}[];
|
|
1654
2109
|
};
|
|
1655
|
-
summary: "Submit VP for event check-in — issues participation VC on success
|
|
2110
|
+
summary: "Submit VP for event check-in — issues participation VC on success";
|
|
1656
2111
|
method: "POST";
|
|
1657
2112
|
body: zod.ZodObject<{
|
|
1658
2113
|
verifiablePresentation: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
@@ -1683,6 +2138,13 @@ declare const contract: {
|
|
|
1683
2138
|
message: string;
|
|
1684
2139
|
errors?: string[] | undefined;
|
|
1685
2140
|
}>;
|
|
2141
|
+
401: zod.ZodObject<{
|
|
2142
|
+
message: zod.ZodString;
|
|
2143
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2144
|
+
message: string;
|
|
2145
|
+
}, {
|
|
2146
|
+
message: string;
|
|
2147
|
+
}>;
|
|
1686
2148
|
404: zod.ZodObject<{
|
|
1687
2149
|
message: zod.ZodString;
|
|
1688
2150
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -1714,59 +2176,72 @@ declare const contract: {
|
|
|
1714
2176
|
id: zod.ZodString;
|
|
1715
2177
|
eventId: zod.ZodString;
|
|
1716
2178
|
checkedInAt: zod.ZodString;
|
|
2179
|
+
disclosedFields: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
1717
2180
|
event: zod.ZodObject<{
|
|
1718
2181
|
id: zod.ZodString;
|
|
1719
2182
|
name: zod.ZodString;
|
|
1720
2183
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
2184
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1721
2185
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1722
2186
|
maxGuests: zod.ZodNumber;
|
|
1723
|
-
|
|
2187
|
+
startDateTime: zod.ZodString;
|
|
2188
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1724
2189
|
currentGuests: zod.ZodNumber;
|
|
1725
2190
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
1726
2191
|
}, "strip", zod.ZodTypeAny, {
|
|
1727
2192
|
description: string | null;
|
|
1728
2193
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2194
|
+
id: string;
|
|
1729
2195
|
name: string;
|
|
1730
2196
|
coverImageUrl: string | null;
|
|
2197
|
+
thumbnailUrl: string | null;
|
|
2198
|
+
startDateTime: string;
|
|
2199
|
+
endDateTime: string | null;
|
|
1731
2200
|
maxGuests: number;
|
|
1732
|
-
dateTime: string;
|
|
1733
|
-
id: string;
|
|
1734
2201
|
currentGuests: number;
|
|
1735
2202
|
}, {
|
|
1736
2203
|
description: string | null;
|
|
1737
2204
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2205
|
+
id: string;
|
|
1738
2206
|
name: string;
|
|
1739
2207
|
coverImageUrl: string | null;
|
|
2208
|
+
thumbnailUrl: string | null;
|
|
2209
|
+
startDateTime: string;
|
|
2210
|
+
endDateTime: string | null;
|
|
1740
2211
|
maxGuests: number;
|
|
1741
|
-
dateTime: string;
|
|
1742
|
-
id: string;
|
|
1743
2212
|
currentGuests: number;
|
|
1744
2213
|
}>;
|
|
1745
2214
|
}, "strip", zod.ZodTypeAny, {
|
|
1746
2215
|
id: string;
|
|
2216
|
+
disclosedFields: Record<string, unknown>;
|
|
1747
2217
|
checkedInAt: string;
|
|
1748
2218
|
event: {
|
|
1749
2219
|
description: string | null;
|
|
1750
2220
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2221
|
+
id: string;
|
|
1751
2222
|
name: string;
|
|
1752
2223
|
coverImageUrl: string | null;
|
|
2224
|
+
thumbnailUrl: string | null;
|
|
2225
|
+
startDateTime: string;
|
|
2226
|
+
endDateTime: string | null;
|
|
1753
2227
|
maxGuests: number;
|
|
1754
|
-
dateTime: string;
|
|
1755
|
-
id: string;
|
|
1756
2228
|
currentGuests: number;
|
|
1757
2229
|
};
|
|
1758
2230
|
eventId: string;
|
|
1759
2231
|
}, {
|
|
1760
2232
|
id: string;
|
|
2233
|
+
disclosedFields: Record<string, unknown>;
|
|
1761
2234
|
checkedInAt: string;
|
|
1762
2235
|
event: {
|
|
1763
2236
|
description: string | null;
|
|
1764
2237
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2238
|
+
id: string;
|
|
1765
2239
|
name: string;
|
|
1766
2240
|
coverImageUrl: string | null;
|
|
2241
|
+
thumbnailUrl: string | null;
|
|
2242
|
+
startDateTime: string;
|
|
2243
|
+
endDateTime: string | null;
|
|
1767
2244
|
maxGuests: number;
|
|
1768
|
-
dateTime: string;
|
|
1769
|
-
id: string;
|
|
1770
2245
|
currentGuests: number;
|
|
1771
2246
|
};
|
|
1772
2247
|
eventId: string;
|
|
@@ -1834,8 +2309,146 @@ declare const contract: {
|
|
|
1834
2309
|
};
|
|
1835
2310
|
};
|
|
1836
2311
|
};
|
|
2312
|
+
uploads: {
|
|
2313
|
+
generatePresignedUrls: {
|
|
2314
|
+
metadata: {
|
|
2315
|
+
openApiTags: string[];
|
|
2316
|
+
openApiSecurity: {
|
|
2317
|
+
bearerAuth: never[];
|
|
2318
|
+
}[];
|
|
2319
|
+
};
|
|
2320
|
+
summary: "Generate pre-signed URLs for event image upload";
|
|
2321
|
+
method: "POST";
|
|
2322
|
+
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
2323
|
+
path: "/v1/uploads/urls";
|
|
2324
|
+
responses: {
|
|
2325
|
+
201: zod.ZodObject<{
|
|
2326
|
+
fileId: zod.ZodString;
|
|
2327
|
+
original: zod.ZodObject<{
|
|
2328
|
+
uploadUrl: zod.ZodString;
|
|
2329
|
+
key: zod.ZodString;
|
|
2330
|
+
publicUrl: zod.ZodString;
|
|
2331
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2332
|
+
uploadUrl: string;
|
|
2333
|
+
key: string;
|
|
2334
|
+
publicUrl: string;
|
|
2335
|
+
}, {
|
|
2336
|
+
uploadUrl: string;
|
|
2337
|
+
key: string;
|
|
2338
|
+
publicUrl: string;
|
|
2339
|
+
}>;
|
|
2340
|
+
resize: zod.ZodObject<{
|
|
2341
|
+
uploadUrl: zod.ZodString;
|
|
2342
|
+
key: zod.ZodString;
|
|
2343
|
+
publicUrl: zod.ZodString;
|
|
2344
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2345
|
+
uploadUrl: string;
|
|
2346
|
+
key: string;
|
|
2347
|
+
publicUrl: string;
|
|
2348
|
+
}, {
|
|
2349
|
+
uploadUrl: string;
|
|
2350
|
+
key: string;
|
|
2351
|
+
publicUrl: string;
|
|
2352
|
+
}>;
|
|
2353
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2354
|
+
fileId: string;
|
|
2355
|
+
original: {
|
|
2356
|
+
uploadUrl: string;
|
|
2357
|
+
key: string;
|
|
2358
|
+
publicUrl: string;
|
|
2359
|
+
};
|
|
2360
|
+
resize: {
|
|
2361
|
+
uploadUrl: string;
|
|
2362
|
+
key: string;
|
|
2363
|
+
publicUrl: string;
|
|
2364
|
+
};
|
|
2365
|
+
}, {
|
|
2366
|
+
fileId: string;
|
|
2367
|
+
original: {
|
|
2368
|
+
uploadUrl: string;
|
|
2369
|
+
key: string;
|
|
2370
|
+
publicUrl: string;
|
|
2371
|
+
};
|
|
2372
|
+
resize: {
|
|
2373
|
+
uploadUrl: string;
|
|
2374
|
+
key: string;
|
|
2375
|
+
publicUrl: string;
|
|
2376
|
+
};
|
|
2377
|
+
}>;
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
tracking: {
|
|
2382
|
+
scan: {
|
|
2383
|
+
metadata: {
|
|
2384
|
+
openApiTags: string[];
|
|
2385
|
+
openApiSecurity: {
|
|
2386
|
+
bearerAuth: never[];
|
|
2387
|
+
}[];
|
|
2388
|
+
};
|
|
2389
|
+
summary: "Record a successful NFC scan event";
|
|
2390
|
+
method: "POST";
|
|
2391
|
+
body: zod.ZodObject<{
|
|
2392
|
+
platform: zod.ZodString;
|
|
2393
|
+
appVersion: zod.ZodOptional<zod.ZodString>;
|
|
2394
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2395
|
+
platform: string;
|
|
2396
|
+
appVersion?: string | undefined;
|
|
2397
|
+
}, {
|
|
2398
|
+
platform: string;
|
|
2399
|
+
appVersion?: string | undefined;
|
|
2400
|
+
}>;
|
|
2401
|
+
path: "/v1/tracking/scan";
|
|
2402
|
+
responses: {
|
|
2403
|
+
201: zod.ZodObject<{
|
|
2404
|
+
id: zod.ZodString;
|
|
2405
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2406
|
+
id: string;
|
|
2407
|
+
}, {
|
|
2408
|
+
id: string;
|
|
2409
|
+
}>;
|
|
2410
|
+
401: zod.ZodObject<{
|
|
2411
|
+
message: zod.ZodString;
|
|
2412
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2413
|
+
message: string;
|
|
2414
|
+
}, {
|
|
2415
|
+
message: string;
|
|
2416
|
+
}>;
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
config: {
|
|
2421
|
+
appConfig: {
|
|
2422
|
+
metadata: {
|
|
2423
|
+
openApiTags: string[];
|
|
2424
|
+
openApiSecurity: never[];
|
|
2425
|
+
};
|
|
2426
|
+
summary: "Get app configuration (public)";
|
|
2427
|
+
method: "GET";
|
|
2428
|
+
path: "/v1/config/app";
|
|
2429
|
+
responses: {
|
|
2430
|
+
200: zod.ZodObject<{
|
|
2431
|
+
demoMode: zod.ZodObject<{
|
|
2432
|
+
enabled: zod.ZodBoolean;
|
|
2433
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2434
|
+
enabled: boolean;
|
|
2435
|
+
}, {
|
|
2436
|
+
enabled: boolean;
|
|
2437
|
+
}>;
|
|
2438
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2439
|
+
demoMode: {
|
|
2440
|
+
enabled: boolean;
|
|
2441
|
+
};
|
|
2442
|
+
}, {
|
|
2443
|
+
demoMode: {
|
|
2444
|
+
enabled: boolean;
|
|
2445
|
+
};
|
|
2446
|
+
}>;
|
|
2447
|
+
};
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
1837
2450
|
};
|
|
1838
2451
|
};
|
|
1839
2452
|
type Contract = typeof contract;
|
|
1840
2453
|
|
|
1841
|
-
export { AuthScheme, CheckinInfoResponseSchema, CheckinSubmitRequestSchema, CheckinSubmitResponseSchema, type Contract, CreateEventSchema, EventDetailResponseSchema, EventPublicInfoSchema, EventResponseSchema, ParticipantSchema, SUPPORTED_FIELDS, type SupportedField, TurnCredentialsResponseSchema, UpdateEventSchema, VerifyRequestSchema, VerifyResponseSchema, authContract, buildAuthMessage, checkinContract, contract, eventsContract, turnContract };
|
|
2454
|
+
export { AuthScheme, CheckinInfoResponseSchema, CheckinSubmitRequestSchema, CheckinSubmitResponseSchema, type Contract, CreateEventSchema, EventDetailResponseSchema, EventDiscoverSchema, EventPublicInfoSchema, EventResponseSchema, ParticipantSchema, SUPPORTED_FIELDS, type SupportedField, TrackScanRequestSchema, TrackScanResponseSchema, TurnCredentialsResponseSchema, UpdateEventSchema, UploadPresignedUrlSchema, VerifyRequestSchema, VerifyResponseSchema, appConfigContract, authContract, buildAuthMessage, checkinContract, contract, eventsContract, trackingContract, turnContract, uploadsContract };
|