samva 0.46.1 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +13 -7
- package/README.md +106 -8
- package/dist/agent/index.d.ts +56 -0
- package/dist/agent/index.js +52 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +74 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +123 -0
- package/dist/client/sdk.gen.d.ts +40 -160
- package/dist/client/sdk.gen.js +1302 -1598
- package/dist/client/types.gen.d.ts +377 -966
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/contacts.d.ts +8 -0
- package/dist/effect/contacts.js +5 -1
- package/dist/effect/descriptors/agents.d.ts +12 -2
- package/dist/effect/descriptors/agents.js +12 -2
- package/dist/effect/descriptors/contacts.d.ts +20 -0
- package/dist/effect/descriptors/contacts.js +20 -0
- package/dist/effect/generated/accounts.d.ts +10 -0
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/contacts.d.ts +859 -1
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/index.d.ts +1 -5
- package/dist/effect/generated/journeys.d.ts +255 -15
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/shared.d.ts +407 -101
- package/dist/effect/generated/shared.js +80 -36
- package/dist/effect/generated/template-registrations.d.ts +1 -4
- package/dist/effect/generated/template-registrations.js +2 -6
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +0 -2
- package/dist/effect/index.js +1 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/operation.js +4 -1
- package/dist/effect/journeys.d.ts +26 -2
- package/dist/effect/mailboxes.d.ts +41 -41
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/topics.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -5
- package/dist/promises/client.js +3 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +18 -75
- package/package.json +10 -22
- package/dist/effect/descriptors/extension-installations.d.ts +0 -90
- package/dist/effect/descriptors/extension-installations.js +0 -90
- package/dist/effect/descriptors/extensions.d.ts +0 -50
- package/dist/effect/descriptors/extensions.js +0 -50
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -29
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -21
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.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.
|
|
264
|
+
"@samva/webhooks": "0.47.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
|
|
@@ -1,102 +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<"extensionsList">) & {
|
|
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<"ExtensionId">;
|
|
15
|
-
readonly name: string;
|
|
16
|
-
readonly displayName: string;
|
|
17
|
-
readonly description: string | null;
|
|
18
|
-
readonly runtime: "hosted" | "webhook";
|
|
19
|
-
readonly latestVersion: {
|
|
20
|
-
readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
|
|
21
|
-
readonly version: string;
|
|
22
|
-
};
|
|
23
|
-
readonly createdAt: string;
|
|
24
|
-
readonly updatedAt: 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<"ExtensionId">;
|
|
35
|
-
readonly name: string;
|
|
36
|
-
readonly displayName: string;
|
|
37
|
-
readonly description: string | null;
|
|
38
|
-
readonly runtime: "hosted" | "webhook";
|
|
39
|
-
readonly latestVersion: {
|
|
40
|
-
readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
|
|
41
|
-
readonly version: string;
|
|
42
|
-
};
|
|
43
|
-
readonly createdAt: string;
|
|
44
|
-
readonly updatedAt: 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 publish: (input: {
|
|
48
|
-
readonly manifest: {
|
|
49
|
-
readonly name: string;
|
|
50
|
-
readonly displayName: string;
|
|
51
|
-
readonly description?: string | null | undefined;
|
|
52
|
-
readonly version: string;
|
|
53
|
-
readonly runtime: "hosted" | "webhook";
|
|
54
|
-
readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
|
|
55
|
-
readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
|
|
56
|
-
};
|
|
57
|
-
readonly bundle?: string | null | undefined;
|
|
58
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionsPublish">;
|
|
59
|
-
export declare const get: (input: {
|
|
60
|
-
readonly id: string;
|
|
61
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionsGet">;
|
|
62
|
-
export declare const listVersions: ((input: {
|
|
63
|
-
readonly id: string;
|
|
64
|
-
readonly limit?: number | null | undefined;
|
|
65
|
-
readonly cursor?: string | undefined;
|
|
66
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionsListVersions">) & {
|
|
67
|
-
readonly pages: (input: {
|
|
68
|
-
readonly id: string;
|
|
69
|
-
readonly limit?: number | null | undefined;
|
|
70
|
-
readonly cursor?: string | undefined;
|
|
71
|
-
}) => import("effect/Stream").Stream<{
|
|
72
|
-
readonly items: readonly {
|
|
73
|
-
readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
|
|
74
|
-
readonly version: string;
|
|
75
|
-
readonly runtime: "hosted" | "webhook";
|
|
76
|
-
readonly bundle: {
|
|
77
|
-
readonly sha256: string;
|
|
78
|
-
readonly sizeBytes: number;
|
|
79
|
-
} | null;
|
|
80
|
-
readonly publishedAt: string;
|
|
81
|
-
}[];
|
|
82
|
-
readonly nextCursor: string | null;
|
|
83
|
-
}, 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>;
|
|
84
|
-
readonly items: (input: {
|
|
85
|
-
readonly id: string;
|
|
86
|
-
readonly limit?: number | null | undefined;
|
|
87
|
-
readonly cursor?: string | undefined;
|
|
88
|
-
}) => import("effect/Stream").Stream<{
|
|
89
|
-
readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
|
|
90
|
-
readonly version: string;
|
|
91
|
-
readonly runtime: "hosted" | "webhook";
|
|
92
|
-
readonly bundle: {
|
|
93
|
-
readonly sha256: string;
|
|
94
|
-
readonly sizeBytes: number;
|
|
95
|
-
} | null;
|
|
96
|
-
readonly publishedAt: string;
|
|
97
|
-
}, 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>;
|
|
98
|
-
};
|
|
99
|
-
export declare const getVersion: (input: {
|
|
100
|
-
readonly id: string;
|
|
101
|
-
readonly versionId: string;
|
|
102
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"extensionsGetVersion">;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
|
-
import { extensionsOperations } from "./descriptors/extensions.js";
|
|
4
|
-
import { ExtensionsGroup } from "./generated/extensions.js";
|
|
5
|
-
// src/effect/extensions.ts
|
|
6
|
-
var extensions_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
-
get: () => get,
|
|
8
|
-
getVersion: () => getVersion,
|
|
9
|
-
list: () => list,
|
|
10
|
-
listVersions: () => listVersions,
|
|
11
|
-
publish: () => publish
|
|
12
|
-
});
|
|
13
|
-
const make = /* @__PURE__ */ forGroup(ExtensionsGroup, extensionsOperations);
|
|
14
|
-
const list = /* @__PURE__ */ make("extensionsList");
|
|
15
|
-
const publish = /* @__PURE__ */ make("extensionsPublish");
|
|
16
|
-
const get = /* @__PURE__ */ make("extensionsGet");
|
|
17
|
-
const listVersions = /* @__PURE__ */ make("extensionsListVersions");
|
|
18
|
-
const getVersion = /* @__PURE__ */ make("extensionsGetVersion");
|
|
19
|
-
export { extensions_exports, get, getVersion, list, listVersions, publish };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=extensions.js.map
|