@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.
- package/README.md +7 -7
- package/client.d.ts +1 -1
- package/contract/accounts/models.d.ts +85 -45
- package/contract/accounts/routes.d.ts +191 -29
- package/contract/ai/models.d.ts +0 -1
- package/contract/ai/routes.d.ts +9 -0
- package/contract/audit-log/models.d.ts +19 -5
- package/contract/audit-log/routes.d.ts +10 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +28 -16
- package/contract/connect/routes.d.ts +46 -7
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +28 -20
- package/contract/events/models.d.ts +139 -79
- package/contract/events/routes.d.ts +54 -44
- package/contract/exports/routes.d.ts +10 -0
- package/contract/identities/models.d.ts +7 -9
- package/contract/identities/routes.d.ts +79 -10
- package/contract/limits.d.ts +21 -73
- package/contract/mail/models.d.ts +91 -48
- package/contract/mail/routes.d.ts +458 -18
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +28 -33
- package/contract/meetings/routes.d.ts +44 -25
- package/contract/oauth-apps/models.d.ts +0 -6
- package/contract/oauth-apps/routes.d.ts +8 -0
- package/contract/org-connections/models.d.ts +83 -39
- package/contract/org-connections/routes.d.ts +320 -43
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +7 -62
- package/contract/public.d.ts +6 -0
- package/contract/reasons.d.ts +532 -21
- package/contract/router.d.ts +6425 -3212
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +82 -45
- package/contract/send/routes.d.ts +281 -32
- package/contract/settings/models.d.ts +73 -13
- package/contract/settings/routes.d.ts +56 -4
- package/contract/suppressions/models.d.ts +21 -28
- package/contract/suppressions/routes.d.ts +62 -14
- package/contract/templates/models.d.ts +0 -14
- package/contract/templates/routes.d.ts +30 -6
- package/contract/threads/models.d.ts +0 -5
- package/contract/threads/routes.d.ts +40 -0
- package/contract/tracking-domain/models.d.ts +41 -0
- package/contract/tracking-domain/routes.d.ts +193 -0
- package/contract/usage/models.d.ts +98 -126
- package/contract/usage/routes.d.ts +48 -20
- package/contract/webhooks/models.d.ts +45 -30
- package/contract/webhooks/routes.d.ts +52 -9
- package/contract/webhooks/signing.d.ts +0 -16
- package/index.js +1 -4334
- package/package.json +6 -7
- package/index.js.map +0 -59
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
export declare const changes: {
|
|
2
|
-
/**
|
|
3
|
-
* The change feed. Pass the returned cursor back to continue; an empty page means caught up.
|
|
4
|
-
* Omit the cursor to start from the oldest retained event.
|
|
5
|
-
*/
|
|
6
2
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
7
3
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
4
|
limit: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
9
|
-
types: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
5
|
+
types: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [
|
|
6
|
+
import("zod").ZodString,
|
|
7
|
+
import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8
|
+
"account.connected": "account.connected";
|
|
9
|
+
"account.updated": "account.updated";
|
|
10
|
+
"account.deleted": "account.deleted";
|
|
11
|
+
"account.reauth_required": "account.reauth_required";
|
|
12
|
+
"account.initialized": "account.initialized";
|
|
13
|
+
"account.purged": "account.purged";
|
|
14
|
+
"mailbox.created": "mailbox.created";
|
|
15
|
+
"mailbox.updated": "mailbox.updated";
|
|
16
|
+
"mailbox.deleted": "mailbox.deleted";
|
|
17
|
+
"message.created": "message.created";
|
|
18
|
+
"message.updated": "message.updated";
|
|
19
|
+
"message.deleted": "message.deleted";
|
|
20
|
+
"message.bounced": "message.bounced";
|
|
21
|
+
"message.classified": "message.classified";
|
|
22
|
+
"message.opened": "message.opened";
|
|
23
|
+
"message.clicked": "message.clicked";
|
|
24
|
+
"send.sent": "send.sent";
|
|
25
|
+
"send.retrying": "send.retrying";
|
|
26
|
+
"send.failed": "send.failed";
|
|
27
|
+
"send.rescheduled": "send.rescheduled";
|
|
28
|
+
"send.cancelled": "send.cancelled";
|
|
29
|
+
"suppression.created": "suppression.created";
|
|
30
|
+
"calendar.initialized": "calendar.initialized";
|
|
31
|
+
"calendar.created": "calendar.created";
|
|
32
|
+
"calendar.updated": "calendar.updated";
|
|
33
|
+
"calendar.deleted": "calendar.deleted";
|
|
34
|
+
"calendar_event.created": "calendar_event.created";
|
|
35
|
+
"calendar_event.updated": "calendar_event.updated";
|
|
36
|
+
"calendar_event.deleted": "calendar_event.deleted";
|
|
37
|
+
"contacts.initialized": "contacts.initialized";
|
|
38
|
+
"contact.created": "contact.created";
|
|
39
|
+
"contact.updated": "contact.updated";
|
|
40
|
+
"contact.deleted": "contact.deleted";
|
|
41
|
+
"export.completed": "export.completed";
|
|
42
|
+
"export.failed": "export.failed";
|
|
43
|
+
"meeting_connection.connected": "meeting_connection.connected";
|
|
44
|
+
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
45
|
+
"booking.created": "booking.created";
|
|
46
|
+
"booking.cancelled": "booking.cancelled";
|
|
47
|
+
"webhook.test": "webhook.test";
|
|
48
|
+
}>>
|
|
49
|
+
]>, import("zod").ZodTransform<string[], string | ("account.connected" | "account.updated" | "account.deleted" | "account.reauth_required" | "account.initialized" | "account.purged" | "mailbox.created" | "mailbox.updated" | "mailbox.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.bounced" | "message.classified" | "message.opened" | "message.clicked" | "send.sent" | "send.retrying" | "send.failed" | "send.rescheduled" | "send.cancelled" | "suppression.created" | "calendar.initialized" | "calendar.created" | "calendar.updated" | "calendar.deleted" | "calendar_event.created" | "calendar_event.updated" | "calendar_event.deleted" | "contacts.initialized" | "contact.created" | "contact.updated" | "contact.deleted" | "export.completed" | "export.failed" | "meeting_connection.connected" | "meeting_connection.reauth_required" | "booking.created" | "booking.cancelled" | "webhook.test")[]>>, import("zod").ZodArray<import("zod").ZodEnum<{
|
|
48
50
|
"account.connected": "account.connected";
|
|
49
51
|
"account.updated": "account.updated";
|
|
50
52
|
"account.deleted": "account.deleted";
|
|
@@ -65,6 +67,7 @@ export declare const changes: {
|
|
|
65
67
|
"send.retrying": "send.retrying";
|
|
66
68
|
"send.failed": "send.failed";
|
|
67
69
|
"send.rescheduled": "send.rescheduled";
|
|
70
|
+
"send.cancelled": "send.cancelled";
|
|
68
71
|
"suppression.created": "suppression.created";
|
|
69
72
|
"calendar.initialized": "calendar.initialized";
|
|
70
73
|
"calendar.created": "calendar.created";
|
|
@@ -81,10 +84,15 @@ export declare const changes: {
|
|
|
81
84
|
"export.failed": "export.failed";
|
|
82
85
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
83
86
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
87
|
+
"booking.created": "booking.created";
|
|
88
|
+
"booking.cancelled": "booking.cancelled";
|
|
84
89
|
"webhook.test": "webhook.test";
|
|
85
90
|
}>>>>;
|
|
86
91
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
87
|
-
items: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[
|
|
92
|
+
items: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[
|
|
93
|
+
import("./models.js").EventEnvelope<"account.connected"> | import("./models.js").EventEnvelope<"account.updated"> | import("./models.js").EventEnvelope<"account.deleted"> | import("./models.js").EventEnvelope<"account.reauth_required"> | import("./models.js").EventEnvelope<"account.initialized"> | import("./models.js").EventEnvelope<"account.purged"> | import("./models.js").EventEnvelope<"mailbox.created"> | import("./models.js").EventEnvelope<"mailbox.updated"> | import("./models.js").EventEnvelope<"mailbox.deleted"> | import("./models.js").EventEnvelope<"message.created"> | import("./models.js").EventEnvelope<"message.updated"> | import("./models.js").EventEnvelope<"message.deleted"> | import("./models.js").EventEnvelope<"message.bounced"> | import("./models.js").EventEnvelope<"message.classified"> | import("./models.js").EventEnvelope<"message.opened"> | import("./models.js").EventEnvelope<"message.clicked"> | import("./models.js").EventEnvelope<"send.sent"> | import("./models.js").EventEnvelope<"send.retrying"> | import("./models.js").EventEnvelope<"send.failed"> | import("./models.js").EventEnvelope<"send.rescheduled"> | import("./models.js").EventEnvelope<"send.cancelled"> | import("./models.js").EventEnvelope<"suppression.created"> | import("./models.js").EventEnvelope<"calendar.initialized"> | import("./models.js").EventEnvelope<"calendar.created"> | import("./models.js").EventEnvelope<"calendar.updated"> | import("./models.js").EventEnvelope<"calendar.deleted"> | import("./models.js").EventEnvelope<"calendar_event.created"> | import("./models.js").EventEnvelope<"calendar_event.updated"> | import("./models.js").EventEnvelope<"calendar_event.deleted"> | import("./models.js").EventEnvelope<"contacts.initialized"> | import("./models.js").EventEnvelope<"contact.created"> | import("./models.js").EventEnvelope<"contact.updated"> | import("./models.js").EventEnvelope<"contact.deleted"> | import("./models.js").EventEnvelope<"export.completed"> | import("./models.js").EventEnvelope<"export.failed"> | import("./models.js").EventEnvelope<"meeting_connection.connected"> | import("./models.js").EventEnvelope<"meeting_connection.reauth_required"> | import("./models.js").EventEnvelope<"booking.created"> | import("./models.js").EventEnvelope<"booking.cancelled"> | import("./models.js").EventEnvelope<"webhook.test">,
|
|
94
|
+
...(import("./models.js").EventEnvelope<"account.connected"> | import("./models.js").EventEnvelope<"account.updated"> | import("./models.js").EventEnvelope<"account.deleted"> | import("./models.js").EventEnvelope<"account.reauth_required"> | import("./models.js").EventEnvelope<"account.initialized"> | import("./models.js").EventEnvelope<"account.purged"> | import("./models.js").EventEnvelope<"mailbox.created"> | import("./models.js").EventEnvelope<"mailbox.updated"> | import("./models.js").EventEnvelope<"mailbox.deleted"> | import("./models.js").EventEnvelope<"message.created"> | import("./models.js").EventEnvelope<"message.updated"> | import("./models.js").EventEnvelope<"message.deleted"> | import("./models.js").EventEnvelope<"message.bounced"> | import("./models.js").EventEnvelope<"message.classified"> | import("./models.js").EventEnvelope<"message.opened"> | import("./models.js").EventEnvelope<"message.clicked"> | import("./models.js").EventEnvelope<"send.sent"> | import("./models.js").EventEnvelope<"send.retrying"> | import("./models.js").EventEnvelope<"send.failed"> | import("./models.js").EventEnvelope<"send.rescheduled"> | import("./models.js").EventEnvelope<"send.cancelled"> | import("./models.js").EventEnvelope<"suppression.created"> | import("./models.js").EventEnvelope<"calendar.initialized"> | import("./models.js").EventEnvelope<"calendar.created"> | import("./models.js").EventEnvelope<"calendar.updated"> | import("./models.js").EventEnvelope<"calendar.deleted"> | import("./models.js").EventEnvelope<"calendar_event.created"> | import("./models.js").EventEnvelope<"calendar_event.updated"> | import("./models.js").EventEnvelope<"calendar_event.deleted"> | import("./models.js").EventEnvelope<"contacts.initialized"> | import("./models.js").EventEnvelope<"contact.created"> | import("./models.js").EventEnvelope<"contact.updated"> | import("./models.js").EventEnvelope<"contact.deleted"> | import("./models.js").EventEnvelope<"export.completed"> | import("./models.js").EventEnvelope<"export.failed"> | import("./models.js").EventEnvelope<"meeting_connection.connected"> | import("./models.js").EventEnvelope<"meeting_connection.reauth_required"> | import("./models.js").EventEnvelope<"booking.created"> | import("./models.js").EventEnvelope<"booking.cancelled"> | import("./models.js").EventEnvelope<"webhook.test">)[]
|
|
95
|
+
], "type">>;
|
|
88
96
|
nextCursor: import("zod").ZodString;
|
|
89
97
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
90
98
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -93,6 +101,8 @@ export declare const changes: {
|
|
|
93
101
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
94
102
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
95
103
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
104
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
105
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
96
106
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
97
107
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
98
108
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -28,6 +28,8 @@ export declare const exports: {
|
|
|
28
28
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
29
29
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
30
30
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
31
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
32
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
31
33
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
32
34
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
33
35
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -73,6 +75,8 @@ export declare const exports: {
|
|
|
73
75
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
74
76
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
75
77
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
78
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
79
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
76
80
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
77
81
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
78
82
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -112,6 +116,8 @@ export declare const exports: {
|
|
|
112
116
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
113
117
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
114
118
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
119
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
120
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
115
121
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
116
122
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
117
123
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -132,6 +138,8 @@ export declare const exports: {
|
|
|
132
138
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
133
139
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
134
140
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
141
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
142
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
135
143
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
136
144
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
137
145
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -175,6 +183,8 @@ export declare const exports: {
|
|
|
175
183
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
176
184
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
177
185
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
186
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
187
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
178
188
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
179
189
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
180
190
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** primary: the account's own address. provider: reported by the provider (Gmail send-as
|
|
3
|
-
* addresses, Microsoft proxy addresses). custom: added through the API (IMAP aliases, Microsoft
|
|
4
|
-
* mailboxes the account may send as). */
|
|
5
2
|
export declare const IdentitySource: z.ZodEnum<{
|
|
6
3
|
custom: "custom";
|
|
7
4
|
provider: "provider";
|
|
8
5
|
primary: "primary";
|
|
9
6
|
}>;
|
|
10
7
|
export type IdentitySource = z.infer<typeof IdentitySource>;
|
|
11
|
-
/** At least one part is set; a missing part is derived from the other when it is applied. */
|
|
12
8
|
export declare const Signature: z.ZodObject<{
|
|
13
9
|
html: z.ZodNullable<z.ZodString>;
|
|
14
10
|
text: z.ZodNullable<z.ZodString>;
|
|
@@ -38,7 +34,6 @@ export declare const Identity: z.ZodObject<{
|
|
|
38
34
|
}, z.core.$strip>>;
|
|
39
35
|
}, z.core.$strip>;
|
|
40
36
|
export type Identity = z.infer<typeof Identity>;
|
|
41
|
-
/** The account's identities, with when the provider's were last read (null before the first read). */
|
|
42
37
|
export declare const IdentityList: z.ZodObject<{
|
|
43
38
|
refreshedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
44
39
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -75,10 +70,13 @@ export declare const IdentityIdInput: z.ZodObject<{
|
|
|
75
70
|
}, z.core.$strip>;
|
|
76
71
|
export type IdentityIdInput = z.infer<typeof IdentityIdInput>;
|
|
77
72
|
export declare const ListIdentitiesQuery: z.ZodObject<{
|
|
78
|
-
refresh: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
refresh: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
74
|
+
z.ZodBoolean,
|
|
75
|
+
z.ZodEnum<{
|
|
76
|
+
true: "true";
|
|
77
|
+
false: "false";
|
|
78
|
+
}>
|
|
79
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
82
80
|
}, z.core.$strip>;
|
|
83
81
|
export type ListIdentitiesQuery = z.infer<typeof ListIdentitiesQuery>;
|
|
84
82
|
export declare const CreateIdentity: z.ZodObject<{
|
|
@@ -2,10 +2,13 @@ import * as z from "zod";
|
|
|
2
2
|
export declare const identities: {
|
|
3
3
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
4
|
accountId: z.ZodUUID;
|
|
5
|
-
refresh: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
refresh: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
6
|
+
z.ZodBoolean,
|
|
7
|
+
z.ZodEnum<{
|
|
8
|
+
true: "true";
|
|
9
|
+
false: "false";
|
|
10
|
+
}>
|
|
11
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
9
12
|
}, z.core.$strip>, z.ZodObject<{
|
|
10
13
|
refreshedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
11
14
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -33,6 +36,8 @@ export declare const identities: {
|
|
|
33
36
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
34
37
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
35
38
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
39
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
40
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
36
41
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
37
42
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
38
43
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -54,10 +59,18 @@ export declare const identities: {
|
|
|
54
59
|
status: 409;
|
|
55
60
|
message: string;
|
|
56
61
|
};
|
|
62
|
+
mail_disabled: {
|
|
63
|
+
status: 409;
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
57
66
|
account_not_found: {
|
|
58
67
|
status: 404;
|
|
59
68
|
message: string;
|
|
60
69
|
};
|
|
70
|
+
plan_module_unavailable: {
|
|
71
|
+
status: 403;
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
61
74
|
}>, Record<never, never>>;
|
|
62
75
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
63
76
|
accountId: z.ZodUUID;
|
|
@@ -91,6 +104,8 @@ export declare const identities: {
|
|
|
91
104
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
92
105
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
93
106
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
107
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
108
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
94
109
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
95
110
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
96
111
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -108,10 +123,18 @@ export declare const identities: {
|
|
|
108
123
|
status: 409;
|
|
109
124
|
message: string;
|
|
110
125
|
};
|
|
126
|
+
mail_disabled: {
|
|
127
|
+
status: 409;
|
|
128
|
+
message: string;
|
|
129
|
+
};
|
|
111
130
|
account_not_found: {
|
|
112
131
|
status: 404;
|
|
113
132
|
message: string;
|
|
114
133
|
};
|
|
134
|
+
plan_module_unavailable: {
|
|
135
|
+
status: 403;
|
|
136
|
+
message: string;
|
|
137
|
+
};
|
|
115
138
|
}>, Record<never, never>>;
|
|
116
139
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
117
140
|
accountId: z.ZodUUID;
|
|
@@ -145,6 +168,8 @@ export declare const identities: {
|
|
|
145
168
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
146
169
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
147
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.";
|
|
148
173
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
149
174
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
150
175
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -162,10 +187,18 @@ export declare const identities: {
|
|
|
162
187
|
status: 404;
|
|
163
188
|
message: string;
|
|
164
189
|
};
|
|
190
|
+
mail_disabled: {
|
|
191
|
+
status: 409;
|
|
192
|
+
message: string;
|
|
193
|
+
};
|
|
165
194
|
account_not_found: {
|
|
166
195
|
status: 404;
|
|
167
196
|
message: string;
|
|
168
197
|
};
|
|
198
|
+
plan_module_unavailable: {
|
|
199
|
+
status: 403;
|
|
200
|
+
message: string;
|
|
201
|
+
};
|
|
169
202
|
}>, Record<never, never>>;
|
|
170
203
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
171
204
|
accountId: z.ZodUUID;
|
|
@@ -177,6 +210,8 @@ export declare const identities: {
|
|
|
177
210
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
178
211
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
179
212
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
213
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
214
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
180
215
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
181
216
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
182
217
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -194,10 +229,18 @@ export declare const identities: {
|
|
|
194
229
|
status: 404;
|
|
195
230
|
message: string;
|
|
196
231
|
};
|
|
232
|
+
mail_disabled: {
|
|
233
|
+
status: 409;
|
|
234
|
+
message: string;
|
|
235
|
+
};
|
|
197
236
|
account_not_found: {
|
|
198
237
|
status: 404;
|
|
199
238
|
message: string;
|
|
200
239
|
};
|
|
240
|
+
plan_module_unavailable: {
|
|
241
|
+
status: 403;
|
|
242
|
+
message: string;
|
|
243
|
+
};
|
|
201
244
|
}>, Record<never, never>>;
|
|
202
245
|
};
|
|
203
246
|
export declare const mailSettings: {
|
|
@@ -212,6 +255,8 @@ export declare const mailSettings: {
|
|
|
212
255
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
213
256
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
214
257
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
258
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
259
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
215
260
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
216
261
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
217
262
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -220,9 +265,20 @@ export declare const mailSettings: {
|
|
|
220
265
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
221
266
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
222
267
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
223
|
-
}>>,
|
|
224
|
-
|
|
225
|
-
|
|
268
|
+
}>>, {
|
|
269
|
+
mail_disabled: {
|
|
270
|
+
status: 409;
|
|
271
|
+
message: string;
|
|
272
|
+
};
|
|
273
|
+
account_not_found: {
|
|
274
|
+
status: 404;
|
|
275
|
+
message: string;
|
|
276
|
+
};
|
|
277
|
+
plan_module_unavailable: {
|
|
278
|
+
status: 403;
|
|
279
|
+
message: string;
|
|
280
|
+
};
|
|
281
|
+
}>, Record<never, never>>;
|
|
226
282
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
227
283
|
accountId: z.ZodUUID;
|
|
228
284
|
signByDefault: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -235,6 +291,8 @@ export declare const mailSettings: {
|
|
|
235
291
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
236
292
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
237
293
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
294
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
295
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
238
296
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
239
297
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
240
298
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -243,7 +301,18 @@ export declare const mailSettings: {
|
|
|
243
301
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
244
302
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
245
303
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
246
|
-
}>>,
|
|
247
|
-
|
|
248
|
-
|
|
304
|
+
}>>, {
|
|
305
|
+
mail_disabled: {
|
|
306
|
+
status: 409;
|
|
307
|
+
message: string;
|
|
308
|
+
};
|
|
309
|
+
account_not_found: {
|
|
310
|
+
status: 404;
|
|
311
|
+
message: string;
|
|
312
|
+
};
|
|
313
|
+
plan_module_unavailable: {
|
|
314
|
+
status: 403;
|
|
315
|
+
message: string;
|
|
316
|
+
};
|
|
317
|
+
}>, Record<never, never>>;
|
|
249
318
|
};
|