samva 0.35.0 → 0.37.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 +17 -0
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +102 -82
- package/dist/client/sdk.gen.js +322 -244
- package/dist/client/types.gen.d.ts +600 -378
- package/dist/effect/agents.d.ts +194 -4
- package/dist/effect/agents.js +3 -1
- package/dist/effect/analytics.d.ts +6 -0
- package/dist/effect/api-keys.d.ts +3 -6
- package/dist/effect/campaigns.d.ts +216 -216
- package/dist/effect/conversations.d.ts +6 -0
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +53 -1
- package/dist/effect/generated/agents.d.ts +1803 -81
- package/dist/effect/generated/agents.js +92 -26
- package/dist/effect/generated/analytics.d.ts +19 -1
- package/dist/effect/generated/analytics.js +8 -2
- package/dist/effect/generated/api-keys.d.ts +4 -29
- package/dist/effect/generated/api-keys.js +5 -6
- package/dist/effect/generated/campaigns.d.ts +22 -0
- package/dist/effect/generated/campaigns.js +3 -1
- package/dist/effect/generated/conversations.d.ts +104 -3
- package/dist/effect/generated/conversations.js +12 -2
- package/dist/effect/generated/extension-installations.d.ts +845 -68
- package/dist/effect/generated/extension-installations.js +22 -26
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/mailboxes.d.ts +3423 -1446
- package/dist/effect/generated/mailboxes.js +226 -220
- package/dist/effect/generated/namespaces.d.ts +7 -31
- package/dist/effect/generated/namespaces.js +4 -4
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +45 -4
- package/dist/effect/generated/scheduled-messages.js +8 -3
- package/dist/effect/generated/shared.d.ts +893 -224
- package/dist/effect/generated/shared.js +194 -60
- package/dist/effect/generated/templates.d.ts +474 -668
- package/dist/effect/generated/templates.js +65 -45
- package/dist/effect/generated/webhooks.d.ts +22 -19
- package/dist/effect/generated/webhooks.js +10 -1
- package/dist/effect/generated/whoami.d.ts +0 -4
- package/dist/effect/generated-metadata.d.ts +36 -32
- package/dist/effect/generated-metadata.js +127 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/journeys.d.ts +146 -146
- package/dist/effect/mailboxes.d.ts +575 -129
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +6 -0
- package/dist/effect/templates.d.ts +6 -8
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +2 -2
- package/dist/effect/webhooks.d.ts +7 -4
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +18 -2
- package/dist/promises/errors.gen.js +335 -33
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +30 -28
- package/dist/service-map.js +219 -786
- package/package.json +6 -2
|
@@ -88,6 +88,10 @@ const SamvaErrorMetadata = {
|
|
|
88
88
|
categories: ["transient"],
|
|
89
89
|
retryable: true
|
|
90
90
|
},
|
|
91
|
+
TemplateInUseError: {
|
|
92
|
+
categories: ["conflict"],
|
|
93
|
+
retryable: false
|
|
94
|
+
},
|
|
91
95
|
TemplateSourceError: {
|
|
92
96
|
categories: ["validation"],
|
|
93
97
|
retryable: false
|
|
@@ -514,7 +518,7 @@ const operationMetadata66 = {
|
|
|
514
518
|
const operationMetadata67 = {
|
|
515
519
|
group: "Mailboxes",
|
|
516
520
|
method: "POST",
|
|
517
|
-
idempotent:
|
|
521
|
+
idempotent: true,
|
|
518
522
|
paginated: false
|
|
519
523
|
};
|
|
520
524
|
const operationMetadata68 = {
|
|
@@ -538,7 +542,7 @@ const operationMetadata70 = {
|
|
|
538
542
|
const operationMetadata71 = {
|
|
539
543
|
group: "Mailboxes",
|
|
540
544
|
method: "POST",
|
|
541
|
-
idempotent:
|
|
545
|
+
idempotent: false,
|
|
542
546
|
paginated: false
|
|
543
547
|
};
|
|
544
548
|
const operationMetadata72 = {
|
|
@@ -752,126 +756,144 @@ const operationMetadata106 = {
|
|
|
752
756
|
paginated: false
|
|
753
757
|
};
|
|
754
758
|
const operationMetadata107 = {
|
|
759
|
+
group: "Policies",
|
|
760
|
+
method: "GET",
|
|
761
|
+
idempotent: false,
|
|
762
|
+
paginated: false
|
|
763
|
+
};
|
|
764
|
+
const operationMetadata108 = {
|
|
765
|
+
group: "Policies",
|
|
766
|
+
method: "PUT",
|
|
767
|
+
idempotent: false,
|
|
768
|
+
paginated: false
|
|
769
|
+
};
|
|
770
|
+
const operationMetadata109 = {
|
|
771
|
+
group: "Policies",
|
|
772
|
+
method: "DELETE",
|
|
773
|
+
idempotent: false,
|
|
774
|
+
paginated: false
|
|
775
|
+
};
|
|
776
|
+
const operationMetadata110 = {
|
|
755
777
|
group: "Subscriptions",
|
|
756
778
|
method: "POST",
|
|
757
779
|
idempotent: false,
|
|
758
780
|
paginated: false
|
|
759
781
|
};
|
|
760
|
-
const
|
|
782
|
+
const operationMetadata111 = {
|
|
761
783
|
group: "Templates",
|
|
762
784
|
method: "GET",
|
|
763
785
|
idempotent: false,
|
|
764
786
|
paginated: true
|
|
765
787
|
};
|
|
766
|
-
const
|
|
788
|
+
const operationMetadata112 = {
|
|
767
789
|
group: "Templates",
|
|
768
790
|
method: "POST",
|
|
769
791
|
idempotent: true,
|
|
770
792
|
paginated: false
|
|
771
793
|
};
|
|
772
|
-
const
|
|
794
|
+
const operationMetadata113 = {
|
|
773
795
|
group: "Templates",
|
|
774
796
|
method: "GET",
|
|
775
797
|
idempotent: false,
|
|
776
798
|
paginated: false
|
|
777
799
|
};
|
|
778
|
-
const
|
|
800
|
+
const operationMetadata114 = {
|
|
779
801
|
group: "Templates",
|
|
780
802
|
method: "DELETE",
|
|
781
803
|
idempotent: false,
|
|
782
804
|
paginated: false
|
|
783
805
|
};
|
|
784
|
-
const
|
|
806
|
+
const operationMetadata115 = {
|
|
785
807
|
group: "Templates",
|
|
786
808
|
method: "PATCH",
|
|
787
809
|
idempotent: false,
|
|
788
810
|
paginated: false
|
|
789
811
|
};
|
|
790
|
-
const
|
|
812
|
+
const operationMetadata116 = {
|
|
791
813
|
group: "Templates",
|
|
792
814
|
method: "POST",
|
|
793
815
|
idempotent: false,
|
|
794
816
|
paginated: false
|
|
795
817
|
};
|
|
796
|
-
const
|
|
818
|
+
const operationMetadata117 = {
|
|
797
819
|
group: "Templates",
|
|
798
820
|
method: "PATCH",
|
|
799
821
|
idempotent: true,
|
|
800
822
|
paginated: false
|
|
801
823
|
};
|
|
802
|
-
const
|
|
824
|
+
const operationMetadata118 = {
|
|
803
825
|
group: "Templates",
|
|
804
826
|
method: "PUT",
|
|
805
827
|
idempotent: true,
|
|
806
828
|
paginated: false
|
|
807
829
|
};
|
|
808
|
-
const
|
|
830
|
+
const operationMetadata119 = {
|
|
809
831
|
group: "Topics",
|
|
810
832
|
method: "GET",
|
|
811
833
|
idempotent: false,
|
|
812
834
|
paginated: false
|
|
813
835
|
};
|
|
814
|
-
const
|
|
836
|
+
const operationMetadata120 = {
|
|
815
837
|
group: "Topics",
|
|
816
838
|
method: "POST",
|
|
817
839
|
idempotent: false,
|
|
818
840
|
paginated: false
|
|
819
841
|
};
|
|
820
|
-
const
|
|
842
|
+
const operationMetadata121 = {
|
|
821
843
|
group: "Topics",
|
|
822
844
|
method: "DELETE",
|
|
823
845
|
idempotent: false,
|
|
824
846
|
paginated: false
|
|
825
847
|
};
|
|
826
|
-
const
|
|
848
|
+
const operationMetadata122 = {
|
|
827
849
|
group: "Topics",
|
|
828
850
|
method: "PATCH",
|
|
829
851
|
idempotent: false,
|
|
830
852
|
paginated: false
|
|
831
853
|
};
|
|
832
|
-
const
|
|
854
|
+
const operationMetadata123 = {
|
|
833
855
|
group: "Topic forms",
|
|
834
856
|
method: "GET",
|
|
835
857
|
idempotent: false,
|
|
836
858
|
paginated: false
|
|
837
859
|
};
|
|
838
|
-
const
|
|
860
|
+
const operationMetadata124 = {
|
|
839
861
|
group: "Topic forms",
|
|
840
862
|
method: "POST",
|
|
841
863
|
idempotent: false,
|
|
842
864
|
paginated: false
|
|
843
865
|
};
|
|
844
|
-
const
|
|
866
|
+
const operationMetadata125 = {
|
|
845
867
|
group: "Topic forms",
|
|
846
868
|
method: "DELETE",
|
|
847
869
|
idempotent: false,
|
|
848
870
|
paginated: false
|
|
849
871
|
};
|
|
850
|
-
const
|
|
872
|
+
const operationMetadata126 = {
|
|
851
873
|
group: "Topic forms",
|
|
852
874
|
method: "PATCH",
|
|
853
875
|
idempotent: false,
|
|
854
876
|
paginated: false
|
|
855
877
|
};
|
|
856
|
-
const
|
|
878
|
+
const operationMetadata127 = {
|
|
857
879
|
group: "Topics",
|
|
858
880
|
method: "GET",
|
|
859
881
|
idempotent: false,
|
|
860
882
|
paginated: true
|
|
861
883
|
};
|
|
862
|
-
const
|
|
884
|
+
const operationMetadata128 = {
|
|
863
885
|
group: "Webhooks",
|
|
864
886
|
method: "GET",
|
|
865
887
|
idempotent: false,
|
|
866
888
|
paginated: true
|
|
867
889
|
};
|
|
868
|
-
const
|
|
890
|
+
const operationMetadata129 = {
|
|
869
891
|
group: "Webhooks",
|
|
870
892
|
method: "POST",
|
|
871
893
|
idempotent: false,
|
|
872
894
|
paginated: false
|
|
873
895
|
};
|
|
874
|
-
const
|
|
896
|
+
const operationMetadata130 = {
|
|
875
897
|
group: "Webhooks",
|
|
876
898
|
method: "GET",
|
|
877
899
|
idempotent: false,
|
|
@@ -886,6 +908,7 @@ const SamvaOperations = {
|
|
|
886
908
|
agentsContinueOnStandard: operationMetadata1,
|
|
887
909
|
agentsReplaceDraft: operationMetadata5,
|
|
888
910
|
agentsPublish: operationMetadata1,
|
|
911
|
+
agentsRerunTests: operationMetadata1,
|
|
889
912
|
agentsListVersions: operationMetadata0,
|
|
890
913
|
agentsGetVersion: operationMetadata2,
|
|
891
914
|
agentsListModels: operationMetadata2,
|
|
@@ -1078,57 +1101,52 @@ const SamvaOperations = {
|
|
|
1078
1101
|
mailboxesUpdate: operationMetadata70,
|
|
1079
1102
|
mailboxesListActions: operationMetadata66,
|
|
1080
1103
|
mailboxesGetAction: operationMetadata68,
|
|
1081
|
-
mailboxesApproveAction:
|
|
1082
|
-
mailboxesCancelAction:
|
|
1083
|
-
mailboxesDenyAction:
|
|
1084
|
-
mailboxesRetryAction:
|
|
1104
|
+
mailboxesApproveAction: operationMetadata71,
|
|
1105
|
+
mailboxesCancelAction: operationMetadata71,
|
|
1106
|
+
mailboxesDenyAction: operationMetadata71,
|
|
1107
|
+
mailboxesRetryAction: operationMetadata71,
|
|
1085
1108
|
mailboxesGetAgentActivity: operationMetadata68,
|
|
1086
1109
|
mailboxesListDrafts: operationMetadata66,
|
|
1087
|
-
mailboxesCreateDraft:
|
|
1110
|
+
mailboxesCreateDraft: operationMetadata71,
|
|
1088
1111
|
mailboxesGetDraft: operationMetadata68,
|
|
1089
1112
|
mailboxesDeleteDraft: operationMetadata69,
|
|
1090
1113
|
mailboxesUpdateDraft: operationMetadata70,
|
|
1091
|
-
mailboxesSendDraft:
|
|
1092
|
-
mailboxesCreateEndpoint:
|
|
1114
|
+
mailboxesSendDraft: operationMetadata67,
|
|
1115
|
+
mailboxesCreateEndpoint: operationMetadata71,
|
|
1093
1116
|
mailboxesRemoveEndpoint: operationMetadata69,
|
|
1094
1117
|
mailboxesUpdateEndpoint: operationMetadata70,
|
|
1095
1118
|
mailboxesListEvents: operationMetadata66,
|
|
1096
1119
|
mailboxesListFolders: operationMetadata68,
|
|
1097
1120
|
mailboxesListGrants: operationMetadata66,
|
|
1098
|
-
mailboxesCreateGrant:
|
|
1121
|
+
mailboxesCreateGrant: operationMetadata71,
|
|
1099
1122
|
mailboxesRevokeGrant: operationMetadata69,
|
|
1100
1123
|
mailboxesUpdateGrant: operationMetadata70,
|
|
1101
1124
|
mailboxesListLabels: operationMetadata68,
|
|
1102
|
-
mailboxesCreateLabel:
|
|
1125
|
+
mailboxesCreateLabel: operationMetadata71,
|
|
1103
1126
|
mailboxesDeleteLabel: operationMetadata69,
|
|
1104
1127
|
mailboxesUpdateLabel: operationMetadata70,
|
|
1105
|
-
mailboxesSendMessage:
|
|
1128
|
+
mailboxesSendMessage: operationMetadata67,
|
|
1106
1129
|
mailboxesGetMessage: operationMetadata68,
|
|
1107
1130
|
mailboxesGetMessageAttachment: operationMetadata68,
|
|
1108
|
-
mailboxesCopyMessageAttachment:
|
|
1109
|
-
mailboxesDiscardMessage:
|
|
1110
|
-
mailboxesForward:
|
|
1131
|
+
mailboxesCopyMessageAttachment: operationMetadata71,
|
|
1132
|
+
mailboxesDiscardMessage: operationMetadata71,
|
|
1133
|
+
mailboxesForward: operationMetadata67,
|
|
1111
1134
|
mailboxesGetMessageRaw: operationMetadata68,
|
|
1112
|
-
mailboxesReleaseMessage:
|
|
1113
|
-
mailboxesReply:
|
|
1114
|
-
mailboxesReplyAll:
|
|
1115
|
-
mailboxesPause:
|
|
1116
|
-
mailboxesListPolicies: operationMetadata68,
|
|
1117
|
-
mailboxesCreatePolicy: operationMetadata67,
|
|
1118
|
-
mailboxesGetPolicy: operationMetadata68,
|
|
1119
|
-
mailboxesDeletePolicy: operationMetadata69,
|
|
1120
|
-
mailboxesUpdatePolicy: operationMetadata70,
|
|
1135
|
+
mailboxesReleaseMessage: operationMetadata71,
|
|
1136
|
+
mailboxesReply: operationMetadata67,
|
|
1137
|
+
mailboxesReplyAll: operationMetadata67,
|
|
1138
|
+
mailboxesPause: operationMetadata71,
|
|
1121
1139
|
mailboxesListQuarantine: operationMetadata66,
|
|
1122
|
-
mailboxesResume:
|
|
1140
|
+
mailboxesResume: operationMetadata71,
|
|
1123
1141
|
mailboxesListThreads: operationMetadata66,
|
|
1124
1142
|
mailboxesGetThread: operationMetadata68,
|
|
1125
1143
|
mailboxesUpdateThread: operationMetadata70,
|
|
1126
1144
|
mailboxesGetThreadContent: operationMetadata66,
|
|
1127
|
-
mailboxesAddThreadLabels:
|
|
1145
|
+
mailboxesAddThreadLabels: operationMetadata71,
|
|
1128
1146
|
mailboxesRemoveThreadLabels: operationMetadata69,
|
|
1129
1147
|
mailboxesListThreadMessages: operationMetadata66,
|
|
1130
1148
|
mailboxesListThreadNotes: operationMetadata66,
|
|
1131
|
-
mailboxesCreateNote:
|
|
1149
|
+
mailboxesCreateNote: operationMetadata71,
|
|
1132
1150
|
mailboxesDeleteNote: operationMetadata69,
|
|
1133
1151
|
mailboxesUpdateNote: operationMetadata70,
|
|
1134
1152
|
mailboxesListOrganizationDrafts: operationMetadata66,
|
|
@@ -1196,58 +1214,62 @@ const SamvaOperations = {
|
|
|
1196
1214
|
organizationsListPersonalMailboxAssignments: operationMetadata104,
|
|
1197
1215
|
organizationsGetTrustTier: operationMetadata104,
|
|
1198
1216
|
organizationsGetUsage: operationMetadata104,
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1217
|
+
policiesGetPolicy: operationMetadata107,
|
|
1218
|
+
policiesSetPolicy: operationMetadata108,
|
|
1219
|
+
policiesDeletePolicy: operationMetadata109,
|
|
1220
|
+
subscriptionsSubscribe: operationMetadata110,
|
|
1221
|
+
templatesList: operationMetadata111,
|
|
1222
|
+
templatesCreate: operationMetadata112,
|
|
1223
|
+
templatesGetById: operationMetadata113,
|
|
1224
|
+
templatesDelete: operationMetadata114,
|
|
1225
|
+
templatesUpdate: operationMetadata115,
|
|
1226
|
+
templatesListInputContracts: operationMetadata111,
|
|
1227
|
+
templatesGetInputContract: operationMetadata113,
|
|
1228
|
+
templatesPublish: operationMetadata116,
|
|
1229
|
+
templatesGetPublication: operationMetadata113,
|
|
1230
|
+
templatesRenderPublication: operationMetadata116,
|
|
1231
|
+
templatesGetGitRepository: operationMetadata113,
|
|
1232
|
+
templatesIssueGitCredential: operationMetadata116,
|
|
1233
|
+
templatesOpenWorkspace: operationMetadata116,
|
|
1234
|
+
templatesPatchWorkspace: operationMetadata117,
|
|
1235
|
+
templatesPutWorkspaceAsset: operationMetadata118,
|
|
1236
|
+
templatesCheckWorkspace: operationMetadata116,
|
|
1237
|
+
templatesResolveWorkspaceConflict: operationMetadata112,
|
|
1238
|
+
templatesDiffWorkspace: operationMetadata116,
|
|
1239
|
+
templatesRenderWorkspaceFixture: operationMetadata116,
|
|
1240
|
+
templatesWorkspaceHistory: operationMetadata113,
|
|
1241
|
+
templatesAttachWorkspaceResource: operationMetadata112,
|
|
1242
|
+
templatesRemoveWorkspaceResource: operationMetadata112,
|
|
1243
|
+
templatesRestoreWorkspace: operationMetadata112,
|
|
1244
|
+
templatesSaveWorkspace: operationMetadata112,
|
|
1245
|
+
templatesListFamilies: operationMetadata111,
|
|
1246
|
+
templatesCreateFamily: operationMetadata116,
|
|
1247
|
+
templatesGetFamily: operationMetadata113,
|
|
1248
|
+
templatesDeleteFamily: operationMetadata114,
|
|
1249
|
+
templatesRenameFamily: operationMetadata115,
|
|
1250
|
+
templatesAttachFamilyMember: operationMetadata116,
|
|
1251
|
+
templatesDetachFamilyMember: operationMetadata114,
|
|
1252
|
+
templatesCreateFamilyFromTemplate: operationMetadata116,
|
|
1253
|
+
templatesCreateFromWebsite: operationMetadata112,
|
|
1254
|
+
templatesDeleteProject: operationMetadata114,
|
|
1255
|
+
templatesAddEntry: operationMetadata116,
|
|
1256
|
+
topicsList: operationMetadata119,
|
|
1257
|
+
topicsCreate: operationMetadata120,
|
|
1258
|
+
topicsGet: operationMetadata119,
|
|
1259
|
+
topicsRemove: operationMetadata121,
|
|
1260
|
+
topicsUpdate: operationMetadata122,
|
|
1261
|
+
topicsSetDefault: operationMetadata120,
|
|
1262
|
+
topicFormsList: operationMetadata123,
|
|
1263
|
+
topicFormsCreate: operationMetadata124,
|
|
1264
|
+
topicFormsGet: operationMetadata123,
|
|
1265
|
+
topicFormsRemove: operationMetadata125,
|
|
1266
|
+
topicFormsUpdate: operationMetadata126,
|
|
1267
|
+
topicsListSubscriptions: operationMetadata127,
|
|
1268
|
+
topicsSetSubscriptions: operationMetadata120,
|
|
1269
|
+
topicsCheckSubscription: operationMetadata119,
|
|
1270
|
+
webhooksList: operationMetadata128,
|
|
1271
|
+
webhooksCreate: operationMetadata129,
|
|
1272
|
+
webhooksGet: operationMetadata130,
|
|
1251
1273
|
webhooksRemove: {
|
|
1252
1274
|
group: "Webhooks",
|
|
1253
1275
|
method: "DELETE",
|
|
@@ -1260,12 +1282,12 @@ const SamvaOperations = {
|
|
|
1260
1282
|
idempotent: false,
|
|
1261
1283
|
paginated: false
|
|
1262
1284
|
},
|
|
1263
|
-
webhooksRetryDelivery:
|
|
1264
|
-
webhooksGetLogs:
|
|
1265
|
-
webhooksRegenerateSecret:
|
|
1266
|
-
webhooksGetSecret:
|
|
1267
|
-
webhooksGetStats:
|
|
1268
|
-
webhooksTest:
|
|
1285
|
+
webhooksRetryDelivery: operationMetadata129,
|
|
1286
|
+
webhooksGetLogs: operationMetadata128,
|
|
1287
|
+
webhooksRegenerateSecret: operationMetadata129,
|
|
1288
|
+
webhooksGetSecret: operationMetadata130,
|
|
1289
|
+
webhooksGetStats: operationMetadata130,
|
|
1290
|
+
webhooksTest: operationMetadata129,
|
|
1269
1291
|
whoamiGet: {
|
|
1270
1292
|
group: "Whoami",
|
|
1271
1293
|
method: "GET",
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * as Messages from "./messages";
|
|
|
39
39
|
export * as Namespaces from "./namespaces";
|
|
40
40
|
export * as Operations from "./operations";
|
|
41
41
|
export * as Organizations from "./organizations";
|
|
42
|
+
export * as Policies from "./policies";
|
|
42
43
|
export * as NewsletterDomains from "./newsletter-domains";
|
|
43
44
|
export * as Retry from "./retry";
|
|
44
45
|
export * as ScheduledMessages from "./scheduled-messages";
|
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError } from "./generated/shared.js";
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError } from "./generated/shared.js";
|
|
3
3
|
import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
|
|
4
4
|
import { retry_exports } from "./retry.js";
|
|
5
5
|
import { agents_exports } from "./agents.js";
|
|
@@ -25,6 +25,7 @@ import { messages_exports } from "./messages.js";
|
|
|
25
25
|
import { namespaces_exports } from "./namespaces.js";
|
|
26
26
|
import { operations_exports } from "./operations.js";
|
|
27
27
|
import { organizations_exports } from "./organizations.js";
|
|
28
|
+
import { policies_exports } from "./policies.js";
|
|
28
29
|
import { newsletter_domains_exports } from "./newsletter-domains.js";
|
|
29
30
|
import { scheduled_messages_exports } from "./scheduled-messages.js";
|
|
30
31
|
import { subscriptions_exports } from "./subscriptions.js";
|
|
@@ -35,4 +36,4 @@ import { newsletter_issues_exports } from "./newsletter-issues.js";
|
|
|
35
36
|
import { webhooks_exports } from "./webhooks.js";
|
|
36
37
|
import { whoami_exports } from "./whoami.js";
|
|
37
38
|
import { newsletters_exports } from "./newsletters.js";
|
|
38
|
-
export { agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, 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, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, 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, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, ServiceUnavailableError, subscriptions_exports as Subscriptions, TemplateSourceError, templates_exports as Templates, topic_forms_exports as TopicForms, topics_exports as Topics, UnauthorizedError, ValidationError, webhooks_exports as Webhooks, WhatsAppServiceWindowClosedError, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
39
|
+
export { agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, 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, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, 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, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, ServiceUnavailableError, subscriptions_exports as Subscriptions, TemplateInUseError, TemplateSourceError, templates_exports as Templates, topic_forms_exports as TopicForms, topics_exports as Topics, UnauthorizedError, ValidationError, webhooks_exports as Webhooks, WhatsAppServiceWindowClosedError, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -6,39 +6,12 @@ import { generateIdempotencyKey, withRetry } from "../retry.js";
|
|
|
6
6
|
import { Service } from "./client.js";
|
|
7
7
|
import { Effect, Predicate } from "effect";
|
|
8
8
|
// src/effect/internal/operation.ts
|
|
9
|
-
const MODULE_NAMES = {
|
|
10
|
-
agents: "Agents",
|
|
11
|
-
analytics: "Analytics",
|
|
12
|
-
apiKeys: "ApiKeys",
|
|
13
|
-
attachments: "Attachments",
|
|
14
|
-
brands: "Brands",
|
|
15
|
-
campaigns: "Campaigns",
|
|
16
|
-
contactGroups: "ContactGroups",
|
|
17
|
-
contacts: "Contacts",
|
|
18
|
-
conversations: "Conversations",
|
|
19
|
-
customFields: "CustomFields",
|
|
20
|
-
email: "Email",
|
|
21
|
-
extensions: "Extensions",
|
|
22
|
-
feedback: "Feedback",
|
|
23
|
-
mailboxes: "Mailboxes",
|
|
24
|
-
media: "Media",
|
|
25
|
-
messages: "Messages",
|
|
26
|
-
namespaces: "Namespaces",
|
|
27
|
-
operations: "Operations",
|
|
28
|
-
organizations: "Organizations",
|
|
29
|
-
scheduledMessages: "ScheduledMessages",
|
|
30
|
-
templates: "Templates",
|
|
31
|
-
topics: "Topics",
|
|
32
|
-
webhooks: "Webhooks",
|
|
33
|
-
whoami: "Whoami"
|
|
34
|
-
};
|
|
35
9
|
const traceName = (operationName) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
return `Samva.${operationName}`;
|
|
10
|
+
const moduleName = SamvaOperations[operationName].group.split(" ").map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase()).join("");
|
|
11
|
+
const prefix = moduleName[0].toLowerCase() + moduleName.slice(1);
|
|
12
|
+
if (!operationName.startsWith(prefix)) return `Samva.${operationName}`;
|
|
13
|
+
const method = operationName.slice(prefix.length);
|
|
14
|
+
return `${moduleName}.${method[0].toLowerCase()}${method.slice(1)}`;
|
|
42
15
|
};
|
|
43
16
|
const stripUndefined = (input) => {
|
|
44
17
|
if (!Predicate.isObject(input)) return input;
|