@workwae/sdk 0.1.0-alpha.1 → 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.
Files changed (64) hide show
  1. package/README.md +7 -7
  2. package/client.d.ts +1 -1
  3. package/contract/accounts/models.d.ts +85 -45
  4. package/contract/accounts/routes.d.ts +191 -29
  5. package/contract/ai/models.d.ts +0 -1
  6. package/contract/ai/routes.d.ts +9 -0
  7. package/contract/audit-log/models.d.ts +22 -5
  8. package/contract/audit-log/routes.d.ts +11 -1
  9. package/contract/calendar/models.d.ts +249 -74
  10. package/contract/calendar/routes.d.ts +574 -30
  11. package/contract/connect/models.d.ts +30 -16
  12. package/contract/connect/routes.d.ts +51 -7
  13. package/contract/connect-domain/models.d.ts +41 -0
  14. package/contract/connect-domain/routes.d.ts +197 -0
  15. package/contract/contacts/models.d.ts +0 -10
  16. package/contract/contacts/routes.d.ts +14 -0
  17. package/contract/custom-domain.d.ts +12 -0
  18. package/contract/email-validation/models.d.ts +119 -0
  19. package/contract/email-validation/routes.d.ts +106 -0
  20. package/contract/errors.d.ts +28 -20
  21. package/contract/events/models.d.ts +139 -79
  22. package/contract/events/routes.d.ts +54 -44
  23. package/contract/exports/routes.d.ts +10 -0
  24. package/contract/identities/models.d.ts +7 -9
  25. package/contract/identities/routes.d.ts +79 -10
  26. package/contract/limits.d.ts +27 -73
  27. package/contract/mail/models.d.ts +230 -50
  28. package/contract/mail/routes.d.ts +649 -59
  29. package/contract/mcp-keys/models.d.ts +125 -0
  30. package/contract/mcp-keys/routes.d.ts +151 -0
  31. package/contract/meetings/models.d.ts +39 -33
  32. package/contract/meetings/routes.d.ts +121 -23
  33. package/contract/oauth-apps/models.d.ts +6 -6
  34. package/contract/oauth-apps/routes.d.ts +34 -4
  35. package/contract/org-connections/models.d.ts +93 -39
  36. package/contract/org-connections/routes.d.ts +352 -43
  37. package/contract/plans/credit-packs.d.ts +30 -0
  38. package/contract/plans/models.d.ts +208 -0
  39. package/contract/primitives.d.ts +7 -62
  40. package/contract/public.d.ts +7 -0
  41. package/contract/reasons.d.ts +559 -21
  42. package/contract/router.d.ts +6447 -2719
  43. package/contract/scheduling/models.d.ts +405 -0
  44. package/contract/scheduling/routes.d.ts +756 -0
  45. package/contract/send/models.d.ts +140 -45
  46. package/contract/send/routes.d.ts +310 -31
  47. package/contract/settings/models.d.ts +73 -13
  48. package/contract/settings/routes.d.ts +56 -4
  49. package/contract/suppressions/models.d.ts +21 -28
  50. package/contract/suppressions/routes.d.ts +62 -14
  51. package/contract/templates/models.d.ts +0 -14
  52. package/contract/templates/routes.d.ts +30 -6
  53. package/contract/threads/models.d.ts +0 -5
  54. package/contract/threads/routes.d.ts +40 -0
  55. package/contract/tracking-domain/models.d.ts +41 -0
  56. package/contract/tracking-domain/routes.d.ts +193 -0
  57. package/contract/usage/models.d.ts +98 -126
  58. package/contract/usage/routes.d.ts +48 -20
  59. package/contract/webhooks/models.d.ts +45 -30
  60. package/contract/webhooks/routes.d.ts +52 -9
  61. package/contract/webhooks/signing.d.ts +0 -16
  62. package/index.js +1 -4334
  63. package/package.json +6 -7
  64. package/index.js.map +0 -59
