samva 0.45.0 → 0.46.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 +7 -0
- package/README.md +24 -0
- package/dist/client/sdk.gen.d.ts +438 -5
- package/dist/client/sdk.gen.js +1544 -229
- package/dist/client/types.gen.d.ts +8124 -5612
- package/dist/effect/accounts.d.ts +50 -0
- package/dist/effect/accounts.js +22 -0
- package/dist/effect/agents.d.ts +9 -0
- package/dist/effect/agents.js +1 -1
- package/dist/effect/approval-requests.d.ts +42 -0
- package/dist/effect/approval-requests.js +18 -0
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/generated/accounts.d.ts +1002 -0
- package/dist/effect/generated/accounts.js +198 -0
- package/dist/effect/generated/agents.d.ts +84 -0
- package/dist/effect/generated/agents.js +1 -0
- package/dist/effect/generated/analytics.d.ts +6 -0
- package/dist/effect/generated/analytics.js +4 -2
- package/dist/effect/generated/approval-requests.d.ts +777 -0
- package/dist/effect/generated/approval-requests.js +135 -0
- package/dist/effect/generated/campaigns.d.ts +17 -17
- package/dist/effect/generated/campaigns.js +6 -6
- package/dist/effect/generated/conversations.d.ts +20 -20
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/index.d.ts +11 -1
- package/dist/effect/generated/integrations-catalog.d.ts +671 -0
- package/dist/effect/generated/integrations-catalog.js +217 -0
- package/dist/effect/generated/integrations.d.ts +1401 -0
- package/dist/effect/generated/integrations.js +246 -0
- package/dist/effect/generated/mailboxes.d.ts +8157 -4241
- package/dist/effect/generated/mailboxes.js +677 -52
- package/dist/effect/generated/messages.d.ts +8 -8
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/scheduled-messages.d.ts +50 -50
- package/dist/effect/generated/scheduled-messages.js +17 -17
- package/dist/effect/generated/shared.d.ts +661 -511
- package/dist/effect/generated/shared.js +212 -179
- package/dist/effect/generated/template-share-links.d.ts +733 -0
- package/dist/effect/generated/template-share-links.js +165 -0
- package/dist/effect/generated/templates.d.ts +39 -22
- package/dist/effect/generated/templates.js +19 -16
- package/dist/effect/generated-metadata.d.ts +248 -0
- package/dist/effect/generated-metadata.js +705 -555
- package/dist/effect/index.d.ts +5 -0
- package/dist/effect/index.js +6 -1
- package/dist/effect/integrations-catalog.d.ts +38 -0
- package/dist/effect/integrations-catalog.js +16 -0
- package/dist/effect/integrations.d.ts +165 -0
- package/dist/effect/integrations.js +24 -0
- package/dist/effect/mailboxes.d.ts +373 -191
- package/dist/effect/mailboxes.js +31 -1
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/template-share-links.d.ts +18 -0
- package/dist/effect/template-share-links.js +20 -0
- package/dist/effect/templates.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +11 -1
- package/dist/promises/client.js +13 -3
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +54 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +203 -0
- package/dist/service-map.js +103 -0
- package/package.json +22 -2
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
// src/effect/generated/integrations.ts
|
|
5
|
+
const IntegrationToolKind = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("query"), Schema.Literal("mutation")]).annotate({ identifier: "IntegrationToolKind" }))();
|
|
6
|
+
const DeleteIntegrationResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
|
+
id: IntegrationId,
|
|
8
|
+
deleted: Schema.Literal(true)
|
|
9
|
+
}).annotate({ identifier: "DeleteIntegrationResponse" }))();
|
|
10
|
+
const IntegrationToolView = /* @__PURE__ */ (() => Schema.Struct({
|
|
11
|
+
name: IntegrationTool,
|
|
12
|
+
title: Schema.String.check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
13
|
+
kind: IntegrationToolKind,
|
|
14
|
+
effect: Schema.Union([
|
|
15
|
+
Schema.Literal("read"),
|
|
16
|
+
Schema.Literal("write"),
|
|
17
|
+
Schema.Literal("final")
|
|
18
|
+
]),
|
|
19
|
+
guards: Schema.Array(Schema.Union([Schema.Literal("pinnedDestination"), Schema.Literal("insideHours")])),
|
|
20
|
+
granted: Schema.Boolean,
|
|
21
|
+
unavailableReason: Schema.optionalKey(Schema.Literal("input_schema_too_large")),
|
|
22
|
+
enabled: Schema.Boolean,
|
|
23
|
+
runsWithoutApproval: Schema.Boolean
|
|
24
|
+
}).annotate({ identifier: "IntegrationToolView" }))();
|
|
25
|
+
const Integration = /* @__PURE__ */ (() => Schema.Struct({
|
|
26
|
+
app: IntegrationKey,
|
|
27
|
+
settings: JsonObject,
|
|
28
|
+
id: IntegrationId,
|
|
29
|
+
status: IntegrationStatus,
|
|
30
|
+
accounts: AccountLinks,
|
|
31
|
+
supportsContactAccounts: Schema.Boolean,
|
|
32
|
+
answerWithoutApproval: AnswerWithoutApproval,
|
|
33
|
+
tools: Schema.Array(IntegrationToolView),
|
|
34
|
+
toolPage: Schema.Struct({
|
|
35
|
+
nextOffset: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
36
|
+
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
37
|
+
revision: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
38
|
+
}),
|
|
39
|
+
installedBy: Schema.Union([UserId, Schema.Null]),
|
|
40
|
+
createdAt: Schema.String,
|
|
41
|
+
updatedAt: Schema.String
|
|
42
|
+
}).annotate({ identifier: "Integration" }))();
|
|
43
|
+
const IntegrationList = /* @__PURE__ */ (() => Schema.Struct({
|
|
44
|
+
items: Schema.Array(Integration),
|
|
45
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
46
|
+
}).annotate({ identifier: "IntegrationList" }))();
|
|
47
|
+
const IntegrationsListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
48
|
+
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])),
|
|
49
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
50
|
+
}))();
|
|
51
|
+
const IntegrationsList200 = IntegrationList;
|
|
52
|
+
const IntegrationsList400 = MalformedRequestError;
|
|
53
|
+
const IntegrationsList401 = UnauthorizedError;
|
|
54
|
+
const IntegrationsList403 = ForbiddenError;
|
|
55
|
+
const IntegrationsList422 = ValidationError;
|
|
56
|
+
const IntegrationsList500 = InternalError;
|
|
57
|
+
const IntegrationsList504 = GatewayTimeoutError;
|
|
58
|
+
const IntegrationsInstallRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
59
|
+
app: IntegrationKey,
|
|
60
|
+
accounts: AccountLinks,
|
|
61
|
+
settings: Schema.optionalKey(JsonObject)
|
|
62
|
+
}))();
|
|
63
|
+
const IntegrationsInstall201 = Integration;
|
|
64
|
+
const IntegrationsInstall400 = MalformedRequestError;
|
|
65
|
+
const IntegrationsInstall401 = UnauthorizedError;
|
|
66
|
+
const IntegrationsInstall403 = ForbiddenError;
|
|
67
|
+
const IntegrationsInstall404 = ResourceNotFoundError;
|
|
68
|
+
const IntegrationsInstall422 = ValidationError;
|
|
69
|
+
const IntegrationsInstall500 = InternalError;
|
|
70
|
+
const IntegrationsInstall504 = GatewayTimeoutError;
|
|
71
|
+
const IntegrationsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ integrationId: IntegrationId }))();
|
|
72
|
+
const IntegrationsGet200 = Integration;
|
|
73
|
+
const IntegrationsGet400 = MalformedRequestError;
|
|
74
|
+
const IntegrationsGet401 = UnauthorizedError;
|
|
75
|
+
const IntegrationsGet403 = ForbiddenError;
|
|
76
|
+
const IntegrationsGet404 = ResourceNotFoundError;
|
|
77
|
+
const IntegrationsGet422 = ValidationError;
|
|
78
|
+
const IntegrationsGet500 = InternalError;
|
|
79
|
+
const IntegrationsGet504 = GatewayTimeoutError;
|
|
80
|
+
const IntegrationsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ integrationId: IntegrationId }))();
|
|
81
|
+
const IntegrationsRemove200 = DeleteIntegrationResponse;
|
|
82
|
+
const IntegrationsRemove400 = MalformedRequestError;
|
|
83
|
+
const IntegrationsRemove401 = UnauthorizedError;
|
|
84
|
+
const IntegrationsRemove403 = ForbiddenError;
|
|
85
|
+
const IntegrationsRemove404 = ResourceNotFoundError;
|
|
86
|
+
const IntegrationsRemove409 = ConflictError;
|
|
87
|
+
const IntegrationsRemove422 = ValidationError;
|
|
88
|
+
const IntegrationsRemove500 = InternalError;
|
|
89
|
+
const IntegrationsRemove504 = GatewayTimeoutError;
|
|
90
|
+
const IntegrationsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ integrationId: IntegrationId }))();
|
|
91
|
+
const IntegrationsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
92
|
+
answerWithoutApproval: Schema.optionalKey(AnswerWithoutApproval),
|
|
93
|
+
enabledTools: Schema.optionalKey(Schema.Array(IntegrationTool)),
|
|
94
|
+
tool: Schema.optionalKey(Schema.Struct({
|
|
95
|
+
name: IntegrationTool,
|
|
96
|
+
enabled: Schema.optionalKey(Schema.Boolean),
|
|
97
|
+
runsWithoutApproval: Schema.optionalKey(Schema.Boolean)
|
|
98
|
+
})),
|
|
99
|
+
settings: Schema.optionalKey(JsonObject)
|
|
100
|
+
}))();
|
|
101
|
+
const IntegrationsUpdate200 = Integration;
|
|
102
|
+
const IntegrationsUpdate400 = MalformedRequestError;
|
|
103
|
+
const IntegrationsUpdate401 = UnauthorizedError;
|
|
104
|
+
const IntegrationsUpdate403 = ForbiddenError;
|
|
105
|
+
const IntegrationsUpdate404 = ResourceNotFoundError;
|
|
106
|
+
const IntegrationsUpdate409 = ConflictError;
|
|
107
|
+
const IntegrationsUpdate422 = ValidationError;
|
|
108
|
+
const IntegrationsUpdate500 = InternalError;
|
|
109
|
+
const IntegrationsUpdate504 = GatewayTimeoutError;
|
|
110
|
+
const IntegrationsListToolsPathParams = /* @__PURE__ */ (() => Schema.Struct({ integrationId: IntegrationId }))();
|
|
111
|
+
const IntegrationsListToolsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
112
|
+
offset: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
|
|
113
|
+
revision: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })))
|
|
114
|
+
}))();
|
|
115
|
+
const IntegrationsListTools200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
116
|
+
nextOffset: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
117
|
+
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
118
|
+
revision: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
119
|
+
offset: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
120
|
+
items: Schema.Array(IntegrationToolView).check(Schema.isMaxLength(50).annotate({ expected: "a value with a length of at most 50" }))
|
|
121
|
+
}))();
|
|
122
|
+
const IntegrationsListTools400 = MalformedRequestError;
|
|
123
|
+
const IntegrationsListTools401 = UnauthorizedError;
|
|
124
|
+
const IntegrationsListTools403 = ForbiddenError;
|
|
125
|
+
const IntegrationsListTools404 = ResourceNotFoundError;
|
|
126
|
+
const IntegrationsListTools409 = ConflictError;
|
|
127
|
+
const IntegrationsListTools422 = ValidationError;
|
|
128
|
+
const IntegrationsListTools500 = InternalError;
|
|
129
|
+
const IntegrationsListTools504 = GatewayTimeoutError;
|
|
130
|
+
const IntegrationsReadToolPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
131
|
+
integrationId: IntegrationId,
|
|
132
|
+
tool: IntegrationTool
|
|
133
|
+
}))();
|
|
134
|
+
const IntegrationsReadToolQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
135
|
+
offset: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
|
|
136
|
+
revision: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })))
|
|
137
|
+
}))();
|
|
138
|
+
const IntegrationsReadTool200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
139
|
+
data: Schema.String.check(Schema.isMaxCodePoints(32e3).annotate({ expected: "a string with at most 32000 code points" })).check(Schema.isMaxLength(32e3).annotate({ expected: "a value with a length of at most 32000" })),
|
|
140
|
+
offset: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
141
|
+
nextOffset: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
142
|
+
totalCharacters: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
143
|
+
revision: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
144
|
+
}))();
|
|
145
|
+
const IntegrationsReadTool400 = MalformedRequestError;
|
|
146
|
+
const IntegrationsReadTool401 = UnauthorizedError;
|
|
147
|
+
const IntegrationsReadTool403 = ForbiddenError;
|
|
148
|
+
const IntegrationsReadTool404 = ResourceNotFoundError;
|
|
149
|
+
const IntegrationsReadTool409 = ConflictError;
|
|
150
|
+
const IntegrationsReadTool422 = ValidationError;
|
|
151
|
+
const IntegrationsReadTool500 = InternalError;
|
|
152
|
+
const IntegrationsReadTool504 = GatewayTimeoutError;
|
|
153
|
+
var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(HttpApiEndpoint.get("integrationsList", "/v1/integrations", {
|
|
154
|
+
query: IntegrationsListQuery,
|
|
155
|
+
success: IntegrationsList200,
|
|
156
|
+
error: [
|
|
157
|
+
IntegrationsList400.pipe(HttpApiSchema.status(400)),
|
|
158
|
+
IntegrationsList401.pipe(HttpApiSchema.status(401)),
|
|
159
|
+
IntegrationsList403.pipe(HttpApiSchema.status(403)),
|
|
160
|
+
IntegrationsList422.pipe(HttpApiSchema.status(422)),
|
|
161
|
+
IntegrationsList500,
|
|
162
|
+
IntegrationsList504.pipe(HttpApiSchema.status(504))
|
|
163
|
+
]
|
|
164
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.list").annotate(OpenApi.Summary, "List integrations").annotate(OpenApi.Description, "Returns a bounded page of installed integrations, newest first, with compact tool summaries. Follow nextCursor and each integration's toolPage.nextOffset for the complete inventory."), HttpApiEndpoint.post("integrationsInstall", "/v1/integrations", {
|
|
165
|
+
payload: IntegrationsInstallRequestJson,
|
|
166
|
+
success: IntegrationsInstall201.pipe(HttpApiSchema.status(201)),
|
|
167
|
+
error: [
|
|
168
|
+
IntegrationsInstall400.pipe(HttpApiSchema.status(400)),
|
|
169
|
+
IntegrationsInstall401.pipe(HttpApiSchema.status(401)),
|
|
170
|
+
IntegrationsInstall403.pipe(HttpApiSchema.status(403)),
|
|
171
|
+
IntegrationsInstall404.pipe(HttpApiSchema.status(404)),
|
|
172
|
+
IntegrationsInstall422.pipe(HttpApiSchema.status(422)),
|
|
173
|
+
IntegrationsInstall500,
|
|
174
|
+
IntegrationsInstall504.pipe(HttpApiSchema.status(504))
|
|
175
|
+
]
|
|
176
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.install").annotate(OpenApi.Summary, "Install an integration").annotate(OpenApi.Description, "Installs an app on connected accounts, one for each of the app's account slots. Installing the same app on the same accounts again returns the existing integration."), HttpApiEndpoint.get("integrationsGet", "/v1/integrations/:integrationId", {
|
|
177
|
+
params: IntegrationsGetPathParams,
|
|
178
|
+
success: IntegrationsGet200,
|
|
179
|
+
error: [
|
|
180
|
+
IntegrationsGet400.pipe(HttpApiSchema.status(400)),
|
|
181
|
+
IntegrationsGet401.pipe(HttpApiSchema.status(401)),
|
|
182
|
+
IntegrationsGet403.pipe(HttpApiSchema.status(403)),
|
|
183
|
+
IntegrationsGet404.pipe(HttpApiSchema.status(404)),
|
|
184
|
+
IntegrationsGet422.pipe(HttpApiSchema.status(422)),
|
|
185
|
+
IntegrationsGet500,
|
|
186
|
+
IntegrationsGet504.pipe(HttpApiSchema.status(504))
|
|
187
|
+
]
|
|
188
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.get").annotate(OpenApi.Summary, "Get an integration").annotate(OpenApi.Description, "Returns one integration with its linked accounts, settings and tools. A Shopify integration needs reconnecting when its account has not granted the requested scopes, including read_products and read_legal_policies."), HttpApiEndpoint.delete("integrationsRemove", "/v1/integrations/:integrationId", {
|
|
189
|
+
params: IntegrationsRemovePathParams,
|
|
190
|
+
success: IntegrationsRemove200,
|
|
191
|
+
error: [
|
|
192
|
+
IntegrationsRemove400.pipe(HttpApiSchema.status(400)),
|
|
193
|
+
IntegrationsRemove401.pipe(HttpApiSchema.status(401)),
|
|
194
|
+
IntegrationsRemove403.pipe(HttpApiSchema.status(403)),
|
|
195
|
+
IntegrationsRemove404.pipe(HttpApiSchema.status(404)),
|
|
196
|
+
IntegrationsRemove409.pipe(HttpApiSchema.status(409)),
|
|
197
|
+
IntegrationsRemove422.pipe(HttpApiSchema.status(422)),
|
|
198
|
+
IntegrationsRemove500,
|
|
199
|
+
IntegrationsRemove504.pipe(HttpApiSchema.status(504))
|
|
200
|
+
]
|
|
201
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.remove").annotate(OpenApi.Summary, "Remove an integration").annotate(OpenApi.Description, "Removes the integration and its grant from every agent's draft. Contact accounts are disconnected; organization accounts stay connected. A published agent version that granted it can no longer use it; publish the agent to drop the grant."), HttpApiEndpoint.patch("integrationsUpdate", "/v1/integrations/:integrationId", {
|
|
202
|
+
params: IntegrationsUpdatePathParams,
|
|
203
|
+
payload: IntegrationsUpdateRequestJson,
|
|
204
|
+
success: IntegrationsUpdate200,
|
|
205
|
+
error: [
|
|
206
|
+
IntegrationsUpdate400.pipe(HttpApiSchema.status(400)),
|
|
207
|
+
IntegrationsUpdate401.pipe(HttpApiSchema.status(401)),
|
|
208
|
+
IntegrationsUpdate403.pipe(HttpApiSchema.status(403)),
|
|
209
|
+
IntegrationsUpdate404.pipe(HttpApiSchema.status(404)),
|
|
210
|
+
IntegrationsUpdate409.pipe(HttpApiSchema.status(409)),
|
|
211
|
+
IntegrationsUpdate422.pipe(HttpApiSchema.status(422)),
|
|
212
|
+
IntegrationsUpdate500,
|
|
213
|
+
IntegrationsUpdate504.pipe(HttpApiSchema.status(504))
|
|
214
|
+
]
|
|
215
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.update").annotate(OpenApi.Summary, "Update an integration").annotate(OpenApi.Description, "Changes an integration's settings, enabled tools, which tools run without approval, and whether replies using its data need approval. Only an organization owner may change answerWithoutApproval or a tool's runsWithoutApproval: false makes a read tool ask first, true lets a tool that changes something run, each for the tool's current effect. Fields not named keep their values. What an agent may do with the integration is the agent's grant."), HttpApiEndpoint.get("integrationsListTools", "/v1/integrations/:integrationId/tools", {
|
|
216
|
+
params: IntegrationsListToolsPathParams,
|
|
217
|
+
query: IntegrationsListToolsQuery,
|
|
218
|
+
success: IntegrationsListTools200,
|
|
219
|
+
error: [
|
|
220
|
+
IntegrationsListTools400.pipe(HttpApiSchema.status(400)),
|
|
221
|
+
IntegrationsListTools401.pipe(HttpApiSchema.status(401)),
|
|
222
|
+
IntegrationsListTools403.pipe(HttpApiSchema.status(403)),
|
|
223
|
+
IntegrationsListTools404.pipe(HttpApiSchema.status(404)),
|
|
224
|
+
IntegrationsListTools409.pipe(HttpApiSchema.status(409)),
|
|
225
|
+
IntegrationsListTools422.pipe(HttpApiSchema.status(422)),
|
|
226
|
+
IntegrationsListTools500,
|
|
227
|
+
IntegrationsListTools504.pipe(HttpApiSchema.status(504))
|
|
228
|
+
]
|
|
229
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.listTools").annotate(OpenApi.Summary, "List integration tools").annotate(OpenApi.Description, "Returns a page of the tools an integration gives agents. Send the first page's revision with each later offset; if the integration's tools change during the read, the request returns 409 and the read restarts at offset zero."), HttpApiEndpoint.get("integrationsReadTool", "/v1/integrations/:integrationId/tools/:tool", {
|
|
230
|
+
params: IntegrationsReadToolPathParams,
|
|
231
|
+
query: IntegrationsReadToolQuery,
|
|
232
|
+
success: IntegrationsReadTool200,
|
|
233
|
+
error: [
|
|
234
|
+
IntegrationsReadTool400.pipe(HttpApiSchema.status(400)),
|
|
235
|
+
IntegrationsReadTool401.pipe(HttpApiSchema.status(401)),
|
|
236
|
+
IntegrationsReadTool403.pipe(HttpApiSchema.status(403)),
|
|
237
|
+
IntegrationsReadTool404.pipe(HttpApiSchema.status(404)),
|
|
238
|
+
IntegrationsReadTool409.pipe(HttpApiSchema.status(409)),
|
|
239
|
+
IntegrationsReadTool422.pipe(HttpApiSchema.status(422)),
|
|
240
|
+
IntegrationsReadTool500,
|
|
241
|
+
IntegrationsReadTool504.pipe(HttpApiSchema.status(504))
|
|
242
|
+
]
|
|
243
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.readTool").annotate(OpenApi.Summary, "Read an integration tool descriptor").annotate(OpenApi.Description, "Returns one tool's full descriptor. A revision that no longer matches the integration's tools returns 409.")).annotate(OpenApi.Description, "Apps installed for hosted agents, on connected accounts") {};
|
|
244
|
+
export { DeleteIntegrationResponse, Integration, IntegrationList, IntegrationToolKind, IntegrationToolView, IntegrationsGet200, IntegrationsGet400, IntegrationsGet401, IntegrationsGet403, IntegrationsGet404, IntegrationsGet422, IntegrationsGet500, IntegrationsGet504, IntegrationsGetPathParams, IntegrationsGroup, IntegrationsInstall201, IntegrationsInstall400, IntegrationsInstall401, IntegrationsInstall403, IntegrationsInstall404, IntegrationsInstall422, IntegrationsInstall500, IntegrationsInstall504, IntegrationsInstallRequestJson, IntegrationsList200, IntegrationsList400, IntegrationsList401, IntegrationsList403, IntegrationsList422, IntegrationsList500, IntegrationsList504, IntegrationsListQuery, IntegrationsListTools200, IntegrationsListTools400, IntegrationsListTools401, IntegrationsListTools403, IntegrationsListTools404, IntegrationsListTools409, IntegrationsListTools422, IntegrationsListTools500, IntegrationsListTools504, IntegrationsListToolsPathParams, IntegrationsListToolsQuery, IntegrationsReadTool200, IntegrationsReadTool400, IntegrationsReadTool401, IntegrationsReadTool403, IntegrationsReadTool404, IntegrationsReadTool409, IntegrationsReadTool422, IntegrationsReadTool500, IntegrationsReadTool504, IntegrationsReadToolPathParams, IntegrationsReadToolQuery, IntegrationsRemove200, IntegrationsRemove400, IntegrationsRemove401, IntegrationsRemove403, IntegrationsRemove404, IntegrationsRemove409, IntegrationsRemove422, IntegrationsRemove500, IntegrationsRemove504, IntegrationsRemovePathParams, IntegrationsUpdate200, IntegrationsUpdate400, IntegrationsUpdate401, IntegrationsUpdate403, IntegrationsUpdate404, IntegrationsUpdate409, IntegrationsUpdate422, IntegrationsUpdate500, IntegrationsUpdate504, IntegrationsUpdatePathParams, IntegrationsUpdateRequestJson };
|
|
245
|
+
|
|
246
|
+
//# sourceMappingURL=integrations.js.map
|