@workwae/sdk 0.0.0-stage → 0.1.0-alpha.1

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 (56) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +726 -0
  4. package/contract/accounts/routes.d.ts +1318 -0
  5. package/contract/ai/models.d.ts +30 -0
  6. package/contract/ai/routes.d.ts +89 -0
  7. package/contract/audit-log/models.d.ts +107 -0
  8. package/contract/audit-log/routes.d.ts +72 -0
  9. package/contract/calendar/models.d.ts +837 -0
  10. package/contract/calendar/routes.d.ts +1299 -0
  11. package/contract/connect/models.d.ts +272 -0
  12. package/contract/connect/routes.d.ts +531 -0
  13. package/contract/contacts/models.d.ts +269 -0
  14. package/contract/contacts/routes.d.ts +634 -0
  15. package/contract/errors.d.ts +108 -0
  16. package/contract/events/models.d.ts +2364 -0
  17. package/contract/events/routes.d.ts +107 -0
  18. package/contract/exports/models.d.ts +67 -0
  19. package/contract/exports/routes.d.ts +196 -0
  20. package/contract/identities/models.d.ts +100 -0
  21. package/contract/identities/routes.d.ts +249 -0
  22. package/contract/limits.d.ts +170 -0
  23. package/contract/mail/models.d.ts +528 -0
  24. package/contract/mail/routes.d.ts +749 -0
  25. package/contract/meetings/models.d.ts +232 -0
  26. package/contract/meetings/routes.d.ts +386 -0
  27. package/contract/oauth-apps/models.d.ts +92 -0
  28. package/contract/oauth-apps/routes.d.ts +187 -0
  29. package/contract/org-connections/models.d.ts +383 -0
  30. package/contract/org-connections/routes.d.ts +830 -0
  31. package/contract/primitives.d.ts +140 -0
  32. package/contract/public.d.ts +26 -0
  33. package/contract/reasons.d.ts +711 -0
  34. package/contract/router.d.ts +9773 -0
  35. package/contract/send/models.d.ts +750 -0
  36. package/contract/send/routes.d.ts +1239 -0
  37. package/contract/settings/models.d.ts +103 -0
  38. package/contract/settings/routes.d.ts +110 -0
  39. package/contract/suppressions/models.d.ts +231 -0
  40. package/contract/suppressions/routes.d.ts +317 -0
  41. package/contract/templates/models.d.ts +169 -0
  42. package/contract/templates/routes.d.ts +281 -0
  43. package/contract/threads/models.d.ts +117 -0
  44. package/contract/threads/routes.d.ts +336 -0
  45. package/contract/usage/models.d.ts +213 -0
  46. package/contract/usage/routes.d.ts +81 -0
  47. package/contract/webhooks/models.d.ts +879 -0
  48. package/contract/webhooks/routes.d.ts +839 -0
  49. package/contract/webhooks/signing.d.ts +35 -0
  50. package/errors.d.ts +15 -0
  51. package/index.d.ts +6 -0
  52. package/index.js +4334 -0
  53. package/index.js.map +59 -0
  54. package/package.json +45 -4
  55. package/pagination.d.ts +40 -0
  56. package/webhooks.d.ts +28 -0
