samva 0.4.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-CsUa8ojo.js → categories-4u9Az4No.js} +28 -8
  4. package/dist/client/sdk.gen.d.ts +545 -74
  5. package/dist/client/types.gen.d.ts +3907 -747
  6. package/dist/{client-BmZK_uCt.js → client-DCM6U0-I.js} +3061 -808
  7. package/dist/{client-attribution-BslSOa_8.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 +52 -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 +191 -44
  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 +931 -97
  30. package/dist/effect/email.js +27 -3
  31. package/dist/effect/generated-metadata.d.ts +16 -4
  32. package/dist/effect/generated.d.ts +19596 -10819
  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 +124 -26
  36. package/dist/effect/media.d.ts +8 -8
  37. package/dist/effect/media.js +1 -1
  38. package/dist/effect/messages.d.ts +473 -64
  39. package/dist/effect/messages.js +5 -3
  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 +96 -12
  46. package/dist/effect/scheduled-messages.js +5 -3
  47. package/dist/effect/templates.d.ts +35 -295
  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 +52 -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-B1knNlxk.js → operation-02YX3hY9.js} +144 -8
  57. package/dist/promises/errors.gen.d.ts +47 -39
  58. package/dist/promises/index.d.ts +19 -4
  59. package/dist/promises/index.js +2 -2
  60. package/dist/promises/types.gen.d.ts +1 -1
  61. package/dist/{promises-n1opem5V.js → promises-8MaPNAam.js} +1679 -267
  62. package/dist/service-map.d.ts +221 -8
  63. package/package.json +29 -9
