samva 0.17.0 → 0.18.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 +5 -0
- package/README.md +16 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +4 -2293
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +28 -28
- package/dist/effect/contacts.js +52 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +3 -81
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +3 -36
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +4 -29
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +3 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +793 -951
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.js +671 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +3 -24
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +5 -29
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +4 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/{categories-CA4XIQAb.js → effect/generated-metadata.js} +2 -94
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +14 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +14 -14
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.js +288 -3
- package/dist/{operation-n_IYgNVK.js → service-map.js} +2 -148
- package/package.json +6 -2
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
|
@@ -33,7 +33,7 @@ export declare const list: ((input?: {
|
|
|
33
33
|
readonly updatedAt: string;
|
|
34
34
|
}[];
|
|
35
35
|
readonly nextCursor: string | null;
|
|
36
|
-
}, import("./
|
|
36
|
+
}, 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>) & {
|
|
37
37
|
readonly pages: (input?: {
|
|
38
38
|
readonly limit?: string | null | undefined;
|
|
39
39
|
readonly cursor?: string | null | undefined;
|
|
@@ -68,7 +68,7 @@ export declare const list: ((input?: {
|
|
|
68
68
|
readonly updatedAt: string;
|
|
69
69
|
}[];
|
|
70
70
|
readonly nextCursor: string | null;
|
|
71
|
-
}, import("./
|
|
71
|
+
}, 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>;
|
|
72
72
|
readonly items: (input?: {
|
|
73
73
|
readonly limit?: string | null | undefined;
|
|
74
74
|
readonly cursor?: string | null | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const list: ((input?: {
|
|
|
100
100
|
readonly lastUsedAt: string | null;
|
|
101
101
|
readonly createdAt: string;
|
|
102
102
|
readonly updatedAt: string;
|
|
103
|
-
}, import("./
|
|
103
|
+
}, 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>;
|
|
104
104
|
};
|
|
105
105
|
export declare const create: (input: {
|
|
106
106
|
readonly name: string;
|
|
@@ -155,7 +155,7 @@ export declare const create: (input: {
|
|
|
155
155
|
readonly inputSchema: {
|
|
156
156
|
readonly [x: string]: import("./generated").JsonValue;
|
|
157
157
|
} | null;
|
|
158
|
-
}, import("./
|
|
158
|
+
}, 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>;
|
|
159
159
|
export declare const addEntry: (input: {
|
|
160
160
|
readonly id: string;
|
|
161
161
|
readonly entryPath: string;
|
|
@@ -206,7 +206,7 @@ export declare const addEntry: (input: {
|
|
|
206
206
|
readonly inputSchema: {
|
|
207
207
|
readonly [x: string]: import("./generated").JsonValue;
|
|
208
208
|
} | null;
|
|
209
|
-
}, import("./
|
|
209
|
+
}, 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>;
|
|
210
210
|
export declare const listFamilies: ((input?: {
|
|
211
211
|
readonly limit?: string | null | undefined;
|
|
212
212
|
readonly cursor?: string | null | undefined;
|
|
@@ -228,7 +228,7 @@ export declare const listFamilies: ((input?: {
|
|
|
228
228
|
readonly updatedAt: string;
|
|
229
229
|
}[];
|
|
230
230
|
readonly nextCursor: string | null;
|
|
231
|
-
}, import("./
|
|
231
|
+
}, 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>) & {
|
|
232
232
|
readonly pages: (input?: {
|
|
233
233
|
readonly limit?: string | null | undefined;
|
|
234
234
|
readonly cursor?: string | null | undefined;
|
|
@@ -250,7 +250,7 @@ export declare const listFamilies: ((input?: {
|
|
|
250
250
|
readonly updatedAt: string;
|
|
251
251
|
}[];
|
|
252
252
|
readonly nextCursor: string | null;
|
|
253
|
-
}, import("./
|
|
253
|
+
}, 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>;
|
|
254
254
|
readonly items: (input?: {
|
|
255
255
|
readonly limit?: string | null | undefined;
|
|
256
256
|
readonly cursor?: string | null | undefined;
|
|
@@ -269,7 +269,7 @@ export declare const listFamilies: ((input?: {
|
|
|
269
269
|
}[];
|
|
270
270
|
readonly createdAt: string;
|
|
271
271
|
readonly updatedAt: string;
|
|
272
|
-
}, import("./
|
|
272
|
+
}, 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>;
|
|
273
273
|
};
|
|
274
274
|
export declare const createFamily: (input: {
|
|
275
275
|
readonly name: string;
|
|
@@ -288,7 +288,7 @@ export declare const createFamily: (input: {
|
|
|
288
288
|
}[];
|
|
289
289
|
readonly createdAt: string;
|
|
290
290
|
readonly updatedAt: string;
|
|
291
|
-
}, import("./
|
|
291
|
+
}, 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>;
|
|
292
292
|
export declare const getFamily: (input: {
|
|
293
293
|
readonly id: string;
|
|
294
294
|
}) => import("effect/Effect").Effect<{
|
|
@@ -306,12 +306,12 @@ export declare const getFamily: (input: {
|
|
|
306
306
|
}[];
|
|
307
307
|
readonly createdAt: string;
|
|
308
308
|
readonly updatedAt: string;
|
|
309
|
-
}, import("./
|
|
309
|
+
}, 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>;
|
|
310
310
|
export declare const deleteFamily: (input: {
|
|
311
311
|
readonly id: string;
|
|
312
312
|
}) => import("effect/Effect").Effect<{
|
|
313
313
|
readonly success: boolean;
|
|
314
|
-
}, import("./
|
|
314
|
+
}, 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>;
|
|
315
315
|
export declare const renameFamily: (input: {
|
|
316
316
|
readonly id: string;
|
|
317
317
|
readonly name: string;
|
|
@@ -330,7 +330,7 @@ export declare const renameFamily: (input: {
|
|
|
330
330
|
}[];
|
|
331
331
|
readonly createdAt: string;
|
|
332
332
|
readonly updatedAt: string;
|
|
333
|
-
}, import("./
|
|
333
|
+
}, 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>;
|
|
334
334
|
export declare const createFamilyFromTemplate: (input: {
|
|
335
335
|
readonly templateId: string;
|
|
336
336
|
readonly name: string;
|
|
@@ -349,7 +349,7 @@ export declare const createFamilyFromTemplate: (input: {
|
|
|
349
349
|
}[];
|
|
350
350
|
readonly createdAt: string;
|
|
351
351
|
readonly updatedAt: string;
|
|
352
|
-
}, import("./
|
|
352
|
+
}, 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>;
|
|
353
353
|
export declare const attachFamilyMember: (input: {
|
|
354
354
|
readonly id: string;
|
|
355
355
|
readonly templateId: string;
|
|
@@ -368,7 +368,7 @@ export declare const attachFamilyMember: (input: {
|
|
|
368
368
|
}[];
|
|
369
369
|
readonly createdAt: string;
|
|
370
370
|
readonly updatedAt: string;
|
|
371
|
-
}, import("./
|
|
371
|
+
}, 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>;
|
|
372
372
|
export declare const detachFamilyMember: (input: {
|
|
373
373
|
readonly id: string;
|
|
374
374
|
readonly templateId: string;
|
|
@@ -387,7 +387,7 @@ export declare const detachFamilyMember: (input: {
|
|
|
387
387
|
}[];
|
|
388
388
|
readonly createdAt: string;
|
|
389
389
|
readonly updatedAt: string;
|
|
390
|
-
}, import("./
|
|
390
|
+
}, 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>;
|
|
391
391
|
export declare const getById: (input: {
|
|
392
392
|
readonly id: string;
|
|
393
393
|
}) => import("effect/Effect").Effect<{
|
|
@@ -433,12 +433,12 @@ export declare const getById: (input: {
|
|
|
433
433
|
readonly inputSchema: {
|
|
434
434
|
readonly [x: string]: import("./generated").JsonValue;
|
|
435
435
|
} | null;
|
|
436
|
-
}, import("./
|
|
436
|
+
}, 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>;
|
|
437
437
|
export declare const remove: (input: {
|
|
438
438
|
readonly id: string;
|
|
439
439
|
}) => import("effect/Effect").Effect<{
|
|
440
440
|
readonly success: boolean;
|
|
441
|
-
}, import("./
|
|
441
|
+
}, 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>;
|
|
442
442
|
export declare const update: (input: {
|
|
443
443
|
readonly id: string;
|
|
444
444
|
readonly data: {
|
|
@@ -497,7 +497,7 @@ export declare const update: (input: {
|
|
|
497
497
|
readonly inputSchema: {
|
|
498
498
|
readonly [x: string]: import("./generated").JsonValue;
|
|
499
499
|
} | null;
|
|
500
|
-
}, import("./
|
|
500
|
+
}, 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>;
|
|
501
501
|
export declare const openWorkspace: (input: {
|
|
502
502
|
readonly id: string;
|
|
503
503
|
}) => import("effect/Effect").Effect<{
|
|
@@ -580,13 +580,13 @@ export declare const openWorkspace: (input: {
|
|
|
580
580
|
readonly files: {
|
|
581
581
|
readonly [x: string]: string;
|
|
582
582
|
};
|
|
583
|
-
}, import("./
|
|
583
|
+
}, 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>;
|
|
584
584
|
export declare const getGitRepository: (input: {
|
|
585
585
|
readonly id: string;
|
|
586
586
|
}) => import("effect/Effect").Effect<{
|
|
587
587
|
readonly remote: string;
|
|
588
588
|
readonly defaultBranch: string;
|
|
589
|
-
}, import("./
|
|
589
|
+
}, 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>;
|
|
590
590
|
export declare const issueGitCredential: (input: {
|
|
591
591
|
readonly id: string;
|
|
592
592
|
readonly scope: "read" | "write";
|
|
@@ -595,7 +595,7 @@ export declare const issueGitCredential: (input: {
|
|
|
595
595
|
readonly username: "x-access-token";
|
|
596
596
|
readonly password: string;
|
|
597
597
|
readonly expiresAt: string;
|
|
598
|
-
}, import("./
|
|
598
|
+
}, 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>;
|
|
599
599
|
export declare const patchWorkspace: (input: {
|
|
600
600
|
readonly id: string;
|
|
601
601
|
readonly expectedRevision: string;
|
|
@@ -684,7 +684,7 @@ export declare const patchWorkspace: (input: {
|
|
|
684
684
|
readonly files: {
|
|
685
685
|
readonly [x: string]: string;
|
|
686
686
|
};
|
|
687
|
-
}, import("./
|
|
687
|
+
}, 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>;
|
|
688
688
|
export declare const putWorkspaceAsset: (input: {
|
|
689
689
|
readonly id: string;
|
|
690
690
|
readonly expectedRevision: string;
|
|
@@ -772,7 +772,7 @@ export declare const putWorkspaceAsset: (input: {
|
|
|
772
772
|
readonly files: {
|
|
773
773
|
readonly [x: string]: string;
|
|
774
774
|
};
|
|
775
|
-
}, import("./
|
|
775
|
+
}, 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>;
|
|
776
776
|
export declare const resolveWorkspaceConflict: (input: {
|
|
777
777
|
readonly id: string;
|
|
778
778
|
readonly expectedRevision: string;
|
|
@@ -861,7 +861,7 @@ export declare const resolveWorkspaceConflict: (input: {
|
|
|
861
861
|
readonly files: {
|
|
862
862
|
readonly [x: string]: string;
|
|
863
863
|
};
|
|
864
|
-
}, import("./
|
|
864
|
+
}, 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>;
|
|
865
865
|
export declare const attachWorkspaceResource: (input: {
|
|
866
866
|
readonly id: string;
|
|
867
867
|
readonly expectedRevision: string;
|
|
@@ -950,7 +950,7 @@ export declare const attachWorkspaceResource: (input: {
|
|
|
950
950
|
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
951
951
|
readonly via: "agent" | "api" | "mcp";
|
|
952
952
|
};
|
|
953
|
-
}, import("./
|
|
953
|
+
}, 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>;
|
|
954
954
|
export declare const removeWorkspaceResource: (input: {
|
|
955
955
|
readonly id: string;
|
|
956
956
|
readonly resourceId: string;
|
|
@@ -1031,7 +1031,7 @@ export declare const removeWorkspaceResource: (input: {
|
|
|
1031
1031
|
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1032
1032
|
readonly via: "agent" | "api" | "mcp";
|
|
1033
1033
|
};
|
|
1034
|
-
}, import("./
|
|
1034
|
+
}, 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>;
|
|
1035
1035
|
export declare const restoreWorkspace: (input: {
|
|
1036
1036
|
readonly id: string;
|
|
1037
1037
|
readonly expectedRevision: string;
|
|
@@ -1123,7 +1123,7 @@ export declare const restoreWorkspace: (input: {
|
|
|
1123
1123
|
readonly digest: string;
|
|
1124
1124
|
readonly content: string;
|
|
1125
1125
|
};
|
|
1126
|
-
}, import("./
|
|
1126
|
+
}, 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>;
|
|
1127
1127
|
export declare const saveWorkspace: (input: {
|
|
1128
1128
|
readonly id: string;
|
|
1129
1129
|
readonly expectedRevision: string;
|
|
@@ -1184,7 +1184,7 @@ export declare const saveWorkspace: (input: {
|
|
|
1184
1184
|
readonly title: string;
|
|
1185
1185
|
} | null;
|
|
1186
1186
|
}[];
|
|
1187
|
-
}, import("./
|
|
1187
|
+
}, 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>;
|
|
1188
1188
|
export declare const checkWorkspace: (input: {
|
|
1189
1189
|
readonly id: string;
|
|
1190
1190
|
readonly expectedRevision: string;
|
|
@@ -1250,7 +1250,7 @@ export declare const checkWorkspace: (input: {
|
|
|
1250
1250
|
readonly title: string;
|
|
1251
1251
|
} | null;
|
|
1252
1252
|
}[];
|
|
1253
|
-
}, import("./
|
|
1253
|
+
}, 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>;
|
|
1254
1254
|
export declare const renderWorkspaceFixture: (input: {
|
|
1255
1255
|
readonly id: string;
|
|
1256
1256
|
readonly expectedRevision: string;
|
|
@@ -1339,7 +1339,7 @@ export declare const renderWorkspaceFixture: (input: {
|
|
|
1339
1339
|
readonly end: number;
|
|
1340
1340
|
}[];
|
|
1341
1341
|
} | null;
|
|
1342
|
-
}, import("./
|
|
1342
|
+
}, 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>;
|
|
1343
1343
|
export declare const publish: (input: {
|
|
1344
1344
|
readonly id: string;
|
|
1345
1345
|
readonly projectId: string;
|
|
@@ -1485,7 +1485,7 @@ export declare const publish: (input: {
|
|
|
1485
1485
|
readonly publishedAt: string;
|
|
1486
1486
|
readonly publishedBy: string | null;
|
|
1487
1487
|
readonly createdAt: string;
|
|
1488
|
-
}, import("./
|
|
1488
|
+
}, 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>;
|
|
1489
1489
|
export declare const getPublication: (input: {
|
|
1490
1490
|
readonly id: string;
|
|
1491
1491
|
readonly publicationId: string;
|
|
@@ -1627,7 +1627,7 @@ export declare const getPublication: (input: {
|
|
|
1627
1627
|
readonly publishedAt: string;
|
|
1628
1628
|
readonly publishedBy: string | null;
|
|
1629
1629
|
readonly createdAt: string;
|
|
1630
|
-
}, import("./
|
|
1630
|
+
}, 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>;
|
|
1631
1631
|
export declare const renderPublication: (input: {
|
|
1632
1632
|
readonly id: string;
|
|
1633
1633
|
readonly publicationId: string;
|
|
@@ -1665,7 +1665,7 @@ export declare const renderPublication: (input: {
|
|
|
1665
1665
|
readonly preheader?: string;
|
|
1666
1666
|
readonly html: string;
|
|
1667
1667
|
readonly text: string;
|
|
1668
|
-
}, import("./
|
|
1668
|
+
}, 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>;
|
|
1669
1669
|
export declare const listInputContracts: ((input: {
|
|
1670
1670
|
readonly id: string;
|
|
1671
1671
|
readonly limit?: string | null | undefined;
|
|
@@ -1683,7 +1683,7 @@ export declare const listInputContracts: ((input: {
|
|
|
1683
1683
|
readonly createdAt: string;
|
|
1684
1684
|
}[];
|
|
1685
1685
|
readonly nextCursor: string | null;
|
|
1686
|
-
}, import("./
|
|
1686
|
+
}, 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>) & {
|
|
1687
1687
|
readonly pages: (input: {
|
|
1688
1688
|
readonly id: string;
|
|
1689
1689
|
readonly limit?: string | null | undefined;
|
|
@@ -1701,7 +1701,7 @@ export declare const listInputContracts: ((input: {
|
|
|
1701
1701
|
readonly createdAt: string;
|
|
1702
1702
|
}[];
|
|
1703
1703
|
readonly nextCursor: string | null;
|
|
1704
|
-
}, import("./
|
|
1704
|
+
}, 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>;
|
|
1705
1705
|
readonly items: (input: {
|
|
1706
1706
|
readonly id: string;
|
|
1707
1707
|
readonly limit?: string | null | undefined;
|
|
@@ -1716,7 +1716,7 @@ export declare const listInputContracts: ((input: {
|
|
|
1716
1716
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1717
1717
|
};
|
|
1718
1718
|
readonly createdAt: string;
|
|
1719
|
-
}, import("./
|
|
1719
|
+
}, 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>;
|
|
1720
1720
|
};
|
|
1721
1721
|
export declare const getInputContract: (input: {
|
|
1722
1722
|
readonly id: string;
|
|
@@ -1731,7 +1731,7 @@ export declare const getInputContract: (input: {
|
|
|
1731
1731
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1732
1732
|
};
|
|
1733
1733
|
readonly createdAt: string;
|
|
1734
|
-
}, import("./
|
|
1734
|
+
}, 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>;
|
|
1735
1735
|
export declare const diffWorkspace: (input: {
|
|
1736
1736
|
readonly id: string;
|
|
1737
1737
|
readonly expectedRevision: string;
|
|
@@ -1749,7 +1749,7 @@ export declare const diffWorkspace: (input: {
|
|
|
1749
1749
|
readonly path: string;
|
|
1750
1750
|
readonly status: "added" | "deleted" | "modified";
|
|
1751
1751
|
}[];
|
|
1752
|
-
}, import("./
|
|
1752
|
+
}, 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>;
|
|
1753
1753
|
export declare const workspaceHistory: (input: {
|
|
1754
1754
|
readonly id: string;
|
|
1755
1755
|
readonly limit?: string | null | undefined;
|
|
@@ -1767,4 +1767,4 @@ export declare const workspaceHistory: (input: {
|
|
|
1767
1767
|
readonly id: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1768
1768
|
readonly commit: string;
|
|
1769
1769
|
} | null;
|
|
1770
|
-
}, import("./
|
|
1770
|
+
}, 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>;
|
package/dist/effect/templates.js
CHANGED
|
@@ -1,3 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { CreateTemplatePayload, UpdateTemplatePayload } from "./generated/shared.js";
|
|
3
|
+
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { TemplatesGroup } from "./generated/templates.js";
|
|
5
|
+
//#region src/effect/templates.ts
|
|
6
|
+
var templates_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
CreatePayload: () => CreateTemplatePayload,
|
|
8
|
+
UpdatePayload: () => UpdateTemplatePayload,
|
|
9
|
+
addEntry: () => addEntry,
|
|
10
|
+
attachFamilyMember: () => attachFamilyMember,
|
|
11
|
+
attachWorkspaceResource: () => attachWorkspaceResource,
|
|
12
|
+
checkWorkspace: () => checkWorkspace,
|
|
13
|
+
create: () => create,
|
|
14
|
+
createFamily: () => createFamily,
|
|
15
|
+
createFamilyFromTemplate: () => createFamilyFromTemplate,
|
|
16
|
+
deleteFamily: () => deleteFamily,
|
|
17
|
+
detachFamilyMember: () => detachFamilyMember,
|
|
18
|
+
diffWorkspace: () => diffWorkspace,
|
|
19
|
+
getById: () => getById,
|
|
20
|
+
getFamily: () => getFamily,
|
|
21
|
+
getGitRepository: () => getGitRepository,
|
|
22
|
+
getInputContract: () => getInputContract,
|
|
23
|
+
getPublication: () => getPublication,
|
|
24
|
+
issueGitCredential: () => issueGitCredential,
|
|
25
|
+
list: () => list,
|
|
26
|
+
listFamilies: () => listFamilies,
|
|
27
|
+
listInputContracts: () => listInputContracts,
|
|
28
|
+
openWorkspace: () => openWorkspace,
|
|
29
|
+
patchWorkspace: () => patchWorkspace,
|
|
30
|
+
publish: () => publish,
|
|
31
|
+
putWorkspaceAsset: () => putWorkspaceAsset,
|
|
32
|
+
remove: () => remove,
|
|
33
|
+
removeWorkspaceResource: () => removeWorkspaceResource,
|
|
34
|
+
renameFamily: () => renameFamily,
|
|
35
|
+
renderPublication: () => renderPublication,
|
|
36
|
+
renderWorkspaceFixture: () => renderWorkspaceFixture,
|
|
37
|
+
resolveWorkspaceConflict: () => resolveWorkspaceConflict,
|
|
38
|
+
restoreWorkspace: () => restoreWorkspace,
|
|
39
|
+
saveWorkspace: () => saveWorkspace,
|
|
40
|
+
update: () => update,
|
|
41
|
+
workspaceHistory: () => workspaceHistory
|
|
42
|
+
});
|
|
43
|
+
const make = /* @__PURE__ */ forGroup(TemplatesGroup);
|
|
44
|
+
const list = /* @__PURE__ */ make("templatesList");
|
|
45
|
+
const create = /* @__PURE__ */ make("templatesCreate");
|
|
46
|
+
const addEntry = /* @__PURE__ */ make("templatesAddEntry");
|
|
47
|
+
const listFamilies = /* @__PURE__ */ make("templatesListFamilies");
|
|
48
|
+
const createFamily = /* @__PURE__ */ make("templatesCreateFamily");
|
|
49
|
+
const getFamily = /* @__PURE__ */ make("templatesGetFamily");
|
|
50
|
+
const deleteFamily = /* @__PURE__ */ make("templatesDeleteFamily");
|
|
51
|
+
const renameFamily = /* @__PURE__ */ make("templatesRenameFamily");
|
|
52
|
+
const createFamilyFromTemplate = /* @__PURE__ */ make("templatesCreateFamilyFromTemplate");
|
|
53
|
+
const attachFamilyMember = /* @__PURE__ */ make("templatesAttachFamilyMember");
|
|
54
|
+
const detachFamilyMember = /* @__PURE__ */ make("templatesDetachFamilyMember");
|
|
55
|
+
const getById = /* @__PURE__ */ make("templatesGetById");
|
|
56
|
+
const remove = /* @__PURE__ */ make("templatesRemove");
|
|
57
|
+
const update = /* @__PURE__ */ make("templatesUpdate");
|
|
58
|
+
const openWorkspace = /* @__PURE__ */ make("templatesOpenWorkspace");
|
|
59
|
+
const getGitRepository = /* @__PURE__ */ make("templatesGetGitRepository");
|
|
60
|
+
const issueGitCredential = /* @__PURE__ */ make("templatesIssueGitCredential");
|
|
61
|
+
const patchWorkspace = /* @__PURE__ */ make("templatesPatchWorkspace");
|
|
62
|
+
const putWorkspaceAsset = /* @__PURE__ */ make("templatesPutWorkspaceAsset");
|
|
63
|
+
const resolveWorkspaceConflict = /* @__PURE__ */ make("templatesResolveWorkspaceConflict");
|
|
64
|
+
const attachWorkspaceResource = /* @__PURE__ */ make("templatesAttachWorkspaceResource");
|
|
65
|
+
const removeWorkspaceResource = /* @__PURE__ */ make("templatesRemoveWorkspaceResource");
|
|
66
|
+
const restoreWorkspace = /* @__PURE__ */ make("templatesRestoreWorkspace");
|
|
67
|
+
const saveWorkspace = /* @__PURE__ */ make("templatesSaveWorkspace");
|
|
68
|
+
const checkWorkspace = /* @__PURE__ */ make("templatesCheckWorkspace");
|
|
69
|
+
const renderWorkspaceFixture = /* @__PURE__ */ make("templatesRenderWorkspaceFixture");
|
|
70
|
+
const publish = /* @__PURE__ */ make("templatesPublish");
|
|
71
|
+
const getPublication = /* @__PURE__ */ make("templatesGetPublication");
|
|
72
|
+
const renderPublication = /* @__PURE__ */ make("templatesRenderPublication");
|
|
73
|
+
const listInputContracts = /* @__PURE__ */ make("templatesListInputContracts");
|
|
74
|
+
const getInputContract = /* @__PURE__ */ make("templatesGetInputContract");
|
|
75
|
+
const diffWorkspace = /* @__PURE__ */ make("templatesDiffWorkspace");
|
|
76
|
+
const workspaceHistory = /* @__PURE__ */ make("templatesWorkspaceHistory");
|
|
77
|
+
//#endregion
|
|
78
|
+
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, remove, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports, update, workspaceHistory };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -9,7 +9,7 @@ export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
|
9
9
|
readonly createdAt: string;
|
|
10
10
|
readonly updatedAt: string;
|
|
11
11
|
}[];
|
|
12
|
-
}, import("./
|
|
12
|
+
}, 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>;
|
|
13
13
|
export declare const create: (input: {
|
|
14
14
|
readonly name: string;
|
|
15
15
|
readonly description?: string | null | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const create: (input: {
|
|
|
22
22
|
readonly memberCount: number;
|
|
23
23
|
readonly createdAt: string;
|
|
24
24
|
readonly updatedAt: string;
|
|
25
|
-
}, import("./
|
|
25
|
+
}, 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>;
|
|
26
26
|
export declare const update: (input: {
|
|
27
27
|
readonly id: string;
|
|
28
28
|
readonly name?: string | null | undefined;
|
|
@@ -36,12 +36,12 @@ export declare const update: (input: {
|
|
|
36
36
|
readonly memberCount: number;
|
|
37
37
|
readonly createdAt: string;
|
|
38
38
|
readonly updatedAt: string;
|
|
39
|
-
}, import("./
|
|
39
|
+
}, 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>;
|
|
40
40
|
export declare const remove: (input: {
|
|
41
41
|
readonly id: string;
|
|
42
42
|
}) => import("effect/Effect").Effect<{
|
|
43
43
|
readonly success: boolean;
|
|
44
|
-
}, import("./
|
|
44
|
+
}, 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>;
|
|
45
45
|
export declare const setDefault: (input: {
|
|
46
46
|
readonly id: string;
|
|
47
47
|
}) => import("effect/Effect").Effect<{
|
|
@@ -53,7 +53,7 @@ export declare const setDefault: (input: {
|
|
|
53
53
|
readonly memberCount: number;
|
|
54
54
|
readonly createdAt: string;
|
|
55
55
|
readonly updatedAt: string;
|
|
56
|
-
}, import("./
|
|
56
|
+
}, 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
57
|
export declare const listMembers: ((input: {
|
|
58
58
|
readonly id: string;
|
|
59
59
|
readonly limit?: string | null | undefined;
|
|
@@ -68,7 +68,7 @@ export declare const listMembers: ((input: {
|
|
|
68
68
|
readonly createdAt: string;
|
|
69
69
|
}[];
|
|
70
70
|
readonly nextCursor: string | null;
|
|
71
|
-
}, import("./
|
|
71
|
+
}, 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>) & {
|
|
72
72
|
readonly pages: (input: {
|
|
73
73
|
readonly id: string;
|
|
74
74
|
readonly limit?: string | null | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const listMembers: ((input: {
|
|
|
83
83
|
readonly createdAt: string;
|
|
84
84
|
}[];
|
|
85
85
|
readonly nextCursor: string | null;
|
|
86
|
-
}, import("./
|
|
86
|
+
}, 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>;
|
|
87
87
|
readonly items: (input: {
|
|
88
88
|
readonly id: string;
|
|
89
89
|
readonly limit?: string | null | undefined;
|
|
@@ -95,7 +95,7 @@ export declare const listMembers: ((input: {
|
|
|
95
95
|
readonly source: "api" | "complaint" | "link" | "manual";
|
|
96
96
|
readonly unsubscribedAt: string;
|
|
97
97
|
readonly createdAt: string;
|
|
98
|
-
}, import("./
|
|
98
|
+
}, 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>;
|
|
99
99
|
};
|
|
100
100
|
export declare const addEmails: (input: {
|
|
101
101
|
readonly id: string;
|
|
@@ -104,13 +104,13 @@ export declare const addEmails: (input: {
|
|
|
104
104
|
}) => import("effect/Effect").Effect<{
|
|
105
105
|
readonly added: number;
|
|
106
106
|
readonly skipped: number;
|
|
107
|
-
}, import("./
|
|
107
|
+
}, 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>;
|
|
108
108
|
export declare const removeEmails: (input: {
|
|
109
109
|
readonly id: string;
|
|
110
110
|
readonly emails: readonly string[];
|
|
111
111
|
}) => import("effect/Effect").Effect<{
|
|
112
112
|
readonly removed: number;
|
|
113
|
-
}, import("./
|
|
113
|
+
}, 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>;
|
|
114
114
|
export declare const checkSubscription: (input: {
|
|
115
115
|
readonly email: string;
|
|
116
116
|
readonly groupIds?: string | null | undefined;
|
|
@@ -121,4 +121,4 @@ export declare const checkSubscription: (input: {
|
|
|
121
121
|
readonly groupName: string;
|
|
122
122
|
readonly unsubscribedAt: string;
|
|
123
123
|
}[];
|
|
124
|
-
}, import("./
|
|
124
|
+
}, 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>;
|
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { UnsubscribeGroupsGroup } from "./generated/unsubscribe-groups.js";
|
|
4
|
+
//#region src/effect/unsubscribe-groups.ts
|
|
5
|
+
var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
addEmails: () => addEmails,
|
|
7
|
+
checkSubscription: () => checkSubscription,
|
|
8
|
+
create: () => create,
|
|
9
|
+
list: () => list,
|
|
10
|
+
listMembers: () => listMembers,
|
|
11
|
+
remove: () => remove,
|
|
12
|
+
removeEmails: () => removeEmails,
|
|
13
|
+
setDefault: () => setDefault,
|
|
14
|
+
update: () => update
|
|
15
|
+
});
|
|
16
|
+
const make = /* @__PURE__ */ forGroup(UnsubscribeGroupsGroup);
|
|
17
|
+
const list = /* @__PURE__ */ make("unsubscribeList");
|
|
18
|
+
const create = /* @__PURE__ */ make("unsubscribeCreate");
|
|
19
|
+
const update = /* @__PURE__ */ make("unsubscribeUpdate");
|
|
20
|
+
const remove = /* @__PURE__ */ make("unsubscribeRemove");
|
|
21
|
+
const setDefault = /* @__PURE__ */ make("unsubscribeSetDefault");
|
|
22
|
+
const listMembers = /* @__PURE__ */ make("unsubscribeListMembers");
|
|
23
|
+
const addEmails = /* @__PURE__ */ make("unsubscribeAddEmails");
|
|
24
|
+
const removeEmails = /* @__PURE__ */ make("unsubscribeRemoveEmails");
|
|
25
|
+
const checkSubscription = /* @__PURE__ */ make("unsubscribeCheckSubscription");
|
|
26
|
+
//#endregion
|
|
27
|
+
export { addEmails, checkSubscription, create, list, listMembers, remove, removeEmails, setDefault, unsubscribe_groups_exports, update };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=unsubscribe-groups.js.map
|