@@ -0,0 +1,232 @@
1
+ import * as z from "zod";
2
+ export declare const MeetingService: z.ZodEnum<{
3
+ zoom: "zoom";
4
+ webex: "webex";
5
+ }>;
6
+ export type MeetingService = z.infer<typeof MeetingService>;
7
+ /** reauth_required: the service refused the grant (revoked, expired); connect again. Mail and
8
+ * calendar sync are not affected. */
9
+ export declare const MeetingConnectionStatus: z.ZodEnum<{
10
+ active: "active";
11
+ reauth_required: "reauth_required";
12
+ }>;
13
+ export type MeetingConnectionStatus = z.infer<typeof MeetingConnectionStatus>;
14
+ export declare const MeetingConnection: z.ZodObject<{
15
+ service: z.ZodEnum<{
16
+ zoom: "zoom";
17
+ webex: "webex";
18
+ }>;
19
+ email: z.ZodString;
20
+ displayName: z.ZodNullable<z.ZodString>;
21
+ meetingAppId: z.ZodNullable<z.ZodUUID>;
22
+ status: z.ZodEnum<{
23
+ active: "active";
24
+ reauth_required: "reauth_required";
25
+ }>;
26
+ statusReason: z.ZodNullable<z.ZodString>;
27
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
28
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
29
+ }, z.core.$strip>;
30
+ export type MeetingConnection = z.infer<typeof MeetingConnection>;
31
+ /** At most one per service. */
32
+ export declare const MeetingConnectionList: z.ZodObject<{
33
+ items: z.ZodArray<z.ZodObject<{
34
+ service: z.ZodEnum<{
35
+ zoom: "zoom";
36
+ webex: "webex";
37
+ }>;
38
+ email: z.ZodString;
39
+ displayName: z.ZodNullable<z.ZodString>;
40
+ meetingAppId: z.ZodNullable<z.ZodUUID>;
41
+ status: z.ZodEnum<{
42
+ active: "active";
43
+ reauth_required: "reauth_required";
44
+ }>;
45
+ statusReason: z.ZodNullable<z.ZodString>;
46
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
47
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>;
50
+ export type MeetingConnectionList = z.infer<typeof MeetingConnectionList>;
51
+ /**
52
+ * zoom_oauth / webex_oauth: the tenant's own sign-in app for per-account grants, instead of the
53
+ * platform's. zoom_s2s: a Zoom Server-to-Server OAuth app. webex_service_app: a Webex Service App
54
+ * authorized by an organization administrator. A server app creates meetings for every account
55
+ * without a grant of its own, hosted by the service user with the mailbox's address.
56
+ */
57
+ export declare const MeetingAppKind: z.ZodEnum<{
58
+ zoom_oauth: "zoom_oauth";
59
+ zoom_s2s: "zoom_s2s";
60
+ webex_oauth: "webex_oauth";
61
+ webex_service_app: "webex_service_app";
62
+ }>;
63
+ export type MeetingAppKind = z.infer<typeof MeetingAppKind>;
64
+ /** Server apps only: unverified until used or tested, then the outcome of the last of those. */
65
+ export declare const MeetingAppStatus: z.ZodEnum<{
66
+ active: "active";
67
+ unverified: "unverified";
68
+ failing: "failing";
69
+ }>;
70
+ export type MeetingAppStatus = z.infer<typeof MeetingAppStatus>;
71
+ export declare const MeetingApp: z.ZodObject<{
72
+ id: z.ZodUUID;
73
+ kind: z.ZodEnum<{
74
+ zoom_oauth: "zoom_oauth";
75
+ zoom_s2s: "zoom_s2s";
76
+ webex_oauth: "webex_oauth";
77
+ webex_service_app: "webex_service_app";
78
+ }>;
79
+ service: z.ZodEnum<{
80
+ zoom: "zoom";
81
+ webex: "webex";
82
+ }>;
83
+ name: z.ZodString;
84
+ clientId: z.ZodString;
85
+ zoomAccountId: z.ZodNullable<z.ZodString>;
86
+ status: z.ZodNullable<z.ZodEnum<{
87
+ active: "active";
88
+ unverified: "unverified";
89
+ failing: "failing";
90
+ }>>;
91
+ statusDetail: z.ZodNullable<z.ZodString>;
92
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
93
+ scopes: z.ZodArray<z.ZodString>;
94
+ redirectUri: z.ZodNullable<z.ZodString>;
95
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
96
+ }, z.core.$strip>;
97
+ export type MeetingApp = z.infer<typeof MeetingApp>;
98
+ export declare const MeetingAppList: z.ZodObject<{
99
+ items: z.ZodArray<z.ZodObject<{
100
+ id: z.ZodUUID;
101
+ kind: z.ZodEnum<{
102
+ zoom_oauth: "zoom_oauth";
103
+ zoom_s2s: "zoom_s2s";
104
+ webex_oauth: "webex_oauth";
105
+ webex_service_app: "webex_service_app";
106
+ }>;
107
+ service: z.ZodEnum<{
108
+ zoom: "zoom";
109
+ webex: "webex";
110
+ }>;
111
+ name: z.ZodString;
112
+ clientId: z.ZodString;
113
+ zoomAccountId: z.ZodNullable<z.ZodString>;
114
+ status: z.ZodNullable<z.ZodEnum<{
115
+ active: "active";
116
+ unverified: "unverified";
117
+ failing: "failing";
118
+ }>>;
119
+ statusDetail: z.ZodNullable<z.ZodString>;
120
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
121
+ scopes: z.ZodArray<z.ZodString>;
122
+ redirectUri: z.ZodNullable<z.ZodString>;
123
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
124
+ }, z.core.$strip>>;
125
+ }, z.core.$strip>;
126
+ export type MeetingAppList = z.infer<typeof MeetingAppList>;
127
+ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[z.ZodObject<{
128
+ kind: z.ZodLiteral<"zoom_oauth">;
129
+ name: z.ZodString;
130
+ clientId: z.ZodString;
131
+ clientSecret: z.ZodString;
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ kind: z.ZodLiteral<"zoom_s2s">;
134
+ name: z.ZodString;
135
+ accountId: z.ZodString;
136
+ clientId: z.ZodString;
137
+ clientSecret: z.ZodString;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"webex_oauth">;
140
+ name: z.ZodString;
141
+ clientId: z.ZodString;
142
+ clientSecret: z.ZodString;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ kind: z.ZodLiteral<"webex_service_app">;
145
+ name: z.ZodString;
146
+ clientId: z.ZodString;
147
+ clientSecret: z.ZodString;
148
+ refreshToken: z.ZodString;
149
+ }, z.core.$strip>], "kind">;
150
+ export type CreateMeetingApp = z.infer<typeof CreateMeetingApp>;
151
+ export declare const MeetingAppCheck: z.ZodObject<{
152
+ name: z.ZodString;
153
+ isOk: z.ZodBoolean;
154
+ detail: z.ZodString;
155
+ }, z.core.$strip>;
156
+ export type MeetingAppCheck = z.infer<typeof MeetingAppCheck>;
157
+ export declare const MeetingAppTestResult: z.ZodObject<{
158
+ app: z.ZodObject<{
159
+ id: z.ZodUUID;
160
+ kind: z.ZodEnum<{
161
+ zoom_oauth: "zoom_oauth";
162
+ zoom_s2s: "zoom_s2s";
163
+ webex_oauth: "webex_oauth";
164
+ webex_service_app: "webex_service_app";
165
+ }>;
166
+ service: z.ZodEnum<{
167
+ zoom: "zoom";
168
+ webex: "webex";
169
+ }>;
170
+ name: z.ZodString;
171
+ clientId: z.ZodString;
172
+ zoomAccountId: z.ZodNullable<z.ZodString>;
173
+ status: z.ZodNullable<z.ZodEnum<{
174
+ active: "active";
175
+ unverified: "unverified";
176
+ failing: "failing";
177
+ }>>;
178
+ statusDetail: z.ZodNullable<z.ZodString>;
179
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
180
+ scopes: z.ZodArray<z.ZodString>;
181
+ redirectUri: z.ZodNullable<z.ZodString>;
182
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
183
+ }, z.core.$strip>;
184
+ checks: z.ZodArray<z.ZodObject<{
185
+ name: z.ZodString;
186
+ isOk: z.ZodBoolean;
187
+ detail: z.ZodString;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>;
190
+ export type MeetingAppTestResult = z.infer<typeof MeetingAppTestResult>;
191
+ export declare const MeetingConnectSessionPublic: z.ZodObject<{
192
+ tenantName: z.ZodString;
193
+ service: z.ZodEnum<{
194
+ zoom: "zoom";
195
+ webex: "webex";
196
+ }>;
197
+ accountEmail: z.ZodString;
198
+ status: z.ZodEnum<{
199
+ pending: "pending";
200
+ completed: "completed";
201
+ failed: "failed";
202
+ }>;
203
+ expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
204
+ }, z.core.$strip>;
205
+ export type MeetingConnectSessionPublic = z.infer<typeof MeetingConnectSessionPublic>;
206
+ export declare const MeetingAppIdInput: z.ZodObject<{
207
+ appId: z.ZodUUID;
208
+ }, z.core.$strip>;
209
+ export type MeetingAppIdInput = z.infer<typeof MeetingAppIdInput>;
210
+ export declare const TestMeetingAppRequest: z.ZodObject<{
211
+ user: z.ZodOptional<z.ZodEmail>;
212
+ }, z.core.$strip>;
213
+ export type TestMeetingAppRequest = z.infer<typeof TestMeetingAppRequest>;
214
+ export declare const MeetingConnectionInput: z.ZodObject<{
215
+ accountId: z.ZodUUID;
216
+ service: z.ZodEnum<{
217
+ zoom: "zoom";
218
+ webex: "webex";
219
+ }>;
220
+ }, z.core.$strip>;
221
+ export type MeetingConnectionInput = z.infer<typeof MeetingConnectionInput>;
222
+ export declare const CreateMeetingConnectSession: z.ZodObject<{
223
+ service: z.ZodEnum<{
224
+ zoom: "zoom";
225
+ webex: "webex";
226
+ }>;
227
+ redirectUri: z.ZodOptional<z.ZodURL>;
228
+ meetingAppId: z.ZodOptional<z.ZodUUID>;
229
+ state: z.ZodOptional<z.ZodString>;
230
+ ttlSeconds: z.ZodDefault<z.ZodNumber>;
231
+ }, z.core.$strip>;
232
+ export type CreateMeetingConnectSession = z.infer<typeof CreateMeetingConnectSession>;
@@ -0,0 +1,386 @@
1
+ import * as z from "zod";
2
+ export declare const meetingApps: {
3
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
4
+ items: z.ZodArray<z.ZodObject<{
5
+ id: z.ZodUUID;
6
+ kind: z.ZodEnum<{
7
+ zoom_oauth: "zoom_oauth";
8
+ zoom_s2s: "zoom_s2s";
9
+ webex_oauth: "webex_oauth";
10
+ webex_service_app: "webex_service_app";
11
+ }>;
12
+ service: z.ZodEnum<{
13
+ zoom: "zoom";
14
+ webex: "webex";
15
+ }>;
16
+ name: z.ZodString;
17
+ clientId: z.ZodString;
18
+ zoomAccountId: z.ZodNullable<z.ZodString>;
19
+ status: z.ZodNullable<z.ZodEnum<{
20
+ active: "active";
21
+ unverified: "unverified";
22
+ failing: "failing";
23
+ }>>;
24
+ statusDetail: z.ZodNullable<z.ZodString>;
25
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
26
+ scopes: z.ZodArray<z.ZodString>;
27
+ redirectUri: z.ZodNullable<z.ZodString>;
28
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
31
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
32
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
33
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
34
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
35
+ readonly role_forbidden: "The member's role does not allow the operation.";
36
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
37
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
38
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
39
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
40
+ readonly payload_too_large: "The request body is larger than the API accepts.";
41
+ readonly internal_error: "An unexpected failure on our side.";
42
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
43
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
44
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
45
+ }>>, import("../errors.js").DeclaredErrors<{
46
+ readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
47
+ }>>, Record<never, never>>;
48
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
49
+ kind: z.ZodLiteral<"zoom_oauth">;
50
+ name: z.ZodString;
51
+ clientId: z.ZodString;
52
+ clientSecret: z.ZodString;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ kind: z.ZodLiteral<"zoom_s2s">;
55
+ name: z.ZodString;
56
+ accountId: z.ZodString;
57
+ clientId: z.ZodString;
58
+ clientSecret: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"webex_oauth">;
61
+ name: z.ZodString;
62
+ clientId: z.ZodString;
63
+ clientSecret: z.ZodString;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"webex_service_app">;
66
+ name: z.ZodString;
67
+ clientId: z.ZodString;
68
+ clientSecret: z.ZodString;
69
+ refreshToken: z.ZodString;
70
+ }, z.core.$strip>], "kind">, z.ZodObject<{
71
+ id: z.ZodUUID;
72
+ kind: z.ZodEnum<{
73
+ zoom_oauth: "zoom_oauth";
74
+ zoom_s2s: "zoom_s2s";
75
+ webex_oauth: "webex_oauth";
76
+ webex_service_app: "webex_service_app";
77
+ }>;
78
+ service: z.ZodEnum<{
79
+ zoom: "zoom";
80
+ webex: "webex";
81
+ }>;
82
+ name: z.ZodString;
83
+ clientId: z.ZodString;
84
+ zoomAccountId: z.ZodNullable<z.ZodString>;
85
+ status: z.ZodNullable<z.ZodEnum<{
86
+ active: "active";
87
+ unverified: "unverified";
88
+ failing: "failing";
89
+ }>>;
90
+ statusDetail: z.ZodNullable<z.ZodString>;
91
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
92
+ scopes: z.ZodArray<z.ZodString>;
93
+ redirectUri: z.ZodNullable<z.ZodString>;
94
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
95
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
96
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
97
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
98
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
99
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
100
+ readonly role_forbidden: "The member's role does not allow the operation.";
101
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
102
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
103
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
104
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
105
+ readonly payload_too_large: "The request body is larger than the API accepts.";
106
+ readonly internal_error: "An unexpected failure on our side.";
107
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
108
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
109
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
110
+ }>>, {
111
+ meeting_app_exists: {
112
+ status: 409;
113
+ message: string;
114
+ };
115
+ plan_module_unavailable: {
116
+ status: 403;
117
+ message: string;
118
+ };
119
+ }>, Record<never, never>>;
120
+ test: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
121
+ appId: z.ZodUUID;
122
+ user: z.ZodOptional<z.ZodEmail>;
123
+ }, z.core.$strip>, z.ZodObject<{
124
+ app: z.ZodObject<{
125
+ id: z.ZodUUID;
126
+ kind: z.ZodEnum<{
127
+ zoom_oauth: "zoom_oauth";
128
+ zoom_s2s: "zoom_s2s";
129
+ webex_oauth: "webex_oauth";
130
+ webex_service_app: "webex_service_app";
131
+ }>;
132
+ service: z.ZodEnum<{
133
+ zoom: "zoom";
134
+ webex: "webex";
135
+ }>;
136
+ name: z.ZodString;
137
+ clientId: z.ZodString;
138
+ zoomAccountId: z.ZodNullable<z.ZodString>;
139
+ status: z.ZodNullable<z.ZodEnum<{
140
+ active: "active";
141
+ unverified: "unverified";
142
+ failing: "failing";
143
+ }>>;
144
+ statusDetail: z.ZodNullable<z.ZodString>;
145
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
146
+ scopes: z.ZodArray<z.ZodString>;
147
+ redirectUri: z.ZodNullable<z.ZodString>;
148
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
149
+ }, z.core.$strip>;
150
+ checks: z.ZodArray<z.ZodObject<{
151
+ name: z.ZodString;
152
+ isOk: z.ZodBoolean;
153
+ detail: z.ZodString;
154
+ }, z.core.$strip>>;
155
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
156
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
157
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
158
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
159
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
160
+ readonly role_forbidden: "The member's role does not allow the operation.";
161
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
162
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
163
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
164
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
165
+ readonly payload_too_large: "The request body is larger than the API accepts.";
166
+ readonly internal_error: "An unexpected failure on our side.";
167
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
168
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
169
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
170
+ }>>, {
171
+ not_testable: {
172
+ status: 400;
173
+ message: string;
174
+ };
175
+ meeting_app_not_found: {
176
+ status: 404;
177
+ message: string;
178
+ };
179
+ plan_module_unavailable: {
180
+ status: 403;
181
+ message: string;
182
+ };
183
+ }>, Record<never, never>>;
184
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
185
+ appId: z.ZodUUID;
186
+ }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
187
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
188
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
189
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
190
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
191
+ readonly role_forbidden: "The member's role does not allow the operation.";
192
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
193
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
194
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
195
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
196
+ readonly payload_too_large: "The request body is larger than the API accepts.";
197
+ readonly internal_error: "An unexpected failure on our side.";
198
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
199
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
200
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
201
+ }>>, {
202
+ meeting_app_in_use: {
203
+ status: 409;
204
+ message: string;
205
+ };
206
+ meeting_app_not_found: {
207
+ status: 404;
208
+ message: string;
209
+ };
210
+ }>, Record<never, never>>;
211
+ };
212
+ export declare const meetingConnections: {
213
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
214
+ accountId: z.ZodUUID;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ items: z.ZodArray<z.ZodObject<{
217
+ service: z.ZodEnum<{
218
+ zoom: "zoom";
219
+ webex: "webex";
220
+ }>;
221
+ email: z.ZodString;
222
+ displayName: z.ZodNullable<z.ZodString>;
223
+ meetingAppId: z.ZodNullable<z.ZodUUID>;
224
+ status: z.ZodEnum<{
225
+ active: "active";
226
+ reauth_required: "reauth_required";
227
+ }>;
228
+ statusReason: z.ZodNullable<z.ZodString>;
229
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
230
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
231
+ }, z.core.$strip>>;
232
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
233
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
234
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
235
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
236
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
237
+ readonly role_forbidden: "The member's role does not allow the operation.";
238
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
239
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
240
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
241
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
242
+ readonly payload_too_large: "The request body is larger than the API accepts.";
243
+ readonly internal_error: "An unexpected failure on our side.";
244
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
245
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
246
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
247
+ }>>, {
248
+ account_not_found: {
249
+ status: 404;
250
+ message: string;
251
+ };
252
+ plan_module_unavailable: {
253
+ status: 403;
254
+ message: string;
255
+ };
256
+ }>, Record<never, never>>;
257
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
258
+ accountId: z.ZodUUID;
259
+ service: z.ZodEnum<{
260
+ zoom: "zoom";
261
+ webex: "webex";
262
+ }>;
263
+ }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
264
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
265
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
266
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
267
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
268
+ readonly role_forbidden: "The member's role does not allow the operation.";
269
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
270
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
271
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
272
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
273
+ readonly payload_too_large: "The request body is larger than the API accepts.";
274
+ readonly internal_error: "An unexpected failure on our side.";
275
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
276
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
277
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
278
+ }>>, {
279
+ meeting_connection_not_found: {
280
+ status: 404;
281
+ message: string;
282
+ };
283
+ account_not_found: {
284
+ status: 404;
285
+ message: string;
286
+ };
287
+ }>, Record<never, never>>;
288
+ };
289
+ export declare const meetingConnectSessions: {
290
+ /** Returns the hosted page's link; the session itself is only read by its token. */
291
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
292
+ accountId: z.ZodUUID;
293
+ service: z.ZodEnum<{
294
+ zoom: "zoom";
295
+ webex: "webex";
296
+ }>;
297
+ redirectUri: z.ZodOptional<z.ZodURL>;
298
+ meetingAppId: z.ZodOptional<z.ZodUUID>;
299
+ state: z.ZodOptional<z.ZodString>;
300
+ ttlSeconds: z.ZodDefault<z.ZodNumber>;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ id: z.ZodUUID;
303
+ url: z.ZodURL;
304
+ expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
305
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
306
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
307
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
308
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
309
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
310
+ readonly role_forbidden: "The member's role does not allow the operation.";
311
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
312
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
313
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
314
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
315
+ readonly payload_too_large: "The request body is larger than the API accepts.";
316
+ readonly internal_error: "An unexpected failure on our side.";
317
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
318
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
319
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
320
+ }>>, {
321
+ provider_not_configured: {
322
+ status: 400;
323
+ message: string;
324
+ };
325
+ unknown_meeting_app: {
326
+ status: 422;
327
+ message: string;
328
+ };
329
+ meeting_app_mismatch: {
330
+ status: 400;
331
+ message: string;
332
+ };
333
+ meeting_app_secret_unreadable: {
334
+ status: 400;
335
+ message: string;
336
+ };
337
+ redirect_uri_not_allowed: {
338
+ status: 400;
339
+ message: string;
340
+ };
341
+ account_not_found: {
342
+ status: 404;
343
+ message: string;
344
+ };
345
+ plan_module_unavailable: {
346
+ status: 403;
347
+ message: string;
348
+ };
349
+ }>, Record<never, never>>;
350
+ };
351
+ /** Unauthenticated: the hosted page reads its session by the token in its URL. */
352
+ export declare const hostedMeetingConnectSessions: {
353
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
354
+ token: z.ZodString;
355
+ }, z.core.$strip>, z.ZodObject<{
356
+ tenantName: z.ZodString;
357
+ service: z.ZodEnum<{
358
+ zoom: "zoom";
359
+ webex: "webex";
360
+ }>;
361
+ accountEmail: z.ZodString;
362
+ status: z.ZodEnum<{
363
+ pending: "pending";
364
+ completed: "completed";
365
+ failed: "failed";
366
+ }>;
367
+ expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
368
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
369
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
370
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
371
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
372
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
373
+ readonly role_forbidden: "The member's role does not allow the operation.";
374
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
375
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
376
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
377
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
378
+ readonly payload_too_large: "The request body is larger than the API accepts.";
379
+ readonly internal_error: "An unexpected failure on our side.";
380
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
381
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
382
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
383
+ }>>, import("../errors.js").DeclaredErrors<{
384
+ readonly meeting_connect_session_not_found: "No session has this token, or its account no longer exists.";
385
+ }>>, Record<never, never>>;
386
+ };