@fonderie/client 0.16.0 → 0.17.1
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/brain/signatures.md +1 -0
- package/dist/index.cjs +68 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +68 -68
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/brain/signatures.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -455,7 +455,7 @@ var BillingClient = class {
|
|
|
455
455
|
getPlan(planId, opts) {
|
|
456
456
|
return this.http.request({
|
|
457
457
|
method: "GET",
|
|
458
|
-
path: `/plans/${planId}`,
|
|
458
|
+
path: `/plans/${encodeURIComponent(planId)}`,
|
|
459
459
|
bust: opts?.bust
|
|
460
460
|
});
|
|
461
461
|
}
|
|
@@ -477,7 +477,7 @@ var BillingClient = class {
|
|
|
477
477
|
updatePlan(planId, input) {
|
|
478
478
|
return this.http.request({
|
|
479
479
|
method: "PUT",
|
|
480
|
-
path: `/plans/${planId}`,
|
|
480
|
+
path: `/plans/${encodeURIComponent(planId)}`,
|
|
481
481
|
body: input,
|
|
482
482
|
token: this.tokens.get()
|
|
483
483
|
});
|
|
@@ -485,7 +485,7 @@ var BillingClient = class {
|
|
|
485
485
|
deletePlan(planId) {
|
|
486
486
|
return this.http.request({
|
|
487
487
|
method: "DELETE",
|
|
488
|
-
path: `/plans/${planId}`,
|
|
488
|
+
path: `/plans/${encodeURIComponent(planId)}`,
|
|
489
489
|
token: this.tokens.get()
|
|
490
490
|
});
|
|
491
491
|
}
|
|
@@ -552,7 +552,7 @@ var BillingClient = class {
|
|
|
552
552
|
getUsage(metric, opts) {
|
|
553
553
|
return this.http.request({
|
|
554
554
|
method: "GET",
|
|
555
|
-
path: `/billing/usage/${metric}`,
|
|
555
|
+
path: `/billing/usage/${encodeURIComponent(metric)}`,
|
|
556
556
|
token: this.tokens.get(),
|
|
557
557
|
workspaceId: this.workspaceId,
|
|
558
558
|
bust: opts?.bust
|
|
@@ -722,7 +722,7 @@ var CustomersClient = class {
|
|
|
722
722
|
const qs = input.depth === 1 ? "?depth=1" : "";
|
|
723
723
|
return this.http.request({
|
|
724
724
|
method: "GET",
|
|
725
|
-
path: `/customers/${customerId}${qs}`,
|
|
725
|
+
path: `/customers/${encodeURIComponent(customerId)}${qs}`,
|
|
726
726
|
token: this.tokens.get(),
|
|
727
727
|
workspaceId: this.workspaceId,
|
|
728
728
|
bust: opts?.bust
|
|
@@ -731,7 +731,7 @@ var CustomersClient = class {
|
|
|
731
731
|
updateCustomer(customerId, input) {
|
|
732
732
|
return this.http.request({
|
|
733
733
|
method: "PUT",
|
|
734
|
-
path: `/customers/${customerId}`,
|
|
734
|
+
path: `/customers/${encodeURIComponent(customerId)}`,
|
|
735
735
|
body: input,
|
|
736
736
|
token: this.tokens.get(),
|
|
737
737
|
workspaceId: this.workspaceId
|
|
@@ -740,7 +740,7 @@ var CustomersClient = class {
|
|
|
740
740
|
deleteCustomer(customerId) {
|
|
741
741
|
return this.http.request({
|
|
742
742
|
method: "DELETE",
|
|
743
|
-
path: `/customers/${customerId}`,
|
|
743
|
+
path: `/customers/${encodeURIComponent(customerId)}`,
|
|
744
744
|
token: this.tokens.get(),
|
|
745
745
|
workspaceId: this.workspaceId
|
|
746
746
|
});
|
|
@@ -748,7 +748,7 @@ var CustomersClient = class {
|
|
|
748
748
|
blacklistCustomer(customerId, input = {}) {
|
|
749
749
|
return this.http.request({
|
|
750
750
|
method: "POST",
|
|
751
|
-
path: `/customers/${customerId}/blacklist`,
|
|
751
|
+
path: `/customers/${encodeURIComponent(customerId)}/blacklist`,
|
|
752
752
|
body: input,
|
|
753
753
|
token: this.tokens.get(),
|
|
754
754
|
workspaceId: this.workspaceId
|
|
@@ -757,7 +757,7 @@ var CustomersClient = class {
|
|
|
757
757
|
unblacklistCustomer(customerId) {
|
|
758
758
|
return this.http.request({
|
|
759
759
|
method: "POST",
|
|
760
|
-
path: `/customers/${customerId}/unblacklist`,
|
|
760
|
+
path: `/customers/${encodeURIComponent(customerId)}/unblacklist`,
|
|
761
761
|
token: this.tokens.get(),
|
|
762
762
|
workspaceId: this.workspaceId
|
|
763
763
|
});
|
|
@@ -766,7 +766,7 @@ var CustomersClient = class {
|
|
|
766
766
|
listEmails(customerId, opts) {
|
|
767
767
|
return this.http.request({
|
|
768
768
|
method: "GET",
|
|
769
|
-
path: `/customers/${customerId}/emails`,
|
|
769
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails`,
|
|
770
770
|
token: this.tokens.get(),
|
|
771
771
|
workspaceId: this.workspaceId,
|
|
772
772
|
bust: opts?.bust
|
|
@@ -775,7 +775,7 @@ var CustomersClient = class {
|
|
|
775
775
|
addEmail(customerId, input) {
|
|
776
776
|
return this.http.request({
|
|
777
777
|
method: "POST",
|
|
778
|
-
path: `/customers/${customerId}/emails`,
|
|
778
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails`,
|
|
779
779
|
body: input,
|
|
780
780
|
token: this.tokens.get(),
|
|
781
781
|
workspaceId: this.workspaceId
|
|
@@ -786,7 +786,7 @@ var CustomersClient = class {
|
|
|
786
786
|
updateEmailLabel(customerId, emailId, label) {
|
|
787
787
|
return this.http.request({
|
|
788
788
|
method: "PATCH",
|
|
789
|
-
path: `/customers/${customerId}/emails/${emailId}`,
|
|
789
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails/${encodeURIComponent(emailId)}`,
|
|
790
790
|
body: { label },
|
|
791
791
|
token: this.tokens.get(),
|
|
792
792
|
workspaceId: this.workspaceId
|
|
@@ -795,7 +795,7 @@ var CustomersClient = class {
|
|
|
795
795
|
setPrimaryEmail(customerId, emailId) {
|
|
796
796
|
return this.http.request({
|
|
797
797
|
method: "PUT",
|
|
798
|
-
path: `/customers/${customerId}/emails/${emailId}/primary`,
|
|
798
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails/${encodeURIComponent(emailId)}/primary`,
|
|
799
799
|
token: this.tokens.get(),
|
|
800
800
|
workspaceId: this.workspaceId
|
|
801
801
|
});
|
|
@@ -803,7 +803,7 @@ var CustomersClient = class {
|
|
|
803
803
|
removeEmail(customerId, emailId) {
|
|
804
804
|
return this.http.request({
|
|
805
805
|
method: "DELETE",
|
|
806
|
-
path: `/customers/${customerId}/emails/${emailId}`,
|
|
806
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails/${encodeURIComponent(emailId)}`,
|
|
807
807
|
token: this.tokens.get(),
|
|
808
808
|
workspaceId: this.workspaceId
|
|
809
809
|
});
|
|
@@ -812,7 +812,7 @@ var CustomersClient = class {
|
|
|
812
812
|
listPhones(customerId, opts) {
|
|
813
813
|
return this.http.request({
|
|
814
814
|
method: "GET",
|
|
815
|
-
path: `/customers/${customerId}/phones`,
|
|
815
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones`,
|
|
816
816
|
token: this.tokens.get(),
|
|
817
817
|
workspaceId: this.workspaceId,
|
|
818
818
|
bust: opts?.bust
|
|
@@ -821,7 +821,7 @@ var CustomersClient = class {
|
|
|
821
821
|
addPhone(customerId, input) {
|
|
822
822
|
return this.http.request({
|
|
823
823
|
method: "POST",
|
|
824
|
-
path: `/customers/${customerId}/phones`,
|
|
824
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones`,
|
|
825
825
|
body: input,
|
|
826
826
|
token: this.tokens.get(),
|
|
827
827
|
workspaceId: this.workspaceId
|
|
@@ -831,7 +831,7 @@ var CustomersClient = class {
|
|
|
831
831
|
updatePhoneLabel(customerId, phoneId, label) {
|
|
832
832
|
return this.http.request({
|
|
833
833
|
method: "PATCH",
|
|
834
|
-
path: `/customers/${customerId}/phones/${phoneId}`,
|
|
834
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones/${encodeURIComponent(phoneId)}`,
|
|
835
835
|
body: { label },
|
|
836
836
|
token: this.tokens.get(),
|
|
837
837
|
workspaceId: this.workspaceId
|
|
@@ -840,7 +840,7 @@ var CustomersClient = class {
|
|
|
840
840
|
setPrimaryPhone(customerId, phoneId) {
|
|
841
841
|
return this.http.request({
|
|
842
842
|
method: "PUT",
|
|
843
|
-
path: `/customers/${customerId}/phones/${phoneId}/primary`,
|
|
843
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones/${encodeURIComponent(phoneId)}/primary`,
|
|
844
844
|
token: this.tokens.get(),
|
|
845
845
|
workspaceId: this.workspaceId
|
|
846
846
|
});
|
|
@@ -848,7 +848,7 @@ var CustomersClient = class {
|
|
|
848
848
|
removePhone(customerId, phoneId) {
|
|
849
849
|
return this.http.request({
|
|
850
850
|
method: "DELETE",
|
|
851
|
-
path: `/customers/${customerId}/phones/${phoneId}`,
|
|
851
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones/${encodeURIComponent(phoneId)}`,
|
|
852
852
|
token: this.tokens.get(),
|
|
853
853
|
workspaceId: this.workspaceId
|
|
854
854
|
});
|
|
@@ -857,7 +857,7 @@ var CustomersClient = class {
|
|
|
857
857
|
listAddresses(customerId, opts) {
|
|
858
858
|
return this.http.request({
|
|
859
859
|
method: "GET",
|
|
860
|
-
path: `/customers/${customerId}/addresses`,
|
|
860
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses`,
|
|
861
861
|
token: this.tokens.get(),
|
|
862
862
|
workspaceId: this.workspaceId,
|
|
863
863
|
bust: opts?.bust
|
|
@@ -866,7 +866,7 @@ var CustomersClient = class {
|
|
|
866
866
|
addAddress(customerId, input) {
|
|
867
867
|
return this.http.request({
|
|
868
868
|
method: "POST",
|
|
869
|
-
path: `/customers/${customerId}/addresses`,
|
|
869
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses`,
|
|
870
870
|
body: input,
|
|
871
871
|
token: this.tokens.get(),
|
|
872
872
|
workspaceId: this.workspaceId
|
|
@@ -876,7 +876,7 @@ var CustomersClient = class {
|
|
|
876
876
|
updateAddressLabel(customerId, addrId, label) {
|
|
877
877
|
return this.http.request({
|
|
878
878
|
method: "PATCH",
|
|
879
|
-
path: `/customers/${customerId}/addresses/${addrId}`,
|
|
879
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses/${encodeURIComponent(addrId)}`,
|
|
880
880
|
body: { label },
|
|
881
881
|
token: this.tokens.get(),
|
|
882
882
|
workspaceId: this.workspaceId
|
|
@@ -885,7 +885,7 @@ var CustomersClient = class {
|
|
|
885
885
|
setPrimaryAddress(customerId, addrId) {
|
|
886
886
|
return this.http.request({
|
|
887
887
|
method: "PUT",
|
|
888
|
-
path: `/customers/${customerId}/addresses/${addrId}/primary`,
|
|
888
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses/${encodeURIComponent(addrId)}/primary`,
|
|
889
889
|
token: this.tokens.get(),
|
|
890
890
|
workspaceId: this.workspaceId
|
|
891
891
|
});
|
|
@@ -893,7 +893,7 @@ var CustomersClient = class {
|
|
|
893
893
|
removeAddress(customerId, addrId) {
|
|
894
894
|
return this.http.request({
|
|
895
895
|
method: "DELETE",
|
|
896
|
-
path: `/customers/${customerId}/addresses/${addrId}`,
|
|
896
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses/${encodeURIComponent(addrId)}`,
|
|
897
897
|
token: this.tokens.get(),
|
|
898
898
|
workspaceId: this.workspaceId
|
|
899
899
|
});
|
|
@@ -902,7 +902,7 @@ var CustomersClient = class {
|
|
|
902
902
|
listNotes(customerId, opts) {
|
|
903
903
|
return this.http.request({
|
|
904
904
|
method: "GET",
|
|
905
|
-
path: `/customers/${customerId}/notes`,
|
|
905
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes`,
|
|
906
906
|
token: this.tokens.get(),
|
|
907
907
|
workspaceId: this.workspaceId,
|
|
908
908
|
bust: opts?.bust
|
|
@@ -911,7 +911,7 @@ var CustomersClient = class {
|
|
|
911
911
|
createNote(customerId, body) {
|
|
912
912
|
return this.http.request({
|
|
913
913
|
method: "POST",
|
|
914
|
-
path: `/customers/${customerId}/notes`,
|
|
914
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes`,
|
|
915
915
|
body: { body },
|
|
916
916
|
token: this.tokens.get(),
|
|
917
917
|
workspaceId: this.workspaceId
|
|
@@ -920,7 +920,7 @@ var CustomersClient = class {
|
|
|
920
920
|
updateNote(customerId, noteId, body) {
|
|
921
921
|
return this.http.request({
|
|
922
922
|
method: "PUT",
|
|
923
|
-
path: `/customers/${customerId}/notes/${noteId}`,
|
|
923
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes/${encodeURIComponent(noteId)}`,
|
|
924
924
|
body: { body },
|
|
925
925
|
token: this.tokens.get(),
|
|
926
926
|
workspaceId: this.workspaceId
|
|
@@ -929,7 +929,7 @@ var CustomersClient = class {
|
|
|
929
929
|
deleteNote(customerId, noteId) {
|
|
930
930
|
return this.http.request({
|
|
931
931
|
method: "DELETE",
|
|
932
|
-
path: `/customers/${customerId}/notes/${noteId}`,
|
|
932
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes/${encodeURIComponent(noteId)}`,
|
|
933
933
|
token: this.tokens.get(),
|
|
934
934
|
workspaceId: this.workspaceId
|
|
935
935
|
});
|
|
@@ -938,7 +938,7 @@ var CustomersClient = class {
|
|
|
938
938
|
listTags(customerId, opts) {
|
|
939
939
|
return this.http.request({
|
|
940
940
|
method: "GET",
|
|
941
|
-
path: `/customers/${customerId}/tags`,
|
|
941
|
+
path: `/customers/${encodeURIComponent(customerId)}/tags`,
|
|
942
942
|
token: this.tokens.get(),
|
|
943
943
|
workspaceId: this.workspaceId,
|
|
944
944
|
bust: opts?.bust
|
|
@@ -947,7 +947,7 @@ var CustomersClient = class {
|
|
|
947
947
|
addTag(customerId, tag) {
|
|
948
948
|
return this.http.request({
|
|
949
949
|
method: "POST",
|
|
950
|
-
path: `/customers/${customerId}/tags`,
|
|
950
|
+
path: `/customers/${encodeURIComponent(customerId)}/tags`,
|
|
951
951
|
body: { tag },
|
|
952
952
|
token: this.tokens.get(),
|
|
953
953
|
workspaceId: this.workspaceId
|
|
@@ -965,7 +965,7 @@ var CustomersClient = class {
|
|
|
965
965
|
listRelationships(customerId, opts) {
|
|
966
966
|
return this.http.request({
|
|
967
967
|
method: "GET",
|
|
968
|
-
path: `/customers/${customerId}/relationships`,
|
|
968
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships`,
|
|
969
969
|
token: this.tokens.get(),
|
|
970
970
|
workspaceId: this.workspaceId,
|
|
971
971
|
bust: opts?.bust
|
|
@@ -974,7 +974,7 @@ var CustomersClient = class {
|
|
|
974
974
|
addRelationship(customerId, input) {
|
|
975
975
|
return this.http.request({
|
|
976
976
|
method: "POST",
|
|
977
|
-
path: `/customers/${customerId}/relationships`,
|
|
977
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships`,
|
|
978
978
|
body: input,
|
|
979
979
|
token: this.tokens.get(),
|
|
980
980
|
workspaceId: this.workspaceId
|
|
@@ -983,7 +983,7 @@ var CustomersClient = class {
|
|
|
983
983
|
setPrimaryRelationship(customerId, relatedId) {
|
|
984
984
|
return this.http.request({
|
|
985
985
|
method: "PUT",
|
|
986
|
-
path: `/customers/${customerId}/relationships/${relatedId}/primary`,
|
|
986
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships/${encodeURIComponent(relatedId)}/primary`,
|
|
987
987
|
token: this.tokens.get(),
|
|
988
988
|
workspaceId: this.workspaceId
|
|
989
989
|
});
|
|
@@ -991,7 +991,7 @@ var CustomersClient = class {
|
|
|
991
991
|
removeRelationship(customerId, relatedId) {
|
|
992
992
|
return this.http.request({
|
|
993
993
|
method: "DELETE",
|
|
994
|
-
path: `/customers/${customerId}/relationships/${relatedId}`,
|
|
994
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships/${encodeURIComponent(relatedId)}`,
|
|
995
995
|
token: this.tokens.get(),
|
|
996
996
|
workspaceId: this.workspaceId
|
|
997
997
|
});
|
|
@@ -1004,7 +1004,7 @@ var CustomersClient = class {
|
|
|
1004
1004
|
listLabels(type, opts) {
|
|
1005
1005
|
return this.http.request({
|
|
1006
1006
|
method: "GET",
|
|
1007
|
-
path: `/customers/labels?type=${type}`,
|
|
1007
|
+
path: `/customers/labels?type=${encodeURIComponent(type)}`,
|
|
1008
1008
|
token: this.tokens.get(),
|
|
1009
1009
|
workspaceId: this.workspaceId,
|
|
1010
1010
|
bust: opts?.bust
|
|
@@ -1013,7 +1013,7 @@ var CustomersClient = class {
|
|
|
1013
1013
|
removeLabel(labelId) {
|
|
1014
1014
|
return this.http.request({
|
|
1015
1015
|
method: "DELETE",
|
|
1016
|
-
path: `/customers/labels/${labelId}`,
|
|
1016
|
+
path: `/customers/labels/${encodeURIComponent(labelId)}`,
|
|
1017
1017
|
token: this.tokens.get(),
|
|
1018
1018
|
workspaceId: this.workspaceId
|
|
1019
1019
|
});
|
|
@@ -1060,7 +1060,7 @@ var WebhooksClient = class {
|
|
|
1060
1060
|
getEndpoint(endpointId, opts) {
|
|
1061
1061
|
return this.http.request({
|
|
1062
1062
|
method: "GET",
|
|
1063
|
-
path: `/webhooks/${endpointId}`,
|
|
1063
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}`,
|
|
1064
1064
|
token: this.tokens.get(),
|
|
1065
1065
|
workspaceId: this.workspaceId,
|
|
1066
1066
|
bust: opts?.bust
|
|
@@ -1069,7 +1069,7 @@ var WebhooksClient = class {
|
|
|
1069
1069
|
updateEndpoint(endpointId, input) {
|
|
1070
1070
|
return this.http.request({
|
|
1071
1071
|
method: "PATCH",
|
|
1072
|
-
path: `/webhooks/${endpointId}`,
|
|
1072
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}`,
|
|
1073
1073
|
body: input,
|
|
1074
1074
|
token: this.tokens.get(),
|
|
1075
1075
|
workspaceId: this.workspaceId
|
|
@@ -1078,7 +1078,7 @@ var WebhooksClient = class {
|
|
|
1078
1078
|
deleteEndpoint(endpointId) {
|
|
1079
1079
|
return this.http.request({
|
|
1080
1080
|
method: "DELETE",
|
|
1081
|
-
path: `/webhooks/${endpointId}`,
|
|
1081
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}`,
|
|
1082
1082
|
token: this.tokens.get(),
|
|
1083
1083
|
workspaceId: this.workspaceId
|
|
1084
1084
|
});
|
|
@@ -1086,7 +1086,7 @@ var WebhooksClient = class {
|
|
|
1086
1086
|
listDeliveries(endpointId, opts) {
|
|
1087
1087
|
return this.http.request({
|
|
1088
1088
|
method: "GET",
|
|
1089
|
-
path: `/webhooks/${endpointId}/deliveries`,
|
|
1089
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}/deliveries`,
|
|
1090
1090
|
token: this.tokens.get(),
|
|
1091
1091
|
workspaceId: this.workspaceId,
|
|
1092
1092
|
bust: opts?.bust
|
|
@@ -1095,7 +1095,7 @@ var WebhooksClient = class {
|
|
|
1095
1095
|
testEndpoint(endpointId) {
|
|
1096
1096
|
return this.http.request({
|
|
1097
1097
|
method: "POST",
|
|
1098
|
-
path: `/webhooks/${endpointId}/test`,
|
|
1098
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}/test`,
|
|
1099
1099
|
token: this.tokens.get(),
|
|
1100
1100
|
workspaceId: this.workspaceId
|
|
1101
1101
|
});
|
|
@@ -1139,7 +1139,7 @@ var WorkspacesClient = class {
|
|
|
1139
1139
|
getWorkspace(id, opts) {
|
|
1140
1140
|
return this.http.request({
|
|
1141
1141
|
method: "GET",
|
|
1142
|
-
path: `/workspaces/${id}`,
|
|
1142
|
+
path: `/workspaces/${encodeURIComponent(id)}`,
|
|
1143
1143
|
token: this.tokens.get(),
|
|
1144
1144
|
bust: opts?.bust
|
|
1145
1145
|
});
|
|
@@ -1192,7 +1192,7 @@ var WorkspacesClient = class {
|
|
|
1192
1192
|
getRole(roleId, opts) {
|
|
1193
1193
|
return this.http.request({
|
|
1194
1194
|
method: "GET",
|
|
1195
|
-
path: `/workspaces/roles/${roleId}`,
|
|
1195
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}`,
|
|
1196
1196
|
token: this.tokens.get(),
|
|
1197
1197
|
workspaceId: this.workspaceId,
|
|
1198
1198
|
bust: opts?.bust
|
|
@@ -1201,7 +1201,7 @@ var WorkspacesClient = class {
|
|
|
1201
1201
|
updateRole(roleId, input) {
|
|
1202
1202
|
return this.http.request({
|
|
1203
1203
|
method: "PUT",
|
|
1204
|
-
path: `/workspaces/roles/${roleId}`,
|
|
1204
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}`,
|
|
1205
1205
|
body: input,
|
|
1206
1206
|
token: this.tokens.get(),
|
|
1207
1207
|
workspaceId: this.workspaceId
|
|
@@ -1210,7 +1210,7 @@ var WorkspacesClient = class {
|
|
|
1210
1210
|
removeRole(roleId) {
|
|
1211
1211
|
return this.http.request({
|
|
1212
1212
|
method: "DELETE",
|
|
1213
|
-
path: `/workspaces/roles/${roleId}`,
|
|
1213
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}`,
|
|
1214
1214
|
token: this.tokens.get(),
|
|
1215
1215
|
workspaceId: this.workspaceId
|
|
1216
1216
|
});
|
|
@@ -1218,7 +1218,7 @@ var WorkspacesClient = class {
|
|
|
1218
1218
|
getRolePermissions(roleId, opts) {
|
|
1219
1219
|
return this.http.request({
|
|
1220
1220
|
method: "GET",
|
|
1221
|
-
path: `/workspaces/roles/${roleId}/permissions`,
|
|
1221
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}/permissions`,
|
|
1222
1222
|
token: this.tokens.get(),
|
|
1223
1223
|
workspaceId: this.workspaceId,
|
|
1224
1224
|
bust: opts?.bust
|
|
@@ -1227,7 +1227,7 @@ var WorkspacesClient = class {
|
|
|
1227
1227
|
setRolePermissions(roleId, permissions) {
|
|
1228
1228
|
return this.http.request({
|
|
1229
1229
|
method: "POST",
|
|
1230
|
-
path: `/workspaces/roles/${roleId}/permissions`,
|
|
1230
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}/permissions`,
|
|
1231
1231
|
body: { permissions },
|
|
1232
1232
|
token: this.tokens.get(),
|
|
1233
1233
|
workspaceId: this.workspaceId
|
|
@@ -1246,7 +1246,7 @@ var WorkspacesClient = class {
|
|
|
1246
1246
|
removeMember(userId) {
|
|
1247
1247
|
return this.http.request({
|
|
1248
1248
|
method: "DELETE",
|
|
1249
|
-
path: `/workspaces/members/${userId}`,
|
|
1249
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}`,
|
|
1250
1250
|
token: this.tokens.get(),
|
|
1251
1251
|
workspaceId: this.workspaceId
|
|
1252
1252
|
});
|
|
@@ -1254,7 +1254,7 @@ var WorkspacesClient = class {
|
|
|
1254
1254
|
getMemberRoles(userId, opts) {
|
|
1255
1255
|
return this.http.request({
|
|
1256
1256
|
method: "GET",
|
|
1257
|
-
path: `/workspaces/members/${userId}/roles`,
|
|
1257
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}/roles`,
|
|
1258
1258
|
token: this.tokens.get(),
|
|
1259
1259
|
workspaceId: this.workspaceId,
|
|
1260
1260
|
bust: opts?.bust
|
|
@@ -1263,7 +1263,7 @@ var WorkspacesClient = class {
|
|
|
1263
1263
|
addMemberRole(userId, roleId) {
|
|
1264
1264
|
return this.http.request({
|
|
1265
1265
|
method: "POST",
|
|
1266
|
-
path: `/workspaces/members/${userId}/roles`,
|
|
1266
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}/roles`,
|
|
1267
1267
|
body: { roleId },
|
|
1268
1268
|
token: this.tokens.get(),
|
|
1269
1269
|
workspaceId: this.workspaceId
|
|
@@ -1272,7 +1272,7 @@ var WorkspacesClient = class {
|
|
|
1272
1272
|
removeMemberRole(userId, roleId) {
|
|
1273
1273
|
return this.http.request({
|
|
1274
1274
|
method: "DELETE",
|
|
1275
|
-
path: `/workspaces/members/${userId}/roles/${roleId}`,
|
|
1275
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}/roles/${encodeURIComponent(roleId)}`,
|
|
1276
1276
|
token: this.tokens.get(),
|
|
1277
1277
|
workspaceId: this.workspaceId
|
|
1278
1278
|
});
|
|
@@ -1299,7 +1299,7 @@ var WorkspacesClient = class {
|
|
|
1299
1299
|
cancelInvitation(inviteId) {
|
|
1300
1300
|
return this.http.request({
|
|
1301
1301
|
method: "DELETE",
|
|
1302
|
-
path: `/workspaces/invitations/${inviteId}`,
|
|
1302
|
+
path: `/workspaces/invitations/${encodeURIComponent(inviteId)}`,
|
|
1303
1303
|
token: this.tokens.get(),
|
|
1304
1304
|
workspaceId: this.workspaceId
|
|
1305
1305
|
});
|
|
@@ -1491,14 +1491,14 @@ var ConfigAdminClient = class {
|
|
|
1491
1491
|
getConfig(key, environment) {
|
|
1492
1492
|
return this.http.request({
|
|
1493
1493
|
method: "GET",
|
|
1494
|
-
path: `/admin/config/${key}${envQuery(environment)}`,
|
|
1494
|
+
path: `/admin/config/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1495
1495
|
token: this.adminToken
|
|
1496
1496
|
});
|
|
1497
1497
|
}
|
|
1498
1498
|
setConfig(key, input, environment) {
|
|
1499
1499
|
return this.http.request({
|
|
1500
1500
|
method: "PUT",
|
|
1501
|
-
path: `/admin/config/${key}${envQuery(environment)}`,
|
|
1501
|
+
path: `/admin/config/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1502
1502
|
body: input,
|
|
1503
1503
|
token: this.adminToken,
|
|
1504
1504
|
headers: this.actorHeaders
|
|
@@ -1507,7 +1507,7 @@ var ConfigAdminClient = class {
|
|
|
1507
1507
|
deleteConfig(key, environment) {
|
|
1508
1508
|
return this.http.request({
|
|
1509
1509
|
method: "DELETE",
|
|
1510
|
-
path: `/admin/config/${key}${envQuery(environment)}`,
|
|
1510
|
+
path: `/admin/config/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1511
1511
|
token: this.adminToken,
|
|
1512
1512
|
headers: this.actorHeaders
|
|
1513
1513
|
});
|
|
@@ -1515,14 +1515,14 @@ var ConfigAdminClient = class {
|
|
|
1515
1515
|
listConfigRevisions(key, environment) {
|
|
1516
1516
|
return this.http.request({
|
|
1517
1517
|
method: "GET",
|
|
1518
|
-
path: `/admin/config/${key}/revisions${envQuery(environment)}`,
|
|
1518
|
+
path: `/admin/config/${encodeURIComponent(key)}/revisions${envQuery(environment)}`,
|
|
1519
1519
|
token: this.adminToken
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
rollbackConfig(key, input, environment) {
|
|
1523
1523
|
return this.http.request({
|
|
1524
1524
|
method: "POST",
|
|
1525
|
-
path: `/admin/config/${key}/rollback${envQuery(environment)}`,
|
|
1525
|
+
path: `/admin/config/${encodeURIComponent(key)}/rollback${envQuery(environment)}`,
|
|
1526
1526
|
body: input,
|
|
1527
1527
|
token: this.adminToken,
|
|
1528
1528
|
headers: this.actorHeaders
|
|
@@ -1539,14 +1539,14 @@ var ConfigAdminClient = class {
|
|
|
1539
1539
|
getSecret(key, environment) {
|
|
1540
1540
|
return this.http.request({
|
|
1541
1541
|
method: "GET",
|
|
1542
|
-
path: `/admin/secrets/${key}${envQuery(environment)}`,
|
|
1542
|
+
path: `/admin/secrets/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1543
1543
|
token: this.adminToken
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
1546
|
setSecret(key, input, environment) {
|
|
1547
1547
|
return this.http.request({
|
|
1548
1548
|
method: "PUT",
|
|
1549
|
-
path: `/admin/secrets/${key}${envQuery(environment)}`,
|
|
1549
|
+
path: `/admin/secrets/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1550
1550
|
body: input,
|
|
1551
1551
|
token: this.adminToken,
|
|
1552
1552
|
headers: this.actorHeaders
|
|
@@ -1555,7 +1555,7 @@ var ConfigAdminClient = class {
|
|
|
1555
1555
|
deleteSecret(key, environment) {
|
|
1556
1556
|
return this.http.request({
|
|
1557
1557
|
method: "DELETE",
|
|
1558
|
-
path: `/admin/secrets/${key}${envQuery(environment)}`,
|
|
1558
|
+
path: `/admin/secrets/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1559
1559
|
token: this.adminToken,
|
|
1560
1560
|
headers: this.actorHeaders
|
|
1561
1561
|
});
|
|
@@ -1563,14 +1563,14 @@ var ConfigAdminClient = class {
|
|
|
1563
1563
|
listSecretRevisions(key, environment) {
|
|
1564
1564
|
return this.http.request({
|
|
1565
1565
|
method: "GET",
|
|
1566
|
-
path: `/admin/secrets/${key}/revisions${envQuery(environment)}`,
|
|
1566
|
+
path: `/admin/secrets/${encodeURIComponent(key)}/revisions${envQuery(environment)}`,
|
|
1567
1567
|
token: this.adminToken
|
|
1568
1568
|
});
|
|
1569
1569
|
}
|
|
1570
1570
|
rollbackSecret(key, input, environment) {
|
|
1571
1571
|
return this.http.request({
|
|
1572
1572
|
method: "POST",
|
|
1573
|
-
path: `/admin/secrets/${key}/rollback${envQuery(environment)}`,
|
|
1573
|
+
path: `/admin/secrets/${encodeURIComponent(key)}/rollback${envQuery(environment)}`,
|
|
1574
1574
|
body: input,
|
|
1575
1575
|
token: this.adminToken,
|
|
1576
1576
|
headers: this.actorHeaders
|
|
@@ -1580,7 +1580,7 @@ var ConfigAdminClient = class {
|
|
|
1580
1580
|
revealSecret(key, environment) {
|
|
1581
1581
|
return this.http.request({
|
|
1582
1582
|
method: "POST",
|
|
1583
|
-
path: `/admin/secrets/${key}/reveal${envQuery(environment)}`,
|
|
1583
|
+
path: `/admin/secrets/${encodeURIComponent(key)}/reveal${envQuery(environment)}`,
|
|
1584
1584
|
token: this.adminToken,
|
|
1585
1585
|
headers: this.actorHeaders
|
|
1586
1586
|
});
|
|
@@ -1608,7 +1608,7 @@ var CourierAdminClient = class {
|
|
|
1608
1608
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1609
1609
|
return this.http.request({
|
|
1610
1610
|
method: "GET",
|
|
1611
|
-
path: `/admin/templates/${type}${q}`,
|
|
1611
|
+
path: `/admin/templates/${encodeURIComponent(type)}${q}`,
|
|
1612
1612
|
token: this.adminToken
|
|
1613
1613
|
});
|
|
1614
1614
|
}
|
|
@@ -1616,7 +1616,7 @@ var CourierAdminClient = class {
|
|
|
1616
1616
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1617
1617
|
return this.http.request({
|
|
1618
1618
|
method: "PUT",
|
|
1619
|
-
path: `/admin/templates/${type}${q}`,
|
|
1619
|
+
path: `/admin/templates/${encodeURIComponent(type)}${q}`,
|
|
1620
1620
|
body: input,
|
|
1621
1621
|
token: this.adminToken,
|
|
1622
1622
|
headers: this.actorHeaders
|
|
@@ -1626,7 +1626,7 @@ var CourierAdminClient = class {
|
|
|
1626
1626
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1627
1627
|
return this.http.request({
|
|
1628
1628
|
method: "DELETE",
|
|
1629
|
-
path: `/admin/templates/${type}${q}`,
|
|
1629
|
+
path: `/admin/templates/${encodeURIComponent(type)}${q}`,
|
|
1630
1630
|
token: this.adminToken,
|
|
1631
1631
|
headers: this.actorHeaders
|
|
1632
1632
|
});
|
|
@@ -1635,7 +1635,7 @@ var CourierAdminClient = class {
|
|
|
1635
1635
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1636
1636
|
return this.http.request({
|
|
1637
1637
|
method: "GET",
|
|
1638
|
-
path: `/admin/templates/${type}/revisions${q}`,
|
|
1638
|
+
path: `/admin/templates/${encodeURIComponent(type)}/revisions${q}`,
|
|
1639
1639
|
token: this.adminToken
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
@@ -1643,7 +1643,7 @@ var CourierAdminClient = class {
|
|
|
1643
1643
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1644
1644
|
return this.http.request({
|
|
1645
1645
|
method: "POST",
|
|
1646
|
-
path: `/admin/templates/${type}/rollback${q}`,
|
|
1646
|
+
path: `/admin/templates/${encodeURIComponent(type)}/rollback${q}`,
|
|
1647
1647
|
body: input,
|
|
1648
1648
|
token: this.adminToken,
|
|
1649
1649
|
headers: this.actorHeaders
|