@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.2

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 (61) 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 +19 -5
  8. package/contract/audit-log/routes.d.ts +10 -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 +28 -16
  12. package/contract/connect/routes.d.ts +46 -7
  13. package/contract/contacts/models.d.ts +0 -10
  14. package/contract/contacts/routes.d.ts +14 -0
  15. package/contract/email-validation/models.d.ts +119 -0
  16. package/contract/email-validation/routes.d.ts +106 -0
  17. package/contract/errors.d.ts +28 -20
  18. package/contract/events/models.d.ts +139 -79
  19. package/contract/events/routes.d.ts +54 -44
  20. package/contract/exports/routes.d.ts +10 -0
  21. package/contract/identities/models.d.ts +7 -9
  22. package/contract/identities/routes.d.ts +79 -10
  23. package/contract/limits.d.ts +21 -73
  24. package/contract/mail/models.d.ts +91 -48
  25. package/contract/mail/routes.d.ts +458 -18
  26. package/contract/mcp-keys/models.d.ts +125 -0
  27. package/contract/mcp-keys/routes.d.ts +151 -0
  28. package/contract/meetings/models.d.ts +28 -33
  29. package/contract/meetings/routes.d.ts +44 -25
  30. package/contract/oauth-apps/models.d.ts +0 -6
  31. package/contract/oauth-apps/routes.d.ts +8 -0
  32. package/contract/org-connections/models.d.ts +83 -39
  33. package/contract/org-connections/routes.d.ts +320 -43
  34. package/contract/plans/credit-packs.d.ts +30 -0
  35. package/contract/plans/models.d.ts +208 -0
  36. package/contract/primitives.d.ts +7 -62
  37. package/contract/public.d.ts +6 -0
  38. package/contract/reasons.d.ts +532 -21
  39. package/contract/router.d.ts +6425 -3212
  40. package/contract/scheduling/models.d.ts +405 -0
  41. package/contract/scheduling/routes.d.ts +756 -0
  42. package/contract/send/models.d.ts +82 -45
  43. package/contract/send/routes.d.ts +281 -32
  44. package/contract/settings/models.d.ts +73 -13
  45. package/contract/settings/routes.d.ts +56 -4
  46. package/contract/suppressions/models.d.ts +21 -28
  47. package/contract/suppressions/routes.d.ts +62 -14
  48. package/contract/templates/models.d.ts +0 -14
  49. package/contract/templates/routes.d.ts +30 -6
  50. package/contract/threads/models.d.ts +0 -5
  51. package/contract/threads/routes.d.ts +40 -0
  52. package/contract/tracking-domain/models.d.ts +41 -0
  53. package/contract/tracking-domain/routes.d.ts +193 -0
  54. package/contract/usage/models.d.ts +98 -126
  55. package/contract/usage/routes.d.ts +48 -20
  56. package/contract/webhooks/models.d.ts +45 -30
  57. package/contract/webhooks/routes.d.ts +52 -9
  58. package/contract/webhooks/signing.d.ts +0 -16
  59. package/index.js +1 -4334
  60. package/package.json +6 -7
  61. 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";
@@ -124,29 +114,34 @@ export declare const MeetingAppList: z.ZodObject<{
124
114
  }, z.core.$strip>>;
125
115
  }, z.core.$strip>;
126
116
  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">;
117
+ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
118
+ z.ZodObject<{
119
+ kind: z.ZodLiteral<"zoom_oauth">;
120
+ name: z.ZodString;
121
+ clientId: z.ZodString;
122
+ clientSecret: z.ZodString;
123
+ }, z.core.$strip>,
124
+ z.ZodObject<{
125
+ kind: z.ZodLiteral<"zoom_s2s">;
126
+ name: z.ZodString;
127
+ accountId: z.ZodString;
128
+ clientId: z.ZodString;
129
+ clientSecret: z.ZodString;
130
+ }, z.core.$strip>,
131
+ z.ZodObject<{
132
+ kind: z.ZodLiteral<"webex_oauth">;
133
+ name: z.ZodString;
134
+ clientId: z.ZodString;
135
+ clientSecret: z.ZodString;
136
+ }, z.core.$strip>,
137
+ z.ZodObject<{
138
+ kind: z.ZodLiteral<"webex_service_app">;
139
+ name: z.ZodString;
140
+ clientId: z.ZodString;
141
+ clientSecret: z.ZodString;
142
+ refreshToken: z.ZodString;
143
+ }, z.core.$strip>
144
+ ], "kind">;
150
145
  export type CreateMeetingApp = z.infer<typeof CreateMeetingApp>;
