@photon-ai/dashboard-api 1.6.10 → 1.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +2510 -571
  2. package/package.json +5 -2
package/dist/index.d.ts CHANGED
@@ -6,6 +6,303 @@
6
6
  */
7
7
  import { Elysia } from 'elysia';
8
8
 
9
+ type AccountType = "developer" | "organization";
10
+
11
+ interface BillingPrice {
12
+ currency: string;
13
+ id: string;
14
+ recurring: {
15
+ interval: "day" | "week" | "month" | "year";
16
+ interval_count: number;
17
+ } | null;
18
+ type: "one_time" | "recurring";
19
+ unit_amount: number | null;
20
+ }
21
+ interface BillingProduct {
22
+ description: string | null;
23
+ id: string;
24
+ metadata: Record<string, string>;
25
+ name: string;
26
+ prices: BillingPrice[];
27
+ }
28
+
29
+ /**
30
+ * Types for `call-registry-service` — the FCR (Free Caller Registry) backend.
31
+ *
32
+ * These mirror that service's wire shapes 1:1 so the dashboard BFF and web
33
+ * client share one contract. Field names follow the upstream spelling (note
34
+ * `companyURL`, not `companyUrl`). `createdAt` / `updatedAt` are `Date` in the
35
+ * service but arrive as ISO strings once serialized over JSON, so they are
36
+ * typed as `string` here.
37
+ *
38
+ * The registration shape tracks an in-flight upstream PR until it merges:
39
+ * https://github.com/photon-hq/fcr-service/pull/5 — registrations are now one
40
+ * row per `(projectId, phoneNumber)` (`phoneNumber: string`) rather than one
41
+ * submission holding many numbers (`phoneNumbers: string[]`).
42
+ */
43
+ /** Lifecycle of a registration submission: pending → registered | failed. */
44
+ type CallRegistrationStatus = "pending" | "registered" | "failed";
45
+ /**
46
+ * Business identity FCR requires. Stored once per project in the service and
47
+ * reused across registrations. Mirrors the service's `BusinessProfile` (the
48
+ * `POST` / `GET /api/profiles/:projectId` body).
49
+ */
50
+ interface CallRegistryProfile {
51
+ /**
52
+ * Project setting (not an FCR form field): when true, numbers added to the
53
+ * project are auto-registered with the FCR. Always present on reads; optional
54
+ * on upsert, where the service defaults it to false.
55
+ */
56
+ autoRegisterNumbers?: boolean;
57
+ /** Number-of-calls value FCR expects (string or number). */
58
+ callCount: string | number;
59
+ /** FCR business category, e.g. "school_college". */
60
+ category: string;
61
+ city: string;
62
+ /** Claim type, e.g. "enterprise". */
63
+ claim: string;
64
+ companyAddressLine1: string;
65
+ companyAddressLine2?: string;
66
+ companyName: string;
67
+ companyURL: string;
68
+ contactEmail: string;
69
+ contactName: string;
70
+ contactPhone: string;
71
+ explanation?: string;
72
+ /** FCR line type, e.g. "wireline" | "wireless". */
73
+ lineType: string;
74
+ secondContactEmail?: string;
75
+ state: string;
76
+ /** Registration type, e.g. "enterprise". */
77
+ type: string;
78
+ zip: string;
79
+ }
80
+ /**
81
+ * One registration record, one row per `(projectId, phoneNumber)`. Mirrors the
82
+ * service's `Registration` row. Re-registering a number replaces its row in
83
+ * place (status back to `pending`, new `workflowId`), so a project has at most
84
+ * one record per number.
85
+ */
86
+ interface CallRegistration {
87
+ createdAt: string;
88
+ /** Failure reason. Set when failed. */
89
+ error?: string;
90
+ /** FCR registration id, e.g. "FCRFE06252026042135773". Set when registered. */
91
+ fcrId?: string;
92
+ /** The registered US number, digits only (no +1). */
93
+ phoneNumber: string;
94
+ projectId: string;
95
+ status: CallRegistrationStatus;
96
+ updatedAt: string;
97
+ /** Most recent FCR workflow id that registered this number, e.g. "reg-<uuid>". */
98
+ workflowId: string;
99
+ }
100
+ /** Result of starting a registration workflow (`POST /api/registerNumbers`). */
101
+ interface CallRegistrationStarted {
102
+ status: "started";
103
+ workflowId: string;
104
+ }
105
+
106
+ /** Where a project is in business verification. */
107
+ type PaymentsKybStatus = "not_started" | "invited" | "pending_review" | "action_needed" | "verified" | "rejected";
108
+ /** `GET /v1/provisioning/payments/{project_id}` — provisioning + KYB state. */
109
+ interface PaymentsStatus {
110
+ agent_id?: string | null;
111
+ agent_name?: string | null;
112
+ /** Business verification — gates receiving payments (payee = self/agent). */
113
+ kyb: boolean;
114
+ /** Hosted onboarding link while an owner invitation is pending. */
115
+ kyb_invitation_url?: string | null;
116
+ kyb_status: PaymentsKybStatus;
117
+ project_id: string;
118
+ provisioned: boolean;
119
+ }
120
+
121
+ interface SpectrumProfile {
122
+ avatarUrl: string | null;
123
+ firstName: string;
124
+ lastName: string;
125
+ projectId: string;
126
+ }
127
+ interface SpectrumUser {
128
+ assignedPhoneNumber: string;
129
+ createdAt: string;
130
+ email: string | null;
131
+ firstName: string | null;
132
+ id: string;
133
+ lastName: string | null;
134
+ meta: Record<string, unknown> | null;
135
+ phoneNumber: string;
136
+ projectId: string;
137
+ type: "shared" | "dedicated";
138
+ }
139
+ interface WhatsAppPhoneNumber {
140
+ accountId: string;
141
+ createdAt: string;
142
+ displayPhoneNumber: string | null;
143
+ id: string;
144
+ phoneNumberId: string;
145
+ qualityRating: string | null;
146
+ verifiedName: string | null;
147
+ }
148
+ type IMessageLineStatus = "available" | "unavailable" | "unknown";
149
+ interface IMessageLineProfile {
150
+ avatarUrl: string | null;
151
+ firstName: string | null;
152
+ lastName: string | null;
153
+ }
154
+ interface IMessageLine {
155
+ createdAt: string;
156
+ id: string;
157
+ phoneNumber: string;
158
+ platform: "imessage";
159
+ profile: IMessageLineProfile;
160
+ status: IMessageLineStatus;
161
+ }
162
+ interface WhatsAppBusinessLine {
163
+ accountId?: string | null;
164
+ businessName: string | null;
165
+ codeVerificationStatus?: string | null;
166
+ createdAt: string;
167
+ displayPhoneNumber: string | null;
168
+ id: string;
169
+ phoneNumberId: string;
170
+ platform: "whatsapp_business";
171
+ qualityRating: string | null;
172
+ state?: "registered";
173
+ status?: string | null;
174
+ verifiedName: string | null;
175
+ wabaId: string;
176
+ }
177
+ interface WhatsAppPendingRegistration {
178
+ createdAt: string;
179
+ displayPhoneNumber: string | null;
180
+ errorCode: string | null;
181
+ errorMessage: string | null;
182
+ phoneNumberId: string;
183
+ registrationState: "registering" | "failed";
184
+ }
185
+ type SpectrumLine = IMessageLine | WhatsAppBusinessLine;
186
+ type SpectrumPlatformId = "imessage" | "whatsapp_business" | "voice" | "slack";
187
+ type SpectrumSlackFeature = "channel-history" | "read-tracking" | "dms" | "files" | "reactions" | "pins";
188
+ interface SpectrumSlackConfig {
189
+ appConfigId: string;
190
+ appId: string | null;
191
+ clientId: string | null;
192
+ clientSecret: string | null;
193
+ createdAt: string;
194
+ enabledFeatures: SpectrumSlackFeature[];
195
+ installationCount: number;
196
+ projectId: string;
197
+ signingSecret: string | null;
198
+ updatedAt: string;
199
+ }
200
+ interface SpectrumSlackInstallation {
201
+ appConfigId: string;
202
+ appId: string;
203
+ botToken: string;
204
+ botUserId: string;
205
+ grantedScopes: string[];
206
+ installationId: string;
207
+ installedAt: string;
208
+ projectId: string;
209
+ teamId: string;
210
+ teamName: string;
211
+ updatedAt: string;
212
+ }
213
+ interface SpectrumSipInboundConfig {
214
+ configId: string;
215
+ createdAt: string;
216
+ hasPassword: boolean;
217
+ projectId: string;
218
+ sipUri: string;
219
+ updatedAt: string;
220
+ username: string | null;
221
+ }
222
+ interface SpectrumSubscription {
223
+ customer_id: string | null;
224
+ status: "active" | "canceled" | "past_due" | null;
225
+ subscription_id: string | null;
226
+ tier: string;
227
+ }
228
+ interface SpectrumWebhook {
229
+ createdAt: string;
230
+ id: string;
231
+ updatedAt: string;
232
+ webhookUrl: string;
233
+ }
234
+ interface SpectrumWebhookCreated extends SpectrumWebhook {
235
+ signingSecret: string;
236
+ }
237
+ type WhatsAppTemplateStatus = "APPROVED" | "PENDING" | "REJECTED" | "PAUSED" | "IN_APPEAL" | "PENDING_DELETION" | "DELETED" | "DISABLED" | "LIMIT_EXCEEDED";
238
+ type WhatsAppTemplateCategory = "MARKETING" | "UTILITY" | "AUTHENTICATION";
239
+ type WhatsAppTemplateParameterFormat = "POSITIONAL" | "NAMED";
240
+ interface WhatsAppTemplateComponent {
241
+ type: string;
242
+ [key: string]: unknown;
243
+ }
244
+ interface WhatsAppTemplate {
245
+ category: WhatsAppTemplateCategory;
246
+ components: WhatsAppTemplateComponent[];
247
+ id: string;
248
+ language: string;
249
+ name: string;
250
+ parameterFormat?: WhatsAppTemplateParameterFormat;
251
+ qualityScore?: {
252
+ score?: string;
253
+ [key: string]: unknown;
254
+ };
255
+ rejectedReason?: string;
256
+ status: WhatsAppTemplateStatus;
257
+ }
258
+ interface WhatsAppTemplatePaging {
259
+ nextCursor: string | null;
260
+ prevCursor: string | null;
261
+ }
262
+ /**
263
+ * Outcome of attempting to add the project owner as a Spectrum shared user
264
+ * after a Spectrum project is provisioned. Returned alongside the regular
265
+ * create/toggle response so the frontend can surface the result to the user.
266
+ *
267
+ * - `added`: shared user was created, tagged as project_owner, and an
268
+ * invitation email was dispatched (fire-and-forget — a delivery failure
269
+ * does not downgrade the status, since the owner can re-invite from the
270
+ * Users tab and the upstream rate-limits to one invite per 24 hours).
271
+ * - `skipped_no_phone`: owner has no phone number on their account; nothing
272
+ * was attempted.
273
+ * - `skipped_pool_exhausted`: the Cosmos shared-number pool is exhausted for
274
+ * this owner phone (per-user cap reached). No shared user created.
275
+ * - `failed`: an unexpected error occurred. The Spectrum project itself was
276
+ * created — the owner just wasn't enrolled.
277
+ */
278
+ type SpectrumOwnerStatus = "added" | "skipped_no_phone" | "skipped_pool_exhausted" | "failed";
279
+
280
+ /**
281
+ * Subscription tier exposed to the dashboard. Spectrum returns its own
282
+ * `tier` string; the API normalizes it to this set, falling back to
283
+ * `"free"` on any unrecognized value.
284
+ */
285
+ type PlanTier = "free" | "pro" | "business" | "enterprise";
286
+
287
+ interface SpectrumUsersPage {
288
+ total: number;
289
+ users: SpectrumUser[];
290
+ }
291
+ interface SpectrumLineProfile {
292
+ avatarUrl: string | null;
293
+ firstName: string | null;
294
+ lastName: string | null;
295
+ lineId: string;
296
+ phoneNumber: string;
297
+ projectId: string;
298
+ }
299
+ interface SpectrumLineAvatarUpload {
300
+ key: string;
301
+ lineId: string;
302
+ projectId: string;
303
+ uploadUrl: string;
304
+ }
305
+
9
306
  declare const publicApp: Elysia<"", {
10
307
  decorator: {};
11
308
  store: {};
@@ -57,14 +354,14 @@ declare const publicApp: Elysia<"", {
57
354
  api: {
58
355
  auth: {
59
356
  get: {
60
- body: any;
61
- params: any;
62
- query: any;
63
- headers: any;
357
+ body: unknown;
358
+ params: {};
359
+ query: unknown;
360
+ headers: unknown;
64
361
  response: {
65
- [x: string]: any;
66
- [x: number]: any;
67
- [x: symbol]: any;
362
+ 200: Response | {
363
+ error: string;
364
+ };
68
365
  };
69
366
  };
70
367
  };
@@ -77,14 +374,14 @@ declare const publicApp: Elysia<"", {
77
374
  api: {
78
375
  auth: {
79
376
  get: {
80
- body: any;
81
- params: any;
82
- query: any;
83
- headers: any;
377
+ body: unknown;
378
+ params: {};
379
+ query: unknown;
380
+ headers: unknown;
84
381
  response: {
85
- [x: string]: any;
86
- [x: number]: any;
87
- [x: symbol]: any;
382
+ 200: Response | {
383
+ error: string;
384
+ };
88
385
  };
89
386
  };
90
387
  };
@@ -95,14 +392,30 @@ declare const publicApp: Elysia<"", {
95
392
  api: {
96
393
  projects: {
97
394
  get: {
98
- body: any;
99
- params: any;
100
- query: any;
101
- headers: any;
395
+ body: unknown;
396
+ params: {};
397
+ query: unknown;
398
+ headers: unknown;
102
399
  response: {
103
- [x: string]: any;
104
- [x: number]: any;
105
- [x: symbol]: any;
400
+ 200: {
401
+ avatarUrl: string | null;
402
+ plan: PlanTier;
403
+ platforms: SpectrumPlatformId[];
404
+ userCount: number;
405
+ messages30d: number;
406
+ hourly: never[];
407
+ id: string;
408
+ name: string;
409
+ createdAt: Date;
410
+ updatedAt: Date;
411
+ status: string;
412
+ location: string;
413
+ projectSecret: string | null;
414
+ template: boolean;
415
+ observability: boolean;
416
+ slackChannelId: string | null;
417
+ slackTeamId: string | null;
418
+ }[];
106
419
  };
107
420
  };
108
421
  };
@@ -114,12 +427,23 @@ declare const publicApp: Elysia<"", {
114
427
  get: {
115
428
  body: unknown;
116
429
  params: {};
117
- query: any;
118
- headers: any;
430
+ query: {
431
+ phoneNumber: string;
432
+ };
433
+ headers: unknown;
119
434
  response: {
120
- [x: string]: any;
121
- [x: number]: any;
122
- [x: symbol]: any;
435
+ 200: {
436
+ available: boolean;
437
+ };
438
+ 422: {
439
+ type: "validation";
440
+ on: string;
441
+ summary?: string;
442
+ message?: string;
443
+ found?: unknown;
444
+ property?: string;
445
+ expected?: string;
446
+ };
123
447
  };
124
448
  };
125
449
  };
@@ -130,14 +454,36 @@ declare const publicApp: Elysia<"", {
130
454
  projects: {
131
455
  ":id": {
132
456
  get: {
133
- body: any;
134
- params: any;
135
- query: any;
136
- headers: any;
457
+ body: unknown;
458
+ params: {
459
+ id: string;
460
+ } & {};
461
+ query: unknown;
462
+ headers: unknown;
137
463
  response: {
138
- [x: string]: any;
139
- [x: number]: any;
140
- [x: symbol]: any;
464
+ 200: {
465
+ isOwner: boolean;
466
+ id: string;
467
+ name: string;
468
+ createdAt: Date;
469
+ updatedAt: Date;
470
+ status: string;
471
+ location: string;
472
+ projectSecret: string | null;
473
+ template: boolean;
474
+ observability: boolean;
475
+ slackChannelId: string | null;
476
+ slackTeamId: string | null;
477
+ } | null;
478
+ 422: {
479
+ type: "validation";
480
+ on: string;
481
+ summary?: string;
482
+ message?: string;
483
+ found?: unknown;
484
+ property?: string;
485
+ expected?: string;
486
+ };
141
487
  };
142
488
  };
143
489
  };
@@ -147,14 +493,37 @@ declare const publicApp: Elysia<"", {
147
493
  api: {
148
494
  projects: {
149
495
  post: {
150
- body: any;
496
+ body: {
497
+ platforms?: ("imessage" | "whatsapp_business" | "voice")[] | undefined;
498
+ location?: string | undefined;
499
+ template?: boolean | undefined;
500
+ observability?: boolean | undefined;
501
+ name: string;
502
+ };
151
503
  params: {};
152
- query: any;
153
- headers: any;
504
+ query: unknown;
505
+ headers: unknown;
154
506
  response: {
155
- [x: string]: any;
156
- [x: number]: any;
157
- [x: symbol]: any;
507
+ 200: {
508
+ error: string;
509
+ success?: undefined;
510
+ id?: undefined;
511
+ ownerStatus?: undefined;
512
+ } | {
513
+ success: true;
514
+ id: string;
515
+ ownerStatus: SpectrumOwnerStatus | undefined;
516
+ error?: undefined;
517
+ };
518
+ 422: {
519
+ type: "validation";
520
+ on: string;
521
+ summary?: string;
522
+ message?: string;
523
+ found?: unknown;
524
+ property?: string;
525
+ expected?: string;
526
+ };
158
527
  };
159
528
  };
160
529
  };
@@ -164,16 +533,31 @@ declare const publicApp: Elysia<"", {
164
533
  projects: {
165
534
  ":id": {
166
535
  patch: {
167
- body: any;
536
+ body: {
537
+ name: string;
538
+ };
168
539
  params: {
169
540
  id: string;
170
541
  } & {};
171
- query: any;
172
- headers: any;
542
+ query: unknown;
543
+ headers: unknown;
173
544
  response: {
174
- [x: string]: any;
175
- [x: number]: any;
176
- [x: symbol]: any;
545
+ 200: {
546
+ error: string;
547
+ success?: undefined;
548
+ } | {
549
+ success: true;
550
+ error?: undefined;
551
+ };
552
+ 422: {
553
+ type: "validation";
554
+ on: string;
555
+ summary?: string;
556
+ message?: string;
557
+ found?: unknown;
558
+ property?: string;
559
+ expected?: string;
560
+ };
177
561
  };
178
562
  };
179
563
  };
@@ -184,14 +568,29 @@ declare const publicApp: Elysia<"", {
184
568
  projects: {
185
569
  ":id": {
186
570
  delete: {
187
- body: any;
188
- params: any;
189
- query: any;
190
- headers: any;
571
+ body: unknown;
572
+ params: {
573
+ id: string;
574
+ } & {};
575
+ query: unknown;
576
+ headers: unknown;
191
577
  response: {
192
- [x: string]: any;
193
- [x: number]: any;
194
- [x: symbol]: any;
578
+ 200: {
579
+ error: string;
580
+ success?: undefined;
581
+ } | {
582
+ success: true;
583
+ error?: undefined;
584
+ };
585
+ 422: {
586
+ type: "validation";
587
+ on: string;
588
+ summary?: string;
589
+ message?: string;
590
+ found?: unknown;
591
+ property?: string;
592
+ expected?: string;
593
+ };
195
594
  };
196
595
  };
197
596
  };
@@ -203,14 +602,31 @@ declare const publicApp: Elysia<"", {
203
602
  ":id": {
204
603
  "regenerate-secret": {
205
604
  post: {
206
- body: any;
207
- params: any;
208
- query: any;
209
- headers: any;
605
+ body: unknown;
606
+ params: {
607
+ id: string;
608
+ } & {};
609
+ query: unknown;
610
+ headers: unknown;
210
611
  response: {
211
- [x: string]: any;
212
- [x: number]: any;
213
- [x: symbol]: any;
612
+ 200: {
613
+ error: string;
614
+ success?: undefined;
615
+ projectSecret?: undefined;
616
+ } | {
617
+ success: boolean;
618
+ projectSecret: string;
619
+ error?: undefined;
620
+ };
621
+ 422: {
622
+ type: "validation";
623
+ on: string;
624
+ summary?: string;
625
+ message?: string;
626
+ found?: unknown;
627
+ property?: string;
628
+ expected?: string;
629
+ };
214
630
  };
215
631
  };
216
632
  };
@@ -224,14 +640,23 @@ declare const publicApp: Elysia<"", {
224
640
  spectrum: {
225
641
  profile: {
226
642
  get: {
227
- body: any;
228
- params: any;
229
- query: any;
230
- headers: any;
643
+ body: unknown;
644
+ params: {
645
+ id: string;
646
+ } & {};
647
+ query: unknown;
648
+ headers: unknown;
231
649
  response: {
232
- [x: string]: any;
233
- [x: number]: any;
234
- [x: symbol]: any;
650
+ 200: SpectrumProfile | null;
651
+ 422: {
652
+ type: "validation";
653
+ on: string;
654
+ summary?: string;
655
+ message?: string;
656
+ found?: unknown;
657
+ property?: string;
658
+ expected?: string;
659
+ };
235
660
  };
236
661
  };
237
662
  };
@@ -246,16 +671,34 @@ declare const publicApp: Elysia<"", {
246
671
  spectrum: {
247
672
  profile: {
248
673
  patch: {
249
- body: any;
674
+ body: {
675
+ firstName?: string | undefined;
676
+ lastName?: string | undefined;
677
+ };
250
678
  params: {
251
679
  id: string;
252
680
  } & {};
253
- query: any;
254
- headers: any;
681
+ query: unknown;
682
+ headers: unknown;
255
683
  response: {
256
- [x: string]: any;
257
- [x: number]: any;
258
- [x: symbol]: any;
684
+ 200: {
685
+ error: string;
686
+ success?: undefined;
687
+ profile?: undefined;
688
+ } | {
689
+ success: boolean;
690
+ profile: SpectrumProfile;
691
+ error?: undefined;
692
+ };
693
+ 422: {
694
+ type: "validation";
695
+ on: string;
696
+ summary?: string;
697
+ message?: string;
698
+ found?: unknown;
699
+ property?: string;
700
+ expected?: string;
701
+ };
259
702
  };
260
703
  };
261
704
  };
@@ -268,19 +711,38 @@ declare const publicApp: Elysia<"", {
268
711
  projects: {
269
712
  ":id": {
270
713
  spectrum: {
271
- avatar: {
272
- upload: {
714
+ profile: {
715
+ sync: {
273
716
  post: {
274
- body: any;
717
+ body: unknown;
275
718
  params: {
276
719
  id: string;
277
- } & {};
278
- query: any;
279
- headers: any;
720
+ };
721
+ query: unknown;
722
+ headers: unknown;
280
723
  response: {
281
- [x: string]: any;
282
- [x: number]: any;
283
- [x: symbol]: any;
724
+ 200: {
725
+ data: {
726
+ projectId: string;
727
+ targetedLineCount: number;
728
+ };
729
+ succeed: true;
730
+ };
731
+ 404: {
732
+ data: null;
733
+ code: "PROJECT_NOT_FOUND";
734
+ message: string;
735
+ succeed: false;
736
+ };
737
+ 422: {
738
+ type: "validation";
739
+ on: string;
740
+ summary?: string;
741
+ message?: string;
742
+ found?: unknown;
743
+ property?: string;
744
+ expected?: string;
745
+ };
284
746
  };
285
747
  };
286
748
  };
@@ -295,18 +757,32 @@ declare const publicApp: Elysia<"", {
295
757
  ":id": {
296
758
  spectrum: {
297
759
  avatar: {
298
- commit: {
760
+ upload: {
299
761
  post: {
300
- body: any;
762
+ body: {
763
+ contentType: string;
764
+ };
301
765
  params: {
302
766
  id: string;
303
767
  } & {};
304
- query: any;
305
- headers: any;
768
+ query: unknown;
769
+ headers: unknown;
306
770
  response: {
307
- [x: string]: any;
308
- [x: number]: any;
309
- [x: symbol]: any;
771
+ 200: {
772
+ uploadUrl: string;
773
+ key: string;
774
+ } | {
775
+ error: string;
776
+ };
777
+ 422: {
778
+ type: "validation";
779
+ on: string;
780
+ summary?: string;
781
+ message?: string;
782
+ found?: unknown;
783
+ property?: string;
784
+ expected?: string;
785
+ };
310
786
  };
311
787
  };
312
788
  };
@@ -321,15 +797,34 @@ declare const publicApp: Elysia<"", {
321
797
  ":id": {
322
798
  spectrum: {
323
799
  avatar: {
324
- delete: {
325
- body: any;
326
- params: any;
327
- query: any;
328
- headers: any;
329
- response: {
330
- [x: string]: any;
331
- [x: number]: any;
332
- [x: symbol]: any;
800
+ commit: {
801
+ post: {
802
+ body: {
803
+ key: string;
804
+ };
805
+ params: {
806
+ id: string;
807
+ } & {};
808
+ query: unknown;
809
+ headers: unknown;
810
+ response: {
811
+ 200: {
812
+ error: string;
813
+ } | {
814
+ avatarUrl: string;
815
+ success: true;
816
+ error?: undefined;
817
+ };
818
+ 422: {
819
+ type: "validation";
820
+ on: string;
821
+ summary?: string;
822
+ message?: string;
823
+ found?: unknown;
824
+ property?: string;
825
+ expected?: string;
826
+ };
827
+ };
333
828
  };
334
829
  };
335
830
  };
@@ -348,12 +843,23 @@ declare const publicApp: Elysia<"", {
348
843
  params: {
349
844
  id: string;
350
845
  } & {};
351
- query: any;
352
- headers: any;
846
+ query: {
847
+ search?: string | undefined;
848
+ limit?: number | undefined;
849
+ offset?: number | undefined;
850
+ };
851
+ headers: unknown;
353
852
  response: {
354
- [x: string]: any;
355
- [x: number]: any;
356
- [x: symbol]: any;
853
+ 200: SpectrumUsersPage;
854
+ 422: {
855
+ type: "validation";
856
+ on: string;
857
+ summary?: string;
858
+ message?: string;
859
+ found?: unknown;
860
+ property?: string;
861
+ expected?: string;
862
+ };
357
863
  };
358
864
  };
359
865
  };
@@ -368,16 +874,45 @@ declare const publicApp: Elysia<"", {
368
874
  spectrum: {
369
875
  users: {
370
876
  post: {
371
- body: any;
877
+ body: {
878
+ type?: "shared" | undefined;
879
+ sendInvite?: boolean | undefined;
880
+ email: string;
881
+ phoneNumber: string;
882
+ firstName: string;
883
+ lastName: string;
884
+ } | {
885
+ email: string;
886
+ phoneNumber: string;
887
+ type: "dedicated";
888
+ firstName: string;
889
+ lastName: string;
890
+ assignedPhoneNumber: string;
891
+ };
372
892
  params: {
373
893
  id: string;
374
894
  } & {};
375
- query: any;
376
- headers: any;
895
+ query: unknown;
896
+ headers: unknown;
377
897
  response: {
378
- [x: string]: any;
379
- [x: number]: any;
380
- [x: symbol]: any;
898
+ 200: {
899
+ error: string;
900
+ success?: undefined;
901
+ user?: undefined;
902
+ } | {
903
+ success: true;
904
+ user: SpectrumUser;
905
+ error?: undefined;
906
+ };
907
+ 422: {
908
+ type: "validation";
909
+ on: string;
910
+ summary?: string;
911
+ message?: string;
912
+ found?: unknown;
913
+ property?: string;
914
+ expected?: string;
915
+ };
381
916
  };
382
917
  };
383
918
  };
@@ -393,14 +928,30 @@ declare const publicApp: Elysia<"", {
393
928
  users: {
394
929
  ":userId": {
395
930
  delete: {
396
- body: any;
397
- params: any;
398
- query: any;
399
- headers: any;
931
+ body: unknown;
932
+ params: {
933
+ id: string;
934
+ userId: string;
935
+ } & {};
936
+ query: unknown;
937
+ headers: unknown;
400
938
  response: {
401
- [x: string]: any;
402
- [x: number]: any;
403
- [x: symbol]: any;
939
+ 200: {
940
+ error: string;
941
+ success?: undefined;
942
+ } | {
943
+ success: true;
944
+ error?: undefined;
945
+ };
946
+ 422: {
947
+ type: "validation";
948
+ on: string;
949
+ summary?: string;
950
+ message?: string;
951
+ found?: unknown;
952
+ property?: string;
953
+ expected?: string;
954
+ };
404
955
  };
405
956
  };
406
957
  };
@@ -417,16 +968,32 @@ declare const publicApp: Elysia<"", {
417
968
  users: {
418
969
  invite: {
419
970
  post: {
420
- body: any;
971
+ body: {
972
+ userId: string;
973
+ };
421
974
  params: {
422
975
  id: string;
423
976
  } & {};
424
- query: any;
425
- headers: any;
977
+ query: unknown;
978
+ headers: unknown;
426
979
  response: {
427
- [x: string]: any;
428
- [x: number]: any;
429
- [x: symbol]: any;
980
+ 200: {
981
+ error: string;
982
+ } | {
983
+ emailId: string;
984
+ sentTo: string;
985
+ success: boolean;
986
+ error?: undefined;
987
+ };
988
+ 422: {
989
+ type: "validation";
990
+ on: string;
991
+ summary?: string;
992
+ message?: string;
993
+ found?: unknown;
994
+ property?: string;
995
+ expected?: string;
996
+ };
430
997
  };
431
998
  };
432
999
  };
@@ -442,16 +1009,33 @@ declare const publicApp: Elysia<"", {
442
1009
  whatsapp: {
443
1010
  connect: {
444
1011
  post: {
445
- body: any;
1012
+ body: {
1013
+ phoneNumberId?: string | undefined;
1014
+ wabaId: string;
1015
+ authorizationCode: string;
1016
+ };
446
1017
  params: {
447
1018
  id: string;
448
1019
  } & {};
449
- query: any;
450
- headers: any;
1020
+ query: unknown;
1021
+ headers: unknown;
451
1022
  response: {
452
- [x: string]: any;
453
- [x: number]: any;
454
- [x: symbol]: any;
1023
+ 200: {
1024
+ error: string;
1025
+ success?: undefined;
1026
+ } | {
1027
+ success: true;
1028
+ error?: undefined;
1029
+ };
1030
+ 422: {
1031
+ type: "validation";
1032
+ on: string;
1033
+ summary?: string;
1034
+ message?: string;
1035
+ found?: unknown;
1036
+ property?: string;
1037
+ expected?: string;
1038
+ };
455
1039
  };
456
1040
  };
457
1041
  };
@@ -466,16 +1050,33 @@ declare const publicApp: Elysia<"", {
466
1050
  whatsapp: {
467
1051
  phone: {
468
1052
  post: {
469
- body: any;
1053
+ body: {
1054
+ phoneNumberId: string;
1055
+ };
470
1056
  params: {
471
1057
  id: string;
472
1058
  } & {};
473
- query: any;
474
- headers: any;
1059
+ query: unknown;
1060
+ headers: unknown;
475
1061
  response: {
476
- [x: string]: any;
477
- [x: number]: any;
478
- [x: symbol]: any;
1062
+ 200: {
1063
+ error: string;
1064
+ success?: undefined;
1065
+ phone?: undefined;
1066
+ } | {
1067
+ success: boolean;
1068
+ phone: WhatsAppPhoneNumber;
1069
+ error?: undefined;
1070
+ };
1071
+ 422: {
1072
+ type: "validation";
1073
+ on: string;
1074
+ summary?: string;
1075
+ message?: string;
1076
+ found?: unknown;
1077
+ property?: string;
1078
+ expected?: string;
1079
+ };
479
1080
  };
480
1081
  };
481
1082
  };
@@ -494,12 +1095,36 @@ declare const publicApp: Elysia<"", {
494
1095
  params: {
495
1096
  id: string;
496
1097
  } & {};
497
- query: any;
498
- headers: any;
1098
+ query: {
1099
+ name?: string | undefined;
1100
+ status?: "APPROVED" | "PENDING" | "REJECTED" | "PAUSED" | "IN_APPEAL" | "PENDING_DELETION" | "DELETED" | "DISABLED" | "LIMIT_EXCEEDED" | undefined;
1101
+ limit?: number | undefined;
1102
+ nameOrContent?: string | undefined;
1103
+ language?: string | undefined;
1104
+ category?: "MARKETING" | "UTILITY" | "AUTHENTICATION" | undefined;
1105
+ after?: string | undefined;
1106
+ before?: string | undefined;
1107
+ };
1108
+ headers: unknown;
499
1109
  response: {
500
- [x: string]: any;
501
- [x: number]: any;
502
- [x: symbol]: any;
1110
+ 200: {
1111
+ error: string;
1112
+ } | {
1113
+ paging: WhatsAppTemplatePaging;
1114
+ templates: WhatsAppTemplate[];
1115
+ success: true;
1116
+ accountId: string;
1117
+ error?: undefined;
1118
+ };
1119
+ 422: {
1120
+ type: "validation";
1121
+ on: string;
1122
+ summary?: string;
1123
+ message?: string;
1124
+ found?: unknown;
1125
+ property?: string;
1126
+ expected?: string;
1127
+ };
503
1128
  };
504
1129
  };
505
1130
  };
@@ -514,16 +1139,40 @@ declare const publicApp: Elysia<"", {
514
1139
  whatsapp: {
515
1140
  templates: {
516
1141
  post: {
517
- body: any;
1142
+ body: {
1143
+ parameterFormat?: "POSITIONAL" | "NAMED" | undefined;
1144
+ allowCategoryChange?: boolean | undefined;
1145
+ name: string;
1146
+ language: string;
1147
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
1148
+ components: {
1149
+ type: string;
1150
+ }[];
1151
+ };
518
1152
  params: {
519
1153
  id: string;
520
1154
  } & {};
521
- query: any;
522
- headers: any;
1155
+ query: unknown;
1156
+ headers: unknown;
523
1157
  response: {
524
- [x: string]: any;
525
- [x: number]: any;
526
- [x: symbol]: any;
1158
+ 200: {
1159
+ error: string;
1160
+ success?: undefined;
1161
+ template?: undefined;
1162
+ } | {
1163
+ success: true;
1164
+ template: Pick<WhatsAppTemplate, "id" | "status" | "category">;
1165
+ error?: undefined;
1166
+ };
1167
+ 422: {
1168
+ type: "validation";
1169
+ on: string;
1170
+ summary?: string;
1171
+ message?: string;
1172
+ found?: unknown;
1173
+ property?: string;
1174
+ expected?: string;
1175
+ };
527
1176
  };
528
1177
  };
529
1178
  };
@@ -539,17 +1188,35 @@ declare const publicApp: Elysia<"", {
539
1188
  templates: {
540
1189
  ":templateId": {
541
1190
  patch: {
542
- body: any;
1191
+ body: {
1192
+ category?: "MARKETING" | "UTILITY" | "AUTHENTICATION" | undefined;
1193
+ components?: {
1194
+ type: string;
1195
+ }[] | undefined;
1196
+ messageSendTtlSeconds?: number | undefined;
1197
+ };
543
1198
  params: {
544
1199
  id: string;
545
1200
  templateId: string;
546
1201
  } & {};
547
- query: any;
548
- headers: any;
1202
+ query: unknown;
1203
+ headers: unknown;
549
1204
  response: {
550
- [x: string]: any;
551
- [x: number]: any;
552
- [x: symbol]: any;
1205
+ 200: {
1206
+ success: true;
1207
+ templateId: string;
1208
+ } | {
1209
+ error: string;
1210
+ };
1211
+ 422: {
1212
+ type: "validation";
1213
+ on: string;
1214
+ summary?: string;
1215
+ message?: string;
1216
+ found?: unknown;
1217
+ property?: string;
1218
+ expected?: string;
1219
+ };
553
1220
  };
554
1221
  };
555
1222
  };
@@ -571,12 +1238,29 @@ declare const publicApp: Elysia<"", {
571
1238
  id: string;
572
1239
  templateId: string;
573
1240
  } & {};
574
- query: any;
575
- headers: any;
1241
+ query: {
1242
+ name: string;
1243
+ };
1244
+ headers: unknown;
576
1245
  response: {
577
- [x: string]: any;
578
- [x: number]: any;
579
- [x: symbol]: any;
1246
+ 200: {
1247
+ error: string;
1248
+ success?: undefined;
1249
+ templateId?: undefined;
1250
+ } | {
1251
+ success: true;
1252
+ templateId: string;
1253
+ error?: undefined;
1254
+ };
1255
+ 422: {
1256
+ type: "validation";
1257
+ on: string;
1258
+ summary?: string;
1259
+ message?: string;
1260
+ found?: unknown;
1261
+ property?: string;
1262
+ expected?: string;
1263
+ };
580
1264
  };
581
1265
  };
582
1266
  };
@@ -591,14 +1275,23 @@ declare const publicApp: Elysia<"", {
591
1275
  ":id": {
592
1276
  platforms: {
593
1277
  get: {
594
- body: any;
595
- params: any;
596
- query: any;
597
- headers: any;
1278
+ body: unknown;
1279
+ params: {
1280
+ id: string;
1281
+ } & {};
1282
+ query: unknown;
1283
+ headers: unknown;
598
1284
  response: {
599
- [x: string]: any;
600
- [x: number]: any;
601
- [x: symbol]: any;
1285
+ 200: Record<string, boolean>;
1286
+ 422: {
1287
+ type: "validation";
1288
+ on: string;
1289
+ summary?: string;
1290
+ message?: string;
1291
+ found?: unknown;
1292
+ property?: string;
1293
+ expected?: string;
1294
+ };
602
1295
  };
603
1296
  };
604
1297
  };
@@ -612,16 +1305,34 @@ declare const publicApp: Elysia<"", {
612
1305
  platforms: {
613
1306
  toggle: {
614
1307
  post: {
615
- body: any;
1308
+ body: {
1309
+ enabled: boolean;
1310
+ platformId: string;
1311
+ };
616
1312
  params: {
617
1313
  id: string;
618
1314
  } & {};
619
- query: any;
620
- headers: any;
1315
+ query: unknown;
1316
+ headers: unknown;
621
1317
  response: {
622
- [x: string]: any;
623
- [x: number]: any;
624
- [x: symbol]: any;
1318
+ 200: {
1319
+ error: string;
1320
+ success?: undefined;
1321
+ platforms?: undefined;
1322
+ } | {
1323
+ success: true;
1324
+ platforms: Record<string, boolean>;
1325
+ error?: undefined;
1326
+ };
1327
+ 422: {
1328
+ type: "validation";
1329
+ on: string;
1330
+ summary?: string;
1331
+ message?: string;
1332
+ found?: unknown;
1333
+ property?: string;
1334
+ expected?: string;
1335
+ };
625
1336
  };
626
1337
  };
627
1338
  };
@@ -635,14 +1346,29 @@ declare const publicApp: Elysia<"", {
635
1346
  ":id": {
636
1347
  lines: {
637
1348
  get: {
638
- body: any;
639
- params: any;
640
- query: any;
641
- headers: any;
1349
+ body: unknown;
1350
+ params: {
1351
+ id: string;
1352
+ } & {};
1353
+ query: unknown;
1354
+ headers: unknown;
642
1355
  response: {
643
- [x: string]: any;
644
- [x: number]: any;
645
- [x: symbol]: any;
1356
+ 200: {
1357
+ lines: SpectrumLine[];
1358
+ pendingRegistrations: WhatsAppPendingRegistration[];
1359
+ } | {
1360
+ lines: never[];
1361
+ pendingRegistrations: null;
1362
+ };
1363
+ 422: {
1364
+ type: "validation";
1365
+ on: string;
1366
+ summary?: string;
1367
+ message?: string;
1368
+ found?: unknown;
1369
+ property?: string;
1370
+ expected?: string;
1371
+ };
646
1372
  };
647
1373
  };
648
1374
  };
@@ -655,16 +1381,273 @@ declare const publicApp: Elysia<"", {
655
1381
  ":id": {
656
1382
  lines: {
657
1383
  post: {
658
- body: any;
1384
+ body: {
1385
+ platform: "imessage";
1386
+ };
659
1387
  params: {
660
1388
  id: string;
661
1389
  } & {};
662
- query: any;
663
- headers: any;
1390
+ query: unknown;
1391
+ headers: unknown;
664
1392
  response: {
665
- [x: string]: any;
666
- [x: number]: any;
667
- [x: symbol]: any;
1393
+ 200: {
1394
+ error: string;
1395
+ success?: undefined;
1396
+ line?: undefined;
1397
+ } | {
1398
+ success: true;
1399
+ line: SpectrumLine;
1400
+ error?: undefined;
1401
+ };
1402
+ 422: {
1403
+ type: "validation";
1404
+ on: string;
1405
+ summary?: string;
1406
+ message?: string;
1407
+ found?: unknown;
1408
+ property?: string;
1409
+ expected?: string;
1410
+ };
1411
+ };
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ };
1417
+ } & {
1418
+ api: {
1419
+ projects: {
1420
+ ":id": {
1421
+ lines: {
1422
+ ":lineId": {
1423
+ profile: {
1424
+ patch: {
1425
+ body: {
1426
+ lastName?: string | null | undefined;
1427
+ firstName: string | null;
1428
+ } | {
1429
+ firstName?: string | null | undefined;
1430
+ lastName: string | null;
1431
+ };
1432
+ params: {
1433
+ id: string;
1434
+ lineId: string;
1435
+ };
1436
+ query: unknown;
1437
+ headers: unknown;
1438
+ response: {
1439
+ 200: {
1440
+ readonly succeed: true;
1441
+ readonly data: SpectrumLineProfile;
1442
+ } & {
1443
+ readonly succeed: true;
1444
+ readonly data: SpectrumLineProfile;
1445
+ };
1446
+ 400: {
1447
+ code: string;
1448
+ data: null;
1449
+ message: string;
1450
+ succeed: false;
1451
+ };
1452
+ 404: {
1453
+ code: string;
1454
+ data: null;
1455
+ message: string;
1456
+ succeed: false;
1457
+ } | {
1458
+ readonly succeed: false;
1459
+ readonly data: null;
1460
+ readonly code: "PROJECT_NOT_FOUND";
1461
+ readonly message: "Project not found or Spectrum is not linked";
1462
+ };
1463
+ 409: {
1464
+ code: string;
1465
+ data: null;
1466
+ message: string;
1467
+ succeed: false;
1468
+ };
1469
+ 422: {
1470
+ code: string;
1471
+ data: null;
1472
+ message: string;
1473
+ succeed: false;
1474
+ } | {
1475
+ type: "validation";
1476
+ on: string;
1477
+ summary?: string;
1478
+ message?: string;
1479
+ found?: unknown;
1480
+ property?: string;
1481
+ expected?: string;
1482
+ };
1483
+ 502: {
1484
+ code: string;
1485
+ data: null;
1486
+ message: string;
1487
+ succeed: false;
1488
+ };
1489
+ };
1490
+ };
1491
+ };
1492
+ };
1493
+ };
1494
+ };
1495
+ };
1496
+ };
1497
+ } & {
1498
+ api: {
1499
+ projects: {
1500
+ ":id": {
1501
+ lines: {
1502
+ ":lineId": {
1503
+ profile: {
1504
+ avatar: {
1505
+ upload: {
1506
+ post: {
1507
+ body: Partial<{
1508
+ contentType?: string | undefined;
1509
+ }> | null;
1510
+ params: {
1511
+ id: string;
1512
+ lineId: string;
1513
+ };
1514
+ query: unknown;
1515
+ headers: unknown;
1516
+ response: {
1517
+ 200: {
1518
+ readonly succeed: true;
1519
+ readonly data: SpectrumLineAvatarUpload;
1520
+ } & {
1521
+ readonly succeed: true;
1522
+ readonly data: SpectrumLineAvatarUpload;
1523
+ };
1524
+ 400: {
1525
+ code: string;
1526
+ data: null;
1527
+ message: string;
1528
+ succeed: false;
1529
+ };
1530
+ 404: {
1531
+ code: string;
1532
+ data: null;
1533
+ message: string;
1534
+ succeed: false;
1535
+ } | {
1536
+ readonly succeed: false;
1537
+ readonly data: null;
1538
+ readonly code: "PROJECT_NOT_FOUND";
1539
+ readonly message: "Project not found or Spectrum is not linked";
1540
+ };
1541
+ 409: {
1542
+ code: string;
1543
+ data: null;
1544
+ message: string;
1545
+ succeed: false;
1546
+ };
1547
+ 422: {
1548
+ code: string;
1549
+ data: null;
1550
+ message: string;
1551
+ succeed: false;
1552
+ } | {
1553
+ type: "validation";
1554
+ on: string;
1555
+ summary?: string;
1556
+ message?: string;
1557
+ found?: unknown;
1558
+ property?: string;
1559
+ expected?: string;
1560
+ };
1561
+ 502: {
1562
+ code: string;
1563
+ data: null;
1564
+ message: string;
1565
+ succeed: false;
1566
+ };
1567
+ };
1568
+ };
1569
+ };
1570
+ };
1571
+ };
1572
+ };
1573
+ };
1574
+ };
1575
+ };
1576
+ };
1577
+ } & {
1578
+ api: {
1579
+ projects: {
1580
+ ":id": {
1581
+ lines: {
1582
+ ":lineId": {
1583
+ profile: {
1584
+ avatar: {
1585
+ commit: {
1586
+ post: {
1587
+ body: {
1588
+ key: string;
1589
+ };
1590
+ params: {
1591
+ id: string;
1592
+ lineId: string;
1593
+ };
1594
+ query: unknown;
1595
+ headers: unknown;
1596
+ response: {
1597
+ 200: {
1598
+ readonly succeed: true;
1599
+ readonly data: SpectrumLineProfile;
1600
+ } & {
1601
+ readonly succeed: true;
1602
+ readonly data: SpectrumLineProfile;
1603
+ };
1604
+ 400: {
1605
+ code: string;
1606
+ data: null;
1607
+ message: string;
1608
+ succeed: false;
1609
+ };
1610
+ 404: {
1611
+ code: string;
1612
+ data: null;
1613
+ message: string;
1614
+ succeed: false;
1615
+ } | {
1616
+ readonly succeed: false;
1617
+ readonly data: null;
1618
+ readonly code: "PROJECT_NOT_FOUND";
1619
+ readonly message: "Project not found or Spectrum is not linked";
1620
+ };
1621
+ 409: {
1622
+ code: string;
1623
+ data: null;
1624
+ message: string;
1625
+ succeed: false;
1626
+ };
1627
+ 422: {
1628
+ code: string;
1629
+ data: null;
1630
+ message: string;
1631
+ succeed: false;
1632
+ } | {
1633
+ type: "validation";
1634
+ on: string;
1635
+ summary?: string;
1636
+ message?: string;
1637
+ found?: unknown;
1638
+ property?: string;
1639
+ expected?: string;
1640
+ };
1641
+ 502: {
1642
+ code: string;
1643
+ data: null;
1644
+ message: string;
1645
+ succeed: false;
1646
+ };
1647
+ };
1648
+ };
1649
+ };
1650
+ };
668
1651
  };
669
1652
  };
670
1653
  };
@@ -678,14 +1661,30 @@ declare const publicApp: Elysia<"", {
678
1661
  lines: {
679
1662
  ":lineId": {
680
1663
  delete: {
681
- body: any;
682
- params: any;
683
- query: any;
684
- headers: any;
1664
+ body: unknown;
1665
+ params: {
1666
+ id: string;
1667
+ lineId: string;
1668
+ } & {};
1669
+ query: unknown;
1670
+ headers: unknown;
685
1671
  response: {
686
- [x: string]: any;
687
- [x: number]: any;
688
- [x: symbol]: any;
1672
+ 200: {
1673
+ error: string;
1674
+ success?: undefined;
1675
+ } | {
1676
+ success: true;
1677
+ error?: undefined;
1678
+ };
1679
+ 422: {
1680
+ type: "validation";
1681
+ on: string;
1682
+ summary?: string;
1683
+ message?: string;
1684
+ found?: unknown;
1685
+ property?: string;
1686
+ expected?: string;
1687
+ };
689
1688
  };
690
1689
  };
691
1690
  };
@@ -700,14 +1699,26 @@ declare const publicApp: Elysia<"", {
700
1699
  voice: {
701
1700
  settings: {
702
1701
  get: {
703
- body: any;
704
- params: any;
705
- query: any;
706
- headers: any;
1702
+ body: unknown;
1703
+ params: {
1704
+ id: string;
1705
+ } & {};
1706
+ query: unknown;
1707
+ headers: unknown;
707
1708
  response: {
708
- [x: string]: any;
709
- [x: number]: any;
710
- [x: symbol]: any;
1709
+ 200: {
1710
+ imessageEnabled: boolean;
1711
+ sipInbound: SpectrumSipInboundConfig | null;
1712
+ };
1713
+ 422: {
1714
+ type: "validation";
1715
+ on: string;
1716
+ summary?: string;
1717
+ message?: string;
1718
+ found?: unknown;
1719
+ property?: string;
1720
+ expected?: string;
1721
+ };
711
1722
  };
712
1723
  };
713
1724
  };
@@ -722,16 +1733,35 @@ declare const publicApp: Elysia<"", {
722
1733
  voice: {
723
1734
  "imessage-enabled": {
724
1735
  patch: {
725
- body: any;
1736
+ body: {
1737
+ enabled: boolean;
1738
+ };
726
1739
  params: {
727
1740
  id: string;
728
1741
  } & {};
729
- query: any;
730
- headers: any;
1742
+ query: unknown;
1743
+ headers: unknown;
731
1744
  response: {
732
- [x: string]: any;
733
- [x: number]: any;
734
- [x: symbol]: any;
1745
+ 200: {
1746
+ error: string;
1747
+ success?: undefined;
1748
+ imessageEnabled?: undefined;
1749
+ voiceEnabled?: undefined;
1750
+ } | {
1751
+ success: true;
1752
+ imessageEnabled: boolean;
1753
+ voiceEnabled: boolean;
1754
+ error?: undefined;
1755
+ };
1756
+ 422: {
1757
+ type: "validation";
1758
+ on: string;
1759
+ summary?: string;
1760
+ message?: string;
1761
+ found?: unknown;
1762
+ property?: string;
1763
+ expected?: string;
1764
+ };
735
1765
  };
736
1766
  };
737
1767
  };
@@ -746,14 +1776,25 @@ declare const publicApp: Elysia<"", {
746
1776
  imessage: {
747
1777
  settings: {
748
1778
  get: {
749
- body: any;
750
- params: any;
751
- query: any;
752
- headers: any;
1779
+ body: unknown;
1780
+ params: {
1781
+ id: string;
1782
+ } & {};
1783
+ query: unknown;
1784
+ headers: unknown;
753
1785
  response: {
754
- [x: string]: any;
755
- [x: number]: any;
756
- [x: symbol]: any;
1786
+ 200: {
1787
+ autoScale: boolean;
1788
+ };
1789
+ 422: {
1790
+ type: "validation";
1791
+ on: string;
1792
+ summary?: string;
1793
+ message?: string;
1794
+ found?: unknown;
1795
+ property?: string;
1796
+ expected?: string;
1797
+ };
757
1798
  };
758
1799
  };
759
1800
  };
@@ -768,16 +1809,33 @@ declare const publicApp: Elysia<"", {
768
1809
  imessage: {
769
1810
  "auto-scale": {
770
1811
  patch: {
771
- body: any;
1812
+ body: {
1813
+ autoScale: boolean;
1814
+ };
772
1815
  params: {
773
1816
  id: string;
774
1817
  } & {};
775
- query: any;
776
- headers: any;
1818
+ query: unknown;
1819
+ headers: unknown;
777
1820
  response: {
778
- [x: string]: any;
779
- [x: number]: any;
780
- [x: symbol]: any;
1821
+ 200: {
1822
+ error: string;
1823
+ success?: undefined;
1824
+ autoScale?: undefined;
1825
+ } | {
1826
+ success: true;
1827
+ autoScale: boolean;
1828
+ error?: undefined;
1829
+ };
1830
+ 422: {
1831
+ type: "validation";
1832
+ on: string;
1833
+ summary?: string;
1834
+ message?: string;
1835
+ found?: unknown;
1836
+ property?: string;
1837
+ expected?: string;
1838
+ };
781
1839
  };
782
1840
  };
783
1841
  };
@@ -792,16 +1850,35 @@ declare const publicApp: Elysia<"", {
792
1850
  voice: {
793
1851
  "sip-inbound": {
794
1852
  patch: {
795
- body: any;
1853
+ body: {
1854
+ password?: string | null | undefined;
1855
+ sipUri?: string | undefined;
1856
+ username?: string | null | undefined;
1857
+ };
796
1858
  params: {
797
1859
  id: string;
798
1860
  } & {};
799
- query: any;
800
- headers: any;
1861
+ query: unknown;
1862
+ headers: unknown;
801
1863
  response: {
802
- [x: string]: any;
803
- [x: number]: any;
804
- [x: symbol]: any;
1864
+ 200: {
1865
+ error: string;
1866
+ success?: undefined;
1867
+ sipInbound?: undefined;
1868
+ } | {
1869
+ success: true;
1870
+ sipInbound: SpectrumSipInboundConfig;
1871
+ error?: undefined;
1872
+ };
1873
+ 422: {
1874
+ type: "validation";
1875
+ on: string;
1876
+ summary?: string;
1877
+ message?: string;
1878
+ found?: unknown;
1879
+ property?: string;
1880
+ expected?: string;
1881
+ };
805
1882
  };
806
1883
  };
807
1884
  };
@@ -816,14 +1893,29 @@ declare const publicApp: Elysia<"", {
816
1893
  voice: {
817
1894
  "sip-inbound": {
818
1895
  delete: {
819
- body: any;
820
- params: any;
821
- query: any;
822
- headers: any;
1896
+ body: unknown;
1897
+ params: {
1898
+ id: string;
1899
+ } & {};
1900
+ query: unknown;
1901
+ headers: unknown;
823
1902
  response: {
824
- [x: string]: any;
825
- [x: number]: any;
826
- [x: symbol]: any;
1903
+ 200: {
1904
+ error: string;
1905
+ success?: undefined;
1906
+ } | {
1907
+ success: true;
1908
+ error?: undefined;
1909
+ };
1910
+ 422: {
1911
+ type: "validation";
1912
+ on: string;
1913
+ summary?: string;
1914
+ message?: string;
1915
+ found?: unknown;
1916
+ property?: string;
1917
+ expected?: string;
1918
+ };
827
1919
  };
828
1920
  };
829
1921
  };
@@ -837,14 +1929,35 @@ declare const publicApp: Elysia<"", {
837
1929
  ":id": {
838
1930
  slack: {
839
1931
  get: {
840
- body: any;
841
- params: any;
842
- query: any;
843
- headers: any;
1932
+ body: unknown;
1933
+ params: {
1934
+ id: string;
1935
+ } & {};
1936
+ query: unknown;
1937
+ headers: unknown;
844
1938
  response: {
845
- [x: string]: any;
846
- [x: number]: any;
847
- [x: symbol]: any;
1939
+ 200: {
1940
+ installUrl: string | null;
1941
+ appConfigId: string;
1942
+ appId: string | null;
1943
+ clientId: string | null;
1944
+ clientSecret: string | null;
1945
+ createdAt: string;
1946
+ enabledFeatures: SpectrumSlackFeature[];
1947
+ installationCount: number;
1948
+ projectId: string;
1949
+ signingSecret: string | null;
1950
+ updatedAt: string;
1951
+ } | null;
1952
+ 422: {
1953
+ type: "validation";
1954
+ on: string;
1955
+ summary?: string;
1956
+ message?: string;
1957
+ found?: unknown;
1958
+ property?: string;
1959
+ expected?: string;
1960
+ };
848
1961
  };
849
1962
  };
850
1963
  };
@@ -857,16 +1970,37 @@ declare const publicApp: Elysia<"", {
857
1970
  ":id": {
858
1971
  slack: {
859
1972
  put: {
860
- body: any;
1973
+ body: {
1974
+ clientId?: string | undefined;
1975
+ clientSecret?: string | undefined;
1976
+ enabledFeatures?: ("channel-history" | "read-tracking" | "dms" | "files" | "reactions" | "pins")[] | undefined;
1977
+ signingSecret?: string | undefined;
1978
+ appId?: string | undefined;
1979
+ };
861
1980
  params: {
862
1981
  id: string;
863
1982
  } & {};
864
- query: any;
865
- headers: any;
1983
+ query: unknown;
1984
+ headers: unknown;
866
1985
  response: {
867
- [x: string]: any;
868
- [x: number]: any;
869
- [x: symbol]: any;
1986
+ 200: {
1987
+ error: string;
1988
+ success?: undefined;
1989
+ config?: undefined;
1990
+ } | {
1991
+ success: true;
1992
+ config: SpectrumSlackConfig;
1993
+ error?: undefined;
1994
+ };
1995
+ 422: {
1996
+ type: "validation";
1997
+ on: string;
1998
+ summary?: string;
1999
+ message?: string;
2000
+ found?: unknown;
2001
+ property?: string;
2002
+ expected?: string;
2003
+ };
870
2004
  };
871
2005
  };
872
2006
  };
@@ -879,14 +2013,29 @@ declare const publicApp: Elysia<"", {
879
2013
  ":id": {
880
2014
  slack: {
881
2015
  delete: {
882
- body: any;
883
- params: any;
884
- query: any;
885
- headers: any;
2016
+ body: unknown;
2017
+ params: {
2018
+ id: string;
2019
+ } & {};
2020
+ query: unknown;
2021
+ headers: unknown;
886
2022
  response: {
887
- [x: string]: any;
888
- [x: number]: any;
889
- [x: symbol]: any;
2023
+ 200: {
2024
+ error: string;
2025
+ success?: undefined;
2026
+ } | {
2027
+ success: true;
2028
+ error?: undefined;
2029
+ };
2030
+ 422: {
2031
+ type: "validation";
2032
+ on: string;
2033
+ summary?: string;
2034
+ message?: string;
2035
+ found?: unknown;
2036
+ property?: string;
2037
+ expected?: string;
2038
+ };
890
2039
  };
891
2040
  };
892
2041
  };
@@ -900,14 +2049,23 @@ declare const publicApp: Elysia<"", {
900
2049
  slack: {
901
2050
  installations: {
902
2051
  get: {
903
- body: any;
904
- params: any;
905
- query: any;
906
- headers: any;
2052
+ body: unknown;
2053
+ params: {
2054
+ id: string;
2055
+ } & {};
2056
+ query: unknown;
2057
+ headers: unknown;
907
2058
  response: {
908
- [x: string]: any;
909
- [x: number]: any;
910
- [x: symbol]: any;
2059
+ 200: SpectrumSlackInstallation[];
2060
+ 422: {
2061
+ type: "validation";
2062
+ on: string;
2063
+ summary?: string;
2064
+ message?: string;
2065
+ found?: unknown;
2066
+ property?: string;
2067
+ expected?: string;
2068
+ };
911
2069
  };
912
2070
  };
913
2071
  };
@@ -923,14 +2081,30 @@ declare const publicApp: Elysia<"", {
923
2081
  installations: {
924
2082
  ":teamId": {
925
2083
  delete: {
926
- body: any;
927
- params: any;
928
- query: any;
929
- headers: any;
2084
+ body: unknown;
2085
+ params: {
2086
+ id: string;
2087
+ teamId: string;
2088
+ } & {};
2089
+ query: unknown;
2090
+ headers: unknown;
930
2091
  response: {
931
- [x: string]: any;
932
- [x: number]: any;
933
- [x: symbol]: any;
2092
+ 200: {
2093
+ error: string;
2094
+ success?: undefined;
2095
+ } | {
2096
+ success: true;
2097
+ error?: undefined;
2098
+ };
2099
+ 422: {
2100
+ type: "validation";
2101
+ on: string;
2102
+ summary?: string;
2103
+ message?: string;
2104
+ found?: unknown;
2105
+ property?: string;
2106
+ expected?: string;
2107
+ };
934
2108
  };
935
2109
  };
936
2110
  };
@@ -946,16 +2120,38 @@ declare const publicApp: Elysia<"", {
946
2120
  slack: {
947
2121
  setup: {
948
2122
  post: {
949
- body: any;
2123
+ body: {
2124
+ refreshToken?: string | undefined;
2125
+ configToken?: string | undefined;
2126
+ appName: string;
2127
+ enabledFeatures: ("channel-history" | "read-tracking" | "dms" | "files" | "reactions" | "pins")[];
2128
+ };
950
2129
  params: {
951
2130
  id: string;
952
2131
  } & {};
953
- query: any;
954
- headers: any;
2132
+ query: unknown;
2133
+ headers: unknown;
955
2134
  response: {
956
- [x: string]: any;
957
- [x: number]: any;
958
- [x: symbol]: any;
2135
+ 200: {
2136
+ error: string;
2137
+ success?: undefined;
2138
+ appId?: undefined;
2139
+ startUrl?: undefined;
2140
+ } | {
2141
+ success: true;
2142
+ appId: string | null;
2143
+ startUrl: string;
2144
+ error?: undefined;
2145
+ };
2146
+ 422: {
2147
+ type: "validation";
2148
+ on: string;
2149
+ summary?: string;
2150
+ message?: string;
2151
+ found?: unknown;
2152
+ property?: string;
2153
+ expected?: string;
2154
+ };
959
2155
  };
960
2156
  };
961
2157
  };
@@ -969,14 +2165,23 @@ declare const publicApp: Elysia<"", {
969
2165
  ":id": {
970
2166
  webhooks: {
971
2167
  get: {
972
- body: any;
973
- params: any;
974
- query: any;
975
- headers: any;
2168
+ body: unknown;
2169
+ params: {
2170
+ id: string;
2171
+ } & {};
2172
+ query: unknown;
2173
+ headers: unknown;
976
2174
  response: {
977
- [x: string]: any;
978
- [x: number]: any;
979
- [x: symbol]: any;
2175
+ 200: SpectrumWebhook[];
2176
+ 422: {
2177
+ type: "validation";
2178
+ on: string;
2179
+ summary?: string;
2180
+ message?: string;
2181
+ found?: unknown;
2182
+ property?: string;
2183
+ expected?: string;
2184
+ };
980
2185
  };
981
2186
  };
982
2187
  };
@@ -989,16 +2194,33 @@ declare const publicApp: Elysia<"", {
989
2194
  ":id": {
990
2195
  webhooks: {
991
2196
  post: {
992
- body: any;
2197
+ body: {
2198
+ webhookUrl: string;
2199
+ };
993
2200
  params: {
994
2201
  id: string;
995
2202
  } & {};
996
- query: any;
997
- headers: any;
2203
+ query: unknown;
2204
+ headers: unknown;
998
2205
  response: {
999
- [x: string]: any;
1000
- [x: number]: any;
1001
- [x: symbol]: any;
2206
+ 200: {
2207
+ error: string;
2208
+ success?: undefined;
2209
+ webhook?: undefined;
2210
+ } | {
2211
+ success: true;
2212
+ webhook: SpectrumWebhookCreated;
2213
+ error?: undefined;
2214
+ };
2215
+ 422: {
2216
+ type: "validation";
2217
+ on: string;
2218
+ summary?: string;
2219
+ message?: string;
2220
+ found?: unknown;
2221
+ property?: string;
2222
+ expected?: string;
2223
+ };
1002
2224
  };
1003
2225
  };
1004
2226
  };
@@ -1012,14 +2234,30 @@ declare const publicApp: Elysia<"", {
1012
2234
  webhooks: {
1013
2235
  ":webhookId": {
1014
2236
  delete: {
1015
- body: any;
1016
- params: any;
1017
- query: any;
1018
- headers: any;
2237
+ body: unknown;
2238
+ params: {
2239
+ id: string;
2240
+ webhookId: string;
2241
+ } & {};
2242
+ query: unknown;
2243
+ headers: unknown;
1019
2244
  response: {
1020
- [x: string]: any;
1021
- [x: number]: any;
1022
- [x: symbol]: any;
2245
+ 200: {
2246
+ error: string;
2247
+ success?: undefined;
2248
+ } | {
2249
+ success: true;
2250
+ error?: undefined;
2251
+ };
2252
+ 422: {
2253
+ type: "validation";
2254
+ on: string;
2255
+ summary?: string;
2256
+ message?: string;
2257
+ found?: unknown;
2258
+ property?: string;
2259
+ expected?: string;
2260
+ };
1023
2261
  };
1024
2262
  };
1025
2263
  };
@@ -1033,14 +2271,42 @@ declare const publicApp: Elysia<"", {
1033
2271
  ":id": {
1034
2272
  members: {
1035
2273
  get: {
1036
- body: any;
1037
- params: any;
1038
- query: any;
1039
- headers: any;
2274
+ body: unknown;
2275
+ params: {
2276
+ id: string;
2277
+ } & {};
2278
+ query: unknown;
2279
+ headers: unknown;
1040
2280
  response: {
1041
- [x: string]: any;
1042
- [x: number]: any;
1043
- [x: symbol]: any;
2281
+ 200: {
2282
+ readonly error: "Project not found";
2283
+ members?: undefined;
2284
+ } | {
2285
+ members: {
2286
+ id: string;
2287
+ projectId: string;
2288
+ userId: string;
2289
+ invitedByUserId: string | null;
2290
+ createdAt: Date;
2291
+ role: "owner" | "admin";
2292
+ user: {
2293
+ id: string;
2294
+ name: string;
2295
+ email: string;
2296
+ image: string | null;
2297
+ };
2298
+ }[];
2299
+ error?: undefined;
2300
+ };
2301
+ 422: {
2302
+ type: "validation";
2303
+ on: string;
2304
+ summary?: string;
2305
+ message?: string;
2306
+ found?: unknown;
2307
+ property?: string;
2308
+ expected?: string;
2309
+ };
1044
2310
  };
1045
2311
  };
1046
2312
  };
@@ -1053,16 +2319,43 @@ declare const publicApp: Elysia<"", {
1053
2319
  ":id": {
1054
2320
  members: {
1055
2321
  post: {
1056
- body: any;
2322
+ body: {
2323
+ email: string;
2324
+ };
1057
2325
  params: {
1058
2326
  id: string;
1059
2327
  } & {};
1060
- query: any;
1061
- headers: any;
2328
+ query: unknown;
2329
+ headers: unknown;
1062
2330
  response: {
1063
- [x: string]: any;
1064
- [x: number]: any;
1065
- [x: symbol]: any;
2331
+ 200: {
2332
+ error: string;
2333
+ alreadyPending?: undefined;
2334
+ invitationId?: undefined;
2335
+ success?: undefined;
2336
+ invited?: undefined;
2337
+ } | {
2338
+ alreadyPending: true;
2339
+ invitationId: string;
2340
+ error?: undefined;
2341
+ success?: undefined;
2342
+ invited?: undefined;
2343
+ } | {
2344
+ success: true;
2345
+ invited: string;
2346
+ error?: undefined;
2347
+ alreadyPending?: undefined;
2348
+ invitationId?: undefined;
2349
+ };
2350
+ 422: {
2351
+ type: "validation";
2352
+ on: string;
2353
+ summary?: string;
2354
+ message?: string;
2355
+ found?: unknown;
2356
+ property?: string;
2357
+ expected?: string;
2358
+ };
1066
2359
  };
1067
2360
  };
1068
2361
  };
@@ -1076,14 +2369,33 @@ declare const publicApp: Elysia<"", {
1076
2369
  members: {
1077
2370
  ":memberUserId": {
1078
2371
  delete: {
1079
- body: any;
1080
- params: any;
1081
- query: any;
1082
- headers: any;
2372
+ body: unknown;
2373
+ params: {
2374
+ id: string;
2375
+ memberUserId: string;
2376
+ } & {};
2377
+ query: unknown;
2378
+ headers: unknown;
1083
2379
  response: {
1084
- [x: string]: any;
1085
- [x: number]: any;
1086
- [x: symbol]: any;
2380
+ 200: {
2381
+ readonly error: "Project not found";
2382
+ success?: undefined;
2383
+ } | {
2384
+ readonly error: "The project owner cannot be removed";
2385
+ success?: undefined;
2386
+ } | {
2387
+ success: true;
2388
+ error?: undefined;
2389
+ };
2390
+ 422: {
2391
+ type: "validation";
2392
+ on: string;
2393
+ summary?: string;
2394
+ message?: string;
2395
+ found?: unknown;
2396
+ property?: string;
2397
+ expected?: string;
2398
+ };
1087
2399
  };
1088
2400
  };
1089
2401
  };
@@ -1097,14 +2409,39 @@ declare const publicApp: Elysia<"", {
1097
2409
  ":id": {
1098
2410
  invitations: {
1099
2411
  get: {
1100
- body: any;
1101
- params: any;
1102
- query: any;
1103
- headers: any;
2412
+ body: unknown;
2413
+ params: {
2414
+ id: string;
2415
+ } & {};
2416
+ query: unknown;
2417
+ headers: unknown;
1104
2418
  response: {
1105
- [x: string]: any;
1106
- [x: number]: any;
1107
- [x: symbol]: any;
2419
+ 200: {
2420
+ readonly error: "Project not found";
2421
+ invitations?: undefined;
2422
+ } | {
2423
+ invitations: {
2424
+ id: string;
2425
+ email: string;
2426
+ invitedBy: {
2427
+ id: string;
2428
+ name: string;
2429
+ email: string;
2430
+ } | null;
2431
+ createdAt: Date;
2432
+ expiresAt: Date;
2433
+ }[];
2434
+ error?: undefined;
2435
+ };
2436
+ 422: {
2437
+ type: "validation";
2438
+ on: string;
2439
+ summary?: string;
2440
+ message?: string;
2441
+ found?: unknown;
2442
+ property?: string;
2443
+ expected?: string;
2444
+ };
1108
2445
  };
1109
2446
  };
1110
2447
  };
@@ -1118,14 +2455,30 @@ declare const publicApp: Elysia<"", {
1118
2455
  invitations: {
1119
2456
  ":invitationId": {
1120
2457
  delete: {
1121
- body: any;
1122
- params: any;
1123
- query: any;
1124
- headers: any;
2458
+ body: unknown;
2459
+ params: {
2460
+ id: string;
2461
+ invitationId: string;
2462
+ } & {};
2463
+ query: unknown;
2464
+ headers: unknown;
1125
2465
  response: {
1126
- [x: string]: any;
1127
- [x: number]: any;
1128
- [x: symbol]: any;
2466
+ 200: {
2467
+ readonly error: "Project not found";
2468
+ success?: undefined;
2469
+ } | {
2470
+ success: true;
2471
+ error?: undefined;
2472
+ };
2473
+ 422: {
2474
+ type: "validation";
2475
+ on: string;
2476
+ summary?: string;
2477
+ message?: string;
2478
+ found?: unknown;
2479
+ property?: string;
2480
+ expected?: string;
2481
+ };
1129
2482
  };
1130
2483
  };
1131
2484
  };
@@ -1141,14 +2494,33 @@ declare const publicApp: Elysia<"", {
1141
2494
  ":invitationId": {
1142
2495
  link: {
1143
2496
  post: {
1144
- body: any;
1145
- params: any;
1146
- query: any;
1147
- headers: any;
2497
+ body: unknown;
2498
+ params: {
2499
+ id: string;
2500
+ invitationId: string;
2501
+ } & {};
2502
+ query: unknown;
2503
+ headers: unknown;
1148
2504
  response: {
1149
- [x: string]: any;
1150
- [x: number]: any;
1151
- [x: symbol]: any;
2505
+ 200: {
2506
+ readonly error: "Project not found";
2507
+ readonly shareUrl?: undefined;
2508
+ } | {
2509
+ readonly error: "This invitation is no longer valid";
2510
+ readonly shareUrl?: undefined;
2511
+ } | {
2512
+ readonly shareUrl: string;
2513
+ error?: undefined;
2514
+ };
2515
+ 422: {
2516
+ type: "validation";
2517
+ on: string;
2518
+ summary?: string;
2519
+ message?: string;
2520
+ found?: unknown;
2521
+ property?: string;
2522
+ expected?: string;
2523
+ };
1152
2524
  };
1153
2525
  };
1154
2526
  };
@@ -1162,14 +2534,35 @@ declare const publicApp: Elysia<"", {
1162
2534
  invitations: {
1163
2535
  ":token": {
1164
2536
  get: {
1165
- body: any;
1166
- params: any;
1167
- query: any;
1168
- headers: any;
2537
+ body: unknown;
2538
+ params: {
2539
+ token: string;
2540
+ } & {};
2541
+ query: unknown;
2542
+ headers: unknown;
1169
2543
  response: {
1170
- [x: string]: any;
1171
- [x: number]: any;
1172
- [x: symbol]: any;
2544
+ 200: {
2545
+ valid: false;
2546
+ email?: undefined;
2547
+ projectId?: undefined;
2548
+ projectName?: undefined;
2549
+ invitedByName?: undefined;
2550
+ } | {
2551
+ valid: true;
2552
+ email: string;
2553
+ projectId: string;
2554
+ projectName: string;
2555
+ invitedByName: string | null;
2556
+ };
2557
+ 422: {
2558
+ type: "validation";
2559
+ on: string;
2560
+ summary?: string;
2561
+ message?: string;
2562
+ found?: unknown;
2563
+ property?: string;
2564
+ expected?: string;
2565
+ };
1173
2566
  };
1174
2567
  };
1175
2568
  };
@@ -1181,14 +2574,43 @@ declare const publicApp: Elysia<"", {
1181
2574
  ":token": {
1182
2575
  accept: {
1183
2576
  post: {
1184
- body: any;
1185
- params: any;
1186
- query: any;
1187
- headers: any;
2577
+ body: unknown;
2578
+ params: {
2579
+ token: string;
2580
+ } & {};
2581
+ query: unknown;
2582
+ headers: unknown;
1188
2583
  response: {
1189
- [x: string]: any;
1190
- [x: number]: any;
1191
- [x: symbol]: any;
2584
+ 200: {
2585
+ readonly error: "This invitation is no longer valid";
2586
+ invitedEmail?: undefined;
2587
+ success?: undefined;
2588
+ projectId?: undefined;
2589
+ } | {
2590
+ error: "email_mismatch";
2591
+ invitedEmail: string;
2592
+ success?: undefined;
2593
+ projectId?: undefined;
2594
+ } | {
2595
+ error: "email_unverified";
2596
+ invitedEmail?: undefined;
2597
+ success?: undefined;
2598
+ projectId?: undefined;
2599
+ } | {
2600
+ success: true;
2601
+ projectId: string;
2602
+ error?: undefined;
2603
+ invitedEmail?: undefined;
2604
+ };
2605
+ 422: {
2606
+ type: "validation";
2607
+ on: string;
2608
+ summary?: string;
2609
+ message?: string;
2610
+ found?: unknown;
2611
+ property?: string;
2612
+ expected?: string;
2613
+ };
1192
2614
  };
1193
2615
  };
1194
2616
  };
@@ -1200,14 +2622,12 @@ declare const publicApp: Elysia<"", {
1200
2622
  billing: {
1201
2623
  plans: {
1202
2624
  get: {
1203
- body: any;
1204
- params: any;
1205
- query: any;
1206
- headers: any;
2625
+ body: unknown;
2626
+ params: {};
2627
+ query: unknown;
2628
+ headers: unknown;
1207
2629
  response: {
1208
- [x: string]: any;
1209
- [x: number]: any;
1210
- [x: symbol]: any;
2630
+ 200: BillingProduct[];
1211
2631
  };
1212
2632
  };
1213
2633
  };
@@ -1218,14 +2638,33 @@ declare const publicApp: Elysia<"", {
1218
2638
  billing: {
1219
2639
  checkout: {
1220
2640
  post: {
1221
- body: any;
2641
+ body: {
2642
+ quantity?: number | undefined;
2643
+ projectId: string;
2644
+ priceId: string;
2645
+ };
1222
2646
  params: {};
1223
- query: any;
1224
- headers: any;
2647
+ query: unknown;
2648
+ headers: unknown;
1225
2649
  response: {
1226
- [x: string]: any;
1227
- [x: number]: any;
1228
- [x: symbol]: any;
2650
+ 200: {
2651
+ error: string;
2652
+ success?: undefined;
2653
+ url?: undefined;
2654
+ } | {
2655
+ success: true;
2656
+ url: string;
2657
+ error?: undefined;
2658
+ };
2659
+ 422: {
2660
+ type: "validation";
2661
+ on: string;
2662
+ summary?: string;
2663
+ message?: string;
2664
+ found?: unknown;
2665
+ property?: string;
2666
+ expected?: string;
2667
+ };
1229
2668
  };
1230
2669
  };
1231
2670
  };
@@ -1236,14 +2675,14 @@ declare const publicApp: Elysia<"", {
1236
2675
  billing: {
1237
2676
  "max-plan": {
1238
2677
  get: {
1239
- body: any;
1240
- params: any;
1241
- query: any;
1242
- headers: any;
2678
+ body: unknown;
2679
+ params: {};
2680
+ query: unknown;
2681
+ headers: unknown;
1243
2682
  response: {
1244
- [x: string]: any;
1245
- [x: number]: any;
1246
- [x: symbol]: any;
2683
+ 200: {
2684
+ tier: PlanTier;
2685
+ };
1247
2686
  };
1248
2687
  };
1249
2688
  };
@@ -1255,14 +2694,24 @@ declare const publicApp: Elysia<"", {
1255
2694
  ":id": {
1256
2695
  subscription: {
1257
2696
  get: {
1258
- body: any;
1259
- params: any;
1260
- query: any;
1261
- headers: any;
2697
+ body: unknown;
2698
+ params: {
2699
+ id: string;
2700
+ } & {};
2701
+ query: unknown;
2702
+ headers: unknown;
1262
2703
  response: {
1263
- [x: string]: any;
1264
- [x: number]: any;
1265
- [x: symbol]: any;
2704
+ 200: SpectrumSubscription;
2705
+ 422: {
2706
+ type: "validation";
2707
+ on: string;
2708
+ summary?: string;
2709
+ message?: string;
2710
+ found?: unknown;
2711
+ property?: string;
2712
+ expected?: string;
2713
+ };
2714
+ 503: "subscription_unavailable";
1266
2715
  };
1267
2716
  };
1268
2717
  };
@@ -1276,14 +2725,29 @@ declare const publicApp: Elysia<"", {
1276
2725
  subscription: {
1277
2726
  poll: {
1278
2727
  get: {
1279
- body: any;
1280
- params: any;
1281
- query: any;
1282
- headers: any;
2728
+ body: unknown;
2729
+ params: {
2730
+ id: string;
2731
+ } & {};
2732
+ query: unknown;
2733
+ headers: unknown;
1283
2734
  response: {
1284
- [x: string]: any;
1285
- [x: number]: any;
1286
- [x: symbol]: any;
2735
+ 200: {
2736
+ customer_id: string | null;
2737
+ status: "active" | "canceled" | "past_due" | null;
2738
+ subscription_id: string | null;
2739
+ tier: string;
2740
+ active: boolean;
2741
+ };
2742
+ 422: {
2743
+ type: "validation";
2744
+ on: string;
2745
+ summary?: string;
2746
+ message?: string;
2747
+ found?: unknown;
2748
+ property?: string;
2749
+ expected?: string;
2750
+ };
1287
2751
  };
1288
2752
  };
1289
2753
  };
@@ -1298,14 +2762,31 @@ declare const publicApp: Elysia<"", {
1298
2762
  subscription: {
1299
2763
  manage: {
1300
2764
  post: {
1301
- body: any;
1302
- params: any;
1303
- query: any;
1304
- headers: any;
2765
+ body: unknown;
2766
+ params: {
2767
+ id: string;
2768
+ } & {};
2769
+ query: unknown;
2770
+ headers: unknown;
1305
2771
  response: {
1306
- [x: string]: any;
1307
- [x: number]: any;
1308
- [x: symbol]: any;
2772
+ 200: {
2773
+ error: string;
2774
+ success?: undefined;
2775
+ url?: undefined;
2776
+ } | {
2777
+ success: true;
2778
+ url: string;
2779
+ error?: undefined;
2780
+ };
2781
+ 422: {
2782
+ type: "validation";
2783
+ on: string;
2784
+ summary?: string;
2785
+ message?: string;
2786
+ found?: unknown;
2787
+ property?: string;
2788
+ expected?: string;
2789
+ };
1309
2790
  };
1310
2791
  };
1311
2792
  };
@@ -1320,14 +2801,25 @@ declare const publicApp: Elysia<"", {
1320
2801
  "call-registry": {
1321
2802
  profile: {
1322
2803
  get: {
1323
- body: any;
1324
- params: any;
1325
- query: any;
1326
- headers: any;
2804
+ body: unknown;
2805
+ params: {
2806
+ id: string;
2807
+ } & {};
2808
+ query: unknown;
2809
+ headers: unknown;
1327
2810
  response: {
1328
- [x: string]: any;
1329
- [x: number]: any;
1330
- [x: symbol]: any;
2811
+ 200: CallRegistryProfile | {
2812
+ error: string;
2813
+ } | null;
2814
+ 422: {
2815
+ type: "validation";
2816
+ on: string;
2817
+ summary?: string;
2818
+ message?: string;
2819
+ found?: unknown;
2820
+ property?: string;
2821
+ expected?: string;
2822
+ };
1331
2823
  };
1332
2824
  };
1333
2825
  };
@@ -1342,16 +2834,44 @@ declare const publicApp: Elysia<"", {
1342
2834
  "call-registry": {
1343
2835
  profile: {
1344
2836
  put: {
1345
- body: any;
2837
+ body: {
2838
+ autoRegisterNumbers?: boolean | undefined;
2839
+ companyAddressLine2?: string | undefined;
2840
+ secondContactEmail?: string | undefined;
2841
+ explanation?: string | undefined;
2842
+ type: string;
2843
+ companyName: string;
2844
+ state: string;
2845
+ category: string;
2846
+ lineType: string;
2847
+ claim: string;
2848
+ companyAddressLine1: string;
2849
+ city: string;
2850
+ zip: string;
2851
+ companyURL: string;
2852
+ contactName: string;
2853
+ contactPhone: string;
2854
+ contactEmail: string;
2855
+ callCount: string | number;
2856
+ };
1346
2857
  params: {
1347
2858
  id: string;
1348
2859
  } & {};
1349
- query: any;
1350
- headers: any;
2860
+ query: unknown;
2861
+ headers: unknown;
1351
2862
  response: {
1352
- [x: string]: any;
1353
- [x: number]: any;
1354
- [x: symbol]: any;
2863
+ 200: CallRegistryProfile | {
2864
+ error: string;
2865
+ };
2866
+ 422: {
2867
+ type: "validation";
2868
+ on: string;
2869
+ summary?: string;
2870
+ message?: string;
2871
+ found?: unknown;
2872
+ property?: string;
2873
+ expected?: string;
2874
+ };
1355
2875
  };
1356
2876
  };
1357
2877
  };
@@ -1366,16 +2886,44 @@ declare const publicApp: Elysia<"", {
1366
2886
  "call-registry": {
1367
2887
  profile: {
1368
2888
  patch: {
1369
- body: any;
2889
+ body: {
2890
+ type?: string | undefined;
2891
+ companyName?: string | undefined;
2892
+ state?: string | undefined;
2893
+ category?: string | undefined;
2894
+ autoRegisterNumbers?: boolean | undefined;
2895
+ lineType?: string | undefined;
2896
+ claim?: string | undefined;
2897
+ companyAddressLine1?: string | undefined;
2898
+ companyAddressLine2?: string | undefined;
2899
+ city?: string | undefined;
2900
+ zip?: string | undefined;
2901
+ companyURL?: string | undefined;
2902
+ contactName?: string | undefined;
2903
+ contactPhone?: string | undefined;
2904
+ contactEmail?: string | undefined;
2905
+ secondContactEmail?: string | undefined;
2906
+ callCount?: string | number | undefined;
2907
+ explanation?: string | undefined;
2908
+ };
1370
2909
  params: {
1371
2910
  id: string;
1372
2911
  } & {};
1373
- query: any;
1374
- headers: any;
2912
+ query: unknown;
2913
+ headers: unknown;
1375
2914
  response: {
1376
- [x: string]: any;
1377
- [x: number]: any;
1378
- [x: symbol]: any;
2915
+ 200: CallRegistryProfile | {
2916
+ error: string;
2917
+ };
2918
+ 422: {
2919
+ type: "validation";
2920
+ on: string;
2921
+ summary?: string;
2922
+ message?: string;
2923
+ found?: unknown;
2924
+ property?: string;
2925
+ expected?: string;
2926
+ };
1379
2927
  };
1380
2928
  };
1381
2929
  };
@@ -1390,14 +2938,23 @@ declare const publicApp: Elysia<"", {
1390
2938
  "call-registry": {
1391
2939
  registrations: {
1392
2940
  get: {
1393
- body: any;
1394
- params: any;
1395
- query: any;
1396
- headers: any;
2941
+ body: unknown;
2942
+ params: {
2943
+ id: string;
2944
+ } & {};
2945
+ query: unknown;
2946
+ headers: unknown;
1397
2947
  response: {
1398
- [x: string]: any;
1399
- [x: number]: any;
1400
- [x: symbol]: any;
2948
+ 200: CallRegistration[];
2949
+ 422: {
2950
+ type: "validation";
2951
+ on: string;
2952
+ summary?: string;
2953
+ message?: string;
2954
+ found?: unknown;
2955
+ property?: string;
2956
+ expected?: string;
2957
+ };
1401
2958
  };
1402
2959
  };
1403
2960
  };
@@ -1412,16 +2969,140 @@ declare const publicApp: Elysia<"", {
1412
2969
  "call-registry": {
1413
2970
  registrations: {
1414
2971
  post: {
1415
- body: any;
2972
+ body: {
2973
+ phoneNumbers: string[];
2974
+ };
1416
2975
  params: {
1417
2976
  id: string;
1418
2977
  } & {};
1419
- query: any;
1420
- headers: any;
2978
+ query: unknown;
2979
+ headers: unknown;
1421
2980
  response: {
1422
- [x: string]: any;
1423
- [x: number]: any;
1424
- [x: symbol]: any;
2981
+ 200: CallRegistrationStarted | {
2982
+ error: string;
2983
+ };
2984
+ 422: {
2985
+ type: "validation";
2986
+ on: string;
2987
+ summary?: string;
2988
+ message?: string;
2989
+ found?: unknown;
2990
+ property?: string;
2991
+ expected?: string;
2992
+ };
2993
+ };
2994
+ };
2995
+ };
2996
+ };
2997
+ };
2998
+ };
2999
+ };
3000
+ } & {
3001
+ api: {
3002
+ projects: {
3003
+ ":id": {
3004
+ payments: {
3005
+ get: {
3006
+ body: unknown;
3007
+ params: {
3008
+ id: string;
3009
+ } & {};
3010
+ query: unknown;
3011
+ headers: unknown;
3012
+ response: {
3013
+ 200: PaymentsStatus;
3014
+ 404: "project_not_found";
3015
+ 422: {
3016
+ type: "validation";
3017
+ on: string;
3018
+ summary?: string;
3019
+ message?: string;
3020
+ found?: unknown;
3021
+ property?: string;
3022
+ expected?: string;
3023
+ };
3024
+ 503: "payments_unavailable";
3025
+ };
3026
+ };
3027
+ };
3028
+ };
3029
+ };
3030
+ };
3031
+ } & {
3032
+ api: {
3033
+ projects: {
3034
+ ":id": {
3035
+ payments: {
3036
+ enable: {
3037
+ post: {
3038
+ body: unknown;
3039
+ params: {
3040
+ id: string;
3041
+ } & {};
3042
+ query: unknown;
3043
+ headers: unknown;
3044
+ response: {
3045
+ 200: {
3046
+ error: string;
3047
+ } | {
3048
+ agent_id: string;
3049
+ agent_name: string;
3050
+ project_id: string;
3051
+ status: string;
3052
+ success: true;
3053
+ error?: undefined;
3054
+ };
3055
+ 422: {
3056
+ type: "validation";
3057
+ on: string;
3058
+ summary?: string;
3059
+ message?: string;
3060
+ found?: unknown;
3061
+ property?: string;
3062
+ expected?: string;
3063
+ };
3064
+ };
3065
+ };
3066
+ };
3067
+ };
3068
+ };
3069
+ };
3070
+ };
3071
+ } & {
3072
+ api: {
3073
+ projects: {
3074
+ ":id": {
3075
+ payments: {
3076
+ kyb: {
3077
+ invite: {
3078
+ post: {
3079
+ body: unknown;
3080
+ params: {
3081
+ id: string;
3082
+ } & {};
3083
+ query: unknown;
3084
+ headers: unknown;
3085
+ response: {
3086
+ 200: {
3087
+ error: string;
3088
+ } | {
3089
+ invitation_id: string;
3090
+ project_id: string;
3091
+ status: string;
3092
+ url: string;
3093
+ success: true;
3094
+ error?: undefined;
3095
+ };
3096
+ 422: {
3097
+ type: "validation";
3098
+ on: string;
3099
+ summary?: string;
3100
+ message?: string;
3101
+ found?: unknown;
3102
+ property?: string;
3103
+ expected?: string;
3104
+ };
3105
+ };
1425
3106
  };
1426
3107
  };
1427
3108
  };
@@ -1433,14 +3114,20 @@ declare const publicApp: Elysia<"", {
1433
3114
  api: {
1434
3115
  profile: {
1435
3116
  get: {
1436
- body: any;
1437
- params: any;
1438
- query: any;
1439
- headers: any;
3117
+ body: unknown;
3118
+ params: {};
3119
+ query: unknown;
3120
+ headers: unknown;
1440
3121
  response: {
1441
- [x: string]: any;
1442
- [x: number]: any;
1443
- [x: symbol]: any;
3122
+ 200: {
3123
+ id: string;
3124
+ userId: string;
3125
+ type: string;
3126
+ referralSource: string | null;
3127
+ platforms: string[] | null;
3128
+ background: string | null;
3129
+ companyName: string | null;
3130
+ } | null;
1444
3131
  };
1445
3132
  };
1446
3133
  };
@@ -1450,14 +3137,26 @@ declare const publicApp: Elysia<"", {
1450
3137
  profile: {
1451
3138
  "spectrum-updates": {
1452
3139
  patch: {
1453
- body: any;
3140
+ body: {
3141
+ enabled: boolean;
3142
+ };
1454
3143
  params: {};
1455
- query: any;
1456
- headers: any;
3144
+ query: unknown;
3145
+ headers: unknown;
1457
3146
  response: {
1458
- [x: string]: any;
1459
- [x: number]: any;
1460
- [x: symbol]: any;
3147
+ 200: {
3148
+ success: true;
3149
+ receiveSpectrumUpdates: boolean;
3150
+ };
3151
+ 422: {
3152
+ type: "validation";
3153
+ on: string;
3154
+ summary?: string;
3155
+ message?: string;
3156
+ found?: unknown;
3157
+ property?: string;
3158
+ expected?: string;
3159
+ };
1461
3160
  };
1462
3161
  };
1463
3162
  };
@@ -1468,14 +3167,14 @@ declare const publicApp: Elysia<"", {
1468
3167
  profile: {
1469
3168
  "promotional-status": {
1470
3169
  get: {
1471
- body: any;
1472
- params: any;
1473
- query: any;
1474
- headers: any;
3170
+ body: unknown;
3171
+ params: {};
3172
+ query: unknown;
3173
+ headers: unknown;
1475
3174
  response: {
1476
- [x: string]: any;
1477
- [x: number]: any;
1478
- [x: symbol]: any;
3175
+ 200: {
3176
+ subscribed: boolean;
3177
+ };
1479
3178
  };
1480
3179
  };
1481
3180
  };
@@ -1486,14 +3185,26 @@ declare const publicApp: Elysia<"", {
1486
3185
  profile: {
1487
3186
  "promotional-emails": {
1488
3187
  patch: {
1489
- body: any;
3188
+ body: {
3189
+ enabled: boolean;
3190
+ };
1490
3191
  params: {};
1491
- query: any;
1492
- headers: any;
3192
+ query: unknown;
3193
+ headers: unknown;
1493
3194
  response: {
1494
- [x: string]: any;
1495
- [x: number]: any;
1496
- [x: symbol]: any;
3195
+ 200: {
3196
+ success: true;
3197
+ subscribed: boolean;
3198
+ };
3199
+ 422: {
3200
+ type: "validation";
3201
+ on: string;
3202
+ summary?: string;
3203
+ message?: string;
3204
+ found?: unknown;
3205
+ property?: string;
3206
+ expected?: string;
3207
+ };
1497
3208
  };
1498
3209
  };
1499
3210
  };
@@ -1504,14 +3215,27 @@ declare const publicApp: Elysia<"", {
1504
3215
  posthog: {
1505
3216
  "identity-snapshot": {
1506
3217
  get: {
1507
- body: any;
1508
- params: any;
1509
- query: any;
1510
- headers: any;
3218
+ body: unknown;
3219
+ params: {};
3220
+ query: unknown;
3221
+ headers: unknown;
1511
3222
  response: {
1512
- [x: string]: any;
1513
- [x: number]: any;
1514
- [x: symbol]: any;
3223
+ 200: {
3224
+ id: string;
3225
+ email: string;
3226
+ name: string;
3227
+ phoneNumber: string | null;
3228
+ receiveSpectrumUpdates: boolean;
3229
+ createdAt: string;
3230
+ onboardedAt: string | null;
3231
+ profile: {
3232
+ type: string;
3233
+ referralSource: string | null;
3234
+ platforms: string[] | null;
3235
+ background: string | null;
3236
+ companyName: string | null;
3237
+ } | null;
3238
+ } | null;
1515
3239
  };
1516
3240
  };
1517
3241
  };
@@ -1522,14 +3246,25 @@ declare const publicApp: Elysia<"", {
1522
3246
  onboarding: {
1523
3247
  state: {
1524
3248
  get: {
1525
- body: any;
1526
- params: any;
1527
- query: any;
1528
- headers: any;
3249
+ body: unknown;
3250
+ params: {};
3251
+ query: unknown;
3252
+ headers: unknown;
1529
3253
  response: {
1530
- [x: string]: any;
1531
- [x: number]: any;
1532
- [x: symbol]: any;
3254
+ 200: {
3255
+ onboarded: boolean;
3256
+ phoneVerified: boolean;
3257
+ name: string;
3258
+ email: string;
3259
+ inferredType: AccountType;
3260
+ profile: {
3261
+ type: string;
3262
+ referralSource: string | null;
3263
+ platforms: string[] | null;
3264
+ background: string | null;
3265
+ companyName: string | null;
3266
+ } | null;
3267
+ };
1533
3268
  };
1534
3269
  };
1535
3270
  };
@@ -1540,14 +3275,25 @@ declare const publicApp: Elysia<"", {
1540
3275
  onboarding: {
1541
3276
  name: {
1542
3277
  post: {
1543
- body: any;
3278
+ body: {
3279
+ name: string;
3280
+ };
1544
3281
  params: {};
1545
- query: any;
1546
- headers: any;
3282
+ query: unknown;
3283
+ headers: unknown;
1547
3284
  response: {
1548
- [x: string]: any;
1549
- [x: number]: any;
1550
- [x: symbol]: any;
3285
+ 200: {
3286
+ success: boolean;
3287
+ };
3288
+ 422: {
3289
+ type: "validation";
3290
+ on: string;
3291
+ summary?: string;
3292
+ message?: string;
3293
+ found?: unknown;
3294
+ property?: string;
3295
+ expected?: string;
3296
+ };
1551
3297
  };
1552
3298
  };
1553
3299
  };
@@ -1558,14 +3304,25 @@ declare const publicApp: Elysia<"", {
1558
3304
  onboarding: {
1559
3305
  referral: {
1560
3306
  post: {
1561
- body: any;
3307
+ body: {
3308
+ referralSource: string;
3309
+ };
1562
3310
  params: {};
1563
- query: any;
1564
- headers: any;
3311
+ query: unknown;
3312
+ headers: unknown;
1565
3313
  response: {
1566
- [x: string]: any;
1567
- [x: number]: any;
1568
- [x: symbol]: any;
3314
+ 200: {
3315
+ success: boolean;
3316
+ };
3317
+ 422: {
3318
+ type: "validation";
3319
+ on: string;
3320
+ summary?: string;
3321
+ message?: string;
3322
+ found?: unknown;
3323
+ property?: string;
3324
+ expected?: string;
3325
+ };
1569
3326
  };
1570
3327
  };
1571
3328
  };
@@ -1576,14 +3333,28 @@ declare const publicApp: Elysia<"", {
1576
3333
  onboarding: {
1577
3334
  details: {
1578
3335
  post: {
1579
- body: any;
3336
+ body: {
3337
+ type?: "developer" | "organization" | undefined;
3338
+ platforms?: string[] | undefined;
3339
+ background?: string | undefined;
3340
+ companyName?: string | undefined;
3341
+ };
1580
3342
  params: {};
1581
- query: any;
1582
- headers: any;
3343
+ query: unknown;
3344
+ headers: unknown;
1583
3345
  response: {
1584
- [x: string]: any;
1585
- [x: number]: any;
1586
- [x: symbol]: any;
3346
+ 200: {
3347
+ success: boolean;
3348
+ };
3349
+ 422: {
3350
+ type: "validation";
3351
+ on: string;
3352
+ summary?: string;
3353
+ message?: string;
3354
+ found?: unknown;
3355
+ property?: string;
3356
+ expected?: string;
3357
+ };
1587
3358
  };
1588
3359
  };
1589
3360
  };
@@ -1594,14 +3365,19 @@ declare const publicApp: Elysia<"", {
1594
3365
  slack: {
1595
3366
  features: {
1596
3367
  get: {
1597
- body: any;
1598
- params: any;
1599
- query: any;
1600
- headers: any;
3368
+ body: unknown;
3369
+ params: {};
3370
+ query: unknown;
3371
+ headers: unknown;
1601
3372
  response: {
1602
- [x: string]: any;
1603
- [x: number]: any;
1604
- [x: symbol]: any;
3373
+ 200: {
3374
+ requiredScopes: string[];
3375
+ features: Record<string, {
3376
+ label: string;
3377
+ description: string;
3378
+ scopes: string[];
3379
+ }>;
3380
+ } | null;
1605
3381
  };
1606
3382
  };
1607
3383
  };
@@ -1614,14 +3390,29 @@ declare const publicApp: Elysia<"", {
1614
3390
  slack: {
1615
3391
  "support-channel": {
1616
3392
  get: {
1617
- body: any;
1618
- params: any;
1619
- query: any;
1620
- headers: any;
3393
+ body: unknown;
3394
+ params: {
3395
+ id: string;
3396
+ } & {};
3397
+ query: unknown;
3398
+ headers: unknown;
1621
3399
  response: {
1622
- [x: string]: any;
1623
- [x: number]: any;
1624
- [x: symbol]: any;
3400
+ 200: {
3401
+ hasJoined: boolean;
3402
+ openUrl: null;
3403
+ } | {
3404
+ hasJoined: boolean;
3405
+ openUrl: string;
3406
+ };
3407
+ 422: {
3408
+ type: "validation";
3409
+ on: string;
3410
+ summary?: string;
3411
+ message?: string;
3412
+ found?: unknown;
3413
+ property?: string;
3414
+ expected?: string;
3415
+ };
1625
3416
  };
1626
3417
  };
1627
3418
  };
@@ -1637,14 +3428,23 @@ declare const publicApp: Elysia<"", {
1637
3428
  "support-channel": {
1638
3429
  open: {
1639
3430
  get: {
1640
- body: any;
1641
- params: any;
1642
- query: any;
1643
- headers: any;
3431
+ body: unknown;
3432
+ params: {
3433
+ id: string;
3434
+ } & {};
3435
+ query: unknown;
3436
+ headers: unknown;
1644
3437
  response: {
1645
- [x: string]: any;
1646
- [x: number]: any;
1647
- [x: symbol]: any;
3438
+ 200: Response;
3439
+ 422: {
3440
+ type: "validation";
3441
+ on: string;
3442
+ summary?: string;
3443
+ message?: string;
3444
+ found?: unknown;
3445
+ property?: string;
3446
+ expected?: string;
3447
+ };
1648
3448
  };
1649
3449
  };
1650
3450
  };
@@ -1659,14 +3459,12 @@ declare const publicApp: Elysia<"", {
1659
3459
  oidc: {
1660
3460
  callback: {
1661
3461
  get: {
1662
- body: any;
1663
- params: any;
1664
- query: any;
1665
- headers: any;
3462
+ body: unknown;
3463
+ params: {};
3464
+ query: unknown;
3465
+ headers: unknown;
1666
3466
  response: {
1667
- [x: string]: any;
1668
- [x: number]: any;
1669
- [x: symbol]: any;
3467
+ 200: Response;
1670
3468
  };
1671
3469
  };
1672
3470
  };
@@ -1679,14 +3477,31 @@ declare const publicApp: Elysia<"", {
1679
3477
  phone: {
1680
3478
  send: {
1681
3479
  post: {
1682
- body: any;
3480
+ body: {
3481
+ captchaToken?: string | undefined;
3482
+ phone: string;
3483
+ };
1683
3484
  params: {};
1684
- query: any;
1685
- headers: any;
3485
+ query: unknown;
3486
+ headers: unknown;
1686
3487
  response: {
1687
- [x: string]: any;
1688
- [x: number]: any;
1689
- [x: symbol]: any;
3488
+ 200: {
3489
+ error: string;
3490
+ } | {
3491
+ success: true;
3492
+ error?: undefined;
3493
+ } | {
3494
+ skipped: true;
3495
+ };
3496
+ 422: {
3497
+ type: "validation";
3498
+ on: string;
3499
+ summary?: string;
3500
+ message?: string;
3501
+ found?: unknown;
3502
+ property?: string;
3503
+ expected?: string;
3504
+ };
1690
3505
  };
1691
3506
  };
1692
3507
  };
@@ -1699,14 +3514,28 @@ declare const publicApp: Elysia<"", {
1699
3514
  phone: {
1700
3515
  verify: {
1701
3516
  post: {
1702
- body: any;
3517
+ body: {
3518
+ code: string;
3519
+ phone: string;
3520
+ };
1703
3521
  params: {};
1704
- query: any;
1705
- headers: any;
3522
+ query: unknown;
3523
+ headers: unknown;
1706
3524
  response: {
1707
- [x: string]: any;
1708
- [x: number]: any;
1709
- [x: symbol]: any;
3525
+ 200: {
3526
+ error: string;
3527
+ } | {
3528
+ success: boolean;
3529
+ };
3530
+ 422: {
3531
+ type: "validation";
3532
+ on: string;
3533
+ summary?: string;
3534
+ message?: string;
3535
+ found?: unknown;
3536
+ property?: string;
3537
+ expected?: string;
3538
+ };
1710
3539
  };
1711
3540
  };
1712
3541
  };
@@ -1718,14 +3547,29 @@ declare const publicApp: Elysia<"", {
1718
3547
  account: {
1719
3548
  "set-password": {
1720
3549
  post: {
1721
- body: any;
3550
+ body: {
3551
+ newPassword: string;
3552
+ };
1722
3553
  params: {};
1723
- query: any;
1724
- headers: any;
3554
+ query: unknown;
3555
+ headers: unknown;
1725
3556
  response: {
1726
- [x: string]: any;
1727
- [x: number]: any;
1728
- [x: symbol]: any;
3557
+ 200: {
3558
+ success: true;
3559
+ error?: undefined;
3560
+ } | {
3561
+ error: string;
3562
+ success?: undefined;
3563
+ };
3564
+ 422: {
3565
+ type: "validation";
3566
+ on: string;
3567
+ summary?: string;
3568
+ message?: string;
3569
+ found?: unknown;
3570
+ property?: string;
3571
+ expected?: string;
3572
+ };
1729
3573
  };
1730
3574
  };
1731
3575
  };
@@ -1736,14 +3580,38 @@ declare const publicApp: Elysia<"", {
1736
3580
  signup: {
1737
3581
  abandon: {
1738
3582
  post: {
1739
- body: any;
3583
+ body: {
3584
+ captchaToken?: string | undefined;
3585
+ email: string;
3586
+ };
1740
3587
  params: {};
1741
- query: any;
1742
- headers: any;
3588
+ query: unknown;
3589
+ headers: unknown;
1743
3590
  response: {
1744
- [x: string]: any;
1745
- [x: number]: any;
1746
- [x: symbol]: any;
3591
+ 200: {
3592
+ deleted: false;
3593
+ existingVerified: false;
3594
+ } | {
3595
+ deleted: false;
3596
+ existingVerified: true;
3597
+ } | {
3598
+ deleted: true;
3599
+ existingVerified: false;
3600
+ };
3601
+ 422: {
3602
+ type: "validation";
3603
+ on: string;
3604
+ summary?: string;
3605
+ message?: string;
3606
+ found?: unknown;
3607
+ property?: string;
3608
+ expected?: string;
3609
+ };
3610
+ 429: {
3611
+ error: string;
3612
+ } | {
3613
+ readonly error: "Too many requests. Please try again later.";
3614
+ };
1747
3615
  };
1748
3616
  };
1749
3617
  };
@@ -1753,14 +3621,27 @@ declare const publicApp: Elysia<"", {
1753
3621
  api: {
1754
3622
  "privacy-requests": {
1755
3623
  post: {
1756
- body: any;
3624
+ body: {
3625
+ email: string;
3626
+ };
1757
3627
  params: {};
1758
- query: any;
1759
- headers: any;
3628
+ query: unknown;
3629
+ headers: unknown;
1760
3630
  response: {
1761
- [x: string]: any;
1762
- [x: number]: any;
1763
- [x: symbol]: any;
3631
+ 200: {
3632
+ error: string;
3633
+ } | {
3634
+ success: boolean;
3635
+ };
3636
+ 422: {
3637
+ type: "validation";
3638
+ on: string;
3639
+ summary?: string;
3640
+ message?: string;
3641
+ found?: unknown;
3642
+ property?: string;
3643
+ expected?: string;
3644
+ };
1764
3645
  };
1765
3646
  };
1766
3647
  };
@@ -1772,13 +3653,34 @@ declare const publicApp: Elysia<"", {
1772
3653
  "scope-tiers": {
1773
3654
  get: {
1774
3655
  body: unknown;
1775
- params: any;
1776
- query: any;
1777
- headers: any;
3656
+ params: {
3657
+ clientId: string;
3658
+ };
3659
+ query: unknown;
3660
+ headers: unknown;
1778
3661
  response: {
1779
- [x: string]: any;
1780
- [x: number]: any;
1781
- [x: symbol]: any;
3662
+ 200: {
3663
+ error: string;
3664
+ hasMetadata?: undefined;
3665
+ required?: undefined;
3666
+ } | {
3667
+ hasMetadata: false;
3668
+ required: string[];
3669
+ error?: undefined;
3670
+ } | {
3671
+ hasMetadata: true;
3672
+ required: string[];
3673
+ error?: undefined;
3674
+ };
3675
+ 422: {
3676
+ type: "validation";
3677
+ on: string;
3678
+ summary?: string;
3679
+ message?: string;
3680
+ found?: unknown;
3681
+ property?: string;
3682
+ expected?: string;
3683
+ };
1782
3684
  };
1783
3685
  };
1784
3686
  };
@@ -1791,14 +3693,31 @@ declare const publicApp: Elysia<"", {
1791
3693
  ":clientId": {
1792
3694
  metadata: {
1793
3695
  patch: {
1794
- body: any;
1795
- params: any;
1796
- query: any;
1797
- headers: any;
3696
+ body: {
3697
+ requiredScopes: string[];
3698
+ };
3699
+ params: {
3700
+ clientId: string;
3701
+ };
3702
+ query: unknown;
3703
+ headers: unknown;
1798
3704
  response: {
1799
- [x: string]: any;
1800
- [x: number]: any;
1801
- [x: symbol]: any;
3705
+ 200: {
3706
+ error: string;
3707
+ required?: undefined;
3708
+ } | {
3709
+ required: string[];
3710
+ error?: undefined;
3711
+ };
3712
+ 422: {
3713
+ type: "validation";
3714
+ on: string;
3715
+ summary?: string;
3716
+ message?: string;
3717
+ found?: unknown;
3718
+ property?: string;
3719
+ expected?: string;
3720
+ };
1802
3721
  };
1803
3722
  };
1804
3723
  };
@@ -1810,14 +3729,19 @@ declare const publicApp: Elysia<"", {
1810
3729
  "oauth-clients": {
1811
3730
  authorized: {
1812
3731
  get: {
1813
- body: any;
1814
- params: any;
1815
- query: any;
1816
- headers: any;
3732
+ body: unknown;
3733
+ params: {};
3734
+ query: unknown;
3735
+ headers: unknown;
1817
3736
  response: {
1818
- [x: string]: any;
1819
- [x: number]: any;
1820
- [x: symbol]: any;
3737
+ 200: {
3738
+ client_id: string;
3739
+ client_name: string | null;
3740
+ client_uri: string | null;
3741
+ logo_uri: string | null;
3742
+ scopes: string[];
3743
+ granted_at: Date;
3744
+ }[];
1821
3745
  };
1822
3746
  };
1823
3747
  };
@@ -1830,13 +3754,28 @@ declare const publicApp: Elysia<"", {
1830
3754
  ":clientId": {
1831
3755
  delete: {
1832
3756
  body: unknown;
1833
- params: any;
1834
- query: any;
1835
- headers: any;
3757
+ params: {
3758
+ clientId: string;
3759
+ };
3760
+ query: unknown;
3761
+ headers: unknown;
1836
3762
  response: {
1837
- [x: string]: any;
1838
- [x: number]: any;
1839
- [x: symbol]: any;
3763
+ 200: {
3764
+ error: string;
3765
+ success?: undefined;
3766
+ } | {
3767
+ success: boolean;
3768
+ error?: undefined;
3769
+ };
3770
+ 422: {
3771
+ type: "validation";
3772
+ on: string;
3773
+ summary?: string;
3774
+ message?: string;
3775
+ found?: unknown;
3776
+ property?: string;
3777
+ expected?: string;
3778
+ };
1840
3779
  };
1841
3780
  };
1842
3781
  };
@@ -1847,14 +3786,14 @@ declare const publicApp: Elysia<"", {
1847
3786
  api: {
1848
3787
  health: {
1849
3788
  get: {
1850
- body: any;
1851
- params: any;
1852
- query: any;
1853
- headers: any;
3789
+ body: unknown;
3790
+ params: {};
3791
+ query: unknown;
3792
+ headers: unknown;
1854
3793
  response: {
1855
- [x: string]: any;
1856
- [x: number]: any;
1857
- [x: symbol]: any;
3794
+ 200: Response | {
3795
+ status: string;
3796
+ };
1858
3797
  };
1859
3798
  };
1860
3799
  };
@@ -1863,14 +3802,14 @@ declare const publicApp: Elysia<"", {
1863
3802
  api: {
1864
3803
  info: {
1865
3804
  get: {
1866
- body: any;
1867
- params: any;
1868
- query: any;
1869
- headers: any;
3805
+ body: unknown;
3806
+ params: {};
3807
+ query: unknown;
3808
+ headers: unknown;
1870
3809
  response: {
1871
- [x: string]: any;
1872
- [x: number]: any;
1873
- [x: symbol]: any;
3810
+ 200: Response | {
3811
+ environment: string;
3812
+ };
1874
3813
  };
1875
3814
  };
1876
3815
  };