samva 0.5.0 → 0.6.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 (63) hide show
  1. package/AGENTS.md +3 -2
  2. package/README.md +12 -2
  3. package/dist/{categories-B9Nw2v_F.js → categories-4u9Az4No.js} +24 -8
  4. package/dist/client/sdk.gen.d.ts +406 -74
  5. package/dist/client/types.gen.d.ts +2583 -279
  6. package/dist/{client-B7gEkvEq.js → client-DCM6U0-I.js} +2183 -772
  7. package/dist/{client-attribution-B2yJBXdZ.js → client-attribution-DYUSAa76.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/campaigns.d.ts +36 -18
  15. package/dist/effect/campaigns.js +1 -1
  16. package/dist/effect/categories.d.ts +3 -3
  17. package/dist/effect/categories.js +1 -1
  18. package/dist/effect/client.js +1 -1
  19. package/dist/effect/contact-groups.d.ts +375 -0
  20. package/dist/effect/contact-groups.js +29 -0
  21. package/dist/effect/contacts.d.ts +35 -19
  22. package/dist/effect/contacts.js +1 -1
  23. package/dist/effect/conversations.d.ts +179 -47
  24. package/dist/effect/conversations.js +1 -1
  25. package/dist/effect/custom-fields.d.ts +111 -0
  26. package/dist/effect/custom-fields.js +17 -0
  27. package/dist/effect/design.d.ts +2 -2
  28. package/dist/effect/design.js +1 -1
  29. package/dist/effect/email.d.ts +254 -118
  30. package/dist/effect/email.js +2 -2
  31. package/dist/effect/generated-metadata.d.ts +12 -4
  32. package/dist/effect/generated.d.ts +11189 -6155
  33. package/dist/effect/index.d.ts +6 -1
  34. package/dist/effect/index.js +8 -3
  35. package/dist/effect/internal/operation.d.ts +115 -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 +303 -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 -110
  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 +35 -307
  48. package/dist/effect/templates.js +3 -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-02YX3hY9.js} +96 -8
  57. package/dist/promises/errors.gen.d.ts +30 -41
  58. package/dist/promises/index.d.ts +18 -4
  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-8MaPNAam.js} +1209 -288
  62. package/dist/service-map.d.ts +155 -8
  63. package/package.json +28 -8
@@ -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,7 @@ 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" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
707
744
  } | null;
708
745
  readonly id: string;
709
746
  readonly messageId: string;
