samva 0.5.0 → 0.7.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.
Files changed (65) hide show
  1. package/AGENTS.md +3 -2
  2. package/README.md +14 -4
  3. package/dist/{categories-B9Nw2v_F.js → categories-DvsHUJtX.js} +32 -8
  4. package/dist/client/sdk.gen.d.ts +493 -88
  5. package/dist/client/types.gen.d.ts +3136 -416
  6. package/dist/{client-B7gEkvEq.js → client-5O8KsY5Z.js} +2638 -902
  7. package/dist/{client-attribution-B2yJBXdZ.js → client-attribution-27MNycCV.js} +2 -2
  8. package/dist/effect/analytics.d.ts +66 -0
  9. package/dist/effect/analytics.js +21 -0
  10. package/dist/effect/api-keys.d.ts +198 -34
  11. package/dist/effect/api-keys.js +1 -1
  12. package/dist/effect/attachments.d.ts +53 -0
  13. package/dist/effect/attachments.js +17 -0
  14. package/dist/effect/brands.d.ts +212 -0
  15. package/dist/effect/brands.js +24 -0
  16. package/dist/effect/campaigns.d.ts +36 -18
  17. package/dist/effect/campaigns.js +1 -1
  18. package/dist/effect/categories.d.ts +3 -3
  19. package/dist/effect/categories.js +1 -1
  20. package/dist/effect/client.js +1 -1
  21. package/dist/effect/contact-groups.d.ts +375 -0
  22. package/dist/effect/contact-groups.js +29 -0
  23. package/dist/effect/contacts.d.ts +35 -19
  24. package/dist/effect/contacts.js +1 -1
  25. package/dist/effect/conversations.d.ts +188 -47
  26. package/dist/effect/conversations.js +1 -1
  27. package/dist/effect/custom-fields.d.ts +111 -0
  28. package/dist/effect/custom-fields.js +17 -0
  29. package/dist/effect/email.d.ts +268 -121
  30. package/dist/effect/email.js +2 -2
  31. package/dist/effect/generated-metadata.d.ts +20 -4
  32. package/dist/effect/generated.d.ts +13934 -7968
  33. package/dist/effect/index.d.ts +7 -2
  34. package/dist/effect/index.js +9 -4
  35. package/dist/effect/internal/operation.d.ts +121 -27
  36. package/dist/effect/media.d.ts +5 -5
  37. package/dist/effect/media.js +1 -1
  38. package/dist/effect/messages.d.ts +319 -73
  39. package/dist/effect/messages.js +1 -1
  40. package/dist/effect/operations.d.ts +6 -6
  41. package/dist/effect/operations.js +1 -1
  42. package/dist/effect/organizations.d.ts +7 -374
  43. package/dist/effect/organizations.js +2 -4
  44. package/dist/effect/retry.js +1 -1
  45. package/dist/effect/scheduled-messages.d.ts +7 -7
  46. package/dist/effect/scheduled-messages.js +1 -1
  47. package/dist/effect/templates.d.ts +263 -305
  48. package/dist/effect/templates.js +7 -5
  49. package/dist/effect/unsubscribe-groups.d.ts +161 -0
  50. package/dist/effect/unsubscribe-groups.js +25 -0
  51. package/dist/effect/webhooks.d.ts +18 -18
  52. package/dist/effect/webhooks.js +2 -2
  53. package/dist/index.js +2 -2
  54. package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
  55. package/dist/normalize.d.ts +3 -7
  56. package/dist/{operation-B4FjN6wq.js → operation-Cb5V9FJ7.js} +123 -11
  57. package/dist/promises/errors.gen.d.ts +50 -43
  58. package/dist/promises/index.d.ts +20 -6
  59. package/dist/promises/index.js +2 -2
  60. package/dist/promises/types.gen.d.ts +1 -1
  61. package/dist/{promises-CP_nxUus.js → promises-C2yyw-pf.js} +1582 -368
  62. package/dist/service-map.d.ts +189 -12
  63. package/package.json +32 -12
  64. package/dist/effect/design.d.ts +0 -209
  65. package/dist/effect/design.js +0 -13
