samva 0.34.0 → 0.36.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 +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- 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 +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
|
@@ -59,6 +59,10 @@ export declare const SamvaErrorMetadata: {
|
|
|
59
59
|
readonly categories: readonly [];
|
|
60
60
|
readonly retryable: false;
|
|
61
61
|
};
|
|
62
|
+
readonly MalformedRequestError: {
|
|
63
|
+
readonly categories: readonly ["validation"];
|
|
64
|
+
readonly retryable: false;
|
|
65
|
+
};
|
|
62
66
|
readonly OnboardingReviewRequiredError: {
|
|
63
67
|
readonly categories: readonly ["validation"];
|
|
64
68
|
readonly retryable: false;
|
|
@@ -83,6 +87,10 @@ export declare const SamvaErrorMetadata: {
|
|
|
83
87
|
readonly categories: readonly ["transient"];
|
|
84
88
|
readonly retryable: true;
|
|
85
89
|
};
|
|
90
|
+
readonly TemplateInUseError: {
|
|
91
|
+
readonly categories: readonly ["conflict"];
|
|
92
|
+
readonly retryable: false;
|
|
93
|
+
};
|
|
86
94
|
readonly TemplateSourceError: {
|
|
87
95
|
readonly categories: readonly ["validation"];
|
|
88
96
|
readonly retryable: false;
|
|
@@ -95,6 +103,10 @@ export declare const SamvaErrorMetadata: {
|
|
|
95
103
|
readonly categories: readonly ["validation"];
|
|
96
104
|
readonly retryable: false;
|
|
97
105
|
};
|
|
106
|
+
readonly WhatsAppServiceWindowClosedError: {
|
|
107
|
+
readonly categories: readonly [];
|
|
108
|
+
readonly retryable: false;
|
|
109
|
+
};
|
|
98
110
|
};
|
|
99
111
|
export declare const SamvaOperations: {
|
|
100
112
|
readonly agentsList: {
|
|
@@ -127,6 +139,12 @@ export declare const SamvaOperations: {
|
|
|
127
139
|
readonly idempotent: false;
|
|
128
140
|
readonly paginated: false;
|
|
129
141
|
};
|
|
142
|
+
readonly agentsContinueOnStandard: {
|
|
143
|
+
readonly group: "Agents";
|
|
144
|
+
readonly method: "POST";
|
|
145
|
+
readonly idempotent: false;
|
|
146
|
+
readonly paginated: false;
|
|
147
|
+
};
|
|
130
148
|
readonly agentsReplaceDraft: {
|
|
131
149
|
readonly group: "Agents";
|
|
132
150
|
readonly method: "PUT";
|
|
@@ -139,6 +157,12 @@ export declare const SamvaOperations: {
|
|
|
139
157
|
readonly idempotent: false;
|
|
140
158
|
readonly paginated: false;
|
|
141
159
|
};
|
|
160
|
+
readonly agentsRerunTests: {
|
|
161
|
+
readonly group: "Agents";
|
|
162
|
+
readonly method: "POST";
|
|
163
|
+
readonly idempotent: false;
|
|
164
|
+
readonly paginated: false;
|
|
165
|
+
};
|
|
142
166
|
readonly agentsListVersions: {
|
|
143
167
|
readonly group: "Agents";
|
|
144
168
|
readonly method: "GET";
|
|
@@ -151,6 +175,12 @@ export declare const SamvaOperations: {
|
|
|
151
175
|
readonly idempotent: false;
|
|
152
176
|
readonly paginated: false;
|
|
153
177
|
};
|
|
178
|
+
readonly agentsListModels: {
|
|
179
|
+
readonly group: "Agents";
|
|
180
|
+
readonly method: "GET";
|
|
181
|
+
readonly idempotent: false;
|
|
182
|
+
readonly paginated: false;
|
|
183
|
+
};
|
|
154
184
|
readonly analyticsGetChannelStats: {
|
|
155
185
|
readonly group: "Analytics";
|
|
156
186
|
readonly method: "GET";
|
|
@@ -1256,7 +1286,7 @@ export declare const SamvaOperations: {
|
|
|
1256
1286
|
readonly mailboxesCreate: {
|
|
1257
1287
|
readonly group: "Mailboxes";
|
|
1258
1288
|
readonly method: "POST";
|
|
1259
|
-
readonly idempotent:
|
|
1289
|
+
readonly idempotent: true;
|
|
1260
1290
|
readonly paginated: false;
|
|
1261
1291
|
};
|
|
1262
1292
|
readonly mailboxesGet: {
|
|
@@ -1499,36 +1529,6 @@ export declare const SamvaOperations: {
|
|
|
1499
1529
|
readonly idempotent: false;
|
|
1500
1530
|
readonly paginated: false;
|
|
1501
1531
|
};
|
|
1502
|
-
readonly mailboxesListPolicies: {
|
|
1503
|
-
readonly group: "Mailboxes";
|
|
1504
|
-
readonly method: "GET";
|
|
1505
|
-
readonly idempotent: false;
|
|
1506
|
-
readonly paginated: false;
|
|
1507
|
-
};
|
|
1508
|
-
readonly mailboxesCreatePolicy: {
|
|
1509
|
-
readonly group: "Mailboxes";
|
|
1510
|
-
readonly method: "POST";
|
|
1511
|
-
readonly idempotent: false;
|
|
1512
|
-
readonly paginated: false;
|
|
1513
|
-
};
|
|
1514
|
-
readonly mailboxesGetPolicy: {
|
|
1515
|
-
readonly group: "Mailboxes";
|
|
1516
|
-
readonly method: "GET";
|
|
1517
|
-
readonly idempotent: false;
|
|
1518
|
-
readonly paginated: false;
|
|
1519
|
-
};
|
|
1520
|
-
readonly mailboxesDeletePolicy: {
|
|
1521
|
-
readonly group: "Mailboxes";
|
|
1522
|
-
readonly method: "DELETE";
|
|
1523
|
-
readonly idempotent: false;
|
|
1524
|
-
readonly paginated: false;
|
|
1525
|
-
};
|
|
1526
|
-
readonly mailboxesUpdatePolicy: {
|
|
1527
|
-
readonly group: "Mailboxes";
|
|
1528
|
-
readonly method: "PATCH";
|
|
1529
|
-
readonly idempotent: false;
|
|
1530
|
-
readonly paginated: false;
|
|
1531
|
-
};
|
|
1532
1532
|
readonly mailboxesListQuarantine: {
|
|
1533
1533
|
readonly group: "Mailboxes";
|
|
1534
1534
|
readonly method: "GET";
|
|
@@ -1997,6 +1997,24 @@ export declare const SamvaOperations: {
|
|
|
1997
1997
|
readonly idempotent: false;
|
|
1998
1998
|
readonly paginated: false;
|
|
1999
1999
|
};
|
|
2000
|
+
readonly policiesGetPolicy: {
|
|
2001
|
+
readonly group: "Policies";
|
|
2002
|
+
readonly method: "GET";
|
|
2003
|
+
readonly idempotent: false;
|
|
2004
|
+
readonly paginated: false;
|
|
2005
|
+
};
|
|
2006
|
+
readonly policiesSetPolicy: {
|
|
2007
|
+
readonly group: "Policies";
|
|
2008
|
+
readonly method: "PUT";
|
|
2009
|
+
readonly idempotent: false;
|
|
2010
|
+
readonly paginated: false;
|
|
2011
|
+
};
|
|
2012
|
+
readonly policiesDeletePolicy: {
|
|
2013
|
+
readonly group: "Policies";
|
|
2014
|
+
readonly method: "DELETE";
|
|
2015
|
+
readonly idempotent: false;
|
|
2016
|
+
readonly paginated: false;
|
|
2017
|
+
};
|
|
2000
2018
|
readonly subscriptionsSubscribe: {
|
|
2001
2019
|
readonly group: "Subscriptions";
|
|
2002
2020
|
readonly method: "POST";
|
|
@@ -2021,7 +2039,7 @@ export declare const SamvaOperations: {
|
|
|
2021
2039
|
readonly idempotent: false;
|
|
2022
2040
|
readonly paginated: false;
|
|
2023
2041
|
};
|
|
2024
|
-
readonly
|
|
2042
|
+
readonly templatesDelete: {
|
|
2025
2043
|
readonly group: "Templates";
|
|
2026
2044
|
readonly method: "DELETE";
|
|
2027
2045
|
readonly idempotent: false;
|
|
@@ -2201,6 +2219,12 @@ export declare const SamvaOperations: {
|
|
|
2201
2219
|
readonly idempotent: true;
|
|
2202
2220
|
readonly paginated: false;
|
|
2203
2221
|
};
|
|
2222
|
+
readonly templatesDeleteProject: {
|
|
2223
|
+
readonly group: "Templates";
|
|
2224
|
+
readonly method: "DELETE";
|
|
2225
|
+
readonly idempotent: false;
|
|
2226
|
+
readonly paginated: false;
|
|
2227
|
+
};
|
|
2204
2228
|
readonly templatesAddEntry: {
|
|
2205
2229
|
readonly group: "Templates";
|
|
2206
2230
|
readonly method: "POST";
|
|
@@ -60,6 +60,10 @@ const SamvaErrorMetadata = {
|
|
|
60
60
|
categories: [],
|
|
61
61
|
retryable: false
|
|
62
62
|
},
|
|
63
|
+
MalformedRequestError: {
|
|
64
|
+
categories: ["validation"],
|
|
65
|
+
retryable: false
|
|
66
|
+
},
|
|
63
67
|
OnboardingReviewRequiredError: {
|
|
64
68
|
categories: ["validation"],
|
|
65
69
|
retryable: false
|
|
@@ -84,6 +88,10 @@ const SamvaErrorMetadata = {
|
|
|
84
88
|
categories: ["transient"],
|
|
85
89
|
retryable: true
|
|
86
90
|
},
|
|
91
|
+
TemplateInUseError: {
|
|
92
|
+
categories: ["conflict"],
|
|
93
|
+
retryable: false
|
|
94
|
+
},
|
|
87
95
|
TemplateSourceError: {
|
|
88
96
|
categories: ["validation"],
|
|
89
97
|
retryable: false
|
|
@@ -95,6 +103,10 @@ const SamvaErrorMetadata = {
|
|
|
95
103
|
ValidationError: {
|
|
96
104
|
categories: ["validation"],
|
|
97
105
|
retryable: false
|
|
106
|
+
},
|
|
107
|
+
WhatsAppServiceWindowClosedError: {
|
|
108
|
+
categories: [],
|
|
109
|
+
retryable: false
|
|
98
110
|
}
|
|
99
111
|
};
|
|
100
112
|
const operationMetadata0 = {
|
|
@@ -506,7 +518,7 @@ const operationMetadata66 = {
|
|
|
506
518
|
const operationMetadata67 = {
|
|
507
519
|
group: "Mailboxes",
|
|
508
520
|
method: "POST",
|
|
509
|
-
idempotent:
|
|
521
|
+
idempotent: true,
|
|
510
522
|
paginated: false
|
|
511
523
|
};
|
|
512
524
|
const operationMetadata68 = {
|
|
@@ -530,7 +542,7 @@ const operationMetadata70 = {
|
|
|
530
542
|
const operationMetadata71 = {
|
|
531
543
|
group: "Mailboxes",
|
|
532
544
|
method: "POST",
|
|
533
|
-
idempotent:
|
|
545
|
+
idempotent: false,
|
|
534
546
|
paginated: false
|
|
535
547
|
};
|
|
536
548
|
const operationMetadata72 = {
|
|
@@ -744,126 +756,144 @@ const operationMetadata106 = {
|
|
|
744
756
|
paginated: false
|
|
745
757
|
};
|
|
746
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 = {
|
|
747
777
|
group: "Subscriptions",
|
|
748
778
|
method: "POST",
|
|
749
779
|
idempotent: false,
|
|
750
780
|
paginated: false
|
|
751
781
|
};
|
|
752
|
-
const
|
|
782
|
+
const operationMetadata111 = {
|
|
753
783
|
group: "Templates",
|
|
754
784
|
method: "GET",
|
|
755
785
|
idempotent: false,
|
|
756
786
|
paginated: true
|
|
757
787
|
};
|
|
758
|
-
const
|
|
788
|
+
const operationMetadata112 = {
|
|
759
789
|
group: "Templates",
|
|
760
790
|
method: "POST",
|
|
761
791
|
idempotent: true,
|
|
762
792
|
paginated: false
|
|
763
793
|
};
|
|
764
|
-
const
|
|
794
|
+
const operationMetadata113 = {
|
|
765
795
|
group: "Templates",
|
|
766
796
|
method: "GET",
|
|
767
797
|
idempotent: false,
|
|
768
798
|
paginated: false
|
|
769
799
|
};
|
|
770
|
-
const
|
|
800
|
+
const operationMetadata114 = {
|
|
771
801
|
group: "Templates",
|
|
772
802
|
method: "DELETE",
|
|
773
803
|
idempotent: false,
|
|
774
804
|
paginated: false
|
|
775
805
|
};
|
|
776
|
-
const
|
|
806
|
+
const operationMetadata115 = {
|
|
777
807
|
group: "Templates",
|
|
778
808
|
method: "PATCH",
|
|
779
809
|
idempotent: false,
|
|
780
810
|
paginated: false
|
|
781
811
|
};
|
|
782
|
-
const
|
|
812
|
+
const operationMetadata116 = {
|
|
783
813
|
group: "Templates",
|
|
784
814
|
method: "POST",
|
|
785
815
|
idempotent: false,
|
|
786
816
|
paginated: false
|
|
787
817
|
};
|
|
788
|
-
const
|
|
818
|
+
const operationMetadata117 = {
|
|
789
819
|
group: "Templates",
|
|
790
820
|
method: "PATCH",
|
|
791
821
|
idempotent: true,
|
|
792
822
|
paginated: false
|
|
793
823
|
};
|
|
794
|
-
const
|
|
824
|
+
const operationMetadata118 = {
|
|
795
825
|
group: "Templates",
|
|
796
826
|
method: "PUT",
|
|
797
827
|
idempotent: true,
|
|
798
828
|
paginated: false
|
|
799
829
|
};
|
|
800
|
-
const
|
|
830
|
+
const operationMetadata119 = {
|
|
801
831
|
group: "Topics",
|
|
802
832
|
method: "GET",
|
|
803
833
|
idempotent: false,
|
|
804
834
|
paginated: false
|
|
805
835
|
};
|
|
806
|
-
const
|
|
836
|
+
const operationMetadata120 = {
|
|
807
837
|
group: "Topics",
|
|
808
838
|
method: "POST",
|
|
809
839
|
idempotent: false,
|
|
810
840
|
paginated: false
|
|
811
841
|
};
|
|
812
|
-
const
|
|
842
|
+
const operationMetadata121 = {
|
|
813
843
|
group: "Topics",
|
|
814
844
|
method: "DELETE",
|
|
815
845
|
idempotent: false,
|
|
816
846
|
paginated: false
|
|
817
847
|
};
|
|
818
|
-
const
|
|
848
|
+
const operationMetadata122 = {
|
|
819
849
|
group: "Topics",
|
|
820
850
|
method: "PATCH",
|
|
821
851
|
idempotent: false,
|
|
822
852
|
paginated: false
|
|
823
853
|
};
|
|
824
|
-
const
|
|
854
|
+
const operationMetadata123 = {
|
|
825
855
|
group: "Topic forms",
|
|
826
856
|
method: "GET",
|
|
827
857
|
idempotent: false,
|
|
828
858
|
paginated: false
|
|
829
859
|
};
|
|
830
|
-
const
|
|
860
|
+
const operationMetadata124 = {
|
|
831
861
|
group: "Topic forms",
|
|
832
862
|
method: "POST",
|
|
833
863
|
idempotent: false,
|
|
834
864
|
paginated: false
|
|
835
865
|
};
|
|
836
|
-
const
|
|
866
|
+
const operationMetadata125 = {
|
|
837
867
|
group: "Topic forms",
|
|
838
868
|
method: "DELETE",
|
|
839
869
|
idempotent: false,
|
|
840
870
|
paginated: false
|
|
841
871
|
};
|
|
842
|
-
const
|
|
872
|
+
const operationMetadata126 = {
|
|
843
873
|
group: "Topic forms",
|
|
844
874
|
method: "PATCH",
|
|
845
875
|
idempotent: false,
|
|
846
876
|
paginated: false
|
|
847
877
|
};
|
|
848
|
-
const
|
|
878
|
+
const operationMetadata127 = {
|
|
849
879
|
group: "Topics",
|
|
850
880
|
method: "GET",
|
|
851
881
|
idempotent: false,
|
|
852
882
|
paginated: true
|
|
853
883
|
};
|
|
854
|
-
const
|
|
884
|
+
const operationMetadata128 = {
|
|
855
885
|
group: "Webhooks",
|
|
856
886
|
method: "GET",
|
|
857
887
|
idempotent: false,
|
|
858
888
|
paginated: true
|
|
859
889
|
};
|
|
860
|
-
const
|
|
890
|
+
const operationMetadata129 = {
|
|
861
891
|
group: "Webhooks",
|
|
862
892
|
method: "POST",
|
|
863
893
|
idempotent: false,
|
|
864
894
|
paginated: false
|
|
865
895
|
};
|
|
866
|
-
const
|
|
896
|
+
const operationMetadata130 = {
|
|
867
897
|
group: "Webhooks",
|
|
868
898
|
method: "GET",
|
|
869
899
|
idempotent: false,
|
|
@@ -875,10 +905,13 @@ const SamvaOperations = {
|
|
|
875
905
|
agentsGet: operationMetadata2,
|
|
876
906
|
agentsRemove: operationMetadata3,
|
|
877
907
|
agentsUpdate: operationMetadata4,
|
|
908
|
+
agentsContinueOnStandard: operationMetadata1,
|
|
878
909
|
agentsReplaceDraft: operationMetadata5,
|
|
879
910
|
agentsPublish: operationMetadata1,
|
|
911
|
+
agentsRerunTests: operationMetadata1,
|
|
880
912
|
agentsListVersions: operationMetadata0,
|
|
881
913
|
agentsGetVersion: operationMetadata2,
|
|
914
|
+
agentsListModels: operationMetadata2,
|
|
882
915
|
analyticsGetChannelStats: operationMetadata6,
|
|
883
916
|
analyticsGetDeliveryMetrics: operationMetadata6,
|
|
884
917
|
analyticsExportData: operationMetadata7,
|
|
@@ -1068,57 +1101,52 @@ const SamvaOperations = {
|
|
|
1068
1101
|
mailboxesUpdate: operationMetadata70,
|
|
1069
1102
|
mailboxesListActions: operationMetadata66,
|
|
1070
1103
|
mailboxesGetAction: operationMetadata68,
|
|
1071
|
-
mailboxesApproveAction:
|
|
1072
|
-
mailboxesCancelAction:
|
|
1073
|
-
mailboxesDenyAction:
|
|
1074
|
-
mailboxesRetryAction:
|
|
1104
|
+
mailboxesApproveAction: operationMetadata71,
|
|
1105
|
+
mailboxesCancelAction: operationMetadata71,
|
|
1106
|
+
mailboxesDenyAction: operationMetadata71,
|
|
1107
|
+
mailboxesRetryAction: operationMetadata71,
|
|
1075
1108
|
mailboxesGetAgentActivity: operationMetadata68,
|
|
1076
1109
|
mailboxesListDrafts: operationMetadata66,
|
|
1077
|
-
mailboxesCreateDraft:
|
|
1110
|
+
mailboxesCreateDraft: operationMetadata71,
|
|
1078
1111
|
mailboxesGetDraft: operationMetadata68,
|
|
1079
1112
|
mailboxesDeleteDraft: operationMetadata69,
|
|
1080
1113
|
mailboxesUpdateDraft: operationMetadata70,
|
|
1081
|
-
mailboxesSendDraft:
|
|
1082
|
-
mailboxesCreateEndpoint:
|
|
1114
|
+
mailboxesSendDraft: operationMetadata67,
|
|
1115
|
+
mailboxesCreateEndpoint: operationMetadata71,
|
|
1083
1116
|
mailboxesRemoveEndpoint: operationMetadata69,
|
|
1084
1117
|
mailboxesUpdateEndpoint: operationMetadata70,
|
|
1085
1118
|
mailboxesListEvents: operationMetadata66,
|
|
1086
1119
|
mailboxesListFolders: operationMetadata68,
|
|
1087
1120
|
mailboxesListGrants: operationMetadata66,
|
|
1088
|
-
mailboxesCreateGrant:
|
|
1121
|
+
mailboxesCreateGrant: operationMetadata71,
|
|
1089
1122
|
mailboxesRevokeGrant: operationMetadata69,
|
|
1090
1123
|
mailboxesUpdateGrant: operationMetadata70,
|
|
1091
1124
|
mailboxesListLabels: operationMetadata68,
|
|
1092
|
-
mailboxesCreateLabel:
|
|
1125
|
+
mailboxesCreateLabel: operationMetadata71,
|
|
1093
1126
|
mailboxesDeleteLabel: operationMetadata69,
|
|
1094
1127
|
mailboxesUpdateLabel: operationMetadata70,
|
|
1095
|
-
mailboxesSendMessage:
|
|
1128
|
+
mailboxesSendMessage: operationMetadata67,
|
|
1096
1129
|
mailboxesGetMessage: operationMetadata68,
|
|
1097
1130
|
mailboxesGetMessageAttachment: operationMetadata68,
|
|
1098
|
-
mailboxesCopyMessageAttachment:
|
|
1099
|
-
mailboxesDiscardMessage:
|
|
1100
|
-
mailboxesForward:
|
|
1131
|
+
mailboxesCopyMessageAttachment: operationMetadata71,
|
|
1132
|
+
mailboxesDiscardMessage: operationMetadata71,
|
|
1133
|
+
mailboxesForward: operationMetadata67,
|
|
1101
1134
|
mailboxesGetMessageRaw: operationMetadata68,
|
|
1102
|
-
mailboxesReleaseMessage:
|
|
1103
|
-
mailboxesReply:
|
|
1104
|
-
mailboxesReplyAll:
|
|
1105
|
-
mailboxesPause:
|
|
1106
|
-
mailboxesListPolicies: operationMetadata68,
|
|
1107
|
-
mailboxesCreatePolicy: operationMetadata67,
|
|
1108
|
-
mailboxesGetPolicy: operationMetadata68,
|
|
1109
|
-
mailboxesDeletePolicy: operationMetadata69,
|
|
1110
|
-
mailboxesUpdatePolicy: operationMetadata70,
|
|
1135
|
+
mailboxesReleaseMessage: operationMetadata71,
|
|
1136
|
+
mailboxesReply: operationMetadata67,
|
|
1137
|
+
mailboxesReplyAll: operationMetadata67,
|
|
1138
|
+
mailboxesPause: operationMetadata71,
|
|
1111
1139
|
mailboxesListQuarantine: operationMetadata66,
|
|
1112
|
-
mailboxesResume:
|
|
1140
|
+
mailboxesResume: operationMetadata71,
|
|
1113
1141
|
mailboxesListThreads: operationMetadata66,
|
|
1114
1142
|
mailboxesGetThread: operationMetadata68,
|
|
1115
1143
|
mailboxesUpdateThread: operationMetadata70,
|
|
1116
1144
|
mailboxesGetThreadContent: operationMetadata66,
|
|
1117
|
-
mailboxesAddThreadLabels:
|
|
1145
|
+
mailboxesAddThreadLabels: operationMetadata71,
|
|
1118
1146
|
mailboxesRemoveThreadLabels: operationMetadata69,
|
|
1119
1147
|
mailboxesListThreadMessages: operationMetadata66,
|
|
1120
1148
|
mailboxesListThreadNotes: operationMetadata66,
|
|
1121
|
-
mailboxesCreateNote:
|
|
1149
|
+
mailboxesCreateNote: operationMetadata71,
|
|
1122
1150
|
mailboxesDeleteNote: operationMetadata69,
|
|
1123
1151
|
mailboxesUpdateNote: operationMetadata70,
|
|
1124
1152
|
mailboxesListOrganizationDrafts: operationMetadata66,
|
|
@@ -1186,58 +1214,62 @@ const SamvaOperations = {
|
|
|
1186
1214
|
organizationsListPersonalMailboxAssignments: operationMetadata104,
|
|
1187
1215
|
organizationsGetTrustTier: operationMetadata104,
|
|
1188
1216
|
organizationsGetUsage: operationMetadata104,
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
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
|
-
|
|
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,
|
|
1241
1273
|
webhooksRemove: {
|
|
1242
1274
|
group: "Webhooks",
|
|
1243
1275
|
method: "DELETE",
|
|
@@ -1250,12 +1282,12 @@ const SamvaOperations = {
|
|
|
1250
1282
|
idempotent: false,
|
|
1251
1283
|
paginated: false
|
|
1252
1284
|
},
|
|
1253
|
-
webhooksRetryDelivery:
|
|
1254
|
-
webhooksGetLogs:
|
|
1255
|
-
webhooksRegenerateSecret:
|
|
1256
|
-
webhooksGetSecret:
|
|
1257
|
-
webhooksGetStats:
|
|
1258
|
-
webhooksTest:
|
|
1285
|
+
webhooksRetryDelivery: operationMetadata129,
|
|
1286
|
+
webhooksGetLogs: operationMetadata128,
|
|
1287
|
+
webhooksRegenerateSecret: operationMetadata129,
|
|
1288
|
+
webhooksGetSecret: operationMetadata130,
|
|
1289
|
+
webhooksGetStats: operationMetadata130,
|
|
1290
|
+
webhooksTest: operationMetadata129,
|
|
1259
1291
|
whoamiGet: {
|
|
1260
1292
|
group: "Whoami",
|
|
1261
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, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError } 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, 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, 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 };
|
|
@@ -29,7 +29,7 @@ const make = (config) => Effect.gen(function* () {
|
|
|
29
29
|
const groupClient = (group) => {
|
|
30
30
|
const built = groups.get(group.identifier);
|
|
31
31
|
if (built !== void 0) return Effect.succeed(built);
|
|
32
|
-
return HttpApiClient.group(HttpApi.make("SamvaApi").add(group), {
|
|
32
|
+
return HttpApiClient.group(HttpApi.make("SamvaApi").add(group).annotate(HttpApi.PayloadParseOptions, { onExcessProperty: "error" }), {
|
|
33
33
|
group: group.identifier,
|
|
34
34
|
httpClient,
|
|
35
35
|
baseUrl
|
|
@@ -13,5 +13,5 @@ export declare const addEmailSender: (input: EmailAddSenderInput, options?: Send
|
|
|
13
13
|
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
14
14
|
readonly providerFailureCode: string | null;
|
|
15
15
|
readonly createdAt: string;
|
|
16
|
-
}, import("..").ConflictError | import("..").ExternalServiceError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
16
|
+
}, import("..").ConflictError | import("..").ExternalServiceError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").MalformedRequestError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
17
17
|
export {};
|