samva 0.37.0 → 0.39.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/AGENTS.md +1 -2
- package/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +17 -32
- package/dist/client/sdk.gen.js +9 -5
- package/dist/client/types.gen.d.ts +87 -83
- package/dist/effect/agents.d.ts +3 -0
- package/dist/effect/campaigns.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -12
- package/dist/effect/generated/agents.d.ts +54 -31
- package/dist/effect/generated/agents.js +17 -14
- package/dist/effect/generated/campaigns.d.ts +29 -29
- package/dist/effect/generated/campaigns.js +6 -3
- package/dist/effect/generated/contacts.d.ts +266 -168
- package/dist/effect/generated/contacts.js +86 -61
- package/dist/effect/generated/email.js +6 -6
- package/dist/effect/generated/mailboxes.js +1 -1
- package/dist/effect/generated/messages.js +1 -1
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +51 -2
- package/dist/effect/generated/scheduled-messages.js +25 -6
- package/dist/effect/generated/shared.d.ts +25 -11
- package/dist/effect/generated/shared.js +24 -17
- package/dist/effect/generated/subscriptions.js +3 -3
- package/dist/effect/generated/templates.d.ts +10 -2
- package/dist/effect/generated/templates.js +8 -4
- package/dist/effect/generated/topics.d.ts +4 -0
- package/dist/effect/generated/topics.js +5 -2
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
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, AgentId, AgentModel, AgentModelChoice, AgentName, AgentReasoning, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
5
5
|
export type AgentSpend = {
|
|
6
6
|
readonly month: string;
|
|
7
7
|
readonly spentDollars: number;
|
|
@@ -44,9 +44,28 @@ export declare const AgentModelPrice: Schema.Struct<{
|
|
|
44
44
|
}>;
|
|
45
45
|
export type AgentModelAccess = "included" | "upgrade";
|
|
46
46
|
export declare const AgentModelAccess: Schema.Union<readonly [Schema.Literal<"included">, Schema.Literal<"upgrade">]>;
|
|
47
|
+
export type DeleteAgentResponse = {
|
|
48
|
+
readonly id: AgentId;
|
|
49
|
+
readonly deleted: true;
|
|
50
|
+
};
|
|
51
|
+
export declare const DeleteAgentResponse: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
53
|
+
readonly deleted: Schema.Literal<true>;
|
|
54
|
+
}>;
|
|
55
|
+
export type AgentVersionSummary = {
|
|
56
|
+
readonly agentId: AgentId;
|
|
57
|
+
readonly version: number;
|
|
58
|
+
readonly publishedAt: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const AgentVersionSummary: Schema.Struct<{
|
|
61
|
+
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
62
|
+
readonly version: Schema.Finite;
|
|
63
|
+
readonly publishedAt: Schema.String;
|
|
64
|
+
}>;
|
|
47
65
|
export type AgentListItem = {
|
|
48
66
|
readonly id: AgentId;
|
|
49
67
|
readonly name: string;
|
|
68
|
+
readonly setupJob: AgentSetupJob | null;
|
|
50
69
|
readonly namespaceId: NamespaceId | null;
|
|
51
70
|
readonly publishedVersion: number | null;
|
|
52
71
|
readonly publishedAt: string | null;
|
|
@@ -59,6 +78,7 @@ export type AgentListItem = {
|
|
|
59
78
|
export declare const AgentListItem: Schema.Struct<{
|
|
60
79
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
61
80
|
readonly name: Schema.String;
|
|
81
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
62
82
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
63
83
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
64
84
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -68,24 +88,6 @@ export declare const AgentListItem: Schema.Struct<{
|
|
|
68
88
|
readonly createdAt: Schema.String;
|
|
69
89
|
readonly updatedAt: Schema.String;
|
|
70
90
|
}>;
|
|
71
|
-
export type DeleteAgentResponse = {
|
|
72
|
-
readonly id: AgentId;
|
|
73
|
-
readonly deleted: true;
|
|
74
|
-
};
|
|
75
|
-
export declare const DeleteAgentResponse: Schema.Struct<{
|
|
76
|
-
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
77
|
-
readonly deleted: Schema.Literal<true>;
|
|
78
|
-
}>;
|
|
79
|
-
export type AgentVersionSummary = {
|
|
80
|
-
readonly agentId: AgentId;
|
|
81
|
-
readonly version: number;
|
|
82
|
-
readonly publishedAt: string;
|
|
83
|
-
};
|
|
84
|
-
export declare const AgentVersionSummary: Schema.Struct<{
|
|
85
|
-
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
86
|
-
readonly version: Schema.Finite;
|
|
87
|
-
readonly publishedAt: Schema.String;
|
|
88
|
-
}>;
|
|
89
91
|
export type AgentModelReasoning = {
|
|
90
92
|
readonly level: AgentReasoning;
|
|
91
93
|
readonly typicalReplyDollars: number;
|
|
@@ -140,6 +142,18 @@ export declare const AgentTestRerun: Schema.Struct<{
|
|
|
140
142
|
}>>;
|
|
141
143
|
}>>;
|
|
142
144
|
}>;
|
|
145
|
+
export type AgentVersionPage = {
|
|
146
|
+
readonly items: ReadonlyArray<AgentVersionSummary>;
|
|
147
|
+
readonly nextCursor: string | null;
|
|
148
|
+
};
|
|
149
|
+
export declare const AgentVersionPage: Schema.Struct<{
|
|
150
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
151
|
+
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
152
|
+
readonly version: Schema.Finite;
|
|
153
|
+
readonly publishedAt: Schema.String;
|
|
154
|
+
}>>;
|
|
155
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
156
|
+
}>;
|
|
143
157
|
export type AgentPage = {
|
|
144
158
|
readonly items: ReadonlyArray<AgentListItem>;
|
|
145
159
|
readonly nextCursor: string | null;
|
|
@@ -148,6 +162,7 @@ export declare const AgentPage: Schema.Struct<{
|
|
|
148
162
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
149
163
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
150
164
|
readonly name: Schema.String;
|
|
165
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
151
166
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
152
167
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
153
168
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -159,18 +174,6 @@ export declare const AgentPage: Schema.Struct<{
|
|
|
159
174
|
}>>;
|
|
160
175
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
161
176
|
}>;
|
|
162
|
-
export type AgentVersionPage = {
|
|
163
|
-
readonly items: ReadonlyArray<AgentVersionSummary>;
|
|
164
|
-
readonly nextCursor: string | null;
|
|
165
|
-
};
|
|
166
|
-
export declare const AgentVersionPage: Schema.Struct<{
|
|
167
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
168
|
-
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
169
|
-
readonly version: Schema.Finite;
|
|
170
|
-
readonly publishedAt: Schema.String;
|
|
171
|
-
}>>;
|
|
172
|
-
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
173
|
-
}>;
|
|
174
177
|
export type AgentModelOption = {
|
|
175
178
|
readonly id: AgentModelChoice;
|
|
176
179
|
readonly name: string;
|
|
@@ -239,6 +242,7 @@ export declare const AgentModelCatalog: Schema.Struct<{
|
|
|
239
242
|
export type Agent = {
|
|
240
243
|
readonly id: AgentId;
|
|
241
244
|
readonly name: string;
|
|
245
|
+
readonly setupJob: AgentSetupJob | null;
|
|
242
246
|
readonly namespaceId: NamespaceId | null;
|
|
243
247
|
readonly revision: string;
|
|
244
248
|
readonly draft: AgentDefinition;
|
|
@@ -254,6 +258,7 @@ export type Agent = {
|
|
|
254
258
|
export declare const Agent: Schema.Struct<{
|
|
255
259
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
256
260
|
readonly name: Schema.String;
|
|
261
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
257
262
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
258
263
|
readonly revision: Schema.String;
|
|
259
264
|
readonly draft: Schema.Struct<{
|
|
@@ -458,6 +463,7 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
458
463
|
readonly agent: Schema.Struct<{
|
|
459
464
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
460
465
|
readonly name: Schema.String;
|
|
466
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
461
467
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
462
468
|
readonly revision: Schema.String;
|
|
463
469
|
readonly draft: Schema.Struct<{
|
|
@@ -663,6 +669,7 @@ export declare const AgentsList200: Schema.Struct<{
|
|
|
663
669
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
664
670
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
665
671
|
readonly name: Schema.String;
|
|
672
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
666
673
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
667
674
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
668
675
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -688,11 +695,13 @@ export type AgentsList504 = GatewayTimeoutError;
|
|
|
688
695
|
export declare const AgentsList504: typeof GatewayTimeoutError;
|
|
689
696
|
export type AgentsCreateRequestJson = {
|
|
690
697
|
readonly name: AgentName;
|
|
698
|
+
readonly setupJob?: AgentSetupJob | null;
|
|
691
699
|
readonly namespaceId?: NamespaceId | null;
|
|
692
700
|
readonly definition?: AgentDefinition | null;
|
|
693
701
|
};
|
|
694
702
|
export declare const AgentsCreateRequestJson: Schema.Struct<{
|
|
695
703
|
readonly name: Schema.String;
|
|
704
|
+
readonly setupJob: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>>;
|
|
696
705
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
697
706
|
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
698
707
|
readonly instructions: Schema.String;
|
|
@@ -780,6 +789,7 @@ export type AgentsCreate201 = Agent;
|
|
|
780
789
|
export declare const AgentsCreate201: Schema.Struct<{
|
|
781
790
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
782
791
|
readonly name: Schema.String;
|
|
792
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
783
793
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
784
794
|
readonly revision: Schema.String;
|
|
785
795
|
readonly draft: Schema.Struct<{
|
|
@@ -902,6 +912,7 @@ export type AgentsGet200 = Agent;
|
|
|
902
912
|
export declare const AgentsGet200: Schema.Struct<{
|
|
903
913
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
904
914
|
readonly name: Schema.String;
|
|
915
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
905
916
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
906
917
|
readonly revision: Schema.String;
|
|
907
918
|
readonly draft: Schema.Struct<{
|
|
@@ -1055,6 +1066,7 @@ export type AgentsUpdate200 = Agent;
|
|
|
1055
1066
|
export declare const AgentsUpdate200: Schema.Struct<{
|
|
1056
1067
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1057
1068
|
readonly name: Schema.String;
|
|
1069
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
1058
1070
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1059
1071
|
readonly revision: Schema.String;
|
|
1060
1072
|
readonly draft: Schema.Struct<{
|
|
@@ -1176,6 +1188,7 @@ export declare const AgentsContinueOnStandard200: Schema.Struct<{
|
|
|
1176
1188
|
readonly agent: Schema.Struct<{
|
|
1177
1189
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1178
1190
|
readonly name: Schema.String;
|
|
1191
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
1179
1192
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1180
1193
|
readonly revision: Schema.String;
|
|
1181
1194
|
readonly draft: Schema.Struct<{
|
|
@@ -1480,6 +1493,7 @@ export type AgentsReplaceDraft200 = Agent;
|
|
|
1480
1493
|
export declare const AgentsReplaceDraft200: Schema.Struct<{
|
|
1481
1494
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1482
1495
|
readonly name: Schema.String;
|
|
1496
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
1483
1497
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1484
1498
|
readonly revision: Schema.String;
|
|
1485
1499
|
readonly draft: Schema.Struct<{
|
|
@@ -1611,6 +1625,7 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
1611
1625
|
readonly agent: Schema.Struct<{
|
|
1612
1626
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1613
1627
|
readonly name: Schema.String;
|
|
1628
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
1614
1629
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1615
1630
|
readonly revision: Schema.String;
|
|
1616
1631
|
readonly draft: Schema.Struct<{
|
|
@@ -2148,6 +2163,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
2148
2163
|
readonly agent: Schema.Struct<{
|
|
2149
2164
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2150
2165
|
readonly name: Schema.String;
|
|
2166
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
2151
2167
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2152
2168
|
readonly revision: Schema.String;
|
|
2153
2169
|
readonly draft: Schema.Struct<{
|
|
@@ -2459,6 +2475,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
2459
2475
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2460
2476
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"agentsCreate", "POST", "/v1/agents", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2461
2477
|
readonly name: Schema.String;
|
|
2478
|
+
readonly setupJob: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>>;
|
|
2462
2479
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2463
2480
|
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2464
2481
|
readonly instructions: Schema.String;
|
|
@@ -2544,6 +2561,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
2544
2561
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2545
2562
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2546
2563
|
readonly name: Schema.String;
|
|
2564
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
2547
2565
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2548
2566
|
readonly revision: Schema.String;
|
|
2549
2567
|
readonly draft: Schema.Struct<{
|
|
@@ -2768,6 +2786,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
2768
2786
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2769
2787
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2770
2788
|
readonly name: Schema.String;
|
|
2789
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
2771
2790
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2772
2791
|
readonly revision: Schema.String;
|
|
2773
2792
|
readonly draft: Schema.Struct<{
|
|
@@ -3165,6 +3184,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
3165
3184
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3166
3185
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
3167
3186
|
readonly name: Schema.String;
|
|
3187
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
3168
3188
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3169
3189
|
readonly publishedVersion: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
3170
3190
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3479,6 +3499,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
3479
3499
|
readonly agent: Schema.Struct<{
|
|
3480
3500
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
3481
3501
|
readonly name: Schema.String;
|
|
3502
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
3482
3503
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3483
3504
|
readonly revision: Schema.String;
|
|
3484
3505
|
readonly draft: Schema.Struct<{
|
|
@@ -3981,6 +4002,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
3981
4002
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3982
4003
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
3983
4004
|
readonly name: Schema.String;
|
|
4005
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
3984
4006
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3985
4007
|
readonly revision: Schema.String;
|
|
3986
4008
|
readonly draft: Schema.Struct<{
|
|
@@ -4438,6 +4460,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
4438
4460
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4439
4461
|
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4440
4462
|
readonly name: Schema.String;
|
|
4463
|
+
readonly setupJob: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"support">, Schema.Literal<"store">, Schema.Literal<"booking">]>, Schema.Null]>;
|
|
4441
4464
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4442
4465
|
readonly revision: Schema.String;
|
|
4443
4466
|
readonly draft: Schema.Struct<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentName, AgentReasoning, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
1
|
+
import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/agents.ts
|
|
@@ -41,9 +41,19 @@ const AgentModelPrice = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
41
41
|
cacheWritePerMillionDollars: Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])
|
|
42
42
|
}).annotate({ identifier: "AgentModelPrice" }))();
|
|
43
43
|
const AgentModelAccess = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("included"), Schema.Literal("upgrade")]).annotate({ identifier: "AgentModelAccess" }))();
|
|
44
|
+
const DeleteAgentResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
45
|
+
id: AgentId,
|
|
46
|
+
deleted: Schema.Literal(true)
|
|
47
|
+
}).annotate({ identifier: "DeleteAgentResponse" }))();
|
|
48
|
+
const AgentVersionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
49
|
+
agentId: AgentId,
|
|
50
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
51
|
+
publishedAt: Schema.String
|
|
52
|
+
}).annotate({ identifier: "AgentVersionSummary" }))();
|
|
44
53
|
const AgentListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
45
54
|
id: AgentId,
|
|
46
55
|
name: Schema.String,
|
|
56
|
+
setupJob: Schema.Union([AgentSetupJob, Schema.Null]),
|
|
47
57
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
48
58
|
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
49
59
|
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -53,15 +63,6 @@ const AgentListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
53
63
|
createdAt: Schema.String,
|
|
54
64
|
updatedAt: Schema.String
|
|
55
65
|
}).annotate({ identifier: "AgentListItem" }))();
|
|
56
|
-
const DeleteAgentResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
57
|
-
id: AgentId,
|
|
58
|
-
deleted: Schema.Literal(true)
|
|
59
|
-
}).annotate({ identifier: "DeleteAgentResponse" }))();
|
|
60
|
-
const AgentVersionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
61
|
-
agentId: AgentId,
|
|
62
|
-
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
63
|
-
publishedAt: Schema.String
|
|
64
|
-
}).annotate({ identifier: "AgentVersionSummary" }))();
|
|
65
66
|
const AgentModelReasoning = /* @__PURE__ */ (() => Schema.Struct({
|
|
66
67
|
level: AgentReasoning,
|
|
67
68
|
typicalReplyDollars: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
@@ -78,14 +79,14 @@ const AgentTestRerun = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Arra
|
|
|
78
79
|
draftDecisions: Schema.Array(AgentTestDecision).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
79
80
|
changedDecisions: Schema.Array(AgentTestDecision).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))
|
|
80
81
|
})) }).annotate({ identifier: "AgentTestRerun" }))();
|
|
81
|
-
const AgentPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
82
|
-
items: Schema.Array(AgentListItem),
|
|
83
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
84
|
-
}).annotate({ identifier: "AgentPage" }))();
|
|
85
82
|
const AgentVersionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
86
83
|
items: Schema.Array(AgentVersionSummary),
|
|
87
84
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
88
85
|
}).annotate({ identifier: "AgentVersionPage" }))();
|
|
86
|
+
const AgentPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
87
|
+
items: Schema.Array(AgentListItem),
|
|
88
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
89
|
+
}).annotate({ identifier: "AgentPage" }))();
|
|
89
90
|
const AgentModelOption = /* @__PURE__ */ (() => Schema.Struct({
|
|
90
91
|
id: AgentModelChoice,
|
|
91
92
|
name: Schema.String,
|
|
@@ -107,6 +108,7 @@ const AgentModelCatalog = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
107
108
|
const Agent = /* @__PURE__ */ (() => Schema.Struct({
|
|
108
109
|
id: AgentId,
|
|
109
110
|
name: Schema.String,
|
|
111
|
+
setupJob: Schema.Union([AgentSetupJob, Schema.Null]),
|
|
110
112
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
111
113
|
revision: Schema.String,
|
|
112
114
|
draft: AgentDefinition,
|
|
@@ -145,6 +147,7 @@ const AgentsList500 = InternalError;
|
|
|
145
147
|
const AgentsList504 = GatewayTimeoutError;
|
|
146
148
|
const AgentsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
147
149
|
name: AgentName,
|
|
150
|
+
setupJob: Schema.optionalKey(Schema.Union([AgentSetupJob, Schema.Null]).annotate({ description: "What the agent mostly does: support answers customer questions, store helps shoppers, and booking handles appointments. Omit when no job is stated. Returned as setupJob on the agent; it does not change the supplied definition." })),
|
|
148
151
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the agent belongs to; it cannot move later. Omit for an organization-level agent. A namespace-scoped key always creates in its own namespace." })),
|
|
149
152
|
definition: Schema.optionalKey(Schema.Union([AgentDefinition, Schema.Null]).annotate({
|
|
150
153
|
description: "The first draft. Defaults to an agent with no instructions, knowledge, or endpoints, the default action policy, and the standard model at auto reasoning.",
|