samva 0.55.0 → 0.56.1

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 (235) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +9 -8
  3. package/dist/client/sdk.gen.d.ts +13 -4
  4. package/dist/client/sdk.gen.js +32 -1
  5. package/dist/client/types.gen.d.ts +66 -6
  6. package/dist/effect/accounts.js +9 -10
  7. package/dist/effect/agents.js +16 -17
  8. package/dist/effect/analytics.js +9 -10
  9. package/dist/effect/api-keys.js +11 -12
  10. package/dist/effect/approval-requests.js +7 -8
  11. package/dist/effect/attachments.js +7 -8
  12. package/dist/effect/brands.js +9 -10
  13. package/dist/effect/campaigns.js +18 -19
  14. package/dist/effect/contact-groups.js +13 -14
  15. package/dist/effect/contacts.js +29 -30
  16. package/dist/effect/conversations.js +16 -17
  17. package/dist/effect/custom-fields.js +7 -8
  18. package/dist/effect/descriptors/accounts.d.ts +50 -52
  19. package/dist/effect/descriptors/accounts.js +50 -52
  20. package/dist/effect/descriptors/agents.d.ts +113 -115
  21. package/dist/effect/descriptors/agents.js +120 -122
  22. package/dist/effect/descriptors/analytics.d.ts +47 -49
  23. package/dist/effect/descriptors/analytics.js +42 -44
  24. package/dist/effect/descriptors/api-keys.d.ts +69 -71
  25. package/dist/effect/descriptors/api-keys.js +73 -75
  26. package/dist/effect/descriptors/approval-requests.d.ts +34 -36
  27. package/dist/effect/descriptors/approval-requests.js +36 -38
  28. package/dist/effect/descriptors/attachments.d.ts +34 -36
  29. package/dist/effect/descriptors/attachments.js +36 -38
  30. package/dist/effect/descriptors/brands.d.ts +51 -53
  31. package/dist/effect/descriptors/brands.js +53 -55
  32. package/dist/effect/descriptors/campaigns.d.ts +130 -132
  33. package/dist/effect/descriptors/campaigns.js +137 -139
  34. package/dist/effect/descriptors/contact-groups.d.ts +86 -88
  35. package/dist/effect/descriptors/contact-groups.js +90 -92
  36. package/dist/effect/descriptors/contacts.d.ts +242 -244
  37. package/dist/effect/descriptors/contacts.js +227 -229
  38. package/dist/effect/descriptors/conversations.d.ts +114 -116
  39. package/dist/effect/descriptors/conversations.js +123 -125
  40. package/dist/effect/descriptors/custom-fields.d.ts +33 -35
  41. package/dist/effect/descriptors/custom-fields.js +33 -35
  42. package/dist/effect/descriptors/email.d.ts +623 -625
  43. package/dist/effect/descriptors/email.js +562 -578
  44. package/dist/effect/descriptors/events.d.ts +15 -17
  45. package/dist/effect/descriptors/events.js +14 -16
  46. package/dist/effect/descriptors/feedback.d.ts +7 -9
  47. package/dist/effect/descriptors/feedback.js +3 -3
  48. package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
  49. package/dist/effect/descriptors/integrations-catalog.js +142 -144
  50. package/dist/effect/descriptors/integrations.d.ts +60 -62
  51. package/dist/effect/descriptors/integrations.js +63 -65
  52. package/dist/effect/descriptors/journeys.d.ts +123 -125
  53. package/dist/effect/descriptors/journeys.js +133 -135
  54. package/dist/effect/descriptors/logs.d.ts +16 -18
  55. package/dist/effect/descriptors/logs.js +16 -18
  56. package/dist/effect/descriptors/mailboxes.d.ts +780 -782
  57. package/dist/effect/descriptors/mailboxes.js +795 -797
  58. package/dist/effect/descriptors/media.d.ts +43 -45
  59. package/dist/effect/descriptors/media.js +46 -48
  60. package/dist/effect/descriptors/messages.d.ts +86 -88
  61. package/dist/effect/descriptors/messages.js +83 -92
  62. package/dist/effect/descriptors/namespaces.d.ts +96 -98
  63. package/dist/effect/descriptors/namespaces.js +107 -109
  64. package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
  65. package/dist/effect/descriptors/newsletter-domains.js +39 -41
  66. package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
  67. package/dist/effect/descriptors/newsletter-issues.js +109 -111
  68. package/dist/effect/descriptors/newsletters.d.ts +43 -45
  69. package/dist/effect/descriptors/newsletters.js +46 -48
  70. package/dist/effect/descriptors/operations.d.ts +25 -27
  71. package/dist/effect/descriptors/operations.js +26 -28
  72. package/dist/effect/descriptors/organizations.d.ts +96 -98
  73. package/dist/effect/descriptors/organizations.js +86 -88
  74. package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
  75. package/dist/effect/descriptors/phone-numbers.js +40 -42
  76. package/dist/effect/descriptors/policies.d.ts +26 -28
  77. package/dist/effect/descriptors/policies.js +29 -31
  78. package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
  79. package/dist/effect/descriptors/scheduled-messages.js +43 -45
  80. package/dist/effect/descriptors/subscriptions.d.ts +7 -9
  81. package/dist/effect/descriptors/subscriptions.js +3 -3
  82. package/dist/effect/descriptors/template-registrations.d.ts +26 -28
  83. package/dist/effect/descriptors/template-registrations.js +29 -31
  84. package/dist/effect/descriptors/template-share-links.d.ts +44 -46
  85. package/dist/effect/descriptors/template-share-links.js +49 -51
  86. package/dist/effect/descriptors/templates.d.ts +361 -363
  87. package/dist/effect/descriptors/templates.js +348 -350
  88. package/dist/effect/descriptors/topic-forms.d.ts +44 -46
  89. package/dist/effect/descriptors/topic-forms.js +49 -51
  90. package/dist/effect/descriptors/topics.d.ts +77 -79
  91. package/dist/effect/descriptors/topics.js +80 -82
  92. package/dist/effect/descriptors/webhooks.d.ts +96 -98
  93. package/dist/effect/descriptors/webhooks.js +103 -105
  94. package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
  95. package/dist/effect/descriptors/whats-app-flows.js +90 -92
  96. package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
  97. package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
  98. package/dist/effect/descriptors/whats-app.d.ts +111 -103
  99. package/dist/effect/descriptors/whats-app.js +111 -103
  100. package/dist/effect/descriptors/whoami.d.ts +7 -9
  101. package/dist/effect/descriptors/whoami.js +3 -3
  102. package/dist/effect/email.js +66 -67
  103. package/dist/effect/events.js +5 -6
  104. package/dist/effect/feedback.js +4 -4
  105. package/dist/effect/generated/accounts.d.ts +144 -142
  106. package/dist/effect/generated/accounts.js +14 -9
  107. package/dist/effect/generated/agents.d.ts +1502 -1493
  108. package/dist/effect/generated/agents.js +28 -16
  109. package/dist/effect/generated/analytics.d.ts +55 -53
  110. package/dist/effect/generated/analytics.js +14 -9
  111. package/dist/effect/generated/api-keys.d.ts +216 -212
  112. package/dist/effect/generated/api-keys.js +18 -11
  113. package/dist/effect/generated/approval-requests.d.ts +60 -60
  114. package/dist/effect/generated/approval-requests.js +10 -7
  115. package/dist/effect/generated/attachments.d.ts +32 -32
  116. package/dist/effect/generated/attachments.js +10 -7
  117. package/dist/effect/generated/brands.d.ts +179 -177
  118. package/dist/effect/generated/brands.js +14 -9
  119. package/dist/effect/generated/campaigns.d.ts +1083 -1072
  120. package/dist/effect/generated/campaigns.js +32 -18
  121. package/dist/effect/generated/contact-events.d.ts +3 -6
  122. package/dist/effect/generated/contact-events.js +4 -4
  123. package/dist/effect/generated/contact-groups.d.ts +186 -180
  124. package/dist/effect/generated/contact-groups.js +22 -13
  125. package/dist/effect/generated/contacts.d.ts +1565 -1545
  126. package/dist/effect/generated/contacts.js +50 -27
  127. package/dist/effect/generated/conversations.d.ts +340 -331
  128. package/dist/effect/generated/conversations.js +28 -16
  129. package/dist/effect/generated/custom-fields.d.ts +63 -63
  130. package/dist/effect/generated/custom-fields.js +10 -7
  131. package/dist/effect/generated/email.d.ts +2731 -2671
  132. package/dist/effect/generated/email.js +130 -67
  133. package/dist/effect/generated/events.d.ts +160 -162
  134. package/dist/effect/generated/events.js +6 -5
  135. package/dist/effect/generated/feedback.d.ts +3 -6
  136. package/dist/effect/generated/feedback.js +4 -4
  137. package/dist/effect/generated/index.d.ts +174 -45
  138. package/dist/effect/generated/integrations-catalog.d.ts +459 -446
  139. package/dist/effect/generated/integrations-catalog.js +36 -20
  140. package/dist/effect/generated/integrations.d.ts +155 -152
  141. package/dist/effect/generated/integrations.js +16 -10
  142. package/dist/effect/generated/journeys.d.ts +864 -854
  143. package/dist/effect/generated/journeys.js +30 -17
  144. package/dist/effect/generated/logs.d.ts +147 -149
  145. package/dist/effect/generated/logs.js +6 -5
  146. package/dist/effect/generated/mailboxes.d.ts +7271 -7196
  147. package/dist/effect/generated/mailboxes.js +160 -82
  148. package/dist/effect/generated/media.d.ts +77 -76
  149. package/dist/effect/generated/media.js +12 -8
  150. package/dist/effect/generated/messages.d.ts +1092 -1086
  151. package/dist/effect/generated/messages.js +22 -13
  152. package/dist/effect/generated/namespaces.d.ts +184 -177
  153. package/dist/effect/generated/namespaces.js +24 -14
  154. package/dist/effect/generated/newsletter-domains.d.ts +57 -57
  155. package/dist/effect/generated/newsletter-domains.js +10 -7
  156. package/dist/effect/generated/newsletter-issues.d.ts +225 -218
  157. package/dist/effect/generated/newsletter-issues.js +24 -14
  158. package/dist/effect/generated/newsletters.d.ts +46 -45
  159. package/dist/effect/generated/newsletters.js +12 -8
  160. package/dist/effect/generated/operations.d.ts +79 -80
  161. package/dist/effect/generated/operations.js +8 -6
  162. package/dist/effect/generated/organizations.d.ts +438 -430
  163. package/dist/effect/generated/organizations.js +26 -15
  164. package/dist/effect/generated/phone-numbers.d.ts +87 -86
  165. package/dist/effect/generated/phone-numbers.js +12 -8
  166. package/dist/effect/generated/policies.d.ts +64 -65
  167. package/dist/effect/generated/policies.js +8 -6
  168. package/dist/effect/generated/scheduled-messages.d.ts +66 -65
  169. package/dist/effect/generated/scheduled-messages.js +12 -8
  170. package/dist/effect/generated/shared.d.ts +37 -37
  171. package/dist/effect/generated/shared.js +63 -61
  172. package/dist/effect/generated/subscriptions.d.ts +3 -6
  173. package/dist/effect/generated/subscriptions.js +4 -4
  174. package/dist/effect/generated/template-registrations.d.ts +142 -134
  175. package/dist/effect/generated/template-registrations.js +9 -6
  176. package/dist/effect/generated/template-share-links.d.ts +25 -24
  177. package/dist/effect/generated/template-share-links.js +12 -8
  178. package/dist/effect/generated/templates.d.ts +2678 -2645
  179. package/dist/effect/generated/templates.js +76 -40
  180. package/dist/effect/generated/topic-forms.d.ts +47 -46
  181. package/dist/effect/generated/topic-forms.js +12 -8
  182. package/dist/effect/generated/topics.d.ts +204 -199
  183. package/dist/effect/generated/topics.js +20 -12
  184. package/dist/effect/generated/webhooks.d.ts +284 -277
  185. package/dist/effect/generated/webhooks.js +28 -14
  186. package/dist/effect/generated/whats-app-flows.d.ts +250 -244
  187. package/dist/effect/generated/whats-app-flows.js +22 -13
  188. package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
  189. package/dist/effect/generated/whats-app-setup-links.js +10 -7
  190. package/dist/effect/generated/whats-app.d.ts +482 -298
  191. package/dist/effect/generated/whats-app.js +58 -16
  192. package/dist/effect/generated/whoami.d.ts +3 -6
  193. package/dist/effect/generated/whoami.js +4 -4
  194. package/dist/effect/generated-metadata.d.ts +6 -0
  195. package/dist/effect/generated-metadata.js +1 -0
  196. package/dist/effect/integrations-catalog.js +20 -21
  197. package/dist/effect/integrations.js +10 -11
  198. package/dist/effect/internal/client.d.ts +2 -1
  199. package/dist/effect/internal/client.js +3 -3
  200. package/dist/effect/internal/email-sender.js +5 -4
  201. package/dist/effect/internal/operation.d.ts +11 -7
  202. package/dist/effect/internal/operation.js +17 -12
  203. package/dist/effect/internal/send.js +11 -8
  204. package/dist/effect/journeys.js +17 -18
  205. package/dist/effect/logs.js +5 -6
  206. package/dist/effect/mailboxes.js +82 -83
  207. package/dist/effect/media.js +8 -9
  208. package/dist/effect/messages.js +12 -13
  209. package/dist/effect/namespaces.js +14 -15
  210. package/dist/effect/newsletter-domains.js +7 -8
  211. package/dist/effect/newsletter-issues.js +14 -15
  212. package/dist/effect/newsletters.js +8 -9
  213. package/dist/effect/operations.js +6 -7
  214. package/dist/effect/organizations.js +15 -16
  215. package/dist/effect/phone-numbers.js +8 -9
  216. package/dist/effect/policies.js +6 -7
  217. package/dist/effect/runtime.js +3 -3
  218. package/dist/effect/scheduled-messages.js +8 -9
  219. package/dist/effect/subscriptions.js +4 -4
  220. package/dist/effect/template-registrations.js +6 -7
  221. package/dist/effect/template-share-links.js +8 -9
  222. package/dist/effect/templates.js +40 -41
  223. package/dist/effect/topic-forms.js +8 -9
  224. package/dist/effect/topics.js +12 -13
  225. package/dist/effect/webhooks.d.ts +4 -4
  226. package/dist/effect/webhooks.js +14 -15
  227. package/dist/effect/whatsapp-flows.js +13 -14
  228. package/dist/effect/whatsapp-setup-links.js +7 -8
  229. package/dist/effect/whatsapp.d.ts +6 -0
  230. package/dist/effect/whatsapp.js +18 -17
  231. package/dist/effect/whoami.js +4 -4
  232. package/dist/package.json.js +1 -1
  233. package/dist/promises/types.gen.d.ts +1 -1
  234. package/dist/service-map.d.ts +5 -0
  235. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
