@workwae/sdk 0.1.0-alpha.5 → 0.1.0-alpha.7
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/client.d.ts +2 -2
- package/contract/accounts/routes.d.ts +40 -96
- package/contract/ai/routes.d.ts +4 -19
- package/contract/audit-log/routes.d.ts +4 -6
- package/contract/calendar/routes.d.ts +48 -248
- package/contract/connect/routes.d.ts +24 -74
- package/contract/connect-domain/routes.d.ts +15 -29
- package/contract/contacts/routes.d.ts +28 -102
- package/contract/email-validation/routes.d.ts +8 -8
- package/contract/errors.d.ts +4 -8
- package/contract/events/models.d.ts +0 -6
- package/contract/events/routes.d.ts +4 -4
- package/contract/exports/routes.d.ts +20 -28
- package/contract/identities/routes.d.ts +24 -51
- package/contract/mail/routes.d.ts +44 -201
- package/contract/mcp-keys/routes.d.ts +12 -16
- package/contract/meetings/routes.d.ts +36 -60
- package/contract/oauth-apps/routes.d.ts +15 -25
- package/contract/org-connections/routes.d.ts +43 -104
- package/contract/primitives.d.ts +7 -4
- package/contract/reasons.d.ts +0 -1
- package/contract/router.d.ts +645 -1582
- package/contract/scheduling/routes.d.ts +32 -81
- package/contract/send/models.d.ts +21 -0
- package/contract/send/routes.d.ts +81 -209
- package/contract/settings/routes.d.ts +7 -9
- package/contract/suppressions/routes.d.ts +48 -50
- package/contract/templates/routes.d.ts +30 -37
- package/contract/threads/routes.d.ts +16 -56
- package/contract/tracking-domain/routes.d.ts +15 -28
- package/contract/usage/routes.d.ts +4 -4
- package/contract/webhooks/routes.d.ts +43 -66
- package/errors.d.ts +2 -0
- package/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const exports: {
|
|
3
|
-
create: import("@orpc/contract").
|
|
3
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
4
4
|
accountId: z.ZodOptional<z.ZodUUID>;
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{
|
|
6
6
|
id: z.ZodUUID;
|
|
@@ -21,7 +21,7 @@ export declare const exports: {
|
|
|
21
21
|
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
22
22
|
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
23
23
|
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
24
|
-
}, z.core.$strip>,
|
|
24
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
25
25
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
26
26
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
27
27
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -38,12 +38,12 @@ export declare const exports: {
|
|
|
38
38
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
39
39
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
40
40
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
41
|
-
}
|
|
41
|
+
}>, "storage_unavailable" | "unknown_account" | "export_in_progress"> & import("../errors.js").DeclaredErrors<{
|
|
42
42
|
readonly storage_unavailable: "No object store is configured.";
|
|
43
43
|
readonly unknown_account: "accountId names an account the tenant does not have; data.ids lists it.";
|
|
44
44
|
readonly export_in_progress: "An export of the same scope (the tenant, or the same account) is queued or running.";
|
|
45
|
-
}
|
|
46
|
-
list: import("@orpc/contract").
|
|
45
|
+
}>>;
|
|
46
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
47
47
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
48
48
|
cursor: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -68,7 +68,7 @@ export declare const exports: {
|
|
|
68
68
|
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
69
69
|
}, z.core.$strip>>;
|
|
70
70
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
71
|
-
}, z.core.$strip>,
|
|
71
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
72
72
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
73
73
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
74
74
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -85,10 +85,10 @@ export declare const exports: {
|
|
|
85
85
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
86
86
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
87
87
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
88
|
-
}
|
|
88
|
+
}>, "invalid_cursor"> & import("../errors.js").DeclaredErrors<{
|
|
89
89
|
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
90
|
-
}
|
|
91
|
-
get: import("@orpc/contract").
|
|
90
|
+
}>>;
|
|
91
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
92
92
|
exportId: z.ZodUUID;
|
|
93
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
94
94
|
id: z.ZodUUID;
|
|
@@ -109,7 +109,7 @@ export declare const exports: {
|
|
|
109
109
|
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
110
110
|
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
111
111
|
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
112
|
-
}, z.core.$strip>,
|
|
112
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
113
113
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
114
114
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
115
115
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -126,12 +126,12 @@ export declare const exports: {
|
|
|
126
126
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
127
127
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
128
128
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
129
|
-
}
|
|
129
|
+
}>, "export_not_found"> & import("../errors.js").DeclaredErrors<{
|
|
130
130
|
readonly export_not_found: "The export does not exist.";
|
|
131
|
-
}
|
|
132
|
-
download: import("@orpc/contract").
|
|
131
|
+
}>>;
|
|
132
|
+
download: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
133
133
|
exportId: z.ZodUUID;
|
|
134
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>,
|
|
134
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>, Omit<import("../errors.js").DeclaredErrors<{
|
|
135
135
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
136
136
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
137
137
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -148,35 +148,29 @@ export declare const exports: {
|
|
|
148
148
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
149
149
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
150
150
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
151
|
-
}
|
|
151
|
+
}>, "storage_unavailable" | "export_not_found" | "export_not_ready" | "export_failed" | "export_expired" | "export_corrupt"> & {
|
|
152
152
|
storage_unavailable: {
|
|
153
|
-
status: 400;
|
|
154
153
|
message: string;
|
|
155
154
|
};
|
|
156
155
|
export_not_ready: {
|
|
157
|
-
status: 409;
|
|
158
156
|
message: string;
|
|
159
157
|
};
|
|
160
158
|
export_failed: {
|
|
161
|
-
status: 409;
|
|
162
159
|
message: string;
|
|
163
160
|
};
|
|
164
161
|
export_expired: {
|
|
165
|
-
status: 410;
|
|
166
162
|
message: string;
|
|
167
163
|
};
|
|
168
164
|
export_corrupt: {
|
|
169
|
-
status: 500;
|
|
170
165
|
message: string;
|
|
171
166
|
};
|
|
172
167
|
export_not_found: {
|
|
173
|
-
status: 404;
|
|
174
168
|
message: string;
|
|
175
169
|
};
|
|
176
|
-
}
|
|
177
|
-
delete: import("@orpc/contract").
|
|
170
|
+
}>;
|
|
171
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
178
172
|
exportId: z.ZodUUID;
|
|
179
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
173
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
180
174
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
181
175
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
182
176
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -193,14 +187,12 @@ export declare const exports: {
|
|
|
193
187
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
194
188
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
195
189
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
196
|
-
}
|
|
190
|
+
}>, "export_not_found" | "export_running"> & {
|
|
197
191
|
export_running: {
|
|
198
|
-
status: 409;
|
|
199
192
|
message: string;
|
|
200
193
|
};
|
|
201
194
|
export_not_found: {
|
|
202
|
-
status: 404;
|
|
203
195
|
message: string;
|
|
204
196
|
};
|
|
205
|
-
}
|
|
197
|
+
}>;
|
|
206
198
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const identities: {
|
|
3
|
-
list: import("@orpc/contract").
|
|
3
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
4
4
|
accountId: z.ZodUUID;
|
|
5
5
|
refresh: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
6
6
|
z.ZodBoolean,
|
|
@@ -29,7 +29,7 @@ export declare const identities: {
|
|
|
29
29
|
text: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
|
-
}, z.core.$strip>,
|
|
32
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
33
33
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
34
34
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
35
35
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -46,33 +46,27 @@ export declare const identities: {
|
|
|
46
46
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
47
47
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
48
48
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
49
|
-
}
|
|
49
|
+
}>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_reauth_required" | "mail_disabled" | "provider_throttled"> & {
|
|
50
50
|
provider_unavailable: {
|
|
51
|
-
status: 502;
|
|
52
51
|
message: string;
|
|
53
52
|
};
|
|
54
53
|
provider_throttled: {
|
|
55
|
-
status: 429;
|
|
56
54
|
message: string;
|
|
57
55
|
};
|
|
58
56
|
account_reauth_required: {
|
|
59
|
-
status: 409;
|
|
60
57
|
message: string;
|
|
61
58
|
};
|
|
62
59
|
mail_disabled: {
|
|
63
|
-
status: 409;
|
|
64
60
|
message: string;
|
|
65
61
|
};
|
|
66
62
|
account_not_found: {
|
|
67
|
-
status: 404;
|
|
68
63
|
message: string;
|
|
69
64
|
};
|
|
70
65
|
plan_module_unavailable: {
|
|
71
|
-
status: 403;
|
|
72
66
|
message: string;
|
|
73
67
|
};
|
|
74
|
-
}
|
|
75
|
-
create: import("@orpc/contract").
|
|
68
|
+
}>;
|
|
69
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
76
70
|
accountId: z.ZodUUID;
|
|
77
71
|
name: z.ZodOptional<z.ZodString>;
|
|
78
72
|
address: z.ZodEmail;
|
|
@@ -97,7 +91,7 @@ export declare const identities: {
|
|
|
97
91
|
html: z.ZodNullable<z.ZodString>;
|
|
98
92
|
text: z.ZodNullable<z.ZodString>;
|
|
99
93
|
}, z.core.$strip>>;
|
|
100
|
-
}, z.core.$strip>,
|
|
94
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
101
95
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
102
96
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
103
97
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -114,29 +108,24 @@ export declare const identities: {
|
|
|
114
108
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
115
109
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
116
110
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
117
|
-
}
|
|
111
|
+
}>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "identities_managed_by_provider" | "identity_exists"> & {
|
|
118
112
|
identities_managed_by_provider: {
|
|
119
|
-
status: 400;
|
|
120
113
|
message: string;
|
|
121
114
|
};
|
|
122
115
|
identity_exists: {
|
|
123
|
-
status: 409;
|
|
124
116
|
message: string;
|
|
125
117
|
};
|
|
126
118
|
mail_disabled: {
|
|
127
|
-
status: 409;
|
|
128
119
|
message: string;
|
|
129
120
|
};
|
|
130
121
|
account_not_found: {
|
|
131
|
-
status: 404;
|
|
132
122
|
message: string;
|
|
133
123
|
};
|
|
134
124
|
plan_module_unavailable: {
|
|
135
|
-
status: 403;
|
|
136
125
|
message: string;
|
|
137
126
|
};
|
|
138
|
-
}
|
|
139
|
-
update: import("@orpc/contract").
|
|
127
|
+
}>;
|
|
128
|
+
update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
140
129
|
accountId: z.ZodUUID;
|
|
141
130
|
identityId: z.ZodUUID;
|
|
142
131
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -161,7 +150,7 @@ export declare const identities: {
|
|
|
161
150
|
html: z.ZodNullable<z.ZodString>;
|
|
162
151
|
text: z.ZodNullable<z.ZodString>;
|
|
163
152
|
}, z.core.$strip>>;
|
|
164
|
-
}, z.core.$strip>,
|
|
153
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
165
154
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
166
155
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
167
156
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -178,32 +167,27 @@ export declare const identities: {
|
|
|
178
167
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
179
168
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
180
169
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
181
|
-
}
|
|
170
|
+
}>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "identity_not_found" | "identity_not_custom"> & {
|
|
182
171
|
identity_not_custom: {
|
|
183
|
-
status: 400;
|
|
184
172
|
message: string;
|
|
185
173
|
};
|
|
186
174
|
identity_not_found: {
|
|
187
|
-
status: 404;
|
|
188
175
|
message: string;
|
|
189
176
|
};
|
|
190
177
|
mail_disabled: {
|
|
191
|
-
status: 409;
|
|
192
178
|
message: string;
|
|
193
179
|
};
|
|
194
180
|
account_not_found: {
|
|
195
|
-
status: 404;
|
|
196
181
|
message: string;
|
|
197
182
|
};
|
|
198
183
|
plan_module_unavailable: {
|
|
199
|
-
status: 403;
|
|
200
184
|
message: string;
|
|
201
185
|
};
|
|
202
|
-
}
|
|
203
|
-
delete: import("@orpc/contract").
|
|
186
|
+
}>;
|
|
187
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
204
188
|
accountId: z.ZodUUID;
|
|
205
189
|
identityId: z.ZodUUID;
|
|
206
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
190
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
207
191
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
208
192
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
209
193
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -220,35 +204,30 @@ export declare const identities: {
|
|
|
220
204
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
221
205
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
222
206
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
223
|
-
}
|
|
207
|
+
}>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "identity_not_found" | "identity_not_custom"> & {
|
|
224
208
|
identity_not_custom: {
|
|
225
|
-
status: 400;
|
|
226
209
|
message: string;
|
|
227
210
|
};
|
|
228
211
|
identity_not_found: {
|
|
229
|
-
status: 404;
|
|
230
212
|
message: string;
|
|
231
213
|
};
|
|
232
214
|
mail_disabled: {
|
|
233
|
-
status: 409;
|
|
234
215
|
message: string;
|
|
235
216
|
};
|
|
236
217
|
account_not_found: {
|
|
237
|
-
status: 404;
|
|
238
218
|
message: string;
|
|
239
219
|
};
|
|
240
220
|
plan_module_unavailable: {
|
|
241
|
-
status: 403;
|
|
242
221
|
message: string;
|
|
243
222
|
};
|
|
244
|
-
}
|
|
223
|
+
}>;
|
|
245
224
|
};
|
|
246
225
|
export declare const mailSettings: {
|
|
247
|
-
get: import("@orpc/contract").
|
|
226
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
248
227
|
accountId: z.ZodUUID;
|
|
249
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
250
229
|
signByDefault: z.ZodBoolean;
|
|
251
|
-
}, z.core.$strip>,
|
|
230
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
252
231
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
253
232
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
254
233
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -265,26 +244,23 @@ export declare const mailSettings: {
|
|
|
265
244
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
266
245
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
267
246
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
268
|
-
}
|
|
247
|
+
}>, "account_not_found" | "plan_module_unavailable" | "mail_disabled"> & {
|
|
269
248
|
mail_disabled: {
|
|
270
|
-
status: 409;
|
|
271
249
|
message: string;
|
|
272
250
|
};
|
|
273
251
|
account_not_found: {
|
|
274
|
-
status: 404;
|
|
275
252
|
message: string;
|
|
276
253
|
};
|
|
277
254
|
plan_module_unavailable: {
|
|
278
|
-
status: 403;
|
|
279
255
|
message: string;
|
|
280
256
|
};
|
|
281
|
-
}
|
|
282
|
-
update: import("@orpc/contract").
|
|
257
|
+
}>;
|
|
258
|
+
update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
283
259
|
accountId: z.ZodUUID;
|
|
284
260
|
signByDefault: z.ZodOptional<z.ZodBoolean>;
|
|
285
261
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
262
|
signByDefault: z.ZodBoolean;
|
|
287
|
-
}, z.core.$strip>,
|
|
263
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
288
264
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
289
265
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
290
266
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -301,18 +277,15 @@ export declare const mailSettings: {
|
|
|
301
277
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
302
278
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
303
279
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
304
|
-
}
|
|
280
|
+
}>, "account_not_found" | "plan_module_unavailable" | "mail_disabled"> & {
|
|
305
281
|
mail_disabled: {
|
|
306
|
-
status: 409;
|
|
307
282
|
message: string;
|
|
308
283
|
};
|
|
309
284
|
account_not_found: {
|
|
310
|
-
status: 404;
|
|
311
285
|
message: string;
|
|
312
286
|
};
|
|
313
287
|
plan_module_unavailable: {
|
|
314
|
-
status: 403;
|
|
315
288
|
message: string;
|
|
316
289
|
};
|
|
317
|
-
}
|
|
290
|
+
}>;
|
|
318
291
|
};
|