samva 0.0.1 → 0.2.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 -0
- package/LICENSE +21 -0
- package/README.md +392 -5
- package/dist/categories-CsUa8ojo.js +143 -0
- package/dist/client/client/client.gen.d.ts +2 -0
- package/dist/client/client/index.d.ts +10 -0
- package/dist/client/client/types.gen.d.ts +120 -0
- package/dist/client/client/utils.gen.d.ts +37 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/core/auth.gen.d.ts +25 -0
- package/dist/client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/client/core/params.gen.d.ts +43 -0
- package/dist/client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/client/core/types.gen.d.ts +83 -0
- package/dist/client/core/utils.gen.d.ts +19 -0
- package/dist/client/sdk.gen.d.ts +1558 -0
- package/dist/client/types.gen.d.ts +7917 -0
- package/dist/client-BqkU-sFv.js +6049 -0
- package/dist/effect/api-keys.d.ts +190 -0
- package/dist/effect/api-keys.js +27 -0
- package/dist/effect/campaigns.d.ts +2055 -0
- package/dist/effect/campaigns.js +33 -0
- package/dist/effect/categories.d.ts +65 -0
- package/dist/effect/categories.js +2 -0
- package/dist/effect/client.d.ts +9 -0
- package/dist/effect/client.js +13 -0
- package/dist/effect/contacts.d.ts +1278 -0
- package/dist/effect/contacts.js +39 -0
- package/dist/effect/conversations.d.ts +1604 -0
- package/dist/effect/conversations.js +23 -0
- package/dist/effect/design.d.ts +209 -0
- package/dist/effect/design.js +13 -0
- package/dist/effect/email.d.ts +1022 -0
- package/dist/effect/email.js +111 -0
- package/dist/effect/generated-metadata.d.ts +54 -0
- package/dist/effect/generated.d.ts +32156 -0
- package/dist/effect/index.d.ts +36 -0
- package/dist/effect/index.js +17 -0
- package/dist/effect/internal/client.d.ts +35 -0
- package/dist/effect/internal/operation.d.ts +466 -0
- package/dist/effect/messages.d.ts +1047 -0
- package/dist/effect/messages.js +23 -0
- package/dist/effect/operations.d.ts +97 -0
- package/dist/effect/operations.js +15 -0
- package/dist/effect/organizations.d.ts +559 -0
- package/dist/effect/organizations.js +21 -0
- package/dist/effect/pagination.d.ts +37 -0
- package/dist/effect/retry.d.ts +60 -0
- package/dist/effect/retry.js +112 -0
- package/dist/effect/runtime.d.ts +7 -0
- package/dist/effect/scheduled-messages.d.ts +1009 -0
- package/dist/effect/scheduled-messages.js +17 -0
- package/dist/effect/templates.d.ts +2591 -0
- package/dist/effect/templates.js +66 -0
- package/dist/effect/webhooks.d.ts +228 -0
- package/dist/effect/webhooks.js +33 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/normalize-LkWl4HUF.js +82 -0
- package/dist/normalize.d.ts +87 -0
- package/dist/operation-Ccqh_yxb.js +596 -0
- package/dist/promises/errors.gen.d.ts +179 -0
- package/dist/promises/index.d.ts +153 -0
- package/dist/promises/index.js +2 -0
- package/dist/promises/types.gen.d.ts +1 -0
- package/dist/promises-Dgv8UmCC.js +5911 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/service-map.d.ts +732 -0
- package/dist/webhooks/effect.d.ts +1 -0
- package/dist/webhooks/effect.js +1 -0
- package/dist/webhooks/promise.d.ts +1 -0
- package/dist/webhooks/promise.js +1 -0
- package/package.json +151 -4
- package/CLAUDE.md +0 -111
- package/bun.lock +0 -29
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { i as sendMessage, n as make } from "../operation-Ccqh_yxb.js";
|
|
3
|
+
//#region src/effect/messages.ts
|
|
4
|
+
var messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
get: () => get,
|
|
6
|
+
getEmail: () => getEmail,
|
|
7
|
+
getEvents: () => getEvents,
|
|
8
|
+
getStatus: () => getStatus,
|
|
9
|
+
list: () => list,
|
|
10
|
+
remove: () => remove,
|
|
11
|
+
send: () => send
|
|
12
|
+
});
|
|
13
|
+
const list = make("messagesList");
|
|
14
|
+
const send = sendMessage;
|
|
15
|
+
const get = make("messagesGet");
|
|
16
|
+
const getEmail = make("messagesGetEmail");
|
|
17
|
+
const remove = make("messagesRemove");
|
|
18
|
+
const getStatus = make("messagesGetStatus");
|
|
19
|
+
const getEvents = make("messagesGetEvents");
|
|
20
|
+
//#endregion
|
|
21
|
+
export { get, getEmail, getEvents, getStatus, list, remove, send, messages_exports as t };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export declare const list: (input?: {
|
|
2
|
+
readonly limit?: string | null | undefined;
|
|
3
|
+
readonly status?: string | null | undefined;
|
|
4
|
+
readonly page?: string | null | undefined;
|
|
5
|
+
readonly kind?: string | null | undefined;
|
|
6
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
7
|
+
readonly items: readonly {
|
|
8
|
+
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
9
|
+
readonly organizationId: string;
|
|
10
|
+
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
11
|
+
readonly subject: {
|
|
12
|
+
readonly type: string;
|
|
13
|
+
readonly id: string;
|
|
14
|
+
};
|
|
15
|
+
readonly actor: {
|
|
16
|
+
readonly type: "system" | "user" | "api-key";
|
|
17
|
+
readonly id: string;
|
|
18
|
+
};
|
|
19
|
+
readonly status: "pending" | "failed" | "running" | "succeeded";
|
|
20
|
+
readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
|
|
21
|
+
readonly error: {
|
|
22
|
+
readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
|
|
23
|
+
readonly message: string;
|
|
24
|
+
} | null;
|
|
25
|
+
readonly createdAt: string;
|
|
26
|
+
readonly updatedAt: string;
|
|
27
|
+
readonly startedAt: string | null;
|
|
28
|
+
readonly completedAt: string | null;
|
|
29
|
+
}[];
|
|
30
|
+
readonly pagination: {
|
|
31
|
+
readonly page: number;
|
|
32
|
+
readonly limit: number;
|
|
33
|
+
readonly total: number;
|
|
34
|
+
};
|
|
35
|
+
}, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
36
|
+
export declare const get: (input: {
|
|
37
|
+
readonly operationId: string;
|
|
38
|
+
}) => import("effect/Effect").Effect<{
|
|
39
|
+
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
40
|
+
readonly organizationId: string;
|
|
41
|
+
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
42
|
+
readonly subject: {
|
|
43
|
+
readonly type: string;
|
|
44
|
+
readonly id: string;
|
|
45
|
+
};
|
|
46
|
+
readonly actor: {
|
|
47
|
+
readonly type: "system" | "user" | "api-key";
|
|
48
|
+
readonly id: string;
|
|
49
|
+
};
|
|
50
|
+
readonly status: "pending" | "failed" | "running" | "succeeded";
|
|
51
|
+
readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
|
|
52
|
+
readonly error: {
|
|
53
|
+
readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
|
|
54
|
+
readonly message: string;
|
|
55
|
+
} | null;
|
|
56
|
+
readonly createdAt: string;
|
|
57
|
+
readonly updatedAt: string;
|
|
58
|
+
readonly startedAt: string | null;
|
|
59
|
+
readonly completedAt: string | null;
|
|
60
|
+
}, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
61
|
+
export declare const retry: (input: {
|
|
62
|
+
readonly operationId: string;
|
|
63
|
+
}) => import("effect/Effect").Effect<{
|
|
64
|
+
readonly operation: {
|
|
65
|
+
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
66
|
+
readonly organizationId: string;
|
|
67
|
+
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
68
|
+
readonly subject: {
|
|
69
|
+
readonly type: string;
|
|
70
|
+
readonly id: string;
|
|
71
|
+
};
|
|
72
|
+
readonly actor: {
|
|
73
|
+
readonly type: "system" | "user" | "api-key";
|
|
74
|
+
readonly id: string;
|
|
75
|
+
};
|
|
76
|
+
readonly status: "pending" | "failed" | "running" | "succeeded";
|
|
77
|
+
readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
|
|
78
|
+
readonly error: {
|
|
79
|
+
readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
|
|
80
|
+
readonly message: string;
|
|
81
|
+
} | null;
|
|
82
|
+
readonly createdAt: string;
|
|
83
|
+
readonly updatedAt: string;
|
|
84
|
+
readonly startedAt: string | null;
|
|
85
|
+
readonly completedAt: string | null;
|
|
86
|
+
};
|
|
87
|
+
readonly links: {
|
|
88
|
+
readonly self: string;
|
|
89
|
+
readonly resource: {
|
|
90
|
+
readonly resource: {
|
|
91
|
+
readonly type: string;
|
|
92
|
+
readonly id: string;
|
|
93
|
+
};
|
|
94
|
+
readonly href: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as make } from "../operation-Ccqh_yxb.js";
|
|
3
|
+
//#region src/effect/operations.ts
|
|
4
|
+
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
get: () => get,
|
|
6
|
+
list: () => list,
|
|
7
|
+
retry: () => retry
|
|
8
|
+
});
|
|
9
|
+
const list = make("operationsList");
|
|
10
|
+
const get = make("operationsGet");
|
|
11
|
+
const retry = make("operationsRetry");
|
|
12
|
+
//#endregion
|
|
13
|
+
export { get, list, retry, operations_exports as t };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=operations.js.map
|