samva 0.46.1 → 0.48.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 (79) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +106 -8
  3. package/dist/agent/index.d.ts +57 -0
  4. package/dist/agent/index.js +53 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +95 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +150 -0
  10. package/dist/client/sdk.gen.d.ts +50 -165
  11. package/dist/client/sdk.gen.js +1339 -1614
  12. package/dist/client/types.gen.d.ts +461 -989
  13. package/dist/effect/agents.d.ts +340 -8
  14. package/dist/effect/agents.js +4 -2
  15. package/dist/effect/api-keys.d.ts +2 -0
  16. package/dist/effect/campaigns.d.ts +160 -160
  17. package/dist/effect/contacts.d.ts +8 -0
  18. package/dist/effect/contacts.js +5 -1
  19. package/dist/effect/descriptors/agents.d.ts +12 -2
  20. package/dist/effect/descriptors/agents.js +12 -2
  21. package/dist/effect/descriptors/contacts.d.ts +20 -0
  22. package/dist/effect/descriptors/contacts.js +20 -0
  23. package/dist/effect/generated/accounts.d.ts +10 -0
  24. package/dist/effect/generated/accounts.js +1 -0
  25. package/dist/effect/generated/agents.d.ts +2967 -690
  26. package/dist/effect/generated/agents.js +54 -13
  27. package/dist/effect/generated/api-keys.d.ts +15 -0
  28. package/dist/effect/generated/api-keys.js +2 -0
  29. package/dist/effect/generated/contacts.d.ts +859 -1
  30. package/dist/effect/generated/contacts.js +62 -3
  31. package/dist/effect/generated/index.d.ts +1 -5
  32. package/dist/effect/generated/journeys.d.ts +351 -111
  33. package/dist/effect/generated/journeys.js +3 -1
  34. package/dist/effect/generated/mailboxes.d.ts +93 -95
  35. package/dist/effect/generated/mailboxes.js +21 -25
  36. package/dist/effect/generated/shared.d.ts +459 -139
  37. package/dist/effect/generated/shared.js +84 -39
  38. package/dist/effect/generated/template-registrations.d.ts +19 -4
  39. package/dist/effect/generated/template-registrations.js +8 -7
  40. package/dist/effect/generated/templates.d.ts +76 -11
  41. package/dist/effect/generated/templates.js +25 -12
  42. package/dist/effect/generated-metadata.d.ts +18 -84
  43. package/dist/effect/generated-metadata.js +362 -415
  44. package/dist/effect/index.d.ts +0 -2
  45. package/dist/effect/index.js +1 -3
  46. package/dist/effect/internal/client.js +1 -1
  47. package/dist/effect/internal/operation.js +4 -1
  48. package/dist/effect/journeys.d.ts +26 -2
  49. package/dist/effect/mailboxes.d.ts +41 -41
  50. package/dist/effect/scheduled-messages.d.ts +350 -350
  51. package/dist/effect/templates.d.ts +9 -0
  52. package/dist/effect/topics.d.ts +2 -2
  53. package/dist/package.js +1 -1
  54. package/dist/promises/client.d.ts +1 -5
  55. package/dist/promises/client.js +3 -7
  56. package/dist/promises/types.gen.d.ts +1 -1
  57. package/dist/service-map.d.ts +18 -75
  58. package/package.json +10 -22
  59. package/dist/effect/descriptors/extension-installations.d.ts +0 -90
  60. package/dist/effect/descriptors/extension-installations.js +0 -90
  61. package/dist/effect/descriptors/extensions.d.ts +0 -50
  62. package/dist/effect/descriptors/extensions.js +0 -50
  63. package/dist/effect/extension-installations.d.ts +0 -132
  64. package/dist/effect/extension-installations.js +0 -29
  65. package/dist/effect/extensions.d.ts +0 -102
  66. package/dist/effect/extensions.js +0 -21
  67. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  68. package/dist/effect/generated/extension-installations.js +0 -405
  69. package/dist/effect/generated/extensions.d.ts +0 -1037
  70. package/dist/effect/generated/extensions.js +0 -214
  71. package/dist/mailbox/dispatch.d.ts +0 -10
  72. package/dist/mailbox/dispatch.js +0 -66
  73. package/dist/mailbox/index.d.ts +0 -17
  74. package/dist/mailbox/index.js +0 -30
  75. package/dist/mailbox/test.d.ts +0 -25
  76. package/dist/mailbox/test.js +0 -181
  77. package/dist/mailbox/types.d.ts +0 -221
  78. package/dist/mailbox/webhook.d.ts +0 -10
  79. package/dist/mailbox/webhook.js +0 -41
