samva 0.54.0 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -1
- package/dist/client/client.gen.js +1 -1
- package/dist/client/sdk.gen.d.ts +69 -6
- package/dist/client/sdk.gen.js +216 -9
- package/dist/client/types.gen.d.ts +486 -7
- package/dist/client-attribution.js +1 -1
- package/dist/effect/agents.js +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/approval-requests.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +66 -56
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +6 -6
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
- package/dist/effect/descriptors/phone-numbers.js +47 -0
- package/dist/effect/descriptors/topics.d.ts +1 -1
- package/dist/effect/descriptors/topics.js +1 -1
- package/dist/effect/descriptors/whats-app.d.ts +10 -0
- package/dist/effect/descriptors/whats-app.js +10 -0
- package/dist/effect/email.js +1 -1
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/events.js +2 -2
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated/accounts.d.ts +12 -1
- package/dist/effect/generated/accounts.js +2 -1
- package/dist/effect/generated/agents.js +7 -7
- package/dist/effect/generated/analytics.js +16 -16
- package/dist/effect/generated/api-keys.js +5 -5
- package/dist/effect/generated/approval-requests.js +1 -1
- package/dist/effect/generated/attachments.js +4 -4
- package/dist/effect/generated/brands.js +1 -1
- package/dist/effect/generated/campaigns.d.ts +17 -1
- package/dist/effect/generated/campaigns.js +15 -14
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.js +12 -12
- package/dist/effect/generated/contacts.js +50 -50
- package/dist/effect/generated/conversations.js +7 -7
- package/dist/effect/generated/custom-fields.js +6 -6
- package/dist/effect/generated/email.js +48 -48
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/feedback.js +1 -1
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +16 -0
- package/dist/effect/generated/integrations-catalog.js +10 -6
- package/dist/effect/generated/integrations.js +5 -5
- package/dist/effect/generated/journeys.d.ts +38 -1
- package/dist/effect/generated/journeys.js +16 -14
- package/dist/effect/generated/logs.js +2 -2
- package/dist/effect/generated/mailboxes.d.ts +41 -3
- package/dist/effect/generated/mailboxes.js +48 -50
- package/dist/effect/generated/media.js +1 -1
- package/dist/effect/generated/messages.js +5 -5
- package/dist/effect/generated/namespaces.d.ts +9 -9
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.js +1 -1
- package/dist/effect/generated/newsletter-issues.js +69 -69
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +3 -0
- package/dist/effect/generated/organizations.js +2 -1
- package/dist/effect/generated/phone-numbers.d.ts +817 -0
- package/dist/effect/generated/phone-numbers.js +230 -0
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +35 -14
- package/dist/effect/generated/shared.js +36 -13
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/template-registrations.d.ts +9 -0
- package/dist/effect/generated/template-registrations.js +3 -2
- package/dist/effect/generated/template-share-links.js +9 -9
- package/dist/effect/generated/templates.js +119 -119
- package/dist/effect/generated/topic-forms.js +1 -1
- package/dist/effect/generated/topics.d.ts +10 -0
- package/dist/effect/generated/topics.js +20 -13
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +22 -18
- package/dist/effect/generated/whats-app-flows.js +5 -5
- package/dist/effect/generated/whats-app-setup-links.js +1 -1
- package/dist/effect/generated/whats-app.d.ts +251 -1
- package/dist/effect/generated/whats-app.js +75 -20
- package/dist/effect/generated/whoami.js +1 -1
- package/dist/effect/generated-metadata.d.ts +41 -1
- package/dist/effect/generated-metadata.js +174 -146
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +6 -5
- package/dist/effect/integrations-catalog.js +1 -1
- package/dist/effect/integrations.js +1 -1
- package/dist/effect/internal/client.js +6 -6
- package/dist/effect/internal/email-sender.js +3 -3
- package/dist/effect/internal/log-events.js +2 -2
- package/dist/effect/internal/mailbox-events.js +1 -1
- package/dist/effect/internal/operation.js +2 -2
- package/dist/effect/internal/send.js +4 -4
- package/dist/effect/journeys.d.ts +10 -0
- package/dist/effect/journeys.js +1 -1
- package/dist/effect/logs.js +1 -1
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.js +2 -2
- package/dist/effect/namespaces.d.ts +2 -2
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-domains.js +1 -1
- package/dist/effect/newsletter-issues.js +1 -1
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/phone-numbers.d.ts +22 -0
- package/dist/effect/phone-numbers.js +21 -0
- package/dist/effect/policies.js +1 -1
- package/dist/effect/retry.js +3 -3
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.js +1 -1
- package/dist/effect/template-registrations.js +1 -1
- package/dist/effect/template-share-links.js +1 -1
- package/dist/effect/templates.js +2 -2
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +70 -2
- package/dist/effect/topics.js +1 -1
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/webhooks.js +2 -2
- package/dist/effect/whatsapp-flows.js +1 -1
- package/dist/effect/whatsapp-setup-links.js +1 -1
- package/dist/effect/whatsapp.d.ts +16 -0
- package/dist/effect/whatsapp.js +4 -2
- package/dist/effect/whoami.js +1 -1
- package/dist/index.js +2 -2
- package/dist/package.json.js +5 -0
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +7 -5
- package/dist/promises/errors.gen.d.ts +16 -2
- package/dist/promises/errors.gen.js +48 -11
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.js +1 -1
- package/dist/service-map.d.ts +30 -0
- package/package.json +9 -5
- package/dist/package.js +0 -5
|
@@ -110,6 +110,10 @@ const SamvaErrorMetadata = {
|
|
|
110
110
|
categories: ["billing"],
|
|
111
111
|
retryable: false
|
|
112
112
|
},
|
|
113
|
+
PhoneNumberProvisioningError: {
|
|
114
|
+
categories: [],
|
|
115
|
+
retryable: false
|
|
116
|
+
},
|
|
113
117
|
RateLimitedError: {
|
|
114
118
|
categories: ["throttling", "transient"],
|
|
115
119
|
retryable: true
|
|
@@ -895,252 +899,270 @@ const operationMetadata116 = {
|
|
|
895
899
|
paginated: false
|
|
896
900
|
};
|
|
897
901
|
const operationMetadata117 = {
|
|
898
|
-
group: "
|
|
902
|
+
group: "Phone numbers",
|
|
899
903
|
method: "GET",
|
|
900
904
|
idempotent: false,
|
|
901
905
|
paginated: false
|
|
902
906
|
};
|
|
903
907
|
const operationMetadata118 = {
|
|
908
|
+
group: "Phone numbers",
|
|
909
|
+
method: "POST",
|
|
910
|
+
idempotent: false,
|
|
911
|
+
paginated: false
|
|
912
|
+
};
|
|
913
|
+
const operationMetadata119 = {
|
|
914
|
+
group: "Phone numbers",
|
|
915
|
+
method: "DELETE",
|
|
916
|
+
idempotent: false,
|
|
917
|
+
paginated: false
|
|
918
|
+
};
|
|
919
|
+
const operationMetadata120 = {
|
|
920
|
+
group: "Policies",
|
|
921
|
+
method: "GET",
|
|
922
|
+
idempotent: false,
|
|
923
|
+
paginated: false
|
|
924
|
+
};
|
|
925
|
+
const operationMetadata121 = {
|
|
904
926
|
group: "Policies",
|
|
905
927
|
method: "PUT",
|
|
906
928
|
idempotent: false,
|
|
907
929
|
paginated: false
|
|
908
930
|
};
|
|
909
|
-
const
|
|
931
|
+
const operationMetadata122 = {
|
|
910
932
|
group: "Policies",
|
|
911
933
|
method: "DELETE",
|
|
912
934
|
idempotent: false,
|
|
913
935
|
paginated: false
|
|
914
936
|
};
|
|
915
|
-
const
|
|
937
|
+
const operationMetadata123 = {
|
|
916
938
|
group: "Subscriptions",
|
|
917
939
|
method: "POST",
|
|
918
940
|
idempotent: false,
|
|
919
941
|
paginated: false
|
|
920
942
|
};
|
|
921
|
-
const
|
|
943
|
+
const operationMetadata124 = {
|
|
922
944
|
group: "Template share links",
|
|
923
945
|
method: "GET",
|
|
924
946
|
idempotent: false,
|
|
925
947
|
paginated: false
|
|
926
948
|
};
|
|
927
|
-
const
|
|
949
|
+
const operationMetadata125 = {
|
|
928
950
|
group: "Template share links",
|
|
929
951
|
method: "POST",
|
|
930
952
|
idempotent: false,
|
|
931
953
|
paginated: false
|
|
932
954
|
};
|
|
933
|
-
const
|
|
955
|
+
const operationMetadata126 = {
|
|
934
956
|
group: "Template share links",
|
|
935
957
|
method: "DELETE",
|
|
936
958
|
idempotent: false,
|
|
937
959
|
paginated: false
|
|
938
960
|
};
|
|
939
|
-
const
|
|
961
|
+
const operationMetadata127 = {
|
|
940
962
|
group: "Template share links",
|
|
941
963
|
method: "PATCH",
|
|
942
964
|
idempotent: false,
|
|
943
965
|
paginated: false
|
|
944
966
|
};
|
|
945
|
-
const
|
|
967
|
+
const operationMetadata128 = {
|
|
946
968
|
group: "Templates",
|
|
947
969
|
method: "GET",
|
|
948
970
|
idempotent: false,
|
|
949
971
|
paginated: true
|
|
950
972
|
};
|
|
951
|
-
const
|
|
973
|
+
const operationMetadata129 = {
|
|
952
974
|
group: "Templates",
|
|
953
975
|
method: "POST",
|
|
954
976
|
idempotent: true,
|
|
955
977
|
paginated: false
|
|
956
978
|
};
|
|
957
|
-
const
|
|
979
|
+
const operationMetadata130 = {
|
|
958
980
|
group: "Templates",
|
|
959
981
|
method: "GET",
|
|
960
982
|
idempotent: false,
|
|
961
983
|
paginated: false
|
|
962
984
|
};
|
|
963
|
-
const
|
|
985
|
+
const operationMetadata131 = {
|
|
964
986
|
group: "Templates",
|
|
965
987
|
method: "DELETE",
|
|
966
988
|
idempotent: false,
|
|
967
989
|
paginated: false
|
|
968
990
|
};
|
|
969
|
-
const
|
|
991
|
+
const operationMetadata132 = {
|
|
970
992
|
group: "Templates",
|
|
971
993
|
method: "PATCH",
|
|
972
994
|
idempotent: false,
|
|
973
995
|
paginated: false
|
|
974
996
|
};
|
|
975
|
-
const
|
|
997
|
+
const operationMetadata133 = {
|
|
976
998
|
group: "Templates",
|
|
977
999
|
method: "POST",
|
|
978
1000
|
idempotent: false,
|
|
979
1001
|
paginated: false
|
|
980
1002
|
};
|
|
981
|
-
const
|
|
1003
|
+
const operationMetadata134 = {
|
|
982
1004
|
group: "Template registrations",
|
|
983
1005
|
method: "GET",
|
|
984
1006
|
idempotent: false,
|
|
985
1007
|
paginated: false
|
|
986
1008
|
};
|
|
987
|
-
const
|
|
1009
|
+
const operationMetadata135 = {
|
|
988
1010
|
group: "Template registrations",
|
|
989
1011
|
method: "POST",
|
|
990
1012
|
idempotent: false,
|
|
991
1013
|
paginated: false
|
|
992
1014
|
};
|
|
993
|
-
const
|
|
1015
|
+
const operationMetadata136 = {
|
|
994
1016
|
group: "Templates",
|
|
995
1017
|
method: "PATCH",
|
|
996
1018
|
idempotent: true,
|
|
997
1019
|
paginated: false
|
|
998
1020
|
};
|
|
999
|
-
const
|
|
1021
|
+
const operationMetadata137 = {
|
|
1000
1022
|
group: "Templates",
|
|
1001
1023
|
method: "PUT",
|
|
1002
1024
|
idempotent: true,
|
|
1003
1025
|
paginated: false
|
|
1004
1026
|
};
|
|
1005
|
-
const
|
|
1027
|
+
const operationMetadata138 = {
|
|
1006
1028
|
group: "Topics",
|
|
1007
1029
|
method: "GET",
|
|
1008
1030
|
idempotent: false,
|
|
1009
|
-
paginated:
|
|
1031
|
+
paginated: true
|
|
1010
1032
|
};
|
|
1011
|
-
const
|
|
1033
|
+
const operationMetadata139 = {
|
|
1012
1034
|
group: "Topics",
|
|
1013
1035
|
method: "POST",
|
|
1014
1036
|
idempotent: false,
|
|
1015
1037
|
paginated: false
|
|
1016
1038
|
};
|
|
1017
|
-
const
|
|
1039
|
+
const operationMetadata140 = {
|
|
1040
|
+
group: "Topics",
|
|
1041
|
+
method: "GET",
|
|
1042
|
+
idempotent: false,
|
|
1043
|
+
paginated: false
|
|
1044
|
+
};
|
|
1045
|
+
const operationMetadata141 = {
|
|
1018
1046
|
group: "Topics",
|
|
1019
1047
|
method: "DELETE",
|
|
1020
1048
|
idempotent: false,
|
|
1021
1049
|
paginated: false
|
|
1022
1050
|
};
|
|
1023
|
-
const
|
|
1051
|
+
const operationMetadata142 = {
|
|
1024
1052
|
group: "Topics",
|
|
1025
1053
|
method: "PATCH",
|
|
1026
1054
|
idempotent: false,
|
|
1027
1055
|
paginated: false
|
|
1028
1056
|
};
|
|
1029
|
-
const
|
|
1057
|
+
const operationMetadata143 = {
|
|
1030
1058
|
group: "Topic forms",
|
|
1031
1059
|
method: "GET",
|
|
1032
1060
|
idempotent: false,
|
|
1033
1061
|
paginated: false
|
|
1034
1062
|
};
|
|
1035
|
-
const
|
|
1063
|
+
const operationMetadata144 = {
|
|
1036
1064
|
group: "Topic forms",
|
|
1037
1065
|
method: "POST",
|
|
1038
1066
|
idempotent: false,
|
|
1039
1067
|
paginated: false
|
|
1040
1068
|
};
|
|
1041
|
-
const
|
|
1069
|
+
const operationMetadata145 = {
|
|
1042
1070
|
group: "Topic forms",
|
|
1043
1071
|
method: "DELETE",
|
|
1044
1072
|
idempotent: false,
|
|
1045
1073
|
paginated: false
|
|
1046
1074
|
};
|
|
1047
|
-
const
|
|
1075
|
+
const operationMetadata146 = {
|
|
1048
1076
|
group: "Topic forms",
|
|
1049
1077
|
method: "PATCH",
|
|
1050
1078
|
idempotent: false,
|
|
1051
1079
|
paginated: false
|
|
1052
1080
|
};
|
|
1053
|
-
const
|
|
1054
|
-
group: "Topics",
|
|
1055
|
-
method: "GET",
|
|
1056
|
-
idempotent: false,
|
|
1057
|
-
paginated: true
|
|
1058
|
-
};
|
|
1059
|
-
const operationMetadata144 = {
|
|
1081
|
+
const operationMetadata147 = {
|
|
1060
1082
|
group: "Webhooks",
|
|
1061
1083
|
method: "GET",
|
|
1062
1084
|
idempotent: false,
|
|
1063
1085
|
paginated: true
|
|
1064
1086
|
};
|
|
1065
|
-
const
|
|
1087
|
+
const operationMetadata148 = {
|
|
1066
1088
|
group: "Webhooks",
|
|
1067
1089
|
method: "POST",
|
|
1068
1090
|
idempotent: false,
|
|
1069
1091
|
paginated: false
|
|
1070
1092
|
};
|
|
1071
|
-
const
|
|
1093
|
+
const operationMetadata149 = {
|
|
1072
1094
|
group: "Webhooks",
|
|
1073
1095
|
method: "GET",
|
|
1074
1096
|
idempotent: false,
|
|
1075
1097
|
paginated: false
|
|
1076
1098
|
};
|
|
1077
|
-
const
|
|
1099
|
+
const operationMetadata150 = {
|
|
1078
1100
|
group: "Webhooks",
|
|
1079
1101
|
method: "DELETE",
|
|
1080
1102
|
idempotent: false,
|
|
1081
1103
|
paginated: false
|
|
1082
1104
|
};
|
|
1083
|
-
const
|
|
1105
|
+
const operationMetadata151 = {
|
|
1084
1106
|
group: "Webhooks",
|
|
1085
1107
|
method: "PATCH",
|
|
1086
1108
|
idempotent: false,
|
|
1087
1109
|
paginated: false
|
|
1088
1110
|
};
|
|
1089
|
-
const
|
|
1111
|
+
const operationMetadata152 = {
|
|
1090
1112
|
group: "WhatsApp",
|
|
1091
1113
|
method: "GET",
|
|
1092
1114
|
idempotent: false,
|
|
1093
1115
|
paginated: true
|
|
1094
1116
|
};
|
|
1095
|
-
const
|
|
1117
|
+
const operationMetadata153 = {
|
|
1096
1118
|
group: "WhatsApp",
|
|
1097
1119
|
method: "POST",
|
|
1098
1120
|
idempotent: false,
|
|
1099
1121
|
paginated: false
|
|
1100
1122
|
};
|
|
1101
|
-
const
|
|
1123
|
+
const operationMetadata154 = {
|
|
1102
1124
|
group: "WhatsApp",
|
|
1103
1125
|
method: "GET",
|
|
1104
1126
|
idempotent: false,
|
|
1105
1127
|
paginated: false
|
|
1106
1128
|
};
|
|
1107
|
-
const
|
|
1129
|
+
const operationMetadata155 = {
|
|
1108
1130
|
group: "WhatsApp",
|
|
1109
1131
|
method: "DELETE",
|
|
1110
1132
|
idempotent: false,
|
|
1111
1133
|
paginated: false
|
|
1112
1134
|
};
|
|
1113
|
-
const
|
|
1135
|
+
const operationMetadata156 = {
|
|
1114
1136
|
group: "WhatsApp",
|
|
1115
1137
|
method: "PATCH",
|
|
1116
1138
|
idempotent: false,
|
|
1117
1139
|
paginated: false
|
|
1118
1140
|
};
|
|
1119
|
-
const
|
|
1141
|
+
const operationMetadata157 = {
|
|
1120
1142
|
group: "WhatsApp flows",
|
|
1121
1143
|
method: "GET",
|
|
1122
1144
|
idempotent: false,
|
|
1123
1145
|
paginated: false
|
|
1124
1146
|
};
|
|
1125
|
-
const
|
|
1147
|
+
const operationMetadata158 = {
|
|
1126
1148
|
group: "WhatsApp flows",
|
|
1127
1149
|
method: "POST",
|
|
1128
1150
|
idempotent: false,
|
|
1129
1151
|
paginated: false
|
|
1130
1152
|
};
|
|
1131
|
-
const
|
|
1153
|
+
const operationMetadata159 = {
|
|
1132
1154
|
group: "WhatsApp flows",
|
|
1133
1155
|
method: "PUT",
|
|
1134
1156
|
idempotent: false,
|
|
1135
1157
|
paginated: false
|
|
1136
1158
|
};
|
|
1137
|
-
const
|
|
1159
|
+
const operationMetadata160 = {
|
|
1138
1160
|
group: "WhatsApp setup links",
|
|
1139
1161
|
method: "GET",
|
|
1140
1162
|
idempotent: false,
|
|
1141
1163
|
paginated: true
|
|
1142
1164
|
};
|
|
1143
|
-
const
|
|
1165
|
+
const operationMetadata161 = {
|
|
1144
1166
|
group: "WhatsApp setup links",
|
|
1145
1167
|
method: "POST",
|
|
1146
1168
|
idempotent: false,
|
|
@@ -1513,111 +1535,117 @@ const SamvaOperations = {
|
|
|
1513
1535
|
organizationsListPersonalMailboxAssignments: operationMetadata114,
|
|
1514
1536
|
organizationsGetTrustTier: operationMetadata114,
|
|
1515
1537
|
organizationsGetUsage: operationMetadata114,
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1538
|
+
phoneNumbersListPhoneNumbers: operationMetadata117,
|
|
1539
|
+
phoneNumbersPurchaseNumber: operationMetadata118,
|
|
1540
|
+
phoneNumbersGetPhoneNumber: operationMetadata117,
|
|
1541
|
+
phoneNumbersReleasePhoneNumber: operationMetadata119,
|
|
1542
|
+
phoneNumbersSearchAvailableNumbers: operationMetadata117,
|
|
1543
|
+
policiesGetPolicy: operationMetadata120,
|
|
1544
|
+
policiesSetPolicy: operationMetadata121,
|
|
1545
|
+
policiesDeletePolicy: operationMetadata122,
|
|
1546
|
+
subscriptionsSubscribe: operationMetadata123,
|
|
1547
|
+
templateShareLinksGet: operationMetadata124,
|
|
1548
|
+
templateShareLinksCreate: operationMetadata125,
|
|
1549
|
+
templateShareLinksDelete: operationMetadata126,
|
|
1550
|
+
templateShareLinksRename: operationMetadata127,
|
|
1551
|
+
templateShareLinksUpdate: operationMetadata125,
|
|
1552
|
+
templatesList: operationMetadata128,
|
|
1553
|
+
templatesCreate: operationMetadata129,
|
|
1554
|
+
templatesGetById: operationMetadata130,
|
|
1555
|
+
templatesDelete: operationMetadata131,
|
|
1556
|
+
templatesUpdate: operationMetadata132,
|
|
1557
|
+
templatesListInputContracts: operationMetadata128,
|
|
1558
|
+
templatesGetInputContract: operationMetadata130,
|
|
1559
|
+
templatesPublish: operationMetadata133,
|
|
1560
|
+
templatesGetPublication: operationMetadata130,
|
|
1561
|
+
templatesRenderPublication: operationMetadata133,
|
|
1562
|
+
templateRegistrationsList: operationMetadata134,
|
|
1563
|
+
templateRegistrationsSubmit: operationMetadata135,
|
|
1564
|
+
templateRegistrationsGet: operationMetadata134,
|
|
1565
|
+
templatesGetGitRepository: operationMetadata130,
|
|
1566
|
+
templatesIssueGitCredential: operationMetadata133,
|
|
1567
|
+
templatesOpenWorkspace: operationMetadata133,
|
|
1568
|
+
templatesPatchWorkspace: operationMetadata136,
|
|
1569
|
+
templatesPutWorkspaceAsset: operationMetadata137,
|
|
1570
|
+
templatesCheckWorkspace: operationMetadata133,
|
|
1571
|
+
templatesResolveWorkspaceConflict: operationMetadata129,
|
|
1572
|
+
templatesDiffWorkspace: operationMetadata133,
|
|
1573
|
+
templatesRenderWorkspaceFixture: operationMetadata133,
|
|
1574
|
+
templatesWorkspaceHistory: operationMetadata130,
|
|
1575
|
+
templatesAttachWorkspaceResource: operationMetadata129,
|
|
1576
|
+
templatesRemoveWorkspaceResource: operationMetadata129,
|
|
1577
|
+
templatesRestoreWorkspace: operationMetadata129,
|
|
1578
|
+
templatesSaveWorkspace: operationMetadata129,
|
|
1579
|
+
templatesListFamilies: operationMetadata128,
|
|
1580
|
+
templatesCreateFamily: operationMetadata133,
|
|
1581
|
+
templatesGetFamily: operationMetadata130,
|
|
1582
|
+
templatesDeleteFamily: operationMetadata131,
|
|
1583
|
+
templatesRenameFamily: operationMetadata132,
|
|
1584
|
+
templatesAttachFamilyMember: operationMetadata133,
|
|
1585
|
+
templatesDetachFamilyMember: operationMetadata131,
|
|
1586
|
+
templatesCreateFamilyFromTemplate: operationMetadata133,
|
|
1587
|
+
templatesCreateFromBrief: operationMetadata129,
|
|
1588
|
+
templatesCreateFromWebsite: operationMetadata129,
|
|
1589
|
+
templatesDeleteProject: operationMetadata131,
|
|
1590
|
+
templatesAddEntry: operationMetadata133,
|
|
1591
|
+
templatesSuggestStarters: operationMetadata133,
|
|
1592
|
+
topicsList: operationMetadata138,
|
|
1593
|
+
topicsCreate: operationMetadata139,
|
|
1594
|
+
topicsGet: operationMetadata140,
|
|
1595
|
+
topicsRemove: operationMetadata141,
|
|
1596
|
+
topicsUpdate: operationMetadata142,
|
|
1597
|
+
topicsSetDefault: operationMetadata139,
|
|
1598
|
+
topicFormsList: operationMetadata143,
|
|
1599
|
+
topicFormsCreate: operationMetadata144,
|
|
1600
|
+
topicFormsGet: operationMetadata143,
|
|
1601
|
+
topicFormsRemove: operationMetadata145,
|
|
1602
|
+
topicFormsUpdate: operationMetadata146,
|
|
1603
|
+
topicsListSubscriptions: operationMetadata138,
|
|
1604
|
+
topicsSetSubscriptions: operationMetadata139,
|
|
1605
|
+
topicsCheckSubscription: operationMetadata140,
|
|
1606
|
+
webhooksList: operationMetadata147,
|
|
1607
|
+
webhooksCreate: operationMetadata148,
|
|
1608
|
+
webhooksGet: operationMetadata149,
|
|
1609
|
+
webhooksRemove: operationMetadata150,
|
|
1610
|
+
webhooksUpdate: operationMetadata151,
|
|
1611
|
+
webhooksRetryDelivery: operationMetadata148,
|
|
1612
|
+
webhooksGetLogs: operationMetadata147,
|
|
1613
|
+
webhooksRegenerateSecret: operationMetadata148,
|
|
1614
|
+
webhooksGetSecret: operationMetadata149,
|
|
1615
|
+
webhooksGetStats: operationMetadata149,
|
|
1616
|
+
webhooksTest: operationMetadata148,
|
|
1617
|
+
whatsappListBusinessAccounts: operationMetadata152,
|
|
1618
|
+
whatsappConnectBusinessAccount: operationMetadata153,
|
|
1619
|
+
whatsappGetBusinessAccount: operationMetadata154,
|
|
1620
|
+
whatsappDisconnectBusinessAccount: operationMetadata155,
|
|
1621
|
+
whatsappUpdateBusinessAccount: operationMetadata156,
|
|
1622
|
+
whatsappReleaseBusinessAccount: operationMetadata153,
|
|
1623
|
+
whatsappSetDefaultBusinessAccount: operationMetadata153,
|
|
1624
|
+
whatsappSyncAccountStatus: operationMetadata153,
|
|
1625
|
+
whatsappFlowsList: operationMetadata157,
|
|
1626
|
+
whatsappFlowsCreate: operationMetadata158,
|
|
1627
|
+
whatsappFlowsGet: operationMetadata157,
|
|
1628
|
+
whatsappFlowsSetEndpoint: operationMetadata159,
|
|
1629
|
+
whatsappFlowsRotateEndpointSecret: operationMetadata158,
|
|
1630
|
+
whatsappFlowsListRegistrations: operationMetadata157,
|
|
1631
|
+
whatsappFlowsRegister: operationMetadata158,
|
|
1632
|
+
whatsappFlowsListVersions: operationMetadata157,
|
|
1633
|
+
whatsappFlowsRecordVersion: operationMetadata158,
|
|
1634
|
+
whatsappFlowsRotateEncryptionKey: operationMetadata158,
|
|
1635
|
+
whatsappGetMediaDownloadUrl: operationMetadata154,
|
|
1636
|
+
whatsappGetServiceWindowBilling: operationMetadata154,
|
|
1637
|
+
whatsappGetServiceWindowStatus: operationMetadata154,
|
|
1638
|
+
whatsappSetupLinksList: operationMetadata160,
|
|
1639
|
+
whatsappSetupLinksCreate: operationMetadata161,
|
|
1612
1640
|
whatsappSetupLinksGet: {
|
|
1613
1641
|
group: "WhatsApp setup links",
|
|
1614
1642
|
method: "GET",
|
|
1615
1643
|
idempotent: false,
|
|
1616
1644
|
paginated: false
|
|
1617
1645
|
},
|
|
1618
|
-
whatsappSetupLinksRevoke:
|
|
1619
|
-
whatsappGetStats:
|
|
1620
|
-
whatsappGetTemplateStats:
|
|
1646
|
+
whatsappSetupLinksRevoke: operationMetadata161,
|
|
1647
|
+
whatsappGetStats: operationMetadata154,
|
|
1648
|
+
whatsappGetTemplateStats: operationMetadata154,
|
|
1621
1649
|
whoamiGet: {
|
|
1622
1650
|
group: "Whoami",
|
|
1623
1651
|
method: "GET",
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export { type ErrorCategory, categoriesOf, hasCategory, isAuthError, isValidatio
|
|
|
58
58
|
export type { CursorPageEnvelope } from "./pagination.js";
|
|
59
59
|
export type { Json as JsonValue } from "effect/Schema";
|
|
60
60
|
export * as Newsletters from "./newsletters.js";
|
|
61
|
+
export * as PhoneNumbers from "./phone-numbers.js";
|
|
61
62
|
export * as WhatsApp from "./whatsapp.js";
|
|
62
63
|
export * as WhatsAppFlows from "./whatsapp-flows.js";
|
|
63
64
|
export * as WhatsAppSetupLinks from "./whatsapp-setup-links.js";
|
package/dist/effect/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError } from "./generated/shared.js";
|
|
3
|
-
import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
|
|
4
|
-
import { retry_exports } from "./retry.js";
|
|
5
|
-
import { SamvaTimeoutError } from "./internal/timeout.js";
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, PhoneNumberProvisioningError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError } from "./generated/shared.js";
|
|
6
3
|
import { accounts_exports } from "./accounts.js";
|
|
7
4
|
import { integrations_catalog_exports } from "./integrations-catalog.js";
|
|
5
|
+
import { SamvaTimeoutError } from "./internal/timeout.js";
|
|
8
6
|
import { integrations_exports } from "./integrations.js";
|
|
9
7
|
import { agents_exports } from "./agents.js";
|
|
10
8
|
import { analytics_exports } from "./analytics.js";
|
|
@@ -31,6 +29,7 @@ import { operations_exports } from "./operations.js";
|
|
|
31
29
|
import { organizations_exports } from "./organizations.js";
|
|
32
30
|
import { policies_exports } from "./policies.js";
|
|
33
31
|
import { newsletter_domains_exports } from "./newsletter-domains.js";
|
|
32
|
+
import { retry_exports } from "./retry.js";
|
|
34
33
|
import { scheduled_messages_exports } from "./scheduled-messages.js";
|
|
35
34
|
import { subscriptions_exports } from "./subscriptions.js";
|
|
36
35
|
import { templates_exports } from "./templates.js";
|
|
@@ -39,10 +38,12 @@ import { topic_forms_exports } from "./topic-forms.js";
|
|
|
39
38
|
import { newsletter_issues_exports } from "./newsletter-issues.js";
|
|
40
39
|
import { webhooks_exports } from "./webhooks.js";
|
|
41
40
|
import { whoami_exports } from "./whoami.js";
|
|
41
|
+
import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
|
|
42
42
|
import { newsletters_exports } from "./newsletters.js";
|
|
43
|
+
import { phone_numbers_exports } from "./phone-numbers.js";
|
|
43
44
|
import { whatsapp_exports } from "./whatsapp.js";
|
|
44
45
|
import { whatsapp_flows_exports } from "./whatsapp-flows.js";
|
|
45
46
|
import { whatsapp_setup_links_exports } from "./whatsapp-setup-links.js";
|
|
46
47
|
import { template_registrations_exports } from "./template-registrations.js";
|
|
47
48
|
import { template_share_links_exports } from "./template-share-links.js";
|
|
48
|
-
export { accounts_exports as Accounts, agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, approval_requests_exports as ApprovalRequests, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, CredentialsError, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, integrations_catalog_exports as IntegrationCatalog, integrations_exports as Integrations, InternalError, journeys_exports as Journeys, logs_exports as Logs, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, MalformedRequestError, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, newsletter_domains_exports as NewsletterDomains, newsletter_issues_exports as NewsletterIssues, newsletters_exports as Newsletters, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, policies_exports as Policies, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, SamvaTimeoutError, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, ServiceUnavailableError, subscriptions_exports as Subscriptions, TemplateInUseError, template_registrations_exports as TemplateRegistrations, template_share_links_exports as TemplateShareLinks, TemplateSourceError, templates_exports as Templates, topic_forms_exports as TopicForms, topics_exports as Topics, UnauthorizedError, ValidationError, webhooks_exports as Webhooks, whatsapp_exports as WhatsApp, WhatsAppChannelError, whatsapp_flows_exports as WhatsAppFlows, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, whatsapp_setup_links_exports as WhatsAppSetupLinks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
49
|
+
export { accounts_exports as Accounts, agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, approval_requests_exports as ApprovalRequests, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, CredentialsError, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, integrations_catalog_exports as IntegrationCatalog, integrations_exports as Integrations, InternalError, journeys_exports as Journeys, logs_exports as Logs, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, MalformedRequestError, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, newsletter_domains_exports as NewsletterDomains, newsletter_issues_exports as NewsletterIssues, newsletters_exports as Newsletters, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, PhoneNumberProvisioningError, phone_numbers_exports as PhoneNumbers, policies_exports as Policies, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, SamvaTimeoutError, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, ServiceUnavailableError, subscriptions_exports as Subscriptions, TemplateInUseError, template_registrations_exports as TemplateRegistrations, template_share_links_exports as TemplateShareLinks, TemplateSourceError, templates_exports as Templates, topic_forms_exports as TopicForms, topics_exports as Topics, UnauthorizedError, ValidationError, webhooks_exports as Webhooks, whatsapp_exports as WhatsApp, WhatsAppChannelError, whatsapp_flows_exports as WhatsAppFlows, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, whatsapp_setup_links_exports as WhatsAppSetupLinks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { integrationCatalogOperations } from "./descriptors/integrations-catalog.js";
|
|
4
3
|
import { IntegrationsCatalogGroup } from "./generated/integrations-catalog.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/integrations-catalog.ts
|
|
6
6
|
var integrations_catalog_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
list: () => list,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { integrationsOperations } from "./descriptors/integrations.js";
|
|
4
3
|
import { IntegrationsGroup } from "./generated/integrations.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/integrations.ts
|
|
6
6
|
var integrations_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
get: () => get,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CLIENT_ATTRIBUTION_HEADER, clientAttribution } from "../../client-attribution.js";
|
|
2
|
-
import { DEFAULT_UPLOAD_TIMEOUT_MS, resolveTimeout, validateTimeout } from "../../request-policy.js";
|
|
3
|
-
import { samvaRequestId, withRequestIdMessage } from "../../request-id.js";
|
|
4
|
-
import { MediaUploadError, uploadContentType } from "../../inline-attachments.js";
|
|
5
|
-
import { ApiKeySecurityMiddleware } from "../generated/shared.js";
|
|
6
|
-
import { withTimeout } from "./timeout.js";
|
|
7
1
|
import { Context, Effect, Layer, Predicate, Redacted } from "effect";
|
|
8
2
|
import { HttpApi, HttpApiClient, HttpApiMiddleware } from "effect/http-api";
|
|
9
3
|
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
10
4
|
import * as HttpClient from "effect/http/HttpClient";
|
|
11
5
|
import * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
6
|
+
import { CLIENT_ATTRIBUTION_HEADER, clientAttribution } from "../../client-attribution.js";
|
|
7
|
+
import { MediaUploadError, uploadContentType } from "../../inline-attachments.js";
|
|
8
|
+
import { samvaRequestId, withRequestIdMessage } from "../../request-id.js";
|
|
9
|
+
import { DEFAULT_UPLOAD_TIMEOUT_MS, resolveTimeout, validateTimeout } from "../../request-policy.js";
|
|
10
|
+
import { ApiKeySecurityMiddleware } from "../generated/shared.js";
|
|
11
|
+
import { withTimeout } from "./timeout.js";
|
|
12
12
|
// src/effect/internal/client.ts
|
|
13
13
|
const DEFAULT_BASE_URL = "https://api.samva.dev";
|
|
14
14
|
var Service = class extends Context.Service()("samva/Client") {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
1
2
|
import { replyToEmailsPayload } from "../../normalize.js";
|
|
3
|
+
import { EmailGroup } from "../generated/email.js";
|
|
2
4
|
import { generateIdempotencyKey, withRetry } from "../retry.js";
|
|
3
|
-
import { withTimeout } from "./timeout.js";
|
|
4
5
|
import { Service } from "./client.js";
|
|
5
6
|
import { attemptTimeout, callEndpoint, stripUndefined } from "./operation.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Effect } from "effect";
|
|
7
|
+
import { withTimeout } from "./timeout.js";
|
|
8
8
|
// src/effect/internal/email-sender.ts
|
|
9
9
|
const addEmailSender = Effect.fn("Email.addSender")(function* (input, options) {
|
|
10
10
|
const client = yield* Service;
|