samva 0.50.0 → 0.52.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 +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -43,8 +43,7 @@ export type Integration = {
|
|
|
43
43
|
readonly answerWithoutApproval: AnswerWithoutApproval;
|
|
44
44
|
readonly tools: ReadonlyArray<IntegrationToolView>;
|
|
45
45
|
readonly toolPage: {
|
|
46
|
-
readonly
|
|
47
|
-
readonly total: number;
|
|
46
|
+
readonly nextCursor: string | null;
|
|
48
47
|
readonly revision: string;
|
|
49
48
|
};
|
|
50
49
|
readonly installedBy: UserId | null;
|
|
@@ -71,8 +70,7 @@ export declare const Integration: Schema.Struct<{
|
|
|
71
70
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
72
71
|
}>>;
|
|
73
72
|
readonly toolPage: Schema.Struct<{
|
|
74
|
-
readonly
|
|
75
|
-
readonly total: Schema.Finite;
|
|
73
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
76
74
|
readonly revision: Schema.String;
|
|
77
75
|
}>;
|
|
78
76
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -104,8 +102,7 @@ export declare const IntegrationList: Schema.Struct<{
|
|
|
104
102
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
105
103
|
}>>;
|
|
106
104
|
readonly toolPage: Schema.Struct<{
|
|
107
|
-
readonly
|
|
108
|
-
readonly total: Schema.Finite;
|
|
105
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
109
106
|
readonly revision: Schema.String;
|
|
110
107
|
}>;
|
|
111
108
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -144,8 +141,7 @@ export declare const IntegrationsList200: Schema.Struct<{
|
|
|
144
141
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
145
142
|
}>>;
|
|
146
143
|
readonly toolPage: Schema.Struct<{
|
|
147
|
-
readonly
|
|
148
|
-
readonly total: Schema.Finite;
|
|
144
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
149
145
|
readonly revision: Schema.String;
|
|
150
146
|
}>;
|
|
151
147
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -197,8 +193,7 @@ export declare const IntegrationsInstall201: Schema.Struct<{
|
|
|
197
193
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
198
194
|
}>>;
|
|
199
195
|
readonly toolPage: Schema.Struct<{
|
|
200
|
-
readonly
|
|
201
|
-
readonly total: Schema.Finite;
|
|
196
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
202
197
|
readonly revision: Schema.String;
|
|
203
198
|
}>;
|
|
204
199
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -246,8 +241,7 @@ export declare const IntegrationsGet200: Schema.Struct<{
|
|
|
246
241
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
247
242
|
}>>;
|
|
248
243
|
readonly toolPage: Schema.Struct<{
|
|
249
|
-
readonly
|
|
250
|
-
readonly total: Schema.Finite;
|
|
244
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
251
245
|
readonly revision: Schema.String;
|
|
252
246
|
}>;
|
|
253
247
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -342,8 +336,7 @@ export declare const IntegrationsUpdate200: Schema.Struct<{
|
|
|
342
336
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
343
337
|
}>>;
|
|
344
338
|
readonly toolPage: Schema.Struct<{
|
|
345
|
-
readonly
|
|
346
|
-
readonly total: Schema.Finite;
|
|
339
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
347
340
|
readonly revision: Schema.String;
|
|
348
341
|
}>;
|
|
349
342
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -373,25 +366,18 @@ export declare const IntegrationsListToolsPathParams: Schema.Struct<{
|
|
|
373
366
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
374
367
|
}>;
|
|
375
368
|
export type IntegrationsListToolsQuery = {
|
|
376
|
-
readonly
|
|
377
|
-
readonly
|
|
369
|
+
readonly limit?: number | null;
|
|
370
|
+
readonly cursor?: string;
|
|
378
371
|
};
|
|
379
372
|
export declare const IntegrationsListToolsQuery: Schema.Struct<{
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
373
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
374
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
382
375
|
}>;
|
|
383
376
|
export type IntegrationsListTools200 = {
|
|
384
|
-
readonly nextOffset: number | null;
|
|
385
|
-
readonly total: number;
|
|
386
|
-
readonly revision: string;
|
|
387
|
-
readonly offset: number;
|
|
388
377
|
readonly items: ReadonlyArray<IntegrationToolView>;
|
|
378
|
+
readonly nextCursor: string | null;
|
|
389
379
|
};
|
|
390
380
|
export declare const IntegrationsListTools200: Schema.Struct<{
|
|
391
|
-
readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
392
|
-
readonly total: Schema.Finite;
|
|
393
|
-
readonly revision: Schema.String;
|
|
394
|
-
readonly offset: Schema.Finite;
|
|
395
381
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
396
382
|
readonly name: Schema.String;
|
|
397
383
|
readonly title: Schema.String;
|
|
@@ -403,6 +389,7 @@ export declare const IntegrationsListTools200: Schema.Struct<{
|
|
|
403
389
|
readonly enabled: Schema.Boolean;
|
|
404
390
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
405
391
|
}>>;
|
|
392
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
406
393
|
}>;
|
|
407
394
|
export type IntegrationsListTools400 = MalformedRequestError;
|
|
408
395
|
export declare const IntegrationsListTools400: typeof MalformedRequestError;
|
|
@@ -488,8 +475,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
|
|
|
488
475
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
489
476
|
}>>;
|
|
490
477
|
readonly toolPage: Schema.Struct<{
|
|
491
|
-
readonly
|
|
492
|
-
readonly total: Schema.Finite;
|
|
478
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
493
479
|
readonly revision: Schema.String;
|
|
494
480
|
}>;
|
|
495
481
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -619,8 +605,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
|
|
|
619
605
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
620
606
|
}>>;
|
|
621
607
|
readonly toolPage: Schema.Struct<{
|
|
622
|
-
readonly
|
|
623
|
-
readonly total: Schema.Finite;
|
|
608
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
624
609
|
readonly revision: Schema.String;
|
|
625
610
|
}>;
|
|
626
611
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -750,8 +735,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
|
|
|
750
735
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
751
736
|
}>>;
|
|
752
737
|
readonly toolPage: Schema.Struct<{
|
|
753
|
-
readonly
|
|
754
|
-
readonly total: Schema.Finite;
|
|
738
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
755
739
|
readonly revision: Schema.String;
|
|
756
740
|
}>;
|
|
757
741
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -842,13 +826,9 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
|
|
|
842
826
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsListTools", "GET", "/v1/integrations/:integrationId/tools", Schema.toCodecStringTree<Schema.Struct<{
|
|
843
827
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
844
828
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
845
|
-
readonly
|
|
846
|
-
readonly
|
|
829
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
830
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
847
831
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
848
|
-
readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
849
|
-
readonly total: Schema.Finite;
|
|
850
|
-
readonly revision: Schema.String;
|
|
851
|
-
readonly offset: Schema.Finite;
|
|
852
832
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
853
833
|
readonly name: Schema.String;
|
|
854
834
|
readonly title: Schema.String;
|
|
@@ -860,6 +840,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
|
|
|
860
840
|
readonly enabled: Schema.Boolean;
|
|
861
841
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
862
842
|
}>>;
|
|
843
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
863
844
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
864
845
|
readonly _tag: "ConflictError";
|
|
865
846
|
readonly message: string;
|
|
@@ -1268,8 +1249,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
|
|
|
1268
1249
|
readonly runsWithoutApproval: Schema.Boolean;
|
|
1269
1250
|
}>>;
|
|
1270
1251
|
readonly toolPage: Schema.Struct<{
|
|
1271
|
-
readonly
|
|
1272
|
-
readonly total: Schema.Finite;
|
|
1252
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1273
1253
|
readonly revision: Schema.String;
|
|
1274
1254
|
}>;
|
|
1275
1255
|
readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
@@ -32,8 +32,7 @@ const Integration = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
32
32
|
answerWithoutApproval: AnswerWithoutApproval,
|
|
33
33
|
tools: Schema.Array(IntegrationToolView),
|
|
34
34
|
toolPage: Schema.Struct({
|
|
35
|
-
|
|
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" })),
|
|
35
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null]),
|
|
37
36
|
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
37
|
}),
|
|
39
38
|
installedBy: Schema.Union([UserId, Schema.Null]),
|
|
@@ -109,15 +108,12 @@ const IntegrationsUpdate500 = InternalError;
|
|
|
109
108
|
const IntegrationsUpdate504 = GatewayTimeoutError;
|
|
110
109
|
const IntegrationsListToolsPathParams = /* @__PURE__ */ (() => Schema.Struct({ integrationId: IntegrationId }))();
|
|
111
110
|
const IntegrationsListToolsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
limit: Schema.optionalKey(Schema.Union([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(50).annotate({ expected: "a value less than or equal to 50" })), Schema.Null])),
|
|
112
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
114
113
|
}))();
|
|
115
114
|
const IntegrationsListTools200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
116
|
-
|
|
117
|
-
|
|
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" }))
|
|
115
|
+
items: Schema.Array(IntegrationToolView),
|
|
116
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
121
117
|
}))();
|
|
122
118
|
const IntegrationsListTools400 = MalformedRequestError;
|
|
123
119
|
const IntegrationsListTools401 = UnauthorizedError;
|
|
@@ -161,7 +157,7 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
|
|
|
161
157
|
IntegrationsList500,
|
|
162
158
|
IntegrationsList504.pipe(HttpApiSchema.status(504))
|
|
163
159
|
]
|
|
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.
|
|
160
|
+
}).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.nextCursor for the complete inventory."), HttpApiEndpoint.post("integrationsInstall", "/v1/integrations", {
|
|
165
161
|
payload: IntegrationsInstallRequestJson,
|
|
166
162
|
success: IntegrationsInstall201.pipe(HttpApiSchema.status(201)),
|
|
167
163
|
error: [
|
|
@@ -212,7 +208,7 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
|
|
|
212
208
|
IntegrationsUpdate500,
|
|
213
209
|
IntegrationsUpdate504.pipe(HttpApiSchema.status(504))
|
|
214
210
|
]
|
|
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.
|
|
211
|
+
}).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. Changing answerWithoutApproval requires an organization owner and, for an API key, organization-wide reach. An organization owner or an API key with organization-wide reach can change a tool's runsWithoutApproval for its current effect. False makes a read tool ask first. True lets a tool that changes something run. 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
212
|
params: IntegrationsListToolsPathParams,
|
|
217
213
|
query: IntegrationsListToolsQuery,
|
|
218
214
|
success: IntegrationsListTools200,
|
|
@@ -226,7 +222,7 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
|
|
|
226
222
|
IntegrationsListTools500,
|
|
227
223
|
IntegrationsListTools504.pipe(HttpApiSchema.status(504))
|
|
228
224
|
]
|
|
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.
|
|
225
|
+
}).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. Pass nextCursor back as cursor. If the integration's tools change during pagination, the request returns 409. Restart without a cursor."), HttpApiEndpoint.get("integrationsReadTool", "/v1/integrations/:integrationId/tools/:tool", {
|
|
230
226
|
params: IntegrationsReadToolPathParams,
|
|
231
227
|
query: IntegrationsReadToolQuery,
|
|
232
228
|
success: IntegrationsReadTool200,
|
|
@@ -240,7 +236,7 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
|
|
|
240
236
|
IntegrationsReadTool500,
|
|
241
237
|
IntegrationsReadTool504.pipe(HttpApiSchema.status(504))
|
|
242
238
|
]
|
|
243
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.readTool").annotate(OpenApi.Summary, "Read an integration tool descriptor").annotate(OpenApi.Description, "Returns one tool's
|
|
239
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrations.readTool").annotate(OpenApi.Summary, "Read an integration tool descriptor").annotate(OpenApi.Description, "Returns one tool's descriptor in chunks. Pass nextOffset back as offset with the same revision. A revision that no longer matches the integration's tools returns 409.")).annotate(OpenApi.Description, "Apps installed for hosted agents, on connected accounts") {};
|
|
244
240
|
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
241
|
|
|
246
242
|
//# sourceMappingURL=integrations.js.map
|
|
@@ -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, BillingProviderError, ConflictError, ContactId,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
5
|
export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
|
|
6
6
|
export declare const JourneyRunStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
7
7
|
export type JourneyRunId = string & EffectBrand.Brand<"JourneyRunId">;
|
|
@@ -1053,8 +1053,8 @@ export type JourneysCreate401 = UnauthorizedError;
|
|
|
1053
1053
|
export declare const JourneysCreate401: typeof UnauthorizedError;
|
|
1054
1054
|
export type JourneysCreate402 = PaymentRequiredError;
|
|
1055
1055
|
export declare const JourneysCreate402: typeof PaymentRequiredError;
|
|
1056
|
-
export type JourneysCreate403 =
|
|
1057
|
-
export declare const JourneysCreate403:
|
|
1056
|
+
export type JourneysCreate403 = ForbiddenError;
|
|
1057
|
+
export declare const JourneysCreate403: typeof ForbiddenError;
|
|
1058
1058
|
export type JourneysCreate404 = ResourceNotFoundError;
|
|
1059
1059
|
export declare const JourneysCreate404: typeof ResourceNotFoundError;
|
|
1060
1060
|
export type JourneysCreate409 = ConflictError;
|
|
@@ -2140,8 +2140,8 @@ export type JourneysReplaceDraft401 = UnauthorizedError;
|
|
|
2140
2140
|
export declare const JourneysReplaceDraft401: typeof UnauthorizedError;
|
|
2141
2141
|
export type JourneysReplaceDraft402 = PaymentRequiredError;
|
|
2142
2142
|
export declare const JourneysReplaceDraft402: typeof PaymentRequiredError;
|
|
2143
|
-
export type JourneysReplaceDraft403 =
|
|
2144
|
-
export declare const JourneysReplaceDraft403:
|
|
2143
|
+
export type JourneysReplaceDraft403 = ForbiddenError;
|
|
2144
|
+
export declare const JourneysReplaceDraft403: typeof ForbiddenError;
|
|
2145
2145
|
export type JourneysReplaceDraft404 = ResourceNotFoundError;
|
|
2146
2146
|
export declare const JourneysReplaceDraft404: typeof ResourceNotFoundError;
|
|
2147
2147
|
export type JourneysReplaceDraft409 = ConflictError;
|
|
@@ -2582,8 +2582,8 @@ export type JourneysPublish401 = UnauthorizedError;
|
|
|
2582
2582
|
export declare const JourneysPublish401: typeof UnauthorizedError;
|
|
2583
2583
|
export type JourneysPublish402 = PaymentRequiredError;
|
|
2584
2584
|
export declare const JourneysPublish402: typeof PaymentRequiredError;
|
|
2585
|
-
export type JourneysPublish403 =
|
|
2586
|
-
export declare const JourneysPublish403:
|
|
2585
|
+
export type JourneysPublish403 = ForbiddenError;
|
|
2586
|
+
export declare const JourneysPublish403: typeof ForbiddenError;
|
|
2587
2587
|
export type JourneysPublish404 = ResourceNotFoundError;
|
|
2588
2588
|
export declare const JourneysPublish404: typeof ResourceNotFoundError;
|
|
2589
2589
|
export type JourneysPublish409 = ConflictError;
|
|
@@ -2802,8 +2802,8 @@ export type JourneysResume401 = UnauthorizedError;
|
|
|
2802
2802
|
export declare const JourneysResume401: typeof UnauthorizedError;
|
|
2803
2803
|
export type JourneysResume402 = PaymentRequiredError;
|
|
2804
2804
|
export declare const JourneysResume402: typeof PaymentRequiredError;
|
|
2805
|
-
export type JourneysResume403 =
|
|
2806
|
-
export declare const JourneysResume403:
|
|
2805
|
+
export type JourneysResume403 = ForbiddenError;
|
|
2806
|
+
export declare const JourneysResume403: typeof ForbiddenError;
|
|
2807
2807
|
export type JourneysResume404 = ResourceNotFoundError;
|
|
2808
2808
|
export declare const JourneysResume404: typeof ResourceNotFoundError;
|
|
2809
2809
|
export type JourneysResume409 = ConflictError;
|
|
@@ -3867,7 +3867,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3867
3867
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3868
3868
|
readonly createdAt: Schema.String;
|
|
3869
3869
|
readonly updatedAt: Schema.String;
|
|
3870
|
-
}>>, Schema.toCodecJson<Schema.
|
|
3870
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
3871
3871
|
readonly _tag: "BillingProviderError";
|
|
3872
3872
|
readonly message: string;
|
|
3873
3873
|
}, readonly [Schema.Struct<{
|
|
@@ -3899,6 +3899,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3899
3899
|
readonly message: Schema.String;
|
|
3900
3900
|
readonly resource: Schema.String;
|
|
3901
3901
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3902
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
3903
|
+
readonly _tag: "ForbiddenError";
|
|
3904
|
+
readonly message: string;
|
|
3905
|
+
}, readonly [Schema.Struct<{
|
|
3906
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
3907
|
+
readonly message: Schema.String;
|
|
3908
|
+
}>], {
|
|
3909
|
+
readonly _tag: "ForbiddenError";
|
|
3910
|
+
readonly message: string;
|
|
3911
|
+
}>, Schema.Struct<{
|
|
3912
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
3913
|
+
readonly message: Schema.String;
|
|
3902
3914
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
3903
3915
|
readonly _tag: "GatewayTimeoutError";
|
|
3904
3916
|
readonly message: string;
|
|
@@ -5459,7 +5471,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5459
5471
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5460
5472
|
readonly createdAt: Schema.String;
|
|
5461
5473
|
readonly updatedAt: Schema.String;
|
|
5462
|
-
}>>, Schema.toCodecJson<Schema.
|
|
5474
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5463
5475
|
readonly _tag: "BillingProviderError";
|
|
5464
5476
|
readonly message: string;
|
|
5465
5477
|
}, readonly [Schema.Struct<{
|
|
@@ -5491,6 +5503,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5491
5503
|
readonly message: Schema.String;
|
|
5492
5504
|
readonly resource: Schema.String;
|
|
5493
5505
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5506
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5507
|
+
readonly _tag: "ForbiddenError";
|
|
5508
|
+
readonly message: string;
|
|
5509
|
+
}, readonly [Schema.Struct<{
|
|
5510
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5511
|
+
readonly message: Schema.String;
|
|
5512
|
+
}>], {
|
|
5513
|
+
readonly _tag: "ForbiddenError";
|
|
5514
|
+
readonly message: string;
|
|
5515
|
+
}>, Schema.Struct<{
|
|
5516
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5517
|
+
readonly message: Schema.String;
|
|
5494
5518
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5495
5519
|
readonly _tag: "GatewayTimeoutError";
|
|
5496
5520
|
readonly message: string;
|
|
@@ -6107,7 +6131,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6107
6131
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6108
6132
|
readonly createdAt: Schema.String;
|
|
6109
6133
|
readonly updatedAt: Schema.String;
|
|
6110
|
-
}>>, Schema.toCodecJson<Schema.
|
|
6134
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
6111
6135
|
readonly _tag: "BillingProviderError";
|
|
6112
6136
|
readonly message: string;
|
|
6113
6137
|
}, readonly [Schema.Struct<{
|
|
@@ -6139,6 +6163,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6139
6163
|
readonly message: Schema.String;
|
|
6140
6164
|
readonly resource: Schema.String;
|
|
6141
6165
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6166
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6167
|
+
readonly _tag: "ForbiddenError";
|
|
6168
|
+
readonly message: string;
|
|
6169
|
+
}, readonly [Schema.Struct<{
|
|
6170
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6171
|
+
readonly message: Schema.String;
|
|
6172
|
+
}>], {
|
|
6173
|
+
readonly _tag: "ForbiddenError";
|
|
6174
|
+
readonly message: string;
|
|
6175
|
+
}>, Schema.Struct<{
|
|
6176
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6177
|
+
readonly message: Schema.String;
|
|
6142
6178
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
6143
6179
|
readonly _tag: "GatewayTimeoutError";
|
|
6144
6180
|
readonly message: string;
|
|
@@ -6445,7 +6481,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6445
6481
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6446
6482
|
readonly createdAt: Schema.String;
|
|
6447
6483
|
readonly updatedAt: Schema.String;
|
|
6448
|
-
}>>, Schema.toCodecJson<Schema.
|
|
6484
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
6449
6485
|
readonly _tag: "BillingProviderError";
|
|
6450
6486
|
readonly message: string;
|
|
6451
6487
|
}, readonly [Schema.Struct<{
|
|
@@ -6477,6 +6513,18 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6477
6513
|
readonly message: Schema.String;
|
|
6478
6514
|
readonly resource: Schema.String;
|
|
6479
6515
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6516
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6517
|
+
readonly _tag: "ForbiddenError";
|
|
6518
|
+
readonly message: string;
|
|
6519
|
+
}, readonly [Schema.Struct<{
|
|
6520
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6521
|
+
readonly message: Schema.String;
|
|
6522
|
+
}>], {
|
|
6523
|
+
readonly _tag: "ForbiddenError";
|
|
6524
|
+
readonly message: string;
|
|
6525
|
+
}>, Schema.Struct<{
|
|
6526
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6527
|
+
readonly message: Schema.String;
|
|
6480
6528
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
6481
6529
|
readonly _tag: "GatewayTimeoutError";
|
|
6482
6530
|
readonly message: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId,
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, 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/journeys.ts
|
|
@@ -148,7 +148,7 @@ const JourneysCreate201 = Journey;
|
|
|
148
148
|
const JourneysCreate400 = MalformedRequestError;
|
|
149
149
|
const JourneysCreate401 = UnauthorizedError;
|
|
150
150
|
const JourneysCreate402 = PaymentRequiredError;
|
|
151
|
-
const JourneysCreate403 =
|
|
151
|
+
const JourneysCreate403 = ForbiddenError;
|
|
152
152
|
const JourneysCreate404 = ResourceNotFoundError;
|
|
153
153
|
const JourneysCreate409 = ConflictError;
|
|
154
154
|
const JourneysCreate422 = ValidationError;
|
|
@@ -203,7 +203,7 @@ const JourneysReplaceDraft200 = Journey;
|
|
|
203
203
|
const JourneysReplaceDraft400 = MalformedRequestError;
|
|
204
204
|
const JourneysReplaceDraft401 = UnauthorizedError;
|
|
205
205
|
const JourneysReplaceDraft402 = PaymentRequiredError;
|
|
206
|
-
const JourneysReplaceDraft403 =
|
|
206
|
+
const JourneysReplaceDraft403 = ForbiddenError;
|
|
207
207
|
const JourneysReplaceDraft404 = ResourceNotFoundError;
|
|
208
208
|
const JourneysReplaceDraft409 = ConflictError;
|
|
209
209
|
const JourneysReplaceDraft422 = ValidationError;
|
|
@@ -226,7 +226,7 @@ const JourneysPublish200 = Journey;
|
|
|
226
226
|
const JourneysPublish400 = MalformedRequestError;
|
|
227
227
|
const JourneysPublish401 = UnauthorizedError;
|
|
228
228
|
const JourneysPublish402 = PaymentRequiredError;
|
|
229
|
-
const JourneysPublish403 =
|
|
229
|
+
const JourneysPublish403 = ForbiddenError;
|
|
230
230
|
const JourneysPublish404 = ResourceNotFoundError;
|
|
231
231
|
const JourneysPublish409 = ConflictError;
|
|
232
232
|
const JourneysPublish422 = ValidationError;
|
|
@@ -238,7 +238,7 @@ const JourneysResume200 = Journey;
|
|
|
238
238
|
const JourneysResume400 = MalformedRequestError;
|
|
239
239
|
const JourneysResume401 = UnauthorizedError;
|
|
240
240
|
const JourneysResume402 = PaymentRequiredError;
|
|
241
|
-
const JourneysResume403 =
|
|
241
|
+
const JourneysResume403 = ForbiddenError;
|
|
242
242
|
const JourneysResume404 = ResourceNotFoundError;
|
|
243
243
|
const JourneysResume409 = ConflictError;
|
|
244
244
|
const JourneysResume422 = ValidationError;
|