@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.
- 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 +22 -5
- package/contract/audit-log/routes.d.ts +11 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +30 -16
- package/contract/connect/routes.d.ts +51 -7
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/custom-domain.d.ts +12 -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 +27 -73
- package/contract/mail/models.d.ts +230 -50
- package/contract/mail/routes.d.ts +649 -59
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +39 -33
- package/contract/meetings/routes.d.ts +121 -23
- package/contract/oauth-apps/models.d.ts +6 -6
- package/contract/oauth-apps/routes.d.ts +34 -4
- package/contract/org-connections/models.d.ts +93 -39
- package/contract/org-connections/routes.d.ts +352 -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 +7 -0
- package/contract/reasons.d.ts +559 -21
- package/contract/router.d.ts +6447 -2719
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +140 -45
- package/contract/send/routes.d.ts +310 -31
- 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
|
@@ -31,6 +31,8 @@ export declare const threads: {
|
|
|
31
31
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
32
32
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
33
33
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
34
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
35
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
34
36
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
35
37
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
36
38
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -45,10 +47,18 @@ export declare const threads: {
|
|
|
45
47
|
status: 400;
|
|
46
48
|
message: string;
|
|
47
49
|
};
|
|
50
|
+
mail_disabled: {
|
|
51
|
+
status: 409;
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
48
54
|
account_not_found: {
|
|
49
55
|
status: 404;
|
|
50
56
|
message: string;
|
|
51
57
|
};
|
|
58
|
+
plan_module_unavailable: {
|
|
59
|
+
status: 403;
|
|
60
|
+
message: string;
|
|
61
|
+
};
|
|
52
62
|
}>, Record<never, never>>;
|
|
53
63
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
54
64
|
accountId: z.ZodUUID;
|
|
@@ -114,6 +124,8 @@ export declare const threads: {
|
|
|
114
124
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
115
125
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
116
126
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
127
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
128
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
117
129
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
118
130
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
119
131
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -127,10 +139,18 @@ export declare const threads: {
|
|
|
127
139
|
status: 404;
|
|
128
140
|
message: string;
|
|
129
141
|
};
|
|
142
|
+
mail_disabled: {
|
|
143
|
+
status: 409;
|
|
144
|
+
message: string;
|
|
145
|
+
};
|
|
130
146
|
account_not_found: {
|
|
131
147
|
status: 404;
|
|
132
148
|
message: string;
|
|
133
149
|
};
|
|
150
|
+
plan_module_unavailable: {
|
|
151
|
+
status: 403;
|
|
152
|
+
message: string;
|
|
153
|
+
};
|
|
134
154
|
}>, Record<never, never>>;
|
|
135
155
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
136
156
|
accountId: z.ZodUUID;
|
|
@@ -198,6 +218,8 @@ export declare const threads: {
|
|
|
198
218
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
199
219
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
200
220
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
221
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
222
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
201
223
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
202
224
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
203
225
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -256,10 +278,18 @@ export declare const threads: {
|
|
|
256
278
|
status: 404;
|
|
257
279
|
message: string;
|
|
258
280
|
};
|
|
281
|
+
mail_disabled: {
|
|
282
|
+
status: 409;
|
|
283
|
+
message: string;
|
|
284
|
+
};
|
|
259
285
|
account_not_found: {
|
|
260
286
|
status: 404;
|
|
261
287
|
message: string;
|
|
262
288
|
};
|
|
289
|
+
plan_module_unavailable: {
|
|
290
|
+
status: 403;
|
|
291
|
+
message: string;
|
|
292
|
+
};
|
|
263
293
|
}>, Record<never, never>>;
|
|
264
294
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
265
295
|
accountId: z.ZodUUID;
|
|
@@ -271,6 +301,8 @@ export declare const threads: {
|
|
|
271
301
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
272
302
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
273
303
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
304
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
305
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
274
306
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
275
307
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
276
308
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -328,9 +360,17 @@ export declare const threads: {
|
|
|
328
360
|
status: 404;
|
|
329
361
|
message: string;
|
|
330
362
|
};
|
|
363
|
+
mail_disabled: {
|
|
364
|
+
status: 409;
|
|
365
|
+
message: string;
|
|
366
|
+
};
|
|
331
367
|
account_not_found: {
|
|
332
368
|
status: 404;
|
|
333
369
|
message: string;
|
|
334
370
|
};
|
|
371
|
+
plan_module_unavailable: {
|
|
372
|
+
status: 403;
|
|
373
|
+
message: string;
|
|
374
|
+
};
|
|
335
375
|
}>, Record<never, never>>;
|
|
336
376
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const TrackingDomainHostname: z.ZodString;
|
|
3
|
+
export type TrackingDomainHostname = z.infer<typeof TrackingDomainHostname>;
|
|
4
|
+
export declare const TrackingDomainStatus: z.ZodEnum<{
|
|
5
|
+
active: "active";
|
|
6
|
+
pending: "pending";
|
|
7
|
+
failed: "failed";
|
|
8
|
+
}>;
|
|
9
|
+
export type TrackingDomainStatus = z.infer<typeof TrackingDomainStatus>;
|
|
10
|
+
export declare const TrackingDomainRecord: z.ZodObject<{
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type TrackingDomainRecord = z.infer<typeof TrackingDomainRecord>;
|
|
16
|
+
export declare const TrackingDomain: z.ZodObject<{
|
|
17
|
+
hostname: z.ZodString;
|
|
18
|
+
status: z.ZodEnum<{
|
|
19
|
+
active: "active";
|
|
20
|
+
pending: "pending";
|
|
21
|
+
failed: "failed";
|
|
22
|
+
}>;
|
|
23
|
+
records: z.ZodArray<z.ZodObject<{
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
value: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
ownership: z.ZodObject<{
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
value: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
error: z.ZodNullable<z.ZodString>;
|
|
34
|
+
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
35
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type TrackingDomain = z.infer<typeof TrackingDomain>;
|
|
38
|
+
export declare const SetTrackingDomain: z.ZodObject<{
|
|
39
|
+
hostname: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type SetTrackingDomain = z.infer<typeof SetTrackingDomain>;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const trackingDomain: {
|
|
3
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
4
|
+
hostname: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<{
|
|
6
|
+
active: "active";
|
|
7
|
+
pending: "pending";
|
|
8
|
+
failed: "failed";
|
|
9
|
+
}>;
|
|
10
|
+
records: z.ZodArray<z.ZodObject<{
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
ownership: z.ZodObject<{
|
|
16
|
+
type: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
value: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
error: z.ZodNullable<z.ZodString>;
|
|
21
|
+
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
22
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
23
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
24
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
25
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
26
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
27
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
28
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
29
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
30
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
31
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
32
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
33
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
34
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
35
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
36
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
37
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
38
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
39
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
40
|
+
}>>, {
|
|
41
|
+
tracking_domain_not_found: {
|
|
42
|
+
status: 404;
|
|
43
|
+
message: string;
|
|
44
|
+
};
|
|
45
|
+
tracking_domain_unavailable: {
|
|
46
|
+
status: 400;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
}>, Record<never, never>>;
|
|
50
|
+
set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
51
|
+
hostname: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
hostname: z.ZodString;
|
|
54
|
+
status: z.ZodEnum<{
|
|
55
|
+
active: "active";
|
|
56
|
+
pending: "pending";
|
|
57
|
+
failed: "failed";
|
|
58
|
+
}>;
|
|
59
|
+
records: z.ZodArray<z.ZodObject<{
|
|
60
|
+
type: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
value: z.ZodString;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
ownership: z.ZodObject<{
|
|
65
|
+
type: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
value: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
error: z.ZodNullable<z.ZodString>;
|
|
70
|
+
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
71
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
72
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
73
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
74
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
75
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
76
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
77
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
78
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
79
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
80
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
81
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
82
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
83
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
84
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
85
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
86
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
87
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
88
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
89
|
+
}>>, {
|
|
90
|
+
tracking_domain_not_allowed: {
|
|
91
|
+
status: 400;
|
|
92
|
+
message: string;
|
|
93
|
+
};
|
|
94
|
+
tracking_domain_taken: {
|
|
95
|
+
status: 409;
|
|
96
|
+
message: string;
|
|
97
|
+
};
|
|
98
|
+
plan_module_unavailable: {
|
|
99
|
+
status: 403;
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
tracking_domain_edge_unavailable: {
|
|
103
|
+
status: 502;
|
|
104
|
+
message: string;
|
|
105
|
+
};
|
|
106
|
+
tracking_domain_unavailable: {
|
|
107
|
+
status: 400;
|
|
108
|
+
message: string;
|
|
109
|
+
};
|
|
110
|
+
}>, Record<never, never>>;
|
|
111
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
112
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
113
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
114
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
115
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
116
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
117
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
118
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
119
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
120
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
121
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
122
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
123
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
124
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
125
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
126
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
127
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
128
|
+
}>>, {
|
|
129
|
+
tracking_domain_edge_unavailable: {
|
|
130
|
+
status: 502;
|
|
131
|
+
message: string;
|
|
132
|
+
};
|
|
133
|
+
tracking_domain_not_found: {
|
|
134
|
+
status: 404;
|
|
135
|
+
message: string;
|
|
136
|
+
};
|
|
137
|
+
tracking_domain_unavailable: {
|
|
138
|
+
status: 400;
|
|
139
|
+
message: string;
|
|
140
|
+
};
|
|
141
|
+
}>, Record<never, never>>;
|
|
142
|
+
refresh: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
143
|
+
hostname: z.ZodString;
|
|
144
|
+
status: z.ZodEnum<{
|
|
145
|
+
active: "active";
|
|
146
|
+
pending: "pending";
|
|
147
|
+
failed: "failed";
|
|
148
|
+
}>;
|
|
149
|
+
records: z.ZodArray<z.ZodObject<{
|
|
150
|
+
type: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
value: z.ZodString;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
ownership: z.ZodObject<{
|
|
155
|
+
type: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
value: z.ZodString;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
error: z.ZodNullable<z.ZodString>;
|
|
160
|
+
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
161
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
162
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
163
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
164
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
165
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
166
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
167
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
168
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
169
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
170
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
171
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
172
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
173
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
174
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
175
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
176
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
177
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
178
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
179
|
+
}>>, {
|
|
180
|
+
tracking_domain_edge_unavailable: {
|
|
181
|
+
status: 502;
|
|
182
|
+
message: string;
|
|
183
|
+
};
|
|
184
|
+
tracking_domain_not_found: {
|
|
185
|
+
status: 404;
|
|
186
|
+
message: string;
|
|
187
|
+
};
|
|
188
|
+
tracking_domain_unavailable: {
|
|
189
|
+
status: 400;
|
|
190
|
+
message: string;
|
|
191
|
+
};
|
|
192
|
+
}>, Record<never, never>>;
|
|
193
|
+
};
|
|
@@ -1,147 +1,94 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
tracking: z.ZodBoolean;
|
|
7
|
-
ai: z.ZodBoolean;
|
|
8
|
-
meetings: z.ZodBoolean;
|
|
9
|
-
sharedMailboxes: z.ZodBoolean;
|
|
2
|
+
export declare const BillingPeriod: z.ZodObject<{
|
|
3
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
4
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
5
|
+
firstDay: z.ZodISODate;
|
|
10
6
|
}, z.core.$strip>;
|
|
11
|
-
export type
|
|
12
|
-
export type PlanModule = keyof PlanModules;
|
|
13
|
-
/** What the base fee covers; null = all of it (no overage billed). */
|
|
14
|
-
export declare const PlanIncluded: z.ZodObject<{
|
|
15
|
-
accounts: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
sendsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
aiCallsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type PlanIncluded = z.infer<typeof PlanIncluded>;
|
|
21
|
-
export declare const PlanStripePrices: z.ZodObject<{
|
|
22
|
-
basePrice: z.ZodNullable<z.ZodString>;
|
|
23
|
-
accountPrice: z.ZodNullable<z.ZodString>;
|
|
24
|
-
sendsPrice: z.ZodNullable<z.ZodString>;
|
|
25
|
-
aiCallsPrice: z.ZodNullable<z.ZodString>;
|
|
26
|
-
storagePrice: z.ZodNullable<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type PlanStripePrices = z.infer<typeof PlanStripePrices>;
|
|
29
|
-
export declare const PlanPricing: z.ZodObject<{
|
|
30
|
-
currency: z.ZodString;
|
|
31
|
-
baseMonthly: z.ZodNumber;
|
|
32
|
-
perAccountMonthly: z.ZodNumber;
|
|
33
|
-
sendsPer1k: z.ZodNumber;
|
|
34
|
-
aiCallsPer1k: z.ZodNumber;
|
|
35
|
-
storagePerGbMonth: z.ZodNumber;
|
|
36
|
-
stripe: z.ZodObject<{
|
|
37
|
-
basePrice: z.ZodNullable<z.ZodString>;
|
|
38
|
-
accountPrice: z.ZodNullable<z.ZodString>;
|
|
39
|
-
sendsPrice: z.ZodNullable<z.ZodString>;
|
|
40
|
-
aiCallsPrice: z.ZodNullable<z.ZodString>;
|
|
41
|
-
storagePrice: z.ZodNullable<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
export type PlanPricing = z.infer<typeof PlanPricing>;
|
|
45
|
-
/** Count limits: null = unlimited. They are abuse ceilings; usage between included and a limit
|
|
46
|
-
* is billed as overage. */
|
|
47
|
-
export declare const PlanLimits: z.ZodObject<{
|
|
48
|
-
maxAccounts: z.ZodNullable<z.ZodNumber>;
|
|
49
|
-
sendsPerDay: z.ZodNullable<z.ZodNumber>;
|
|
50
|
-
apiCallsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
51
|
-
apiCallsPerMinutePerKey: z.ZodNullable<z.ZodNumber>;
|
|
52
|
-
webhookEndpoints: z.ZodNullable<z.ZodNumber>;
|
|
53
|
-
bodyStorageAllowed: z.ZodBoolean;
|
|
54
|
-
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
55
|
-
modules: z.ZodObject<{
|
|
56
|
-
calendar: z.ZodBoolean;
|
|
57
|
-
contacts: z.ZodBoolean;
|
|
58
|
-
tracking: z.ZodBoolean;
|
|
59
|
-
ai: z.ZodBoolean;
|
|
60
|
-
meetings: z.ZodBoolean;
|
|
61
|
-
sharedMailboxes: z.ZodBoolean;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
included: z.ZodObject<{
|
|
64
|
-
accounts: z.ZodNullable<z.ZodNumber>;
|
|
65
|
-
sendsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
66
|
-
aiCallsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
67
|
-
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
pricing: z.ZodNullable<z.ZodObject<{
|
|
70
|
-
currency: z.ZodString;
|
|
71
|
-
baseMonthly: z.ZodNumber;
|
|
72
|
-
perAccountMonthly: z.ZodNumber;
|
|
73
|
-
sendsPer1k: z.ZodNumber;
|
|
74
|
-
aiCallsPer1k: z.ZodNumber;
|
|
75
|
-
storagePerGbMonth: z.ZodNumber;
|
|
76
|
-
stripe: z.ZodObject<{
|
|
77
|
-
basePrice: z.ZodNullable<z.ZodString>;
|
|
78
|
-
accountPrice: z.ZodNullable<z.ZodString>;
|
|
79
|
-
sendsPrice: z.ZodNullable<z.ZodString>;
|
|
80
|
-
aiCallsPrice: z.ZodNullable<z.ZodString>;
|
|
81
|
-
storagePrice: z.ZodNullable<z.ZodString>;
|
|
82
|
-
}, z.core.$strip>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
export type PlanLimits = z.infer<typeof PlanLimits>;
|
|
86
|
-
/** The plan a tenant runs under; id null = no plan assigned, the platform defaults apply. */
|
|
7
|
+
export type BillingPeriod = z.infer<typeof BillingPeriod>;
|
|
87
8
|
export declare const EffectivePlan: z.ZodObject<{
|
|
88
9
|
id: z.ZodNullable<z.ZodUUID>;
|
|
89
10
|
name: z.ZodString;
|
|
90
11
|
limits: z.ZodObject<{
|
|
91
12
|
maxAccounts: z.ZodNullable<z.ZodNumber>;
|
|
92
13
|
sendsPerDay: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
emailValidationsPerDay: z.ZodNullable<z.ZodNumber>;
|
|
93
15
|
apiCallsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
94
16
|
apiCallsPerMinutePerKey: z.ZodNullable<z.ZodNumber>;
|
|
95
17
|
webhookEndpoints: z.ZodNullable<z.ZodNumber>;
|
|
96
18
|
bodyStorageAllowed: z.ZodBoolean;
|
|
97
19
|
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
98
|
-
modules: z.ZodObject<{
|
|
99
|
-
calendar: z.ZodBoolean;
|
|
100
|
-
contacts: z.ZodBoolean;
|
|
101
|
-
tracking: z.ZodBoolean;
|
|
102
|
-
ai: z.ZodBoolean;
|
|
103
|
-
meetings: z.ZodBoolean;
|
|
104
|
-
sharedMailboxes: z.ZodBoolean;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
20
|
included: z.ZodObject<{
|
|
107
|
-
|
|
21
|
+
mailAccounts: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
calendarContactsAccounts: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
meetingAccounts: z.ZodNullable<z.ZodNumber>;
|
|
108
24
|
sendsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
109
|
-
|
|
25
|
+
aiClassificationsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
aiDraftsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
110
27
|
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
validationCredits: z.ZodNullable<z.ZodNumber>;
|
|
111
29
|
}, z.core.$strip>;
|
|
112
30
|
pricing: z.ZodNullable<z.ZodObject<{
|
|
113
31
|
currency: z.ZodString;
|
|
114
32
|
baseMonthly: z.ZodNumber;
|
|
115
|
-
|
|
33
|
+
baseAnnual: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
components: z.ZodObject<{
|
|
35
|
+
mail: z.ZodNumber;
|
|
36
|
+
calendarContacts: z.ZodNumber;
|
|
37
|
+
ai: z.ZodNumber;
|
|
38
|
+
sharedMailboxes: z.ZodNumber;
|
|
39
|
+
meetings: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
116
41
|
sendsPer1k: z.ZodNumber;
|
|
117
|
-
|
|
42
|
+
aiClassificationsPer1k: z.ZodNumber;
|
|
43
|
+
aiDraftsPer1k: z.ZodNumber;
|
|
118
44
|
storagePerGbMonth: z.ZodNumber;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
aiCallsPrice: z.ZodNullable<z.ZodString>;
|
|
124
|
-
storagePrice: z.ZodNullable<z.ZodString>;
|
|
125
|
-
}, z.core.$strip>;
|
|
45
|
+
creditPacks: z.ZodArray<z.ZodObject<{
|
|
46
|
+
credits: z.ZodNumber;
|
|
47
|
+
amount: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>>;
|
|
126
49
|
}, z.core.$strip>>;
|
|
50
|
+
features: z.ZodObject<{
|
|
51
|
+
sso: z.ZodBoolean;
|
|
52
|
+
scim: z.ZodBoolean;
|
|
53
|
+
auditLogRetentionDays: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
sla: z.ZodBoolean;
|
|
55
|
+
customDpa: z.ZodBoolean;
|
|
56
|
+
prioritySupport: z.ZodBoolean;
|
|
57
|
+
}, z.core.$strip>;
|
|
127
58
|
}, z.core.$strip>;
|
|
128
59
|
}, z.core.$strip>;
|
|
129
60
|
export type EffectivePlan = z.infer<typeof EffectivePlan>;
|
|
130
61
|
export declare const UsageDay: z.ZodObject<{
|
|
131
62
|
day: z.ZodISODate;
|
|
132
63
|
liveAccounts: z.ZodNumber;
|
|
64
|
+
mailAccounts: z.ZodNumber;
|
|
65
|
+
calendarContactsAccounts: z.ZodNumber;
|
|
66
|
+
meetingAccounts: z.ZodNumber;
|
|
133
67
|
apiCalls: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
134
68
|
sends: z.ZodNumber;
|
|
135
69
|
webhookDeliveries: z.ZodNumber;
|
|
136
|
-
|
|
70
|
+
aiClassifications: z.ZodNumber;
|
|
71
|
+
aiDrafts: z.ZodNumber;
|
|
72
|
+
emailValidations: z.ZodNumber;
|
|
137
73
|
storedBytes: z.ZodNullable<z.ZodNumber>;
|
|
138
74
|
}, z.core.$strip>;
|
|
139
75
|
export type UsageDay = z.infer<typeof UsageDay>;
|
|
140
|
-
|
|
76
|
+
export declare const ValidationCreditBalance: z.ZodObject<{
|
|
77
|
+
included: z.ZodNumber;
|
|
78
|
+
includedExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
79
|
+
purchased: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ValidationCreditBalance = z.infer<typeof ValidationCreditBalance>;
|
|
141
82
|
export declare const CurrentUsage: z.ZodObject<{
|
|
142
83
|
accounts: z.ZodNumber;
|
|
143
84
|
webhookEndpoints: z.ZodNumber;
|
|
144
85
|
sendsToday: z.ZodNumber;
|
|
86
|
+
emailValidationsToday: z.ZodNumber;
|
|
87
|
+
validationCredits: z.ZodNullable<z.ZodObject<{
|
|
88
|
+
included: z.ZodNumber;
|
|
89
|
+
includedExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
90
|
+
purchased: z.ZodNumber;
|
|
91
|
+
}, z.core.$strip>>;
|
|
145
92
|
storedBytes: z.ZodNumber;
|
|
146
93
|
}, z.core.$strip>;
|
|
147
94
|
export type CurrentUsage = z.infer<typeof CurrentUsage>;
|
|
@@ -152,60 +99,85 @@ export declare const Usage: z.ZodObject<{
|
|
|
152
99
|
limits: z.ZodObject<{
|
|
153
100
|
maxAccounts: z.ZodNullable<z.ZodNumber>;
|
|
154
101
|
sendsPerDay: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
emailValidationsPerDay: z.ZodNullable<z.ZodNumber>;
|
|
155
103
|
apiCallsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
156
104
|
apiCallsPerMinutePerKey: z.ZodNullable<z.ZodNumber>;
|
|
157
105
|
webhookEndpoints: z.ZodNullable<z.ZodNumber>;
|
|
158
106
|
bodyStorageAllowed: z.ZodBoolean;
|
|
159
107
|
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
160
|
-
modules: z.ZodObject<{
|
|
161
|
-
calendar: z.ZodBoolean;
|
|
162
|
-
contacts: z.ZodBoolean;
|
|
163
|
-
tracking: z.ZodBoolean;
|
|
164
|
-
ai: z.ZodBoolean;
|
|
165
|
-
meetings: z.ZodBoolean;
|
|
166
|
-
sharedMailboxes: z.ZodBoolean;
|
|
167
|
-
}, z.core.$strip>;
|
|
168
108
|
included: z.ZodObject<{
|
|
169
|
-
|
|
109
|
+
mailAccounts: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
calendarContactsAccounts: z.ZodNullable<z.ZodNumber>;
|
|
111
|
+
meetingAccounts: z.ZodNullable<z.ZodNumber>;
|
|
170
112
|
sendsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
171
|
-
|
|
113
|
+
aiClassificationsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
114
|
+
aiDraftsPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
172
115
|
storageBytes: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
validationCredits: z.ZodNullable<z.ZodNumber>;
|
|
173
117
|
}, z.core.$strip>;
|
|
174
118
|
pricing: z.ZodNullable<z.ZodObject<{
|
|
175
119
|
currency: z.ZodString;
|
|
176
120
|
baseMonthly: z.ZodNumber;
|
|
177
|
-
|
|
121
|
+
baseAnnual: z.ZodNullable<z.ZodNumber>;
|
|
122
|
+
components: z.ZodObject<{
|
|
123
|
+
mail: z.ZodNumber;
|
|
124
|
+
calendarContacts: z.ZodNumber;
|
|
125
|
+
ai: z.ZodNumber;
|
|
126
|
+
sharedMailboxes: z.ZodNumber;
|
|
127
|
+
meetings: z.ZodNumber;
|
|
128
|
+
}, z.core.$strip>;
|
|
178
129
|
sendsPer1k: z.ZodNumber;
|
|
179
|
-
|
|
130
|
+
aiClassificationsPer1k: z.ZodNumber;
|
|
131
|
+
aiDraftsPer1k: z.ZodNumber;
|
|
180
132
|
storagePerGbMonth: z.ZodNumber;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
aiCallsPrice: z.ZodNullable<z.ZodString>;
|
|
186
|
-
storagePrice: z.ZodNullable<z.ZodString>;
|
|
187
|
-
}, z.core.$strip>;
|
|
133
|
+
creditPacks: z.ZodArray<z.ZodObject<{
|
|
134
|
+
credits: z.ZodNumber;
|
|
135
|
+
amount: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>>;
|
|
188
137
|
}, z.core.$strip>>;
|
|
138
|
+
features: z.ZodObject<{
|
|
139
|
+
sso: z.ZodBoolean;
|
|
140
|
+
scim: z.ZodBoolean;
|
|
141
|
+
auditLogRetentionDays: z.ZodNullable<z.ZodNumber>;
|
|
142
|
+
sla: z.ZodBoolean;
|
|
143
|
+
customDpa: z.ZodBoolean;
|
|
144
|
+
prioritySupport: z.ZodBoolean;
|
|
145
|
+
}, z.core.$strip>;
|
|
189
146
|
}, z.core.$strip>;
|
|
190
147
|
}, z.core.$strip>;
|
|
191
148
|
current: z.ZodObject<{
|
|
192
149
|
accounts: z.ZodNumber;
|
|
193
150
|
webhookEndpoints: z.ZodNumber;
|
|
194
151
|
sendsToday: z.ZodNumber;
|
|
152
|
+
emailValidationsToday: z.ZodNumber;
|
|
153
|
+
validationCredits: z.ZodNullable<z.ZodObject<{
|
|
154
|
+
included: z.ZodNumber;
|
|
155
|
+
includedExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
156
|
+
purchased: z.ZodNumber;
|
|
157
|
+
}, z.core.$strip>>;
|
|
195
158
|
storedBytes: z.ZodNumber;
|
|
196
159
|
}, z.core.$strip>;
|
|
197
160
|
days: z.ZodArray<z.ZodObject<{
|
|
198
161
|
day: z.ZodISODate;
|
|
199
162
|
liveAccounts: z.ZodNumber;
|
|
163
|
+
mailAccounts: z.ZodNumber;
|
|
164
|
+
calendarContactsAccounts: z.ZodNumber;
|
|
165
|
+
meetingAccounts: z.ZodNumber;
|
|
200
166
|
apiCalls: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
201
167
|
sends: z.ZodNumber;
|
|
202
168
|
webhookDeliveries: z.ZodNumber;
|
|
203
|
-
|
|
169
|
+
aiClassifications: z.ZodNumber;
|
|
170
|
+
aiDrafts: z.ZodNumber;
|
|
171
|
+
emailValidations: z.ZodNumber;
|
|
204
172
|
storedBytes: z.ZodNullable<z.ZodNumber>;
|
|
205
173
|
}, z.core.$strip>>;
|
|
174
|
+
period: z.ZodNullable<z.ZodObject<{
|
|
175
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
176
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
177
|
+
firstDay: z.ZodISODate;
|
|
178
|
+
}, z.core.$strip>>;
|
|
206
179
|
}, z.core.$strip>;
|
|
207
180
|
export type Usage = z.infer<typeof Usage>;
|
|
208
|
-
/** UTC days, both ends included: from defaults to 30 days before to, to to today. */
|
|
209
181
|
export declare const UsageQuery: z.ZodObject<{
|
|
210
182
|
from: z.ZodOptional<z.ZodISODate>;
|
|
211
183
|
to: z.ZodOptional<z.ZodISODate>;
|