@@ -93,7 +93,7 @@ export declare const list: ((input?: {
93
93
  readonly total: number;
94
94
  readonly totalPages: number;
95
95
  };
96
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
96
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
97
97
  readonly pages: (input?: {
98
98
  readonly page?: string | null | undefined;
99
99
  readonly limit?: string | null | undefined;
@@ -189,7 +189,7 @@ export declare const list: ((input?: {
189
189
  readonly total: number;
190
190
  readonly totalPages: number;
191
191
  };
192
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
192
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
193
193
  readonly items: (input?: {
194
194
  readonly page?: string | null | undefined;
195
195
  readonly limit?: string | null | undefined;
@@ -277,7 +277,7 @@ export declare const list: ((input?: {
277
277
  readonly createdAt: string;
278
278
  readonly updatedAt: string;
279
279
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
280
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
280
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
281
281
  };
282
282
  export declare const create: (input: {
283
283
  readonly title?: string | null | undefined;
@@ -520,7 +520,7 @@ export declare const create: (input: {
520
520
  readonly createdAt: string;
521
521
  readonly updatedAt: string;
522
522
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
523
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
523
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
524
524
  export declare const getById: (input: {
525
525
  readonly id: string;
526
526
  }) => import("effect/Effect").Effect<{
@@ -617,7 +617,7 @@ export declare const getById: (input: {
617
617
  }[];
618
618
  };
619
619
  }[];
620
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
620
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
621
621
  export declare const listMessages: ((input: {
622
622
  readonly id: string;
623
623
  readonly page?: string | null | undefined;
@@ -634,7 +634,33 @@ export declare const listMessages: ((input: {
634
634
  } | null;
635
635
  readonly channel: "email";
636
636
  readonly direction: "inbound" | "outbound";
637
- readonly content: import("./generated").JsonValue;
637
+ readonly content: {
638
+ readonly text?: string | null;
639
+ readonly html?: string | null;
640
+ readonly markdown?: string | null;
641
+ readonly email?: {
642
+ readonly subject?: string | null;
643
+ readonly html?: string | null;
644
+ readonly text?: string | null;
645
+ readonly headers?: {
646
+ readonly [x: string]: string;
647
+ } | null;
648
+ readonly tracking?: {
649
+ readonly opens?: boolean;
650
+ readonly clicks?: boolean;
651
+ };
652
+ readonly attachments?: readonly {
653
+ readonly filename: string;
654
+ readonly content?: string | null;
655
+ readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
656
+ readonly contentType: string;
657
+ readonly size: number;
658
+ }[] | null;
659
+ } | null;
660
+ readonly metadata?: {
661
+ readonly [x: string]: import("./generated").JsonValue;
662
+ } | null;
663
+ };
638
664
  readonly metadata: {
639
665
  readonly [x: string]: import("./generated").JsonValue;
640
666
  } | null;
@@ -643,17 +669,28 @@ export declare const listMessages: ((input: {
643
669
  readonly tags: readonly string[];
644
670
  readonly categories: readonly string[];
645
671
  readonly isTest: boolean;
646
- readonly isInternal: boolean;
647
- readonly isAutomated: boolean;
648
672
  readonly externalId: string | null;
649
673
  readonly referenceId: string | null;
650
- readonly apiKeyId: string | null;
651
- readonly httpMethod: string | null;
652
- readonly apiRequestMetadata: import("./generated").JsonValue;
653
- readonly apiResponseMetadata: import("./generated").JsonValue;
674
+ readonly submission: {
675
+ readonly origin: "campaign" | "direct" | "scheduled";
676
+ readonly transport: "http" | null;
677
+ readonly credential: {
678
+ readonly kind: "api_key";
679
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
680
+ } | {
681
+ readonly kind: "oauth";
682
+ readonly clientId: string | null;
683
+ } | {
684
+ readonly kind: "session";
685
+ } | null;
686
+ readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
687
+ readonly client: {
688
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
689
+ readonly version: string;
690
+ } | null;
691
+ } | null;
654
692
  readonly createdAt: string;
655
693
  readonly updatedAt: string;
656
- readonly createdBy: string | null;
657
694
  readonly fromContact: {
658
695
  readonly id: string;
659
696
  readonly name: string;
@@ -703,7 +740,8 @@ export declare const listMessages: ((input: {
703
740
  readonly scheduling: {
704
741
  readonly dueAt: string;
705
742
  readonly expiresAt: string;
706
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
743
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
744
+ readonly reviewExpectedAt: string | null;
707
745
  } | null;
708
746
  readonly id: string;
709
747
  readonly messageId: string;
@@ -723,17 +761,24 @@ export declare const listMessages: ((input: {
723
761
  readonly terminalAt: string | null;
724
762
  readonly errorCode: string | null;
725
763
  readonly errorMessage: string | null;
726
- readonly errorDetails: import("./generated").JsonValue;
764
+ readonly errorDetails: {
765
+ readonly code?: string | null;
766
+ readonly name?: string | null;
767
+ readonly message?: string | null;
768
+ readonly details?: {
769
+ readonly [x: string]: string | number | null;
770
+ } | null;
771
+ readonly retryable?: boolean | null;
772
+ } | null;
727
773
  readonly cost: string;
728
774
  readonly currency: string;
729
775
  readonly idempotencyKey: string | null;
730
- readonly metadata: import("./generated").JsonValue;
731
776
  readonly createdAt: string;
732
777
  readonly updatedAt: string;
733
778
  }[];
734
779
  readonly emailDeliveryDetails: readonly {
735
780
  readonly deliveryId: string;
736
- readonly messageIdHeader: string | null;
781
+ readonly messageIdHeader: string;
737
782
  readonly inReplyTo: string | null;
738
783
  readonly references: readonly string[] | null;
739
784
  readonly subject: string;
@@ -765,6 +810,8 @@ export declare const listMessages: ((input: {
765
810
  readonly createdAt: string;
766
811
  readonly updatedAt: string;
767
812
  }[];
813
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
814
+ readonly reviewExpectedAt: string | null;
768
815
  }[];
769
816
  readonly pagination: {
770
817
  readonly page: number;
@@ -772,7 +819,7 @@ export declare const listMessages: ((input: {
772
819
  readonly total: number;
773
820
  readonly totalPages: number;
774
821
  };
775
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
822
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
776
823
  readonly pages: (input: {
777
824
  readonly id: string;
778
825
  readonly page?: string | null | undefined;
@@ -789,7 +836,33 @@ export declare const listMessages: ((input: {
789
836
  } | null;
790
837
  readonly channel: "email";
791
838
  readonly direction: "inbound" | "outbound";
792
- readonly content: import("./generated").JsonValue;
839
+ readonly content: {
840
+ readonly text?: string | null;
841
+ readonly html?: string | null;
842
+ readonly markdown?: string | null;
843
+ readonly email?: {
844
+ readonly subject?: string | null;
845
+ readonly html?: string | null;
846
+ readonly text?: string | null;
847
+ readonly headers?: {
848
+ readonly [x: string]: string;
849
+ } | null;
850
+ readonly tracking?: {
851
+ readonly opens?: boolean;
852
+ readonly clicks?: boolean;
853
+ };
854
+ readonly attachments?: readonly {
855
+ readonly filename: string;
856
+ readonly content?: string | null;
857
+ readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
858
+ readonly contentType: string;
859
+ readonly size: number;
860
+ }[] | null;
861
+ } | null;
862
+ readonly metadata?: {
863
+ readonly [x: string]: import("./generated").JsonValue;
864
+ } | null;
865
+ };
793
866
  readonly metadata: {
794
867
  readonly [x: string]: import("./generated").JsonValue;
795
868
  } | null;
@@ -798,17 +871,28 @@ export declare const listMessages: ((input: {
798
871
  readonly tags: readonly string[];
799
872
  readonly categories: readonly string[];
800
873
  readonly isTest: boolean;
801
- readonly isInternal: boolean;
802
- readonly isAutomated: boolean;
803
874
  readonly externalId: string | null;
804
875
  readonly referenceId: string | null;
805
- readonly apiKeyId: string | null;
806
- readonly httpMethod: string | null;
807
- readonly apiRequestMetadata: import("./generated").JsonValue;
808
- readonly apiResponseMetadata: import("./generated").JsonValue;
876
+ readonly submission: {
877
+ readonly origin: "campaign" | "direct" | "scheduled";
878
+ readonly transport: "http" | null;
879
+ readonly credential: {
880
+ readonly kind: "api_key";
881
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
882
+ } | {
883
+ readonly kind: "oauth";
884
+ readonly clientId: string | null;
885
+ } | {
886
+ readonly kind: "session";
887
+ } | null;
888
+ readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
889
+ readonly client: {
890
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
891
+ readonly version: string;
892
+ } | null;
893
+ } | null;
809
894
  readonly createdAt: string;
810
895
  readonly updatedAt: string;
811
- readonly createdBy: string | null;
812
896
  readonly fromContact: {
813
897
  readonly id: string;
814
898
  readonly name: string;
@@ -858,7 +942,8 @@ export declare const listMessages: ((input: {
858
942
  readonly scheduling: {
859
943
  readonly dueAt: string;
860
944
  readonly expiresAt: string;
861
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
945
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
946
+ readonly reviewExpectedAt: string | null;
862
947
  } | null;
863
948
  readonly id: string;
864
949
  readonly messageId: string;
@@ -878,17 +963,24 @@ export declare const listMessages: ((input: {
878
963
  readonly terminalAt: string | null;
879
964
  readonly errorCode: string | null;
880
965
  readonly errorMessage: string | null;
881
- readonly errorDetails: import("./generated").JsonValue;
966
+ readonly errorDetails: {
967
+ readonly code?: string | null;
968
+ readonly name?: string | null;
969
+ readonly message?: string | null;
970
+ readonly details?: {
971
+ readonly [x: string]: string | number | null;
972
+ } | null;
973
+ readonly retryable?: boolean | null;
974
+ } | null;
882
975
  readonly cost: string;
883
976
  readonly currency: string;
884
977
  readonly idempotencyKey: string | null;
885
- readonly metadata: import("./generated").JsonValue;
886
978
  readonly createdAt: string;
887
979
  readonly updatedAt: string;
888
980
  }[];
889
981
  readonly emailDeliveryDetails: readonly {
890
982
  readonly deliveryId: string;
891
- readonly messageIdHeader: string | null;
983
+ readonly messageIdHeader: string;
892
984
  readonly inReplyTo: string | null;
893
985
  readonly references: readonly string[] | null;
894
986
  readonly subject: string;
@@ -920,6 +1012,8 @@ export declare const listMessages: ((input: {
920
1012
  readonly createdAt: string;
921
1013
  readonly updatedAt: string;
922
1014
  }[];
1015
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1016
+ readonly reviewExpectedAt: string | null;
923
1017
  }[];
924
1018
  readonly pagination: {
925
1019
  readonly page: number;
@@ -927,7 +1021,7 @@ export declare const listMessages: ((input: {
927
1021
  readonly total: number;
928
1022
  readonly totalPages: number;
929
1023
  };
930
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
1024
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
931
1025
  readonly items: (input: {
932
1026
  readonly id: string;
933
1027
  readonly page?: string | null | undefined;
@@ -943,7 +1037,33 @@ export declare const listMessages: ((input: {
943
1037
  } | null;
944
1038
  readonly channel: "email";
945
1039
  readonly direction: "inbound" | "outbound";
946
- readonly content: import("./generated").JsonValue;
1040
+ readonly content: {
1041
+ readonly text?: string | null;
1042
+ readonly html?: string | null;
1043
+ readonly markdown?: string | null;
1044
+ readonly email?: {
1045
+ readonly subject?: string | null;
1046
+ readonly html?: string | null;
1047
+ readonly text?: string | null;
1048
+ readonly headers?: {
1049
+ readonly [x: string]: string;
1050
+ } | null;
1051
+ readonly tracking?: {
1052
+ readonly opens?: boolean;
1053
+ readonly clicks?: boolean;
1054
+ };
1055
+ readonly attachments?: readonly {
1056
+ readonly filename: string;
1057
+ readonly content?: string | null;
1058
+ readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
1059
+ readonly contentType: string;
1060
+ readonly size: number;
1061
+ }[] | null;
1062
+ } | null;
1063
+ readonly metadata?: {
1064
+ readonly [x: string]: import("./generated").JsonValue;
1065
+ } | null;
1066
+ };
947
1067
  readonly metadata: {
948
1068
  readonly [x: string]: import("./generated").JsonValue;
949
1069
  } | null;
@@ -952,17 +1072,28 @@ export declare const listMessages: ((input: {
952
1072
  readonly tags: readonly string[];
953
1073
  readonly categories: readonly string[];
954
1074
  readonly isTest: boolean;
955
- readonly isInternal: boolean;
956
- readonly isAutomated: boolean;
957
1075
  readonly externalId: string | null;
958
1076
  readonly referenceId: string | null;
959
- readonly apiKeyId: string | null;
960
- readonly httpMethod: string | null;
961
- readonly apiRequestMetadata: import("./generated").JsonValue;
962
- readonly apiResponseMetadata: import("./generated").JsonValue;
1077
+ readonly submission: {
1078
+ readonly origin: "campaign" | "direct" | "scheduled";
1079
+ readonly transport: "http" | null;
1080
+ readonly credential: {
1081
+ readonly kind: "api_key";
1082
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
1083
+ } | {
1084
+ readonly kind: "oauth";
1085
+ readonly clientId: string | null;
1086
+ } | {
1087
+ readonly kind: "session";
1088
+ } | null;
1089
+ readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
1090
+ readonly client: {
1091
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
1092
+ readonly version: string;
1093
+ } | null;
1094
+ } | null;
963
1095
  readonly createdAt: string;
964
1096
  readonly updatedAt: string;
965
- readonly createdBy: string | null;
966
1097
  readonly fromContact: {
967
1098
  readonly id: string;
968
1099
  readonly name: string;
@@ -1012,7 +1143,8 @@ export declare const listMessages: ((input: {
1012
1143
  readonly scheduling: {
1013
1144
  readonly dueAt: string;
1014
1145
  readonly expiresAt: string;
1015
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
1146
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1147
+ readonly reviewExpectedAt: string | null;
1016
1148
  } | null;
1017
1149
  readonly id: string;
1018
1150
  readonly messageId: string;
@@ -1032,17 +1164,24 @@ export declare const listMessages: ((input: {
1032
1164
  readonly terminalAt: string | null;
1033
1165
  readonly errorCode: string | null;
1034
1166
  readonly errorMessage: string | null;
1035
- readonly errorDetails: import("./generated").JsonValue;
1167
+ readonly errorDetails: {
1168
+ readonly code?: string | null;
1169
+ readonly name?: string | null;
1170
+ readonly message?: string | null;
1171
+ readonly details?: {
1172
+ readonly [x: string]: string | number | null;
1173
+ } | null;
1174
+ readonly retryable?: boolean | null;
1175
+ } | null;
1036
1176
  readonly cost: string;
1037
1177
  readonly currency: string;
1038
1178
  readonly idempotencyKey: string | null;
1039
- readonly metadata: import("./generated").JsonValue;
1040
1179
  readonly createdAt: string;
1041
1180
  readonly updatedAt: string;
1042
1181
  }[];
1043
1182
  readonly emailDeliveryDetails: readonly {
1044
1183
  readonly deliveryId: string;
1045
- readonly messageIdHeader: string | null;
1184
+ readonly messageIdHeader: string;
1046
1185
  readonly inReplyTo: string | null;
1047
1186
  readonly references: readonly string[] | null;
1048
1187
  readonly subject: string;
@@ -1074,7 +1213,9 @@ export declare const listMessages: ((input: {
1074
1213
  readonly createdAt: string;
1075
1214
  readonly updatedAt: string;
1076
1215
  }[];
1077
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
1216
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1217
+ readonly reviewExpectedAt: string | null;
1218
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
1078
1219
  };
1079
1220
  export declare const update: (input: {
1080
1221
  readonly id: string;
@@ -1318,7 +1459,7 @@ export declare const update: (input: {
1318
1459
  readonly createdAt: string;
1319
1460
  readonly updatedAt: string;
1320
1461
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1321
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1462
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1322
1463
  export declare const addContacts: (input: {
1323
1464
  readonly id: string;
1324
1465
  readonly contactIds: readonly string[];
@@ -1401,7 +1542,7 @@ export declare const addContacts: (input: {
1401
1542
  readonly createdAt: string;
1402
1543
  readonly updatedAt: string;
1403
1544
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1404
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1545
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1405
1546
  export declare const removeContacts: (input: {
1406
1547
  readonly id: string;
1407
1548
  readonly contactIds: readonly string[];
@@ -1484,4 +1625,4 @@ export declare const removeContacts: (input: {
1484
1625
  readonly createdAt: string;
1485
1626
  readonly updatedAt: string;
1486
1627
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1487
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1628
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B4FjN6wq.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/conversations.ts
4
4
  var conversations_exports = /* @__PURE__ */ __exportAll({
5
5
  addContacts: () => addContacts,
@@ -0,0 +1,111 @@
1
+ export declare const list: ((input?: {
2
+ readonly page?: string | null | undefined;
3
+ readonly limit?: string | null | undefined;
4
+ } | undefined) => import("effect/Effect").Effect<{
5
+ readonly items: readonly {
6
+ readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
7
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
8
+ readonly key: string;
9
+ readonly label: string;
10
+ readonly type: "boolean" | "date" | "number" | "select" | "text";
11
+ readonly options: readonly string[] | null;
12
+ readonly defaultValue: string | null;
13
+ readonly isRequired: boolean;
14
+ readonly sortOrder: number;
15
+ readonly createdAt: string;
16
+ readonly updatedAt: string;
17
+ }[];
18
+ readonly pagination: {
19
+ readonly page: number;
20
+ readonly limit: number;
21
+ readonly total: number;
22
+ readonly totalPages: number;
23
+ };
24
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
25
+ readonly pages: (input?: {
26
+ readonly page?: string | null | undefined;
27
+ readonly limit?: string | null | undefined;
28
+ } | undefined) => import("effect/Stream").Stream<{
29
+ readonly items: readonly {
30
+ readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
31
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
32
+ readonly key: string;
33
+ readonly label: string;
34
+ readonly type: "boolean" | "date" | "number" | "select" | "text";
35
+ readonly options: readonly string[] | null;
36
+ readonly defaultValue: string | null;
37
+ readonly isRequired: boolean;
38
+ readonly sortOrder: number;
39
+ readonly createdAt: string;
40
+ readonly updatedAt: string;
41
+ }[];
42
+ readonly pagination: {
43
+ readonly page: number;
44
+ readonly limit: number;
45
+ readonly total: number;
46
+ readonly totalPages: number;
47
+ };
48
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
49
+ readonly items: (input?: {
50
+ readonly page?: string | null | undefined;
51
+ readonly limit?: string | null | undefined;
52
+ } | undefined) => import("effect/Stream").Stream<{
53
+ readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
54
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
55
+ readonly key: string;
56
+ readonly label: string;
57
+ readonly type: "boolean" | "date" | "number" | "select" | "text";
58
+ readonly options: readonly string[] | null;
59
+ readonly defaultValue: string | null;
60
+ readonly isRequired: boolean;
61
+ readonly sortOrder: number;
62
+ readonly createdAt: string;
63
+ readonly updatedAt: string;
64
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
65
+ };
66
+ export declare const create: (input: {
67
+ readonly key: string;
68
+ readonly label: string;
69
+ readonly type: string;
70
+ readonly options?: readonly string[] | null | undefined;
71
+ readonly defaultValue?: string | null | undefined;
72
+ readonly isRequired?: boolean | null | undefined;
73
+ readonly sortOrder?: number | null | undefined;
74
+ }) => import("effect/Effect").Effect<{
75
+ readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
76
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
77
+ readonly key: string;
78
+ readonly label: string;
79
+ readonly type: "boolean" | "date" | "number" | "select" | "text";
80
+ readonly options: readonly string[] | null;
81
+ readonly defaultValue: string | null;
82
+ readonly isRequired: boolean;
83
+ readonly sortOrder: number;
84
+ readonly createdAt: string;
85
+ readonly updatedAt: string;
86
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
87
+ export declare const update: (input: {
88
+ readonly id: string;
89
+ readonly label?: string | null | undefined;
90
+ readonly options?: readonly string[] | null | undefined;
91
+ readonly defaultValue?: string | null | undefined;
92
+ readonly isRequired?: boolean | null | undefined;
93
+ readonly sortOrder?: number | null | undefined;
94
+ }) => import("effect/Effect").Effect<{
95
+ readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
96
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
97
+ readonly key: string;
98
+ readonly label: string;
99
+ readonly type: "boolean" | "date" | "number" | "select" | "text";
100
+ readonly options: readonly string[] | null;
101
+ readonly defaultValue: string | null;
102
+ readonly isRequired: boolean;
103
+ readonly sortOrder: number;
104
+ readonly createdAt: string;
105
+ readonly updatedAt: string;
106
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
107
+ export declare const remove: (input: {
108
+ readonly id: string;
109
+ }) => import("effect/Effect").Effect<{
110
+ readonly success: boolean;
111
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
@@ -0,0 +1,17 @@
1
+ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
+ //#region src/effect/custom-fields.ts
4
+ var custom_fields_exports = /* @__PURE__ */ __exportAll({
5
+ create: () => create,
6
+ list: () => list,
7
+ remove: () => remove,
8
+ update: () => update
9
+ });
10
+ const list = make("customFieldsList");
11
+ const create = make("customFieldsCreate");
12
+ const update = make("customFieldsUpdate");
13
+ const remove = make("customFieldsRemove");
14
+ //#endregion
15
+ export { create, list, remove, custom_fields_exports as t, update };
16
+
17
+ //# sourceMappingURL=custom-fields.js.map