samva 0.22.0 → 0.23.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +10 -3
- package/dist/client/sdk.gen.js +21 -2
- package/dist/client/types.gen.d.ts +69 -12
- package/dist/effect/analytics.d.ts +6 -41
- package/dist/effect/api-keys.d.ts +8 -236
- package/dist/effect/attachments.d.ts +4 -43
- package/dist/effect/brands.d.ts +6 -155
- package/dist/effect/campaigns.d.ts +12 -868
- package/dist/effect/contact-groups.d.ts +10 -135
- package/dist/effect/contacts.d.ts +21 -727
- package/dist/effect/conversations.d.ts +13 -681
- package/dist/effect/custom-fields.d.ts +4 -44
- package/dist/effect/email.d.ts +61 -1299
- package/dist/effect/events.d.ts +2 -32
- package/dist/effect/extension-installations.d.ts +9 -213
- package/dist/effect/extensions.d.ts +5 -95
- package/dist/effect/feedback.d.ts +1 -4
- package/dist/effect/generated/analytics.js +8 -8
- package/dist/effect/generated/api-keys.js +4 -4
- package/dist/effect/generated/attachments.js +3 -3
- package/dist/effect/generated/contact-groups.js +11 -11
- package/dist/effect/generated/contacts.js +16 -16
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/custom-fields.js +5 -5
- package/dist/effect/generated/email.js +32 -32
- package/dist/effect/generated/events.js +4 -4
- package/dist/effect/generated/extension-installations.js +4 -4
- package/dist/effect/generated/extensions.js +1 -1
- package/dist/effect/generated/journeys.js +12 -12
- package/dist/effect/generated/mailboxes.js +10 -10
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/organizations.d.ts +116 -9
- package/dist/effect/generated/organizations.js +31 -6
- package/dist/effect/generated/shared.js +1 -1
- package/dist/effect/generated/templates.d.ts +37 -72
- package/dist/effect/generated/templates.js +121 -122
- package/dist/effect/generated/unsubscribe-groups.js +7 -7
- package/dist/effect/generated/webhooks.js +17 -17
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/internal/client.d.ts +5 -1
- package/dist/effect/internal/operation.d.ts +3 -3
- package/dist/effect/internal/send.d.ts +3 -3
- package/dist/effect/journeys.d.ts +167 -1836
- package/dist/effect/mailboxes.d.ts +60 -2362
- package/dist/effect/media.d.ts +5 -66
- package/dist/effect/messages.d.ts +9 -264
- package/dist/effect/namespaces.d.ts +8 -55
- package/dist/effect/operations.d.ts +3 -84
- package/dist/effect/organizations.d.ts +9 -161
- package/dist/effect/organizations.js +3 -1
- package/dist/effect/scheduled-messages.d.ts +5 -401
- package/dist/effect/subscriptions.d.ts +1 -4
- package/dist/effect/templates.d.ts +34 -1506
- package/dist/effect/unsubscribe-groups.d.ts +9 -70
- package/dist/effect/webhooks.d.ts +11 -141
- package/dist/effect/whoami.d.ts +1 -46
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +7 -7
|
@@ -3,27 +3,7 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
|
|
5
5
|
readonly isActive?: string | null | undefined;
|
|
6
|
-
} | undefined) => import("
|
|
7
|
-
readonly items: readonly {
|
|
8
|
-
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
9
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly description: string | null;
|
|
12
|
-
readonly type: "dynamic" | "smart" | "static";
|
|
13
|
-
readonly criteria: {
|
|
14
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
15
|
-
} | null;
|
|
16
|
-
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
17
|
-
readonly icon: string | null;
|
|
18
|
-
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
19
|
-
readonly contactCount: number;
|
|
20
|
-
readonly lastCalculatedAt: string | null;
|
|
21
|
-
readonly isActive: boolean;
|
|
22
|
-
readonly createdAt: string;
|
|
23
|
-
readonly updatedAt: string;
|
|
24
|
-
}[];
|
|
25
|
-
readonly nextCursor: string | null;
|
|
26
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
6
|
+
} | undefined) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
|
|
27
7
|
readonly pages: (input?: {
|
|
28
8
|
readonly limit?: string | null | undefined;
|
|
29
9
|
readonly cursor?: string | null | undefined;
|
|
@@ -109,44 +89,10 @@ export declare const create: (input: {
|
|
|
109
89
|
readonly icon?: string | null | undefined;
|
|
110
90
|
readonly parentGroupId?: string | null | undefined;
|
|
111
91
|
readonly isActive?: boolean | null | undefined;
|
|
112
|
-
}) => import("
|
|
113
|
-
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
114
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
115
|
-
readonly name: string;
|
|
116
|
-
readonly description: string | null;
|
|
117
|
-
readonly type: "dynamic" | "smart" | "static";
|
|
118
|
-
readonly criteria: {
|
|
119
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
120
|
-
} | null;
|
|
121
|
-
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
122
|
-
readonly icon: string | null;
|
|
123
|
-
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
124
|
-
readonly contactCount: number;
|
|
125
|
-
readonly lastCalculatedAt: string | null;
|
|
126
|
-
readonly isActive: boolean;
|
|
127
|
-
readonly createdAt: string;
|
|
128
|
-
readonly updatedAt: string;
|
|
129
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
92
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsCreate">;
|
|
130
93
|
export declare const getById: (input: {
|
|
131
94
|
readonly id: string;
|
|
132
|
-
}) => import("
|
|
133
|
-
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
134
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
135
|
-
readonly name: string;
|
|
136
|
-
readonly description: string | null;
|
|
137
|
-
readonly type: "dynamic" | "smart" | "static";
|
|
138
|
-
readonly criteria: {
|
|
139
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
140
|
-
} | null;
|
|
141
|
-
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
142
|
-
readonly icon: string | null;
|
|
143
|
-
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
144
|
-
readonly contactCount: number;
|
|
145
|
-
readonly lastCalculatedAt: string | null;
|
|
146
|
-
readonly isActive: boolean;
|
|
147
|
-
readonly createdAt: string;
|
|
148
|
-
readonly updatedAt: string;
|
|
149
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
95
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsGetById">;
|
|
150
96
|
export declare const update: (input: {
|
|
151
97
|
readonly id: string;
|
|
152
98
|
readonly name?: string | null | undefined;
|
|
@@ -183,29 +129,10 @@ export declare const update: (input: {
|
|
|
183
129
|
readonly icon?: string | null | undefined;
|
|
184
130
|
readonly parentGroupId?: string | null | undefined;
|
|
185
131
|
readonly isActive?: boolean | null | undefined;
|
|
186
|
-
}) => import("
|
|
187
|
-
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
188
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
189
|
-
readonly name: string;
|
|
190
|
-
readonly description: string | null;
|
|
191
|
-
readonly type: "dynamic" | "smart" | "static";
|
|
192
|
-
readonly criteria: {
|
|
193
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
194
|
-
} | null;
|
|
195
|
-
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
196
|
-
readonly icon: string | null;
|
|
197
|
-
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
198
|
-
readonly contactCount: number;
|
|
199
|
-
readonly lastCalculatedAt: string | null;
|
|
200
|
-
readonly isActive: boolean;
|
|
201
|
-
readonly createdAt: string;
|
|
202
|
-
readonly updatedAt: string;
|
|
203
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
132
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsUpdate">;
|
|
204
133
|
export declare const remove: (input: {
|
|
205
134
|
readonly id: string;
|
|
206
|
-
}) => import("
|
|
207
|
-
readonly success: boolean;
|
|
208
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
135
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
|
|
209
136
|
export declare const preview: (input: {
|
|
210
137
|
readonly criteria: {
|
|
211
138
|
readonly tags?: readonly string[] | null | undefined;
|
|
@@ -239,62 +166,15 @@ export declare const preview: (input: {
|
|
|
239
166
|
} | null;
|
|
240
167
|
}[] | null | undefined;
|
|
241
168
|
};
|
|
242
|
-
}) => import("
|
|
243
|
-
readonly count: number;
|
|
244
|
-
readonly sample: readonly {
|
|
245
|
-
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
246
|
-
readonly name: string;
|
|
247
|
-
readonly status: string;
|
|
248
|
-
}[];
|
|
249
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
169
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
|
|
250
170
|
export declare const evaluateDynamic: (input: {
|
|
251
171
|
readonly id: string;
|
|
252
|
-
}) => import("
|
|
253
|
-
readonly added: number;
|
|
254
|
-
readonly removed: number;
|
|
255
|
-
readonly total: number;
|
|
256
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
172
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
|
|
257
173
|
export declare const getMembers: ((input: {
|
|
258
174
|
readonly id: string;
|
|
259
175
|
readonly limit?: string | null | undefined;
|
|
260
176
|
readonly cursor?: string | null | undefined;
|
|
261
|
-
}) => import("
|
|
262
|
-
readonly items: readonly {
|
|
263
|
-
readonly id: string;
|
|
264
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
265
|
-
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
266
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
267
|
-
readonly role: "admin" | "member" | "moderator";
|
|
268
|
-
readonly joinedAt: string;
|
|
269
|
-
readonly joinedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
270
|
-
readonly expiresAt: string | null;
|
|
271
|
-
readonly contact: {
|
|
272
|
-
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
273
|
-
readonly name: string;
|
|
274
|
-
readonly displayName: string | null;
|
|
275
|
-
readonly type: string;
|
|
276
|
-
readonly identities?: readonly {
|
|
277
|
-
readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
|
|
278
|
-
readonly type: "email" | "phone";
|
|
279
|
-
readonly identifier: string;
|
|
280
|
-
readonly verified: boolean;
|
|
281
|
-
readonly channels: readonly {
|
|
282
|
-
readonly channel: "email";
|
|
283
|
-
readonly reachability: "reachable" | "unknown" | "unreachable";
|
|
284
|
-
readonly consent: {
|
|
285
|
-
readonly status: "opted_in" | "opted_out";
|
|
286
|
-
readonly source: string;
|
|
287
|
-
readonly capturedAt: string;
|
|
288
|
-
readonly proof: {
|
|
289
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
290
|
-
} | null;
|
|
291
|
-
} | null;
|
|
292
|
-
}[];
|
|
293
|
-
}[] | null;
|
|
294
|
-
} | null;
|
|
295
|
-
}[];
|
|
296
|
-
readonly nextCursor: string | null;
|
|
297
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
177
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
|
|
298
178
|
readonly pages: (input: {
|
|
299
179
|
readonly id: string;
|
|
300
180
|
readonly limit?: string | null | undefined;
|
|
@@ -379,13 +259,8 @@ export declare const addMembers: (input: {
|
|
|
379
259
|
readonly id: string;
|
|
380
260
|
readonly contactIds: readonly string[];
|
|
381
261
|
readonly role?: "admin" | "member" | "moderator" | null | undefined;
|
|
382
|
-
}) => import("
|
|
383
|
-
readonly added: number;
|
|
384
|
-
readonly skipped: number;
|
|
385
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
262
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
|
|
386
263
|
export declare const removeMembers: (input: {
|
|
387
264
|
readonly id: string;
|
|
388
265
|
readonly contactIds: readonly string[];
|
|
389
|
-
}) => import("
|
|
390
|
-
readonly removed: number;
|
|
391
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
266
|
+
}) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
|