@workwae/sdk 0.1.0-alpha.2 → 0.1.0-alpha.3
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/contract/audit-log/models.d.ts +3 -0
- package/contract/audit-log/routes.d.ts +1 -0
- package/contract/connect/models.d.ts +2 -0
- package/contract/connect/routes.d.ts +5 -0
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/custom-domain.d.ts +12 -0
- package/contract/limits.d.ts +6 -0
- package/contract/mail/models.d.ts +139 -2
- package/contract/mail/routes.d.ts +191 -41
- package/contract/meetings/models.d.ts +11 -0
- package/contract/meetings/routes.d.ts +79 -0
- package/contract/oauth-apps/models.d.ts +6 -0
- package/contract/oauth-apps/routes.d.ts +26 -4
- package/contract/org-connections/models.d.ts +10 -0
- package/contract/org-connections/routes.d.ts +32 -0
- package/contract/public.d.ts +1 -0
- package/contract/reasons.d.ts +27 -0
- package/contract/router.d.ts +560 -45
- package/contract/send/models.d.ts +58 -0
- package/contract/send/routes.d.ts +30 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -402,15 +402,27 @@ export declare const mailboxes: {
|
|
|
402
402
|
export declare const messages: {
|
|
403
403
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
404
404
|
accountId: z.ZodUUID;
|
|
405
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
406
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
407
405
|
importance: z.ZodOptional<z.ZodEnum<{
|
|
408
406
|
normal: "normal";
|
|
409
407
|
high: "high";
|
|
410
408
|
low: "low";
|
|
411
409
|
}>>;
|
|
410
|
+
outboxId: z.ZodOptional<z.ZodUUID>;
|
|
411
|
+
internetMessageId: z.ZodOptional<z.ZodString>;
|
|
412
412
|
after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
413
413
|
before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
414
|
+
include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
|
|
415
|
+
z.ZodString,
|
|
416
|
+
z.ZodArray<z.ZodEnum<{
|
|
417
|
+
headers: "headers";
|
|
418
|
+
body: "body";
|
|
419
|
+
}>>
|
|
420
|
+
]>, z.ZodTransform<string[], string | ("headers" | "body")[]>>, z.ZodArray<z.ZodEnum<{
|
|
421
|
+
headers: "headers";
|
|
422
|
+
body: "body";
|
|
423
|
+
}>>>>;
|
|
424
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
425
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
414
426
|
from: z.ZodOptional<z.ZodString>;
|
|
415
427
|
to: z.ZodOptional<z.ZodString>;
|
|
416
428
|
unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
@@ -435,47 +447,139 @@ export declare const messages: {
|
|
|
435
447
|
}>
|
|
436
448
|
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
437
449
|
mailboxId: z.ZodOptional<z.ZodUUID>;
|
|
438
|
-
}, z.core.$strip>, z.
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
450
|
+
}, z.core.$strip>, z.ZodUnion<readonly [
|
|
451
|
+
z.ZodObject<{
|
|
452
|
+
items: z.ZodArray<z.ZodObject<{
|
|
453
|
+
id: z.ZodUUID;
|
|
454
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
455
|
+
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
456
|
+
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
457
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
458
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
459
|
+
name: z.ZodNullable<z.ZodString>;
|
|
460
|
+
address: z.ZodString;
|
|
461
|
+
}, z.core.$strip>>;
|
|
462
|
+
to: z.ZodArray<z.ZodObject<{
|
|
463
|
+
name: z.ZodNullable<z.ZodString>;
|
|
464
|
+
address: z.ZodString;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
467
|
+
name: z.ZodNullable<z.ZodString>;
|
|
468
|
+
address: z.ZodString;
|
|
469
|
+
}, z.core.$strip>>;
|
|
470
|
+
snippet: z.ZodNullable<z.ZodString>;
|
|
471
|
+
receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
472
|
+
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
473
|
+
isRead: z.ZodBoolean;
|
|
474
|
+
isFlagged: z.ZodBoolean;
|
|
475
|
+
isDraft: z.ZodBoolean;
|
|
476
|
+
hasAttachments: z.ZodBoolean;
|
|
477
|
+
categories: z.ZodArray<z.ZodString>;
|
|
478
|
+
direction: z.ZodEnum<{
|
|
479
|
+
inbound: "inbound";
|
|
480
|
+
outbound: "outbound";
|
|
481
|
+
}>;
|
|
482
|
+
outboxId: z.ZodNullable<z.ZodUUID>;
|
|
483
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
484
|
+
importance: z.ZodNullable<z.ZodEnum<{
|
|
485
|
+
normal: "normal";
|
|
486
|
+
high: "high";
|
|
487
|
+
low: "low";
|
|
488
|
+
}>>;
|
|
489
|
+
bcc: z.ZodArray<z.ZodObject<{
|
|
490
|
+
name: z.ZodNullable<z.ZodString>;
|
|
491
|
+
address: z.ZodString;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
replyTo: z.ZodArray<z.ZodObject<{
|
|
494
|
+
name: z.ZodNullable<z.ZodString>;
|
|
495
|
+
address: z.ZodString;
|
|
496
|
+
}, z.core.$strip>>;
|
|
497
|
+
body: z.ZodObject<{
|
|
498
|
+
text: z.ZodNullable<z.ZodString>;
|
|
499
|
+
html: z.ZodNullable<z.ZodString>;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
502
|
+
id: z.ZodString;
|
|
503
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
504
|
+
contentType: z.ZodString;
|
|
505
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
506
|
+
isInline: z.ZodBoolean;
|
|
507
|
+
contentId: z.ZodNullable<z.ZodString>;
|
|
508
|
+
}, z.core.$strip>>;
|
|
509
|
+
classification: z.ZodNullable<z.ZodObject<{
|
|
510
|
+
kind: z.ZodEnum<{
|
|
511
|
+
opt_out: "opt_out";
|
|
512
|
+
auto_reply: "auto_reply";
|
|
513
|
+
bounce: "bounce";
|
|
514
|
+
human_reply: "human_reply";
|
|
515
|
+
}>;
|
|
516
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
517
|
+
optOutProbability: z.ZodNumber;
|
|
518
|
+
autoReplyCategory: z.ZodNullable<z.ZodEnum<{
|
|
519
|
+
other: "other";
|
|
520
|
+
out_of_office: "out_of_office";
|
|
521
|
+
left_company: "left_company";
|
|
522
|
+
address_changed: "address_changed";
|
|
523
|
+
ticket_acknowledgment: "ticket_acknowledgment";
|
|
524
|
+
challenge_response: "challenge_response";
|
|
525
|
+
}>>;
|
|
526
|
+
returnDate: z.ZodNullable<z.ZodISODate>;
|
|
527
|
+
alternateContacts: z.ZodArray<z.ZodString>;
|
|
528
|
+
outboxId: z.ZodNullable<z.ZodUUID>;
|
|
529
|
+
model: z.ZodString;
|
|
530
|
+
classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
inReplyTo: z.ZodNullable<z.ZodString>;
|
|
533
|
+
references: z.ZodArray<z.ZodString>;
|
|
534
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
535
|
+
name: z.ZodString;
|
|
536
|
+
value: z.ZodString;
|
|
537
|
+
}, z.core.$strip>>>;
|
|
448
538
|
}, z.core.$strip>>;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
539
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
540
|
+
}, z.core.$strip>,
|
|
541
|
+
z.ZodObject<{
|
|
542
|
+
items: z.ZodArray<z.ZodObject<{
|
|
543
|
+
id: z.ZodUUID;
|
|
544
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
545
|
+
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
546
|
+
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
547
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
548
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
549
|
+
name: z.ZodNullable<z.ZodString>;
|
|
550
|
+
address: z.ZodString;
|
|
551
|
+
}, z.core.$strip>>;
|
|
552
|
+
to: z.ZodArray<z.ZodObject<{
|
|
553
|
+
name: z.ZodNullable<z.ZodString>;
|
|
554
|
+
address: z.ZodString;
|
|
555
|
+
}, z.core.$strip>>;
|
|
556
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
557
|
+
name: z.ZodNullable<z.ZodString>;
|
|
558
|
+
address: z.ZodString;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
snippet: z.ZodNullable<z.ZodString>;
|
|
561
|
+
receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
562
|
+
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
563
|
+
isRead: z.ZodBoolean;
|
|
564
|
+
isFlagged: z.ZodBoolean;
|
|
565
|
+
isDraft: z.ZodBoolean;
|
|
566
|
+
hasAttachments: z.ZodBoolean;
|
|
567
|
+
categories: z.ZodArray<z.ZodString>;
|
|
568
|
+
direction: z.ZodEnum<{
|
|
569
|
+
inbound: "inbound";
|
|
570
|
+
outbound: "outbound";
|
|
571
|
+
}>;
|
|
572
|
+
outboxId: z.ZodNullable<z.ZodUUID>;
|
|
573
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
574
|
+
importance: z.ZodNullable<z.ZodEnum<{
|
|
575
|
+
normal: "normal";
|
|
576
|
+
high: "high";
|
|
577
|
+
low: "low";
|
|
578
|
+
}>>;
|
|
456
579
|
}, z.core.$strip>>;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
isRead: z.ZodBoolean;
|
|
461
|
-
isFlagged: z.ZodBoolean;
|
|
462
|
-
isDraft: z.ZodBoolean;
|
|
463
|
-
hasAttachments: z.ZodBoolean;
|
|
464
|
-
categories: z.ZodArray<z.ZodString>;
|
|
465
|
-
direction: z.ZodEnum<{
|
|
466
|
-
inbound: "inbound";
|
|
467
|
-
outbound: "outbound";
|
|
468
|
-
}>;
|
|
469
|
-
outboxId: z.ZodNullable<z.ZodUUID>;
|
|
470
|
-
reference: z.ZodNullable<z.ZodString>;
|
|
471
|
-
importance: z.ZodNullable<z.ZodEnum<{
|
|
472
|
-
normal: "normal";
|
|
473
|
-
high: "high";
|
|
474
|
-
low: "low";
|
|
475
|
-
}>>;
|
|
476
|
-
}, z.core.$strip>>;
|
|
477
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
478
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
580
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
581
|
+
}, z.core.$strip>
|
|
582
|
+
]>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
479
583
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
480
584
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
481
585
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -497,6 +601,38 @@ export declare const messages: {
|
|
|
497
601
|
status: 400;
|
|
498
602
|
message: string;
|
|
499
603
|
};
|
|
604
|
+
provider_not_found: {
|
|
605
|
+
status: 404;
|
|
606
|
+
message: string;
|
|
607
|
+
};
|
|
608
|
+
provider_forbidden: {
|
|
609
|
+
status: 403;
|
|
610
|
+
message: string;
|
|
611
|
+
};
|
|
612
|
+
provider_unavailable: {
|
|
613
|
+
status: 502;
|
|
614
|
+
message: string;
|
|
615
|
+
};
|
|
616
|
+
provider_throttled: {
|
|
617
|
+
status: 429;
|
|
618
|
+
message: string;
|
|
619
|
+
};
|
|
620
|
+
account_paused: {
|
|
621
|
+
status: 409;
|
|
622
|
+
message: string;
|
|
623
|
+
};
|
|
624
|
+
account_disabled: {
|
|
625
|
+
status: 409;
|
|
626
|
+
message: string;
|
|
627
|
+
};
|
|
628
|
+
account_reauth_required: {
|
|
629
|
+
status: 409;
|
|
630
|
+
message: string;
|
|
631
|
+
};
|
|
632
|
+
account_misconfigured: {
|
|
633
|
+
status: 409;
|
|
634
|
+
message: string;
|
|
635
|
+
};
|
|
500
636
|
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
501
637
|
invalid_cursor: {
|
|
502
638
|
status: 400;
|
|
@@ -518,6 +654,14 @@ export declare const messages: {
|
|
|
518
654
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
519
655
|
accountId: z.ZodUUID;
|
|
520
656
|
messageId: z.ZodUUID;
|
|
657
|
+
include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
|
|
658
|
+
z.ZodString,
|
|
659
|
+
z.ZodArray<z.ZodEnum<{
|
|
660
|
+
headers: "headers";
|
|
661
|
+
}>>
|
|
662
|
+
]>, z.ZodTransform<string[], string | "headers"[]>>, z.ZodArray<z.ZodEnum<{
|
|
663
|
+
headers: "headers";
|
|
664
|
+
}>>>>;
|
|
521
665
|
}, z.core.$strip>, z.ZodObject<{
|
|
522
666
|
id: z.ZodUUID;
|
|
523
667
|
threadId: z.ZodNullable<z.ZodString>;
|
|
@@ -598,6 +742,12 @@ export declare const messages: {
|
|
|
598
742
|
model: z.ZodString;
|
|
599
743
|
classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
600
744
|
}, z.core.$strip>>;
|
|
745
|
+
inReplyTo: z.ZodNullable<z.ZodString>;
|
|
746
|
+
references: z.ZodArray<z.ZodString>;
|
|
747
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
748
|
+
name: z.ZodString;
|
|
749
|
+
value: z.ZodString;
|
|
750
|
+
}, z.core.$strip>>>;
|
|
601
751
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
602
752
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
603
753
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -81,6 +81,7 @@ export declare const MeetingApp: z.ZodObject<{
|
|
|
81
81
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
82
82
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
83
83
|
scopes: z.ZodArray<z.ZodString>;
|
|
84
|
+
useConnectDomain: z.ZodBoolean;
|
|
84
85
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
85
86
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
86
87
|
}, z.core.$strip>;
|
|
@@ -109,6 +110,7 @@ export declare const MeetingAppList: z.ZodObject<{
|
|
|
109
110
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
110
111
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
111
112
|
scopes: z.ZodArray<z.ZodString>;
|
|
113
|
+
useConnectDomain: z.ZodBoolean;
|
|
112
114
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
113
115
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
114
116
|
}, z.core.$strip>>;
|
|
@@ -120,6 +122,7 @@ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
|
|
|
120
122
|
name: z.ZodString;
|
|
121
123
|
clientId: z.ZodString;
|
|
122
124
|
clientSecret: z.ZodString;
|
|
125
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
123
126
|
}, z.core.$strip>,
|
|
124
127
|
z.ZodObject<{
|
|
125
128
|
kind: z.ZodLiteral<"zoom_s2s">;
|
|
@@ -127,22 +130,29 @@ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
|
|
|
127
130
|
accountId: z.ZodString;
|
|
128
131
|
clientId: z.ZodString;
|
|
129
132
|
clientSecret: z.ZodString;
|
|
133
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
130
134
|
}, z.core.$strip>,
|
|
131
135
|
z.ZodObject<{
|
|
132
136
|
kind: z.ZodLiteral<"webex_oauth">;
|
|
133
137
|
name: z.ZodString;
|
|
134
138
|
clientId: z.ZodString;
|
|
135
139
|
clientSecret: z.ZodString;
|
|
140
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
136
141
|
}, z.core.$strip>,
|
|
137
142
|
z.ZodObject<{
|
|
138
143
|
kind: z.ZodLiteral<"webex_service_app">;
|
|
139
144
|
name: z.ZodString;
|
|
140
145
|
clientId: z.ZodString;
|
|
141
146
|
clientSecret: z.ZodString;
|
|
147
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
142
148
|
refreshToken: z.ZodString;
|
|
143
149
|
}, z.core.$strip>
|
|
144
150
|
], "kind">;
|
|
145
151
|
export type CreateMeetingApp = z.infer<typeof CreateMeetingApp>;
|
|
152
|
+
export declare const UpdateMeetingApp: z.ZodObject<{
|
|
153
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
export type UpdateMeetingApp = z.infer<typeof UpdateMeetingApp>;
|
|
146
156
|
export declare const MeetingAppCheck: z.ZodObject<{
|
|
147
157
|
name: z.ZodString;
|
|
148
158
|
isOk: z.ZodBoolean;
|
|
@@ -173,6 +183,7 @@ export declare const MeetingAppTestResult: z.ZodObject<{
|
|
|
173
183
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
174
184
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
175
185
|
scopes: z.ZodArray<z.ZodString>;
|
|
186
|
+
useConnectDomain: z.ZodBoolean;
|
|
176
187
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
177
188
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
178
189
|
}, z.core.$strip>;
|
|
@@ -24,6 +24,7 @@ export declare const meetingApps: {
|
|
|
24
24
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
25
25
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
26
26
|
scopes: z.ZodArray<z.ZodString>;
|
|
27
|
+
useConnectDomain: z.ZodBoolean;
|
|
27
28
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
28
29
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
29
30
|
}, z.core.$strip>>;
|
|
@@ -53,6 +54,7 @@ export declare const meetingApps: {
|
|
|
53
54
|
name: z.ZodString;
|
|
54
55
|
clientId: z.ZodString;
|
|
55
56
|
clientSecret: z.ZodString;
|
|
57
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
56
58
|
}, z.core.$strip>,
|
|
57
59
|
z.ZodObject<{
|
|
58
60
|
kind: z.ZodLiteral<"zoom_s2s">;
|
|
@@ -60,18 +62,21 @@ export declare const meetingApps: {
|
|
|
60
62
|
accountId: z.ZodString;
|
|
61
63
|
clientId: z.ZodString;
|
|
62
64
|
clientSecret: z.ZodString;
|
|
65
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
63
66
|
}, z.core.$strip>,
|
|
64
67
|
z.ZodObject<{
|
|
65
68
|
kind: z.ZodLiteral<"webex_oauth">;
|
|
66
69
|
name: z.ZodString;
|
|
67
70
|
clientId: z.ZodString;
|
|
68
71
|
clientSecret: z.ZodString;
|
|
72
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
69
73
|
}, z.core.$strip>,
|
|
70
74
|
z.ZodObject<{
|
|
71
75
|
kind: z.ZodLiteral<"webex_service_app">;
|
|
72
76
|
name: z.ZodString;
|
|
73
77
|
clientId: z.ZodString;
|
|
74
78
|
clientSecret: z.ZodString;
|
|
79
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
75
80
|
refreshToken: z.ZodString;
|
|
76
81
|
}, z.core.$strip>
|
|
77
82
|
], "kind">, z.ZodObject<{
|
|
@@ -97,6 +102,7 @@ export declare const meetingApps: {
|
|
|
97
102
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
98
103
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
99
104
|
scopes: z.ZodArray<z.ZodString>;
|
|
105
|
+
useConnectDomain: z.ZodBoolean;
|
|
100
106
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
101
107
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
102
108
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
@@ -121,6 +127,78 @@ export declare const meetingApps: {
|
|
|
121
127
|
status: 409;
|
|
122
128
|
message: string;
|
|
123
129
|
};
|
|
130
|
+
connect_domain_inactive: {
|
|
131
|
+
status: 409;
|
|
132
|
+
message: string;
|
|
133
|
+
};
|
|
134
|
+
connect_domain_unsupported: {
|
|
135
|
+
status: 400;
|
|
136
|
+
message: string;
|
|
137
|
+
};
|
|
138
|
+
plan_module_unavailable: {
|
|
139
|
+
status: 403;
|
|
140
|
+
message: string;
|
|
141
|
+
};
|
|
142
|
+
}>, Record<never, never>>;
|
|
143
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
144
|
+
appId: z.ZodUUID;
|
|
145
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
id: z.ZodUUID;
|
|
148
|
+
kind: z.ZodEnum<{
|
|
149
|
+
zoom_oauth: "zoom_oauth";
|
|
150
|
+
zoom_s2s: "zoom_s2s";
|
|
151
|
+
webex_oauth: "webex_oauth";
|
|
152
|
+
webex_service_app: "webex_service_app";
|
|
153
|
+
}>;
|
|
154
|
+
service: z.ZodEnum<{
|
|
155
|
+
zoom: "zoom";
|
|
156
|
+
webex: "webex";
|
|
157
|
+
}>;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
clientId: z.ZodString;
|
|
160
|
+
zoomAccountId: z.ZodNullable<z.ZodString>;
|
|
161
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
162
|
+
active: "active";
|
|
163
|
+
unverified: "unverified";
|
|
164
|
+
failing: "failing";
|
|
165
|
+
}>>;
|
|
166
|
+
statusDetail: z.ZodNullable<z.ZodString>;
|
|
167
|
+
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
168
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
169
|
+
useConnectDomain: z.ZodBoolean;
|
|
170
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
171
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
172
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
173
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
174
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
175
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
176
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
177
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
178
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
179
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
180
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
181
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
182
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
183
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
184
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
185
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
186
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
187
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
188
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
189
|
+
}>>, {
|
|
190
|
+
connect_domain_inactive: {
|
|
191
|
+
status: 409;
|
|
192
|
+
message: string;
|
|
193
|
+
};
|
|
194
|
+
connect_domain_unsupported: {
|
|
195
|
+
status: 400;
|
|
196
|
+
message: string;
|
|
197
|
+
};
|
|
198
|
+
meeting_app_not_found: {
|
|
199
|
+
status: 404;
|
|
200
|
+
message: string;
|
|
201
|
+
};
|
|
124
202
|
plan_module_unavailable: {
|
|
125
203
|
status: 403;
|
|
126
204
|
message: string;
|
|
@@ -153,6 +231,7 @@ export declare const meetingApps: {
|
|
|
153
231
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
154
232
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
155
233
|
scopes: z.ZodArray<z.ZodString>;
|
|
234
|
+
useConnectDomain: z.ZodBoolean;
|
|
156
235
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
157
236
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
158
237
|
}, z.core.$strip>;
|
|
@@ -20,6 +20,8 @@ export declare const OAuthApp: z.ZodObject<{
|
|
|
20
20
|
china: "china";
|
|
21
21
|
}>>;
|
|
22
22
|
authority: z.ZodNullable<z.ZodString>;
|
|
23
|
+
useConnectDomain: z.ZodBoolean;
|
|
24
|
+
redirectUri: z.ZodURL;
|
|
23
25
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
24
26
|
topic: z.ZodString;
|
|
25
27
|
serviceAccount: z.ZodEmail;
|
|
@@ -44,6 +46,8 @@ export declare const OAuthAppList: z.ZodObject<{
|
|
|
44
46
|
china: "china";
|
|
45
47
|
}>>;
|
|
46
48
|
authority: z.ZodNullable<z.ZodString>;
|
|
49
|
+
useConnectDomain: z.ZodBoolean;
|
|
50
|
+
redirectUri: z.ZodURL;
|
|
47
51
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
48
52
|
topic: z.ZodString;
|
|
49
53
|
serviceAccount: z.ZodEmail;
|
|
@@ -68,6 +72,7 @@ export declare const CreateOAuthApp: z.ZodObject<{
|
|
|
68
72
|
clientId: z.ZodString;
|
|
69
73
|
clientSecret: z.ZodString;
|
|
70
74
|
authority: z.ZodOptional<z.ZodString>;
|
|
75
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
71
76
|
}, z.core.$strip>;
|
|
72
77
|
export type CreateOAuthApp = z.infer<typeof CreateOAuthApp>;
|
|
73
78
|
export declare const UpdateOAuthApp: z.ZodObject<{
|
|
@@ -78,6 +83,7 @@ export declare const UpdateOAuthApp: z.ZodObject<{
|
|
|
78
83
|
topic: z.ZodString;
|
|
79
84
|
serviceAccount: z.ZodEmail;
|
|
80
85
|
}, z.core.$strip>>>;
|
|
86
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
81
87
|
}, z.core.$strip>;
|
|
82
88
|
export type UpdateOAuthApp = z.infer<typeof UpdateOAuthApp>;
|
|
83
89
|
export declare const OAuthAppIdInput: z.ZodObject<{
|
|
@@ -16,6 +16,8 @@ export declare const oauthApps: {
|
|
|
16
16
|
china: "china";
|
|
17
17
|
}>>;
|
|
18
18
|
authority: z.ZodNullable<z.ZodString>;
|
|
19
|
+
useConnectDomain: z.ZodBoolean;
|
|
20
|
+
redirectUri: z.ZodURL;
|
|
19
21
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
20
22
|
topic: z.ZodString;
|
|
21
23
|
serviceAccount: z.ZodEmail;
|
|
@@ -56,6 +58,7 @@ export declare const oauthApps: {
|
|
|
56
58
|
clientId: z.ZodString;
|
|
57
59
|
clientSecret: z.ZodString;
|
|
58
60
|
authority: z.ZodOptional<z.ZodString>;
|
|
61
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
59
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
63
|
id: z.ZodUUID;
|
|
61
64
|
provider: z.ZodEnum<{
|
|
@@ -71,6 +74,8 @@ export declare const oauthApps: {
|
|
|
71
74
|
china: "china";
|
|
72
75
|
}>>;
|
|
73
76
|
authority: z.ZodNullable<z.ZodString>;
|
|
77
|
+
useConnectDomain: z.ZodBoolean;
|
|
78
|
+
redirectUri: z.ZodURL;
|
|
74
79
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
75
80
|
topic: z.ZodString;
|
|
76
81
|
serviceAccount: z.ZodEmail;
|
|
@@ -94,10 +99,20 @@ export declare const oauthApps: {
|
|
|
94
99
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
95
100
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
96
101
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
97
|
-
}>>,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
}>>, {
|
|
103
|
+
cloud_required: {
|
|
104
|
+
status: 400;
|
|
105
|
+
message: string;
|
|
106
|
+
};
|
|
107
|
+
not_microsoft: {
|
|
108
|
+
status: 400;
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
connect_domain_inactive: {
|
|
112
|
+
status: 409;
|
|
113
|
+
message: string;
|
|
114
|
+
};
|
|
115
|
+
}>, Record<never, never>>;
|
|
101
116
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
102
117
|
appId: z.ZodUUID;
|
|
103
118
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -107,6 +122,7 @@ export declare const oauthApps: {
|
|
|
107
122
|
topic: z.ZodString;
|
|
108
123
|
serviceAccount: z.ZodEmail;
|
|
109
124
|
}, z.core.$strip>>>;
|
|
125
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
110
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
111
127
|
id: z.ZodUUID;
|
|
112
128
|
provider: z.ZodEnum<{
|
|
@@ -122,6 +138,8 @@ export declare const oauthApps: {
|
|
|
122
138
|
china: "china";
|
|
123
139
|
}>>;
|
|
124
140
|
authority: z.ZodNullable<z.ZodString>;
|
|
141
|
+
useConnectDomain: z.ZodBoolean;
|
|
142
|
+
redirectUri: z.ZodURL;
|
|
125
143
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
126
144
|
topic: z.ZodString;
|
|
127
145
|
serviceAccount: z.ZodEmail;
|
|
@@ -158,6 +176,10 @@ export declare const oauthApps: {
|
|
|
158
176
|
status: 400;
|
|
159
177
|
message: string;
|
|
160
178
|
};
|
|
179
|
+
connect_domain_inactive: {
|
|
180
|
+
status: 409;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
161
183
|
oauth_app_not_found: {
|
|
162
184
|
status: 404;
|
|
163
185
|
message: string;
|
|
@@ -43,6 +43,8 @@ export declare const MicrosoftAppAccess: z.ZodObject<{
|
|
|
43
43
|
certificate: "certificate";
|
|
44
44
|
}>;
|
|
45
45
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
useConnectDomain: z.ZodBoolean;
|
|
47
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
46
48
|
permissions: z.ZodArray<z.ZodObject<{
|
|
47
49
|
name: z.ZodString;
|
|
48
50
|
isRequired: z.ZodBoolean;
|
|
@@ -85,6 +87,8 @@ export declare const OrgConnection: z.ZodObject<{
|
|
|
85
87
|
certificate: "certificate";
|
|
86
88
|
}>;
|
|
87
89
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
useConnectDomain: z.ZodBoolean;
|
|
91
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
88
92
|
permissions: z.ZodArray<z.ZodObject<{
|
|
89
93
|
name: z.ZodString;
|
|
90
94
|
isRequired: z.ZodBoolean;
|
|
@@ -132,6 +136,8 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
132
136
|
certificate: "certificate";
|
|
133
137
|
}>;
|
|
134
138
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
139
|
+
useConnectDomain: z.ZodBoolean;
|
|
140
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
135
141
|
permissions: z.ZodArray<z.ZodObject<{
|
|
136
142
|
name: z.ZodString;
|
|
137
143
|
isRequired: z.ZodBoolean;
|
|
@@ -180,6 +186,7 @@ export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
|
|
|
180
186
|
}, z.core.$strip>
|
|
181
187
|
], "type">;
|
|
182
188
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
183
190
|
}, z.core.$strip>
|
|
184
191
|
], "kind">;
|
|
185
192
|
export type CreateOrgConnection = z.infer<typeof CreateOrgConnection>;
|
|
@@ -194,6 +201,7 @@ export declare const UpdateOrgConnection: z.ZodObject<{
|
|
|
194
201
|
certificate: z.ZodOptional<z.ZodString>;
|
|
195
202
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
196
203
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
204
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
197
205
|
}, z.core.$strip>;
|
|
198
206
|
export type UpdateOrgConnection = z.infer<typeof UpdateOrgConnection>;
|
|
199
207
|
export declare const OrgConnectionCheck: z.ZodObject<{
|
|
@@ -240,6 +248,8 @@ export declare const OrgConnectionTestResult: z.ZodObject<{
|
|
|
240
248
|
certificate: "certificate";
|
|
241
249
|
}>;
|
|
242
250
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
useConnectDomain: z.ZodBoolean;
|
|
252
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
243
253
|
permissions: z.ZodArray<z.ZodObject<{
|
|
244
254
|
name: z.ZodString;
|
|
245
255
|
isRequired: z.ZodBoolean;
|