samva 0.22.0 → 0.22.1
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/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/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 +7 -161
- 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/package.json +7 -7
package/README.md
CHANGED
|
@@ -3,64 +3,29 @@ export declare const getStats: (input?: {
|
|
|
3
3
|
readonly before?: Date | null | undefined;
|
|
4
4
|
readonly groupBy?: "day" | "month" | "week" | null | undefined;
|
|
5
5
|
readonly channel?: "email" | null | undefined;
|
|
6
|
-
} | undefined) => import("
|
|
7
|
-
readonly volumeHistory: readonly {
|
|
8
|
-
readonly date: string;
|
|
9
|
-
readonly email: number;
|
|
10
|
-
}[];
|
|
11
|
-
}, import("./errors").AnalyticsQueryError | 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<"analyticsGetStats">;
|
|
12
7
|
export declare const getChannelStats: (input?: {
|
|
13
8
|
readonly after?: Date | null | undefined;
|
|
14
9
|
readonly before?: Date | null | undefined;
|
|
15
|
-
} | undefined) => import("
|
|
16
|
-
readonly email: {
|
|
17
|
-
readonly sent: number;
|
|
18
|
-
readonly deliveryRate: number;
|
|
19
|
-
readonly uniqueOpenedMessages: number;
|
|
20
|
-
readonly openTrackingEligibleDeliveredMessages: number;
|
|
21
|
-
readonly uniqueMessageOpenRate: number;
|
|
22
|
-
readonly uniqueClickedMessages: number;
|
|
23
|
-
readonly clickTrackingEligibleDeliveredMessages: number;
|
|
24
|
-
readonly uniqueMessageClickRate: number;
|
|
25
|
-
readonly bounceRate: number;
|
|
26
|
-
};
|
|
27
|
-
}, import("./errors").AnalyticsQueryError | 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>;
|
|
10
|
+
} | undefined) => import("./internal/operation").OperationResult<"analyticsGetChannelStats">;
|
|
28
11
|
export declare const getTopContacts: (input?: {
|
|
29
12
|
readonly after?: Date | null | undefined;
|
|
30
13
|
readonly before?: Date | null | undefined;
|
|
31
14
|
readonly limit?: string | null | undefined;
|
|
32
15
|
readonly sortBy?: "received" | "sent" | "total" | null | undefined;
|
|
33
|
-
} | undefined) => import("
|
|
34
|
-
readonly id: string;
|
|
35
|
-
readonly name: string | null;
|
|
36
|
-
readonly email: string | null;
|
|
37
|
-
readonly phone: string | null;
|
|
38
|
-
readonly messageCount: number;
|
|
39
|
-
}[], import("./errors").AnalyticsQueryError | 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>;
|
|
16
|
+
} | undefined) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
|
|
40
17
|
export declare const getHourlyDistribution: (input?: {
|
|
41
18
|
readonly after?: Date | null | undefined;
|
|
42
19
|
readonly before?: Date | null | undefined;
|
|
43
|
-
} | undefined) => import("
|
|
44
|
-
readonly hour: string;
|
|
45
|
-
readonly count: number;
|
|
46
|
-
}[], import("./errors").AnalyticsQueryError | 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>;
|
|
20
|
+
} | undefined) => import("./internal/operation").OperationResult<"analyticsGetHourlyDistribution">;
|
|
47
21
|
export declare const getDeliveryMetrics: (input?: {
|
|
48
22
|
readonly after?: Date | null | undefined;
|
|
49
23
|
readonly before?: Date | null | undefined;
|
|
50
24
|
readonly channel?: "email" | null | undefined;
|
|
51
|
-
} | undefined) => import("
|
|
52
|
-
readonly deliveredRate: number;
|
|
53
|
-
readonly failedRate: number;
|
|
54
|
-
readonly pendingRate: number;
|
|
55
|
-
readonly avgDeliveryTimeMs: number;
|
|
56
|
-
}, import("./errors").AnalyticsQueryError | 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>;
|
|
25
|
+
} | undefined) => import("./internal/operation").OperationResult<"analyticsGetDeliveryMetrics">;
|
|
57
26
|
export declare const exportData: (input: {
|
|
58
27
|
readonly after: Date;
|
|
59
28
|
readonly before: Date;
|
|
60
29
|
readonly format?: "csv" | "json" | null | undefined;
|
|
61
30
|
readonly includeChannels?: readonly "email"[] | null | undefined;
|
|
62
|
-
}) => import("
|
|
63
|
-
readonly content: string;
|
|
64
|
-
readonly mimeType: string;
|
|
65
|
-
readonly filename: string;
|
|
66
|
-
}, import("./errors").AnalyticsQueryError | 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>;
|
|
31
|
+
}) => import("./internal/operation").OperationResult<"analyticsExportData">;
|
|
@@ -4,51 +4,7 @@ export declare const list: ((input?: {
|
|
|
4
4
|
readonly cursor?: string | null | undefined;
|
|
5
5
|
readonly status?: "active" | "revoked" | null | undefined;
|
|
6
6
|
readonly search?: string | null | undefined;
|
|
7
|
-
} | undefined) => import("
|
|
8
|
-
readonly items: readonly {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly key?: string | null;
|
|
12
|
-
readonly start: string | null;
|
|
13
|
-
readonly end: string | null;
|
|
14
|
-
readonly description?: string | null;
|
|
15
|
-
readonly createdAt: string;
|
|
16
|
-
readonly expiresAt: string | null;
|
|
17
|
-
readonly lastUsedAt: string | null;
|
|
18
|
-
readonly isActive: boolean;
|
|
19
|
-
readonly access: {
|
|
20
|
-
readonly mode: "full";
|
|
21
|
-
} | {
|
|
22
|
-
readonly mode: "restricted";
|
|
23
|
-
readonly resources: {
|
|
24
|
-
readonly messages?: "read" | "write" | null;
|
|
25
|
-
readonly email?: "read" | "write" | null;
|
|
26
|
-
readonly domains?: "read" | "write" | null;
|
|
27
|
-
readonly phoneNumbers?: "read" | "write" | null;
|
|
28
|
-
readonly contacts?: "read" | "write" | null;
|
|
29
|
-
readonly conversations?: "read" | "write" | null;
|
|
30
|
-
readonly templates?: "read" | "write" | null;
|
|
31
|
-
readonly webhooks?: "read" | "write" | null;
|
|
32
|
-
readonly apiKeys?: "read" | "write" | null;
|
|
33
|
-
readonly organization?: "read" | "write" | null;
|
|
34
|
-
readonly billing?: "read" | "write" | null;
|
|
35
|
-
readonly analytics?: "read" | "write" | null;
|
|
36
|
-
};
|
|
37
|
-
readonly mailboxes?: {
|
|
38
|
-
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
39
|
-
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
40
|
-
readonly sendMode?: "approval" | "send" | null;
|
|
41
|
-
} | null;
|
|
42
|
-
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
43
|
-
};
|
|
44
|
-
readonly owner: {
|
|
45
|
-
readonly id: string;
|
|
46
|
-
readonly name: string;
|
|
47
|
-
readonly email: string;
|
|
48
|
-
} | null;
|
|
49
|
-
}[];
|
|
50
|
-
readonly nextCursor: string | null;
|
|
51
|
-
}, 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>) & {
|
|
7
|
+
} | undefined) => import("./internal/operation").OperationResult<"apiKeysList">) & {
|
|
52
8
|
readonly pages: (input?: {
|
|
53
9
|
readonly limit?: string | null | undefined;
|
|
54
10
|
readonly cursor?: string | null | undefined;
|
|
@@ -176,97 +132,13 @@ export declare const create: (input: {
|
|
|
176
132
|
} | null | undefined;
|
|
177
133
|
readonly namespaceId?: string | null | undefined;
|
|
178
134
|
} | null | undefined;
|
|
179
|
-
}) => import("
|
|
180
|
-
readonly id: string;
|
|
181
|
-
readonly name: string;
|
|
182
|
-
readonly key: import("effect/Redacted").Redacted<string>;
|
|
183
|
-
readonly start: string | null;
|
|
184
|
-
readonly end: string | null;
|
|
185
|
-
readonly description?: string | null;
|
|
186
|
-
readonly createdAt: string;
|
|
187
|
-
readonly expiresAt: string | null;
|
|
188
|
-
readonly lastUsedAt: string | null;
|
|
189
|
-
readonly isActive: boolean;
|
|
190
|
-
readonly access: {
|
|
191
|
-
readonly mode: "full";
|
|
192
|
-
} | {
|
|
193
|
-
readonly mode: "restricted";
|
|
194
|
-
readonly resources: {
|
|
195
|
-
readonly messages?: "read" | "write" | null;
|
|
196
|
-
readonly email?: "read" | "write" | null;
|
|
197
|
-
readonly domains?: "read" | "write" | null;
|
|
198
|
-
readonly phoneNumbers?: "read" | "write" | null;
|
|
199
|
-
readonly contacts?: "read" | "write" | null;
|
|
200
|
-
readonly conversations?: "read" | "write" | null;
|
|
201
|
-
readonly templates?: "read" | "write" | null;
|
|
202
|
-
readonly webhooks?: "read" | "write" | null;
|
|
203
|
-
readonly apiKeys?: "read" | "write" | null;
|
|
204
|
-
readonly organization?: "read" | "write" | null;
|
|
205
|
-
readonly billing?: "read" | "write" | null;
|
|
206
|
-
readonly analytics?: "read" | "write" | null;
|
|
207
|
-
};
|
|
208
|
-
readonly mailboxes?: {
|
|
209
|
-
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
210
|
-
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
211
|
-
readonly sendMode?: "approval" | "send" | null;
|
|
212
|
-
} | null;
|
|
213
|
-
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
214
|
-
};
|
|
215
|
-
readonly owner: {
|
|
216
|
-
readonly id: string;
|
|
217
|
-
readonly name: string;
|
|
218
|
-
readonly email: string;
|
|
219
|
-
} | null;
|
|
220
|
-
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
135
|
+
}) => import("./internal/operation").OperationResult<"apiKeysCreate">;
|
|
221
136
|
export declare const get: (input: {
|
|
222
137
|
readonly id: string;
|
|
223
|
-
}) => import("
|
|
224
|
-
readonly id: string;
|
|
225
|
-
readonly name: string;
|
|
226
|
-
readonly key?: string | null;
|
|
227
|
-
readonly start: string | null;
|
|
228
|
-
readonly end: string | null;
|
|
229
|
-
readonly description?: string | null;
|
|
230
|
-
readonly createdAt: string;
|
|
231
|
-
readonly expiresAt: string | null;
|
|
232
|
-
readonly lastUsedAt: string | null;
|
|
233
|
-
readonly isActive: boolean;
|
|
234
|
-
readonly access: {
|
|
235
|
-
readonly mode: "full";
|
|
236
|
-
} | {
|
|
237
|
-
readonly mode: "restricted";
|
|
238
|
-
readonly resources: {
|
|
239
|
-
readonly messages?: "read" | "write" | null;
|
|
240
|
-
readonly email?: "read" | "write" | null;
|
|
241
|
-
readonly domains?: "read" | "write" | null;
|
|
242
|
-
readonly phoneNumbers?: "read" | "write" | null;
|
|
243
|
-
readonly contacts?: "read" | "write" | null;
|
|
244
|
-
readonly conversations?: "read" | "write" | null;
|
|
245
|
-
readonly templates?: "read" | "write" | null;
|
|
246
|
-
readonly webhooks?: "read" | "write" | null;
|
|
247
|
-
readonly apiKeys?: "read" | "write" | null;
|
|
248
|
-
readonly organization?: "read" | "write" | null;
|
|
249
|
-
readonly billing?: "read" | "write" | null;
|
|
250
|
-
readonly analytics?: "read" | "write" | null;
|
|
251
|
-
};
|
|
252
|
-
readonly mailboxes?: {
|
|
253
|
-
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
254
|
-
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
255
|
-
readonly sendMode?: "approval" | "send" | null;
|
|
256
|
-
} | null;
|
|
257
|
-
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
258
|
-
};
|
|
259
|
-
readonly owner: {
|
|
260
|
-
readonly id: string;
|
|
261
|
-
readonly name: string;
|
|
262
|
-
readonly email: string;
|
|
263
|
-
} | null;
|
|
264
|
-
}, 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>;
|
|
138
|
+
}) => import("./internal/operation").OperationResult<"apiKeysGet">;
|
|
265
139
|
export declare const revoke: (input: {
|
|
266
140
|
readonly id: string;
|
|
267
|
-
}) => import("
|
|
268
|
-
readonly success: boolean;
|
|
269
|
-
}, import("./errors").BillingProviderError | 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>;
|
|
141
|
+
}) => import("./internal/operation").OperationResult<"apiKeysRevoke">;
|
|
270
142
|
export declare const update: (input: {
|
|
271
143
|
readonly id: string;
|
|
272
144
|
readonly name?: string | null | undefined;
|
|
@@ -274,120 +146,20 @@ export declare const update: (input: {
|
|
|
274
146
|
readonly mailboxes?: {
|
|
275
147
|
readonly sendMode: "approval" | "send";
|
|
276
148
|
} | null | undefined;
|
|
277
|
-
}) => import("
|
|
278
|
-
readonly id: string;
|
|
279
|
-
readonly name: string;
|
|
280
|
-
readonly key?: string | null;
|
|
281
|
-
readonly start: string | null;
|
|
282
|
-
readonly end: string | null;
|
|
283
|
-
readonly description?: string | null;
|
|
284
|
-
readonly createdAt: string;
|
|
285
|
-
readonly expiresAt: string | null;
|
|
286
|
-
readonly lastUsedAt: string | null;
|
|
287
|
-
readonly isActive: boolean;
|
|
288
|
-
readonly access: {
|
|
289
|
-
readonly mode: "full";
|
|
290
|
-
} | {
|
|
291
|
-
readonly mode: "restricted";
|
|
292
|
-
readonly resources: {
|
|
293
|
-
readonly messages?: "read" | "write" | null;
|
|
294
|
-
readonly email?: "read" | "write" | null;
|
|
295
|
-
readonly domains?: "read" | "write" | null;
|
|
296
|
-
readonly phoneNumbers?: "read" | "write" | null;
|
|
297
|
-
readonly contacts?: "read" | "write" | null;
|
|
298
|
-
readonly conversations?: "read" | "write" | null;
|
|
299
|
-
readonly templates?: "read" | "write" | null;
|
|
300
|
-
readonly webhooks?: "read" | "write" | null;
|
|
301
|
-
readonly apiKeys?: "read" | "write" | null;
|
|
302
|
-
readonly organization?: "read" | "write" | null;
|
|
303
|
-
readonly billing?: "read" | "write" | null;
|
|
304
|
-
readonly analytics?: "read" | "write" | null;
|
|
305
|
-
};
|
|
306
|
-
readonly mailboxes?: {
|
|
307
|
-
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
308
|
-
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
309
|
-
readonly sendMode?: "approval" | "send" | null;
|
|
310
|
-
} | null;
|
|
311
|
-
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
312
|
-
};
|
|
313
|
-
readonly owner: {
|
|
314
|
-
readonly id: string;
|
|
315
|
-
readonly name: string;
|
|
316
|
-
readonly email: string;
|
|
317
|
-
} | null;
|
|
318
|
-
}, 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>;
|
|
149
|
+
}) => import("./internal/operation").OperationResult<"apiKeysUpdate">;
|
|
319
150
|
export declare const rotate: (input: {
|
|
320
151
|
readonly id: string;
|
|
321
|
-
}) => import("
|
|
322
|
-
readonly id: string;
|
|
323
|
-
readonly name: string;
|
|
324
|
-
readonly key: import("effect/Redacted").Redacted<string>;
|
|
325
|
-
readonly start: string | null;
|
|
326
|
-
readonly end: string | null;
|
|
327
|
-
readonly description?: string | null;
|
|
328
|
-
readonly createdAt: string;
|
|
329
|
-
readonly expiresAt: string | null;
|
|
330
|
-
readonly lastUsedAt: string | null;
|
|
331
|
-
readonly isActive: boolean;
|
|
332
|
-
readonly access: {
|
|
333
|
-
readonly mode: "full";
|
|
334
|
-
} | {
|
|
335
|
-
readonly mode: "restricted";
|
|
336
|
-
readonly resources: {
|
|
337
|
-
readonly messages?: "read" | "write" | null;
|
|
338
|
-
readonly email?: "read" | "write" | null;
|
|
339
|
-
readonly domains?: "read" | "write" | null;
|
|
340
|
-
readonly phoneNumbers?: "read" | "write" | null;
|
|
341
|
-
readonly contacts?: "read" | "write" | null;
|
|
342
|
-
readonly conversations?: "read" | "write" | null;
|
|
343
|
-
readonly templates?: "read" | "write" | null;
|
|
344
|
-
readonly webhooks?: "read" | "write" | null;
|
|
345
|
-
readonly apiKeys?: "read" | "write" | null;
|
|
346
|
-
readonly organization?: "read" | "write" | null;
|
|
347
|
-
readonly billing?: "read" | "write" | null;
|
|
348
|
-
readonly analytics?: "read" | "write" | null;
|
|
349
|
-
};
|
|
350
|
-
readonly mailboxes?: {
|
|
351
|
-
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
352
|
-
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
353
|
-
readonly sendMode?: "approval" | "send" | null;
|
|
354
|
-
} | null;
|
|
355
|
-
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
356
|
-
};
|
|
357
|
-
readonly owner: {
|
|
358
|
-
readonly id: string;
|
|
359
|
-
readonly name: string;
|
|
360
|
-
readonly email: string;
|
|
361
|
-
} | null;
|
|
362
|
-
}, 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>;
|
|
152
|
+
}) => import("./internal/operation").OperationResult<"apiKeysRotate">;
|
|
363
153
|
export declare const getStats: (input: {
|
|
364
154
|
readonly id: string;
|
|
365
155
|
readonly after?: string | null | undefined;
|
|
366
156
|
readonly before?: string | null | undefined;
|
|
367
|
-
}) => import("
|
|
368
|
-
readonly totalRequests: number;
|
|
369
|
-
readonly successfulRequests: number;
|
|
370
|
-
readonly failedRequests: number;
|
|
371
|
-
readonly dailyVolume: readonly {
|
|
372
|
-
readonly date: string;
|
|
373
|
-
readonly requests: number;
|
|
374
|
-
}[];
|
|
375
|
-
}, 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>;
|
|
157
|
+
}) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
|
|
376
158
|
export declare const getActivity: ((input: {
|
|
377
159
|
readonly id: string;
|
|
378
160
|
readonly limit?: string | null | undefined;
|
|
379
161
|
readonly cursor?: string | null | undefined;
|
|
380
|
-
}) => import("
|
|
381
|
-
readonly items: readonly {
|
|
382
|
-
readonly id: string;
|
|
383
|
-
readonly timestamp: string;
|
|
384
|
-
readonly method: string;
|
|
385
|
-
readonly endpoint: string;
|
|
386
|
-
readonly statusCode: number;
|
|
387
|
-
readonly latency: number;
|
|
388
|
-
}[];
|
|
389
|
-
readonly nextCursor: string | null;
|
|
390
|
-
}, 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>) & {
|
|
162
|
+
}) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
|
|
391
163
|
readonly pages: (input: {
|
|
392
164
|
readonly id: string;
|
|
393
165
|
readonly limit?: string | null | undefined;
|
|
@@ -1,52 +1,13 @@
|
|
|
1
1
|
export declare const list: (input: {
|
|
2
2
|
readonly messageId: string;
|
|
3
|
-
}) => import("
|
|
4
|
-
readonly items: readonly {
|
|
5
|
-
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
6
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
7
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
8
|
-
readonly filename: string;
|
|
9
|
-
readonly contentType: string;
|
|
10
|
-
readonly size: number;
|
|
11
|
-
readonly contentId: string | null;
|
|
12
|
-
readonly isInline: boolean;
|
|
13
|
-
readonly createdAt: string;
|
|
14
|
-
}[];
|
|
15
|
-
}, 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>;
|
|
3
|
+
}) => import("./internal/operation").OperationResult<"attachmentsList">;
|
|
16
4
|
export declare const getById: (input: {
|
|
17
5
|
readonly id: string;
|
|
18
|
-
}) => import("
|
|
19
|
-
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
20
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
21
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
22
|
-
readonly filename: string;
|
|
23
|
-
readonly contentType: string;
|
|
24
|
-
readonly size: number;
|
|
25
|
-
readonly contentId: string | null;
|
|
26
|
-
readonly isInline: boolean;
|
|
27
|
-
readonly createdAt: string;
|
|
28
|
-
}, 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>;
|
|
6
|
+
}) => import("./internal/operation").OperationResult<"attachmentsGetById">;
|
|
29
7
|
export declare const remove: (input: {
|
|
30
8
|
readonly id: string;
|
|
31
|
-
}) => import("
|
|
32
|
-
readonly success: boolean;
|
|
33
|
-
readonly deletedId: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
34
|
-
}, 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>;
|
|
9
|
+
}) => import("./internal/operation").OperationResult<"attachmentsRemove">;
|
|
35
10
|
export declare const downloadUrl: (input: {
|
|
36
11
|
readonly id: string;
|
|
37
12
|
readonly expiresIn?: string | null | undefined;
|
|
38
|
-
}) => import("
|
|
39
|
-
readonly url: string;
|
|
40
|
-
readonly expiresAt: string;
|
|
41
|
-
readonly attachment: {
|
|
42
|
-
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
43
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
44
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
45
|
-
readonly filename: string;
|
|
46
|
-
readonly contentType: string;
|
|
47
|
-
readonly size: number;
|
|
48
|
-
readonly contentId: string | null;
|
|
49
|
-
readonly isInline: boolean;
|
|
50
|
-
readonly createdAt: string;
|
|
51
|
-
};
|
|
52
|
-
}, 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>;
|
|
13
|
+
}) => import("./internal/operation").OperationResult<"attachmentsDownloadUrl">;
|
package/dist/effect/brands.d.ts
CHANGED
|
@@ -1,36 +1,5 @@
|
|
|
1
1
|
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared";
|
|
2
|
-
export declare const list: (_?: never) => import("
|
|
3
|
-
readonly items: readonly {
|
|
4
|
-
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
5
|
-
readonly slug: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly isDefault: boolean;
|
|
8
|
-
readonly css: string;
|
|
9
|
-
readonly assets: {
|
|
10
|
-
readonly logoUrl?: string | null;
|
|
11
|
-
readonly logoDarkUrl?: string | null;
|
|
12
|
-
readonly iconUrl?: string | null;
|
|
13
|
-
};
|
|
14
|
-
readonly footer: {
|
|
15
|
-
readonly companyName?: string | null;
|
|
16
|
-
readonly address?: {
|
|
17
|
-
readonly street1: string;
|
|
18
|
-
readonly street2?: string | null;
|
|
19
|
-
readonly city: string;
|
|
20
|
-
readonly region: string;
|
|
21
|
-
readonly postalCode: string;
|
|
22
|
-
readonly country: string;
|
|
23
|
-
} | null;
|
|
24
|
-
readonly socialLinks?: readonly {
|
|
25
|
-
readonly label: string;
|
|
26
|
-
readonly url: string;
|
|
27
|
-
}[] | null;
|
|
28
|
-
};
|
|
29
|
-
readonly digest: string;
|
|
30
|
-
readonly createdAt: string;
|
|
31
|
-
readonly updatedAt: string;
|
|
32
|
-
}[];
|
|
33
|
-
}, 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>;
|
|
2
|
+
export declare const list: (_?: never) => import("./internal/operation").OperationResult<"brandsList">;
|
|
34
3
|
export declare const create: (input: {
|
|
35
4
|
readonly slug: string;
|
|
36
5
|
readonly name: string;
|
|
@@ -56,68 +25,10 @@ export declare const create: (input: {
|
|
|
56
25
|
}[] | null | undefined;
|
|
57
26
|
} | null | undefined;
|
|
58
27
|
readonly isDefault?: boolean | null | undefined;
|
|
59
|
-
}) => import("
|
|
60
|
-
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
61
|
-
readonly slug: string;
|
|
62
|
-
readonly name: string;
|
|
63
|
-
readonly isDefault: boolean;
|
|
64
|
-
readonly css: string;
|
|
65
|
-
readonly assets: {
|
|
66
|
-
readonly logoUrl?: string | null;
|
|
67
|
-
readonly logoDarkUrl?: string | null;
|
|
68
|
-
readonly iconUrl?: string | null;
|
|
69
|
-
};
|
|
70
|
-
readonly footer: {
|
|
71
|
-
readonly companyName?: string | null;
|
|
72
|
-
readonly address?: {
|
|
73
|
-
readonly street1: string;
|
|
74
|
-
readonly street2?: string | null;
|
|
75
|
-
readonly city: string;
|
|
76
|
-
readonly region: string;
|
|
77
|
-
readonly postalCode: string;
|
|
78
|
-
readonly country: string;
|
|
79
|
-
} | null;
|
|
80
|
-
readonly socialLinks?: readonly {
|
|
81
|
-
readonly label: string;
|
|
82
|
-
readonly url: string;
|
|
83
|
-
}[] | null;
|
|
84
|
-
};
|
|
85
|
-
readonly digest: string;
|
|
86
|
-
readonly createdAt: string;
|
|
87
|
-
readonly updatedAt: string;
|
|
88
|
-
}, import("./errors").ConflictError | 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>;
|
|
28
|
+
}) => import("./internal/operation").OperationResult<"brandsCreate">;
|
|
89
29
|
export declare const get: (input: {
|
|
90
30
|
readonly slug: string;
|
|
91
|
-
}) => import("
|
|
92
|
-
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
93
|
-
readonly slug: string;
|
|
94
|
-
readonly name: string;
|
|
95
|
-
readonly isDefault: boolean;
|
|
96
|
-
readonly css: string;
|
|
97
|
-
readonly assets: {
|
|
98
|
-
readonly logoUrl?: string | null;
|
|
99
|
-
readonly logoDarkUrl?: string | null;
|
|
100
|
-
readonly iconUrl?: string | null;
|
|
101
|
-
};
|
|
102
|
-
readonly footer: {
|
|
103
|
-
readonly companyName?: string | null;
|
|
104
|
-
readonly address?: {
|
|
105
|
-
readonly street1: string;
|
|
106
|
-
readonly street2?: string | null;
|
|
107
|
-
readonly city: string;
|
|
108
|
-
readonly region: string;
|
|
109
|
-
readonly postalCode: string;
|
|
110
|
-
readonly country: string;
|
|
111
|
-
} | null;
|
|
112
|
-
readonly socialLinks?: readonly {
|
|
113
|
-
readonly label: string;
|
|
114
|
-
readonly url: string;
|
|
115
|
-
}[] | null;
|
|
116
|
-
};
|
|
117
|
-
readonly digest: string;
|
|
118
|
-
readonly createdAt: string;
|
|
119
|
-
readonly updatedAt: string;
|
|
120
|
-
}, 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>;
|
|
31
|
+
}) => import("./internal/operation").OperationResult<"brandsGet">;
|
|
121
32
|
export declare const update: (input: {
|
|
122
33
|
readonly slug: string;
|
|
123
34
|
readonly newSlug?: string | null | undefined;
|
|
@@ -143,70 +54,10 @@ export declare const update: (input: {
|
|
|
143
54
|
readonly url: string;
|
|
144
55
|
}[] | null | undefined;
|
|
145
56
|
} | null | undefined;
|
|
146
|
-
}) => import("
|
|
147
|
-
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
148
|
-
readonly slug: string;
|
|
149
|
-
readonly name: string;
|
|
150
|
-
readonly isDefault: boolean;
|
|
151
|
-
readonly css: string;
|
|
152
|
-
readonly assets: {
|
|
153
|
-
readonly logoUrl?: string | null;
|
|
154
|
-
readonly logoDarkUrl?: string | null;
|
|
155
|
-
readonly iconUrl?: string | null;
|
|
156
|
-
};
|
|
157
|
-
readonly footer: {
|
|
158
|
-
readonly companyName?: string | null;
|
|
159
|
-
readonly address?: {
|
|
160
|
-
readonly street1: string;
|
|
161
|
-
readonly street2?: string | null;
|
|
162
|
-
readonly city: string;
|
|
163
|
-
readonly region: string;
|
|
164
|
-
readonly postalCode: string;
|
|
165
|
-
readonly country: string;
|
|
166
|
-
} | null;
|
|
167
|
-
readonly socialLinks?: readonly {
|
|
168
|
-
readonly label: string;
|
|
169
|
-
readonly url: string;
|
|
170
|
-
}[] | null;
|
|
171
|
-
};
|
|
172
|
-
readonly digest: string;
|
|
173
|
-
readonly createdAt: string;
|
|
174
|
-
readonly updatedAt: string;
|
|
175
|
-
}, import("./errors").ConflictError | 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>;
|
|
57
|
+
}) => import("./internal/operation").OperationResult<"brandsUpdate">;
|
|
176
58
|
export declare const remove: (input: {
|
|
177
59
|
readonly slug: string;
|
|
178
|
-
}) => import("
|
|
179
|
-
readonly success: boolean;
|
|
180
|
-
}, import("./errors").ConflictError | 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>;
|
|
60
|
+
}) => import("./internal/operation").OperationResult<"brandsRemove">;
|
|
181
61
|
export declare const setDefault: (input: {
|
|
182
62
|
readonly slug: string;
|
|
183
|
-
}) => import("
|
|
184
|
-
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
185
|
-
readonly slug: string;
|
|
186
|
-
readonly name: string;
|
|
187
|
-
readonly isDefault: boolean;
|
|
188
|
-
readonly css: string;
|
|
189
|
-
readonly assets: {
|
|
190
|
-
readonly logoUrl?: string | null;
|
|
191
|
-
readonly logoDarkUrl?: string | null;
|
|
192
|
-
readonly iconUrl?: string | null;
|
|
193
|
-
};
|
|
194
|
-
readonly footer: {
|
|
195
|
-
readonly companyName?: string | null;
|
|
196
|
-
readonly address?: {
|
|
197
|
-
readonly street1: string;
|
|
198
|
-
readonly street2?: string | null;
|
|
199
|
-
readonly city: string;
|
|
200
|
-
readonly region: string;
|
|
201
|
-
readonly postalCode: string;
|
|
202
|
-
readonly country: string;
|
|
203
|
-
} | null;
|
|
204
|
-
readonly socialLinks?: readonly {
|
|
205
|
-
readonly label: string;
|
|
206
|
-
readonly url: string;
|
|
207
|
-
}[] | null;
|
|
208
|
-
};
|
|
209
|
-
readonly digest: string;
|
|
210
|
-
readonly createdAt: string;
|
|
211
|
-
readonly updatedAt: string;
|
|
212
|
-
}, 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>;
|
|
63
|
+
}) => import("./internal/operation").OperationResult<"brandsSetDefault">;
|