1
+ import { HttpApiEndpoint } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
4
4
  export type IntegrationToolKind = "query" | "mutation";
@@ -453,34 +453,38 @@ export type IntegrationsReadTool500 = InternalError;
453
453
  export declare const IntegrationsReadTool500: typeof InternalError;
454
454
  export type IntegrationsReadTool504 = GatewayTimeoutError;
455
455
  export declare const IntegrationsReadTool504: typeof GatewayTimeoutError;
456
- declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations", HttpApiEndpoint.HttpApiEndpoint<"integrationsGet", "GET", "/v1/integrations/:integrationId", Schema.toCodecStringTree<Schema.Struct<{
457
- readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
458
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
459
- readonly app: Schema.String;
460
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
461
- readonly id: Schema.brand<Schema.String, "IntegrationId">;
462
- readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
463
- readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
464
- readonly supportsContactAccounts: Schema.Boolean;
465
- readonly answerWithoutApproval: Schema.Boolean;
466
- readonly tools: Schema.$Array<Schema.Struct<{
467
- readonly name: Schema.String;
468
- readonly title: Schema.String;
469
- readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
470
- readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
471
- readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
472
- readonly granted: Schema.Boolean;
473
- readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
474
- readonly enabled: Schema.Boolean;
475
- readonly runsWithoutApproval: Schema.Boolean;
456
+ export declare const IntegrationsListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsList", "GET", "/v1/integrations", never, Schema.toCodecStringTree<Schema.Struct<{
457
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
458
+ readonly cursor: Schema.optionalKey<Schema.String>;
459
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
460
+ readonly items: Schema.$Array<Schema.Struct<{
461
+ readonly app: Schema.String;
462
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
463
+ readonly id: Schema.brand<Schema.String, "IntegrationId">;
464
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
465
+ readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
466
+ readonly supportsContactAccounts: Schema.Boolean;
467
+ readonly answerWithoutApproval: Schema.Boolean;
468
+ readonly tools: Schema.$Array<Schema.Struct<{
469
+ readonly name: Schema.String;
470
+ readonly title: Schema.String;
471
+ readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
472
+ readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
473
+ readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
474
+ readonly granted: Schema.Boolean;
475
+ readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
476
+ readonly enabled: Schema.Boolean;
477
+ readonly runsWithoutApproval: Schema.Boolean;
478
+ }>>;
479
+ readonly toolPage: Schema.Struct<{
480
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
481
+ readonly revision: Schema.String;
482
+ }>;
483
+ readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
484
+ readonly createdAt: Schema.String;
485
+ readonly updatedAt: Schema.String;
476
486
  }>>;
477
- readonly toolPage: Schema.Struct<{
478
- readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
479
- readonly revision: Schema.String;
480
- }>;
481
- readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
482
- readonly createdAt: Schema.String;
483
- readonly updatedAt: Schema.String;
487
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
484
488
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
485
489
  readonly _tag: "ForbiddenError";
486
490
  readonly message: string;
@@ -529,26 +533,6 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
529
533
  readonly _tag: Schema.tag<"MalformedRequestError">;
530
534
  readonly message: Schema.String;
531
535
  readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
532
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
533
- readonly _tag: "ResourceNotFoundError";
534
- readonly resource: string;
535
- readonly id: string;
536
- readonly message: string;
537
- }, readonly [Schema.Struct<{
538
- readonly _tag: Schema.tag<"ResourceNotFoundError">;
539
- readonly resource: Schema.String;
540
- readonly id: Schema.String;
541
- readonly message: Schema.String;
542
- }>], {
543
- readonly _tag: "ResourceNotFoundError";
544
- readonly resource: string;
545
- readonly id: string;
546
- readonly message: string;
547
- }>, Schema.Struct<{
548
- readonly _tag: Schema.tag<"ResourceNotFoundError">;
549
- readonly resource: Schema.String;
550
- readonly id: Schema.String;
551
- readonly message: Schema.String;
552
536
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
553
537
  readonly _tag: "UnauthorizedError";
554
538
  readonly message: string;
@@ -581,7 +565,8 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
581
565
  readonly _tag: Schema.tag<"ValidationError">;
582
566
  readonly message: Schema.String;
583
567
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
584
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsInstall", "POST", "/v1/integrations", never, never, Schema.toCodecJson<Schema.Struct<{
568
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
569
+ export declare const IntegrationsInstallEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsInstall", "POST", "/v1/integrations", never, never, Schema.toCodecJson<Schema.Struct<{
585
570
  readonly app: Schema.String;
586
571
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
587
572
  readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
@@ -711,38 +696,35 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
711
696
  readonly _tag: Schema.tag<"ValidationError">;
712
697
  readonly message: Schema.String;
713
698
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
714
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsList", "GET", "/v1/integrations", never, Schema.toCodecStringTree<Schema.Struct<{
715
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
716
- readonly cursor: Schema.optionalKey<Schema.String>;
717
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
718
- readonly items: Schema.$Array<Schema.Struct<{
719
- readonly app: Schema.String;
720
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
721
- readonly id: Schema.brand<Schema.String, "IntegrationId">;
722
- readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
723
- readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
724
- readonly supportsContactAccounts: Schema.Boolean;
725
- readonly answerWithoutApproval: Schema.Boolean;
726
- readonly tools: Schema.$Array<Schema.Struct<{
727
- readonly name: Schema.String;
728
- readonly title: Schema.String;
729
- readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
730
- readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
731
- readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
732
- readonly granted: Schema.Boolean;
733
- readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
734
- readonly enabled: Schema.Boolean;
735
- readonly runsWithoutApproval: Schema.Boolean;
736
- }>>;
737
- readonly toolPage: Schema.Struct<{
738
- readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
739
- readonly revision: Schema.String;
740
- }>;
741
- readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
742
- readonly createdAt: Schema.String;
743
- readonly updatedAt: Schema.String;
699
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
700
+ export declare const IntegrationsGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsGet", "GET", "/v1/integrations/:integrationId", Schema.toCodecStringTree<Schema.Struct<{
701
+ readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
702
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
703
+ readonly app: Schema.String;
704
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
705
+ readonly id: Schema.brand<Schema.String, "IntegrationId">;
706
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
707
+ readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
708
+ readonly supportsContactAccounts: Schema.Boolean;
709
+ readonly answerWithoutApproval: Schema.Boolean;
710
+ readonly tools: Schema.$Array<Schema.Struct<{
711
+ readonly name: Schema.String;
712
+ readonly title: Schema.String;
713
+ readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
714
+ readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
715
+ readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
716
+ readonly granted: Schema.Boolean;
717
+ readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
718
+ readonly enabled: Schema.Boolean;
719
+ readonly runsWithoutApproval: Schema.Boolean;
744
720
  }>>;
745
- readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
721
+ readonly toolPage: Schema.Struct<{
722
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
723
+ readonly revision: Schema.String;
724
+ }>;
725
+ readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
726
+ readonly createdAt: Schema.String;
727
+ readonly updatedAt: Schema.String;
746
728
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
747
729
  readonly _tag: "ForbiddenError";
748
730
  readonly message: string;
@@ -791,6 +773,26 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
791
773
  readonly _tag: Schema.tag<"MalformedRequestError">;
792
774
  readonly message: Schema.String;
793
775
  readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
776
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
777
+ readonly _tag: "ResourceNotFoundError";
778
+ readonly resource: string;
779
+ readonly id: string;
780
+ readonly message: string;
781
+ }, readonly [Schema.Struct<{
782
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
783
+ readonly resource: Schema.String;
784
+ readonly id: Schema.String;
785
+ readonly message: Schema.String;
786
+ }>], {
787
+ readonly _tag: "ResourceNotFoundError";
788
+ readonly resource: string;
789
+ readonly id: string;
790
+ readonly message: string;
791
+ }>, Schema.Struct<{
792
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
793
+ readonly resource: Schema.String;
794
+ readonly id: Schema.String;
795
+ readonly message: Schema.String;
794
796
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
795
797
  readonly _tag: "UnauthorizedError";
796
798
  readonly message: string;
@@ -823,24 +825,12 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
823
825
  readonly _tag: Schema.tag<"ValidationError">;
824
826
  readonly message: Schema.String;
825
827
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
826
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsListTools", "GET", "/v1/integrations/:integrationId/tools", Schema.toCodecStringTree<Schema.Struct<{
828
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
829
+ export declare const IntegrationsRemoveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsRemove", "DELETE", "/v1/integrations/:integrationId", Schema.toCodecStringTree<Schema.Struct<{
827
830
  readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
828
- }>>, Schema.toCodecStringTree<Schema.Struct<{
829
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
830
- readonly cursor: Schema.optionalKey<Schema.String>;
831
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
832
- readonly items: Schema.$Array<Schema.Struct<{
833
- readonly name: Schema.String;
834
- readonly title: Schema.String;
835
- readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
836
- readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
837
- readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
838
- readonly granted: Schema.Boolean;
839
- readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
840
- readonly enabled: Schema.Boolean;
841
- readonly runsWithoutApproval: Schema.Boolean;
842
- }>>;
843
- readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
831
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
832
+ readonly id: Schema.brand<Schema.String, "IntegrationId">;
833
+ readonly deleted: Schema.Literal<true>;
844
834
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
845
835
  readonly _tag: "ConflictError";
846
836
  readonly message: string;
@@ -961,18 +951,44 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
961
951
  readonly _tag: Schema.tag<"ValidationError">;
962
952
  readonly message: Schema.String;
963
953
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
964
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsReadTool", "GET", "/v1/integrations/:integrationId/tools/:tool", Schema.toCodecStringTree<Schema.Struct<{
954
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
955
+ export declare const IntegrationsUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsUpdate", "PATCH", "/v1/integrations/:integrationId", Schema.toCodecStringTree<Schema.Struct<{
965
956
  readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
966
- readonly tool: Schema.String;
967
- }>>, Schema.toCodecStringTree<Schema.Struct<{
968
- readonly offset: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
969
- readonly revision: Schema.optionalKey<Schema.String>;
970
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
971
- readonly data: Schema.String;
972
- readonly offset: Schema.Finite;
973
- readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
974
- readonly totalCharacters: Schema.Finite;
975
- readonly revision: Schema.String;
957
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
958
+ readonly answerWithoutApproval: Schema.optionalKey<Schema.Boolean>;
959
+ readonly enabledTools: Schema.optionalKey<Schema.$Array<Schema.String>>;
960
+ readonly tool: Schema.optionalKey<Schema.Struct<{
961
+ readonly name: Schema.String;
962
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
963
+ readonly runsWithoutApproval: Schema.optionalKey<Schema.Boolean>;
964
+ }>>;
965
+ readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
966
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
967
+ readonly app: Schema.String;
968
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
969
+ readonly id: Schema.brand<Schema.String, "IntegrationId">;
970
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
971
+ readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
972
+ readonly supportsContactAccounts: Schema.Boolean;
973
+ readonly answerWithoutApproval: Schema.Boolean;
974
+ readonly tools: Schema.$Array<Schema.Struct<{
975
+ readonly name: Schema.String;
976
+ readonly title: Schema.String;
977
+ readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
978
+ readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
979
+ readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
980
+ readonly granted: Schema.Boolean;
981
+ readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
982
+ readonly enabled: Schema.Boolean;
983
+ readonly runsWithoutApproval: Schema.Boolean;
984
+ }>>;
985
+ readonly toolPage: Schema.Struct<{
986
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
987
+ readonly revision: Schema.String;
988
+ }>;
989
+ readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
990
+ readonly createdAt: Schema.String;
991
+ readonly updatedAt: Schema.String;
976
992
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
977
993
  readonly _tag: "ConflictError";
978
994
  readonly message: string;
@@ -1093,11 +1109,25 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
1093
1109
  readonly _tag: Schema.tag<"ValidationError">;
1094
1110
  readonly message: Schema.String;
1095
1111
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1096
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsRemove", "DELETE", "/v1/integrations/:integrationId", Schema.toCodecStringTree<Schema.Struct<{
1112
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
1113
+ export declare const IntegrationsListToolsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsListTools", "GET", "/v1/integrations/:integrationId/tools", Schema.toCodecStringTree<Schema.Struct<{
1097
1114
  readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
1098
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
1099
- readonly id: Schema.brand<Schema.String, "IntegrationId">;
1100
- readonly deleted: Schema.Literal<true>;
1115
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1116
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1117
+ readonly cursor: Schema.optionalKey<Schema.String>;
1118
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1119
+ readonly items: Schema.$Array<Schema.Struct<{
1120
+ readonly name: Schema.String;
1121
+ readonly title: Schema.String;
1122
+ readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
1123
+ readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
1124
+ readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
1125
+ readonly granted: Schema.Boolean;
1126
+ readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
1127
+ readonly enabled: Schema.Boolean;
1128
+ readonly runsWithoutApproval: Schema.Boolean;
1129
+ }>>;
1130
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
1101
1131
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
1102
1132
  readonly _tag: "ConflictError";
1103
1133
  readonly message: string;
@@ -1218,43 +1248,19 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
1218
1248
  readonly _tag: Schema.tag<"ValidationError">;
1219
1249
  readonly message: Schema.String;
1220
1250
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1221
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsUpdate", "PATCH", "/v1/integrations/:integrationId", Schema.toCodecStringTree<Schema.Struct<{
1251
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
1252
+ export declare const IntegrationsReadToolEndpoint: HttpApiEndpoint.HttpApiEndpoint<"integrationsReadTool", "GET", "/v1/integrations/:integrationId/tools/:tool", Schema.toCodecStringTree<Schema.Struct<{
1222
1253
  readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
1223
- }>>, never, Schema.toCodecJson<Schema.Struct<{
1224
- readonly answerWithoutApproval: Schema.optionalKey<Schema.Boolean>;
1225
- readonly enabledTools: Schema.optionalKey<Schema.$Array<Schema.String>>;
1226
- readonly tool: Schema.optionalKey<Schema.Struct<{
1227
- readonly name: Schema.String;
1228
- readonly enabled: Schema.optionalKey<Schema.Boolean>;
1229
- readonly runsWithoutApproval: Schema.optionalKey<Schema.Boolean>;
1230
- }>>;
1231
- readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1232
- }>>, never, Schema.toCodecJson<Schema.Struct<{
1233
- readonly app: Schema.String;
1234
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1235
- readonly id: Schema.brand<Schema.String, "IntegrationId">;
1236
- readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
1237
- readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
1238
- readonly supportsContactAccounts: Schema.Boolean;
1239
- readonly answerWithoutApproval: Schema.Boolean;
1240
- readonly tools: Schema.$Array<Schema.Struct<{
1241
- readonly name: Schema.String;
1242
- readonly title: Schema.String;
1243
- readonly kind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
1244
- readonly effect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
1245
- readonly guards: Schema.$Array<Schema.Union<readonly [Schema.Literal<"pinnedDestination">, Schema.Literal<"insideHours">]>>;
1246
- readonly granted: Schema.Boolean;
1247
- readonly unavailableReason: Schema.optionalKey<Schema.Literal<"input_schema_too_large">>;
1248
- readonly enabled: Schema.Boolean;
1249
- readonly runsWithoutApproval: Schema.Boolean;
1250
- }>>;
1251
- readonly toolPage: Schema.Struct<{
1252
- readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
1253
- readonly revision: Schema.String;
1254
- }>;
1255
- readonly installedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
1256
- readonly createdAt: Schema.String;
1257
- readonly updatedAt: Schema.String;
1254
+ readonly tool: Schema.String;
1255
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1256
+ readonly offset: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1257
+ readonly revision: Schema.optionalKey<Schema.String>;
1258
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1259
+ readonly data: Schema.String;
1260
+ readonly offset: Schema.Finite;
1261
+ readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
1262
+ readonly totalCharacters: Schema.Finite;
1263
+ readonly revision: Schema.String;
1258
1264
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
1259
1265
  readonly _tag: "ConflictError";
1260
1266
  readonly message: string;
@@ -1375,7 +1381,4 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
1375
1381
  readonly _tag: Schema.tag<"ValidationError">;
1376
1382
  readonly message: Schema.String;
1377
1383
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1378
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
1379
- export declare class IntegrationsGroup extends IntegrationsGroup_base {
1380
- }
1381
- export {};
1384
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
1
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/integrations.ts
@@ -146,7 +146,7 @@ const IntegrationsReadTool409 = ConflictError;
146
146
  const IntegrationsReadTool422 = ValidationError;
147
147
  const IntegrationsReadTool500 = InternalError;
148
148
  const IntegrationsReadTool504 = GatewayTimeoutError;
149
- var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(HttpApiEndpoint.get("integrationsList", "/v1/integrations", {
149
+ const IntegrationsListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("integrationsList", "/v1/integrations", {
150
150
  query: IntegrationsListQuery,
151
151
  success: IntegrationsList200,
152
152
  error: [
@@ -157,7 +157,8 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
157
157
  IntegrationsList500,
158
158
  IntegrationsList504.pipe(HttpApiSchema.status(504))
159
159
  ]
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", {
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."))();
161
+ const IntegrationsInstallEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("integrationsInstall", "/v1/integrations", {
161
162
  payload: IntegrationsInstallRequestJson,
162
163
  success: IntegrationsInstall201.pipe(HttpApiSchema.status(201)),
163
164
  error: [
@@ -169,7 +170,8 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
169
170
  IntegrationsInstall500,
170
171
  IntegrationsInstall504.pipe(HttpApiSchema.status(504))
171
172
  ]
172
- }).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", {
173
+ }).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."))();
174
+ const IntegrationsGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("integrationsGet", "/v1/integrations/:integrationId", {
173
175
  params: IntegrationsGetPathParams,
174
176
  success: IntegrationsGet200,
175
177
  error: [
@@ -181,7 +183,8 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
181
183
  IntegrationsGet500,
182
184
  IntegrationsGet504.pipe(HttpApiSchema.status(504))
183
185
  ]
184
- }).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", {
186
+ }).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."))();
187
+ const IntegrationsRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("integrationsRemove", "/v1/integrations/:integrationId", {
185
188
  params: IntegrationsRemovePathParams,
186
189
  success: IntegrationsRemove200,
187
190
  error: [
@@ -194,7 +197,8 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
194
197
  IntegrationsRemove500,
195
198
  IntegrationsRemove504.pipe(HttpApiSchema.status(504))
196
199
  ]
197
- }).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", {
200
+ }).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."))();
201
+ const IntegrationsUpdateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("integrationsUpdate", "/v1/integrations/:integrationId", {
198
202
  params: IntegrationsUpdatePathParams,
199
203
  payload: IntegrationsUpdateRequestJson,
200
204
  success: IntegrationsUpdate200,
@@ -208,7 +212,8 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
208
212
  IntegrationsUpdate500,
209
213
  IntegrationsUpdate504.pipe(HttpApiSchema.status(504))
210
214
  ]
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", {
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. 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."))();
216
+ const IntegrationsListToolsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("integrationsListTools", "/v1/integrations/:integrationId/tools", {
212
217
  params: IntegrationsListToolsPathParams,
213
218
  query: IntegrationsListToolsQuery,
214
219
  success: IntegrationsListTools200,
@@ -222,7 +227,8 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
222
227
  IntegrationsListTools500,
223
228
  IntegrationsListTools504.pipe(HttpApiSchema.status(504))
224
229
  ]
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
+ }).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."))();
231
+ const IntegrationsReadToolEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("integrationsReadTool", "/v1/integrations/:integrationId/tools/:tool", {
226
232
  params: IntegrationsReadToolPathParams,
227
233
  query: IntegrationsReadToolQuery,
228
234
  success: IntegrationsReadTool200,
@@ -236,7 +242,7 @@ var IntegrationsGroup = class extends HttpApiGroup.make("Integrations").add(Http
236
242
  IntegrationsReadTool500,
237
243
  IntegrationsReadTool504.pipe(HttpApiSchema.status(504))
238
244
  ]
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") {};
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
+ }).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."))();
246
+ export { DeleteIntegrationResponse, Integration, IntegrationList, IntegrationToolKind, IntegrationToolView, IntegrationsGet200, IntegrationsGet400, IntegrationsGet401, IntegrationsGet403, IntegrationsGet404, IntegrationsGet422, IntegrationsGet500, IntegrationsGet504, IntegrationsGetEndpoint, IntegrationsGetPathParams, IntegrationsInstall201, IntegrationsInstall400, IntegrationsInstall401, IntegrationsInstall403, IntegrationsInstall404, IntegrationsInstall422, IntegrationsInstall500, IntegrationsInstall504, IntegrationsInstallEndpoint, IntegrationsInstallRequestJson, IntegrationsList200, IntegrationsList400, IntegrationsList401, IntegrationsList403, IntegrationsList422, IntegrationsList500, IntegrationsList504, IntegrationsListEndpoint, IntegrationsListQuery, IntegrationsListTools200, IntegrationsListTools400, IntegrationsListTools401, IntegrationsListTools403, IntegrationsListTools404, IntegrationsListTools409, IntegrationsListTools422, IntegrationsListTools500, IntegrationsListTools504, IntegrationsListToolsEndpoint, IntegrationsListToolsPathParams, IntegrationsListToolsQuery, IntegrationsReadTool200, IntegrationsReadTool400, IntegrationsReadTool401, IntegrationsReadTool403, IntegrationsReadTool404, IntegrationsReadTool409, IntegrationsReadTool422, IntegrationsReadTool500, IntegrationsReadTool504, IntegrationsReadToolEndpoint, IntegrationsReadToolPathParams, IntegrationsReadToolQuery, IntegrationsRemove200, IntegrationsRemove400, IntegrationsRemove401, IntegrationsRemove403, IntegrationsRemove404, IntegrationsRemove409, IntegrationsRemove422, IntegrationsRemove500, IntegrationsRemove504, IntegrationsRemoveEndpoint, IntegrationsRemovePathParams, IntegrationsUpdate200, IntegrationsUpdate400, IntegrationsUpdate401, IntegrationsUpdate403, IntegrationsUpdate404, IntegrationsUpdate409, IntegrationsUpdate422, IntegrationsUpdate500, IntegrationsUpdate504, IntegrationsUpdateEndpoint, IntegrationsUpdatePathParams, IntegrationsUpdateRequestJson };
241
247
 
242
248
  //# sourceMappingURL=integrations.js.map