samva 0.3.0 → 0.5.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 +1 -1
- package/README.md +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/client-attribution.ts
|
|
3
|
+
const SDK_VERSION = "0.5.0";
|
|
4
|
+
const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
|
|
5
|
+
const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=client-attribution-B2yJBXdZ.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly limit?: string | null | undefined;
|
|
3
|
-
readonly search?: string | null | undefined;
|
|
4
2
|
readonly page?: string | null | undefined;
|
|
3
|
+
readonly limit?: string | null | undefined;
|
|
5
4
|
readonly status?: string | null | undefined;
|
|
5
|
+
readonly search?: string | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
7
7
|
readonly items: readonly {
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly createdAt: string;
|
|
10
|
-
readonly lastUsedAt: string | null;
|
|
11
8
|
readonly id: string;
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly key?: string | null;
|
|
12
11
|
readonly start: string | null;
|
|
12
|
+
readonly description?: string | null;
|
|
13
|
+
readonly createdAt: string;
|
|
13
14
|
readonly expiresAt: string | null;
|
|
15
|
+
readonly lastUsedAt: string | null;
|
|
14
16
|
readonly isActive: boolean;
|
|
15
|
-
readonly key?: string | null;
|
|
16
|
-
readonly description?: string | null;
|
|
17
17
|
readonly permissions?: {
|
|
18
18
|
readonly [x: string]: readonly string[];
|
|
19
19
|
} | null;
|
|
@@ -25,23 +25,23 @@ export declare const list: ((input?: {
|
|
|
25
25
|
readonly total: number;
|
|
26
26
|
readonly totalPages: number;
|
|
27
27
|
};
|
|
28
|
-
}, import("./generated").
|
|
28
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
29
29
|
readonly pages: (input?: {
|
|
30
|
-
readonly limit?: string | null | undefined;
|
|
31
|
-
readonly search?: string | null | undefined;
|
|
32
30
|
readonly page?: string | null | undefined;
|
|
31
|
+
readonly limit?: string | null | undefined;
|
|
33
32
|
readonly status?: string | null | undefined;
|
|
33
|
+
readonly search?: string | null | undefined;
|
|
34
34
|
} | undefined) => import("effect/Stream").Stream<{
|
|
35
35
|
readonly items: readonly {
|
|
36
|
-
readonly name: string;
|
|
37
|
-
readonly createdAt: string;
|
|
38
|
-
readonly lastUsedAt: string | null;
|
|
39
36
|
readonly id: string;
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly key?: string | null;
|
|
40
39
|
readonly start: string | null;
|
|
40
|
+
readonly description?: string | null;
|
|
41
|
+
readonly createdAt: string;
|
|
41
42
|
readonly expiresAt: string | null;
|
|
43
|
+
readonly lastUsedAt: string | null;
|
|
42
44
|
readonly isActive: boolean;
|
|
43
|
-
readonly key?: string | null;
|
|
44
|
-
readonly description?: string | null;
|
|
45
45
|
readonly permissions?: {
|
|
46
46
|
readonly [x: string]: readonly string[];
|
|
47
47
|
} | null;
|
|
@@ -53,27 +53,27 @@ export declare const list: ((input?: {
|
|
|
53
53
|
readonly total: number;
|
|
54
54
|
readonly totalPages: number;
|
|
55
55
|
};
|
|
56
|
-
}, import("./generated").
|
|
56
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
57
57
|
readonly items: (input?: {
|
|
58
|
-
readonly limit?: string | null | undefined;
|
|
59
|
-
readonly search?: string | null | undefined;
|
|
60
58
|
readonly page?: string | null | undefined;
|
|
59
|
+
readonly limit?: string | null | undefined;
|
|
61
60
|
readonly status?: string | null | undefined;
|
|
61
|
+
readonly search?: string | null | undefined;
|
|
62
62
|
} | undefined) => import("effect/Stream").Stream<{
|
|
63
|
-
readonly name: string;
|
|
64
|
-
readonly createdAt: string;
|
|
65
|
-
readonly lastUsedAt: string | null;
|
|
66
63
|
readonly id: string;
|
|
64
|
+
readonly name: string;
|
|
65
|
+
readonly key?: string | null;
|
|
67
66
|
readonly start: string | null;
|
|
67
|
+
readonly description?: string | null;
|
|
68
|
+
readonly createdAt: string;
|
|
68
69
|
readonly expiresAt: string | null;
|
|
70
|
+
readonly lastUsedAt: string | null;
|
|
69
71
|
readonly isActive: boolean;
|
|
70
|
-
readonly key?: string | null;
|
|
71
|
-
readonly description?: string | null;
|
|
72
72
|
readonly permissions?: {
|
|
73
73
|
readonly [x: string]: readonly string[];
|
|
74
74
|
} | null;
|
|
75
75
|
readonly roleName?: string | null;
|
|
76
|
-
}, import("./generated").
|
|
76
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
77
77
|
};
|
|
78
78
|
export declare const create: (input: {
|
|
79
79
|
readonly name: string;
|
|
@@ -83,83 +83,83 @@ export declare const create: (input: {
|
|
|
83
83
|
readonly [x: string]: readonly string[] | undefined;
|
|
84
84
|
} | null | undefined;
|
|
85
85
|
}) => import("effect/Effect").Effect<{
|
|
86
|
-
readonly name: string;
|
|
87
|
-
readonly createdAt: string;
|
|
88
|
-
readonly lastUsedAt: string | null;
|
|
89
86
|
readonly id: string;
|
|
87
|
+
readonly name: string;
|
|
90
88
|
readonly key: import("effect/Redacted").Redacted<string>;
|
|
91
89
|
readonly start: string | null;
|
|
90
|
+
readonly description?: string | null;
|
|
91
|
+
readonly createdAt: string;
|
|
92
92
|
readonly expiresAt: string | null;
|
|
93
|
+
readonly lastUsedAt: string | null;
|
|
93
94
|
readonly isActive: boolean;
|
|
94
|
-
readonly description?: string | null;
|
|
95
95
|
readonly permissions?: {
|
|
96
96
|
readonly [x: string]: readonly string[];
|
|
97
97
|
} | null;
|
|
98
98
|
readonly roleName?: string | null;
|
|
99
|
-
}, import("./generated").
|
|
99
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
100
100
|
export declare const get: (input: {
|
|
101
101
|
readonly id: string;
|
|
102
102
|
}) => import("effect/Effect").Effect<{
|
|
103
|
-
readonly name: string;
|
|
104
|
-
readonly createdAt: string;
|
|
105
|
-
readonly lastUsedAt: string | null;
|
|
106
103
|
readonly id: string;
|
|
104
|
+
readonly name: string;
|
|
105
|
+
readonly key?: string | null;
|
|
107
106
|
readonly start: string | null;
|
|
107
|
+
readonly description?: string | null;
|
|
108
|
+
readonly createdAt: string;
|
|
108
109
|
readonly expiresAt: string | null;
|
|
110
|
+
readonly lastUsedAt: string | null;
|
|
109
111
|
readonly isActive: boolean;
|
|
110
|
-
readonly key?: string | null;
|
|
111
|
-
readonly description?: string | null;
|
|
112
112
|
readonly permissions?: {
|
|
113
113
|
readonly [x: string]: readonly string[];
|
|
114
114
|
} | null;
|
|
115
115
|
readonly roleName?: string | null;
|
|
116
|
-
}, import("./generated").
|
|
116
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
117
117
|
export declare const revoke: (input: {
|
|
118
118
|
readonly id: string;
|
|
119
119
|
}) => import("effect/Effect").Effect<{
|
|
120
120
|
readonly success: boolean;
|
|
121
|
-
}, import("./generated").
|
|
121
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
122
122
|
export declare const update: (input: {
|
|
123
123
|
readonly id: string;
|
|
124
124
|
readonly name?: string | null | undefined;
|
|
125
125
|
readonly description?: string | null | undefined;
|
|
126
126
|
}) => import("effect/Effect").Effect<{
|
|
127
|
-
readonly name: string;
|
|
128
|
-
readonly createdAt: string;
|
|
129
|
-
readonly lastUsedAt: string | null;
|
|
130
127
|
readonly id: string;
|
|
128
|
+
readonly name: string;
|
|
129
|
+
readonly key?: string | null;
|
|
131
130
|
readonly start: string | null;
|
|
131
|
+
readonly description?: string | null;
|
|
132
|
+
readonly createdAt: string;
|
|
132
133
|
readonly expiresAt: string | null;
|
|
134
|
+
readonly lastUsedAt: string | null;
|
|
133
135
|
readonly isActive: boolean;
|
|
134
|
-
readonly key?: string | null;
|
|
135
|
-
readonly description?: string | null;
|
|
136
136
|
readonly permissions?: {
|
|
137
137
|
readonly [x: string]: readonly string[];
|
|
138
138
|
} | null;
|
|
139
139
|
readonly roleName?: string | null;
|
|
140
|
-
}, import("./generated").
|
|
140
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
141
141
|
export declare const rotate: (input: {
|
|
142
142
|
readonly id: string;
|
|
143
143
|
}) => import("effect/Effect").Effect<{
|
|
144
|
-
readonly name: string;
|
|
145
|
-
readonly createdAt: string;
|
|
146
|
-
readonly lastUsedAt: string | null;
|
|
147
144
|
readonly id: string;
|
|
145
|
+
readonly name: string;
|
|
148
146
|
readonly key: import("effect/Redacted").Redacted<string>;
|
|
149
147
|
readonly start: string | null;
|
|
148
|
+
readonly description?: string | null;
|
|
149
|
+
readonly createdAt: string;
|
|
150
150
|
readonly expiresAt: string | null;
|
|
151
|
+
readonly lastUsedAt: string | null;
|
|
151
152
|
readonly isActive: boolean;
|
|
152
|
-
readonly description?: string | null;
|
|
153
153
|
readonly permissions?: {
|
|
154
154
|
readonly [x: string]: readonly string[];
|
|
155
155
|
} | null;
|
|
156
156
|
readonly roleName?: string | null;
|
|
157
|
-
}, import("./generated").
|
|
157
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
158
158
|
export declare const remove: (input: {
|
|
159
159
|
readonly id: string;
|
|
160
160
|
}) => import("effect/Effect").Effect<{
|
|
161
161
|
readonly success: boolean;
|
|
162
|
-
}, import("./generated").
|
|
162
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
163
163
|
export declare const getStats: (input: {
|
|
164
164
|
readonly id: string;
|
|
165
165
|
readonly period?: string | null | undefined;
|
|
@@ -171,11 +171,11 @@ export declare const getStats: (input: {
|
|
|
171
171
|
readonly date: string;
|
|
172
172
|
readonly requests: number;
|
|
173
173
|
}[];
|
|
174
|
-
}, import("./generated").
|
|
174
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
175
175
|
export declare const getActivity: (input: {
|
|
176
176
|
readonly id: string;
|
|
177
|
-
readonly limit?: string | null | undefined;
|
|
178
177
|
readonly page?: string | null | undefined;
|
|
178
|
+
readonly limit?: string | null | undefined;
|
|
179
179
|
}) => import("effect/Effect").Effect<{
|
|
180
180
|
readonly data: readonly {
|
|
181
181
|
readonly id: string;
|
|
@@ -187,4 +187,4 @@ export declare const getActivity: (input: {
|
|
|
187
187
|
}[];
|
|
188
188
|
readonly total: number;
|
|
189
189
|
readonly hasMore: boolean;
|
|
190
|
-
}, import("./generated").
|
|
190
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
package/dist/effect/api-keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/api-keys.ts
|
|
4
4
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|