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.
- package/AGENTS.md +13 -7
- package/README.md +106 -8
- package/dist/agent/index.d.ts +57 -0
- package/dist/agent/index.js +53 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +95 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +150 -0
- package/dist/client/sdk.gen.d.ts +50 -165
- package/dist/client/sdk.gen.js +1339 -1614
- package/dist/client/types.gen.d.ts +461 -989
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- package/dist/effect/api-keys.d.ts +2 -0
- 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/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- 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 +351 -111
- 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 +459 -139
- package/dist/effect/generated/shared.js +84 -39
- package/dist/effect/generated/template-registrations.d.ts +19 -4
- package/dist/effect/generated/template-registrations.js +8 -7
- package/dist/effect/generated/templates.d.ts +76 -11
- package/dist/effect/generated/templates.js +25 -12
- 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/templates.d.ts +9 -0
- 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
|
@@ -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
|