@workwae/sdk 0.0.0-stage → 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 +233 -2
- package/client.d.ts +36 -0
- package/contract/accounts/models.d.ts +766 -0
- package/contract/accounts/routes.d.ts +1480 -0
- package/contract/ai/models.d.ts +29 -0
- package/contract/ai/routes.d.ts +98 -0
- package/contract/audit-log/models.d.ts +121 -0
- package/contract/audit-log/routes.d.ts +81 -0
- package/contract/calendar/models.d.ts +1012 -0
- package/contract/calendar/routes.d.ts +1843 -0
- package/contract/connect/models.d.ts +284 -0
- package/contract/connect/routes.d.ts +570 -0
- package/contract/contacts/models.d.ts +259 -0
- package/contract/contacts/routes.d.ts +648 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +116 -0
- package/contract/events/models.d.ts +2424 -0
- package/contract/events/routes.d.ts +117 -0
- package/contract/exports/models.d.ts +67 -0
- package/contract/exports/routes.d.ts +206 -0
- package/contract/identities/models.d.ts +98 -0
- package/contract/identities/routes.d.ts +318 -0
- package/contract/limits.d.ts +118 -0
- package/contract/mail/models.d.ts +571 -0
- package/contract/mail/routes.d.ts +1189 -0
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +227 -0
- package/contract/meetings/routes.d.ts +405 -0
- package/contract/oauth-apps/models.d.ts +86 -0
- package/contract/oauth-apps/routes.d.ts +195 -0
- package/contract/org-connections/models.d.ts +427 -0
- package/contract/org-connections/routes.d.ts +1107 -0
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +85 -0
- package/contract/public.d.ts +32 -0
- package/contract/reasons.d.ts +1222 -0
- package/contract/router.d.ts +12986 -0
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +787 -0
- package/contract/send/routes.d.ts +1488 -0
- package/contract/settings/models.d.ts +163 -0
- package/contract/settings/routes.d.ts +162 -0
- package/contract/suppressions/models.d.ts +224 -0
- package/contract/suppressions/routes.d.ts +365 -0
- package/contract/templates/models.d.ts +155 -0
- package/contract/templates/routes.d.ts +305 -0
- package/contract/threads/models.d.ts +112 -0
- package/contract/threads/routes.d.ts +376 -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 +185 -0
- package/contract/usage/routes.d.ts +109 -0
- package/contract/webhooks/models.d.ts +894 -0
- package/contract/webhooks/routes.d.ts +882 -0
- package/contract/webhooks/signing.d.ts +19 -0
- package/errors.d.ts +15 -0
- package/index.d.ts +6 -0
- package/index.js +1 -0
- package/package.json +44 -4
- package/pagination.d.ts +40 -0
- package/webhooks.d.ts +28 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare const changes: {
|
|
2
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
limit: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
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<{
|
|
50
|
+
"account.connected": "account.connected";
|
|
51
|
+
"account.updated": "account.updated";
|
|
52
|
+
"account.deleted": "account.deleted";
|
|
53
|
+
"account.reauth_required": "account.reauth_required";
|
|
54
|
+
"account.initialized": "account.initialized";
|
|
55
|
+
"account.purged": "account.purged";
|
|
56
|
+
"mailbox.created": "mailbox.created";
|
|
57
|
+
"mailbox.updated": "mailbox.updated";
|
|
58
|
+
"mailbox.deleted": "mailbox.deleted";
|
|
59
|
+
"message.created": "message.created";
|
|
60
|
+
"message.updated": "message.updated";
|
|
61
|
+
"message.deleted": "message.deleted";
|
|
62
|
+
"message.bounced": "message.bounced";
|
|
63
|
+
"message.classified": "message.classified";
|
|
64
|
+
"message.opened": "message.opened";
|
|
65
|
+
"message.clicked": "message.clicked";
|
|
66
|
+
"send.sent": "send.sent";
|
|
67
|
+
"send.retrying": "send.retrying";
|
|
68
|
+
"send.failed": "send.failed";
|
|
69
|
+
"send.rescheduled": "send.rescheduled";
|
|
70
|
+
"send.cancelled": "send.cancelled";
|
|
71
|
+
"suppression.created": "suppression.created";
|
|
72
|
+
"calendar.initialized": "calendar.initialized";
|
|
73
|
+
"calendar.created": "calendar.created";
|
|
74
|
+
"calendar.updated": "calendar.updated";
|
|
75
|
+
"calendar.deleted": "calendar.deleted";
|
|
76
|
+
"calendar_event.created": "calendar_event.created";
|
|
77
|
+
"calendar_event.updated": "calendar_event.updated";
|
|
78
|
+
"calendar_event.deleted": "calendar_event.deleted";
|
|
79
|
+
"contacts.initialized": "contacts.initialized";
|
|
80
|
+
"contact.created": "contact.created";
|
|
81
|
+
"contact.updated": "contact.updated";
|
|
82
|
+
"contact.deleted": "contact.deleted";
|
|
83
|
+
"export.completed": "export.completed";
|
|
84
|
+
"export.failed": "export.failed";
|
|
85
|
+
"meeting_connection.connected": "meeting_connection.connected";
|
|
86
|
+
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
87
|
+
"booking.created": "booking.created";
|
|
88
|
+
"booking.cancelled": "booking.cancelled";
|
|
89
|
+
"webhook.test": "webhook.test";
|
|
90
|
+
}>>>>;
|
|
91
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
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">>;
|
|
96
|
+
nextCursor: import("zod").ZodString;
|
|
97
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
98
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
99
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
100
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
101
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
102
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
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.";
|
|
106
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
107
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
108
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
109
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
110
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
111
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
112
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
113
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
114
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
115
|
+
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
116
|
+
}>>, Record<never, never>>;
|
|
117
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const ExportStatus: z.ZodEnum<{
|
|
3
|
+
completed: "completed";
|
|
4
|
+
failed: "failed";
|
|
5
|
+
queued: "queued";
|
|
6
|
+
running: "running";
|
|
7
|
+
expired: "expired";
|
|
8
|
+
}>;
|
|
9
|
+
export type ExportStatus = z.infer<typeof ExportStatus>;
|
|
10
|
+
export declare const DataExport: z.ZodObject<{
|
|
11
|
+
id: z.ZodUUID;
|
|
12
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
13
|
+
accountEmail: z.ZodNullable<z.ZodString>;
|
|
14
|
+
status: z.ZodEnum<{
|
|
15
|
+
completed: "completed";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
queued: "queued";
|
|
18
|
+
running: "running";
|
|
19
|
+
expired: "expired";
|
|
20
|
+
}>;
|
|
21
|
+
bytes: z.ZodNumber;
|
|
22
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
23
|
+
contents: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
24
|
+
error: z.ZodNullable<z.ZodString>;
|
|
25
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
26
|
+
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
27
|
+
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
28
|
+
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type DataExport = z.infer<typeof DataExport>;
|
|
31
|
+
export declare const DataExportPage: z.ZodObject<{
|
|
32
|
+
items: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodUUID;
|
|
34
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
35
|
+
accountEmail: z.ZodNullable<z.ZodString>;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
completed: "completed";
|
|
38
|
+
failed: "failed";
|
|
39
|
+
queued: "queued";
|
|
40
|
+
running: "running";
|
|
41
|
+
expired: "expired";
|
|
42
|
+
}>;
|
|
43
|
+
bytes: z.ZodNumber;
|
|
44
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
45
|
+
contents: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
46
|
+
error: z.ZodNullable<z.ZodString>;
|
|
47
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
48
|
+
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
49
|
+
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
50
|
+
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type DataExportPage = z.infer<typeof DataExportPage>;
|
|
55
|
+
export declare const CreateDataExport: z.ZodObject<{
|
|
56
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type CreateDataExport = z.infer<typeof CreateDataExport>;
|
|
59
|
+
export declare const ListDataExportsQuery: z.ZodObject<{
|
|
60
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
61
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type ListDataExportsQuery = z.infer<typeof ListDataExportsQuery>;
|
|
64
|
+
export declare const DataExportIdInput: z.ZodObject<{
|
|
65
|
+
exportId: z.ZodUUID;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type DataExportIdInput = z.infer<typeof DataExportIdInput>;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const exports: {
|
|
3
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
id: z.ZodUUID;
|
|
7
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
8
|
+
accountEmail: z.ZodNullable<z.ZodString>;
|
|
9
|
+
status: z.ZodEnum<{
|
|
10
|
+
completed: "completed";
|
|
11
|
+
failed: "failed";
|
|
12
|
+
queued: "queued";
|
|
13
|
+
running: "running";
|
|
14
|
+
expired: "expired";
|
|
15
|
+
}>;
|
|
16
|
+
bytes: z.ZodNumber;
|
|
17
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
18
|
+
contents: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
19
|
+
error: z.ZodNullable<z.ZodString>;
|
|
20
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
21
|
+
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
22
|
+
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
23
|
+
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
24
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
25
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
26
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
27
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
28
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
29
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
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.";
|
|
33
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
34
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
35
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
36
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
37
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
38
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
39
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
40
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
41
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
42
|
+
readonly storage_unavailable: "No object store is configured.";
|
|
43
|
+
readonly unknown_account: "accountId names an account the tenant does not have; data.ids lists it.";
|
|
44
|
+
readonly export_in_progress: "An export of the same scope (the tenant, or the same account) is queued or running.";
|
|
45
|
+
}>>, Record<never, never>>;
|
|
46
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
47
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
48
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
items: z.ZodArray<z.ZodObject<{
|
|
51
|
+
id: z.ZodUUID;
|
|
52
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
53
|
+
accountEmail: z.ZodNullable<z.ZodString>;
|
|
54
|
+
status: z.ZodEnum<{
|
|
55
|
+
completed: "completed";
|
|
56
|
+
failed: "failed";
|
|
57
|
+
queued: "queued";
|
|
58
|
+
running: "running";
|
|
59
|
+
expired: "expired";
|
|
60
|
+
}>;
|
|
61
|
+
bytes: z.ZodNumber;
|
|
62
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
63
|
+
contents: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
64
|
+
error: z.ZodNullable<z.ZodString>;
|
|
65
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
66
|
+
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
67
|
+
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
68
|
+
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
72
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
73
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
74
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
75
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
76
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
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.";
|
|
80
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
81
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
82
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
83
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
84
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
85
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
86
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
87
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
88
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
89
|
+
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
90
|
+
}>>, Record<never, never>>;
|
|
91
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
92
|
+
exportId: z.ZodUUID;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
id: z.ZodUUID;
|
|
95
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
96
|
+
accountEmail: z.ZodNullable<z.ZodString>;
|
|
97
|
+
status: z.ZodEnum<{
|
|
98
|
+
completed: "completed";
|
|
99
|
+
failed: "failed";
|
|
100
|
+
queued: "queued";
|
|
101
|
+
running: "running";
|
|
102
|
+
expired: "expired";
|
|
103
|
+
}>;
|
|
104
|
+
bytes: z.ZodNumber;
|
|
105
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
106
|
+
contents: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
107
|
+
error: z.ZodNullable<z.ZodString>;
|
|
108
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
109
|
+
startedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
110
|
+
completedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
111
|
+
expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
112
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
113
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
114
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
115
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
116
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
117
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
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.";
|
|
121
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
122
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
123
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
124
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
125
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
126
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
127
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
128
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
129
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
130
|
+
readonly export_not_found: "The export does not exist.";
|
|
131
|
+
}>>, Record<never, never>>;
|
|
132
|
+
download: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
133
|
+
exportId: z.ZodUUID;
|
|
134
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
135
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
136
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
137
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
138
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
139
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
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.";
|
|
143
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
144
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
145
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
146
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
147
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
148
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
149
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
150
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
151
|
+
}>>, {
|
|
152
|
+
storage_unavailable: {
|
|
153
|
+
status: 400;
|
|
154
|
+
message: string;
|
|
155
|
+
};
|
|
156
|
+
export_not_ready: {
|
|
157
|
+
status: 409;
|
|
158
|
+
message: string;
|
|
159
|
+
};
|
|
160
|
+
export_failed: {
|
|
161
|
+
status: 409;
|
|
162
|
+
message: string;
|
|
163
|
+
};
|
|
164
|
+
export_expired: {
|
|
165
|
+
status: 410;
|
|
166
|
+
message: string;
|
|
167
|
+
};
|
|
168
|
+
export_corrupt: {
|
|
169
|
+
status: 500;
|
|
170
|
+
message: string;
|
|
171
|
+
};
|
|
172
|
+
export_not_found: {
|
|
173
|
+
status: 404;
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
176
|
+
}>, Record<never, never>>;
|
|
177
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
178
|
+
exportId: z.ZodUUID;
|
|
179
|
+
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
180
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
181
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
182
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
183
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
184
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
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.";
|
|
188
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
189
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
190
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
191
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
192
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
193
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
194
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
195
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
196
|
+
}>>, {
|
|
197
|
+
export_running: {
|
|
198
|
+
status: 409;
|
|
199
|
+
message: string;
|
|
200
|
+
};
|
|
201
|
+
export_not_found: {
|
|
202
|
+
status: 404;
|
|
203
|
+
message: string;
|
|
204
|
+
};
|
|
205
|
+
}>, Record<never, never>>;
|
|
206
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const IdentitySource: z.ZodEnum<{
|
|
3
|
+
custom: "custom";
|
|
4
|
+
provider: "provider";
|
|
5
|
+
primary: "primary";
|
|
6
|
+
}>;
|
|
7
|
+
export type IdentitySource = z.infer<typeof IdentitySource>;
|
|
8
|
+
export declare const Signature: z.ZodObject<{
|
|
9
|
+
html: z.ZodNullable<z.ZodString>;
|
|
10
|
+
text: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type Signature = z.infer<typeof Signature>;
|
|
13
|
+
export declare const SignatureInput: z.ZodObject<{
|
|
14
|
+
html: z.ZodOptional<z.ZodString>;
|
|
15
|
+
text: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type SignatureInput = z.infer<typeof SignatureInput>;
|
|
18
|
+
export declare const Identity: z.ZodObject<{
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
address: z.ZodString;
|
|
21
|
+
id: z.ZodUUID;
|
|
22
|
+
source: z.ZodEnum<{
|
|
23
|
+
custom: "custom";
|
|
24
|
+
provider: "provider";
|
|
25
|
+
primary: "primary";
|
|
26
|
+
}>;
|
|
27
|
+
signature: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
html: z.ZodNullable<z.ZodString>;
|
|
29
|
+
text: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
providerSignature: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
html: z.ZodNullable<z.ZodString>;
|
|
33
|
+
text: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type Identity = z.infer<typeof Identity>;
|
|
37
|
+
export declare const IdentityList: z.ZodObject<{
|
|
38
|
+
refreshedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
39
|
+
items: z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
address: z.ZodString;
|
|
42
|
+
id: z.ZodUUID;
|
|
43
|
+
source: z.ZodEnum<{
|
|
44
|
+
custom: "custom";
|
|
45
|
+
provider: "provider";
|
|
46
|
+
primary: "primary";
|
|
47
|
+
}>;
|
|
48
|
+
signature: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
html: z.ZodNullable<z.ZodString>;
|
|
50
|
+
text: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
providerSignature: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
html: z.ZodNullable<z.ZodString>;
|
|
54
|
+
text: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type IdentityList = z.infer<typeof IdentityList>;
|
|
59
|
+
export declare const MailSettings: z.ZodObject<{
|
|
60
|
+
signByDefault: z.ZodBoolean;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type MailSettings = z.infer<typeof MailSettings>;
|
|
63
|
+
export declare const UpdateMailSettings: z.ZodObject<{
|
|
64
|
+
signByDefault: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type UpdateMailSettings = z.infer<typeof UpdateMailSettings>;
|
|
67
|
+
export declare const IdentityIdInput: z.ZodObject<{
|
|
68
|
+
accountId: z.ZodUUID;
|
|
69
|
+
identityId: z.ZodUUID;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type IdentityIdInput = z.infer<typeof IdentityIdInput>;
|
|
72
|
+
export declare const ListIdentitiesQuery: z.ZodObject<{
|
|
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">>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ListIdentitiesQuery = z.infer<typeof ListIdentitiesQuery>;
|
|
82
|
+
export declare const CreateIdentity: z.ZodObject<{
|
|
83
|
+
name: z.ZodOptional<z.ZodString>;
|
|
84
|
+
address: z.ZodEmail;
|
|
85
|
+
signature: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
html: z.ZodOptional<z.ZodString>;
|
|
87
|
+
text: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type CreateIdentity = z.infer<typeof CreateIdentity>;
|
|
91
|
+
export declare const UpdateIdentity: z.ZodObject<{
|
|
92
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
signature: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
|
+
html: z.ZodOptional<z.ZodString>;
|
|
95
|
+
text: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export type UpdateIdentity = z.infer<typeof UpdateIdentity>;
|