@1mtx/did-api-contract 1.0.0 → 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 +932 -151
- package/dist/index.d.ts +932 -151
- package/dist/index.js +171 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +163 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare const authContract: {
|
|
|
28
28
|
verify: {
|
|
29
29
|
metadata: {
|
|
30
30
|
openApiTags: string[];
|
|
31
|
+
openApiSecurity: never[];
|
|
31
32
|
};
|
|
32
33
|
summary: "Verify DID signature and receive JWT";
|
|
33
34
|
description: string;
|
|
@@ -81,51 +82,57 @@ declare const authContract: {
|
|
|
81
82
|
*/
|
|
82
83
|
declare function buildAuthMessage(did: string, scheme?: AuthScheme, domain?: string, issuedAt?: string): string;
|
|
83
84
|
|
|
84
|
-
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"];
|
|
85
86
|
type SupportedField = (typeof SUPPORTED_FIELDS)[number];
|
|
86
87
|
declare const CreateEventSchema: z.ZodObject<{
|
|
87
88
|
name: z.ZodString;
|
|
88
|
-
|
|
89
|
+
coverImageId: z.ZodOptional<z.ZodString>;
|
|
89
90
|
description: z.ZodOptional<z.ZodString>;
|
|
90
91
|
maxGuests: z.ZodNumber;
|
|
91
|
-
|
|
92
|
-
|
|
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">;
|
|
93
95
|
}, "strip", z.ZodTypeAny, {
|
|
94
96
|
name: string;
|
|
97
|
+
startDateTime: string;
|
|
98
|
+
endDateTime: string;
|
|
95
99
|
maxGuests: number;
|
|
96
|
-
|
|
97
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "address" | "idNumber")[];
|
|
100
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
98
101
|
description?: string | undefined;
|
|
99
|
-
|
|
102
|
+
coverImageId?: string | undefined;
|
|
100
103
|
}, {
|
|
101
104
|
name: string;
|
|
105
|
+
startDateTime: string;
|
|
106
|
+
endDateTime: string;
|
|
102
107
|
maxGuests: number;
|
|
103
|
-
|
|
104
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "address" | "idNumber")[];
|
|
108
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
105
109
|
description?: string | undefined;
|
|
106
|
-
|
|
110
|
+
coverImageId?: string | undefined;
|
|
107
111
|
}>;
|
|
108
112
|
declare const UpdateEventSchema: z.ZodObject<{
|
|
109
113
|
name: z.ZodOptional<z.ZodString>;
|
|
110
|
-
|
|
114
|
+
coverImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
115
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
116
|
maxGuests: z.ZodOptional<z.ZodNumber>;
|
|
113
|
-
|
|
117
|
+
startDateTime: z.ZodOptional<z.ZodString>;
|
|
118
|
+
endDateTime: z.ZodOptional<z.ZodString>;
|
|
114
119
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>>;
|
|
115
120
|
}, "strip", z.ZodTypeAny, {
|
|
116
121
|
description?: string | null | undefined;
|
|
117
122
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
118
123
|
name?: string | undefined;
|
|
119
|
-
|
|
124
|
+
startDateTime?: string | undefined;
|
|
125
|
+
endDateTime?: string | undefined;
|
|
126
|
+
coverImageId?: string | null | undefined;
|
|
120
127
|
maxGuests?: number | undefined;
|
|
121
|
-
dateTime?: string | undefined;
|
|
122
128
|
}, {
|
|
123
129
|
description?: string | null | undefined;
|
|
124
130
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
125
131
|
name?: string | undefined;
|
|
126
|
-
|
|
132
|
+
startDateTime?: string | undefined;
|
|
133
|
+
endDateTime?: string | undefined;
|
|
134
|
+
coverImageId?: string | null | undefined;
|
|
127
135
|
maxGuests?: number | undefined;
|
|
128
|
-
dateTime?: string | undefined;
|
|
129
136
|
}>;
|
|
130
137
|
declare const ParticipantSchema: z.ZodObject<{
|
|
131
138
|
id: z.ZodString;
|
|
@@ -147,9 +154,11 @@ declare const EventResponseSchema: z.ZodObject<{
|
|
|
147
154
|
id: z.ZodString;
|
|
148
155
|
name: z.ZodString;
|
|
149
156
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
157
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
150
158
|
description: z.ZodNullable<z.ZodString>;
|
|
151
159
|
maxGuests: z.ZodNumber;
|
|
152
|
-
|
|
160
|
+
startDateTime: z.ZodString;
|
|
161
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
153
162
|
userId: z.ZodString;
|
|
154
163
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
155
164
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -159,27 +168,31 @@ declare const EventResponseSchema: z.ZodObject<{
|
|
|
159
168
|
}, "strip", z.ZodTypeAny, {
|
|
160
169
|
description: string | null;
|
|
161
170
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
171
|
+
id: string;
|
|
162
172
|
name: string;
|
|
163
173
|
coverImageUrl: string | null;
|
|
174
|
+
thumbnailUrl: string | null;
|
|
175
|
+
startDateTime: string;
|
|
176
|
+
endDateTime: string | null;
|
|
177
|
+
participantCount: number;
|
|
164
178
|
maxGuests: number;
|
|
165
|
-
dateTime: string;
|
|
166
179
|
requestedFields: string[];
|
|
167
|
-
id: string;
|
|
168
180
|
userId: string;
|
|
169
|
-
participantCount: number;
|
|
170
181
|
createdAt: string;
|
|
171
182
|
updatedAt: string;
|
|
172
183
|
}, {
|
|
173
184
|
description: string | null;
|
|
174
185
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
186
|
+
id: string;
|
|
175
187
|
name: string;
|
|
176
188
|
coverImageUrl: string | null;
|
|
189
|
+
thumbnailUrl: string | null;
|
|
190
|
+
startDateTime: string;
|
|
191
|
+
endDateTime: string | null;
|
|
192
|
+
participantCount: number;
|
|
177
193
|
maxGuests: number;
|
|
178
|
-
dateTime: string;
|
|
179
194
|
requestedFields: string[];
|
|
180
|
-
id: string;
|
|
181
195
|
userId: string;
|
|
182
|
-
participantCount: number;
|
|
183
196
|
createdAt: string;
|
|
184
197
|
updatedAt: string;
|
|
185
198
|
}>;
|
|
@@ -187,9 +200,11 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
187
200
|
id: z.ZodString;
|
|
188
201
|
name: z.ZodString;
|
|
189
202
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
203
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
190
204
|
description: z.ZodNullable<z.ZodString>;
|
|
191
205
|
maxGuests: z.ZodNumber;
|
|
192
|
-
|
|
206
|
+
startDateTime: z.ZodString;
|
|
207
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
193
208
|
userId: z.ZodString;
|
|
194
209
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
195
210
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -217,14 +232,16 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
217
232
|
}, "strip", z.ZodTypeAny, {
|
|
218
233
|
description: string | null;
|
|
219
234
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
235
|
+
id: string;
|
|
220
236
|
name: string;
|
|
221
237
|
coverImageUrl: string | null;
|
|
238
|
+
thumbnailUrl: string | null;
|
|
239
|
+
startDateTime: string;
|
|
240
|
+
endDateTime: string | null;
|
|
241
|
+
participantCount: number;
|
|
222
242
|
maxGuests: number;
|
|
223
|
-
dateTime: string;
|
|
224
243
|
requestedFields: string[];
|
|
225
|
-
id: string;
|
|
226
244
|
userId: string;
|
|
227
|
-
participantCount: number;
|
|
228
245
|
createdAt: string;
|
|
229
246
|
updatedAt: string;
|
|
230
247
|
participants: {
|
|
@@ -237,14 +254,16 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
237
254
|
}, {
|
|
238
255
|
description: string | null;
|
|
239
256
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
257
|
+
id: string;
|
|
240
258
|
name: string;
|
|
241
259
|
coverImageUrl: string | null;
|
|
260
|
+
thumbnailUrl: string | null;
|
|
261
|
+
startDateTime: string;
|
|
262
|
+
endDateTime: string | null;
|
|
263
|
+
participantCount: number;
|
|
242
264
|
maxGuests: number;
|
|
243
|
-
dateTime: string;
|
|
244
265
|
requestedFields: string[];
|
|
245
|
-
id: string;
|
|
246
266
|
userId: string;
|
|
247
|
-
participantCount: number;
|
|
248
267
|
createdAt: string;
|
|
249
268
|
updatedAt: string;
|
|
250
269
|
participants: {
|
|
@@ -255,7 +274,74 @@ declare const EventDetailResponseSchema: z.ZodObject<{
|
|
|
255
274
|
}[];
|
|
256
275
|
vpRequest: Record<string, unknown>;
|
|
257
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
|
+
}>;
|
|
258
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
|
+
};
|
|
259
345
|
create: {
|
|
260
346
|
metadata: {
|
|
261
347
|
openApiTags: string[];
|
|
@@ -267,25 +353,28 @@ declare const eventsContract: {
|
|
|
267
353
|
method: "POST";
|
|
268
354
|
body: z.ZodObject<{
|
|
269
355
|
name: z.ZodString;
|
|
270
|
-
|
|
356
|
+
coverImageId: z.ZodOptional<z.ZodString>;
|
|
271
357
|
description: z.ZodOptional<z.ZodString>;
|
|
272
358
|
maxGuests: z.ZodNumber;
|
|
273
|
-
|
|
274
|
-
|
|
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">;
|
|
275
362
|
}, "strip", z.ZodTypeAny, {
|
|
276
363
|
name: string;
|
|
364
|
+
startDateTime: string;
|
|
365
|
+
endDateTime: string;
|
|
277
366
|
maxGuests: number;
|
|
278
|
-
|
|
279
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "address" | "idNumber")[];
|
|
367
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
280
368
|
description?: string | undefined;
|
|
281
|
-
|
|
369
|
+
coverImageId?: string | undefined;
|
|
282
370
|
}, {
|
|
283
371
|
name: string;
|
|
372
|
+
startDateTime: string;
|
|
373
|
+
endDateTime: string;
|
|
284
374
|
maxGuests: number;
|
|
285
|
-
|
|
286
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "address" | "idNumber")[];
|
|
375
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
287
376
|
description?: string | undefined;
|
|
288
|
-
|
|
377
|
+
coverImageId?: string | undefined;
|
|
289
378
|
}>;
|
|
290
379
|
path: "/v1/events";
|
|
291
380
|
responses: {
|
|
@@ -293,9 +382,11 @@ declare const eventsContract: {
|
|
|
293
382
|
id: z.ZodString;
|
|
294
383
|
name: z.ZodString;
|
|
295
384
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
385
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
296
386
|
description: z.ZodNullable<z.ZodString>;
|
|
297
387
|
maxGuests: z.ZodNumber;
|
|
298
|
-
|
|
388
|
+
startDateTime: z.ZodString;
|
|
389
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
299
390
|
userId: z.ZodString;
|
|
300
391
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
301
392
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -305,27 +396,31 @@ declare const eventsContract: {
|
|
|
305
396
|
}, "strip", z.ZodTypeAny, {
|
|
306
397
|
description: string | null;
|
|
307
398
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
399
|
+
id: string;
|
|
308
400
|
name: string;
|
|
309
401
|
coverImageUrl: string | null;
|
|
402
|
+
thumbnailUrl: string | null;
|
|
403
|
+
startDateTime: string;
|
|
404
|
+
endDateTime: string | null;
|
|
405
|
+
participantCount: number;
|
|
310
406
|
maxGuests: number;
|
|
311
|
-
dateTime: string;
|
|
312
407
|
requestedFields: string[];
|
|
313
|
-
id: string;
|
|
314
408
|
userId: string;
|
|
315
|
-
participantCount: number;
|
|
316
409
|
createdAt: string;
|
|
317
410
|
updatedAt: string;
|
|
318
411
|
}, {
|
|
319
412
|
description: string | null;
|
|
320
413
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
414
|
+
id: string;
|
|
321
415
|
name: string;
|
|
322
416
|
coverImageUrl: string | null;
|
|
417
|
+
thumbnailUrl: string | null;
|
|
418
|
+
startDateTime: string;
|
|
419
|
+
endDateTime: string | null;
|
|
420
|
+
participantCount: number;
|
|
323
421
|
maxGuests: number;
|
|
324
|
-
dateTime: string;
|
|
325
422
|
requestedFields: string[];
|
|
326
|
-
id: string;
|
|
327
423
|
userId: string;
|
|
328
|
-
participantCount: number;
|
|
329
424
|
createdAt: string;
|
|
330
425
|
updatedAt: string;
|
|
331
426
|
}>;
|
|
@@ -360,9 +455,11 @@ declare const eventsContract: {
|
|
|
360
455
|
id: z.ZodString;
|
|
361
456
|
name: z.ZodString;
|
|
362
457
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
458
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
363
459
|
description: z.ZodNullable<z.ZodString>;
|
|
364
460
|
maxGuests: z.ZodNumber;
|
|
365
|
-
|
|
461
|
+
startDateTime: z.ZodString;
|
|
462
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
366
463
|
userId: z.ZodString;
|
|
367
464
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
368
465
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -372,27 +469,31 @@ declare const eventsContract: {
|
|
|
372
469
|
}, "strip", z.ZodTypeAny, {
|
|
373
470
|
description: string | null;
|
|
374
471
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
472
|
+
id: string;
|
|
375
473
|
name: string;
|
|
376
474
|
coverImageUrl: string | null;
|
|
475
|
+
thumbnailUrl: string | null;
|
|
476
|
+
startDateTime: string;
|
|
477
|
+
endDateTime: string | null;
|
|
478
|
+
participantCount: number;
|
|
377
479
|
maxGuests: number;
|
|
378
|
-
dateTime: string;
|
|
379
480
|
requestedFields: string[];
|
|
380
|
-
id: string;
|
|
381
481
|
userId: string;
|
|
382
|
-
participantCount: number;
|
|
383
482
|
createdAt: string;
|
|
384
483
|
updatedAt: string;
|
|
385
484
|
}, {
|
|
386
485
|
description: string | null;
|
|
387
486
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
487
|
+
id: string;
|
|
388
488
|
name: string;
|
|
389
489
|
coverImageUrl: string | null;
|
|
490
|
+
thumbnailUrl: string | null;
|
|
491
|
+
startDateTime: string;
|
|
492
|
+
endDateTime: string | null;
|
|
493
|
+
participantCount: number;
|
|
390
494
|
maxGuests: number;
|
|
391
|
-
dateTime: string;
|
|
392
495
|
requestedFields: string[];
|
|
393
|
-
id: string;
|
|
394
496
|
userId: string;
|
|
395
|
-
participantCount: number;
|
|
396
497
|
createdAt: string;
|
|
397
498
|
updatedAt: string;
|
|
398
499
|
}>, "many">;
|
|
@@ -420,9 +521,11 @@ declare const eventsContract: {
|
|
|
420
521
|
id: z.ZodString;
|
|
421
522
|
name: z.ZodString;
|
|
422
523
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
524
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
423
525
|
description: z.ZodNullable<z.ZodString>;
|
|
424
526
|
maxGuests: z.ZodNumber;
|
|
425
|
-
|
|
527
|
+
startDateTime: z.ZodString;
|
|
528
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
426
529
|
userId: z.ZodString;
|
|
427
530
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
428
531
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -450,14 +553,16 @@ declare const eventsContract: {
|
|
|
450
553
|
}, "strip", z.ZodTypeAny, {
|
|
451
554
|
description: string | null;
|
|
452
555
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
556
|
+
id: string;
|
|
453
557
|
name: string;
|
|
454
558
|
coverImageUrl: string | null;
|
|
559
|
+
thumbnailUrl: string | null;
|
|
560
|
+
startDateTime: string;
|
|
561
|
+
endDateTime: string | null;
|
|
562
|
+
participantCount: number;
|
|
455
563
|
maxGuests: number;
|
|
456
|
-
dateTime: string;
|
|
457
564
|
requestedFields: string[];
|
|
458
|
-
id: string;
|
|
459
565
|
userId: string;
|
|
460
|
-
participantCount: number;
|
|
461
566
|
createdAt: string;
|
|
462
567
|
updatedAt: string;
|
|
463
568
|
participants: {
|
|
@@ -470,14 +575,16 @@ declare const eventsContract: {
|
|
|
470
575
|
}, {
|
|
471
576
|
description: string | null;
|
|
472
577
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
578
|
+
id: string;
|
|
473
579
|
name: string;
|
|
474
580
|
coverImageUrl: string | null;
|
|
581
|
+
thumbnailUrl: string | null;
|
|
582
|
+
startDateTime: string;
|
|
583
|
+
endDateTime: string | null;
|
|
584
|
+
participantCount: number;
|
|
475
585
|
maxGuests: number;
|
|
476
|
-
dateTime: string;
|
|
477
586
|
requestedFields: string[];
|
|
478
|
-
id: string;
|
|
479
587
|
userId: string;
|
|
480
|
-
participantCount: number;
|
|
481
588
|
createdAt: string;
|
|
482
589
|
updatedAt: string;
|
|
483
590
|
participants: {
|
|
@@ -522,25 +629,28 @@ declare const eventsContract: {
|
|
|
522
629
|
method: "PATCH";
|
|
523
630
|
body: z.ZodObject<{
|
|
524
631
|
name: z.ZodOptional<z.ZodString>;
|
|
525
|
-
|
|
632
|
+
coverImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
633
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
527
634
|
maxGuests: z.ZodOptional<z.ZodNumber>;
|
|
528
|
-
|
|
635
|
+
startDateTime: z.ZodOptional<z.ZodString>;
|
|
636
|
+
endDateTime: z.ZodOptional<z.ZodString>;
|
|
529
637
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>>;
|
|
530
638
|
}, "strip", z.ZodTypeAny, {
|
|
531
639
|
description?: string | null | undefined;
|
|
532
640
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
533
641
|
name?: string | undefined;
|
|
534
|
-
|
|
642
|
+
startDateTime?: string | undefined;
|
|
643
|
+
endDateTime?: string | undefined;
|
|
644
|
+
coverImageId?: string | null | undefined;
|
|
535
645
|
maxGuests?: number | undefined;
|
|
536
|
-
dateTime?: string | undefined;
|
|
537
646
|
}, {
|
|
538
647
|
description?: string | null | undefined;
|
|
539
648
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
540
649
|
name?: string | undefined;
|
|
541
|
-
|
|
650
|
+
startDateTime?: string | undefined;
|
|
651
|
+
endDateTime?: string | undefined;
|
|
652
|
+
coverImageId?: string | null | undefined;
|
|
542
653
|
maxGuests?: number | undefined;
|
|
543
|
-
dateTime?: string | undefined;
|
|
544
654
|
}>;
|
|
545
655
|
path: "/v1/events/:id";
|
|
546
656
|
responses: {
|
|
@@ -548,9 +658,11 @@ declare const eventsContract: {
|
|
|
548
658
|
id: z.ZodString;
|
|
549
659
|
name: z.ZodString;
|
|
550
660
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
661
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
551
662
|
description: z.ZodNullable<z.ZodString>;
|
|
552
663
|
maxGuests: z.ZodNumber;
|
|
553
|
-
|
|
664
|
+
startDateTime: z.ZodString;
|
|
665
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
554
666
|
userId: z.ZodString;
|
|
555
667
|
requestedFields: z.ZodArray<z.ZodString, "many">;
|
|
556
668
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -560,27 +672,31 @@ declare const eventsContract: {
|
|
|
560
672
|
}, "strip", z.ZodTypeAny, {
|
|
561
673
|
description: string | null;
|
|
562
674
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
675
|
+
id: string;
|
|
563
676
|
name: string;
|
|
564
677
|
coverImageUrl: string | null;
|
|
678
|
+
thumbnailUrl: string | null;
|
|
679
|
+
startDateTime: string;
|
|
680
|
+
endDateTime: string | null;
|
|
681
|
+
participantCount: number;
|
|
565
682
|
maxGuests: number;
|
|
566
|
-
dateTime: string;
|
|
567
683
|
requestedFields: string[];
|
|
568
|
-
id: string;
|
|
569
684
|
userId: string;
|
|
570
|
-
participantCount: number;
|
|
571
685
|
createdAt: string;
|
|
572
686
|
updatedAt: string;
|
|
573
687
|
}, {
|
|
574
688
|
description: string | null;
|
|
575
689
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
690
|
+
id: string;
|
|
576
691
|
name: string;
|
|
577
692
|
coverImageUrl: string | null;
|
|
693
|
+
thumbnailUrl: string | null;
|
|
694
|
+
startDateTime: string;
|
|
695
|
+
endDateTime: string | null;
|
|
696
|
+
participantCount: number;
|
|
578
697
|
maxGuests: number;
|
|
579
|
-
dateTime: string;
|
|
580
698
|
requestedFields: string[];
|
|
581
|
-
id: string;
|
|
582
699
|
userId: string;
|
|
583
|
-
participantCount: number;
|
|
584
700
|
createdAt: string;
|
|
585
701
|
updatedAt: string;
|
|
586
702
|
}>;
|
|
@@ -691,28 +807,34 @@ declare const EventPublicInfoSchema: z.ZodObject<{
|
|
|
691
807
|
id: z.ZodString;
|
|
692
808
|
name: z.ZodString;
|
|
693
809
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
810
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
694
811
|
description: z.ZodNullable<z.ZodString>;
|
|
695
812
|
maxGuests: z.ZodNumber;
|
|
696
|
-
|
|
813
|
+
startDateTime: z.ZodString;
|
|
814
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
697
815
|
currentGuests: z.ZodNumber;
|
|
698
816
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
699
817
|
}, "strip", z.ZodTypeAny, {
|
|
700
818
|
description: string | null;
|
|
701
819
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
820
|
+
id: string;
|
|
702
821
|
name: string;
|
|
703
822
|
coverImageUrl: string | null;
|
|
823
|
+
thumbnailUrl: string | null;
|
|
824
|
+
startDateTime: string;
|
|
825
|
+
endDateTime: string | null;
|
|
704
826
|
maxGuests: number;
|
|
705
|
-
dateTime: string;
|
|
706
|
-
id: string;
|
|
707
827
|
currentGuests: number;
|
|
708
828
|
}, {
|
|
709
829
|
description: string | null;
|
|
710
830
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
831
|
+
id: string;
|
|
711
832
|
name: string;
|
|
712
833
|
coverImageUrl: string | null;
|
|
834
|
+
thumbnailUrl: string | null;
|
|
835
|
+
startDateTime: string;
|
|
836
|
+
endDateTime: string | null;
|
|
713
837
|
maxGuests: number;
|
|
714
|
-
dateTime: string;
|
|
715
|
-
id: string;
|
|
716
838
|
currentGuests: number;
|
|
717
839
|
}>;
|
|
718
840
|
declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
@@ -720,28 +842,34 @@ declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
|
720
842
|
id: z.ZodString;
|
|
721
843
|
name: z.ZodString;
|
|
722
844
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
845
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
723
846
|
description: z.ZodNullable<z.ZodString>;
|
|
724
847
|
maxGuests: z.ZodNumber;
|
|
725
|
-
|
|
848
|
+
startDateTime: z.ZodString;
|
|
849
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
726
850
|
currentGuests: z.ZodNumber;
|
|
727
851
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
728
852
|
}, "strip", z.ZodTypeAny, {
|
|
729
853
|
description: string | null;
|
|
730
854
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
855
|
+
id: string;
|
|
731
856
|
name: string;
|
|
732
857
|
coverImageUrl: string | null;
|
|
858
|
+
thumbnailUrl: string | null;
|
|
859
|
+
startDateTime: string;
|
|
860
|
+
endDateTime: string | null;
|
|
733
861
|
maxGuests: number;
|
|
734
|
-
dateTime: string;
|
|
735
|
-
id: string;
|
|
736
862
|
currentGuests: number;
|
|
737
863
|
}, {
|
|
738
864
|
description: string | null;
|
|
739
865
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
866
|
+
id: string;
|
|
740
867
|
name: string;
|
|
741
868
|
coverImageUrl: string | null;
|
|
869
|
+
thumbnailUrl: string | null;
|
|
870
|
+
startDateTime: string;
|
|
871
|
+
endDateTime: string | null;
|
|
742
872
|
maxGuests: number;
|
|
743
|
-
dateTime: string;
|
|
744
|
-
id: string;
|
|
745
873
|
currentGuests: number;
|
|
746
874
|
}>;
|
|
747
875
|
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -750,11 +878,13 @@ declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
|
750
878
|
event: {
|
|
751
879
|
description: string | null;
|
|
752
880
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
881
|
+
id: string;
|
|
753
882
|
name: string;
|
|
754
883
|
coverImageUrl: string | null;
|
|
884
|
+
thumbnailUrl: string | null;
|
|
885
|
+
startDateTime: string;
|
|
886
|
+
endDateTime: string | null;
|
|
755
887
|
maxGuests: number;
|
|
756
|
-
dateTime: string;
|
|
757
|
-
id: string;
|
|
758
888
|
currentGuests: number;
|
|
759
889
|
};
|
|
760
890
|
}, {
|
|
@@ -762,11 +892,13 @@ declare const CheckinInfoResponseSchema: z.ZodObject<{
|
|
|
762
892
|
event: {
|
|
763
893
|
description: string | null;
|
|
764
894
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
895
|
+
id: string;
|
|
765
896
|
name: string;
|
|
766
897
|
coverImageUrl: string | null;
|
|
898
|
+
thumbnailUrl: string | null;
|
|
899
|
+
startDateTime: string;
|
|
900
|
+
endDateTime: string | null;
|
|
767
901
|
maxGuests: number;
|
|
768
|
-
dateTime: string;
|
|
769
|
-
id: string;
|
|
770
902
|
currentGuests: number;
|
|
771
903
|
};
|
|
772
904
|
}>;
|
|
@@ -791,6 +923,7 @@ declare const checkinContract: {
|
|
|
791
923
|
info: {
|
|
792
924
|
metadata: {
|
|
793
925
|
openApiTags: string[];
|
|
926
|
+
openApiSecurity: never[];
|
|
794
927
|
};
|
|
795
928
|
summary: "Get event info and VP request for check-in (public)";
|
|
796
929
|
method: "GET";
|
|
@@ -801,28 +934,34 @@ declare const checkinContract: {
|
|
|
801
934
|
id: z.ZodString;
|
|
802
935
|
name: z.ZodString;
|
|
803
936
|
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
937
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
804
938
|
description: z.ZodNullable<z.ZodString>;
|
|
805
939
|
maxGuests: z.ZodNumber;
|
|
806
|
-
|
|
940
|
+
startDateTime: z.ZodString;
|
|
941
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
807
942
|
currentGuests: z.ZodNumber;
|
|
808
943
|
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
809
944
|
}, "strip", z.ZodTypeAny, {
|
|
810
945
|
description: string | null;
|
|
811
946
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
947
|
+
id: string;
|
|
812
948
|
name: string;
|
|
813
949
|
coverImageUrl: string | null;
|
|
950
|
+
thumbnailUrl: string | null;
|
|
951
|
+
startDateTime: string;
|
|
952
|
+
endDateTime: string | null;
|
|
814
953
|
maxGuests: number;
|
|
815
|
-
dateTime: string;
|
|
816
|
-
id: string;
|
|
817
954
|
currentGuests: number;
|
|
818
955
|
}, {
|
|
819
956
|
description: string | null;
|
|
820
957
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
958
|
+
id: string;
|
|
821
959
|
name: string;
|
|
822
960
|
coverImageUrl: string | null;
|
|
961
|
+
thumbnailUrl: string | null;
|
|
962
|
+
startDateTime: string;
|
|
963
|
+
endDateTime: string | null;
|
|
823
964
|
maxGuests: number;
|
|
824
|
-
dateTime: string;
|
|
825
|
-
id: string;
|
|
826
965
|
currentGuests: number;
|
|
827
966
|
}>;
|
|
828
967
|
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -831,11 +970,13 @@ declare const checkinContract: {
|
|
|
831
970
|
event: {
|
|
832
971
|
description: string | null;
|
|
833
972
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
973
|
+
id: string;
|
|
834
974
|
name: string;
|
|
835
975
|
coverImageUrl: string | null;
|
|
976
|
+
thumbnailUrl: string | null;
|
|
977
|
+
startDateTime: string;
|
|
978
|
+
endDateTime: string | null;
|
|
836
979
|
maxGuests: number;
|
|
837
|
-
dateTime: string;
|
|
838
|
-
id: string;
|
|
839
980
|
currentGuests: number;
|
|
840
981
|
};
|
|
841
982
|
}, {
|
|
@@ -843,11 +984,13 @@ declare const checkinContract: {
|
|
|
843
984
|
event: {
|
|
844
985
|
description: string | null;
|
|
845
986
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
987
|
+
id: string;
|
|
846
988
|
name: string;
|
|
847
989
|
coverImageUrl: string | null;
|
|
990
|
+
thumbnailUrl: string | null;
|
|
991
|
+
startDateTime: string;
|
|
992
|
+
endDateTime: string | null;
|
|
848
993
|
maxGuests: number;
|
|
849
|
-
dateTime: string;
|
|
850
|
-
id: string;
|
|
851
994
|
currentGuests: number;
|
|
852
995
|
};
|
|
853
996
|
}>;
|
|
@@ -870,8 +1013,11 @@ declare const checkinContract: {
|
|
|
870
1013
|
submit: {
|
|
871
1014
|
metadata: {
|
|
872
1015
|
openApiTags: string[];
|
|
1016
|
+
openApiSecurity: {
|
|
1017
|
+
bearerAuth: never[];
|
|
1018
|
+
}[];
|
|
873
1019
|
};
|
|
874
|
-
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";
|
|
875
1021
|
method: "POST";
|
|
876
1022
|
body: z.ZodObject<{
|
|
877
1023
|
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -902,6 +1048,13 @@ declare const checkinContract: {
|
|
|
902
1048
|
message: string;
|
|
903
1049
|
errors?: string[] | undefined;
|
|
904
1050
|
}>;
|
|
1051
|
+
401: z.ZodObject<{
|
|
1052
|
+
message: z.ZodString;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
message: string;
|
|
1055
|
+
}, {
|
|
1056
|
+
message: string;
|
|
1057
|
+
}>;
|
|
905
1058
|
404: z.ZodObject<{
|
|
906
1059
|
message: z.ZodString;
|
|
907
1060
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -918,6 +1071,100 @@ declare const checkinContract: {
|
|
|
918
1071
|
}>;
|
|
919
1072
|
};
|
|
920
1073
|
};
|
|
1074
|
+
myCheckins: {
|
|
1075
|
+
metadata: {
|
|
1076
|
+
openApiTags: string[];
|
|
1077
|
+
openApiSecurity: {
|
|
1078
|
+
bearerAuth: never[];
|
|
1079
|
+
}[];
|
|
1080
|
+
};
|
|
1081
|
+
summary: "List authenticated user check-ins";
|
|
1082
|
+
method: "GET";
|
|
1083
|
+
path: "/v1/checkin/my";
|
|
1084
|
+
responses: {
|
|
1085
|
+
200: z.ZodArray<z.ZodObject<{
|
|
1086
|
+
id: z.ZodString;
|
|
1087
|
+
eventId: z.ZodString;
|
|
1088
|
+
checkedInAt: z.ZodString;
|
|
1089
|
+
disclosedFields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1090
|
+
event: z.ZodObject<{
|
|
1091
|
+
id: z.ZodString;
|
|
1092
|
+
name: z.ZodString;
|
|
1093
|
+
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
1094
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
1095
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1096
|
+
maxGuests: z.ZodNumber;
|
|
1097
|
+
startDateTime: z.ZodString;
|
|
1098
|
+
endDateTime: z.ZodNullable<z.ZodString>;
|
|
1099
|
+
currentGuests: z.ZodNumber;
|
|
1100
|
+
status: z.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
1101
|
+
}, "strip", z.ZodTypeAny, {
|
|
1102
|
+
description: string | null;
|
|
1103
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1104
|
+
id: string;
|
|
1105
|
+
name: string;
|
|
1106
|
+
coverImageUrl: string | null;
|
|
1107
|
+
thumbnailUrl: string | null;
|
|
1108
|
+
startDateTime: string;
|
|
1109
|
+
endDateTime: string | null;
|
|
1110
|
+
maxGuests: number;
|
|
1111
|
+
currentGuests: number;
|
|
1112
|
+
}, {
|
|
1113
|
+
description: string | null;
|
|
1114
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1115
|
+
id: string;
|
|
1116
|
+
name: string;
|
|
1117
|
+
coverImageUrl: string | null;
|
|
1118
|
+
thumbnailUrl: string | null;
|
|
1119
|
+
startDateTime: string;
|
|
1120
|
+
endDateTime: string | null;
|
|
1121
|
+
maxGuests: number;
|
|
1122
|
+
currentGuests: number;
|
|
1123
|
+
}>;
|
|
1124
|
+
}, "strip", z.ZodTypeAny, {
|
|
1125
|
+
id: string;
|
|
1126
|
+
disclosedFields: Record<string, unknown>;
|
|
1127
|
+
checkedInAt: string;
|
|
1128
|
+
event: {
|
|
1129
|
+
description: string | null;
|
|
1130
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1131
|
+
id: string;
|
|
1132
|
+
name: string;
|
|
1133
|
+
coverImageUrl: string | null;
|
|
1134
|
+
thumbnailUrl: string | null;
|
|
1135
|
+
startDateTime: string;
|
|
1136
|
+
endDateTime: string | null;
|
|
1137
|
+
maxGuests: number;
|
|
1138
|
+
currentGuests: number;
|
|
1139
|
+
};
|
|
1140
|
+
eventId: string;
|
|
1141
|
+
}, {
|
|
1142
|
+
id: string;
|
|
1143
|
+
disclosedFields: Record<string, unknown>;
|
|
1144
|
+
checkedInAt: string;
|
|
1145
|
+
event: {
|
|
1146
|
+
description: string | null;
|
|
1147
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1148
|
+
id: string;
|
|
1149
|
+
name: string;
|
|
1150
|
+
coverImageUrl: string | null;
|
|
1151
|
+
thumbnailUrl: string | null;
|
|
1152
|
+
startDateTime: string;
|
|
1153
|
+
endDateTime: string | null;
|
|
1154
|
+
maxGuests: number;
|
|
1155
|
+
currentGuests: number;
|
|
1156
|
+
};
|
|
1157
|
+
eventId: string;
|
|
1158
|
+
}>, "many">;
|
|
1159
|
+
401: z.ZodObject<{
|
|
1160
|
+
message: z.ZodString;
|
|
1161
|
+
}, "strip", z.ZodTypeAny, {
|
|
1162
|
+
message: string;
|
|
1163
|
+
}, {
|
|
1164
|
+
message: string;
|
|
1165
|
+
}>;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
921
1168
|
};
|
|
922
1169
|
|
|
923
1170
|
declare const TurnCredentialsResponseSchema: z.ZodObject<{
|
|
@@ -1001,12 +1248,224 @@ declare const turnContract: {
|
|
|
1001
1248
|
};
|
|
1002
1249
|
};
|
|
1003
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
|
+
|
|
1004
1462
|
declare const contract: {
|
|
1005
1463
|
v1: {
|
|
1006
1464
|
auth: {
|
|
1007
1465
|
verify: {
|
|
1008
1466
|
metadata: {
|
|
1009
1467
|
openApiTags: string[];
|
|
1468
|
+
openApiSecurity: never[];
|
|
1010
1469
|
};
|
|
1011
1470
|
summary: "Verify DID signature and receive JWT";
|
|
1012
1471
|
description: string;
|
|
@@ -1051,6 +1510,45 @@ declare const contract: {
|
|
|
1051
1510
|
};
|
|
1052
1511
|
};
|
|
1053
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
|
+
};
|
|
1054
1552
|
create: {
|
|
1055
1553
|
metadata: {
|
|
1056
1554
|
openApiTags: string[];
|
|
@@ -1062,25 +1560,28 @@ declare const contract: {
|
|
|
1062
1560
|
method: "POST";
|
|
1063
1561
|
body: zod.ZodObject<{
|
|
1064
1562
|
name: zod.ZodString;
|
|
1065
|
-
|
|
1563
|
+
coverImageId: zod.ZodOptional<zod.ZodString>;
|
|
1066
1564
|
description: zod.ZodOptional<zod.ZodString>;
|
|
1067
1565
|
maxGuests: zod.ZodNumber;
|
|
1068
|
-
|
|
1069
|
-
|
|
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">;
|
|
1070
1569
|
}, "strip", zod.ZodTypeAny, {
|
|
1071
1570
|
name: string;
|
|
1571
|
+
startDateTime: string;
|
|
1572
|
+
endDateTime: string;
|
|
1072
1573
|
maxGuests: number;
|
|
1073
|
-
|
|
1074
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "address" | "idNumber")[];
|
|
1574
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
1075
1575
|
description?: string | undefined;
|
|
1076
|
-
|
|
1576
|
+
coverImageId?: string | undefined;
|
|
1077
1577
|
}, {
|
|
1078
1578
|
name: string;
|
|
1579
|
+
startDateTime: string;
|
|
1580
|
+
endDateTime: string;
|
|
1079
1581
|
maxGuests: number;
|
|
1080
|
-
|
|
1081
|
-
requestedFields: ("fullName" | "age" | "portrait" | "gender" | "nationality" | "address" | "idNumber")[];
|
|
1582
|
+
requestedFields: ("documentNumber" | "fullName" | "dateOfBirth" | "gender" | "nationality" | "ethnicity" | "hometown" | "permanentAddress" | "identifyingMarks" | "issueDate" | "expiryDate" | "fatherName" | "motherName" | "photo")[];
|
|
1082
1583
|
description?: string | undefined;
|
|
1083
|
-
|
|
1584
|
+
coverImageId?: string | undefined;
|
|
1084
1585
|
}>;
|
|
1085
1586
|
path: "/v1/events";
|
|
1086
1587
|
responses: {
|
|
@@ -1088,9 +1589,11 @@ declare const contract: {
|
|
|
1088
1589
|
id: zod.ZodString;
|
|
1089
1590
|
name: zod.ZodString;
|
|
1090
1591
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1592
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1091
1593
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1092
1594
|
maxGuests: zod.ZodNumber;
|
|
1093
|
-
|
|
1595
|
+
startDateTime: zod.ZodString;
|
|
1596
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1094
1597
|
userId: zod.ZodString;
|
|
1095
1598
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1096
1599
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1100,27 +1603,31 @@ declare const contract: {
|
|
|
1100
1603
|
}, "strip", zod.ZodTypeAny, {
|
|
1101
1604
|
description: string | null;
|
|
1102
1605
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1606
|
+
id: string;
|
|
1103
1607
|
name: string;
|
|
1104
1608
|
coverImageUrl: string | null;
|
|
1609
|
+
thumbnailUrl: string | null;
|
|
1610
|
+
startDateTime: string;
|
|
1611
|
+
endDateTime: string | null;
|
|
1612
|
+
participantCount: number;
|
|
1105
1613
|
maxGuests: number;
|
|
1106
|
-
dateTime: string;
|
|
1107
1614
|
requestedFields: string[];
|
|
1108
|
-
id: string;
|
|
1109
1615
|
userId: string;
|
|
1110
|
-
participantCount: number;
|
|
1111
1616
|
createdAt: string;
|
|
1112
1617
|
updatedAt: string;
|
|
1113
1618
|
}, {
|
|
1114
1619
|
description: string | null;
|
|
1115
1620
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1621
|
+
id: string;
|
|
1116
1622
|
name: string;
|
|
1117
1623
|
coverImageUrl: string | null;
|
|
1624
|
+
thumbnailUrl: string | null;
|
|
1625
|
+
startDateTime: string;
|
|
1626
|
+
endDateTime: string | null;
|
|
1627
|
+
participantCount: number;
|
|
1118
1628
|
maxGuests: number;
|
|
1119
|
-
dateTime: string;
|
|
1120
1629
|
requestedFields: string[];
|
|
1121
|
-
id: string;
|
|
1122
1630
|
userId: string;
|
|
1123
|
-
participantCount: number;
|
|
1124
1631
|
createdAt: string;
|
|
1125
1632
|
updatedAt: string;
|
|
1126
1633
|
}>;
|
|
@@ -1155,9 +1662,11 @@ declare const contract: {
|
|
|
1155
1662
|
id: zod.ZodString;
|
|
1156
1663
|
name: zod.ZodString;
|
|
1157
1664
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1665
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1158
1666
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1159
1667
|
maxGuests: zod.ZodNumber;
|
|
1160
|
-
|
|
1668
|
+
startDateTime: zod.ZodString;
|
|
1669
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1161
1670
|
userId: zod.ZodString;
|
|
1162
1671
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1163
1672
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1167,27 +1676,31 @@ declare const contract: {
|
|
|
1167
1676
|
}, "strip", zod.ZodTypeAny, {
|
|
1168
1677
|
description: string | null;
|
|
1169
1678
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1679
|
+
id: string;
|
|
1170
1680
|
name: string;
|
|
1171
1681
|
coverImageUrl: string | null;
|
|
1682
|
+
thumbnailUrl: string | null;
|
|
1683
|
+
startDateTime: string;
|
|
1684
|
+
endDateTime: string | null;
|
|
1685
|
+
participantCount: number;
|
|
1172
1686
|
maxGuests: number;
|
|
1173
|
-
dateTime: string;
|
|
1174
1687
|
requestedFields: string[];
|
|
1175
|
-
id: string;
|
|
1176
1688
|
userId: string;
|
|
1177
|
-
participantCount: number;
|
|
1178
1689
|
createdAt: string;
|
|
1179
1690
|
updatedAt: string;
|
|
1180
1691
|
}, {
|
|
1181
1692
|
description: string | null;
|
|
1182
1693
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1694
|
+
id: string;
|
|
1183
1695
|
name: string;
|
|
1184
1696
|
coverImageUrl: string | null;
|
|
1697
|
+
thumbnailUrl: string | null;
|
|
1698
|
+
startDateTime: string;
|
|
1699
|
+
endDateTime: string | null;
|
|
1700
|
+
participantCount: number;
|
|
1185
1701
|
maxGuests: number;
|
|
1186
|
-
dateTime: string;
|
|
1187
1702
|
requestedFields: string[];
|
|
1188
|
-
id: string;
|
|
1189
1703
|
userId: string;
|
|
1190
|
-
participantCount: number;
|
|
1191
1704
|
createdAt: string;
|
|
1192
1705
|
updatedAt: string;
|
|
1193
1706
|
}>, "many">;
|
|
@@ -1215,9 +1728,11 @@ declare const contract: {
|
|
|
1215
1728
|
id: zod.ZodString;
|
|
1216
1729
|
name: zod.ZodString;
|
|
1217
1730
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1731
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1218
1732
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1219
1733
|
maxGuests: zod.ZodNumber;
|
|
1220
|
-
|
|
1734
|
+
startDateTime: zod.ZodString;
|
|
1735
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1221
1736
|
userId: zod.ZodString;
|
|
1222
1737
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1223
1738
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1245,14 +1760,16 @@ declare const contract: {
|
|
|
1245
1760
|
}, "strip", zod.ZodTypeAny, {
|
|
1246
1761
|
description: string | null;
|
|
1247
1762
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1763
|
+
id: string;
|
|
1248
1764
|
name: string;
|
|
1249
1765
|
coverImageUrl: string | null;
|
|
1766
|
+
thumbnailUrl: string | null;
|
|
1767
|
+
startDateTime: string;
|
|
1768
|
+
endDateTime: string | null;
|
|
1769
|
+
participantCount: number;
|
|
1250
1770
|
maxGuests: number;
|
|
1251
|
-
dateTime: string;
|
|
1252
1771
|
requestedFields: string[];
|
|
1253
|
-
id: string;
|
|
1254
1772
|
userId: string;
|
|
1255
|
-
participantCount: number;
|
|
1256
1773
|
createdAt: string;
|
|
1257
1774
|
updatedAt: string;
|
|
1258
1775
|
participants: {
|
|
@@ -1265,14 +1782,16 @@ declare const contract: {
|
|
|
1265
1782
|
}, {
|
|
1266
1783
|
description: string | null;
|
|
1267
1784
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1785
|
+
id: string;
|
|
1268
1786
|
name: string;
|
|
1269
1787
|
coverImageUrl: string | null;
|
|
1788
|
+
thumbnailUrl: string | null;
|
|
1789
|
+
startDateTime: string;
|
|
1790
|
+
endDateTime: string | null;
|
|
1791
|
+
participantCount: number;
|
|
1270
1792
|
maxGuests: number;
|
|
1271
|
-
dateTime: string;
|
|
1272
1793
|
requestedFields: string[];
|
|
1273
|
-
id: string;
|
|
1274
1794
|
userId: string;
|
|
1275
|
-
participantCount: number;
|
|
1276
1795
|
createdAt: string;
|
|
1277
1796
|
updatedAt: string;
|
|
1278
1797
|
participants: {
|
|
@@ -1317,25 +1836,28 @@ declare const contract: {
|
|
|
1317
1836
|
method: "PATCH";
|
|
1318
1837
|
body: zod.ZodObject<{
|
|
1319
1838
|
name: zod.ZodOptional<zod.ZodString>;
|
|
1320
|
-
|
|
1839
|
+
coverImageId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1321
1840
|
description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1322
1841
|
maxGuests: zod.ZodOptional<zod.ZodNumber>;
|
|
1323
|
-
|
|
1842
|
+
startDateTime: zod.ZodOptional<zod.ZodString>;
|
|
1843
|
+
endDateTime: zod.ZodOptional<zod.ZodString>;
|
|
1324
1844
|
status: zod.ZodOptional<zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>>;
|
|
1325
1845
|
}, "strip", zod.ZodTypeAny, {
|
|
1326
1846
|
description?: string | null | undefined;
|
|
1327
1847
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
1328
1848
|
name?: string | undefined;
|
|
1329
|
-
|
|
1849
|
+
startDateTime?: string | undefined;
|
|
1850
|
+
endDateTime?: string | undefined;
|
|
1851
|
+
coverImageId?: string | null | undefined;
|
|
1330
1852
|
maxGuests?: number | undefined;
|
|
1331
|
-
dateTime?: string | undefined;
|
|
1332
1853
|
}, {
|
|
1333
1854
|
description?: string | null | undefined;
|
|
1334
1855
|
status?: "ACTIVE" | "CANCELLED" | "COMPLETED" | undefined;
|
|
1335
1856
|
name?: string | undefined;
|
|
1336
|
-
|
|
1857
|
+
startDateTime?: string | undefined;
|
|
1858
|
+
endDateTime?: string | undefined;
|
|
1859
|
+
coverImageId?: string | null | undefined;
|
|
1337
1860
|
maxGuests?: number | undefined;
|
|
1338
|
-
dateTime?: string | undefined;
|
|
1339
1861
|
}>;
|
|
1340
1862
|
path: "/v1/events/:id";
|
|
1341
1863
|
responses: {
|
|
@@ -1343,9 +1865,11 @@ declare const contract: {
|
|
|
1343
1865
|
id: zod.ZodString;
|
|
1344
1866
|
name: zod.ZodString;
|
|
1345
1867
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
1868
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1346
1869
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1347
1870
|
maxGuests: zod.ZodNumber;
|
|
1348
|
-
|
|
1871
|
+
startDateTime: zod.ZodString;
|
|
1872
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1349
1873
|
userId: zod.ZodString;
|
|
1350
1874
|
requestedFields: zod.ZodArray<zod.ZodString, "many">;
|
|
1351
1875
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
@@ -1355,27 +1879,31 @@ declare const contract: {
|
|
|
1355
1879
|
}, "strip", zod.ZodTypeAny, {
|
|
1356
1880
|
description: string | null;
|
|
1357
1881
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1882
|
+
id: string;
|
|
1358
1883
|
name: string;
|
|
1359
1884
|
coverImageUrl: string | null;
|
|
1885
|
+
thumbnailUrl: string | null;
|
|
1886
|
+
startDateTime: string;
|
|
1887
|
+
endDateTime: string | null;
|
|
1888
|
+
participantCount: number;
|
|
1360
1889
|
maxGuests: number;
|
|
1361
|
-
dateTime: string;
|
|
1362
1890
|
requestedFields: string[];
|
|
1363
|
-
id: string;
|
|
1364
1891
|
userId: string;
|
|
1365
|
-
participantCount: number;
|
|
1366
1892
|
createdAt: string;
|
|
1367
1893
|
updatedAt: string;
|
|
1368
1894
|
}, {
|
|
1369
1895
|
description: string | null;
|
|
1370
1896
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
1897
|
+
id: string;
|
|
1371
1898
|
name: string;
|
|
1372
1899
|
coverImageUrl: string | null;
|
|
1900
|
+
thumbnailUrl: string | null;
|
|
1901
|
+
startDateTime: string;
|
|
1902
|
+
endDateTime: string | null;
|
|
1903
|
+
participantCount: number;
|
|
1373
1904
|
maxGuests: number;
|
|
1374
|
-
dateTime: string;
|
|
1375
1905
|
requestedFields: string[];
|
|
1376
|
-
id: string;
|
|
1377
1906
|
userId: string;
|
|
1378
|
-
participantCount: number;
|
|
1379
1907
|
createdAt: string;
|
|
1380
1908
|
updatedAt: string;
|
|
1381
1909
|
}>;
|
|
@@ -1485,6 +2013,7 @@ declare const contract: {
|
|
|
1485
2013
|
info: {
|
|
1486
2014
|
metadata: {
|
|
1487
2015
|
openApiTags: string[];
|
|
2016
|
+
openApiSecurity: never[];
|
|
1488
2017
|
};
|
|
1489
2018
|
summary: "Get event info and VP request for check-in (public)";
|
|
1490
2019
|
method: "GET";
|
|
@@ -1495,28 +2024,34 @@ declare const contract: {
|
|
|
1495
2024
|
id: zod.ZodString;
|
|
1496
2025
|
name: zod.ZodString;
|
|
1497
2026
|
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
2027
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
1498
2028
|
description: zod.ZodNullable<zod.ZodString>;
|
|
1499
2029
|
maxGuests: zod.ZodNumber;
|
|
1500
|
-
|
|
2030
|
+
startDateTime: zod.ZodString;
|
|
2031
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
1501
2032
|
currentGuests: zod.ZodNumber;
|
|
1502
2033
|
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
1503
2034
|
}, "strip", zod.ZodTypeAny, {
|
|
1504
2035
|
description: string | null;
|
|
1505
2036
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2037
|
+
id: string;
|
|
1506
2038
|
name: string;
|
|
1507
2039
|
coverImageUrl: string | null;
|
|
2040
|
+
thumbnailUrl: string | null;
|
|
2041
|
+
startDateTime: string;
|
|
2042
|
+
endDateTime: string | null;
|
|
1508
2043
|
maxGuests: number;
|
|
1509
|
-
dateTime: string;
|
|
1510
|
-
id: string;
|
|
1511
2044
|
currentGuests: number;
|
|
1512
2045
|
}, {
|
|
1513
2046
|
description: string | null;
|
|
1514
2047
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2048
|
+
id: string;
|
|
1515
2049
|
name: string;
|
|
1516
2050
|
coverImageUrl: string | null;
|
|
2051
|
+
thumbnailUrl: string | null;
|
|
2052
|
+
startDateTime: string;
|
|
2053
|
+
endDateTime: string | null;
|
|
1517
2054
|
maxGuests: number;
|
|
1518
|
-
dateTime: string;
|
|
1519
|
-
id: string;
|
|
1520
2055
|
currentGuests: number;
|
|
1521
2056
|
}>;
|
|
1522
2057
|
vpRequest: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
@@ -1525,11 +2060,13 @@ declare const contract: {
|
|
|
1525
2060
|
event: {
|
|
1526
2061
|
description: string | null;
|
|
1527
2062
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2063
|
+
id: string;
|
|
1528
2064
|
name: string;
|
|
1529
2065
|
coverImageUrl: string | null;
|
|
2066
|
+
thumbnailUrl: string | null;
|
|
2067
|
+
startDateTime: string;
|
|
2068
|
+
endDateTime: string | null;
|
|
1530
2069
|
maxGuests: number;
|
|
1531
|
-
dateTime: string;
|
|
1532
|
-
id: string;
|
|
1533
2070
|
currentGuests: number;
|
|
1534
2071
|
};
|
|
1535
2072
|
}, {
|
|
@@ -1537,11 +2074,13 @@ declare const contract: {
|
|
|
1537
2074
|
event: {
|
|
1538
2075
|
description: string | null;
|
|
1539
2076
|
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2077
|
+
id: string;
|
|
1540
2078
|
name: string;
|
|
1541
2079
|
coverImageUrl: string | null;
|
|
2080
|
+
thumbnailUrl: string | null;
|
|
2081
|
+
startDateTime: string;
|
|
2082
|
+
endDateTime: string | null;
|
|
1542
2083
|
maxGuests: number;
|
|
1543
|
-
dateTime: string;
|
|
1544
|
-
id: string;
|
|
1545
2084
|
currentGuests: number;
|
|
1546
2085
|
};
|
|
1547
2086
|
}>;
|
|
@@ -1564,8 +2103,11 @@ declare const contract: {
|
|
|
1564
2103
|
submit: {
|
|
1565
2104
|
metadata: {
|
|
1566
2105
|
openApiTags: string[];
|
|
2106
|
+
openApiSecurity: {
|
|
2107
|
+
bearerAuth: never[];
|
|
2108
|
+
}[];
|
|
1567
2109
|
};
|
|
1568
|
-
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";
|
|
1569
2111
|
method: "POST";
|
|
1570
2112
|
body: zod.ZodObject<{
|
|
1571
2113
|
verifiablePresentation: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
@@ -1596,6 +2138,13 @@ declare const contract: {
|
|
|
1596
2138
|
message: string;
|
|
1597
2139
|
errors?: string[] | undefined;
|
|
1598
2140
|
}>;
|
|
2141
|
+
401: zod.ZodObject<{
|
|
2142
|
+
message: zod.ZodString;
|
|
2143
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2144
|
+
message: string;
|
|
2145
|
+
}, {
|
|
2146
|
+
message: string;
|
|
2147
|
+
}>;
|
|
1599
2148
|
404: zod.ZodObject<{
|
|
1600
2149
|
message: zod.ZodString;
|
|
1601
2150
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -1612,6 +2161,100 @@ declare const contract: {
|
|
|
1612
2161
|
}>;
|
|
1613
2162
|
};
|
|
1614
2163
|
};
|
|
2164
|
+
myCheckins: {
|
|
2165
|
+
metadata: {
|
|
2166
|
+
openApiTags: string[];
|
|
2167
|
+
openApiSecurity: {
|
|
2168
|
+
bearerAuth: never[];
|
|
2169
|
+
}[];
|
|
2170
|
+
};
|
|
2171
|
+
summary: "List authenticated user check-ins";
|
|
2172
|
+
method: "GET";
|
|
2173
|
+
path: "/v1/checkin/my";
|
|
2174
|
+
responses: {
|
|
2175
|
+
200: zod.ZodArray<zod.ZodObject<{
|
|
2176
|
+
id: zod.ZodString;
|
|
2177
|
+
eventId: zod.ZodString;
|
|
2178
|
+
checkedInAt: zod.ZodString;
|
|
2179
|
+
disclosedFields: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2180
|
+
event: zod.ZodObject<{
|
|
2181
|
+
id: zod.ZodString;
|
|
2182
|
+
name: zod.ZodString;
|
|
2183
|
+
coverImageUrl: zod.ZodNullable<zod.ZodString>;
|
|
2184
|
+
thumbnailUrl: zod.ZodNullable<zod.ZodString>;
|
|
2185
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
2186
|
+
maxGuests: zod.ZodNumber;
|
|
2187
|
+
startDateTime: zod.ZodString;
|
|
2188
|
+
endDateTime: zod.ZodNullable<zod.ZodString>;
|
|
2189
|
+
currentGuests: zod.ZodNumber;
|
|
2190
|
+
status: zod.ZodEnum<["ACTIVE", "CANCELLED", "COMPLETED"]>;
|
|
2191
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2192
|
+
description: string | null;
|
|
2193
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2194
|
+
id: string;
|
|
2195
|
+
name: string;
|
|
2196
|
+
coverImageUrl: string | null;
|
|
2197
|
+
thumbnailUrl: string | null;
|
|
2198
|
+
startDateTime: string;
|
|
2199
|
+
endDateTime: string | null;
|
|
2200
|
+
maxGuests: number;
|
|
2201
|
+
currentGuests: number;
|
|
2202
|
+
}, {
|
|
2203
|
+
description: string | null;
|
|
2204
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2205
|
+
id: string;
|
|
2206
|
+
name: string;
|
|
2207
|
+
coverImageUrl: string | null;
|
|
2208
|
+
thumbnailUrl: string | null;
|
|
2209
|
+
startDateTime: string;
|
|
2210
|
+
endDateTime: string | null;
|
|
2211
|
+
maxGuests: number;
|
|
2212
|
+
currentGuests: number;
|
|
2213
|
+
}>;
|
|
2214
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2215
|
+
id: string;
|
|
2216
|
+
disclosedFields: Record<string, unknown>;
|
|
2217
|
+
checkedInAt: string;
|
|
2218
|
+
event: {
|
|
2219
|
+
description: string | null;
|
|
2220
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2221
|
+
id: string;
|
|
2222
|
+
name: string;
|
|
2223
|
+
coverImageUrl: string | null;
|
|
2224
|
+
thumbnailUrl: string | null;
|
|
2225
|
+
startDateTime: string;
|
|
2226
|
+
endDateTime: string | null;
|
|
2227
|
+
maxGuests: number;
|
|
2228
|
+
currentGuests: number;
|
|
2229
|
+
};
|
|
2230
|
+
eventId: string;
|
|
2231
|
+
}, {
|
|
2232
|
+
id: string;
|
|
2233
|
+
disclosedFields: Record<string, unknown>;
|
|
2234
|
+
checkedInAt: string;
|
|
2235
|
+
event: {
|
|
2236
|
+
description: string | null;
|
|
2237
|
+
status: "ACTIVE" | "CANCELLED" | "COMPLETED";
|
|
2238
|
+
id: string;
|
|
2239
|
+
name: string;
|
|
2240
|
+
coverImageUrl: string | null;
|
|
2241
|
+
thumbnailUrl: string | null;
|
|
2242
|
+
startDateTime: string;
|
|
2243
|
+
endDateTime: string | null;
|
|
2244
|
+
maxGuests: number;
|
|
2245
|
+
currentGuests: number;
|
|
2246
|
+
};
|
|
2247
|
+
eventId: string;
|
|
2248
|
+
}>, "many">;
|
|
2249
|
+
401: zod.ZodObject<{
|
|
2250
|
+
message: zod.ZodString;
|
|
2251
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2252
|
+
message: string;
|
|
2253
|
+
}, {
|
|
2254
|
+
message: string;
|
|
2255
|
+
}>;
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
1615
2258
|
};
|
|
1616
2259
|
turn: {
|
|
1617
2260
|
credentials: {
|
|
@@ -1666,8 +2309,146 @@ declare const contract: {
|
|
|
1666
2309
|
};
|
|
1667
2310
|
};
|
|
1668
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
|
+
};
|
|
1669
2450
|
};
|
|
1670
2451
|
};
|
|
1671
2452
|
type Contract = typeof contract;
|
|
1672
2453
|
|
|
1673
|
-
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 };
|