samva 0.46.0 → 0.47.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 +13 -7
- package/README.md +107 -9
- package/dist/agent/index.d.ts +56 -0
- package/dist/agent/index.js +52 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +74 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +123 -0
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +41 -161
- package/dist/client/sdk.gen.js +1302 -1598
- package/dist/client/types.gen.d.ts +377 -966
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/accounts.js +2 -1
- package/dist/effect/agents.d.ts +355 -23
- package/dist/effect/agents.js +6 -3
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/approval-requests.js +2 -1
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +205 -205
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +41 -33
- package/dist/effect/contacts.js +8 -3
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +129 -0
- package/dist/effect/descriptors/agents.js +127 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +246 -0
- package/dist/effect/descriptors/contacts.js +234 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +19 -9
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +13 -13
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +230 -230
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +907 -49
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/conversations.d.ts +1 -1
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +84 -88
- package/dist/effect/generated/integrations-catalog.d.ts +3 -3
- package/dist/effect/generated/integrations.d.ts +15 -15
- package/dist/effect/generated/journeys.d.ts +336 -96
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +1 -1
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +147 -147
- package/dist/effect/generated/shared.d.ts +408 -102
- package/dist/effect/generated/shared.js +80 -36
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -4
- package/dist/effect/generated/template-registrations.js +2 -6
- package/dist/effect/generated/template-share-links.d.ts +1 -1
- package/dist/effect/generated/templates.d.ts +1 -1
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +45 -47
- package/dist/effect/index.js +1 -3
- package/dist/effect/integrations-catalog.d.ts +3 -3
- package/dist/effect/integrations-catalog.js +2 -1
- package/dist/effect/integrations.d.ts +11 -11
- package/dist/effect/integrations.js +2 -1
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +25 -22
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +46 -22
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +163 -163
- package/dist/effect/mailboxes.js +2 -1
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +371 -371
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/template-share-links.js +2 -1
- package/dist/effect/templates.d.ts +46 -46
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +13 -13
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +10 -14
- package/dist/promises/client.js +3 -7
- package/dist/promises/errors.gen.d.ts +1 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/dist/service-map.d.ts +18 -75
- package/package.json +17 -29
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -28
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -20
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
- package/dist/service-map.js +0 -830
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
1
|
+
import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, 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
|
|
@@ -45,11 +45,6 @@ const DeleteAgentResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
45
45
|
id: AgentId,
|
|
46
46
|
deleted: Schema.Literal(true)
|
|
47
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" }))();
|
|
53
48
|
const AgentListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
54
49
|
id: AgentId,
|
|
55
50
|
name: Schema.String,
|
|
@@ -79,10 +74,6 @@ const AgentTestRerun = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Arra
|
|
|
79
74
|
draftDecisions: Schema.Array(AgentTestDecision).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
80
75
|
changedDecisions: Schema.Array(AgentTestDecision).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))
|
|
81
76
|
})) }).annotate({ identifier: "AgentTestRerun" }))();
|
|
82
|
-
const AgentVersionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
83
|
-
items: Schema.Array(AgentVersionSummary),
|
|
84
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
85
|
-
}).annotate({ identifier: "AgentVersionPage" }))();
|
|
86
77
|
const AgentPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
87
78
|
items: Schema.Array(AgentListItem),
|
|
88
79
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -121,18 +112,36 @@ const Agent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
121
112
|
createdAt: Schema.String,
|
|
122
113
|
updatedAt: Schema.String
|
|
123
114
|
}).annotate({ identifier: "Agent" }))();
|
|
115
|
+
const AgentBundle = /* @__PURE__ */ (() => Schema.Struct({
|
|
116
|
+
sha256: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
117
|
+
sizeBytes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(1048576).annotate({ expected: "a value less than or equal to 1048576" })),
|
|
118
|
+
manifest: AgentModuleManifest
|
|
119
|
+
}).annotate({ identifier: "AgentBundle" }))();
|
|
124
120
|
const AgentVersion = /* @__PURE__ */ (() => Schema.Struct({
|
|
125
121
|
agentId: AgentId,
|
|
126
122
|
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" })),
|
|
127
123
|
definition: AgentDefinition,
|
|
124
|
+
bundle: AgentBundle,
|
|
125
|
+
authoring: Schema.Union([Schema.Literal("builder"), Schema.Literal("code")]),
|
|
128
126
|
publishedAt: Schema.String,
|
|
129
127
|
modelFallback: Schema.Union([AgentModelFallback, Schema.Null])
|
|
130
128
|
}).annotate({ identifier: "AgentVersion" }))();
|
|
129
|
+
const AgentVersionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
130
|
+
agentId: AgentId,
|
|
131
|
+
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" })),
|
|
132
|
+
bundle: AgentBundle,
|
|
133
|
+
authoring: Schema.Union([Schema.Literal("builder"), Schema.Literal("code")]),
|
|
134
|
+
publishedAt: Schema.String
|
|
135
|
+
}).annotate({ identifier: "AgentVersionSummary" }))();
|
|
131
136
|
const PublishAgentResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
132
137
|
agent: Agent,
|
|
133
138
|
version: AgentVersion,
|
|
134
139
|
published: Schema.Boolean
|
|
135
140
|
}).annotate({ identifier: "PublishAgentResponse" }))();
|
|
141
|
+
const AgentVersionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
142
|
+
items: Schema.Array(AgentVersionSummary),
|
|
143
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
144
|
+
}).annotate({ identifier: "AgentVersionPage" }))();
|
|
136
145
|
const AgentsListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
137
146
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
138
147
|
cursor: Schema.optionalKey(Schema.String),
|
|
@@ -253,6 +262,7 @@ const AgentsPublishRequestJson = /* @__PURE__ */ (() => Schema.Struct({ revision
|
|
|
253
262
|
const AgentsPublish200 = PublishAgentResponse;
|
|
254
263
|
const AgentsPublish400 = MalformedRequestError;
|
|
255
264
|
const AgentsPublish401 = UnauthorizedError;
|
|
265
|
+
const AgentsPublish402 = PaymentRequiredError;
|
|
256
266
|
const AgentsPublish403 = ForbiddenError;
|
|
257
267
|
const AgentsPublish404 = ResourceNotFoundError;
|
|
258
268
|
const AgentsPublish409 = ConflictError;
|
|
@@ -285,6 +295,21 @@ const AgentsListVersions404 = ResourceNotFoundError;
|
|
|
285
295
|
const AgentsListVersions422 = ValidationError;
|
|
286
296
|
const AgentsListVersions500 = InternalError;
|
|
287
297
|
const AgentsListVersions504 = GatewayTimeoutError;
|
|
298
|
+
const AgentsPublishVersionPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
|
|
299
|
+
const AgentsPublishVersionRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
300
|
+
revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
301
|
+
bundle: AgentModuleBundle
|
|
302
|
+
}))();
|
|
303
|
+
const AgentsPublishVersion200 = PublishAgentResponse;
|
|
304
|
+
const AgentsPublishVersion400 = MalformedRequestError;
|
|
305
|
+
const AgentsPublishVersion401 = UnauthorizedError;
|
|
306
|
+
const AgentsPublishVersion402 = PaymentRequiredError;
|
|
307
|
+
const AgentsPublishVersion403 = ForbiddenError;
|
|
308
|
+
const AgentsPublishVersion404 = ResourceNotFoundError;
|
|
309
|
+
const AgentsPublishVersion409 = ConflictError;
|
|
310
|
+
const AgentsPublishVersion422 = ValidationError;
|
|
311
|
+
const AgentsPublishVersion500 = InternalError;
|
|
312
|
+
const AgentsPublishVersion504 = GatewayTimeoutError;
|
|
288
313
|
const AgentsGetVersionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
289
314
|
id: AgentId,
|
|
290
315
|
version: Schema.String
|
|
@@ -400,6 +425,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
400
425
|
error: [
|
|
401
426
|
AgentsPublish400.pipe(HttpApiSchema.status(400)),
|
|
402
427
|
AgentsPublish401.pipe(HttpApiSchema.status(401)),
|
|
428
|
+
AgentsPublish402.pipe(HttpApiSchema.status(402)),
|
|
403
429
|
AgentsPublish403.pipe(HttpApiSchema.status(403)),
|
|
404
430
|
AgentsPublish404.pipe(HttpApiSchema.status(404)),
|
|
405
431
|
AgentsPublish409.pipe(HttpApiSchema.status(409)),
|
|
@@ -433,7 +459,22 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
433
459
|
AgentsListVersions500,
|
|
434
460
|
AgentsListVersions504.pipe(HttpApiSchema.status(504))
|
|
435
461
|
]
|
|
436
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listVersions").annotate(OpenApi.Summary, "List published agent versions").annotate(OpenApi.Description, "Returns an agent's published versions, newest first, without their definitions. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.
|
|
462
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listVersions").annotate(OpenApi.Summary, "List published agent versions").annotate(OpenApi.Description, "Returns an agent's published versions, newest first, without their definitions. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.post("agentsPublishVersion", "/v1/agents/:id/versions", {
|
|
463
|
+
params: AgentsPublishVersionPathParams,
|
|
464
|
+
payload: AgentsPublishVersionRequestJson,
|
|
465
|
+
success: AgentsPublishVersion200,
|
|
466
|
+
error: [
|
|
467
|
+
AgentsPublishVersion400.pipe(HttpApiSchema.status(400)),
|
|
468
|
+
AgentsPublishVersion401.pipe(HttpApiSchema.status(401)),
|
|
469
|
+
AgentsPublishVersion402.pipe(HttpApiSchema.status(402)),
|
|
470
|
+
AgentsPublishVersion403.pipe(HttpApiSchema.status(403)),
|
|
471
|
+
AgentsPublishVersion404.pipe(HttpApiSchema.status(404)),
|
|
472
|
+
AgentsPublishVersion409.pipe(HttpApiSchema.status(409)),
|
|
473
|
+
AgentsPublishVersion422.pipe(HttpApiSchema.status(422)),
|
|
474
|
+
AgentsPublishVersion500,
|
|
475
|
+
AgentsPublishVersion504.pipe(HttpApiSchema.status(504))
|
|
476
|
+
]
|
|
477
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."), HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
|
|
437
478
|
params: AgentsGetVersionPathParams,
|
|
438
479
|
success: AgentsGetVersion200,
|
|
439
480
|
error: [
|
|
@@ -445,7 +486,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
445
486
|
AgentsGetVersion500,
|
|
446
487
|
AgentsGetVersion504.pipe(HttpApiSchema.status(504))
|
|
447
488
|
]
|
|
448
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.getVersion").annotate(OpenApi.Summary, "Get a published agent version").annotate(OpenApi.Description, "Returns the immutable definition of one published version."), HttpApiEndpoint.get("agentsListModels", "/v1/agents/models", {
|
|
489
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.getVersion").annotate(OpenApi.Summary, "Get a published agent version").annotate(OpenApi.Description, "Returns the immutable definition and bundle digest, size, and manifest of one published version."), HttpApiEndpoint.get("agentsListModels", "/v1/agents/models", {
|
|
449
490
|
success: AgentsListModels200,
|
|
450
491
|
error: [
|
|
451
492
|
AgentsListModels400.pipe(HttpApiSchema.status(400)),
|
|
@@ -456,6 +497,6 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
456
497
|
AgentsListModels504.pipe(HttpApiSchema.status(504))
|
|
457
498
|
]
|
|
458
499
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listModels").annotate(OpenApi.Summary, "List agent models").annotate(OpenApi.Description, "Returns the models an agent can run on: the standard and max aliases, each with the model it points at today, then every catalog model an agent can pin. Each entry has its price per million tokens, the reasoning levels it accepts with an estimate of a typical reply at each, and whether your plan includes it. Pinning a catalog model needs the Growth or Scale plan.")).annotate(OpenApi.Description, "Agents that answer conversations on your mailbox endpoints, with a draft, published versions, and rules for action review, hours, and staff takeover") {};
|
|
459
|
-
export { Agent, AgentListItem, AgentModelAccess, AgentModelCatalog, AgentModelFallback, AgentModelOption, AgentModelPrice, AgentModelReasoning, AgentPage, AgentSpend, AgentTestDecision, AgentTestId, AgentTestRerun, AgentVersion, AgentVersionPage, AgentVersionSummary, AgentsContinueOnStandard200, AgentsContinueOnStandard400, AgentsContinueOnStandard401, AgentsContinueOnStandard403, AgentsContinueOnStandard404, AgentsContinueOnStandard409, AgentsContinueOnStandard422, AgentsContinueOnStandard500, AgentsContinueOnStandard504, AgentsContinueOnStandardPathParams, AgentsCreate201, AgentsCreate400, AgentsCreate401, AgentsCreate402, AgentsCreate403, AgentsCreate404, AgentsCreate422, AgentsCreate500, AgentsCreate504, AgentsCreateRequestJson, AgentsGet200, AgentsGet400, AgentsGet401, AgentsGet403, AgentsGet404, AgentsGet422, AgentsGet500, AgentsGet504, AgentsGetPathParams, AgentsGetVersion200, AgentsGetVersion400, AgentsGetVersion401, AgentsGetVersion403, AgentsGetVersion404, AgentsGetVersion422, AgentsGetVersion500, AgentsGetVersion504, AgentsGetVersionPathParams, AgentsGroup, AgentsList200, AgentsList400, AgentsList401, AgentsList403, AgentsList422, AgentsList500, AgentsList504, AgentsListModels200, AgentsListModels400, AgentsListModels401, AgentsListModels403, AgentsListModels422, AgentsListModels500, AgentsListModels504, AgentsListQuery, AgentsListVersions200, AgentsListVersions400, AgentsListVersions401, AgentsListVersions403, AgentsListVersions404, AgentsListVersions422, AgentsListVersions500, AgentsListVersions504, AgentsListVersionsPathParams, AgentsListVersionsQuery, AgentsPublish200, AgentsPublish400, AgentsPublish401, AgentsPublish403, AgentsPublish404, AgentsPublish409, AgentsPublish422, AgentsPublish500, AgentsPublish504, AgentsPublishPathParams, AgentsPublishRequestJson, AgentsRemove200, AgentsRemove400, AgentsRemove401, AgentsRemove403, AgentsRemove404, AgentsRemove422, AgentsRemove500, AgentsRemove504, AgentsRemovePathParams, AgentsReplaceDraft200, AgentsReplaceDraft400, AgentsReplaceDraft401, AgentsReplaceDraft402, AgentsReplaceDraft403, AgentsReplaceDraft404, AgentsReplaceDraft409, AgentsReplaceDraft422, AgentsReplaceDraft500, AgentsReplaceDraft504, AgentsReplaceDraftPathParams, AgentsReplaceDraftRequestJson, AgentsRerunTests200, AgentsRerunTests400, AgentsRerunTests401, AgentsRerunTests403, AgentsRerunTests404, AgentsRerunTests422, AgentsRerunTests500, AgentsRerunTests504, AgentsRerunTestsPathParams, AgentsRerunTestsRequestJson, AgentsUpdate200, AgentsUpdate400, AgentsUpdate401, AgentsUpdate403, AgentsUpdate404, AgentsUpdate422, AgentsUpdate500, AgentsUpdate504, AgentsUpdatePathParams, AgentsUpdateRequestJson, DeleteAgentResponse, ModelFallbackReason, PublishAgentResponse };
|
|
500
|
+
export { Agent, AgentBundle, AgentListItem, AgentModelAccess, AgentModelCatalog, AgentModelFallback, AgentModelOption, AgentModelPrice, AgentModelReasoning, AgentPage, AgentSpend, AgentTestDecision, AgentTestId, AgentTestRerun, AgentVersion, AgentVersionPage, AgentVersionSummary, AgentsContinueOnStandard200, AgentsContinueOnStandard400, AgentsContinueOnStandard401, AgentsContinueOnStandard403, AgentsContinueOnStandard404, AgentsContinueOnStandard409, AgentsContinueOnStandard422, AgentsContinueOnStandard500, AgentsContinueOnStandard504, AgentsContinueOnStandardPathParams, AgentsCreate201, AgentsCreate400, AgentsCreate401, AgentsCreate402, AgentsCreate403, AgentsCreate404, AgentsCreate422, AgentsCreate500, AgentsCreate504, AgentsCreateRequestJson, AgentsGet200, AgentsGet400, AgentsGet401, AgentsGet403, AgentsGet404, AgentsGet422, AgentsGet500, AgentsGet504, AgentsGetPathParams, AgentsGetVersion200, AgentsGetVersion400, AgentsGetVersion401, AgentsGetVersion403, AgentsGetVersion404, AgentsGetVersion422, AgentsGetVersion500, AgentsGetVersion504, AgentsGetVersionPathParams, AgentsGroup, AgentsList200, AgentsList400, AgentsList401, AgentsList403, AgentsList422, AgentsList500, AgentsList504, AgentsListModels200, AgentsListModels400, AgentsListModels401, AgentsListModels403, AgentsListModels422, AgentsListModels500, AgentsListModels504, AgentsListQuery, AgentsListVersions200, AgentsListVersions400, AgentsListVersions401, AgentsListVersions403, AgentsListVersions404, AgentsListVersions422, AgentsListVersions500, AgentsListVersions504, AgentsListVersionsPathParams, AgentsListVersionsQuery, AgentsPublish200, AgentsPublish400, AgentsPublish401, AgentsPublish402, AgentsPublish403, AgentsPublish404, AgentsPublish409, AgentsPublish422, AgentsPublish500, AgentsPublish504, AgentsPublishPathParams, AgentsPublishRequestJson, AgentsPublishVersion200, AgentsPublishVersion400, AgentsPublishVersion401, AgentsPublishVersion402, AgentsPublishVersion403, AgentsPublishVersion404, AgentsPublishVersion409, AgentsPublishVersion422, AgentsPublishVersion500, AgentsPublishVersion504, AgentsPublishVersionPathParams, AgentsPublishVersionRequestJson, AgentsRemove200, AgentsRemove400, AgentsRemove401, AgentsRemove403, AgentsRemove404, AgentsRemove422, AgentsRemove500, AgentsRemove504, AgentsRemovePathParams, AgentsReplaceDraft200, AgentsReplaceDraft400, AgentsReplaceDraft401, AgentsReplaceDraft402, AgentsReplaceDraft403, AgentsReplaceDraft404, AgentsReplaceDraft409, AgentsReplaceDraft422, AgentsReplaceDraft500, AgentsReplaceDraft504, AgentsReplaceDraftPathParams, AgentsReplaceDraftRequestJson, AgentsRerunTests200, AgentsRerunTests400, AgentsRerunTests401, AgentsRerunTests403, AgentsRerunTests404, AgentsRerunTests422, AgentsRerunTests500, AgentsRerunTests504, AgentsRerunTestsPathParams, AgentsRerunTestsRequestJson, AgentsUpdate200, AgentsUpdate400, AgentsUpdate401, AgentsUpdate403, AgentsUpdate404, AgentsUpdate422, AgentsUpdate500, AgentsUpdate504, AgentsUpdatePathParams, AgentsUpdateRequestJson, DeleteAgentResponse, ModelFallbackReason, PublishAgentResponse };
|
|
460
501
|
|
|
461
502
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, UnauthorizedError, ValidationError, __SamvaRuntimeAbsoluteInstant } from "./shared";
|
|
3
|
+
import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, UnauthorizedError, ValidationError, __SamvaRuntimeAbsoluteInstant } from "./shared.js";
|
|
4
4
|
export type AnalyticsGetChannelStatsQuery = {
|
|
5
5
|
readonly namespaceId?: NamespaceId;
|
|
6
6
|
readonly after?: __SamvaRuntimeAbsoluteInstant;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError, __SamvaRuntimeSensitiveString } from "./shared";
|
|
3
|
+
import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError, __SamvaRuntimeSensitiveString } from "./shared.js";
|
|
4
4
|
export type ApiKeyOwner = {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly name: string;
|
|
@@ -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 { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, NamespaceId, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared";
|
|
4
|
+
import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, NamespaceId, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
5
5
|
export type ApprovalRequestId = string & EffectBrand.Brand<"ApprovalRequestId">;
|
|
6
6
|
export declare const ApprovalRequestId: Schema.brand<Schema.String, "ApprovalRequestId">;
|
|
7
7
|
export type ApprovalCall = {
|
|
@@ -10,7 +10,7 @@ export type ApprovalCall = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare const ApprovalCall: Schema.Struct<{
|
|
12
12
|
readonly toolName: Schema.String;
|
|
13
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
13
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
14
14
|
}>;
|
|
15
15
|
export type ApprovalRequest = {
|
|
16
16
|
readonly id: ApprovalRequestId;
|
|
@@ -39,7 +39,7 @@ export declare const ApprovalRequest: Schema.Struct<{
|
|
|
39
39
|
readonly intent: Schema.String;
|
|
40
40
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
41
41
|
readonly toolName: Schema.String;
|
|
42
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
42
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
43
43
|
}>>;
|
|
44
44
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
45
45
|
readonly expiresAt: Schema.String;
|
|
@@ -60,7 +60,7 @@ export declare const ApprovalRequestsCreateRequestJson: Schema.Struct<{
|
|
|
60
60
|
readonly intent: Schema.String;
|
|
61
61
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
62
62
|
readonly toolName: Schema.String;
|
|
63
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
63
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
64
64
|
}>>;
|
|
65
65
|
readonly idempotencyKey: Schema.String;
|
|
66
66
|
}>;
|
|
@@ -74,7 +74,7 @@ export declare const ApprovalRequestsCreate201: Schema.Struct<{
|
|
|
74
74
|
readonly intent: Schema.String;
|
|
75
75
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
76
76
|
readonly toolName: Schema.String;
|
|
77
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
77
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
78
78
|
}>>;
|
|
79
79
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
80
80
|
readonly expiresAt: Schema.String;
|
|
@@ -116,7 +116,7 @@ export declare const ApprovalRequestsGet200: Schema.Struct<{
|
|
|
116
116
|
readonly intent: Schema.String;
|
|
117
117
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
118
118
|
readonly toolName: Schema.String;
|
|
119
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
119
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
120
120
|
}>>;
|
|
121
121
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
122
122
|
readonly expiresAt: Schema.String;
|
|
@@ -158,7 +158,7 @@ export declare const ApprovalRequestsApprove200: Schema.Struct<{
|
|
|
158
158
|
readonly intent: Schema.String;
|
|
159
159
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
160
160
|
readonly toolName: Schema.String;
|
|
161
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
161
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
162
162
|
}>>;
|
|
163
163
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
164
164
|
readonly expiresAt: Schema.String;
|
|
@@ -208,7 +208,7 @@ export declare const ApprovalRequestsReject200: Schema.Struct<{
|
|
|
208
208
|
readonly intent: Schema.String;
|
|
209
209
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
210
210
|
readonly toolName: Schema.String;
|
|
211
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
211
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
212
212
|
}>>;
|
|
213
213
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
214
214
|
readonly expiresAt: Schema.String;
|
|
@@ -247,7 +247,7 @@ declare const ApprovalRequestsGroup_base: HttpApiGroup.HttpApiGroup<"Approval re
|
|
|
247
247
|
readonly intent: Schema.String;
|
|
248
248
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
249
249
|
readonly toolName: Schema.String;
|
|
250
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
250
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
251
251
|
}>>;
|
|
252
252
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
253
253
|
readonly expiresAt: Schema.String;
|
|
@@ -382,7 +382,7 @@ declare const ApprovalRequestsGroup_base: HttpApiGroup.HttpApiGroup<"Approval re
|
|
|
382
382
|
readonly intent: Schema.String;
|
|
383
383
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
384
384
|
readonly toolName: Schema.String;
|
|
385
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
385
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
386
386
|
}>>;
|
|
387
387
|
readonly idempotencyKey: Schema.String;
|
|
388
388
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -394,7 +394,7 @@ declare const ApprovalRequestsGroup_base: HttpApiGroup.HttpApiGroup<"Approval re
|
|
|
394
394
|
readonly intent: Schema.String;
|
|
395
395
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
396
396
|
readonly toolName: Schema.String;
|
|
397
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
397
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
398
398
|
}>>;
|
|
399
399
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
400
400
|
readonly expiresAt: Schema.String;
|
|
@@ -516,7 +516,7 @@ declare const ApprovalRequestsGroup_base: HttpApiGroup.HttpApiGroup<"Approval re
|
|
|
516
516
|
readonly intent: Schema.String;
|
|
517
517
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
518
518
|
readonly toolName: Schema.String;
|
|
519
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
519
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
520
520
|
}>>;
|
|
521
521
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
522
522
|
readonly expiresAt: Schema.String;
|
|
@@ -640,7 +640,7 @@ declare const ApprovalRequestsGroup_base: HttpApiGroup.HttpApiGroup<"Approval re
|
|
|
640
640
|
readonly intent: Schema.String;
|
|
641
641
|
readonly calls: Schema.$Array<Schema.Struct<{
|
|
642
642
|
readonly toolName: Schema.String;
|
|
643
|
-
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
643
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
644
644
|
}>>;
|
|
645
645
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"rejected">, Schema.Literal<"failed">, Schema.Literal<"expired">]>;
|
|
646
646
|
readonly expiresAt: Schema.String;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
export type AttachmentList = {
|
|
5
5
|
readonly items: ReadonlyArray<{
|
|
6
6
|
readonly id: AttachmentId;
|
|
@@ -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 { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
5
|
export type BrandId = string & EffectBrand.Brand<"BrandId">;
|
|
6
6
|
export declare const BrandId: Schema.brand<Schema.String, "BrandId">;
|
|
7
7
|
export type Brand = {
|