samva 0.16.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 +9 -1
- package/README.md +57 -1
- 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/client/sdk.gen.d.ts +174 -3
- package/dist/{promises-KrA2nSLg.js → client/sdk.gen.js} +464 -2289
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +11 -9
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +13 -12
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +9 -7
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +12 -10
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +17 -15
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +4 -5
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +15 -13
- package/dist/effect/contacts.d.ts +77 -25
- package/dist/effect/contacts.js +27 -22
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +18 -16
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +9 -7
- package/dist/effect/email.d.ts +78 -77
- package/dist/effect/email.js +68 -65
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +17 -0
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +14 -12
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +10 -8
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +6 -5
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/analytics.js +188 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/api-keys.js +249 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/attachments.js +125 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/brands.js +155 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/campaigns.js +491 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contact-groups.js +419 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/contacts.js +709 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/conversations.js +461 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/custom-fields.js +162 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/email.js +2347 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/events.js +70 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extension-installations.js +382 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/extensions.js +203 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/feedback.js +43 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/journeys.js +464 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/mailboxes.js +2312 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/media.js +181 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/messages.js +671 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/namespaces.js +135 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/operations.js +80 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/organizations.js +231 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/scheduled-messages.js +190 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/subscriptions.js +61 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/templates.js +2214 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/unsubscribe-groups.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/webhooks.js +500 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated/whoami.js +54 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/generated-metadata.js +919 -0
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +33 -31
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +39 -0
- package/dist/effect/mailboxes.d.ts +80 -80
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -8
- package/dist/effect/messages.d.ts +16 -16
- package/dist/effect/messages.js +15 -12
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +10 -8
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +8 -6
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +12 -10
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/effect/runtime.js +25 -0
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +10 -8
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +5 -4
- package/dist/effect/templates.d.ts +40 -40
- package/dist/effect/templates.js +39 -37
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +14 -12
- package/dist/effect/webhooks.d.ts +23 -23
- package/dist/effect/webhooks.js +16 -14
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +5 -4
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Cegg6tTF.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.d.ts +7 -3
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +85 -0
- package/dist/{operation-BTXjPrwf.js → service-map.js} +58 -219
- package/package.json +17 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly createdAt: string;
|
|
30
30
|
}[];
|
|
31
31
|
readonly nextCursor: string | null;
|
|
32
|
-
}, import("./
|
|
32
|
+
}, 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>) & {
|
|
33
33
|
readonly pages: (input?: {
|
|
34
34
|
readonly limit?: string | null | undefined;
|
|
35
35
|
readonly cursor?: string | null | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const list: ((input?: {
|
|
|
61
61
|
readonly createdAt: string;
|
|
62
62
|
}[];
|
|
63
63
|
readonly nextCursor: string | null;
|
|
64
|
-
}, import("./
|
|
64
|
+
}, 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>;
|
|
65
65
|
readonly items: (input?: {
|
|
66
66
|
readonly limit?: string | null | undefined;
|
|
67
67
|
readonly cursor?: string | null | undefined;
|
|
@@ -90,7 +90,7 @@ export declare const list: ((input?: {
|
|
|
90
90
|
} | null;
|
|
91
91
|
readonly lastActiveAt: string | null;
|
|
92
92
|
readonly createdAt: string;
|
|
93
|
-
}, import("./
|
|
93
|
+
}, 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>;
|
|
94
94
|
};
|
|
95
95
|
export declare const create: (input: {
|
|
96
96
|
readonly name: string;
|
|
@@ -208,7 +208,7 @@ export declare const create: (input: {
|
|
|
208
208
|
} | null;
|
|
209
209
|
readonly createdAt: string;
|
|
210
210
|
readonly updatedAt: string;
|
|
211
|
-
}, import("./
|
|
211
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
212
212
|
export declare const find: (input?: {
|
|
213
213
|
readonly email?: string | null | undefined;
|
|
214
214
|
readonly phone?: string | null | undefined;
|
|
@@ -261,7 +261,7 @@ export declare const find: (input?: {
|
|
|
261
261
|
} | null;
|
|
262
262
|
readonly createdAt: string;
|
|
263
263
|
readonly updatedAt: string;
|
|
264
|
-
} | null, import("./
|
|
264
|
+
} | null, 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>;
|
|
265
265
|
export declare const findOrCreate: (input: {
|
|
266
266
|
readonly lookup: {
|
|
267
267
|
readonly type: "email";
|
|
@@ -351,7 +351,7 @@ export declare const findOrCreate: (input: {
|
|
|
351
351
|
readonly updatedAt: string;
|
|
352
352
|
};
|
|
353
353
|
readonly created: boolean;
|
|
354
|
-
}, import("./
|
|
354
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
355
355
|
export declare const get: (input: {
|
|
356
356
|
readonly id: string;
|
|
357
357
|
}) => import("effect/Effect").Effect<{
|
|
@@ -402,12 +402,12 @@ export declare const get: (input: {
|
|
|
402
402
|
} | null;
|
|
403
403
|
readonly createdAt: string;
|
|
404
404
|
readonly updatedAt: string;
|
|
405
|
-
}, import("./
|
|
405
|
+
}, 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>;
|
|
406
406
|
export declare const remove: (input: {
|
|
407
407
|
readonly id: string;
|
|
408
408
|
}) => import("effect/Effect").Effect<{
|
|
409
409
|
readonly success: boolean;
|
|
410
|
-
}, import("./
|
|
410
|
+
}, 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>;
|
|
411
411
|
export declare const update: (input: {
|
|
412
412
|
readonly id: string;
|
|
413
413
|
readonly name?: string | null | undefined;
|
|
@@ -518,7 +518,7 @@ export declare const update: (input: {
|
|
|
518
518
|
} | null;
|
|
519
519
|
readonly createdAt: string;
|
|
520
520
|
readonly updatedAt: string;
|
|
521
|
-
}, import("./
|
|
521
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
522
522
|
export declare const addIdentity: (input: {
|
|
523
523
|
readonly id: string;
|
|
524
524
|
readonly channel: "email";
|
|
@@ -572,7 +572,7 @@ export declare const addIdentity: (input: {
|
|
|
572
572
|
} | null;
|
|
573
573
|
readonly createdAt: string;
|
|
574
574
|
readonly updatedAt: string;
|
|
575
|
-
}, import("./
|
|
575
|
+
}, 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>;
|
|
576
576
|
export declare const removeIdentity: (input: {
|
|
577
577
|
readonly id: string;
|
|
578
578
|
readonly identityId: string;
|
|
@@ -624,7 +624,7 @@ export declare const removeIdentity: (input: {
|
|
|
624
624
|
} | null;
|
|
625
625
|
readonly createdAt: string;
|
|
626
626
|
readonly updatedAt: string;
|
|
627
|
-
}, import("./
|
|
627
|
+
}, 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>;
|
|
628
628
|
export declare const addTags: (input: {
|
|
629
629
|
readonly id: string;
|
|
630
630
|
readonly tags: readonly string[];
|
|
@@ -676,7 +676,7 @@ export declare const addTags: (input: {
|
|
|
676
676
|
} | null;
|
|
677
677
|
readonly createdAt: string;
|
|
678
678
|
readonly updatedAt: string;
|
|
679
|
-
}, import("./
|
|
679
|
+
}, 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>;
|
|
680
680
|
export declare const removeTags: (input: {
|
|
681
681
|
readonly id: string;
|
|
682
682
|
readonly tags: readonly string[];
|
|
@@ -728,7 +728,7 @@ export declare const removeTags: (input: {
|
|
|
728
728
|
} | null;
|
|
729
729
|
readonly createdAt: string;
|
|
730
730
|
readonly updatedAt: string;
|
|
731
|
-
}, import("./
|
|
731
|
+
}, 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>;
|
|
732
732
|
export declare const getEngagement: (input: {
|
|
733
733
|
readonly id: string;
|
|
734
734
|
}) => import("effect/Effect").Effect<{
|
|
@@ -740,7 +740,7 @@ export declare const getEngagement: (input: {
|
|
|
740
740
|
readonly channelsUsed: {
|
|
741
741
|
readonly [x: string]: number;
|
|
742
742
|
};
|
|
743
|
-
}, import("./
|
|
743
|
+
}, 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>;
|
|
744
744
|
export declare const bulkImport: (input: {
|
|
745
745
|
readonly contacts: readonly {
|
|
746
746
|
readonly name: string;
|
|
@@ -822,13 +822,13 @@ export declare const bulkImport: (input: {
|
|
|
822
822
|
readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
823
823
|
readonly error?: string | null;
|
|
824
824
|
}[];
|
|
825
|
-
}, import("./
|
|
825
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
826
826
|
export declare const bulkDelete: (input: {
|
|
827
827
|
readonly ids: readonly string[];
|
|
828
828
|
}) => import("effect/Effect").Effect<{
|
|
829
829
|
readonly deleted: number;
|
|
830
830
|
readonly failed: number;
|
|
831
|
-
}, import("./
|
|
831
|
+
}, import("./errors").BillingProviderError | 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>;
|
|
832
832
|
export declare const bulkUpdateTags: (input: {
|
|
833
833
|
readonly ids: readonly string[];
|
|
834
834
|
readonly operation: "add" | "remove" | "set";
|
|
@@ -836,14 +836,14 @@ export declare const bulkUpdateTags: (input: {
|
|
|
836
836
|
}) => import("effect/Effect").Effect<{
|
|
837
837
|
readonly updated: number;
|
|
838
838
|
readonly failed: number;
|
|
839
|
-
}, import("./
|
|
839
|
+
}, 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>;
|
|
840
840
|
export declare const bulkUpdateStatus: (input: {
|
|
841
841
|
readonly ids: readonly string[];
|
|
842
842
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
843
843
|
}) => import("effect/Effect").Effect<{
|
|
844
844
|
readonly updated: number;
|
|
845
845
|
readonly failed: number;
|
|
846
|
-
}, import("./
|
|
846
|
+
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
847
847
|
declare const exportContacts: (input?: {
|
|
848
848
|
readonly ids?: readonly string[] | null | undefined;
|
|
849
849
|
readonly format?: "csv" | "json" | null | undefined;
|
|
@@ -856,7 +856,7 @@ declare const exportContacts: (input?: {
|
|
|
856
856
|
readonly data: string;
|
|
857
857
|
readonly format: "csv" | "json";
|
|
858
858
|
readonly count: number;
|
|
859
|
-
}, import("./
|
|
859
|
+
}, 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>;
|
|
860
860
|
export { exportContacts as export };
|
|
861
861
|
export declare const getActivityTimeline: ((input: {
|
|
862
862
|
readonly id: string;
|
|
@@ -875,7 +875,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
875
875
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
876
876
|
}[];
|
|
877
877
|
readonly nextCursor: string | null;
|
|
878
|
-
}, import("./
|
|
878
|
+
}, 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>) & {
|
|
879
879
|
readonly pages: (input: {
|
|
880
880
|
readonly id: string;
|
|
881
881
|
readonly limit?: string | null | undefined;
|
|
@@ -893,7 +893,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
893
893
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
894
894
|
}[];
|
|
895
895
|
readonly nextCursor: string | null;
|
|
896
|
-
}, import("./
|
|
896
|
+
}, 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>;
|
|
897
897
|
readonly items: (input: {
|
|
898
898
|
readonly id: string;
|
|
899
899
|
readonly limit?: string | null | undefined;
|
|
@@ -908,7 +908,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
908
908
|
readonly snippet: string | null;
|
|
909
909
|
readonly createdAt: string;
|
|
910
910
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
911
|
-
}, import("./
|
|
911
|
+
}, 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>;
|
|
912
912
|
};
|
|
913
913
|
export declare const getGroupMemberships: ((input: {
|
|
914
914
|
readonly id: string;
|
|
@@ -924,7 +924,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
924
924
|
readonly joinedAt: string;
|
|
925
925
|
}[];
|
|
926
926
|
readonly nextCursor: string | null;
|
|
927
|
-
}, import("./
|
|
927
|
+
}, 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>) & {
|
|
928
928
|
readonly pages: (input: {
|
|
929
929
|
readonly id: string;
|
|
930
930
|
readonly limit?: string | null | undefined;
|
|
@@ -939,7 +939,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
939
939
|
readonly joinedAt: string;
|
|
940
940
|
}[];
|
|
941
941
|
readonly nextCursor: string | null;
|
|
942
|
-
}, import("./
|
|
942
|
+
}, 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>;
|
|
943
943
|
readonly items: (input: {
|
|
944
944
|
readonly id: string;
|
|
945
945
|
readonly limit?: string | null | undefined;
|
|
@@ -951,5 +951,57 @@ export declare const getGroupMemberships: ((input: {
|
|
|
951
951
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
952
952
|
readonly role: string;
|
|
953
953
|
readonly joinedAt: string;
|
|
954
|
-
}, import("./
|
|
954
|
+
}, 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>;
|
|
955
|
+
};
|
|
956
|
+
export declare const listEvents: ((input: {
|
|
957
|
+
readonly id: string;
|
|
958
|
+
readonly limit?: string | null | undefined;
|
|
959
|
+
readonly cursor?: string | null | undefined;
|
|
960
|
+
}) => import("effect/Effect").Effect<{
|
|
961
|
+
readonly items: readonly {
|
|
962
|
+
readonly id: string;
|
|
963
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
964
|
+
readonly name: string;
|
|
965
|
+
readonly source: "api" | "samva";
|
|
966
|
+
readonly properties: {
|
|
967
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
968
|
+
};
|
|
969
|
+
readonly occurredAt: string;
|
|
970
|
+
readonly recordedAt: string;
|
|
971
|
+
}[];
|
|
972
|
+
readonly nextCursor: string | null;
|
|
973
|
+
}, 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>) & {
|
|
974
|
+
readonly pages: (input: {
|
|
975
|
+
readonly id: string;
|
|
976
|
+
readonly limit?: string | null | undefined;
|
|
977
|
+
readonly cursor?: string | null | undefined;
|
|
978
|
+
}) => import("effect/Stream").Stream<{
|
|
979
|
+
readonly items: readonly {
|
|
980
|
+
readonly id: string;
|
|
981
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
982
|
+
readonly name: string;
|
|
983
|
+
readonly source: "api" | "samva";
|
|
984
|
+
readonly properties: {
|
|
985
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
986
|
+
};
|
|
987
|
+
readonly occurredAt: string;
|
|
988
|
+
readonly recordedAt: string;
|
|
989
|
+
}[];
|
|
990
|
+
readonly nextCursor: string | null;
|
|
991
|
+
}, 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>;
|
|
992
|
+
readonly items: (input: {
|
|
993
|
+
readonly id: string;
|
|
994
|
+
readonly limit?: string | null | undefined;
|
|
995
|
+
readonly cursor?: string | null | undefined;
|
|
996
|
+
}) => import("effect/Stream").Stream<{
|
|
997
|
+
readonly id: string;
|
|
998
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
999
|
+
readonly name: string;
|
|
1000
|
+
readonly source: "api" | "samva";
|
|
1001
|
+
readonly properties: {
|
|
1002
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1003
|
+
};
|
|
1004
|
+
readonly occurredAt: string;
|
|
1005
|
+
readonly recordedAt: string;
|
|
1006
|
+
}, 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>;
|
|
955
1007
|
};
|
package/dist/effect/contacts.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ContactEventsGroup } from "./generated/contact-events.js";
|
|
4
|
+
import { ContactsGroup } from "./generated/contacts.js";
|
|
3
5
|
//#region src/effect/contacts.ts
|
|
4
6
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
5
7
|
addIdentity: () => addIdentity,
|
|
@@ -17,31 +19,34 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
|
17
19
|
getEngagement: () => getEngagement,
|
|
18
20
|
getGroupMemberships: () => getGroupMemberships,
|
|
19
21
|
list: () => list,
|
|
22
|
+
listEvents: () => listEvents,
|
|
20
23
|
remove: () => remove,
|
|
21
24
|
removeIdentity: () => removeIdentity,
|
|
22
25
|
removeTags: () => removeTags,
|
|
23
26
|
update: () => update
|
|
24
27
|
});
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
28
|
+
const make = /* @__PURE__ */ forGroup(ContactsGroup);
|
|
29
|
+
const list = /* @__PURE__ */ make("contactsList");
|
|
30
|
+
const create = /* @__PURE__ */ make("contactsCreate");
|
|
31
|
+
const find = /* @__PURE__ */ make("contactsFind");
|
|
32
|
+
const findOrCreate = /* @__PURE__ */ make("contactsFindOrCreate");
|
|
33
|
+
const get = /* @__PURE__ */ make("contactsGet");
|
|
34
|
+
const remove = /* @__PURE__ */ make("contactsRemove");
|
|
35
|
+
const update = /* @__PURE__ */ make("contactsUpdate");
|
|
36
|
+
const addIdentity = /* @__PURE__ */ make("contactsAddIdentity");
|
|
37
|
+
const removeIdentity = /* @__PURE__ */ make("contactsRemoveIdentity");
|
|
38
|
+
const addTags = /* @__PURE__ */ make("contactsAddTags");
|
|
39
|
+
const removeTags = /* @__PURE__ */ make("contactsRemoveTags");
|
|
40
|
+
const getEngagement = /* @__PURE__ */ make("contactsGetEngagement");
|
|
41
|
+
const bulkImport = /* @__PURE__ */ make("contactsBulkImport");
|
|
42
|
+
const bulkDelete = /* @__PURE__ */ make("contactsBulkDelete");
|
|
43
|
+
const bulkUpdateTags = /* @__PURE__ */ make("contactsBulkUpdateTags");
|
|
44
|
+
const bulkUpdateStatus = /* @__PURE__ */ make("contactsBulkUpdateStatus");
|
|
45
|
+
const exportContacts = /* @__PURE__ */ make("contactsExport");
|
|
46
|
+
const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
|
|
47
|
+
const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
|
|
48
|
+
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
|
|
44
49
|
//#endregion
|
|
45
|
-
export { addIdentity, addTags, bulkDelete, bulkImport, bulkUpdateStatus, bulkUpdateTags, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, list, remove, removeIdentity, removeTags,
|
|
50
|
+
export { addIdentity, addTags, bulkDelete, bulkImport, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, list, listEvents, remove, removeIdentity, removeTags, update };
|
|
46
51
|
|
|
47
52
|
//# sourceMappingURL=contacts.js.map
|
|
@@ -23,7 +23,7 @@ export declare const list: ((input?: {
|
|
|
23
23
|
readonly createdAt: string;
|
|
24
24
|
}[];
|
|
25
25
|
readonly nextCursor: string | null;
|
|
26
|
-
}, import("./
|
|
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>) & {
|
|
27
27
|
readonly pages: (input?: {
|
|
28
28
|
readonly limit?: string | null | undefined;
|
|
29
29
|
readonly cursor?: string | null | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const list: ((input?: {
|
|
|
49
49
|
readonly createdAt: string;
|
|
50
50
|
}[];
|
|
51
51
|
readonly nextCursor: string | null;
|
|
52
|
-
}, import("./
|
|
52
|
+
}, 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>;
|
|
53
53
|
readonly items: (input?: {
|
|
54
54
|
readonly limit?: string | null | undefined;
|
|
55
55
|
readonly cursor?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const list: ((input?: {
|
|
|
72
72
|
readonly messageCount: number;
|
|
73
73
|
readonly lastActivityAt: string;
|
|
74
74
|
readonly createdAt: string;
|
|
75
|
-
}, import("./
|
|
75
|
+
}, 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>;
|
|
76
76
|
};
|
|
77
77
|
export declare const create: (input: {
|
|
78
78
|
readonly title?: string | null | undefined;
|
|
@@ -265,7 +265,7 @@ export declare const create: (input: {
|
|
|
265
265
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
266
266
|
readonly resolutionNotes: string | null;
|
|
267
267
|
readonly updatedAt: string;
|
|
268
|
-
}, import("./
|
|
268
|
+
}, 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>;
|
|
269
269
|
export declare const getById: (input: {
|
|
270
270
|
readonly id: string;
|
|
271
271
|
}) => import("effect/Effect").Effect<{
|
|
@@ -326,7 +326,7 @@ export declare const getById: (input: {
|
|
|
326
326
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
327
327
|
readonly resolutionNotes: string | null;
|
|
328
328
|
readonly updatedAt: string;
|
|
329
|
-
}, import("./
|
|
329
|
+
}, 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>;
|
|
330
330
|
export declare const listMessages: ((input: {
|
|
331
331
|
readonly id: string;
|
|
332
332
|
readonly limit?: string | null | undefined;
|
|
@@ -346,7 +346,7 @@ export declare const listMessages: ((input: {
|
|
|
346
346
|
readonly createdAt: string;
|
|
347
347
|
}[];
|
|
348
348
|
readonly nextCursor: string | null;
|
|
349
|
-
}, import("./
|
|
349
|
+
}, 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>) & {
|
|
350
350
|
readonly pages: (input: {
|
|
351
351
|
readonly id: string;
|
|
352
352
|
readonly limit?: string | null | undefined;
|
|
@@ -366,7 +366,7 @@ export declare const listMessages: ((input: {
|
|
|
366
366
|
readonly createdAt: string;
|
|
367
367
|
}[];
|
|
368
368
|
readonly nextCursor: string | null;
|
|
369
|
-
}, import("./
|
|
369
|
+
}, 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>;
|
|
370
370
|
readonly items: (input: {
|
|
371
371
|
readonly id: string;
|
|
372
372
|
readonly limit?: string | null | undefined;
|
|
@@ -383,7 +383,7 @@ export declare const listMessages: ((input: {
|
|
|
383
383
|
readonly subject: string | null;
|
|
384
384
|
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
385
385
|
readonly createdAt: string;
|
|
386
|
-
}, import("./
|
|
386
|
+
}, 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>;
|
|
387
387
|
};
|
|
388
388
|
export declare const update: (input: {
|
|
389
389
|
readonly id: string;
|
|
@@ -574,7 +574,7 @@ export declare const update: (input: {
|
|
|
574
574
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
575
575
|
readonly resolutionNotes: string | null;
|
|
576
576
|
readonly updatedAt: string;
|
|
577
|
-
}, import("./
|
|
577
|
+
}, 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>;
|
|
578
578
|
export declare const addTags: (input: {
|
|
579
579
|
readonly id: string;
|
|
580
580
|
readonly tags: readonly string[];
|
|
@@ -636,7 +636,7 @@ export declare const addTags: (input: {
|
|
|
636
636
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
637
637
|
readonly resolutionNotes: string | null;
|
|
638
638
|
readonly updatedAt: string;
|
|
639
|
-
}, import("./
|
|
639
|
+
}, 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>;
|
|
640
640
|
export declare const removeTags: (input: {
|
|
641
641
|
readonly id: string;
|
|
642
642
|
readonly tags: readonly string[];
|
|
@@ -698,7 +698,7 @@ export declare const removeTags: (input: {
|
|
|
698
698
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
699
699
|
readonly resolutionNotes: string | null;
|
|
700
700
|
readonly updatedAt: string;
|
|
701
|
-
}, import("./
|
|
701
|
+
}, 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>;
|
|
702
702
|
export declare const addCategories: (input: {
|
|
703
703
|
readonly id: string;
|
|
704
704
|
readonly categories: readonly string[];
|
|
@@ -760,7 +760,7 @@ export declare const addCategories: (input: {
|
|
|
760
760
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
761
761
|
readonly resolutionNotes: string | null;
|
|
762
762
|
readonly updatedAt: string;
|
|
763
|
-
}, import("./
|
|
763
|
+
}, 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>;
|
|
764
764
|
export declare const removeCategories: (input: {
|
|
765
765
|
readonly id: string;
|
|
766
766
|
readonly categories: readonly string[];
|
|
@@ -822,7 +822,7 @@ export declare const removeCategories: (input: {
|
|
|
822
822
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
823
823
|
readonly resolutionNotes: string | null;
|
|
824
824
|
readonly updatedAt: string;
|
|
825
|
-
}, import("./
|
|
825
|
+
}, 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>;
|
|
826
826
|
export declare const addChannels: (input: {
|
|
827
827
|
readonly id: string;
|
|
828
828
|
readonly channels: readonly "email"[];
|
|
@@ -884,7 +884,7 @@ export declare const addChannels: (input: {
|
|
|
884
884
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
885
885
|
readonly resolutionNotes: string | null;
|
|
886
886
|
readonly updatedAt: string;
|
|
887
|
-
}, import("./
|
|
887
|
+
}, 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>;
|
|
888
888
|
export declare const removeChannels: (input: {
|
|
889
889
|
readonly id: string;
|
|
890
890
|
readonly channels: readonly "email"[];
|
|
@@ -946,7 +946,7 @@ export declare const removeChannels: (input: {
|
|
|
946
946
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
947
947
|
readonly resolutionNotes: string | null;
|
|
948
948
|
readonly updatedAt: string;
|
|
949
|
-
}, import("./
|
|
949
|
+
}, 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>;
|
|
950
950
|
export declare const addContacts: (input: {
|
|
951
951
|
readonly id: string;
|
|
952
952
|
readonly contactIds: readonly string[];
|
|
@@ -1008,7 +1008,7 @@ export declare const addContacts: (input: {
|
|
|
1008
1008
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1009
1009
|
readonly resolutionNotes: string | null;
|
|
1010
1010
|
readonly updatedAt: string;
|
|
1011
|
-
}, import("./
|
|
1011
|
+
}, 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>;
|
|
1012
1012
|
export declare const removeContacts: (input: {
|
|
1013
1013
|
readonly id: string;
|
|
1014
1014
|
readonly contactIds: readonly string[];
|
|
@@ -1070,4 +1070,4 @@ export declare const removeContacts: (input: {
|
|
|
1070
1070
|
readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
|
|
1071
1071
|
readonly resolutionNotes: string | null;
|
|
1072
1072
|
readonly updatedAt: string;
|
|
1073
|
-
}, import("./
|
|
1073
|
+
}, 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>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { ConversationsGroup } from "./generated/conversations.js";
|
|
3
4
|
//#region src/effect/conversations.ts
|
|
4
5
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
5
6
|
addCategories: () => addCategories,
|
|
@@ -16,20 +17,21 @@ var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
17
|
removeTags: () => removeTags,
|
|
17
18
|
update: () => update
|
|
18
19
|
});
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
20
|
+
const make = /* @__PURE__ */ forGroup(ConversationsGroup);
|
|
21
|
+
const list = /* @__PURE__ */ make("conversationsList");
|
|
22
|
+
const create = /* @__PURE__ */ make("conversationsCreate");
|
|
23
|
+
const getById = /* @__PURE__ */ make("conversationsGetById");
|
|
24
|
+
const listMessages = /* @__PURE__ */ make("conversationsListMessages");
|
|
25
|
+
const update = /* @__PURE__ */ make("conversationsUpdate");
|
|
26
|
+
const addTags = /* @__PURE__ */ make("conversationsAddTags");
|
|
27
|
+
const removeTags = /* @__PURE__ */ make("conversationsRemoveTags");
|
|
28
|
+
const addCategories = /* @__PURE__ */ make("conversationsAddCategories");
|
|
29
|
+
const removeCategories = /* @__PURE__ */ make("conversationsRemoveCategories");
|
|
30
|
+
const addChannels = /* @__PURE__ */ make("conversationsAddChannels");
|
|
31
|
+
const removeChannels = /* @__PURE__ */ make("conversationsRemoveChannels");
|
|
32
|
+
const addContacts = /* @__PURE__ */ make("conversationsAddContacts");
|
|
33
|
+
const removeContacts = /* @__PURE__ */ make("conversationsRemoveContacts");
|
|
32
34
|
//#endregion
|
|
33
|
-
export { addCategories, addChannels, addContacts, addTags, create, getById, list, listMessages, removeCategories, removeChannels, removeContacts, removeTags,
|
|
35
|
+
export { addCategories, addChannels, addContacts, addTags, conversations_exports, create, getById, list, listMessages, removeCategories, removeChannels, removeContacts, removeTags, update };
|
|
34
36
|
|
|
35
37
|
//# sourceMappingURL=conversations.js.map
|