@@ -723,17 +760,24 @@ export declare const listMessages: ((input: {
723
760
  readonly terminalAt: string | null;
724
761
  readonly errorCode: string | null;
725
762
  readonly errorMessage: string | null;
726
- readonly errorDetails: import("./generated").JsonValue;
763
+ readonly errorDetails: {
764
+ readonly code?: string | null;
765
+ readonly name?: string | null;
766
+ readonly message?: string | null;
767
+ readonly details?: {
768
+ readonly [x: string]: string | number | null;
769
+ } | null;
770
+ readonly retryable?: boolean | null;
771
+ } | null;
727
772
  readonly cost: string;
728
773
  readonly currency: string;
729
774
  readonly idempotencyKey: string | null;
730
- readonly metadata: import("./generated").JsonValue;
731
775
  readonly createdAt: string;
732
776
  readonly updatedAt: string;
733
777
  }[];
734
778
  readonly emailDeliveryDetails: readonly {
735
779
  readonly deliveryId: string;
736
- readonly messageIdHeader: string | null;
780
+ readonly messageIdHeader: string;
737
781
  readonly inReplyTo: string | null;
738
782
  readonly references: readonly string[] | null;
739
783
  readonly subject: string;
@@ -772,7 +816,7 @@ export declare const listMessages: ((input: {
772
816
  readonly total: number;
773
817
  readonly totalPages: number;
774
818
  };
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>) & {
819
+ }, 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
820
  readonly pages: (input: {
777
821
  readonly id: string;
778
822
  readonly page?: string | null | undefined;
@@ -789,7 +833,33 @@ export declare const listMessages: ((input: {
789
833
  } | null;
790
834
  readonly channel: "email";
791
835
  readonly direction: "inbound" | "outbound";
792
- readonly content: import("./generated").JsonValue;
836
+ readonly content: {
837
+ readonly text?: string | null;
838
+ readonly html?: string | null;
839
+ readonly markdown?: string | null;
840
+ readonly email?: {
841
+ readonly subject?: string | null;
842
+ readonly html?: string | null;
843
+ readonly text?: string | null;
844
+ readonly headers?: {
845
+ readonly [x: string]: string;
846
+ } | null;
847
+ readonly tracking?: {
848
+ readonly opens?: boolean;
849
+ readonly clicks?: boolean;
850
+ };
851
+ readonly attachments?: readonly {
852
+ readonly filename: string;
853
+ readonly content?: string | null;
854
+ readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
855
+ readonly contentType: string;
856
+ readonly size: number;
857
+ }[] | null;
858
+ } | null;
859
+ readonly metadata?: {
860
+ readonly [x: string]: import("./generated").JsonValue;
861
+ } | null;
862
+ };
793
863
  readonly metadata: {
794
864
  readonly [x: string]: import("./generated").JsonValue;
795
865
  } | null;
@@ -798,17 +868,28 @@ export declare const listMessages: ((input: {
798
868
  readonly tags: readonly string[];
799
869
  readonly categories: readonly string[];
800
870
  readonly isTest: boolean;
801
- readonly isInternal: boolean;
802
- readonly isAutomated: boolean;
803
871
  readonly externalId: string | null;
804
872
  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;
873
+ readonly submission: {
874
+ readonly origin: "campaign" | "direct" | "scheduled";
875
+ readonly transport: "http" | null;
876
+ readonly credential: {
877
+ readonly kind: "api_key";
878
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
879
+ } | {
880
+ readonly kind: "oauth";
881
+ readonly clientId: string | null;
882
+ } | {
883
+ readonly kind: "session";
884
+ } | null;
885
+ readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
886
+ readonly client: {
887
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
888
+ readonly version: string;
889
+ } | null;
890
+ } | null;
809
891
  readonly createdAt: string;
810
892
  readonly updatedAt: string;
811
- readonly createdBy: string | null;
812
893
  readonly fromContact: {
813
894
  readonly id: string;
814
895
  readonly name: string;
@@ -858,7 +939,7 @@ export declare const listMessages: ((input: {
858
939
  readonly scheduling: {
859
940
  readonly dueAt: string;
860
941
  readonly expiresAt: string;
861
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
942
+ readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
862
943
  } | null;
863
944
  readonly id: string;
864
945
  readonly messageId: string;
@@ -878,17 +959,24 @@ export declare const listMessages: ((input: {
878
959
  readonly terminalAt: string | null;
879
960
  readonly errorCode: string | null;
880
961
  readonly errorMessage: string | null;
881
- readonly errorDetails: import("./generated").JsonValue;
962
+ readonly errorDetails: {
963
+ readonly code?: string | null;
964
+ readonly name?: string | null;
965
+ readonly message?: string | null;
966
+ readonly details?: {
967
+ readonly [x: string]: string | number | null;
968
+ } | null;
969
+ readonly retryable?: boolean | null;
970
+ } | null;
882
971
  readonly cost: string;
883
972
  readonly currency: string;
884
973
  readonly idempotencyKey: string | null;
885
- readonly metadata: import("./generated").JsonValue;
886
974
  readonly createdAt: string;
887
975
  readonly updatedAt: string;
888
976
  }[];
889
977
  readonly emailDeliveryDetails: readonly {
890
978
  readonly deliveryId: string;
891
- readonly messageIdHeader: string | null;
979
+ readonly messageIdHeader: string;
892
980
  readonly inReplyTo: string | null;
893
981
  readonly references: readonly string[] | null;
894
982
  readonly subject: string;
@@ -927,7 +1015,7 @@ export declare const listMessages: ((input: {
927
1015
  readonly total: number;
928
1016
  readonly totalPages: number;
929
1017
  };
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>;
1018
+ }, 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
1019
  readonly items: (input: {
932
1020
  readonly id: string;
933
1021
  readonly page?: string | null | undefined;
@@ -943,7 +1031,33 @@ export declare const listMessages: ((input: {
943
1031
  } | null;
944
1032
  readonly channel: "email";
945
1033
  readonly direction: "inbound" | "outbound";
946
- readonly content: import("./generated").JsonValue;
1034
+ readonly content: {
1035
+ readonly text?: string | null;
1036
+ readonly html?: string | null;
1037
+ readonly markdown?: string | null;
1038
+ readonly email?: {
1039
+ readonly subject?: string | null;
1040
+ readonly html?: string | null;
1041
+ readonly text?: string | null;
1042
+ readonly headers?: {
1043
+ readonly [x: string]: string;
1044
+ } | null;
1045
+ readonly tracking?: {
1046
+ readonly opens?: boolean;
1047
+ readonly clicks?: boolean;
1048
+ };
1049
+ readonly attachments?: readonly {
1050
+ readonly filename: string;
1051
+ readonly content?: string | null;
1052
+ readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
1053
+ readonly contentType: string;
1054
+ readonly size: number;
1055
+ }[] | null;
1056
+ } | null;
1057
+ readonly metadata?: {
1058
+ readonly [x: string]: import("./generated").JsonValue;
1059
+ } | null;
1060
+ };
947
1061
  readonly metadata: {
948
1062
  readonly [x: string]: import("./generated").JsonValue;
949
1063
  } | null;
@@ -952,17 +1066,28 @@ export declare const listMessages: ((input: {
952
1066
  readonly tags: readonly string[];
953
1067
  readonly categories: readonly string[];
954
1068
  readonly isTest: boolean;
955
- readonly isInternal: boolean;
956
- readonly isAutomated: boolean;
957
1069
  readonly externalId: string | null;
958
1070
  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;
1071
+ readonly submission: {
1072
+ readonly origin: "campaign" | "direct" | "scheduled";
1073
+ readonly transport: "http" | null;
1074
+ readonly credential: {
1075
+ readonly kind: "api_key";
1076
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
1077
+ } | {
1078
+ readonly kind: "oauth";
1079
+ readonly clientId: string | null;
1080
+ } | {
1081
+ readonly kind: "session";
1082
+ } | null;
1083
+ readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
1084
+ readonly client: {
1085
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
1086
+ readonly version: string;
1087
+ } | null;
1088
+ } | null;
963
1089
  readonly createdAt: string;
964
1090
  readonly updatedAt: string;
965
- readonly createdBy: string | null;
966
1091
  readonly fromContact: {
967
1092
  readonly id: string;
968
1093
  readonly name: string;
@@ -1012,7 +1137,7 @@ export declare const listMessages: ((input: {
1012
1137
  readonly scheduling: {
1013
1138
  readonly dueAt: string;
1014
1139
  readonly expiresAt: string;
1015
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
1140
+ readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1016
1141
  } | null;
1017
1142
  readonly id: string;
1018
1143
  readonly messageId: string;
@@ -1032,17 +1157,24 @@ export declare const listMessages: ((input: {
1032
1157
  readonly terminalAt: string | null;
1033
1158
  readonly errorCode: string | null;
1034
1159
  readonly errorMessage: string | null;
1035
- readonly errorDetails: import("./generated").JsonValue;
1160
+ readonly errorDetails: {
1161
+ readonly code?: string | null;
1162
+ readonly name?: string | null;
1163
+ readonly message?: string | null;
1164
+ readonly details?: {
1165
+ readonly [x: string]: string | number | null;
1166
+ } | null;
1167
+ readonly retryable?: boolean | null;
1168
+ } | null;
1036
1169
  readonly cost: string;
1037
1170
  readonly currency: string;
1038
1171
  readonly idempotencyKey: string | null;
1039
- readonly metadata: import("./generated").JsonValue;
1040
1172
  readonly createdAt: string;
1041
1173
  readonly updatedAt: string;
1042
1174
  }[];
1043
1175
  readonly emailDeliveryDetails: readonly {
1044
1176
  readonly deliveryId: string;
1045
- readonly messageIdHeader: string | null;
1177
+ readonly messageIdHeader: string;
1046
1178
  readonly inReplyTo: string | null;
1047
1179
  readonly references: readonly string[] | null;
1048
1180
  readonly subject: string;
@@ -1074,7 +1206,7 @@ export declare const listMessages: ((input: {
1074
1206
  readonly createdAt: string;
1075
1207
  readonly updatedAt: string;
1076
1208
  }[];
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>;
1209
+ }, 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
1210
  };
1079
1211
  export declare const update: (input: {
1080
1212
  readonly id: string;
@@ -1318,7 +1450,7 @@ export declare const update: (input: {
1318
1450
  readonly createdAt: string;
1319
1451
  readonly updatedAt: string;
1320
1452
  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>;
1453
+ }, 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
1454
  export declare const addContacts: (input: {
1323
1455
  readonly id: string;
1324
1456
  readonly contactIds: readonly string[];
@@ -1401,7 +1533,7 @@ export declare const addContacts: (input: {
1401
1533
  readonly createdAt: string;
1402
1534
  readonly updatedAt: string;
1403
1535
  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>;
1536
+ }, 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
1537
  export declare const removeContacts: (input: {
1406
1538
  readonly id: string;
1407
1539
  readonly contactIds: readonly string[];
@@ -1484,4 +1616,4 @@ export declare const removeContacts: (input: {
1484
1616
  readonly createdAt: string;
1485
1617
  readonly updatedAt: string;
1486
1618
  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>;
1619
+ }, 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-02YX3hY9.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-02YX3hY9.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
@@ -68,7 +68,7 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
68
68
  readonly footerCompleteness: {
69
69
  readonly missingAddress: boolean;
70
70
  };
71
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
71
+ }, 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>;
72
72
  export declare const update: (input: {
73
73
  readonly design: {
74
74
  readonly theme?: {
@@ -206,4 +206,4 @@ export declare const update: (input: {
206
206
  readonly footerCompleteness: {
207
207
  readonly missingAddress: boolean;
208
208
  };
209
- }, 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>;
209
+ }, 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>;
@@ -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-02YX3hY9.js";
3
3
  //#region src/effect/design.ts
4
4
  var design_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,