@cat-factory/contracts 0.34.0 → 0.36.0
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/dist/api-keys.d.ts +17 -0
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +2 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/github.d.ts +14 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +13 -0
- package/dist/github.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/observability.d.ts +63 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +57 -0
- package/dist/observability.js.map +1 -1
- package/dist/requests.d.ts +7 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +2 -0
- package/dist/requests.js.map +1 -1
- package/dist/routes/_shared.d.ts +58 -0
- package/dist/routes/_shared.d.ts.map +1 -0
- package/dist/routes/_shared.js +46 -0
- package/dist/routes/_shared.js.map +1 -0
- package/dist/routes/accounts.d.ts +775 -0
- package/dist/routes/accounts.d.ts.map +1 -0
- package/dist/routes/accounts.js +145 -0
- package/dist/routes/accounts.js.map +1 -0
- package/dist/routes/agent-runs.d.ts +659 -0
- package/dist/routes/agent-runs.d.ts.map +1 -0
- package/dist/routes/agent-runs.js +33 -0
- package/dist/routes/agent-runs.js.map +1 -0
- package/dist/routes/api-keys.d.ts +244 -0
- package/dist/routes/api-keys.d.ts.map +1 -0
- package/dist/routes/api-keys.js +48 -0
- package/dist/routes/api-keys.js.map +1 -0
- package/dist/routes/auth.d.ts +411 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +129 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/board.d.ts +1259 -0
- package/dist/routes/board.d.ts.map +1 -0
- package/dist/routes/board.js +84 -0
- package/dist/routes/board.js.map +1 -0
- package/dist/routes/bootstrap.d.ts +395 -0
- package/dist/routes/bootstrap.d.ts.map +1 -0
- package/dist/routes/bootstrap.js +56 -0
- package/dist/routes/bootstrap.js.map +1 -0
- package/dist/routes/brainstorm.d.ts +482 -0
- package/dist/routes/brainstorm.d.ts.map +1 -0
- package/dist/routes/brainstorm.js +69 -0
- package/dist/routes/brainstorm.js.map +1 -0
- package/dist/routes/clarity.d.ts +462 -0
- package/dist/routes/clarity.d.ts.map +1 -0
- package/dist/routes/clarity.js +67 -0
- package/dist/routes/clarity.js.map +1 -0
- package/dist/routes/consensus.d.ts +71 -0
- package/dist/routes/consensus.d.ts.map +1 -0
- package/dist/routes/consensus.js +23 -0
- package/dist/routes/consensus.js.map +1 -0
- package/dist/routes/documents.d.ts +449 -0
- package/dist/routes/documents.d.ts.map +1 -0
- package/dist/routes/documents.js +89 -0
- package/dist/routes/documents.js.map +1 -0
- package/dist/routes/environments.d.ts +715 -0
- package/dist/routes/environments.d.ts.map +1 -0
- package/dist/routes/environments.js +82 -0
- package/dist/routes/environments.js.map +1 -0
- package/dist/routes/execution.d.ts +2768 -0
- package/dist/routes/execution.d.ts.map +1 -0
- package/dist/routes/execution.js +119 -0
- package/dist/routes/execution.js.map +1 -0
- package/dist/routes/followUp.d.ts +277 -0
- package/dist/routes/followUp.d.ts.map +1 -0
- package/dist/routes/followUp.js +47 -0
- package/dist/routes/followUp.js.map +1 -0
- package/dist/routes/fragment-library.d.ts +594 -0
- package/dist/routes/fragment-library.d.ts.map +1 -0
- package/dist/routes/fragment-library.js +102 -0
- package/dist/routes/fragment-library.js.map +1 -0
- package/dist/routes/github.d.ts +807 -0
- package/dist/routes/github.d.ts.map +1 -0
- package/dist/routes/github.js +157 -0
- package/dist/routes/github.js.map +1 -0
- package/dist/routes/human-review.d.ts +289 -0
- package/dist/routes/human-review.d.ts.map +1 -0
- package/dist/routes/human-review.js +19 -0
- package/dist/routes/human-review.js.map +1 -0
- package/dist/routes/human-test.d.ts +1434 -0
- package/dist/routes/human-test.d.ts.map +1 -0
- package/dist/routes/human-test.js +47 -0
- package/dist/routes/human-test.js.map +1 -0
- package/dist/routes/incident-enrichment.d.ts +110 -0
- package/dist/routes/incident-enrichment.d.ts.map +1 -0
- package/dist/routes/incident-enrichment.js +26 -0
- package/dist/routes/incident-enrichment.js.map +1 -0
- package/dist/routes/index.d.ts +47 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +50 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/kaizen.d.ts +112 -0
- package/dist/routes/kaizen.d.ts.map +1 -0
- package/dist/routes/kaizen.js +21 -0
- package/dist/routes/kaizen.js.map +1 -0
- package/dist/routes/localModels.d.ts +163 -0
- package/dist/routes/localModels.d.ts.map +1 -0
- package/dist/routes/localModels.js +41 -0
- package/dist/routes/localModels.js.map +1 -0
- package/dist/routes/localSettings.d.ts +93 -0
- package/dist/routes/localSettings.d.ts.map +1 -0
- package/dist/routes/localSettings.js +22 -0
- package/dist/routes/localSettings.js.map +1 -0
- package/dist/routes/merge.d.ts +197 -0
- package/dist/routes/merge.d.ts.map +1 -0
- package/dist/routes/merge.js +36 -0
- package/dist/routes/merge.js.map +1 -0
- package/dist/routes/model-presets.d.ts +162 -0
- package/dist/routes/model-presets.d.ts.map +1 -0
- package/dist/routes/model-presets.js +36 -0
- package/dist/routes/model-presets.js.map +1 -0
- package/dist/routes/models.d.ts +122 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/models.js +24 -0
- package/dist/routes/models.js.map +1 -0
- package/dist/routes/notifications.d.ts +213 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/notifications.js +31 -0
- package/dist/routes/notifications.js.map +1 -0
- package/dist/routes/openrouter.d.ts +144 -0
- package/dist/routes/openrouter.d.ts.map +1 -0
- package/dist/routes/openrouter.js +31 -0
- package/dist/routes/openrouter.js.map +1 -0
- package/dist/routes/personal-subscriptions.d.ts +124 -0
- package/dist/routes/personal-subscriptions.d.ts.map +1 -0
- package/dist/routes/personal-subscriptions.js +32 -0
- package/dist/routes/personal-subscriptions.js.map +1 -0
- package/dist/routes/pipelines.d.ts +457 -0
- package/dist/routes/pipelines.d.ts.map +1 -0
- package/dist/routes/pipelines.js +51 -0
- package/dist/routes/pipelines.js.map +1 -0
- package/dist/routes/prompt-fragments.d.ts +52 -0
- package/dist/routes/prompt-fragments.d.ts.map +1 -0
- package/dist/routes/prompt-fragments.js +14 -0
- package/dist/routes/prompt-fragments.js.map +1 -0
- package/dist/routes/provisioning-logs.d.ts +45 -0
- package/dist/routes/provisioning-logs.d.ts.map +1 -0
- package/dist/routes/provisioning-logs.js +14 -0
- package/dist/routes/provisioning-logs.js.map +1 -0
- package/dist/routes/recurring.d.ts +309 -0
- package/dist/routes/recurring.d.ts.map +1 -0
- package/dist/routes/recurring.js +50 -0
- package/dist/routes/recurring.js.map +1 -0
- package/dist/routes/release.d.ts +218 -0
- package/dist/routes/release.d.ts.map +1 -0
- package/dist/routes/release.js +47 -0
- package/dist/routes/release.js.map +1 -0
- package/dist/routes/requirements.d.ts +901 -0
- package/dist/routes/requirements.d.ts.map +1 -0
- package/dist/routes/requirements.js +96 -0
- package/dist/routes/requirements.js.map +1 -0
- package/dist/routes/runners.d.ts +442 -0
- package/dist/routes/runners.d.ts.map +1 -0
- package/dist/routes/runners.js +47 -0
- package/dist/routes/runners.js.map +1 -0
- package/dist/routes/sandbox.d.ts +898 -0
- package/dist/routes/sandbox.d.ts.map +1 -0
- package/dist/routes/sandbox.js +119 -0
- package/dist/routes/sandbox.js.map +1 -0
- package/dist/routes/service-fragment-defaults.d.ts +66 -0
- package/dist/routes/service-fragment-defaults.d.ts.map +1 -0
- package/dist/routes/service-fragment-defaults.js +20 -0
- package/dist/routes/service-fragment-defaults.js.map +1 -0
- package/dist/routes/services.d.ts +224 -0
- package/dist/routes/services.d.ts.map +1 -0
- package/dist/routes/services.js +44 -0
- package/dist/routes/services.js.map +1 -0
- package/dist/routes/slack.d.ts +332 -0
- package/dist/routes/slack.d.ts.map +1 -0
- package/dist/routes/slack.js +72 -0
- package/dist/routes/slack.js.map +1 -0
- package/dist/routes/spec.d.ts +75 -0
- package/dist/routes/spec.d.ts.map +1 -0
- package/dist/routes/spec.js +16 -0
- package/dist/routes/spec.js.map +1 -0
- package/dist/routes/tasks.d.ts +723 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +108 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/routes/tracker.d.ts +77 -0
- package/dist/routes/tracker.d.ts.map +1 -0
- package/dist/routes/tracker.js +20 -0
- package/dist/routes/tracker.js.map +1 -0
- package/dist/routes/user-secret.d.ts +231 -0
- package/dist/routes/user-secret.d.ts.map +1 -0
- package/dist/routes/user-secret.js +49 -0
- package/dist/routes/user-secret.js.map +1 -0
- package/dist/routes/vendor-credentials.d.ts +120 -0
- package/dist/routes/vendor-credentials.d.ts.map +1 -0
- package/dist/routes/vendor-credentials.js +33 -0
- package/dist/routes/vendor-credentials.js.map +1 -0
- package/dist/routes/workspace-settings.d.ts +93 -0
- package/dist/routes/workspace-settings.d.ts.map +1 -0
- package/dist/routes/workspace-settings.js +20 -0
- package/dist/routes/workspace-settings.js.map +1 -0
- package/dist/routes/workspaces.d.ts +1309 -0
- package/dist/routes/workspaces.d.ts.map +1 -0
- package/dist/routes/workspaces.js +45 -0
- package/dist/routes/workspaces.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const listAccountsContract: {
|
|
4
|
+
readonly method: "get";
|
|
5
|
+
readonly pathResolver: () => string;
|
|
6
|
+
readonly responsesByStatusCode: {
|
|
7
|
+
readonly '4xx': v.ObjectSchema<{
|
|
8
|
+
readonly error: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.StringSchema<undefined>;
|
|
10
|
+
readonly message: v.StringSchema<undefined>;
|
|
11
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
12
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
13
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly message: v.StringSchema<undefined>;
|
|
15
|
+
}, undefined>, undefined>, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly '5xx': v.ObjectSchema<{
|
|
19
|
+
readonly error: v.ObjectSchema<{
|
|
20
|
+
readonly code: v.StringSchema<undefined>;
|
|
21
|
+
readonly message: v.StringSchema<undefined>;
|
|
22
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
23
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
24
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly message: v.StringSchema<undefined>;
|
|
26
|
+
}, undefined>, undefined>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
30
|
+
readonly id: v.StringSchema<undefined>;
|
|
31
|
+
readonly type: v.PicklistSchema<["personal", "org"], undefined>;
|
|
32
|
+
readonly name: v.StringSchema<undefined>;
|
|
33
|
+
readonly githubAccountLogin: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
35
|
+
readonly roles: v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>, undefined>;
|
|
36
|
+
readonly defaultCloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
37
|
+
}, undefined>, undefined>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const createAccountContract: {
|
|
41
|
+
readonly method: "post";
|
|
42
|
+
readonly pathResolver: () => string;
|
|
43
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
44
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
45
|
+
readonly githubAccountLogin: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
readonly responsesByStatusCode: {
|
|
48
|
+
readonly '4xx': v.ObjectSchema<{
|
|
49
|
+
readonly error: v.ObjectSchema<{
|
|
50
|
+
readonly code: v.StringSchema<undefined>;
|
|
51
|
+
readonly message: v.StringSchema<undefined>;
|
|
52
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
53
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
54
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly message: v.StringSchema<undefined>;
|
|
56
|
+
}, undefined>, undefined>, undefined>;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
readonly '5xx': v.ObjectSchema<{
|
|
60
|
+
readonly error: v.ObjectSchema<{
|
|
61
|
+
readonly code: v.StringSchema<undefined>;
|
|
62
|
+
readonly message: v.StringSchema<undefined>;
|
|
63
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
64
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
65
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly message: v.StringSchema<undefined>;
|
|
67
|
+
}, undefined>, undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
readonly 201: v.ObjectSchema<{
|
|
71
|
+
readonly id: v.StringSchema<undefined>;
|
|
72
|
+
readonly type: v.PicklistSchema<["personal", "org"], undefined>;
|
|
73
|
+
readonly name: v.StringSchema<undefined>;
|
|
74
|
+
readonly githubAccountLogin: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
76
|
+
readonly roles: v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>, undefined>;
|
|
77
|
+
readonly defaultCloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const updateAccountContract: {
|
|
82
|
+
readonly method: "patch";
|
|
83
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
84
|
+
accountId: v.StringSchema<undefined>;
|
|
85
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
86
|
+
readonly pathResolver: ({ accountId }: {
|
|
87
|
+
accountId: string;
|
|
88
|
+
}) => string;
|
|
89
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
90
|
+
readonly defaultCloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
readonly responsesByStatusCode: {
|
|
93
|
+
readonly '4xx': v.ObjectSchema<{
|
|
94
|
+
readonly error: v.ObjectSchema<{
|
|
95
|
+
readonly code: v.StringSchema<undefined>;
|
|
96
|
+
readonly message: v.StringSchema<undefined>;
|
|
97
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
98
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
99
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
100
|
+
readonly message: v.StringSchema<undefined>;
|
|
101
|
+
}, undefined>, undefined>, undefined>;
|
|
102
|
+
}, undefined>;
|
|
103
|
+
}, undefined>;
|
|
104
|
+
readonly '5xx': v.ObjectSchema<{
|
|
105
|
+
readonly error: v.ObjectSchema<{
|
|
106
|
+
readonly code: v.StringSchema<undefined>;
|
|
107
|
+
readonly message: v.StringSchema<undefined>;
|
|
108
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
109
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
110
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
111
|
+
readonly message: v.StringSchema<undefined>;
|
|
112
|
+
}, undefined>, undefined>, undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
}, undefined>;
|
|
115
|
+
readonly 200: v.ObjectSchema<{
|
|
116
|
+
readonly id: v.StringSchema<undefined>;
|
|
117
|
+
readonly type: v.PicklistSchema<["personal", "org"], undefined>;
|
|
118
|
+
readonly name: v.StringSchema<undefined>;
|
|
119
|
+
readonly githubAccountLogin: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
121
|
+
readonly roles: v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>, undefined>;
|
|
122
|
+
readonly defaultCloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export declare const listAccountMembersContract: {
|
|
127
|
+
readonly method: "get";
|
|
128
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
129
|
+
accountId: v.StringSchema<undefined>;
|
|
130
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
131
|
+
readonly pathResolver: ({ accountId }: {
|
|
132
|
+
accountId: string;
|
|
133
|
+
}) => string;
|
|
134
|
+
readonly responsesByStatusCode: {
|
|
135
|
+
readonly '4xx': v.ObjectSchema<{
|
|
136
|
+
readonly error: v.ObjectSchema<{
|
|
137
|
+
readonly code: v.StringSchema<undefined>;
|
|
138
|
+
readonly message: v.StringSchema<undefined>;
|
|
139
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
140
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
141
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly message: v.StringSchema<undefined>;
|
|
143
|
+
}, undefined>, undefined>, undefined>;
|
|
144
|
+
}, undefined>;
|
|
145
|
+
}, undefined>;
|
|
146
|
+
readonly '5xx': v.ObjectSchema<{
|
|
147
|
+
readonly error: v.ObjectSchema<{
|
|
148
|
+
readonly code: v.StringSchema<undefined>;
|
|
149
|
+
readonly message: v.StringSchema<undefined>;
|
|
150
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
151
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
152
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
153
|
+
readonly message: v.StringSchema<undefined>;
|
|
154
|
+
}, undefined>, undefined>, undefined>;
|
|
155
|
+
}, undefined>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
158
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
159
|
+
readonly userId: v.StringSchema<undefined>;
|
|
160
|
+
readonly roles: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>;
|
|
161
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
162
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
163
|
+
readonly email: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
164
|
+
readonly avatarUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
165
|
+
}, undefined>, undefined>;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export declare const addAccountMemberContract: {
|
|
169
|
+
readonly method: "post";
|
|
170
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
171
|
+
accountId: v.StringSchema<undefined>;
|
|
172
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
173
|
+
readonly pathResolver: ({ accountId }: {
|
|
174
|
+
accountId: string;
|
|
175
|
+
}) => string;
|
|
176
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
177
|
+
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
178
|
+
readonly roles: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>, undefined>;
|
|
179
|
+
}, undefined>;
|
|
180
|
+
readonly responsesByStatusCode: {
|
|
181
|
+
readonly '4xx': v.ObjectSchema<{
|
|
182
|
+
readonly error: v.ObjectSchema<{
|
|
183
|
+
readonly code: v.StringSchema<undefined>;
|
|
184
|
+
readonly message: v.StringSchema<undefined>;
|
|
185
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
186
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
187
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
188
|
+
readonly message: v.StringSchema<undefined>;
|
|
189
|
+
}, undefined>, undefined>, undefined>;
|
|
190
|
+
}, undefined>;
|
|
191
|
+
}, undefined>;
|
|
192
|
+
readonly '5xx': v.ObjectSchema<{
|
|
193
|
+
readonly error: v.ObjectSchema<{
|
|
194
|
+
readonly code: v.StringSchema<undefined>;
|
|
195
|
+
readonly message: v.StringSchema<undefined>;
|
|
196
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
197
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
198
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
199
|
+
readonly message: v.StringSchema<undefined>;
|
|
200
|
+
}, undefined>, undefined>, undefined>;
|
|
201
|
+
}, undefined>;
|
|
202
|
+
}, undefined>;
|
|
203
|
+
readonly 201: v.ObjectSchema<{
|
|
204
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
205
|
+
readonly userId: v.StringSchema<undefined>;
|
|
206
|
+
readonly roles: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>;
|
|
207
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
208
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
209
|
+
readonly email: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
210
|
+
readonly avatarUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
211
|
+
}, undefined>;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
export declare const setMemberRolesContract: {
|
|
215
|
+
readonly method: "patch";
|
|
216
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
217
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
218
|
+
readonly userId: v.StringSchema<undefined>;
|
|
219
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
220
|
+
readonly pathResolver: ({ accountId, userId }: {
|
|
221
|
+
accountId: string;
|
|
222
|
+
userId: string;
|
|
223
|
+
}) => string;
|
|
224
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
225
|
+
readonly roles: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>;
|
|
226
|
+
}, undefined>;
|
|
227
|
+
readonly responsesByStatusCode: {
|
|
228
|
+
readonly '4xx': v.ObjectSchema<{
|
|
229
|
+
readonly error: v.ObjectSchema<{
|
|
230
|
+
readonly code: v.StringSchema<undefined>;
|
|
231
|
+
readonly message: v.StringSchema<undefined>;
|
|
232
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
233
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
234
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
235
|
+
readonly message: v.StringSchema<undefined>;
|
|
236
|
+
}, undefined>, undefined>, undefined>;
|
|
237
|
+
}, undefined>;
|
|
238
|
+
}, undefined>;
|
|
239
|
+
readonly '5xx': v.ObjectSchema<{
|
|
240
|
+
readonly error: v.ObjectSchema<{
|
|
241
|
+
readonly code: v.StringSchema<undefined>;
|
|
242
|
+
readonly message: v.StringSchema<undefined>;
|
|
243
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
244
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
245
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
246
|
+
readonly message: v.StringSchema<undefined>;
|
|
247
|
+
}, undefined>, undefined>, undefined>;
|
|
248
|
+
}, undefined>;
|
|
249
|
+
}, undefined>;
|
|
250
|
+
readonly 200: v.ObjectSchema<{
|
|
251
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
252
|
+
readonly userId: v.StringSchema<undefined>;
|
|
253
|
+
readonly roles: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>;
|
|
254
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
255
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
256
|
+
readonly email: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
257
|
+
readonly avatarUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
258
|
+
}, undefined>;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
export declare const listInvitationsContract: {
|
|
262
|
+
readonly method: "get";
|
|
263
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
264
|
+
accountId: v.StringSchema<undefined>;
|
|
265
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
266
|
+
readonly pathResolver: ({ accountId }: {
|
|
267
|
+
accountId: string;
|
|
268
|
+
}) => string;
|
|
269
|
+
readonly responsesByStatusCode: {
|
|
270
|
+
readonly '4xx': v.ObjectSchema<{
|
|
271
|
+
readonly error: v.ObjectSchema<{
|
|
272
|
+
readonly code: v.StringSchema<undefined>;
|
|
273
|
+
readonly message: v.StringSchema<undefined>;
|
|
274
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
275
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
276
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
277
|
+
readonly message: v.StringSchema<undefined>;
|
|
278
|
+
}, undefined>, undefined>, undefined>;
|
|
279
|
+
}, undefined>;
|
|
280
|
+
}, undefined>;
|
|
281
|
+
readonly '5xx': v.ObjectSchema<{
|
|
282
|
+
readonly error: v.ObjectSchema<{
|
|
283
|
+
readonly code: v.StringSchema<undefined>;
|
|
284
|
+
readonly message: v.StringSchema<undefined>;
|
|
285
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
286
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
287
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
288
|
+
readonly message: v.StringSchema<undefined>;
|
|
289
|
+
}, undefined>, undefined>, undefined>;
|
|
290
|
+
}, undefined>;
|
|
291
|
+
}, undefined>;
|
|
292
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
293
|
+
readonly id: v.StringSchema<undefined>;
|
|
294
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
295
|
+
readonly email: v.StringSchema<undefined>;
|
|
296
|
+
readonly roles: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>;
|
|
297
|
+
readonly status: v.PicklistSchema<["pending", "accepted", "revoked"], undefined>;
|
|
298
|
+
readonly invitedBy: v.StringSchema<undefined>;
|
|
299
|
+
readonly expiresAt: v.NumberSchema<undefined>;
|
|
300
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
301
|
+
}, undefined>, undefined>;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
export declare const createInvitationContract: {
|
|
305
|
+
readonly method: "post";
|
|
306
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
307
|
+
accountId: v.StringSchema<undefined>;
|
|
308
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
309
|
+
readonly pathResolver: ({ accountId }: {
|
|
310
|
+
accountId: string;
|
|
311
|
+
}) => string;
|
|
312
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
313
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>;
|
|
314
|
+
readonly roles: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>, undefined>;
|
|
315
|
+
}, undefined>;
|
|
316
|
+
readonly responsesByStatusCode: {
|
|
317
|
+
readonly '4xx': v.ObjectSchema<{
|
|
318
|
+
readonly error: v.ObjectSchema<{
|
|
319
|
+
readonly code: v.StringSchema<undefined>;
|
|
320
|
+
readonly message: v.StringSchema<undefined>;
|
|
321
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
322
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
323
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
324
|
+
readonly message: v.StringSchema<undefined>;
|
|
325
|
+
}, undefined>, undefined>, undefined>;
|
|
326
|
+
}, undefined>;
|
|
327
|
+
}, undefined>;
|
|
328
|
+
readonly '5xx': v.ObjectSchema<{
|
|
329
|
+
readonly error: v.ObjectSchema<{
|
|
330
|
+
readonly code: v.StringSchema<undefined>;
|
|
331
|
+
readonly message: v.StringSchema<undefined>;
|
|
332
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
333
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
334
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
335
|
+
readonly message: v.StringSchema<undefined>;
|
|
336
|
+
}, undefined>, undefined>, undefined>;
|
|
337
|
+
}, undefined>;
|
|
338
|
+
}, undefined>;
|
|
339
|
+
readonly 201: v.ObjectSchema<{
|
|
340
|
+
readonly invitation: v.ObjectSchema<{
|
|
341
|
+
readonly id: v.StringSchema<undefined>;
|
|
342
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
343
|
+
readonly email: v.StringSchema<undefined>;
|
|
344
|
+
readonly roles: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["admin", "developer", "product"], undefined>, undefined>, v.MinLengthAction<("admin" | "developer" | "product")[], 1, undefined>]>;
|
|
345
|
+
readonly status: v.PicklistSchema<["pending", "accepted", "revoked"], undefined>;
|
|
346
|
+
readonly invitedBy: v.StringSchema<undefined>;
|
|
347
|
+
readonly expiresAt: v.NumberSchema<undefined>;
|
|
348
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
349
|
+
}, undefined>;
|
|
350
|
+
readonly acceptUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
351
|
+
}, undefined>;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
export declare const revokeInvitationContract: {
|
|
355
|
+
readonly method: "delete";
|
|
356
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
357
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
358
|
+
readonly invitationId: v.StringSchema<undefined>;
|
|
359
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
360
|
+
readonly pathResolver: ({ accountId, invitationId }: {
|
|
361
|
+
accountId: string;
|
|
362
|
+
invitationId: string;
|
|
363
|
+
}) => string;
|
|
364
|
+
readonly responsesByStatusCode: {
|
|
365
|
+
readonly '4xx': v.ObjectSchema<{
|
|
366
|
+
readonly error: v.ObjectSchema<{
|
|
367
|
+
readonly code: v.StringSchema<undefined>;
|
|
368
|
+
readonly message: v.StringSchema<undefined>;
|
|
369
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
370
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
371
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
372
|
+
readonly message: v.StringSchema<undefined>;
|
|
373
|
+
}, undefined>, undefined>, undefined>;
|
|
374
|
+
}, undefined>;
|
|
375
|
+
}, undefined>;
|
|
376
|
+
readonly '5xx': v.ObjectSchema<{
|
|
377
|
+
readonly error: v.ObjectSchema<{
|
|
378
|
+
readonly code: v.StringSchema<undefined>;
|
|
379
|
+
readonly message: v.StringSchema<undefined>;
|
|
380
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
381
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
382
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
383
|
+
readonly message: v.StringSchema<undefined>;
|
|
384
|
+
}, undefined>, undefined>, undefined>;
|
|
385
|
+
}, undefined>;
|
|
386
|
+
}, undefined>;
|
|
387
|
+
readonly 204: typeof ContractNoBody;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
export declare const listAccountApiKeysContract: {
|
|
391
|
+
readonly method: "get";
|
|
392
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
393
|
+
accountId: v.StringSchema<undefined>;
|
|
394
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
395
|
+
readonly pathResolver: ({ accountId }: {
|
|
396
|
+
accountId: string;
|
|
397
|
+
}) => string;
|
|
398
|
+
readonly responsesByStatusCode: {
|
|
399
|
+
readonly '4xx': v.ObjectSchema<{
|
|
400
|
+
readonly error: v.ObjectSchema<{
|
|
401
|
+
readonly code: v.StringSchema<undefined>;
|
|
402
|
+
readonly message: v.StringSchema<undefined>;
|
|
403
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
404
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
405
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
406
|
+
readonly message: v.StringSchema<undefined>;
|
|
407
|
+
}, undefined>, undefined>, undefined>;
|
|
408
|
+
}, undefined>;
|
|
409
|
+
}, undefined>;
|
|
410
|
+
readonly '5xx': v.ObjectSchema<{
|
|
411
|
+
readonly error: v.ObjectSchema<{
|
|
412
|
+
readonly code: v.StringSchema<undefined>;
|
|
413
|
+
readonly message: v.StringSchema<undefined>;
|
|
414
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
415
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
416
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
417
|
+
readonly message: v.StringSchema<undefined>;
|
|
418
|
+
}, undefined>, undefined>, undefined>;
|
|
419
|
+
}, undefined>;
|
|
420
|
+
}, undefined>;
|
|
421
|
+
readonly 200: v.ObjectSchema<{
|
|
422
|
+
readonly keys: v.ArraySchema<v.ObjectSchema<{
|
|
423
|
+
readonly id: v.StringSchema<undefined>;
|
|
424
|
+
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
425
|
+
readonly scopeId: v.StringSchema<undefined>;
|
|
426
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
427
|
+
readonly label: v.StringSchema<undefined>;
|
|
428
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
429
|
+
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
430
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
431
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
432
|
+
readonly requestCount: v.NumberSchema<undefined>;
|
|
433
|
+
}, undefined>, undefined>;
|
|
434
|
+
}, undefined>;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
export declare const addAccountApiKeyContract: {
|
|
438
|
+
readonly method: "post";
|
|
439
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
440
|
+
accountId: v.StringSchema<undefined>;
|
|
441
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
442
|
+
readonly pathResolver: ({ accountId }: {
|
|
443
|
+
accountId: string;
|
|
444
|
+
}) => string;
|
|
445
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
446
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
447
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
448
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
449
|
+
}, undefined>;
|
|
450
|
+
readonly responsesByStatusCode: {
|
|
451
|
+
readonly '4xx': v.ObjectSchema<{
|
|
452
|
+
readonly error: v.ObjectSchema<{
|
|
453
|
+
readonly code: v.StringSchema<undefined>;
|
|
454
|
+
readonly message: v.StringSchema<undefined>;
|
|
455
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
456
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
457
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
458
|
+
readonly message: v.StringSchema<undefined>;
|
|
459
|
+
}, undefined>, undefined>, undefined>;
|
|
460
|
+
}, undefined>;
|
|
461
|
+
}, undefined>;
|
|
462
|
+
readonly '5xx': v.ObjectSchema<{
|
|
463
|
+
readonly error: v.ObjectSchema<{
|
|
464
|
+
readonly code: v.StringSchema<undefined>;
|
|
465
|
+
readonly message: v.StringSchema<undefined>;
|
|
466
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
467
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
468
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
469
|
+
readonly message: v.StringSchema<undefined>;
|
|
470
|
+
}, undefined>, undefined>, undefined>;
|
|
471
|
+
}, undefined>;
|
|
472
|
+
}, undefined>;
|
|
473
|
+
readonly 201: v.ObjectSchema<{
|
|
474
|
+
readonly id: v.StringSchema<undefined>;
|
|
475
|
+
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
476
|
+
readonly scopeId: v.StringSchema<undefined>;
|
|
477
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
478
|
+
readonly label: v.StringSchema<undefined>;
|
|
479
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
480
|
+
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
481
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
482
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
483
|
+
readonly requestCount: v.NumberSchema<undefined>;
|
|
484
|
+
}, undefined>;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
export declare const removeAccountApiKeyContract: {
|
|
488
|
+
readonly method: "delete";
|
|
489
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
490
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
491
|
+
readonly id: v.StringSchema<undefined>;
|
|
492
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
493
|
+
readonly pathResolver: ({ accountId, id }: {
|
|
494
|
+
accountId: string;
|
|
495
|
+
id: string;
|
|
496
|
+
}) => string;
|
|
497
|
+
readonly responsesByStatusCode: {
|
|
498
|
+
readonly '4xx': v.ObjectSchema<{
|
|
499
|
+
readonly error: v.ObjectSchema<{
|
|
500
|
+
readonly code: v.StringSchema<undefined>;
|
|
501
|
+
readonly message: v.StringSchema<undefined>;
|
|
502
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
503
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
504
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
505
|
+
readonly message: v.StringSchema<undefined>;
|
|
506
|
+
}, undefined>, undefined>, undefined>;
|
|
507
|
+
}, undefined>;
|
|
508
|
+
}, undefined>;
|
|
509
|
+
readonly '5xx': v.ObjectSchema<{
|
|
510
|
+
readonly error: v.ObjectSchema<{
|
|
511
|
+
readonly code: v.StringSchema<undefined>;
|
|
512
|
+
readonly message: v.StringSchema<undefined>;
|
|
513
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
514
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
515
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
516
|
+
readonly message: v.StringSchema<undefined>;
|
|
517
|
+
}, undefined>, undefined>, undefined>;
|
|
518
|
+
}, undefined>;
|
|
519
|
+
}, undefined>;
|
|
520
|
+
readonly 204: typeof ContractNoBody;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
export declare const getEmailConnectionContract: {
|
|
524
|
+
readonly method: "get";
|
|
525
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
526
|
+
accountId: v.StringSchema<undefined>;
|
|
527
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
528
|
+
readonly pathResolver: ({ accountId }: {
|
|
529
|
+
accountId: string;
|
|
530
|
+
}) => string;
|
|
531
|
+
readonly responsesByStatusCode: {
|
|
532
|
+
readonly '4xx': v.ObjectSchema<{
|
|
533
|
+
readonly error: v.ObjectSchema<{
|
|
534
|
+
readonly code: v.StringSchema<undefined>;
|
|
535
|
+
readonly message: v.StringSchema<undefined>;
|
|
536
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
537
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
538
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
539
|
+
readonly message: v.StringSchema<undefined>;
|
|
540
|
+
}, undefined>, undefined>, undefined>;
|
|
541
|
+
}, undefined>;
|
|
542
|
+
}, undefined>;
|
|
543
|
+
readonly '5xx': v.ObjectSchema<{
|
|
544
|
+
readonly error: v.ObjectSchema<{
|
|
545
|
+
readonly code: v.StringSchema<undefined>;
|
|
546
|
+
readonly message: v.StringSchema<undefined>;
|
|
547
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
548
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
549
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
550
|
+
readonly message: v.StringSchema<undefined>;
|
|
551
|
+
}, undefined>, undefined>, undefined>;
|
|
552
|
+
}, undefined>;
|
|
553
|
+
}, undefined>;
|
|
554
|
+
readonly 200: v.ObjectSchema<{
|
|
555
|
+
readonly connection: v.NullableSchema<v.ObjectSchema<{
|
|
556
|
+
readonly provider: v.PicklistSchema<["sendgrid", "resend"], undefined>;
|
|
557
|
+
readonly fromAddress: v.StringSchema<undefined>;
|
|
558
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
559
|
+
}, undefined>, undefined>;
|
|
560
|
+
readonly configured: v.BooleanSchema<undefined>;
|
|
561
|
+
}, undefined>;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
export declare const connectEmailContract: {
|
|
565
|
+
readonly method: "post";
|
|
566
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
567
|
+
accountId: v.StringSchema<undefined>;
|
|
568
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
569
|
+
readonly pathResolver: ({ accountId }: {
|
|
570
|
+
accountId: string;
|
|
571
|
+
}) => string;
|
|
572
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
573
|
+
readonly provider: v.PicklistSchema<["sendgrid", "resend"], undefined>;
|
|
574
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
575
|
+
readonly fromAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>;
|
|
576
|
+
}, undefined>;
|
|
577
|
+
readonly responsesByStatusCode: {
|
|
578
|
+
readonly '4xx': v.ObjectSchema<{
|
|
579
|
+
readonly error: v.ObjectSchema<{
|
|
580
|
+
readonly code: v.StringSchema<undefined>;
|
|
581
|
+
readonly message: v.StringSchema<undefined>;
|
|
582
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
583
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
584
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
585
|
+
readonly message: v.StringSchema<undefined>;
|
|
586
|
+
}, undefined>, undefined>, undefined>;
|
|
587
|
+
}, undefined>;
|
|
588
|
+
}, undefined>;
|
|
589
|
+
readonly '5xx': v.ObjectSchema<{
|
|
590
|
+
readonly error: v.ObjectSchema<{
|
|
591
|
+
readonly code: v.StringSchema<undefined>;
|
|
592
|
+
readonly message: v.StringSchema<undefined>;
|
|
593
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
594
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
595
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
596
|
+
readonly message: v.StringSchema<undefined>;
|
|
597
|
+
}, undefined>, undefined>, undefined>;
|
|
598
|
+
}, undefined>;
|
|
599
|
+
}, undefined>;
|
|
600
|
+
readonly 201: v.ObjectSchema<{
|
|
601
|
+
readonly provider: v.PicklistSchema<["sendgrid", "resend"], undefined>;
|
|
602
|
+
readonly fromAddress: v.StringSchema<undefined>;
|
|
603
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
604
|
+
}, undefined>;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
export declare const disconnectEmailContract: {
|
|
608
|
+
readonly method: "delete";
|
|
609
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
610
|
+
accountId: v.StringSchema<undefined>;
|
|
611
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
612
|
+
readonly pathResolver: ({ accountId }: {
|
|
613
|
+
accountId: string;
|
|
614
|
+
}) => string;
|
|
615
|
+
readonly responsesByStatusCode: {
|
|
616
|
+
readonly '4xx': v.ObjectSchema<{
|
|
617
|
+
readonly error: v.ObjectSchema<{
|
|
618
|
+
readonly code: v.StringSchema<undefined>;
|
|
619
|
+
readonly message: v.StringSchema<undefined>;
|
|
620
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
621
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
622
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
623
|
+
readonly message: v.StringSchema<undefined>;
|
|
624
|
+
}, undefined>, undefined>, undefined>;
|
|
625
|
+
}, undefined>;
|
|
626
|
+
}, undefined>;
|
|
627
|
+
readonly '5xx': v.ObjectSchema<{
|
|
628
|
+
readonly error: v.ObjectSchema<{
|
|
629
|
+
readonly code: v.StringSchema<undefined>;
|
|
630
|
+
readonly message: v.StringSchema<undefined>;
|
|
631
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
632
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
633
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
634
|
+
readonly message: v.StringSchema<undefined>;
|
|
635
|
+
}, undefined>, undefined>, undefined>;
|
|
636
|
+
}, undefined>;
|
|
637
|
+
}, undefined>;
|
|
638
|
+
readonly 204: typeof ContractNoBody;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
export declare const testEmailContract: {
|
|
642
|
+
readonly method: "post";
|
|
643
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
644
|
+
accountId: v.StringSchema<undefined>;
|
|
645
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
646
|
+
readonly pathResolver: ({ accountId }: {
|
|
647
|
+
accountId: string;
|
|
648
|
+
}) => string;
|
|
649
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
650
|
+
readonly to: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>;
|
|
651
|
+
}, undefined>;
|
|
652
|
+
readonly responsesByStatusCode: {
|
|
653
|
+
readonly '4xx': v.ObjectSchema<{
|
|
654
|
+
readonly error: v.ObjectSchema<{
|
|
655
|
+
readonly code: v.StringSchema<undefined>;
|
|
656
|
+
readonly message: v.StringSchema<undefined>;
|
|
657
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
658
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
659
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
660
|
+
readonly message: v.StringSchema<undefined>;
|
|
661
|
+
}, undefined>, undefined>, undefined>;
|
|
662
|
+
}, undefined>;
|
|
663
|
+
}, undefined>;
|
|
664
|
+
readonly '5xx': v.ObjectSchema<{
|
|
665
|
+
readonly error: v.ObjectSchema<{
|
|
666
|
+
readonly code: v.StringSchema<undefined>;
|
|
667
|
+
readonly message: v.StringSchema<undefined>;
|
|
668
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
669
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
670
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
671
|
+
readonly message: v.StringSchema<undefined>;
|
|
672
|
+
}, undefined>, undefined>, undefined>;
|
|
673
|
+
}, undefined>;
|
|
674
|
+
}, undefined>;
|
|
675
|
+
readonly 200: v.ObjectSchema<{
|
|
676
|
+
readonly ok: v.BooleanSchema<undefined>;
|
|
677
|
+
}, undefined>;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
export declare const getAccountSettingsContract: {
|
|
681
|
+
readonly method: "get";
|
|
682
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
683
|
+
accountId: v.StringSchema<undefined>;
|
|
684
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
685
|
+
readonly pathResolver: ({ accountId }: {
|
|
686
|
+
accountId: string;
|
|
687
|
+
}) => string;
|
|
688
|
+
readonly responsesByStatusCode: {
|
|
689
|
+
readonly '4xx': v.ObjectSchema<{
|
|
690
|
+
readonly error: v.ObjectSchema<{
|
|
691
|
+
readonly code: v.StringSchema<undefined>;
|
|
692
|
+
readonly message: v.StringSchema<undefined>;
|
|
693
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
694
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
695
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
696
|
+
readonly message: v.StringSchema<undefined>;
|
|
697
|
+
}, undefined>, undefined>, undefined>;
|
|
698
|
+
}, undefined>;
|
|
699
|
+
}, undefined>;
|
|
700
|
+
readonly '5xx': v.ObjectSchema<{
|
|
701
|
+
readonly error: v.ObjectSchema<{
|
|
702
|
+
readonly code: v.StringSchema<undefined>;
|
|
703
|
+
readonly message: v.StringSchema<undefined>;
|
|
704
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
705
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
706
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
707
|
+
readonly message: v.StringSchema<undefined>;
|
|
708
|
+
}, undefined>, undefined>, undefined>;
|
|
709
|
+
}, undefined>;
|
|
710
|
+
}, undefined>;
|
|
711
|
+
readonly 200: v.ObjectSchema<{
|
|
712
|
+
readonly config: v.ObjectSchema<{}, undefined>;
|
|
713
|
+
readonly summary: v.ObjectSchema<{
|
|
714
|
+
readonly slackOAuthConfigured: v.BooleanSchema<undefined>;
|
|
715
|
+
readonly webSearch: v.NullableSchema<v.PicklistSchema<["brave", "searxng"], undefined>, undefined>;
|
|
716
|
+
}, undefined>;
|
|
717
|
+
}, undefined>;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
export declare const updateAccountSettingsContract: {
|
|
721
|
+
readonly method: "put";
|
|
722
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
723
|
+
accountId: v.StringSchema<undefined>;
|
|
724
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
725
|
+
readonly pathResolver: ({ accountId }: {
|
|
726
|
+
accountId: string;
|
|
727
|
+
}) => string;
|
|
728
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
729
|
+
readonly config: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
730
|
+
readonly secrets: v.OptionalSchema<v.ObjectSchema<{
|
|
731
|
+
readonly slackOAuth: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
732
|
+
readonly clientId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
733
|
+
readonly clientSecret: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
734
|
+
readonly redirectUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>]>;
|
|
735
|
+
}, undefined>, undefined>, undefined>;
|
|
736
|
+
readonly webSearch: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
737
|
+
readonly braveApiKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
738
|
+
readonly searxngUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>]>, undefined>;
|
|
739
|
+
readonly searxngApiKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
740
|
+
}, undefined>, undefined>, undefined>;
|
|
741
|
+
}, undefined>, undefined>;
|
|
742
|
+
}, undefined>;
|
|
743
|
+
readonly responsesByStatusCode: {
|
|
744
|
+
readonly '4xx': v.ObjectSchema<{
|
|
745
|
+
readonly error: v.ObjectSchema<{
|
|
746
|
+
readonly code: v.StringSchema<undefined>;
|
|
747
|
+
readonly message: v.StringSchema<undefined>;
|
|
748
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
749
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
750
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
751
|
+
readonly message: v.StringSchema<undefined>;
|
|
752
|
+
}, undefined>, undefined>, undefined>;
|
|
753
|
+
}, undefined>;
|
|
754
|
+
}, undefined>;
|
|
755
|
+
readonly '5xx': v.ObjectSchema<{
|
|
756
|
+
readonly error: v.ObjectSchema<{
|
|
757
|
+
readonly code: v.StringSchema<undefined>;
|
|
758
|
+
readonly message: v.StringSchema<undefined>;
|
|
759
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
760
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
761
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
762
|
+
readonly message: v.StringSchema<undefined>;
|
|
763
|
+
}, undefined>, undefined>, undefined>;
|
|
764
|
+
}, undefined>;
|
|
765
|
+
}, undefined>;
|
|
766
|
+
readonly 200: v.ObjectSchema<{
|
|
767
|
+
readonly config: v.ObjectSchema<{}, undefined>;
|
|
768
|
+
readonly summary: v.ObjectSchema<{
|
|
769
|
+
readonly slackOAuthConfigured: v.BooleanSchema<undefined>;
|
|
770
|
+
readonly webSearch: v.NullableSchema<v.PicklistSchema<["brave", "searxng"], undefined>, undefined>;
|
|
771
|
+
}, undefined>;
|
|
772
|
+
}, undefined>;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
//# sourceMappingURL=accounts.d.ts.map
|