samva 0.33.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +225 -251
- package/dist/client/sdk.gen.js +85 -211
- package/dist/client/types.gen.d.ts +2897 -403
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +308 -46
- package/dist/effect/generated/webhooks.js +67 -19
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +28 -26
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { AgentDefinition, AgentName, ApiKeySecurityMiddleware,
|
|
4
|
+
import { AgentDefinition, AgentModel, AgentModelChoice, AgentName, AgentReasoning, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
5
5
|
export type AgentId = string & EffectBrand.Brand<"AgentId">;
|
|
6
6
|
export declare const AgentId: Schema.brand<Schema.String, "AgentId">;
|
|
7
|
+
export type AgentSpend = {
|
|
8
|
+
readonly month: string;
|
|
9
|
+
readonly spentDollars: number;
|
|
10
|
+
readonly capReachedAt: string | null;
|
|
11
|
+
};
|
|
12
|
+
export declare const AgentSpend: Schema.Struct<{
|
|
13
|
+
readonly month: Schema.String;
|
|
14
|
+
readonly spentDollars: Schema.Finite;
|
|
15
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
16
|
+
}>;
|
|
17
|
+
export type ModelFallbackReason = "candidate" | "failed" | "retired" | "blocked" | "missing";
|
|
18
|
+
export declare const ModelFallbackReason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
19
|
+
export type AgentModelPrice = {
|
|
20
|
+
readonly inputPerMillionDollars: number;
|
|
21
|
+
readonly outputPerMillionDollars: number;
|
|
22
|
+
readonly cacheReadPerMillionDollars: number | null;
|
|
23
|
+
readonly cacheWritePerMillionDollars: number | null;
|
|
24
|
+
};
|
|
25
|
+
export declare const AgentModelPrice: Schema.Struct<{
|
|
26
|
+
readonly inputPerMillionDollars: Schema.Finite;
|
|
27
|
+
readonly outputPerMillionDollars: Schema.Finite;
|
|
28
|
+
readonly cacheReadPerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
29
|
+
readonly cacheWritePerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
30
|
+
}>;
|
|
31
|
+
export type AgentModelAccess = "included" | "upgrade";
|
|
32
|
+
export declare const AgentModelAccess: Schema.Union<readonly [Schema.Literal<"included">, Schema.Literal<"upgrade">]>;
|
|
7
33
|
export type DeleteAgentResponse = {
|
|
8
34
|
readonly id: AgentId;
|
|
9
35
|
readonly deleted: true;
|
|
@@ -28,6 +54,9 @@ export type AgentListItem = {
|
|
|
28
54
|
readonly namespaceId: NamespaceId | null;
|
|
29
55
|
readonly publishedVersion: number | null;
|
|
30
56
|
readonly publishedAt: string | null;
|
|
57
|
+
readonly pausedAt: string | null;
|
|
58
|
+
readonly creditsPausedAt?: string | null;
|
|
59
|
+
readonly monthlySpendCapDollars: number | null;
|
|
31
60
|
readonly createdAt: string;
|
|
32
61
|
readonly updatedAt: string;
|
|
33
62
|
};
|
|
@@ -37,9 +66,32 @@ export declare const AgentListItem: Schema.Struct<{
|
|
|
37
66
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
38
67
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
39
68
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
69
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
70
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
71
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
40
72
|
readonly createdAt: Schema.String;
|
|
41
73
|
readonly updatedAt: Schema.String;
|
|
42
74
|
}>;
|
|
75
|
+
export type AgentModelReasoning = {
|
|
76
|
+
readonly level: AgentReasoning;
|
|
77
|
+
readonly typicalReplyDollars: number;
|
|
78
|
+
};
|
|
79
|
+
export declare const AgentModelReasoning: Schema.Struct<{
|
|
80
|
+
readonly level: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
81
|
+
readonly typicalReplyDollars: Schema.Finite;
|
|
82
|
+
}>;
|
|
83
|
+
export type AgentModelFallback = {
|
|
84
|
+
readonly from: CatalogModelId;
|
|
85
|
+
readonly to: AgentModel;
|
|
86
|
+
readonly reason: ModelFallbackReason;
|
|
87
|
+
readonly since: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const AgentModelFallback: Schema.Struct<{
|
|
90
|
+
readonly from: Schema.String;
|
|
91
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
92
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
93
|
+
readonly since: Schema.String;
|
|
94
|
+
}>;
|
|
43
95
|
export type AgentVersionPage = {
|
|
44
96
|
readonly items: ReadonlyArray<AgentVersionSummary>;
|
|
45
97
|
readonly nextCursor: string | null;
|
|
@@ -63,11 +115,79 @@ export declare const AgentPage: Schema.Struct<{
|
|
|
63
115
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
64
116
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
65
117
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
118
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
119
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
120
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
66
121
|
readonly createdAt: Schema.String;
|
|
67
122
|
readonly updatedAt: Schema.String;
|
|
68
123
|
}>>;
|
|
69
124
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
70
125
|
}>;
|
|
126
|
+
export type AgentModelOption = {
|
|
127
|
+
readonly id: AgentModelChoice;
|
|
128
|
+
readonly name: string;
|
|
129
|
+
readonly alias: boolean;
|
|
130
|
+
readonly model: {
|
|
131
|
+
readonly id: CatalogModelId;
|
|
132
|
+
readonly name: string;
|
|
133
|
+
};
|
|
134
|
+
readonly contextWindow: number;
|
|
135
|
+
readonly inputModalities: ReadonlyArray<string>;
|
|
136
|
+
readonly price: AgentModelPrice;
|
|
137
|
+
readonly reasoning: ReadonlyArray<AgentModelReasoning>;
|
|
138
|
+
readonly access: AgentModelAccess;
|
|
139
|
+
};
|
|
140
|
+
export declare const AgentModelOption: Schema.Struct<{
|
|
141
|
+
readonly id: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
142
|
+
readonly name: Schema.String;
|
|
143
|
+
readonly alias: Schema.Boolean;
|
|
144
|
+
readonly model: Schema.Struct<{
|
|
145
|
+
readonly id: Schema.String;
|
|
146
|
+
readonly name: Schema.String;
|
|
147
|
+
}>;
|
|
148
|
+
readonly contextWindow: Schema.Finite;
|
|
149
|
+
readonly inputModalities: Schema.$Array<Schema.String>;
|
|
150
|
+
readonly price: Schema.Struct<{
|
|
151
|
+
readonly inputPerMillionDollars: Schema.Finite;
|
|
152
|
+
readonly outputPerMillionDollars: Schema.Finite;
|
|
153
|
+
readonly cacheReadPerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
154
|
+
readonly cacheWritePerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
155
|
+
}>;
|
|
156
|
+
readonly reasoning: Schema.$Array<Schema.Struct<{
|
|
157
|
+
readonly level: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
158
|
+
readonly typicalReplyDollars: Schema.Finite;
|
|
159
|
+
}>>;
|
|
160
|
+
readonly access: Schema.Union<readonly [Schema.Literal<"included">, Schema.Literal<"upgrade">]>;
|
|
161
|
+
}>;
|
|
162
|
+
export type AgentModelCatalog = {
|
|
163
|
+
readonly replyFeeDollars: number;
|
|
164
|
+
readonly items: ReadonlyArray<AgentModelOption>;
|
|
165
|
+
};
|
|
166
|
+
export declare const AgentModelCatalog: Schema.Struct<{
|
|
167
|
+
readonly replyFeeDollars: Schema.Finite;
|
|
168
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
169
|
+
readonly id: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
170
|
+
readonly name: Schema.String;
|
|
171
|
+
readonly alias: Schema.Boolean;
|
|
172
|
+
readonly model: Schema.Struct<{
|
|
173
|
+
readonly id: Schema.String;
|
|
174
|
+
readonly name: Schema.String;
|
|
175
|
+
}>;
|
|
176
|
+
readonly contextWindow: Schema.Finite;
|
|
177
|
+
readonly inputModalities: Schema.$Array<Schema.String>;
|
|
178
|
+
readonly price: Schema.Struct<{
|
|
179
|
+
readonly inputPerMillionDollars: Schema.Finite;
|
|
180
|
+
readonly outputPerMillionDollars: Schema.Finite;
|
|
181
|
+
readonly cacheReadPerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
182
|
+
readonly cacheWritePerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
183
|
+
}>;
|
|
184
|
+
readonly reasoning: Schema.$Array<Schema.Struct<{
|
|
185
|
+
readonly level: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
186
|
+
readonly typicalReplyDollars: Schema.Finite;
|
|
187
|
+
}>>;
|
|
188
|
+
readonly access: Schema.Union<readonly [Schema.Literal<"included">, Schema.Literal<"upgrade">]>;
|
|
189
|
+
}>>;
|
|
190
|
+
}>;
|
|
71
191
|
export type Agent = {
|
|
72
192
|
readonly id: AgentId;
|
|
73
193
|
readonly name: string;
|
|
@@ -76,6 +196,10 @@ export type Agent = {
|
|
|
76
196
|
readonly draft: AgentDefinition;
|
|
77
197
|
readonly publishedVersion: number | null;
|
|
78
198
|
readonly publishedAt: string | null;
|
|
199
|
+
readonly pausedAt: string | null;
|
|
200
|
+
readonly creditsPausedAt?: string | null;
|
|
201
|
+
readonly monthlySpendCapDollars: number | null;
|
|
202
|
+
readonly spend: AgentSpend;
|
|
79
203
|
readonly createdAt: string;
|
|
80
204
|
readonly updatedAt: string;
|
|
81
205
|
};
|
|
@@ -87,6 +211,7 @@ export declare const Agent: Schema.Struct<{
|
|
|
87
211
|
readonly draft: Schema.Struct<{
|
|
88
212
|
readonly instructions: Schema.String;
|
|
89
213
|
readonly knowledge: Schema.String;
|
|
214
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
90
215
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
91
216
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
92
217
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -101,7 +226,8 @@ export declare const Agent: Schema.Struct<{
|
|
|
101
226
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
102
227
|
}>>;
|
|
103
228
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
104
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
229
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
230
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
105
231
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
106
232
|
readonly timeZone: Schema.String;
|
|
107
233
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -114,6 +240,14 @@ export declare const Agent: Schema.Struct<{
|
|
|
114
240
|
}>;
|
|
115
241
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
116
242
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
243
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
244
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
245
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
246
|
+
readonly spend: Schema.Struct<{
|
|
247
|
+
readonly month: Schema.String;
|
|
248
|
+
readonly spentDollars: Schema.Finite;
|
|
249
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
250
|
+
}>;
|
|
117
251
|
readonly createdAt: Schema.String;
|
|
118
252
|
readonly updatedAt: Schema.String;
|
|
119
253
|
}>;
|
|
@@ -122,6 +256,7 @@ export type AgentVersion = {
|
|
|
122
256
|
readonly version: number;
|
|
123
257
|
readonly definition: AgentDefinition;
|
|
124
258
|
readonly publishedAt: string;
|
|
259
|
+
readonly modelFallback: AgentModelFallback | null;
|
|
125
260
|
};
|
|
126
261
|
export declare const AgentVersion: Schema.Struct<{
|
|
127
262
|
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
@@ -129,6 +264,7 @@ export declare const AgentVersion: Schema.Struct<{
|
|
|
129
264
|
readonly definition: Schema.Struct<{
|
|
130
265
|
readonly instructions: Schema.String;
|
|
131
266
|
readonly knowledge: Schema.String;
|
|
267
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
132
268
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
133
269
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
134
270
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -143,7 +279,8 @@ export declare const AgentVersion: Schema.Struct<{
|
|
|
143
279
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
144
280
|
}>>;
|
|
145
281
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
146
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
282
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
283
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
147
284
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
148
285
|
readonly timeZone: Schema.String;
|
|
149
286
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -155,6 +292,12 @@ export declare const AgentVersion: Schema.Struct<{
|
|
|
155
292
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
156
293
|
}>;
|
|
157
294
|
readonly publishedAt: Schema.String;
|
|
295
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
296
|
+
readonly from: Schema.String;
|
|
297
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
298
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
299
|
+
readonly since: Schema.String;
|
|
300
|
+
}>, Schema.Null]>;
|
|
158
301
|
}>;
|
|
159
302
|
export type PublishAgentResponse = {
|
|
160
303
|
readonly agent: Agent;
|
|
@@ -170,6 +313,7 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
170
313
|
readonly draft: Schema.Struct<{
|
|
171
314
|
readonly instructions: Schema.String;
|
|
172
315
|
readonly knowledge: Schema.String;
|
|
316
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
173
317
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
174
318
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
175
319
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -184,7 +328,8 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
184
328
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
185
329
|
}>>;
|
|
186
330
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
187
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
331
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
332
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
188
333
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
189
334
|
readonly timeZone: Schema.String;
|
|
190
335
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -197,6 +342,14 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
197
342
|
}>;
|
|
198
343
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
199
344
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
345
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
346
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
347
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
348
|
+
readonly spend: Schema.Struct<{
|
|
349
|
+
readonly month: Schema.String;
|
|
350
|
+
readonly spentDollars: Schema.Finite;
|
|
351
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
352
|
+
}>;
|
|
200
353
|
readonly createdAt: Schema.String;
|
|
201
354
|
readonly updatedAt: Schema.String;
|
|
202
355
|
}>;
|
|
@@ -206,6 +359,7 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
206
359
|
readonly definition: Schema.Struct<{
|
|
207
360
|
readonly instructions: Schema.String;
|
|
208
361
|
readonly knowledge: Schema.String;
|
|
362
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
209
363
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
210
364
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
211
365
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -220,7 +374,8 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
220
374
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
221
375
|
}>>;
|
|
222
376
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
223
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
377
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
378
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
224
379
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
225
380
|
readonly timeZone: Schema.String;
|
|
226
381
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -232,16 +387,22 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
232
387
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
233
388
|
}>;
|
|
234
389
|
readonly publishedAt: Schema.String;
|
|
390
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
391
|
+
readonly from: Schema.String;
|
|
392
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
393
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
394
|
+
readonly since: Schema.String;
|
|
395
|
+
}>, Schema.Null]>;
|
|
235
396
|
}>;
|
|
236
397
|
readonly published: Schema.Boolean;
|
|
237
398
|
}>;
|
|
238
399
|
export type AgentsListQuery = {
|
|
239
400
|
readonly limit?: number | null;
|
|
240
|
-
readonly cursor?:
|
|
401
|
+
readonly cursor?: string;
|
|
241
402
|
};
|
|
242
403
|
export declare const AgentsListQuery: Schema.Struct<{
|
|
243
404
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
244
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
405
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
245
406
|
}>;
|
|
246
407
|
export type AgentsList200 = AgentPage;
|
|
247
408
|
export declare const AgentsList200: Schema.Struct<{
|
|
@@ -251,11 +412,16 @@ export declare const AgentsList200: Schema.Struct<{
|
|
|
251
412
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
252
413
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
253
414
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
415
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
416
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
417
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
254
418
|
readonly createdAt: Schema.String;
|
|
255
419
|
readonly updatedAt: Schema.String;
|
|
256
420
|
}>>;
|
|
257
421
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
258
422
|
}>;
|
|
423
|
+
export type AgentsList400 = MalformedRequestError;
|
|
424
|
+
export declare const AgentsList400: typeof MalformedRequestError;
|
|
259
425
|
export type AgentsList401 = UnauthorizedError;
|
|
260
426
|
export declare const AgentsList401: typeof UnauthorizedError;
|
|
261
427
|
export type AgentsList403 = ForbiddenError;
|
|
@@ -277,6 +443,7 @@ export declare const AgentsCreateRequestJson: Schema.Struct<{
|
|
|
277
443
|
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
278
444
|
readonly instructions: Schema.String;
|
|
279
445
|
readonly knowledge: Schema.String;
|
|
446
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
280
447
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
281
448
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
282
449
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -291,7 +458,8 @@ export declare const AgentsCreateRequestJson: Schema.Struct<{
|
|
|
291
458
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
292
459
|
}>>;
|
|
293
460
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
294
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
461
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
462
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
295
463
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
296
464
|
readonly timeZone: Schema.String;
|
|
297
465
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -312,6 +480,7 @@ export declare const AgentsCreate201: Schema.Struct<{
|
|
|
312
480
|
readonly draft: Schema.Struct<{
|
|
313
481
|
readonly instructions: Schema.String;
|
|
314
482
|
readonly knowledge: Schema.String;
|
|
483
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
315
484
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
316
485
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
317
486
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -326,7 +495,8 @@ export declare const AgentsCreate201: Schema.Struct<{
|
|
|
326
495
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
327
496
|
}>>;
|
|
328
497
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
329
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
498
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
499
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
330
500
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
331
501
|
readonly timeZone: Schema.String;
|
|
332
502
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -339,11 +509,23 @@ export declare const AgentsCreate201: Schema.Struct<{
|
|
|
339
509
|
}>;
|
|
340
510
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
341
511
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
512
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
513
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
514
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
515
|
+
readonly spend: Schema.Struct<{
|
|
516
|
+
readonly month: Schema.String;
|
|
517
|
+
readonly spentDollars: Schema.Finite;
|
|
518
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
519
|
+
}>;
|
|
342
520
|
readonly createdAt: Schema.String;
|
|
343
521
|
readonly updatedAt: Schema.String;
|
|
344
522
|
}>;
|
|
523
|
+
export type AgentsCreate400 = MalformedRequestError;
|
|
524
|
+
export declare const AgentsCreate400: typeof MalformedRequestError;
|
|
345
525
|
export type AgentsCreate401 = UnauthorizedError;
|
|
346
526
|
export declare const AgentsCreate401: typeof UnauthorizedError;
|
|
527
|
+
export type AgentsCreate402 = PaymentRequiredError;
|
|
528
|
+
export declare const AgentsCreate402: typeof PaymentRequiredError;
|
|
347
529
|
export type AgentsCreate403 = ForbiddenError;
|
|
348
530
|
export declare const AgentsCreate403: typeof ForbiddenError;
|
|
349
531
|
export type AgentsCreate404 = ResourceNotFoundError;
|
|
@@ -369,6 +551,7 @@ export declare const AgentsGet200: Schema.Struct<{
|
|
|
369
551
|
readonly draft: Schema.Struct<{
|
|
370
552
|
readonly instructions: Schema.String;
|
|
371
553
|
readonly knowledge: Schema.String;
|
|
554
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
372
555
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
373
556
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
374
557
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -383,7 +566,8 @@ export declare const AgentsGet200: Schema.Struct<{
|
|
|
383
566
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
384
567
|
}>>;
|
|
385
568
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
386
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
569
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
570
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
387
571
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
388
572
|
readonly timeZone: Schema.String;
|
|
389
573
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -396,9 +580,19 @@ export declare const AgentsGet200: Schema.Struct<{
|
|
|
396
580
|
}>;
|
|
397
581
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
398
582
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
583
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
584
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
585
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
586
|
+
readonly spend: Schema.Struct<{
|
|
587
|
+
readonly month: Schema.String;
|
|
588
|
+
readonly spentDollars: Schema.Finite;
|
|
589
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
590
|
+
}>;
|
|
399
591
|
readonly createdAt: Schema.String;
|
|
400
592
|
readonly updatedAt: Schema.String;
|
|
401
593
|
}>;
|
|
594
|
+
export type AgentsGet400 = MalformedRequestError;
|
|
595
|
+
export declare const AgentsGet400: typeof MalformedRequestError;
|
|
402
596
|
export type AgentsGet401 = UnauthorizedError;
|
|
403
597
|
export declare const AgentsGet401: typeof UnauthorizedError;
|
|
404
598
|
export type AgentsGet403 = ForbiddenError;
|
|
@@ -422,6 +616,8 @@ export declare const AgentsRemove200: Schema.Struct<{
|
|
|
422
616
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
423
617
|
readonly deleted: Schema.Literal<true>;
|
|
424
618
|
}>;
|
|
619
|
+
export type AgentsRemove400 = MalformedRequestError;
|
|
620
|
+
export declare const AgentsRemove400: typeof MalformedRequestError;
|
|
425
621
|
export type AgentsRemove401 = UnauthorizedError;
|
|
426
622
|
export declare const AgentsRemove401: typeof UnauthorizedError;
|
|
427
623
|
export type AgentsRemove403 = ForbiddenError;
|
|
@@ -441,10 +637,12 @@ export declare const AgentsUpdatePathParams: Schema.Struct<{
|
|
|
441
637
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
442
638
|
}>;
|
|
443
639
|
export type AgentsUpdateRequestJson = {
|
|
444
|
-
readonly name
|
|
640
|
+
readonly name?: AgentName | null;
|
|
641
|
+
readonly monthlySpendCapDollars?: MonthlySpendCapDollars | null;
|
|
445
642
|
};
|
|
446
643
|
export declare const AgentsUpdateRequestJson: Schema.Struct<{
|
|
447
|
-
readonly name: Schema.String
|
|
644
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
645
|
+
readonly monthlySpendCapDollars: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
448
646
|
}>;
|
|
449
647
|
export type AgentsUpdate200 = Agent;
|
|
450
648
|
export declare const AgentsUpdate200: Schema.Struct<{
|
|
@@ -455,6 +653,7 @@ export declare const AgentsUpdate200: Schema.Struct<{
|
|
|
455
653
|
readonly draft: Schema.Struct<{
|
|
456
654
|
readonly instructions: Schema.String;
|
|
457
655
|
readonly knowledge: Schema.String;
|
|
656
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
458
657
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
459
658
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
460
659
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -469,7 +668,8 @@ export declare const AgentsUpdate200: Schema.Struct<{
|
|
|
469
668
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
470
669
|
}>>;
|
|
471
670
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
472
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
671
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
672
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
473
673
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
474
674
|
readonly timeZone: Schema.String;
|
|
475
675
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -482,9 +682,19 @@ export declare const AgentsUpdate200: Schema.Struct<{
|
|
|
482
682
|
}>;
|
|
483
683
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
484
684
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
685
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
686
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
687
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
688
|
+
readonly spend: Schema.Struct<{
|
|
689
|
+
readonly month: Schema.String;
|
|
690
|
+
readonly spentDollars: Schema.Finite;
|
|
691
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
692
|
+
}>;
|
|
485
693
|
readonly createdAt: Schema.String;
|
|
486
694
|
readonly updatedAt: Schema.String;
|
|
487
695
|
}>;
|
|
696
|
+
export type AgentsUpdate400 = MalformedRequestError;
|
|
697
|
+
export declare const AgentsUpdate400: typeof MalformedRequestError;
|
|
488
698
|
export type AgentsUpdate401 = UnauthorizedError;
|
|
489
699
|
export declare const AgentsUpdate401: typeof UnauthorizedError;
|
|
490
700
|
export type AgentsUpdate403 = ForbiddenError;
|
|
@@ -497,6 +707,121 @@ export type AgentsUpdate500 = InternalError;
|
|
|
497
707
|
export declare const AgentsUpdate500: typeof InternalError;
|
|
498
708
|
export type AgentsUpdate504 = GatewayTimeoutError;
|
|
499
709
|
export declare const AgentsUpdate504: typeof GatewayTimeoutError;
|
|
710
|
+
export type AgentsContinueOnStandardPathParams = {
|
|
711
|
+
readonly id: AgentId;
|
|
712
|
+
};
|
|
713
|
+
export declare const AgentsContinueOnStandardPathParams: Schema.Struct<{
|
|
714
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
715
|
+
}>;
|
|
716
|
+
export type AgentsContinueOnStandard200 = PublishAgentResponse;
|
|
717
|
+
export declare const AgentsContinueOnStandard200: Schema.Struct<{
|
|
718
|
+
readonly agent: Schema.Struct<{
|
|
719
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
720
|
+
readonly name: Schema.String;
|
|
721
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
722
|
+
readonly revision: Schema.String;
|
|
723
|
+
readonly draft: Schema.Struct<{
|
|
724
|
+
readonly instructions: Schema.String;
|
|
725
|
+
readonly knowledge: Schema.String;
|
|
726
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
727
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
728
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
729
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
730
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
731
|
+
readonly kind: Schema.Literal<"all">;
|
|
732
|
+
}>, Schema.Struct<{
|
|
733
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
734
|
+
}>, Schema.Struct<{
|
|
735
|
+
readonly kind: Schema.Literal<"selected">;
|
|
736
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
737
|
+
}>]>;
|
|
738
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
739
|
+
}>>;
|
|
740
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
741
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
742
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
743
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
744
|
+
readonly timeZone: Schema.String;
|
|
745
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
746
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
747
|
+
readonly opens: Schema.String;
|
|
748
|
+
readonly closes: Schema.String;
|
|
749
|
+
}>>;
|
|
750
|
+
}>, Schema.Null]>;
|
|
751
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
752
|
+
}>;
|
|
753
|
+
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
754
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
755
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
756
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
757
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
758
|
+
readonly spend: Schema.Struct<{
|
|
759
|
+
readonly month: Schema.String;
|
|
760
|
+
readonly spentDollars: Schema.Finite;
|
|
761
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
762
|
+
}>;
|
|
763
|
+
readonly createdAt: Schema.String;
|
|
764
|
+
readonly updatedAt: Schema.String;
|
|
765
|
+
}>;
|
|
766
|
+
readonly version: Schema.Struct<{
|
|
767
|
+
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
768
|
+
readonly version: Schema.Finite;
|
|
769
|
+
readonly definition: Schema.Struct<{
|
|
770
|
+
readonly instructions: Schema.String;
|
|
771
|
+
readonly knowledge: Schema.String;
|
|
772
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
773
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
774
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
775
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
776
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
777
|
+
readonly kind: Schema.Literal<"all">;
|
|
778
|
+
}>, Schema.Struct<{
|
|
779
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
780
|
+
}>, Schema.Struct<{
|
|
781
|
+
readonly kind: Schema.Literal<"selected">;
|
|
782
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
783
|
+
}>]>;
|
|
784
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
785
|
+
}>>;
|
|
786
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
787
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
788
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
789
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
790
|
+
readonly timeZone: Schema.String;
|
|
791
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
792
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
793
|
+
readonly opens: Schema.String;
|
|
794
|
+
readonly closes: Schema.String;
|
|
795
|
+
}>>;
|
|
796
|
+
}>, Schema.Null]>;
|
|
797
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
798
|
+
}>;
|
|
799
|
+
readonly publishedAt: Schema.String;
|
|
800
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
801
|
+
readonly from: Schema.String;
|
|
802
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
803
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
804
|
+
readonly since: Schema.String;
|
|
805
|
+
}>, Schema.Null]>;
|
|
806
|
+
}>;
|
|
807
|
+
readonly published: Schema.Boolean;
|
|
808
|
+
}>;
|
|
809
|
+
export type AgentsContinueOnStandard400 = MalformedRequestError;
|
|
810
|
+
export declare const AgentsContinueOnStandard400: typeof MalformedRequestError;
|
|
811
|
+
export type AgentsContinueOnStandard401 = UnauthorizedError;
|
|
812
|
+
export declare const AgentsContinueOnStandard401: typeof UnauthorizedError;
|
|
813
|
+
export type AgentsContinueOnStandard403 = ForbiddenError;
|
|
814
|
+
export declare const AgentsContinueOnStandard403: typeof ForbiddenError;
|
|
815
|
+
export type AgentsContinueOnStandard404 = ResourceNotFoundError;
|
|
816
|
+
export declare const AgentsContinueOnStandard404: typeof ResourceNotFoundError;
|
|
817
|
+
export type AgentsContinueOnStandard409 = ConflictError;
|
|
818
|
+
export declare const AgentsContinueOnStandard409: typeof ConflictError;
|
|
819
|
+
export type AgentsContinueOnStandard422 = ValidationError;
|
|
820
|
+
export declare const AgentsContinueOnStandard422: typeof ValidationError;
|
|
821
|
+
export type AgentsContinueOnStandard500 = InternalError;
|
|
822
|
+
export declare const AgentsContinueOnStandard500: typeof InternalError;
|
|
823
|
+
export type AgentsContinueOnStandard504 = GatewayTimeoutError;
|
|
824
|
+
export declare const AgentsContinueOnStandard504: typeof GatewayTimeoutError;
|
|
500
825
|
export type AgentsReplaceDraftPathParams = {
|
|
501
826
|
readonly id: AgentId;
|
|
502
827
|
};
|
|
@@ -512,6 +837,7 @@ export declare const AgentsReplaceDraftRequestJson: Schema.Struct<{
|
|
|
512
837
|
readonly definition: Schema.Struct<{
|
|
513
838
|
readonly instructions: Schema.String;
|
|
514
839
|
readonly knowledge: Schema.String;
|
|
840
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
515
841
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
516
842
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
517
843
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -526,7 +852,8 @@ export declare const AgentsReplaceDraftRequestJson: Schema.Struct<{
|
|
|
526
852
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
527
853
|
}>>;
|
|
528
854
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
529
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
855
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
856
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
530
857
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
531
858
|
readonly timeZone: Schema.String;
|
|
532
859
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -547,6 +874,7 @@ export declare const AgentsReplaceDraft200: Schema.Struct<{
|
|
|
547
874
|
readonly draft: Schema.Struct<{
|
|
548
875
|
readonly instructions: Schema.String;
|
|
549
876
|
readonly knowledge: Schema.String;
|
|
877
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
550
878
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
551
879
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
552
880
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -561,7 +889,8 @@ export declare const AgentsReplaceDraft200: Schema.Struct<{
|
|
|
561
889
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
562
890
|
}>>;
|
|
563
891
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
564
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
892
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
893
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
565
894
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
566
895
|
readonly timeZone: Schema.String;
|
|
567
896
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -574,11 +903,23 @@ export declare const AgentsReplaceDraft200: Schema.Struct<{
|
|
|
574
903
|
}>;
|
|
575
904
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
576
905
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
906
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
907
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
908
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
909
|
+
readonly spend: Schema.Struct<{
|
|
910
|
+
readonly month: Schema.String;
|
|
911
|
+
readonly spentDollars: Schema.Finite;
|
|
912
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
913
|
+
}>;
|
|
577
914
|
readonly createdAt: Schema.String;
|
|
578
915
|
readonly updatedAt: Schema.String;
|
|
579
916
|
}>;
|
|
917
|
+
export type AgentsReplaceDraft400 = MalformedRequestError;
|
|
918
|
+
export declare const AgentsReplaceDraft400: typeof MalformedRequestError;
|
|
580
919
|
export type AgentsReplaceDraft401 = UnauthorizedError;
|
|
581
920
|
export declare const AgentsReplaceDraft401: typeof UnauthorizedError;
|
|
921
|
+
export type AgentsReplaceDraft402 = PaymentRequiredError;
|
|
922
|
+
export declare const AgentsReplaceDraft402: typeof PaymentRequiredError;
|
|
582
923
|
export type AgentsReplaceDraft403 = ForbiddenError;
|
|
583
924
|
export declare const AgentsReplaceDraft403: typeof ForbiddenError;
|
|
584
925
|
export type AgentsReplaceDraft404 = ResourceNotFoundError;
|
|
@@ -613,6 +954,7 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
613
954
|
readonly draft: Schema.Struct<{
|
|
614
955
|
readonly instructions: Schema.String;
|
|
615
956
|
readonly knowledge: Schema.String;
|
|
957
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
616
958
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
617
959
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
618
960
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -627,7 +969,8 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
627
969
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
628
970
|
}>>;
|
|
629
971
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
630
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
972
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
973
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
631
974
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
632
975
|
readonly timeZone: Schema.String;
|
|
633
976
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -640,6 +983,14 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
640
983
|
}>;
|
|
641
984
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
642
985
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
986
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
987
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
988
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
989
|
+
readonly spend: Schema.Struct<{
|
|
990
|
+
readonly month: Schema.String;
|
|
991
|
+
readonly spentDollars: Schema.Finite;
|
|
992
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
993
|
+
}>;
|
|
643
994
|
readonly createdAt: Schema.String;
|
|
644
995
|
readonly updatedAt: Schema.String;
|
|
645
996
|
}>;
|
|
@@ -649,6 +1000,7 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
649
1000
|
readonly definition: Schema.Struct<{
|
|
650
1001
|
readonly instructions: Schema.String;
|
|
651
1002
|
readonly knowledge: Schema.String;
|
|
1003
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
652
1004
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
653
1005
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
654
1006
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -663,7 +1015,8 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
663
1015
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
664
1016
|
}>>;
|
|
665
1017
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
666
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1018
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1019
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
667
1020
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
668
1021
|
readonly timeZone: Schema.String;
|
|
669
1022
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -675,9 +1028,17 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
675
1028
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
676
1029
|
}>;
|
|
677
1030
|
readonly publishedAt: Schema.String;
|
|
1031
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
1032
|
+
readonly from: Schema.String;
|
|
1033
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1034
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
1035
|
+
readonly since: Schema.String;
|
|
1036
|
+
}>, Schema.Null]>;
|
|
678
1037
|
}>;
|
|
679
1038
|
readonly published: Schema.Boolean;
|
|
680
1039
|
}>;
|
|
1040
|
+
export type AgentsPublish400 = MalformedRequestError;
|
|
1041
|
+
export declare const AgentsPublish400: typeof MalformedRequestError;
|
|
681
1042
|
export type AgentsPublish401 = UnauthorizedError;
|
|
682
1043
|
export declare const AgentsPublish401: typeof UnauthorizedError;
|
|
683
1044
|
export type AgentsPublish403 = ForbiddenError;
|
|
@@ -700,11 +1061,11 @@ export declare const AgentsListVersionsPathParams: Schema.Struct<{
|
|
|
700
1061
|
}>;
|
|
701
1062
|
export type AgentsListVersionsQuery = {
|
|
702
1063
|
readonly limit?: number | null;
|
|
703
|
-
readonly cursor?:
|
|
1064
|
+
readonly cursor?: string;
|
|
704
1065
|
};
|
|
705
1066
|
export declare const AgentsListVersionsQuery: Schema.Struct<{
|
|
706
1067
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
707
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1068
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
708
1069
|
}>;
|
|
709
1070
|
export type AgentsListVersions200 = AgentVersionPage;
|
|
710
1071
|
export declare const AgentsListVersions200: Schema.Struct<{
|
|
@@ -715,6 +1076,8 @@ export declare const AgentsListVersions200: Schema.Struct<{
|
|
|
715
1076
|
}>>;
|
|
716
1077
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
717
1078
|
}>;
|
|
1079
|
+
export type AgentsListVersions400 = MalformedRequestError;
|
|
1080
|
+
export declare const AgentsListVersions400: typeof MalformedRequestError;
|
|
718
1081
|
export type AgentsListVersions401 = UnauthorizedError;
|
|
719
1082
|
export declare const AgentsListVersions401: typeof UnauthorizedError;
|
|
720
1083
|
export type AgentsListVersions403 = ForbiddenError;
|
|
@@ -742,6 +1105,7 @@ export declare const AgentsGetVersion200: Schema.Struct<{
|
|
|
742
1105
|
readonly definition: Schema.Struct<{
|
|
743
1106
|
readonly instructions: Schema.String;
|
|
744
1107
|
readonly knowledge: Schema.String;
|
|
1108
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
745
1109
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
746
1110
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
747
1111
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -756,7 +1120,8 @@ export declare const AgentsGetVersion200: Schema.Struct<{
|
|
|
756
1120
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
757
1121
|
}>>;
|
|
758
1122
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
759
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1123
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1124
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
760
1125
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
761
1126
|
readonly timeZone: Schema.String;
|
|
762
1127
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -768,7 +1133,15 @@ export declare const AgentsGetVersion200: Schema.Struct<{
|
|
|
768
1133
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
769
1134
|
}>;
|
|
770
1135
|
readonly publishedAt: Schema.String;
|
|
1136
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
1137
|
+
readonly from: Schema.String;
|
|
1138
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1139
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
1140
|
+
readonly since: Schema.String;
|
|
1141
|
+
}>, Schema.Null]>;
|
|
771
1142
|
}>;
|
|
1143
|
+
export type AgentsGetVersion400 = MalformedRequestError;
|
|
1144
|
+
export declare const AgentsGetVersion400: typeof MalformedRequestError;
|
|
772
1145
|
export type AgentsGetVersion401 = UnauthorizedError;
|
|
773
1146
|
export declare const AgentsGetVersion401: typeof UnauthorizedError;
|
|
774
1147
|
export type AgentsGetVersion403 = ForbiddenError;
|
|
@@ -781,12 +1154,264 @@ export type AgentsGetVersion500 = InternalError;
|
|
|
781
1154
|
export declare const AgentsGetVersion500: typeof InternalError;
|
|
782
1155
|
export type AgentsGetVersion504 = GatewayTimeoutError;
|
|
783
1156
|
export declare const AgentsGetVersion504: typeof GatewayTimeoutError;
|
|
784
|
-
|
|
1157
|
+
export type AgentsListModels200 = AgentModelCatalog;
|
|
1158
|
+
export declare const AgentsListModels200: Schema.Struct<{
|
|
1159
|
+
readonly replyFeeDollars: Schema.Finite;
|
|
1160
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1161
|
+
readonly id: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1162
|
+
readonly name: Schema.String;
|
|
1163
|
+
readonly alias: Schema.Boolean;
|
|
1164
|
+
readonly model: Schema.Struct<{
|
|
1165
|
+
readonly id: Schema.String;
|
|
1166
|
+
readonly name: Schema.String;
|
|
1167
|
+
}>;
|
|
1168
|
+
readonly contextWindow: Schema.Finite;
|
|
1169
|
+
readonly inputModalities: Schema.$Array<Schema.String>;
|
|
1170
|
+
readonly price: Schema.Struct<{
|
|
1171
|
+
readonly inputPerMillionDollars: Schema.Finite;
|
|
1172
|
+
readonly outputPerMillionDollars: Schema.Finite;
|
|
1173
|
+
readonly cacheReadPerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1174
|
+
readonly cacheWritePerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1175
|
+
}>;
|
|
1176
|
+
readonly reasoning: Schema.$Array<Schema.Struct<{
|
|
1177
|
+
readonly level: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1178
|
+
readonly typicalReplyDollars: Schema.Finite;
|
|
1179
|
+
}>>;
|
|
1180
|
+
readonly access: Schema.Union<readonly [Schema.Literal<"included">, Schema.Literal<"upgrade">]>;
|
|
1181
|
+
}>>;
|
|
1182
|
+
}>;
|
|
1183
|
+
export type AgentsListModels400 = MalformedRequestError;
|
|
1184
|
+
export declare const AgentsListModels400: typeof MalformedRequestError;
|
|
1185
|
+
export type AgentsListModels401 = UnauthorizedError;
|
|
1186
|
+
export declare const AgentsListModels401: typeof UnauthorizedError;
|
|
1187
|
+
export type AgentsListModels403 = ForbiddenError;
|
|
1188
|
+
export declare const AgentsListModels403: typeof ForbiddenError;
|
|
1189
|
+
export type AgentsListModels422 = ValidationError;
|
|
1190
|
+
export declare const AgentsListModels422: typeof ValidationError;
|
|
1191
|
+
export type AgentsListModels500 = InternalError;
|
|
1192
|
+
export declare const AgentsListModels500: typeof InternalError;
|
|
1193
|
+
export type AgentsListModels504 = GatewayTimeoutError;
|
|
1194
|
+
export declare const AgentsListModels504: typeof GatewayTimeoutError;
|
|
1195
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpoint.HttpApiEndpoint<"agentsContinueOnStandard", "POST", "/v1/agents/:id/continue-on-standard", Schema.toCodecStringTree<Schema.Struct<{
|
|
1196
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1197
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1198
|
+
readonly agent: Schema.Struct<{
|
|
1199
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1200
|
+
readonly name: Schema.String;
|
|
1201
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1202
|
+
readonly revision: Schema.String;
|
|
1203
|
+
readonly draft: Schema.Struct<{
|
|
1204
|
+
readonly instructions: Schema.String;
|
|
1205
|
+
readonly knowledge: Schema.String;
|
|
1206
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1207
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1208
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1209
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1210
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1211
|
+
readonly kind: Schema.Literal<"all">;
|
|
1212
|
+
}>, Schema.Struct<{
|
|
1213
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1214
|
+
}>, Schema.Struct<{
|
|
1215
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1216
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1217
|
+
}>]>;
|
|
1218
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1219
|
+
}>>;
|
|
1220
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1221
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1222
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1223
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1224
|
+
readonly timeZone: Schema.String;
|
|
1225
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
1226
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
1227
|
+
readonly opens: Schema.String;
|
|
1228
|
+
readonly closes: Schema.String;
|
|
1229
|
+
}>>;
|
|
1230
|
+
}>, Schema.Null]>;
|
|
1231
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
1232
|
+
}>;
|
|
1233
|
+
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1234
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1235
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1236
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1237
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1238
|
+
readonly spend: Schema.Struct<{
|
|
1239
|
+
readonly month: Schema.String;
|
|
1240
|
+
readonly spentDollars: Schema.Finite;
|
|
1241
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1242
|
+
}>;
|
|
1243
|
+
readonly createdAt: Schema.String;
|
|
1244
|
+
readonly updatedAt: Schema.String;
|
|
1245
|
+
}>;
|
|
1246
|
+
readonly version: Schema.Struct<{
|
|
1247
|
+
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
1248
|
+
readonly version: Schema.Finite;
|
|
1249
|
+
readonly definition: Schema.Struct<{
|
|
1250
|
+
readonly instructions: Schema.String;
|
|
1251
|
+
readonly knowledge: Schema.String;
|
|
1252
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1253
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1254
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1255
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1256
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1257
|
+
readonly kind: Schema.Literal<"all">;
|
|
1258
|
+
}>, Schema.Struct<{
|
|
1259
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1260
|
+
}>, Schema.Struct<{
|
|
1261
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1262
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1263
|
+
}>]>;
|
|
1264
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1265
|
+
}>>;
|
|
1266
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1267
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1268
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1269
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1270
|
+
readonly timeZone: Schema.String;
|
|
1271
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
1272
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
1273
|
+
readonly opens: Schema.String;
|
|
1274
|
+
readonly closes: Schema.String;
|
|
1275
|
+
}>>;
|
|
1276
|
+
}>, Schema.Null]>;
|
|
1277
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
1278
|
+
}>;
|
|
1279
|
+
readonly publishedAt: Schema.String;
|
|
1280
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
1281
|
+
readonly from: Schema.String;
|
|
1282
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1283
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
1284
|
+
readonly since: Schema.String;
|
|
1285
|
+
}>, Schema.Null]>;
|
|
1286
|
+
}>;
|
|
1287
|
+
readonly published: Schema.Boolean;
|
|
1288
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1289
|
+
readonly _tag: "ConflictError";
|
|
1290
|
+
readonly message: string;
|
|
1291
|
+
readonly resource: string;
|
|
1292
|
+
readonly id?: string | null;
|
|
1293
|
+
}, readonly [Schema.Struct<{
|
|
1294
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1295
|
+
readonly message: Schema.String;
|
|
1296
|
+
readonly resource: Schema.String;
|
|
1297
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1298
|
+
}>], {
|
|
1299
|
+
readonly _tag: "ConflictError";
|
|
1300
|
+
readonly message: string;
|
|
1301
|
+
readonly resource: string;
|
|
1302
|
+
readonly id?: string | null;
|
|
1303
|
+
}>, Schema.Struct<{
|
|
1304
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1305
|
+
readonly message: Schema.String;
|
|
1306
|
+
readonly resource: Schema.String;
|
|
1307
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1308
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1309
|
+
readonly _tag: "ForbiddenError";
|
|
1310
|
+
readonly message: string;
|
|
1311
|
+
}, readonly [Schema.Struct<{
|
|
1312
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1313
|
+
readonly message: Schema.String;
|
|
1314
|
+
}>], {
|
|
1315
|
+
readonly _tag: "ForbiddenError";
|
|
1316
|
+
readonly message: string;
|
|
1317
|
+
}>, Schema.Struct<{
|
|
1318
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1319
|
+
readonly message: Schema.String;
|
|
1320
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1321
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1322
|
+
readonly message: string;
|
|
1323
|
+
readonly retryAfterSeconds: number;
|
|
1324
|
+
}, readonly [Schema.Struct<{
|
|
1325
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1326
|
+
readonly message: Schema.String;
|
|
1327
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1328
|
+
}>], {
|
|
1329
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1330
|
+
readonly message: string;
|
|
1331
|
+
readonly retryAfterSeconds: number;
|
|
1332
|
+
}>, Schema.Struct<{
|
|
1333
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1334
|
+
readonly message: Schema.String;
|
|
1335
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1336
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1337
|
+
readonly _tag: "MalformedRequestError";
|
|
1338
|
+
readonly message: string;
|
|
1339
|
+
readonly fields: {
|
|
1340
|
+
readonly [x: string]: readonly string[];
|
|
1341
|
+
};
|
|
1342
|
+
}, readonly [Schema.Struct<{
|
|
1343
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1344
|
+
readonly message: Schema.String;
|
|
1345
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1346
|
+
}>], {
|
|
1347
|
+
readonly _tag: "MalformedRequestError";
|
|
1348
|
+
readonly message: string;
|
|
1349
|
+
readonly fields: {
|
|
1350
|
+
readonly [x: string]: readonly string[];
|
|
1351
|
+
};
|
|
1352
|
+
}>, Schema.Struct<{
|
|
1353
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1354
|
+
readonly message: Schema.String;
|
|
1355
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1356
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1357
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1358
|
+
readonly resource: string;
|
|
1359
|
+
readonly id: string;
|
|
1360
|
+
readonly message: string;
|
|
1361
|
+
}, readonly [Schema.Struct<{
|
|
1362
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1363
|
+
readonly resource: Schema.String;
|
|
1364
|
+
readonly id: Schema.String;
|
|
1365
|
+
readonly message: Schema.String;
|
|
1366
|
+
}>], {
|
|
1367
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1368
|
+
readonly resource: string;
|
|
1369
|
+
readonly id: string;
|
|
1370
|
+
readonly message: string;
|
|
1371
|
+
}>, Schema.Struct<{
|
|
1372
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1373
|
+
readonly resource: Schema.String;
|
|
1374
|
+
readonly id: Schema.String;
|
|
1375
|
+
readonly message: Schema.String;
|
|
1376
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1377
|
+
readonly _tag: "UnauthorizedError";
|
|
1378
|
+
readonly message: string;
|
|
1379
|
+
}, readonly [Schema.Struct<{
|
|
1380
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1381
|
+
readonly message: Schema.String;
|
|
1382
|
+
}>], {
|
|
1383
|
+
readonly _tag: "UnauthorizedError";
|
|
1384
|
+
readonly message: string;
|
|
1385
|
+
}>, Schema.Struct<{
|
|
1386
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1387
|
+
readonly message: Schema.String;
|
|
1388
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1389
|
+
readonly _tag: "ValidationError";
|
|
1390
|
+
readonly message: string;
|
|
1391
|
+
readonly fields?: {
|
|
1392
|
+
readonly [x: string]: readonly string[];
|
|
1393
|
+
} | null;
|
|
1394
|
+
}, readonly [Schema.Struct<{
|
|
1395
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1396
|
+
readonly message: Schema.String;
|
|
1397
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1398
|
+
}>], {
|
|
1399
|
+
readonly _tag: "ValidationError";
|
|
1400
|
+
readonly message: string;
|
|
1401
|
+
readonly fields?: {
|
|
1402
|
+
readonly [x: string]: readonly string[];
|
|
1403
|
+
} | null;
|
|
1404
|
+
}>, Schema.Struct<{
|
|
1405
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1406
|
+
readonly message: Schema.String;
|
|
1407
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1408
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"agentsCreate", "POST", "/v1/agents", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
785
1409
|
readonly name: Schema.String;
|
|
786
1410
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
787
1411
|
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
788
1412
|
readonly instructions: Schema.String;
|
|
789
1413
|
readonly knowledge: Schema.String;
|
|
1414
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
790
1415
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
791
1416
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
792
1417
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -801,7 +1426,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
801
1426
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
802
1427
|
}>>;
|
|
803
1428
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
804
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1429
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1430
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
805
1431
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
806
1432
|
readonly timeZone: Schema.String;
|
|
807
1433
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -820,6 +1446,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
820
1446
|
readonly draft: Schema.Struct<{
|
|
821
1447
|
readonly instructions: Schema.String;
|
|
822
1448
|
readonly knowledge: Schema.String;
|
|
1449
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
823
1450
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
824
1451
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
825
1452
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -834,7 +1461,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
834
1461
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
835
1462
|
}>>;
|
|
836
1463
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
837
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1464
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1465
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
838
1466
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
839
1467
|
readonly timeZone: Schema.String;
|
|
840
1468
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -847,6 +1475,14 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
847
1475
|
}>;
|
|
848
1476
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
849
1477
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1478
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1479
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1480
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1481
|
+
readonly spend: Schema.Struct<{
|
|
1482
|
+
readonly month: Schema.String;
|
|
1483
|
+
readonly spentDollars: Schema.Finite;
|
|
1484
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1485
|
+
}>;
|
|
850
1486
|
readonly createdAt: Schema.String;
|
|
851
1487
|
readonly updatedAt: Schema.String;
|
|
852
1488
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -877,6 +1513,50 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
877
1513
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
878
1514
|
readonly message: Schema.String;
|
|
879
1515
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1516
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1517
|
+
readonly _tag: "MalformedRequestError";
|
|
1518
|
+
readonly message: string;
|
|
1519
|
+
readonly fields: {
|
|
1520
|
+
readonly [x: string]: readonly string[];
|
|
1521
|
+
};
|
|
1522
|
+
}, readonly [Schema.Struct<{
|
|
1523
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1524
|
+
readonly message: Schema.String;
|
|
1525
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1526
|
+
}>], {
|
|
1527
|
+
readonly _tag: "MalformedRequestError";
|
|
1528
|
+
readonly message: string;
|
|
1529
|
+
readonly fields: {
|
|
1530
|
+
readonly [x: string]: readonly string[];
|
|
1531
|
+
};
|
|
1532
|
+
}>, Schema.Struct<{
|
|
1533
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1534
|
+
readonly message: Schema.String;
|
|
1535
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1536
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
1537
|
+
readonly _tag: "PaymentRequiredError";
|
|
1538
|
+
readonly message: string;
|
|
1539
|
+
readonly resource: string;
|
|
1540
|
+
readonly currentUsage: number;
|
|
1541
|
+
readonly limit: number;
|
|
1542
|
+
}, readonly [Schema.Struct<{
|
|
1543
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
1544
|
+
readonly message: Schema.String;
|
|
1545
|
+
readonly resource: Schema.String;
|
|
1546
|
+
readonly currentUsage: Schema.Finite;
|
|
1547
|
+
readonly limit: Schema.Finite;
|
|
1548
|
+
}>], {
|
|
1549
|
+
readonly _tag: "PaymentRequiredError";
|
|
1550
|
+
readonly message: string;
|
|
1551
|
+
readonly resource: string;
|
|
1552
|
+
readonly currentUsage: number;
|
|
1553
|
+
readonly limit: number;
|
|
1554
|
+
}>, Schema.Struct<{
|
|
1555
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
1556
|
+
readonly message: Schema.String;
|
|
1557
|
+
readonly resource: Schema.String;
|
|
1558
|
+
readonly currentUsage: Schema.Finite;
|
|
1559
|
+
readonly limit: Schema.Finite;
|
|
880
1560
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
881
1561
|
readonly _tag: "ResourceNotFoundError";
|
|
882
1562
|
readonly resource: string;
|
|
@@ -939,6 +1619,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
939
1619
|
readonly draft: Schema.Struct<{
|
|
940
1620
|
readonly instructions: Schema.String;
|
|
941
1621
|
readonly knowledge: Schema.String;
|
|
1622
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
942
1623
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
943
1624
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
944
1625
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -953,7 +1634,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
953
1634
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
954
1635
|
}>>;
|
|
955
1636
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
956
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1637
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1638
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
957
1639
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
958
1640
|
readonly timeZone: Schema.String;
|
|
959
1641
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -966,6 +1648,14 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
966
1648
|
}>;
|
|
967
1649
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
968
1650
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1651
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1652
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1653
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1654
|
+
readonly spend: Schema.Struct<{
|
|
1655
|
+
readonly month: Schema.String;
|
|
1656
|
+
readonly spentDollars: Schema.Finite;
|
|
1657
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1658
|
+
}>;
|
|
969
1659
|
readonly createdAt: Schema.String;
|
|
970
1660
|
readonly updatedAt: Schema.String;
|
|
971
1661
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -996,6 +1686,26 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
996
1686
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
997
1687
|
readonly message: Schema.String;
|
|
998
1688
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1689
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1690
|
+
readonly _tag: "MalformedRequestError";
|
|
1691
|
+
readonly message: string;
|
|
1692
|
+
readonly fields: {
|
|
1693
|
+
readonly [x: string]: readonly string[];
|
|
1694
|
+
};
|
|
1695
|
+
}, readonly [Schema.Struct<{
|
|
1696
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1697
|
+
readonly message: Schema.String;
|
|
1698
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1699
|
+
}>], {
|
|
1700
|
+
readonly _tag: "MalformedRequestError";
|
|
1701
|
+
readonly message: string;
|
|
1702
|
+
readonly fields: {
|
|
1703
|
+
readonly [x: string]: readonly string[];
|
|
1704
|
+
};
|
|
1705
|
+
}>, Schema.Struct<{
|
|
1706
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1707
|
+
readonly message: Schema.String;
|
|
1708
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
999
1709
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1000
1710
|
readonly _tag: "ResourceNotFoundError";
|
|
1001
1711
|
readonly resource: string;
|
|
@@ -1057,6 +1767,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1057
1767
|
readonly definition: Schema.Struct<{
|
|
1058
1768
|
readonly instructions: Schema.String;
|
|
1059
1769
|
readonly knowledge: Schema.String;
|
|
1770
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1060
1771
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1061
1772
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1062
1773
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1071,7 +1782,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1071
1782
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1072
1783
|
}>>;
|
|
1073
1784
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1074
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1785
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1786
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1075
1787
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1076
1788
|
readonly timeZone: Schema.String;
|
|
1077
1789
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -1083,6 +1795,12 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1083
1795
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
1084
1796
|
}>;
|
|
1085
1797
|
readonly publishedAt: Schema.String;
|
|
1798
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
1799
|
+
readonly from: Schema.String;
|
|
1800
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1801
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
1802
|
+
readonly since: Schema.String;
|
|
1803
|
+
}>, Schema.Null]>;
|
|
1086
1804
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1087
1805
|
readonly _tag: "ForbiddenError";
|
|
1088
1806
|
readonly message: string;
|
|
@@ -1111,6 +1829,26 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1111
1829
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1112
1830
|
readonly message: Schema.String;
|
|
1113
1831
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1832
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1833
|
+
readonly _tag: "MalformedRequestError";
|
|
1834
|
+
readonly message: string;
|
|
1835
|
+
readonly fields: {
|
|
1836
|
+
readonly [x: string]: readonly string[];
|
|
1837
|
+
};
|
|
1838
|
+
}, readonly [Schema.Struct<{
|
|
1839
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1840
|
+
readonly message: Schema.String;
|
|
1841
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1842
|
+
}>], {
|
|
1843
|
+
readonly _tag: "MalformedRequestError";
|
|
1844
|
+
readonly message: string;
|
|
1845
|
+
readonly fields: {
|
|
1846
|
+
readonly [x: string]: readonly string[];
|
|
1847
|
+
};
|
|
1848
|
+
}>, Schema.Struct<{
|
|
1849
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1850
|
+
readonly message: Schema.String;
|
|
1851
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1114
1852
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1115
1853
|
readonly _tag: "ResourceNotFoundError";
|
|
1116
1854
|
readonly resource: string;
|
|
@@ -1165,7 +1903,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1165
1903
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1166
1904
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"agentsList", "GET", "/v1/agents", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1167
1905
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1168
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1906
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1169
1907
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1170
1908
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1171
1909
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
@@ -1173,6 +1911,9 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1173
1911
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1174
1912
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1175
1913
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1914
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1915
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1916
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1176
1917
|
readonly createdAt: Schema.String;
|
|
1177
1918
|
readonly updatedAt: Schema.String;
|
|
1178
1919
|
}>>;
|
|
@@ -1205,6 +1946,130 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1205
1946
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1206
1947
|
readonly message: Schema.String;
|
|
1207
1948
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1949
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1950
|
+
readonly _tag: "MalformedRequestError";
|
|
1951
|
+
readonly message: string;
|
|
1952
|
+
readonly fields: {
|
|
1953
|
+
readonly [x: string]: readonly string[];
|
|
1954
|
+
};
|
|
1955
|
+
}, readonly [Schema.Struct<{
|
|
1956
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1957
|
+
readonly message: Schema.String;
|
|
1958
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1959
|
+
}>], {
|
|
1960
|
+
readonly _tag: "MalformedRequestError";
|
|
1961
|
+
readonly message: string;
|
|
1962
|
+
readonly fields: {
|
|
1963
|
+
readonly [x: string]: readonly string[];
|
|
1964
|
+
};
|
|
1965
|
+
}>, Schema.Struct<{
|
|
1966
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1967
|
+
readonly message: Schema.String;
|
|
1968
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1969
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1970
|
+
readonly _tag: "UnauthorizedError";
|
|
1971
|
+
readonly message: string;
|
|
1972
|
+
}, readonly [Schema.Struct<{
|
|
1973
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1974
|
+
readonly message: Schema.String;
|
|
1975
|
+
}>], {
|
|
1976
|
+
readonly _tag: "UnauthorizedError";
|
|
1977
|
+
readonly message: string;
|
|
1978
|
+
}>, Schema.Struct<{
|
|
1979
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1980
|
+
readonly message: Schema.String;
|
|
1981
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1982
|
+
readonly _tag: "ValidationError";
|
|
1983
|
+
readonly message: string;
|
|
1984
|
+
readonly fields?: {
|
|
1985
|
+
readonly [x: string]: readonly string[];
|
|
1986
|
+
} | null;
|
|
1987
|
+
}, readonly [Schema.Struct<{
|
|
1988
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1989
|
+
readonly message: Schema.String;
|
|
1990
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1991
|
+
}>], {
|
|
1992
|
+
readonly _tag: "ValidationError";
|
|
1993
|
+
readonly message: string;
|
|
1994
|
+
readonly fields?: {
|
|
1995
|
+
readonly [x: string]: readonly string[];
|
|
1996
|
+
} | null;
|
|
1997
|
+
}>, Schema.Struct<{
|
|
1998
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1999
|
+
readonly message: Schema.String;
|
|
2000
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2001
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"agentsListModels", "GET", "/v1/agents/models", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2002
|
+
readonly replyFeeDollars: Schema.Finite;
|
|
2003
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
2004
|
+
readonly id: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
2005
|
+
readonly name: Schema.String;
|
|
2006
|
+
readonly alias: Schema.Boolean;
|
|
2007
|
+
readonly model: Schema.Struct<{
|
|
2008
|
+
readonly id: Schema.String;
|
|
2009
|
+
readonly name: Schema.String;
|
|
2010
|
+
}>;
|
|
2011
|
+
readonly contextWindow: Schema.Finite;
|
|
2012
|
+
readonly inputModalities: Schema.$Array<Schema.String>;
|
|
2013
|
+
readonly price: Schema.Struct<{
|
|
2014
|
+
readonly inputPerMillionDollars: Schema.Finite;
|
|
2015
|
+
readonly outputPerMillionDollars: Schema.Finite;
|
|
2016
|
+
readonly cacheReadPerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2017
|
+
readonly cacheWritePerMillionDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2018
|
+
}>;
|
|
2019
|
+
readonly reasoning: Schema.$Array<Schema.Struct<{
|
|
2020
|
+
readonly level: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
2021
|
+
readonly typicalReplyDollars: Schema.Finite;
|
|
2022
|
+
}>>;
|
|
2023
|
+
readonly access: Schema.Union<readonly [Schema.Literal<"included">, Schema.Literal<"upgrade">]>;
|
|
2024
|
+
}>>;
|
|
2025
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
2026
|
+
readonly _tag: "ForbiddenError";
|
|
2027
|
+
readonly message: string;
|
|
2028
|
+
}, readonly [Schema.Struct<{
|
|
2029
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
2030
|
+
readonly message: Schema.String;
|
|
2031
|
+
}>], {
|
|
2032
|
+
readonly _tag: "ForbiddenError";
|
|
2033
|
+
readonly message: string;
|
|
2034
|
+
}>, Schema.Struct<{
|
|
2035
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
2036
|
+
readonly message: Schema.String;
|
|
2037
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
2038
|
+
readonly _tag: "GatewayTimeoutError";
|
|
2039
|
+
readonly message: string;
|
|
2040
|
+
readonly retryAfterSeconds: number;
|
|
2041
|
+
}, readonly [Schema.Struct<{
|
|
2042
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2043
|
+
readonly message: Schema.String;
|
|
2044
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
2045
|
+
}>], {
|
|
2046
|
+
readonly _tag: "GatewayTimeoutError";
|
|
2047
|
+
readonly message: string;
|
|
2048
|
+
readonly retryAfterSeconds: number;
|
|
2049
|
+
}>, Schema.Struct<{
|
|
2050
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2051
|
+
readonly message: Schema.String;
|
|
2052
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
2053
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2054
|
+
readonly _tag: "MalformedRequestError";
|
|
2055
|
+
readonly message: string;
|
|
2056
|
+
readonly fields: {
|
|
2057
|
+
readonly [x: string]: readonly string[];
|
|
2058
|
+
};
|
|
2059
|
+
}, readonly [Schema.Struct<{
|
|
2060
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2061
|
+
readonly message: Schema.String;
|
|
2062
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2063
|
+
}>], {
|
|
2064
|
+
readonly _tag: "MalformedRequestError";
|
|
2065
|
+
readonly message: string;
|
|
2066
|
+
readonly fields: {
|
|
2067
|
+
readonly [x: string]: readonly string[];
|
|
2068
|
+
};
|
|
2069
|
+
}>, Schema.Struct<{
|
|
2070
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2071
|
+
readonly message: Schema.String;
|
|
2072
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1208
2073
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1209
2074
|
readonly _tag: "UnauthorizedError";
|
|
1210
2075
|
readonly message: string;
|
|
@@ -1241,7 +2106,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1241
2106
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1242
2107
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1243
2108
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1244
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
2109
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1245
2110
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1246
2111
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1247
2112
|
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
@@ -1277,6 +2142,26 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1277
2142
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1278
2143
|
readonly message: Schema.String;
|
|
1279
2144
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2145
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2146
|
+
readonly _tag: "MalformedRequestError";
|
|
2147
|
+
readonly message: string;
|
|
2148
|
+
readonly fields: {
|
|
2149
|
+
readonly [x: string]: readonly string[];
|
|
2150
|
+
};
|
|
2151
|
+
}, readonly [Schema.Struct<{
|
|
2152
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2153
|
+
readonly message: Schema.String;
|
|
2154
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2155
|
+
}>], {
|
|
2156
|
+
readonly _tag: "MalformedRequestError";
|
|
2157
|
+
readonly message: string;
|
|
2158
|
+
readonly fields: {
|
|
2159
|
+
readonly [x: string]: readonly string[];
|
|
2160
|
+
};
|
|
2161
|
+
}>, Schema.Struct<{
|
|
2162
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2163
|
+
readonly message: Schema.String;
|
|
2164
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1280
2165
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1281
2166
|
readonly _tag: "ResourceNotFoundError";
|
|
1282
2167
|
readonly resource: string;
|
|
@@ -1342,6 +2227,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1342
2227
|
readonly draft: Schema.Struct<{
|
|
1343
2228
|
readonly instructions: Schema.String;
|
|
1344
2229
|
readonly knowledge: Schema.String;
|
|
2230
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1345
2231
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1346
2232
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1347
2233
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1356,7 +2242,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1356
2242
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1357
2243
|
}>>;
|
|
1358
2244
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1359
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2245
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
2246
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1360
2247
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1361
2248
|
readonly timeZone: Schema.String;
|
|
1362
2249
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -1369,6 +2256,14 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1369
2256
|
}>;
|
|
1370
2257
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1371
2258
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2259
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2260
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2261
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2262
|
+
readonly spend: Schema.Struct<{
|
|
2263
|
+
readonly month: Schema.String;
|
|
2264
|
+
readonly spentDollars: Schema.Finite;
|
|
2265
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2266
|
+
}>;
|
|
1372
2267
|
readonly createdAt: Schema.String;
|
|
1373
2268
|
readonly updatedAt: Schema.String;
|
|
1374
2269
|
}>;
|
|
@@ -1378,6 +2273,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1378
2273
|
readonly definition: Schema.Struct<{
|
|
1379
2274
|
readonly instructions: Schema.String;
|
|
1380
2275
|
readonly knowledge: Schema.String;
|
|
2276
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1381
2277
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1382
2278
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1383
2279
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1392,7 +2288,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1392
2288
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1393
2289
|
}>>;
|
|
1394
2290
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1395
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2291
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
2292
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1396
2293
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1397
2294
|
readonly timeZone: Schema.String;
|
|
1398
2295
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -1404,6 +2301,12 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1404
2301
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
1405
2302
|
}>;
|
|
1406
2303
|
readonly publishedAt: Schema.String;
|
|
2304
|
+
readonly modelFallback: Schema.Union<readonly [Schema.Struct<{
|
|
2305
|
+
readonly from: Schema.String;
|
|
2306
|
+
readonly to: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2307
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"candidate">, Schema.Literal<"failed">, Schema.Literal<"retired">, Schema.Literal<"blocked">, Schema.Literal<"missing">]>;
|
|
2308
|
+
readonly since: Schema.String;
|
|
2309
|
+
}>, Schema.Null]>;
|
|
1407
2310
|
}>;
|
|
1408
2311
|
readonly published: Schema.Boolean;
|
|
1409
2312
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
@@ -1454,6 +2357,26 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1454
2357
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1455
2358
|
readonly message: Schema.String;
|
|
1456
2359
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2360
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2361
|
+
readonly _tag: "MalformedRequestError";
|
|
2362
|
+
readonly message: string;
|
|
2363
|
+
readonly fields: {
|
|
2364
|
+
readonly [x: string]: readonly string[];
|
|
2365
|
+
};
|
|
2366
|
+
}, readonly [Schema.Struct<{
|
|
2367
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2368
|
+
readonly message: Schema.String;
|
|
2369
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2370
|
+
}>], {
|
|
2371
|
+
readonly _tag: "MalformedRequestError";
|
|
2372
|
+
readonly message: string;
|
|
2373
|
+
readonly fields: {
|
|
2374
|
+
readonly [x: string]: readonly string[];
|
|
2375
|
+
};
|
|
2376
|
+
}>, Schema.Struct<{
|
|
2377
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2378
|
+
readonly message: Schema.String;
|
|
2379
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1457
2380
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1458
2381
|
readonly _tag: "ResourceNotFoundError";
|
|
1459
2382
|
readonly resource: string;
|
|
@@ -1539,6 +2462,26 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1539
2462
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1540
2463
|
readonly message: Schema.String;
|
|
1541
2464
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2465
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2466
|
+
readonly _tag: "MalformedRequestError";
|
|
2467
|
+
readonly message: string;
|
|
2468
|
+
readonly fields: {
|
|
2469
|
+
readonly [x: string]: readonly string[];
|
|
2470
|
+
};
|
|
2471
|
+
}, readonly [Schema.Struct<{
|
|
2472
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2473
|
+
readonly message: Schema.String;
|
|
2474
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2475
|
+
}>], {
|
|
2476
|
+
readonly _tag: "MalformedRequestError";
|
|
2477
|
+
readonly message: string;
|
|
2478
|
+
readonly fields: {
|
|
2479
|
+
readonly [x: string]: readonly string[];
|
|
2480
|
+
};
|
|
2481
|
+
}>, Schema.Struct<{
|
|
2482
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2483
|
+
readonly message: Schema.String;
|
|
2484
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1542
2485
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1543
2486
|
readonly _tag: "ResourceNotFoundError";
|
|
1544
2487
|
readonly resource: string;
|
|
@@ -1598,6 +2541,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1598
2541
|
readonly definition: Schema.Struct<{
|
|
1599
2542
|
readonly instructions: Schema.String;
|
|
1600
2543
|
readonly knowledge: Schema.String;
|
|
2544
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1601
2545
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1602
2546
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1603
2547
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1612,7 +2556,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1612
2556
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1613
2557
|
}>>;
|
|
1614
2558
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1615
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2559
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
2560
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1616
2561
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1617
2562
|
readonly timeZone: Schema.String;
|
|
1618
2563
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -1631,6 +2576,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1631
2576
|
readonly draft: Schema.Struct<{
|
|
1632
2577
|
readonly instructions: Schema.String;
|
|
1633
2578
|
readonly knowledge: Schema.String;
|
|
2579
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1634
2580
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1635
2581
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1636
2582
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1645,7 +2591,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1645
2591
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1646
2592
|
}>>;
|
|
1647
2593
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1648
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2594
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
2595
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1649
2596
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1650
2597
|
readonly timeZone: Schema.String;
|
|
1651
2598
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -1658,6 +2605,14 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1658
2605
|
}>;
|
|
1659
2606
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1660
2607
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2608
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2609
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2610
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2611
|
+
readonly spend: Schema.Struct<{
|
|
2612
|
+
readonly month: Schema.String;
|
|
2613
|
+
readonly spentDollars: Schema.Finite;
|
|
2614
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2615
|
+
}>;
|
|
1661
2616
|
readonly createdAt: Schema.String;
|
|
1662
2617
|
readonly updatedAt: Schema.String;
|
|
1663
2618
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
@@ -1708,6 +2663,50 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1708
2663
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1709
2664
|
readonly message: Schema.String;
|
|
1710
2665
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2666
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2667
|
+
readonly _tag: "MalformedRequestError";
|
|
2668
|
+
readonly message: string;
|
|
2669
|
+
readonly fields: {
|
|
2670
|
+
readonly [x: string]: readonly string[];
|
|
2671
|
+
};
|
|
2672
|
+
}, readonly [Schema.Struct<{
|
|
2673
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2674
|
+
readonly message: Schema.String;
|
|
2675
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2676
|
+
}>], {
|
|
2677
|
+
readonly _tag: "MalformedRequestError";
|
|
2678
|
+
readonly message: string;
|
|
2679
|
+
readonly fields: {
|
|
2680
|
+
readonly [x: string]: readonly string[];
|
|
2681
|
+
};
|
|
2682
|
+
}>, Schema.Struct<{
|
|
2683
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2684
|
+
readonly message: Schema.String;
|
|
2685
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2686
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
2687
|
+
readonly _tag: "PaymentRequiredError";
|
|
2688
|
+
readonly message: string;
|
|
2689
|
+
readonly resource: string;
|
|
2690
|
+
readonly currentUsage: number;
|
|
2691
|
+
readonly limit: number;
|
|
2692
|
+
}, readonly [Schema.Struct<{
|
|
2693
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
2694
|
+
readonly message: Schema.String;
|
|
2695
|
+
readonly resource: Schema.String;
|
|
2696
|
+
readonly currentUsage: Schema.Finite;
|
|
2697
|
+
readonly limit: Schema.Finite;
|
|
2698
|
+
}>], {
|
|
2699
|
+
readonly _tag: "PaymentRequiredError";
|
|
2700
|
+
readonly message: string;
|
|
2701
|
+
readonly resource: string;
|
|
2702
|
+
readonly currentUsage: number;
|
|
2703
|
+
readonly limit: number;
|
|
2704
|
+
}>, Schema.Struct<{
|
|
2705
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
2706
|
+
readonly message: Schema.String;
|
|
2707
|
+
readonly resource: Schema.String;
|
|
2708
|
+
readonly currentUsage: Schema.Finite;
|
|
2709
|
+
readonly limit: Schema.Finite;
|
|
1711
2710
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1712
2711
|
readonly _tag: "ResourceNotFoundError";
|
|
1713
2712
|
readonly resource: string;
|
|
@@ -1763,7 +2762,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1763
2762
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"agentsUpdate", "PATCH", "/v1/agents/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1764
2763
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1765
2764
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1766
|
-
readonly name: Schema.String
|
|
2765
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2766
|
+
readonly monthlySpendCapDollars: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1767
2767
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1768
2768
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1769
2769
|
readonly name: Schema.String;
|
|
@@ -1772,6 +2772,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1772
2772
|
readonly draft: Schema.Struct<{
|
|
1773
2773
|
readonly instructions: Schema.String;
|
|
1774
2774
|
readonly knowledge: Schema.String;
|
|
2775
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
1775
2776
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1776
2777
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1777
2778
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1786,7 +2787,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1786
2787
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1787
2788
|
}>>;
|
|
1788
2789
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1789
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2790
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
2791
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
1790
2792
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
1791
2793
|
readonly timeZone: Schema.String;
|
|
1792
2794
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -1799,6 +2801,14 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1799
2801
|
}>;
|
|
1800
2802
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1801
2803
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2804
|
+
readonly pausedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2805
|
+
readonly creditsPausedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2806
|
+
readonly monthlySpendCapDollars: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
2807
|
+
readonly spend: Schema.Struct<{
|
|
2808
|
+
readonly month: Schema.String;
|
|
2809
|
+
readonly spentDollars: Schema.Finite;
|
|
2810
|
+
readonly capReachedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2811
|
+
}>;
|
|
1802
2812
|
readonly createdAt: Schema.String;
|
|
1803
2813
|
readonly updatedAt: Schema.String;
|
|
1804
2814
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -1829,6 +2839,26 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1829
2839
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1830
2840
|
readonly message: Schema.String;
|
|
1831
2841
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2842
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2843
|
+
readonly _tag: "MalformedRequestError";
|
|
2844
|
+
readonly message: string;
|
|
2845
|
+
readonly fields: {
|
|
2846
|
+
readonly [x: string]: readonly string[];
|
|
2847
|
+
};
|
|
2848
|
+
}, readonly [Schema.Struct<{
|
|
2849
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2850
|
+
readonly message: Schema.String;
|
|
2851
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2852
|
+
}>], {
|
|
2853
|
+
readonly _tag: "MalformedRequestError";
|
|
2854
|
+
readonly message: string;
|
|
2855
|
+
readonly fields: {
|
|
2856
|
+
readonly [x: string]: readonly string[];
|
|
2857
|
+
};
|
|
2858
|
+
}>, Schema.Struct<{
|
|
2859
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2860
|
+
readonly message: Schema.String;
|
|
2861
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1832
2862
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1833
2863
|
readonly _tag: "ResourceNotFoundError";
|
|
1834
2864
|
readonly resource: string;
|