@@ -152,6 +152,8 @@ export declare const SDK_SERVICE_OPERATIONS: {
152
152
  readonly get: "contactsGet";
153
153
  readonly update: "contactsUpdate";
154
154
  readonly remove: "contactsRemove";
155
+ readonly merge: "contactsMerge";
156
+ readonly mergeByConnection: "contactsMergeByConnection";
155
157
  readonly addIdentity: "contactsAddIdentity";
156
158
  readonly removeIdentity: "contactsRemoveIdentity";
157
159
  readonly setConsent: "contactsSetConsent";
@@ -199,8 +201,9 @@ export declare const SDK_SERVICE_OPERATIONS: {
199
201
  readonly remove: "agentsRemove";
200
202
  readonly replaceDraft: "agentsReplaceDraft";
201
203
  readonly publish: "agentsPublish";
202
- readonly continueOnStandard: "agentsContinueOnStandard";
204
+ readonly publishVersion: "agentsPublishVersion";
203
205
  readonly listVersions: "agentsListVersions";
206
+ readonly continueOnStandard: "agentsContinueOnStandard";
204
207
  readonly getVersion: "agentsGetVersion";
205
208
  };
206
209
  readonly accounts: {
@@ -488,24 +491,6 @@ export declare const SDK_SERVICE_OPERATIONS: {
488
491
  readonly revokePortalLink: "namespacesRevokePortalLink";
489
492
  readonly getUsage: "namespacesGetUsage";
490
493
  };
491
- readonly extensions: {
492
- readonly list: "extensionsList";
493
- readonly publish: "extensionsPublish";
494
- readonly get: "extensionsGet";
495
- readonly listVersions: "extensionsListVersions";
496
- readonly getVersion: "extensionsGetVersion";
497
- };
498
- readonly extensionInstallations: {
499
- readonly list: "extensionInstallationsList";
500
- readonly install: "extensionInstallationsInstall";
501
- readonly get: "extensionInstallationsGet";
502
- readonly uninstall: "extensionInstallationsUninstall";
503
- readonly upgrade: "extensionInstallationsUpgrade";
504
- readonly disable: "extensionInstallationsDisable";
505
- readonly enable: "extensionInstallationsEnable";
506
- readonly listRuns: "extensionInstallationsListRuns";
507
- readonly getRun: "extensionInstallationsGetRun";
508
- };
509
494
  readonly whatsapp: {
510
495
  readonly getStats: "whatsappGetStats";
511
496
  readonly getTemplateStats: "whatsappGetTemplateStats";
@@ -1015,6 +1000,14 @@ export declare const SDK_OPERATION_CALLS: {
1015
1000
  readonly kind: "path";
1016
1001
  readonly paths: readonly ["id"];
1017
1002
  };
1003
+ readonly contactsMerge: {
1004
+ readonly kind: "pathPayload";
1005
+ readonly paths: readonly ["id"];
1006
+ };
1007
+ readonly contactsMergeByConnection: {
1008
+ readonly kind: "pathPayload";
1009
+ readonly paths: readonly ["id"];
1010
+ };
1018
1011
  readonly contactsAddIdentity: {
1019
1012
  readonly kind: "pathPayload";
1020
1013
  readonly paths: readonly ["id"];
@@ -1166,14 +1159,18 @@ export declare const SDK_OPERATION_CALLS: {
1166
1159
  readonly kind: "pathPayload";
1167
1160
  readonly paths: readonly ["id"];
1168
1161
  };
1169
- readonly agentsContinueOnStandard: {
1170
- readonly kind: "path";
1162
+ readonly agentsPublishVersion: {
1163
+ readonly kind: "pathPayload";
1171
1164
  readonly paths: readonly ["id"];
1172
1165
  };
1173
1166
  readonly agentsListVersions: {
1174
1167
  readonly kind: "pathParams";
1175
1168
  readonly paths: readonly ["id"];
1176
1169
  };
1170
+ readonly agentsContinueOnStandard: {
1171
+ readonly kind: "path";
1172
+ readonly paths: readonly ["id"];
1173
+ };
1177
1174
  readonly agentsGetVersion: {
1178
1175
  readonly kind: "path";
1179
1176
  readonly paths: readonly ["id", "version"];
@@ -2074,58 +2071,6 @@ export declare const SDK_OPERATION_CALLS: {
2074
2071
  readonly kind: "pathParams";
2075
2072
  readonly paths: readonly ["id"];
2076
2073
  };
2077
- readonly extensionsList: {
2078
- readonly kind: "params";
2079
- };
2080
- readonly extensionsPublish: {
2081
- readonly kind: "payload";
2082
- };
2083
- readonly extensionsGet: {
2084
- readonly kind: "path";
2085
- readonly paths: readonly ["id"];
2086
- };
2087
- readonly extensionsListVersions: {
2088
- readonly kind: "pathParams";
2089
- readonly paths: readonly ["id"];
2090
- };
2091
- readonly extensionsGetVersion: {
2092
- readonly kind: "path";
2093
- readonly paths: readonly ["id", "versionId"];
2094
- };
2095
- readonly extensionInstallationsList: {
2096
- readonly kind: "params";
2097
- };
2098
- readonly extensionInstallationsInstall: {
2099
- readonly kind: "payload";
2100
- };
2101
- readonly extensionInstallationsGet: {
2102
- readonly kind: "path";
2103
- readonly paths: readonly ["id"];
2104
- };
2105
- readonly extensionInstallationsUninstall: {
2106
- readonly kind: "path";
2107
- readonly paths: readonly ["id"];
2108
- };
2109
- readonly extensionInstallationsUpgrade: {
2110
- readonly kind: "pathPayload";
2111
- readonly paths: readonly ["id"];
2112
- };
2113
- readonly extensionInstallationsDisable: {
2114
- readonly kind: "path";
2115
- readonly paths: readonly ["id"];
2116
- };
2117
- readonly extensionInstallationsEnable: {
2118
- readonly kind: "path";
2119
- readonly paths: readonly ["id"];
2120
- };
2121
- readonly extensionInstallationsListRuns: {
2122
- readonly kind: "path";
2123
- readonly paths: readonly ["id"];
2124
- };
2125
- readonly extensionInstallationsGetRun: {
2126
- readonly kind: "path";
2127
- readonly paths: readonly ["id", "runId"];
2128
- };
2129
2074
  readonly whatsappGetStats: {
2130
2075
  readonly kind: "params";
2131
2076
  };
@@ -2269,8 +2214,6 @@ export declare const SDK_EFFECT_MODULES: {
2269
2214
  readonly mailboxes: "mailboxes";
2270
2215
  readonly policies: "policies";
2271
2216
  readonly namespaces: "namespaces";
2272
- readonly extensions: "extensions";
2273
- readonly "extension-installations": "extensionInstallations";
2274
2217
  readonly whatsapp: "whatsapp";
2275
2218
  readonly "whatsapp-flows": "whatsappFlows";
2276
2219
  readonly "whatsapp-setup-links": "whatsappSetupLinks";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.46.1",
3
+ "version": "0.48.0",
4
4
  "description": "TypeScript SDK for the Samva email and WhatsApp API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -124,14 +124,6 @@
124
124
  "types": "./dist/effect/messages.d.ts",
125
125
  "import": "./dist/effect/messages.js"
126
126
  },
127
- "./effect/extension-installations": {
128
- "types": "./dist/effect/extension-installations.d.ts",
129
- "import": "./dist/effect/extension-installations.js"
130
- },
131
- "./effect/extensions": {
132
- "types": "./dist/effect/extensions.d.ts",
133
- "import": "./dist/effect/extensions.js"
134
- },
135
127
  "./effect/events": {
136
128
  "types": "./dist/effect/events.d.ts",
137
129
  "import": "./dist/effect/events.js"
@@ -209,18 +201,6 @@
209
201
  "import": "./dist/webhooks/effect.js"
210
202
  },
211
203
  "./package.json": "./package.json",
212
- "./mailbox": {
213
- "types": "./dist/mailbox/index.d.ts",
214
- "import": "./dist/mailbox/index.js"
215
- },
216
- "./mailbox/test": {
217
- "types": "./dist/mailbox/test.d.ts",
218
- "import": "./dist/mailbox/test.js"
219
- },
220
- "./mailbox/webhook": {
221
- "types": "./dist/mailbox/webhook.d.ts",
222
- "import": "./dist/mailbox/webhook.js"
223
- },
224
204
  "./effect/newsletter-issues": {
225
205
  "types": "./dist/effect/newsletter-issues.d.ts",
226
206
  "import": "./dist/effect/newsletter-issues.js"
@@ -252,6 +232,14 @@
252
232
  "./effect/template-share-links": {
253
233
  "types": "./dist/effect/template-share-links.d.ts",
254
234
  "import": "./dist/effect/template-share-links.js"
235
+ },
236
+ "./agent": {
237
+ "types": "./dist/agent/index.d.ts",
238
+ "import": "./dist/agent/index.js"
239
+ },
240
+ "./agent/test": {
241
+ "types": "./dist/agent/test.d.ts",
242
+ "import": "./dist/agent/test.js"
255
243
  }
256
244
  },
257
245
  "publishConfig": {
@@ -273,7 +261,7 @@
273
261
  "typecheck": "slot 'effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json \"$@\"'"
274
262
  },
275
263
  "dependencies": {
276
- "@samva/webhooks": "0.46.1"
264
+ "@samva/webhooks": "0.48.0"
277
265
  },
278
266
  "devDependencies": {
279
267
  "@effect/openapi-generator": "^4.1.4",
@@ -1,90 +0,0 @@
1
- export declare const extensionInstallationsOperations: {
2
- readonly extensionInstallationsList: {
3
- readonly group: "Extension installations";
4
- readonly method: "GET";
5
- readonly idempotent: false;
6
- readonly paginated: true;
7
- readonly call: {
8
- readonly kind: "params";
9
- };
10
- };
11
- readonly extensionInstallationsInstall: {
12
- readonly group: "Extension installations";
13
- readonly method: "POST";
14
- readonly idempotent: false;
15
- readonly paginated: false;
16
- readonly call: {
17
- readonly kind: "payload";
18
- };
19
- };
20
- readonly extensionInstallationsGet: {
21
- readonly group: "Extension installations";
22
- readonly method: "GET";
23
- readonly idempotent: false;
24
- readonly paginated: false;
25
- readonly call: {
26
- readonly kind: "path";
27
- readonly paths: readonly ["id"];
28
- };
29
- };
30
- readonly extensionInstallationsUninstall: {
31
- readonly group: "Extension installations";
32
- readonly method: "DELETE";
33
- readonly idempotent: false;
34
- readonly paginated: false;
35
- readonly call: {
36
- readonly kind: "path";
37
- readonly paths: readonly ["id"];
38
- };
39
- };
40
- readonly extensionInstallationsUpgrade: {
41
- readonly group: "Extension installations";
42
- readonly method: "POST";
43
- readonly idempotent: false;
44
- readonly paginated: false;
45
- readonly call: {
46
- readonly kind: "pathPayload";
47
- readonly paths: readonly ["id"];
48
- };
49
- };
50
- readonly extensionInstallationsDisable: {
51
- readonly group: "Extension installations";
52
- readonly method: "POST";
53
- readonly idempotent: false;
54
- readonly paginated: false;
55
- readonly call: {
56
- readonly kind: "path";
57
- readonly paths: readonly ["id"];
58
- };
59
- };
60
- readonly extensionInstallationsEnable: {
61
- readonly group: "Extension installations";
62
- readonly method: "POST";
63
- readonly idempotent: false;
64
- readonly paginated: false;
65
- readonly call: {
66
- readonly kind: "path";
67
- readonly paths: readonly ["id"];
68
- };
69
- };
70
- readonly extensionInstallationsListRuns: {
71
- readonly group: "Extension installations";
72
- readonly method: "GET";
73
- readonly idempotent: false;
74
- readonly paginated: false;
75
- readonly call: {
76
- readonly kind: "path";
77
- readonly paths: readonly ["id"];
78
- };
79
- };
80
- readonly extensionInstallationsGetRun: {
81
- readonly group: "Extension installations";
82
- readonly method: "GET";
83
- readonly idempotent: false;
84
- readonly paginated: false;
85
- readonly call: {
86
- readonly kind: "path";
87
- readonly paths: readonly ["id", "runId"];
88
- };
89
- };
90
- };
@@ -1,90 +0,0 @@
1
- // src/effect/descriptors/extension-installations.ts
2
- const extensionInstallationsOperations = {
3
- extensionInstallationsList: {
4
- group: "Extension installations",
5
- method: "GET",
6
- idempotent: false,
7
- paginated: true,
8
- call: { kind: "params" }
9
- },
10
- extensionInstallationsInstall: {
11
- group: "Extension installations",
12
- method: "POST",
13
- idempotent: false,
14
- paginated: false,
15
- call: { kind: "payload" }
16
- },
17
- extensionInstallationsGet: {
18
- group: "Extension installations",
19
- method: "GET",
20
- idempotent: false,
21
- paginated: false,
22
- call: {
23
- kind: "path",
24
- paths: ["id"]
25
- }
26
- },
27
- extensionInstallationsUninstall: {
28
- group: "Extension installations",
29
- method: "DELETE",
30
- idempotent: false,
31
- paginated: false,
32
- call: {
33
- kind: "path",
34
- paths: ["id"]
35
- }
36
- },
37
- extensionInstallationsUpgrade: {
38
- group: "Extension installations",
39
- method: "POST",
40
- idempotent: false,
41
- paginated: false,
42
- call: {
43
- kind: "pathPayload",
44
- paths: ["id"]
45
- }
46
- },
47
- extensionInstallationsDisable: {
48
- group: "Extension installations",
49
- method: "POST",
50
- idempotent: false,
51
- paginated: false,
52
- call: {
53
- kind: "path",
54
- paths: ["id"]
55
- }
56
- },
57
- extensionInstallationsEnable: {
58
- group: "Extension installations",
59
- method: "POST",
60
- idempotent: false,
61
- paginated: false,
62
- call: {
63
- kind: "path",
64
- paths: ["id"]
65
- }
66
- },
67
- extensionInstallationsListRuns: {
68
- group: "Extension installations",
69
- method: "GET",
70
- idempotent: false,
71
- paginated: false,
72
- call: {
73
- kind: "path",
74
- paths: ["id"]
75
- }
76
- },
77
- extensionInstallationsGetRun: {
78
- group: "Extension installations",
79
- method: "GET",
80
- idempotent: false,
81
- paginated: false,
82
- call: {
83
- kind: "path",
84
- paths: ["id", "runId"]
85
- }
86
- }
87
- };
88
- export { extensionInstallationsOperations };
89
-
90
- //# sourceMappingURL=extension-installations.js.map
@@ -1,50 +0,0 @@
1
- export declare const extensionsOperations: {
2
- readonly extensionsList: {
3
- readonly group: "Extensions";
4
- readonly method: "GET";
5
- readonly idempotent: false;
6
- readonly paginated: true;
7
- readonly call: {
8
- readonly kind: "params";
9
- };
10
- };
11
- readonly extensionsPublish: {
12
- readonly group: "Extensions";
13
- readonly method: "POST";
14
- readonly idempotent: false;
15
- readonly paginated: false;
16
- readonly call: {
17
- readonly kind: "payload";
18
- };
19
- };
20
- readonly extensionsGet: {
21
- readonly group: "Extensions";
22
- readonly method: "GET";
23
- readonly idempotent: false;
24
- readonly paginated: false;
25
- readonly call: {
26
- readonly kind: "path";
27
- readonly paths: readonly ["id"];
28
- };
29
- };
30
- readonly extensionsListVersions: {
31
- readonly group: "Extensions";
32
- readonly method: "GET";
33
- readonly idempotent: false;
34
- readonly paginated: true;
35
- readonly call: {
36
- readonly kind: "pathParams";
37
- readonly paths: readonly ["id"];
38
- };
39
- };
40
- readonly extensionsGetVersion: {
41
- readonly group: "Extensions";
42
- readonly method: "GET";
43
- readonly idempotent: false;
44
- readonly paginated: false;
45
- readonly call: {
46
- readonly kind: "path";
47
- readonly paths: readonly ["id", "versionId"];
48
- };
49
- };
50
- };
@@ -1,50 +0,0 @@
1
- // src/effect/descriptors/extensions.ts
2
- const extensionsOperations = {
3
- extensionsList: {
4
- group: "Extensions",
5
- method: "GET",
6
- idempotent: false,
7
- paginated: true,
8
- call: { kind: "params" }
9
- },
10
- extensionsPublish: {
11
- group: "Extensions",
12
- method: "POST",
13
- idempotent: false,
14
- paginated: false,
15
- call: { kind: "payload" }
16
- },
17
- extensionsGet: {
18
- group: "Extensions",
19
- method: "GET",
20
- idempotent: false,
21
- paginated: false,
22
- call: {
23
- kind: "path",
24
- paths: ["id"]
25
- }
26
- },
27
- extensionsListVersions: {
28
- group: "Extensions",
29
- method: "GET",
30
- idempotent: false,
31
- paginated: true,
32
- call: {
33
- kind: "pathParams",
34
- paths: ["id"]
35
- }
36
- },
37
- extensionsGetVersion: {
38
- group: "Extensions",
39
- method: "GET",
40
- idempotent: false,
41
- paginated: false,
42
- call: {
43
- kind: "path",
44
- paths: ["id", "versionId"]
45
- }
46
- }
47
- };
48
- export { extensionsOperations };
49
-
50
- //# sourceMappingURL=extensions.js.map
@@ -1,132 +0,0 @@
1
- export declare const list: ((input?: {
2
- readonly limit?: number | null | undefined;
3
- readonly cursor?: string | undefined;
4
- readonly after?: string | undefined;
5
- readonly before?: string | undefined;
6
- } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsList">) & {
7
- readonly pages: (input?: {
8
- readonly limit?: number | null | undefined;
9
- readonly cursor?: string | undefined;
10
- readonly after?: string | undefined;
11
- readonly before?: string | undefined;
12
- } | undefined) => import("effect/Stream").Stream<{
13
- readonly items: readonly {
14
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
15
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
16
- readonly name: string;
17
- readonly displayName: string;
18
- readonly version: {
19
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
20
- readonly version: string;
21
- };
22
- readonly runtime: "hosted" | "webhook";
23
- readonly status: "active" | "disabled";
24
- readonly createdAt: string;
25
- }[];
26
- readonly nextCursor: string | null;
27
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
28
- readonly items: (input?: {
29
- readonly limit?: number | null | undefined;
30
- readonly cursor?: string | undefined;
31
- readonly after?: string | undefined;
32
- readonly before?: string | undefined;
33
- } | undefined) => import("effect/Stream").Stream<{
34
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
35
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
36
- readonly name: string;
37
- readonly displayName: string;
38
- readonly version: {
39
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
40
- readonly version: string;
41
- };
42
- readonly runtime: "hosted" | "webhook";
43
- readonly status: "active" | "disabled";
44
- readonly createdAt: string;
45
- }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
46
- };
47
- export declare const install: (input: {
48
- readonly extension: string;
49
- readonly version?: string | null | undefined;
50
- readonly mailboxIds?: readonly string[] | null | undefined;
51
- readonly namespaceId?: string | null | undefined;
52
- readonly permissions?: readonly ("quarantine.read" | "read" | "send" | "update")[] | null | undefined;
53
- readonly policy?: {
54
- readonly presets: readonly string[];
55
- readonly rules: readonly ({
56
- readonly match: {
57
- readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
58
- readonly effect?: "final" | "read" | "write" | null | undefined;
59
- readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
60
- readonly integration?: string | null | undefined;
61
- readonly tool?: string | null | undefined;
62
- readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
63
- readonly kind: "agent";
64
- readonly id: string;
65
- } | {
66
- readonly kind: "apiKey";
67
- readonly id: string;
68
- } | {
69
- readonly kind: "member";
70
- readonly userId: string;
71
- } | {
72
- readonly kind: "extension";
73
- readonly id: string;
74
- } | null | undefined;
75
- };
76
- readonly note?: string | null | undefined;
77
- readonly decide: "model" | "never" | "person" | "run";
78
- readonly atLeast?: null | undefined;
79
- } | {
80
- readonly match: {
81
- readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
82
- readonly effect?: "final" | "read" | "write" | null | undefined;
83
- readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
84
- readonly integration?: string | null | undefined;
85
- readonly tool?: string | null | undefined;
86
- readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
87
- readonly kind: "agent";
88
- readonly id: string;
89
- } | {
90
- readonly kind: "apiKey";
91
- readonly id: string;
92
- } | {
93
- readonly kind: "member";
94
- readonly userId: string;
95
- } | {
96
- readonly kind: "extension";
97
- readonly id: string;
98
- } | null | undefined;
99
- };
100
- readonly note?: string | null | undefined;
101
- readonly decide?: null | undefined;
102
- readonly atLeast: "model" | "never" | "person" | "run";
103
- })[];
104
- readonly instructions?: string | null | undefined;
105
- } | null | undefined;
106
- readonly webhookUrl?: string | null | undefined;
107
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsInstall">;
108
- export declare const get: (input: {
109
- readonly id: string;
110
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsGet">;
111
- export declare const uninstall: (input: {
112
- readonly id: string;
113
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsUninstall">;
114
- export declare const upgrade: (input: {
115
- readonly id: string;
116
- readonly version?: string | null | undefined;
117
- readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
118
- readonly dryRun?: boolean | null | undefined;
119
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsUpgrade">;
120
- export declare const disable: (input: {
121
- readonly id: string;
122
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsDisable">;
123
- export declare const enable: (input: {
124
- readonly id: string;
125
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsEnable">;
126
- export declare const listRuns: (input: {
127
- readonly id: string;
128
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsListRuns">;
129
- export declare const getRun: (input: {
130
- readonly id: string;
131
- readonly runId: string;
132
- }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionInstallationsGetRun">;
@@ -1,29 +0,0 @@
1
- import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
- import { extensionInstallationsOperations } from "./descriptors/extension-installations.js";
4
- import { ExtensionInstallationsGroup } from "./generated/extension-installations.js";
5
- // src/effect/extension-installations.ts
6
- var extension_installations_exports = /* @__PURE__ */ __exportAll({
7
- disable: () => disable,
8
- enable: () => enable,
9
- get: () => get,
10
- getRun: () => getRun,
11
- install: () => install,
12
- list: () => list,
13
- listRuns: () => listRuns,
14
- uninstall: () => uninstall,
15
- upgrade: () => upgrade
16
- });
17
- const make = /* @__PURE__ */ forGroup(ExtensionInstallationsGroup, extensionInstallationsOperations);
18
- const list = /* @__PURE__ */ make("extensionInstallationsList");
19
- const install = /* @__PURE__ */ make("extensionInstallationsInstall");
20
- const get = /* @__PURE__ */ make("extensionInstallationsGet");
21
- const uninstall = /* @__PURE__ */ make("extensionInstallationsUninstall");
22
- const upgrade = /* @__PURE__ */ make("extensionInstallationsUpgrade");
23
- const disable = /* @__PURE__ */ make("extensionInstallationsDisable");
24
- const enable = /* @__PURE__ */ make("extensionInstallationsEnable");
25
- const listRuns = /* @__PURE__ */ make("extensionInstallationsListRuns");
26
- const getRun = /* @__PURE__ */ make("extensionInstallationsGetRun");
27
- export { disable, enable, extension_installations_exports, get, getRun, install, list, listRuns, uninstall, upgrade };
28
-
29
- //# sourceMappingURL=extension-installations.js.map