@@ -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;
@@ -700,6 +737,11 @@ export declare const listMessages: ((input: {
700
737
  } | null;
701
738
  }[];
702
739
  readonly deliveries: readonly {
740
+ readonly scheduling: {
741
+ readonly dueAt: string;
742
+ readonly expiresAt: string;
743
+ readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
744
+ } | null;
703
745
  readonly id: string;
704
746
  readonly messageId: string;
705
747
  readonly recipientId: string | null;
@@ -718,17 +760,24 @@ export declare const listMessages: ((input: {
718
760
  readonly terminalAt: string | null;
719
761
  readonly errorCode: string | null;
720
762
  readonly errorMessage: string | null;
721
- 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;
722
772
  readonly cost: string;
723
773
  readonly currency: string;
724
774
  readonly idempotencyKey: string | null;
725
- readonly metadata: import("./generated").JsonValue;
726
775
  readonly createdAt: string;
727
776
  readonly updatedAt: string;
728
777
  }[];
729
778
  readonly emailDeliveryDetails: readonly {
730
779
  readonly deliveryId: string;
731
- readonly messageIdHeader: string | null;
780
+ readonly messageIdHeader: string;
732
781
  readonly inReplyTo: string | null;
733
782
  readonly references: readonly string[] | null;
734
783
  readonly subject: string;
@@ -767,7 +816,7 @@ export declare const listMessages: ((input: {
767
816
  readonly total: number;
768
817
  readonly totalPages: number;
769
818
  };
770
- }, 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>) & {
771
820
  readonly pages: (input: {
772
821
  readonly id: string;
773
822
  readonly page?: string | null | undefined;
@@ -784,7 +833,33 @@ export declare const listMessages: ((input: {
784
833
  } | null;
785
834
  readonly channel: "email";
786
835
  readonly direction: "inbound" | "outbound";
787
- 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
+ };
788
863
  readonly metadata: {
789
864
  readonly [x: string]: import("./generated").JsonValue;
790
865
  } | null;
@@ -793,17 +868,28 @@ export declare const listMessages: ((input: {
793
868
  readonly tags: readonly string[];
794
869
  readonly categories: readonly string[];
795
870
  readonly isTest: boolean;
796
- readonly isInternal: boolean;
797
- readonly isAutomated: boolean;
798
871
  readonly externalId: string | null;
799
872
  readonly referenceId: string | null;
800
- readonly apiKeyId: string | null;
801
- readonly httpMethod: string | null;
802
- readonly apiRequestMetadata: import("./generated").JsonValue;
803
- 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;
804
891
  readonly createdAt: string;
805
892
  readonly updatedAt: string;
806
- readonly createdBy: string | null;
807
893
  readonly fromContact: {
808
894
  readonly id: string;
809
895
  readonly name: string;
@@ -850,6 +936,11 @@ export declare const listMessages: ((input: {
850
936
  } | null;
851
937
  }[];
852
938
  readonly deliveries: readonly {
939
+ readonly scheduling: {
940
+ readonly dueAt: string;
941
+ readonly expiresAt: string;
942
+ readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
943
+ } | null;
853
944
  readonly id: string;
854
945
  readonly messageId: string;
855
946
  readonly recipientId: string | null;
@@ -868,17 +959,24 @@ export declare const listMessages: ((input: {
868
959
  readonly terminalAt: string | null;
869
960
  readonly errorCode: string | null;
870
961
  readonly errorMessage: string | null;
871
- 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;
872
971
  readonly cost: string;
873
972
  readonly currency: string;
874
973
  readonly idempotencyKey: string | null;
875
- readonly metadata: import("./generated").JsonValue;
876
974
  readonly createdAt: string;
877
975
  readonly updatedAt: string;
878
976
  }[];
879
977
  readonly emailDeliveryDetails: readonly {
880
978
  readonly deliveryId: string;
881
- readonly messageIdHeader: string | null;
979
+ readonly messageIdHeader: string;
882
980
  readonly inReplyTo: string | null;
883
981
  readonly references: readonly string[] | null;
884
982
  readonly subject: string;
@@ -917,7 +1015,7 @@ export declare const listMessages: ((input: {
917
1015
  readonly total: number;
918
1016
  readonly totalPages: number;
919
1017
  };
920
- }, 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>;
921
1019
  readonly items: (input: {
922
1020
  readonly id: string;
923
1021
  readonly page?: string | null | undefined;
@@ -933,7 +1031,33 @@ export declare const listMessages: ((input: {
933
1031
  } | null;
934
1032
  readonly channel: "email";
935
1033
  readonly direction: "inbound" | "outbound";
936
- 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
+ };
937
1061
  readonly metadata: {
938
1062
  readonly [x: string]: import("./generated").JsonValue;
939
1063
  } | null;
@@ -942,17 +1066,28 @@ export declare const listMessages: ((input: {
942
1066
  readonly tags: readonly string[];
943
1067
  readonly categories: readonly string[];
944
1068
  readonly isTest: boolean;
945
- readonly isInternal: boolean;
946
- readonly isAutomated: boolean;
947
1069
  readonly externalId: string | null;
948
1070
  readonly referenceId: string | null;
949
- readonly apiKeyId: string | null;
950
- readonly httpMethod: string | null;
951
- readonly apiRequestMetadata: import("./generated").JsonValue;
952
- 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;
953
1089
  readonly createdAt: string;
954
1090
  readonly updatedAt: string;
955
- readonly createdBy: string | null;
956
1091
  readonly fromContact: {
957
1092
  readonly id: string;
958
1093
  readonly name: string;
@@ -999,6 +1134,11 @@ export declare const listMessages: ((input: {
999
1134
  } | null;
1000
1135
  }[];
1001
1136
  readonly deliveries: readonly {
1137
+ readonly scheduling: {
1138
+ readonly dueAt: string;
1139
+ readonly expiresAt: string;
1140
+ readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1141
+ } | null;
1002
1142
  readonly id: string;
1003
1143
  readonly messageId: string;
1004
1144
  readonly recipientId: string | null;
@@ -1017,17 +1157,24 @@ export declare const listMessages: ((input: {
1017
1157
  readonly terminalAt: string | null;
1018
1158
  readonly errorCode: string | null;
1019
1159
  readonly errorMessage: string | null;
1020
- 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;
1021
1169
  readonly cost: string;
1022
1170
  readonly currency: string;
1023
1171
  readonly idempotencyKey: string | null;
1024
- readonly metadata: import("./generated").JsonValue;
1025
1172
  readonly createdAt: string;
1026
1173
  readonly updatedAt: string;
1027
1174
  }[];
1028
1175
  readonly emailDeliveryDetails: readonly {
1029
1176
  readonly deliveryId: string;
1030
- readonly messageIdHeader: string | null;
1177
+ readonly messageIdHeader: string;
1031
1178
  readonly inReplyTo: string | null;
1032
1179
  readonly references: readonly string[] | null;
1033
1180
  readonly subject: string;
@@ -1059,7 +1206,7 @@ export declare const listMessages: ((input: {
1059
1206
  readonly createdAt: string;
1060
1207
  readonly updatedAt: string;
1061
1208
  }[];
1062
- }, 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>;
1063
1210
  };
1064
1211
  export declare const update: (input: {
1065
1212
  readonly id: string;
@@ -1303,7 +1450,7 @@ export declare const update: (input: {
1303
1450
  readonly createdAt: string;
1304
1451
  readonly updatedAt: string;
1305
1452
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1306
- }, 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>;
1307
1454
  export declare const addContacts: (input: {
1308
1455
  readonly id: string;
1309
1456
  readonly contactIds: readonly string[];
@@ -1386,7 +1533,7 @@ export declare const addContacts: (input: {
1386
1533
  readonly createdAt: string;
1387
1534
  readonly updatedAt: string;
1388
1535
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1389
- }, 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>;
1390
1537
  export declare const removeContacts: (input: {
1391
1538
  readonly id: string;
1392
1539
  readonly contactIds: readonly string[];
@@ -1469,4 +1616,4 @@ export declare const removeContacts: (input: {
1469
1616
  readonly createdAt: string;
1470
1617
  readonly updatedAt: string;
1471
1618
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
1472
- }, 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-B1knNlxk.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-B1knNlxk.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,