@@ -0,0 +1,125 @@
1
+ import * as z from "zod";
2
+ export declare const McpKeyScope: z.ZodEnum<{
3
+ read: "read";
4
+ write: "write";
5
+ send: "send";
6
+ }>;
7
+ export type McpKeyScope = z.infer<typeof McpKeyScope>;
8
+ export declare const McpKeyScopes: z.ZodArray<z.ZodEnum<{
9
+ read: "read";
10
+ write: "write";
11
+ send: "send";
12
+ }>>;
13
+ export declare const McpKey: z.ZodObject<{
14
+ id: z.ZodUUID;
15
+ name: z.ZodString;
16
+ prefix: z.ZodString;
17
+ scopes: z.ZodArray<z.ZodEnum<{
18
+ read: "read";
19
+ write: "write";
20
+ send: "send";
21
+ }>>;
22
+ accountId: z.ZodUUID;
23
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
24
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
25
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
26
+ sendPolicy: z.ZodNullable<z.ZodObject<{
27
+ mode: z.ZodOptional<z.ZodEnum<{
28
+ allow: "allow";
29
+ confirm: "confirm";
30
+ drafts_only: "drafts_only";
31
+ }>>;
32
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
33
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
37
+ export type McpKey = z.infer<typeof McpKey>;
38
+ export declare const McpKeyList: z.ZodObject<{
39
+ items: z.ZodArray<z.ZodObject<{
40
+ id: z.ZodUUID;
41
+ name: z.ZodString;
42
+ prefix: z.ZodString;
43
+ scopes: z.ZodArray<z.ZodEnum<{
44
+ read: "read";
45
+ write: "write";
46
+ send: "send";
47
+ }>>;
48
+ accountId: z.ZodUUID;
49
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
50
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
51
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
52
+ sendPolicy: z.ZodNullable<z.ZodObject<{
53
+ mode: z.ZodOptional<z.ZodEnum<{
54
+ allow: "allow";
55
+ confirm: "confirm";
56
+ drafts_only: "drafts_only";
57
+ }>>;
58
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
59
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
61
+ }, z.core.$strip>>;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>;
64
+ export type McpKeyList = z.infer<typeof McpKeyList>;
65
+ export declare const CreatedMcpKey: z.ZodObject<{
66
+ id: z.ZodUUID;
67
+ name: z.ZodString;
68
+ prefix: z.ZodString;
69
+ scopes: z.ZodArray<z.ZodEnum<{
70
+ read: "read";
71
+ write: "write";
72
+ send: "send";
73
+ }>>;
74
+ accountId: z.ZodUUID;
75
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
76
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
77
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
78
+ sendPolicy: z.ZodNullable<z.ZodObject<{
79
+ mode: z.ZodOptional<z.ZodEnum<{
80
+ allow: "allow";
81
+ confirm: "confirm";
82
+ drafts_only: "drafts_only";
83
+ }>>;
84
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
85
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
86
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strip>>;
88
+ key: z.ZodString;
89
+ mcpUrl: z.ZodURL;
90
+ }, z.core.$strip>;
91
+ export type CreatedMcpKey = z.infer<typeof CreatedMcpKey>;
92
+ export declare const CreateMcpKey: z.ZodObject<{
93
+ name: z.ZodDefault<z.ZodString>;
94
+ scopes: z.ZodArray<z.ZodEnum<{
95
+ read: "read";
96
+ write: "write";
97
+ send: "send";
98
+ }>>;
99
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>>;
100
+ sendPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
101
+ mode: z.ZodOptional<z.ZodEnum<{
102
+ allow: "allow";
103
+ confirm: "confirm";
104
+ drafts_only: "drafts_only";
105
+ }>>;
106
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
107
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
108
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
109
+ }, z.core.$strip>>>;
110
+ }, z.core.$strip>;
111
+ export type CreateMcpKey = z.infer<typeof CreateMcpKey>;
112
+ export declare const McpKeyIdInput: z.ZodObject<{
113
+ accountId: z.ZodUUID;
114
+ keyId: z.ZodUUID;
115
+ }, z.core.$strip>;
116
+ export type McpKeyIdInput = z.infer<typeof McpKeyIdInput>;
117
+ export declare const ConnectSessionMcp: z.ZodObject<{
118
+ scopes: z.ZodArray<z.ZodEnum<{
119
+ read: "read";
120
+ write: "write";
121
+ send: "send";
122
+ }>>;
123
+ name: z.ZodDefault<z.ZodString>;
124
+ }, z.core.$strip>;
125
+ export type ConnectSessionMcp = z.infer<typeof ConnectSessionMcp>;
@@ -0,0 +1,151 @@
1
+ import * as z from "zod";
2
+ export declare const mcpKeys: {
3
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ accountId: z.ZodUUID;
5
+ name: z.ZodDefault<z.ZodString>;
6
+ scopes: z.ZodArray<z.ZodEnum<{
7
+ read: "read";
8
+ write: "write";
9
+ send: "send";
10
+ }>>;
11
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>>;
12
+ sendPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
+ mode: z.ZodOptional<z.ZodEnum<{
14
+ allow: "allow";
15
+ confirm: "confirm";
16
+ drafts_only: "drafts_only";
17
+ }>>;
18
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
21
+ }, z.core.$strip>>>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ id: z.ZodUUID;
24
+ name: z.ZodString;
25
+ prefix: z.ZodString;
26
+ scopes: z.ZodArray<z.ZodEnum<{
27
+ read: "read";
28
+ write: "write";
29
+ send: "send";
30
+ }>>;
31
+ accountId: z.ZodUUID;
32
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
33
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
34
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
35
+ sendPolicy: z.ZodNullable<z.ZodObject<{
36
+ mode: z.ZodOptional<z.ZodEnum<{
37
+ allow: "allow";
38
+ confirm: "confirm";
39
+ drafts_only: "drafts_only";
40
+ }>>;
41
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
42
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>>;
45
+ key: z.ZodString;
46
+ mcpUrl: z.ZodURL;
47
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
48
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
49
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
50
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
51
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
52
+ readonly role_forbidden: "The member's role does not allow the operation.";
53
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
54
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
55
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
56
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
57
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
58
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
59
+ readonly payload_too_large: "The request body is larger than the API accepts.";
60
+ readonly internal_error: "An unexpected failure on our side.";
61
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
62
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
63
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
64
+ }>>, {
65
+ mcp_key_limit: {
66
+ status: 409;
67
+ message: string;
68
+ };
69
+ account_not_found: {
70
+ status: 404;
71
+ message: string;
72
+ };
73
+ }>, Record<never, never>>;
74
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
75
+ accountId: z.ZodUUID;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ items: z.ZodArray<z.ZodObject<{
78
+ id: z.ZodUUID;
79
+ name: z.ZodString;
80
+ prefix: z.ZodString;
81
+ scopes: z.ZodArray<z.ZodEnum<{
82
+ read: "read";
83
+ write: "write";
84
+ send: "send";
85
+ }>>;
86
+ accountId: z.ZodUUID;
87
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
88
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
89
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
90
+ sendPolicy: z.ZodNullable<z.ZodObject<{
91
+ mode: z.ZodOptional<z.ZodEnum<{
92
+ allow: "allow";
93
+ confirm: "confirm";
94
+ drafts_only: "drafts_only";
95
+ }>>;
96
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
97
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
102
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
103
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
104
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
105
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
106
+ readonly role_forbidden: "The member's role does not allow the operation.";
107
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
108
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
109
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
110
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
111
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
112
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
113
+ readonly payload_too_large: "The request body is larger than the API accepts.";
114
+ readonly internal_error: "An unexpected failure on our side.";
115
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
116
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
117
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
118
+ }>>, import("../errors.js").DeclaredErrors<{
119
+ readonly account_not_found: "The account does not exist, or the caller is an account token for another account.";
120
+ }>>, Record<never, never>>;
121
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
122
+ accountId: z.ZodUUID;
123
+ keyId: z.ZodUUID;
124
+ }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
125
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
126
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
127
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
128
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
129
+ readonly role_forbidden: "The member's role does not allow the operation.";
130
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
131
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
132
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
133
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
134
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
135
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
136
+ readonly payload_too_large: "The request body is larger than the API accepts.";
137
+ readonly internal_error: "An unexpected failure on our side.";
138
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
139
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
140
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
141
+ }>>, {
142
+ mcp_key_not_found: {
143
+ status: 404;
144
+ message: string;
145
+ };
146
+ account_not_found: {
147
+ status: 404;
148
+ message: string;
149
+ };
150
+ }>, Record<never, never>>;
151
+ };
@@ -4,8 +4,6 @@ export declare const MeetingService: z.ZodEnum<{
4
4
  webex: "webex";
5
5
  }>;
6
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
7
  export declare const MeetingConnectionStatus: z.ZodEnum<{
10
8
  active: "active";
11
9
  reauth_required: "reauth_required";
@@ -28,7 +26,6 @@ export declare const MeetingConnection: z.ZodObject<{
28
26
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
29
27
  }, z.core.$strip>;
30
28
  export type MeetingConnection = z.infer<typeof MeetingConnection>;
31
- /** At most one per service. */
32
29
  export declare const MeetingConnectionList: z.ZodObject<{
33
30
  items: z.ZodArray<z.ZodObject<{
34
31
  service: z.ZodEnum<{
@@ -48,12 +45,6 @@ export declare const MeetingConnectionList: z.ZodObject<{
48
45
  }, z.core.$strip>>;
49
46
  }, z.core.$strip>;
50
47
  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
48
  export declare const MeetingAppKind: z.ZodEnum<{
58
49
  zoom_oauth: "zoom_oauth";
59
50
  zoom_s2s: "zoom_s2s";
@@ -61,7 +52,6 @@ export declare const MeetingAppKind: z.ZodEnum<{
61
52
  webex_service_app: "webex_service_app";
62
53
  }>;
63
54
  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
55
  export declare const MeetingAppStatus: z.ZodEnum<{
66
56
  active: "active";
67
57
  unverified: "unverified";
@@ -91,6 +81,7 @@ export declare const MeetingApp: z.ZodObject<{
91
81
  statusDetail: z.ZodNullable<z.ZodString>;
92
82
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
93
83
  scopes: z.ZodArray<z.ZodString>;
84
+ useConnectDomain: z.ZodBoolean;
94
85
  redirectUri: z.ZodNullable<z.ZodString>;
95
86
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
96
87
  }, z.core.$strip>;
@@ -119,35 +110,49 @@ export declare const MeetingAppList: z.ZodObject<{
119
110
  statusDetail: z.ZodNullable<z.ZodString>;
120
111
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
121
112
  scopes: z.ZodArray<z.ZodString>;
113
+ useConnectDomain: z.ZodBoolean;
122
114
  redirectUri: z.ZodNullable<z.ZodString>;
123
115
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
124
116
  }, z.core.$strip>>;
125
117
  }, z.core.$strip>;
126
118
  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">;
119
+ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
120
+ z.ZodObject<{
121
+ kind: z.ZodLiteral<"zoom_oauth">;
122
+ name: z.ZodString;
123
+ clientId: z.ZodString;
124
+ clientSecret: z.ZodString;
125
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
126
+ }, z.core.$strip>,
127
+ z.ZodObject<{
128
+ kind: z.ZodLiteral<"zoom_s2s">;
129
+ name: z.ZodString;
130
+ accountId: z.ZodString;
131
+ clientId: z.ZodString;
132
+ clientSecret: z.ZodString;
133
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
134
+ }, z.core.$strip>,
135
+ z.ZodObject<{
136
+ kind: z.ZodLiteral<"webex_oauth">;
137
+ name: z.ZodString;
138
+ clientId: z.ZodString;
139
+ clientSecret: z.ZodString;
140
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
141
+ }, z.core.$strip>,
142
+ z.ZodObject<{
143
+ kind: z.ZodLiteral<"webex_service_app">;
144
+ name: z.ZodString;
145
+ clientId: z.ZodString;
146
+ clientSecret: z.ZodString;
147
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
148
+ refreshToken: z.ZodString;
149
+ }, z.core.$strip>
150
+ ], "kind">;
150
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>;
151
156
  export declare const MeetingAppCheck: z.ZodObject<{
152
157
  name: z.ZodString;
153
158
  isOk: z.ZodBoolean;
@@ -178,6 +183,7 @@ export declare const MeetingAppTestResult: z.ZodObject<{
178
183
  statusDetail: z.ZodNullable<z.ZodString>;
179
184
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
180
185
  scopes: z.ZodArray<z.ZodString>;
186
+ useConnectDomain: z.ZodBoolean;
181
187
  redirectUri: z.ZodNullable<z.ZodString>;
182
188
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
183
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>>;
@@ -34,6 +35,8 @@ export declare const meetingApps: {
34
35
  readonly missing_scope: "The API key lacks the scope the operation needs.";
35
36
  readonly role_forbidden: "The member's role does not allow the operation.";
36
37
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
38
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
39
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
37
40
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
38
41
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
39
42
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -45,29 +48,102 @@ export declare const meetingApps: {
45
48
  }>>, import("../errors.js").DeclaredErrors<{
46
49
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
47
50
  }>>, 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">;
51
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[
52
+ z.ZodObject<{
53
+ kind: z.ZodLiteral<"zoom_oauth">;
54
+ name: z.ZodString;
55
+ clientId: z.ZodString;
56
+ clientSecret: z.ZodString;
57
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
58
+ }, z.core.$strip>,
59
+ z.ZodObject<{
60
+ kind: z.ZodLiteral<"zoom_s2s">;
61
+ name: z.ZodString;
62
+ accountId: z.ZodString;
63
+ clientId: z.ZodString;
64
+ clientSecret: z.ZodString;
65
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
66
+ }, z.core.$strip>,
67
+ z.ZodObject<{
68
+ kind: z.ZodLiteral<"webex_oauth">;
69
+ name: z.ZodString;
70
+ clientId: z.ZodString;
71
+ clientSecret: z.ZodString;
72
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
73
+ }, z.core.$strip>,
74
+ z.ZodObject<{
75
+ kind: z.ZodLiteral<"webex_service_app">;
76
+ name: z.ZodString;
77
+ clientId: z.ZodString;
78
+ clientSecret: z.ZodString;
79
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
80
+ refreshToken: z.ZodString;
81
+ }, z.core.$strip>
82
+ ], "kind">, z.ZodObject<{
83
+ id: z.ZodUUID;
84
+ kind: z.ZodEnum<{
85
+ zoom_oauth: "zoom_oauth";
86
+ zoom_s2s: "zoom_s2s";
87
+ webex_oauth: "webex_oauth";
88
+ webex_service_app: "webex_service_app";
89
+ }>;
90
+ service: z.ZodEnum<{
91
+ zoom: "zoom";
92
+ webex: "webex";
93
+ }>;
61
94
  name: z.ZodString;
62
95
  clientId: z.ZodString;
63
- clientSecret: z.ZodString;
96
+ zoomAccountId: z.ZodNullable<z.ZodString>;
97
+ status: z.ZodNullable<z.ZodEnum<{
98
+ active: "active";
99
+ unverified: "unverified";
100
+ failing: "failing";
101
+ }>>;
102
+ statusDetail: z.ZodNullable<z.ZodString>;
103
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
104
+ scopes: z.ZodArray<z.ZodString>;
105
+ useConnectDomain: z.ZodBoolean;
106
+ redirectUri: z.ZodNullable<z.ZodString>;
107
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
108
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
109
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
110
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
111
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
112
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
113
+ readonly role_forbidden: "The member's role does not allow the operation.";
114
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
115
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
116
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
117
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
118
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
119
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
120
+ readonly payload_too_large: "The request body is larger than the API accepts.";
121
+ readonly internal_error: "An unexpected failure on our side.";
122
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
123
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
124
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
125
+ }>>, {
126
+ meeting_app_exists: {
127
+ status: 409;
128
+ message: string;
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>;
64
146
  }, 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
147
  id: z.ZodUUID;
72
148
  kind: z.ZodEnum<{
73
149
  zoom_oauth: "zoom_oauth";
@@ -90,6 +166,7 @@ export declare const meetingApps: {
90
166
  statusDetail: z.ZodNullable<z.ZodString>;
91
167
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
92
168
  scopes: z.ZodArray<z.ZodString>;
169
+ useConnectDomain: z.ZodBoolean;
93
170
  redirectUri: z.ZodNullable<z.ZodString>;
94
171
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
95
172
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
@@ -99,6 +176,8 @@ export declare const meetingApps: {
99
176
  readonly missing_scope: "The API key lacks the scope the operation needs.";
100
177
  readonly role_forbidden: "The member's role does not allow the operation.";
101
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.";
102
181
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
103
182
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
104
183
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -108,10 +187,18 @@ export declare const meetingApps: {
108
187
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
109
188
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
110
189
  }>>, {
111
- meeting_app_exists: {
190
+ connect_domain_inactive: {
112
191
  status: 409;
113
192
  message: string;
114
193
  };
194
+ connect_domain_unsupported: {
195
+ status: 400;
196
+ message: string;
197
+ };
198
+ meeting_app_not_found: {
199
+ status: 404;
200
+ message: string;
201
+ };
115
202
  plan_module_unavailable: {
116
203
  status: 403;
117
204
  message: string;
@@ -144,6 +231,7 @@ export declare const meetingApps: {
144
231
  statusDetail: z.ZodNullable<z.ZodString>;
145
232
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
146
233
  scopes: z.ZodArray<z.ZodString>;
234
+ useConnectDomain: z.ZodBoolean;
147
235
  redirectUri: z.ZodNullable<z.ZodString>;
148
236
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
149
237
  }, z.core.$strip>;
@@ -159,6 +247,8 @@ export declare const meetingApps: {
159
247
  readonly missing_scope: "The API key lacks the scope the operation needs.";
160
248
  readonly role_forbidden: "The member's role does not allow the operation.";
161
249
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
250
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
251
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
162
252
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
163
253
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
164
254
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -190,6 +280,8 @@ export declare const meetingApps: {
190
280
  readonly missing_scope: "The API key lacks the scope the operation needs.";
191
281
  readonly role_forbidden: "The member's role does not allow the operation.";
192
282
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
283
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
284
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
193
285
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
194
286
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
195
287
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -236,6 +328,8 @@ export declare const meetingConnections: {
236
328
  readonly missing_scope: "The API key lacks the scope the operation needs.";
237
329
  readonly role_forbidden: "The member's role does not allow the operation.";
238
330
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
331
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
332
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
239
333
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
240
334
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
241
335
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -267,6 +361,8 @@ export declare const meetingConnections: {
267
361
  readonly missing_scope: "The API key lacks the scope the operation needs.";
268
362
  readonly role_forbidden: "The member's role does not allow the operation.";
269
363
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
364
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
365
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
270
366
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
271
367
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
272
368
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -287,7 +383,6 @@ export declare const meetingConnections: {
287
383
  }>, Record<never, never>>;
288
384
  };
289
385
  export declare const meetingConnectSessions: {
290
- /** Returns the hosted page's link; the session itself is only read by its token. */
291
386
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
292
387
  accountId: z.ZodUUID;
293
388
  service: z.ZodEnum<{
@@ -309,6 +404,8 @@ export declare const meetingConnectSessions: {
309
404
  readonly missing_scope: "The API key lacks the scope the operation needs.";
310
405
  readonly role_forbidden: "The member's role does not allow the operation.";
311
406
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
407
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
408
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
312
409
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
313
410
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
314
411
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -348,7 +445,6 @@ export declare const meetingConnectSessions: {
348
445
  };
349
446
  }>, Record<never, never>>;
350
447
  };
351
- /** Unauthenticated: the hosted page reads its session by the token in its URL. */
352
448
  export declare const hostedMeetingConnectSessions: {
353
449
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
354
450
  token: z.ZodString;
@@ -372,6 +468,8 @@ export declare const hostedMeetingConnectSessions: {
372
468
  readonly missing_scope: "The API key lacks the scope the operation needs.";
373
469
  readonly role_forbidden: "The member's role does not allow the operation.";
374
470
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
471
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
472
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
375
473
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
376
474
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
377
475
  readonly overloaded: "The API is shedding load; retry after Retry-After.";