samva 0.51.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.
Files changed (83) hide show
  1. package/AGENTS.md +5 -2
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +67 -28
  4. package/dist/client/sdk.gen.js +157 -29
  5. package/dist/client/types.gen.d.ts +520 -281
  6. package/dist/effect/campaigns.d.ts +56 -56
  7. package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
  8. package/dist/effect/descriptors/integrations-catalog.js +1 -1
  9. package/dist/effect/descriptors/integrations.d.ts +1 -1
  10. package/dist/effect/descriptors/integrations.js +1 -1
  11. package/dist/effect/descriptors/logs.d.ts +21 -0
  12. package/dist/effect/descriptors/logs.js +23 -0
  13. package/dist/effect/descriptors/whats-app.d.ts +1 -1
  14. package/dist/effect/descriptors/whats-app.js +1 -1
  15. package/dist/effect/generated/agents.js +4 -4
  16. package/dist/effect/generated/campaigns.d.ts +18 -6
  17. package/dist/effect/generated/campaigns.js +2 -6
  18. package/dist/effect/generated/email.js +3 -3
  19. package/dist/effect/generated/index.d.ts +3 -1
  20. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  21. package/dist/effect/generated/integrations-catalog.js +17 -28
  22. package/dist/effect/generated/integrations.d.ts +20 -40
  23. package/dist/effect/generated/integrations.js +9 -13
  24. package/dist/effect/generated/journeys.d.ts +61 -13
  25. package/dist/effect/generated/journeys.js +5 -5
  26. package/dist/effect/generated/logs.d.ts +2311 -0
  27. package/dist/effect/generated/logs.js +312 -0
  28. package/dist/effect/generated/mailboxes.d.ts +30 -24
  29. package/dist/effect/generated/mailboxes.js +20 -20
  30. package/dist/effect/generated/messages.d.ts +1 -882
  31. package/dist/effect/generated/messages.js +4 -243
  32. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  33. package/dist/effect/generated/newsletter-domains.js +5 -5
  34. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  35. package/dist/effect/generated/newsletter-issues.js +12 -12
  36. package/dist/effect/generated/newsletters.d.ts +76 -16
  37. package/dist/effect/generated/newsletters.js +6 -6
  38. package/dist/effect/generated/organizations.js +1 -1
  39. package/dist/effect/generated/scheduled-messages.js +1 -1
  40. package/dist/effect/generated/shared.d.ts +1138 -257
  41. package/dist/effect/generated/shared.js +321 -82
  42. package/dist/effect/generated/subscriptions.d.ts +4 -4
  43. package/dist/effect/generated/subscriptions.js +2 -6
  44. package/dist/effect/generated/template-registrations.d.ts +46 -10
  45. package/dist/effect/generated/template-registrations.js +4 -4
  46. package/dist/effect/generated/templates.js +2 -2
  47. package/dist/effect/generated/whats-app-flows.d.ts +151 -31
  48. package/dist/effect/generated/whats-app-flows.js +11 -11
  49. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  50. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  51. package/dist/effect/generated/whats-app.d.ts +187 -65
  52. package/dist/effect/generated/whats-app.js +18 -24
  53. package/dist/effect/generated-metadata.d.ts +15 -3
  54. package/dist/effect/generated-metadata.js +375 -349
  55. package/dist/effect/index.d.ts +1 -0
  56. package/dist/effect/index.js +2 -1
  57. package/dist/effect/integrations-catalog.d.ts +92 -4
  58. package/dist/effect/integrations.d.ts +40 -8
  59. package/dist/effect/internal/client.js +25 -3
  60. package/dist/effect/internal/log-events.d.ts +19 -0
  61. package/dist/effect/internal/log-events.js +53 -0
  62. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  63. package/dist/effect/internal/mailbox-events.js +4 -3
  64. package/dist/effect/journeys.d.ts +148 -148
  65. package/dist/effect/logs.d.ts +149 -0
  66. package/dist/effect/logs.js +18 -0
  67. package/dist/effect/mailboxes.d.ts +156 -150
  68. package/dist/effect/mailboxes.js +1 -1
  69. package/dist/effect/newsletter-domains.d.ts +2 -2
  70. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  71. package/dist/effect/whatsapp.d.ts +73 -3
  72. package/dist/mailbox-events.d.ts +50 -3
  73. package/dist/mailbox-events.js +38 -19
  74. package/dist/package.js +1 -1
  75. package/dist/promises/client.d.ts +3 -1
  76. package/dist/promises/client.js +3 -1
  77. package/dist/promises/errors.gen.d.ts +2 -0
  78. package/dist/promises/errors.gen.js +137 -34
  79. package/dist/promises/types.gen.d.ts +1 -1
  80. package/dist/request-id.d.ts +3 -0
  81. package/dist/request-id.js +7 -0
  82. package/dist/service-map.d.ts +14 -3
  83. 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 nextOffset: number | null;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 offset?: number | null;
377
- readonly revision?: string;
369
+ readonly limit?: number | null;
370
+ readonly cursor?: string;
378
371
  };
379
372
  export declare const IntegrationsListToolsQuery: Schema.Struct<{
380
- readonly offset: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
381
- readonly revision: Schema.optionalKey<Schema.String>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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 offset: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
846
- readonly revision: Schema.optionalKey<Schema.String>;
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 nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
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
- 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" })),
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
- 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}$" })))
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
- 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" }))
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.nextOffset for the complete inventory."), HttpApiEndpoint.post("integrationsInstall", "/v1/integrations", {
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. 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", {
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. 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", {
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 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") {};
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, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
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 = FlagDisabledError | ForbiddenError;
1057
- export declare const JourneysCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
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 = FlagDisabledError | ForbiddenError;
2144
- export declare const JourneysReplaceDraft403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
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 = FlagDisabledError | ForbiddenError;
2586
- export declare const JourneysPublish403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
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 = FlagDisabledError | ForbiddenError;
2806
- export declare const JourneysResume403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
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.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
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.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
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.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
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.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
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, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
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 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
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 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
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 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
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 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
241
+ const JourneysResume403 = ForbiddenError;
242
242
  const JourneysResume404 = ResourceNotFoundError;
243
243
  const JourneysResume409 = ConflictError;
244
244
  const JourneysResume422 = ValidationError;