151
146
  export declare const MeetingAppCheck: z.ZodObject<{
152
147
  name: z.ZodString;
@@ -34,6 +34,8 @@ export declare const meetingApps: {
34
34
  readonly missing_scope: "The API key lacks the scope the operation needs.";
35
35
  readonly role_forbidden: "The member's role does not allow the operation.";
36
36
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
37
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
38
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
37
39
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
38
40
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
39
41
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -45,29 +47,34 @@ export declare const meetingApps: {
45
47
  }>>, import("../errors.js").DeclaredErrors<{
46
48
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
47
49
  }>>, 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<{
50
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[
51
+ z.ZodObject<{
52
+ kind: z.ZodLiteral<"zoom_oauth">;
53
+ name: z.ZodString;
54
+ clientId: z.ZodString;
55
+ clientSecret: z.ZodString;
56
+ }, z.core.$strip>,
57
+ z.ZodObject<{
58
+ kind: z.ZodLiteral<"zoom_s2s">;
59
+ name: z.ZodString;
60
+ accountId: z.ZodString;
61
+ clientId: z.ZodString;
62
+ clientSecret: z.ZodString;
63
+ }, z.core.$strip>,
64
+ z.ZodObject<{
65
+ kind: z.ZodLiteral<"webex_oauth">;
66
+ name: z.ZodString;
67
+ clientId: z.ZodString;
68
+ clientSecret: z.ZodString;
69
+ }, z.core.$strip>,
70
+ z.ZodObject<{
71
+ kind: z.ZodLiteral<"webex_service_app">;
72
+ name: z.ZodString;
73
+ clientId: z.ZodString;
74
+ clientSecret: z.ZodString;
75
+ refreshToken: z.ZodString;
76
+ }, z.core.$strip>
77
+ ], "kind">, z.ZodObject<{
71
78
  id: z.ZodUUID;
72
79
  kind: z.ZodEnum<{
73
80
  zoom_oauth: "zoom_oauth";
@@ -99,6 +106,8 @@ export declare const meetingApps: {
99
106
  readonly missing_scope: "The API key lacks the scope the operation needs.";
100
107
  readonly role_forbidden: "The member's role does not allow the operation.";
101
108
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
109
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
110
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
102
111
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
103
112
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
104
113
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -159,6 +168,8 @@ export declare const meetingApps: {
159
168
  readonly missing_scope: "The API key lacks the scope the operation needs.";
160
169
  readonly role_forbidden: "The member's role does not allow the operation.";
161
170
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
171
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
172
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
162
173
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
163
174
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
164
175
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -190,6 +201,8 @@ export declare const meetingApps: {
190
201
  readonly missing_scope: "The API key lacks the scope the operation needs.";
191
202
  readonly role_forbidden: "The member's role does not allow the operation.";
192
203
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
204
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
205
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
193
206
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
194
207
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
195
208
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -236,6 +249,8 @@ export declare const meetingConnections: {
236
249
  readonly missing_scope: "The API key lacks the scope the operation needs.";
237
250
  readonly role_forbidden: "The member's role does not allow the operation.";
238
251
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
252
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
253
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
239
254
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
240
255
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
241
256
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -267,6 +282,8 @@ export declare const meetingConnections: {
267
282
  readonly missing_scope: "The API key lacks the scope the operation needs.";
268
283
  readonly role_forbidden: "The member's role does not allow the operation.";
269
284
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
285
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
286
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
270
287
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
271
288
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
272
289
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -287,7 +304,6 @@ export declare const meetingConnections: {
287
304
  }>, Record<never, never>>;
288
305
  };
289
306
  export declare const meetingConnectSessions: {
290
- /** Returns the hosted page's link; the session itself is only read by its token. */
291
307
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
292
308
  accountId: z.ZodUUID;
293
309
  service: z.ZodEnum<{
@@ -309,6 +325,8 @@ export declare const meetingConnectSessions: {
309
325
  readonly missing_scope: "The API key lacks the scope the operation needs.";
310
326
  readonly role_forbidden: "The member's role does not allow the operation.";
311
327
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
328
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
329
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
312
330
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
313
331
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
314
332
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -348,7 +366,6 @@ export declare const meetingConnectSessions: {
348
366
  };
349
367
  }>, Record<never, never>>;
350
368
  };
351
- /** Unauthenticated: the hosted page reads its session by the token in its URL. */
352
369
  export declare const hostedMeetingConnectSessions: {
353
370
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
354
371
  token: z.ZodString;
@@ -372,6 +389,8 @@ export declare const hostedMeetingConnectSessions: {
372
389
  readonly missing_scope: "The API key lacks the scope the operation needs.";
373
390
  readonly role_forbidden: "The member's role does not allow the operation.";
374
391
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
392
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
393
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
375
394
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
376
395
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
377
396
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -1,11 +1,5 @@
1
1
  import * as z from "zod";
2
- /** A Pub/Sub topic id as users.watch takes it: projects/<project id>/topics/<topic>. */
3
2
  export declare const PUBSUB_TOPIC_PATTERN: RegExp;
4
- /**
5
- * Gmail push for the accounts of a tenant Google app: users.watch publishes to `topic`, which
6
- * must be in the Cloud project of the app's OAuth client, and the tenant's push subscription
7
- * delivers to the app's gmailPushEndpoint with OIDC tokens issued for `serviceAccount`.
8
- */
9
3
  export declare const GmailPushSettings: z.ZodObject<{
10
4
  topic: z.ZodString;
11
5
  serviceAccount: z.ZodEmail;
@@ -30,6 +30,8 @@ export declare const oauthApps: {
30
30
  readonly missing_scope: "The API key lacks the scope the operation needs.";
31
31
  readonly role_forbidden: "The member's role does not allow the operation.";
32
32
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
33
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
34
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
33
35
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
34
36
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
35
37
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -82,6 +84,8 @@ export declare const oauthApps: {
82
84
  readonly missing_scope: "The API key lacks the scope the operation needs.";
83
85
  readonly role_forbidden: "The member's role does not allow the operation.";
84
86
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
87
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
88
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
85
89
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
86
90
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
87
91
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -131,6 +135,8 @@ export declare const oauthApps: {
131
135
  readonly missing_scope: "The API key lacks the scope the operation needs.";
132
136
  readonly role_forbidden: "The member's role does not allow the operation.";
133
137
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
138
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
139
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
134
140
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
135
141
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
136
142
  readonly overloaded: "The API is shedding load; retry after Retry-After.";
@@ -166,6 +172,8 @@ export declare const oauthApps: {
166
172
  readonly missing_scope: "The API key lacks the scope the operation needs.";
167
173
  readonly role_forbidden: "The member's role does not allow the operation.";
168
174
  readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
175
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
176
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
169
177
  readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
170
178
  readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
171
179
  readonly overloaded: "The API is shedding load; retry after Retry-After.";