@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/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -418,7 +418,7 @@ var BillingClient = class {
|
|
|
418
418
|
getPlan(planId, opts) {
|
|
419
419
|
return this.http.request({
|
|
420
420
|
method: "GET",
|
|
421
|
-
path: `/plans/${planId}`,
|
|
421
|
+
path: `/plans/${encodeURIComponent(planId)}`,
|
|
422
422
|
bust: opts?.bust
|
|
423
423
|
});
|
|
424
424
|
}
|
|
@@ -440,7 +440,7 @@ var BillingClient = class {
|
|
|
440
440
|
updatePlan(planId, input) {
|
|
441
441
|
return this.http.request({
|
|
442
442
|
method: "PUT",
|
|
443
|
-
path: `/plans/${planId}`,
|
|
443
|
+
path: `/plans/${encodeURIComponent(planId)}`,
|
|
444
444
|
body: input,
|
|
445
445
|
token: this.tokens.get()
|
|
446
446
|
});
|
|
@@ -448,7 +448,7 @@ var BillingClient = class {
|
|
|
448
448
|
deletePlan(planId) {
|
|
449
449
|
return this.http.request({
|
|
450
450
|
method: "DELETE",
|
|
451
|
-
path: `/plans/${planId}`,
|
|
451
|
+
path: `/plans/${encodeURIComponent(planId)}`,
|
|
452
452
|
token: this.tokens.get()
|
|
453
453
|
});
|
|
454
454
|
}
|
|
@@ -515,7 +515,7 @@ var BillingClient = class {
|
|
|
515
515
|
getUsage(metric, opts) {
|
|
516
516
|
return this.http.request({
|
|
517
517
|
method: "GET",
|
|
518
|
-
path: `/billing/usage/${metric}`,
|
|
518
|
+
path: `/billing/usage/${encodeURIComponent(metric)}`,
|
|
519
519
|
token: this.tokens.get(),
|
|
520
520
|
workspaceId: this.workspaceId,
|
|
521
521
|
bust: opts?.bust
|
|
@@ -685,7 +685,7 @@ var CustomersClient = class {
|
|
|
685
685
|
const qs = input.depth === 1 ? "?depth=1" : "";
|
|
686
686
|
return this.http.request({
|
|
687
687
|
method: "GET",
|
|
688
|
-
path: `/customers/${customerId}${qs}`,
|
|
688
|
+
path: `/customers/${encodeURIComponent(customerId)}${qs}`,
|
|
689
689
|
token: this.tokens.get(),
|
|
690
690
|
workspaceId: this.workspaceId,
|
|
691
691
|
bust: opts?.bust
|
|
@@ -694,7 +694,7 @@ var CustomersClient = class {
|
|
|
694
694
|
updateCustomer(customerId, input) {
|
|
695
695
|
return this.http.request({
|
|
696
696
|
method: "PUT",
|
|
697
|
-
path: `/customers/${customerId}`,
|
|
697
|
+
path: `/customers/${encodeURIComponent(customerId)}`,
|
|
698
698
|
body: input,
|
|
699
699
|
token: this.tokens.get(),
|
|
700
700
|
workspaceId: this.workspaceId
|
|
@@ -703,7 +703,7 @@ var CustomersClient = class {
|
|
|
703
703
|
deleteCustomer(customerId) {
|
|
704
704
|
return this.http.request({
|
|
705
705
|
method: "DELETE",
|
|
706
|
-
path: `/customers/${customerId}`,
|
|
706
|
+
path: `/customers/${encodeURIComponent(customerId)}`,
|
|
707
707
|
token: this.tokens.get(),
|
|
708
708
|
workspaceId: this.workspaceId
|
|
709
709
|
});
|
|
@@ -711,7 +711,7 @@ var CustomersClient = class {
|
|
|
711
711
|
blacklistCustomer(customerId, input = {}) {
|
|
712
712
|
return this.http.request({
|
|
713
713
|
method: "POST",
|
|
714
|
-
path: `/customers/${customerId}/blacklist`,
|
|
714
|
+
path: `/customers/${encodeURIComponent(customerId)}/blacklist`,
|
|
715
715
|
body: input,
|
|
716
716
|
token: this.tokens.get(),
|
|
717
717
|
workspaceId: this.workspaceId
|
|
@@ -720,7 +720,7 @@ var CustomersClient = class {
|
|
|
720
720
|
unblacklistCustomer(customerId) {
|
|
721
721
|
return this.http.request({
|
|
722
722
|
method: "POST",
|
|
723
|
-
path: `/customers/${customerId}/unblacklist`,
|
|
723
|
+
path: `/customers/${encodeURIComponent(customerId)}/unblacklist`,
|
|
724
724
|
token: this.tokens.get(),
|
|
725
725
|
workspaceId: this.workspaceId
|
|
726
726
|
});
|
|
@@ -729,7 +729,7 @@ var CustomersClient = class {
|
|
|
729
729
|
listEmails(customerId, opts) {
|
|
730
730
|
return this.http.request({
|
|
731
731
|
method: "GET",
|
|
732
|
-
path: `/customers/${customerId}/emails`,
|
|
732
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails`,
|
|
733
733
|
token: this.tokens.get(),
|
|
734
734
|
workspaceId: this.workspaceId,
|
|
735
735
|
bust: opts?.bust
|
|
@@ -738,7 +738,7 @@ var CustomersClient = class {
|
|
|
738
738
|
addEmail(customerId, input) {
|
|
739
739
|
return this.http.request({
|
|
740
740
|
method: "POST",
|
|
741
|
-
path: `/customers/${customerId}/emails`,
|
|
741
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails`,
|
|
742
742
|
body: input,
|
|
743
743
|
token: this.tokens.get(),
|
|
744
744
|
workspaceId: this.workspaceId
|
|
@@ -749,7 +749,7 @@ var CustomersClient = class {
|
|
|
749
749
|
updateEmailLabel(customerId, emailId, label) {
|
|
750
750
|
return this.http.request({
|
|
751
751
|
method: "PATCH",
|
|
752
|
-
path: `/customers/${customerId}/emails/${emailId}`,
|
|
752
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails/${encodeURIComponent(emailId)}`,
|
|
753
753
|
body: { label },
|
|
754
754
|
token: this.tokens.get(),
|
|
755
755
|
workspaceId: this.workspaceId
|
|
@@ -758,7 +758,7 @@ var CustomersClient = class {
|
|
|
758
758
|
setPrimaryEmail(customerId, emailId) {
|
|
759
759
|
return this.http.request({
|
|
760
760
|
method: "PUT",
|
|
761
|
-
path: `/customers/${customerId}/emails/${emailId}/primary`,
|
|
761
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails/${encodeURIComponent(emailId)}/primary`,
|
|
762
762
|
token: this.tokens.get(),
|
|
763
763
|
workspaceId: this.workspaceId
|
|
764
764
|
});
|
|
@@ -766,7 +766,7 @@ var CustomersClient = class {
|
|
|
766
766
|
removeEmail(customerId, emailId) {
|
|
767
767
|
return this.http.request({
|
|
768
768
|
method: "DELETE",
|
|
769
|
-
path: `/customers/${customerId}/emails/${emailId}`,
|
|
769
|
+
path: `/customers/${encodeURIComponent(customerId)}/emails/${encodeURIComponent(emailId)}`,
|
|
770
770
|
token: this.tokens.get(),
|
|
771
771
|
workspaceId: this.workspaceId
|
|
772
772
|
});
|
|
@@ -775,7 +775,7 @@ var CustomersClient = class {
|
|
|
775
775
|
listPhones(customerId, opts) {
|
|
776
776
|
return this.http.request({
|
|
777
777
|
method: "GET",
|
|
778
|
-
path: `/customers/${customerId}/phones`,
|
|
778
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones`,
|
|
779
779
|
token: this.tokens.get(),
|
|
780
780
|
workspaceId: this.workspaceId,
|
|
781
781
|
bust: opts?.bust
|
|
@@ -784,7 +784,7 @@ var CustomersClient = class {
|
|
|
784
784
|
addPhone(customerId, input) {
|
|
785
785
|
return this.http.request({
|
|
786
786
|
method: "POST",
|
|
787
|
-
path: `/customers/${customerId}/phones`,
|
|
787
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones`,
|
|
788
788
|
body: input,
|
|
789
789
|
token: this.tokens.get(),
|
|
790
790
|
workspaceId: this.workspaceId
|
|
@@ -794,7 +794,7 @@ var CustomersClient = class {
|
|
|
794
794
|
updatePhoneLabel(customerId, phoneId, label) {
|
|
795
795
|
return this.http.request({
|
|
796
796
|
method: "PATCH",
|
|
797
|
-
path: `/customers/${customerId}/phones/${phoneId}`,
|
|
797
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones/${encodeURIComponent(phoneId)}`,
|
|
798
798
|
body: { label },
|
|
799
799
|
token: this.tokens.get(),
|
|
800
800
|
workspaceId: this.workspaceId
|
|
@@ -803,7 +803,7 @@ var CustomersClient = class {
|
|
|
803
803
|
setPrimaryPhone(customerId, phoneId) {
|
|
804
804
|
return this.http.request({
|
|
805
805
|
method: "PUT",
|
|
806
|
-
path: `/customers/${customerId}/phones/${phoneId}/primary`,
|
|
806
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones/${encodeURIComponent(phoneId)}/primary`,
|
|
807
807
|
token: this.tokens.get(),
|
|
808
808
|
workspaceId: this.workspaceId
|
|
809
809
|
});
|
|
@@ -811,7 +811,7 @@ var CustomersClient = class {
|
|
|
811
811
|
removePhone(customerId, phoneId) {
|
|
812
812
|
return this.http.request({
|
|
813
813
|
method: "DELETE",
|
|
814
|
-
path: `/customers/${customerId}/phones/${phoneId}`,
|
|
814
|
+
path: `/customers/${encodeURIComponent(customerId)}/phones/${encodeURIComponent(phoneId)}`,
|
|
815
815
|
token: this.tokens.get(),
|
|
816
816
|
workspaceId: this.workspaceId
|
|
817
817
|
});
|
|
@@ -820,7 +820,7 @@ var CustomersClient = class {
|
|
|
820
820
|
listAddresses(customerId, opts) {
|
|
821
821
|
return this.http.request({
|
|
822
822
|
method: "GET",
|
|
823
|
-
path: `/customers/${customerId}/addresses`,
|
|
823
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses`,
|
|
824
824
|
token: this.tokens.get(),
|
|
825
825
|
workspaceId: this.workspaceId,
|
|
826
826
|
bust: opts?.bust
|
|
@@ -829,7 +829,7 @@ var CustomersClient = class {
|
|
|
829
829
|
addAddress(customerId, input) {
|
|
830
830
|
return this.http.request({
|
|
831
831
|
method: "POST",
|
|
832
|
-
path: `/customers/${customerId}/addresses`,
|
|
832
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses`,
|
|
833
833
|
body: input,
|
|
834
834
|
token: this.tokens.get(),
|
|
835
835
|
workspaceId: this.workspaceId
|
|
@@ -839,7 +839,7 @@ var CustomersClient = class {
|
|
|
839
839
|
updateAddressLabel(customerId, addrId, label) {
|
|
840
840
|
return this.http.request({
|
|
841
841
|
method: "PATCH",
|
|
842
|
-
path: `/customers/${customerId}/addresses/${addrId}`,
|
|
842
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses/${encodeURIComponent(addrId)}`,
|
|
843
843
|
body: { label },
|
|
844
844
|
token: this.tokens.get(),
|
|
845
845
|
workspaceId: this.workspaceId
|
|
@@ -848,7 +848,7 @@ var CustomersClient = class {
|
|
|
848
848
|
setPrimaryAddress(customerId, addrId) {
|
|
849
849
|
return this.http.request({
|
|
850
850
|
method: "PUT",
|
|
851
|
-
path: `/customers/${customerId}/addresses/${addrId}/primary`,
|
|
851
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses/${encodeURIComponent(addrId)}/primary`,
|
|
852
852
|
token: this.tokens.get(),
|
|
853
853
|
workspaceId: this.workspaceId
|
|
854
854
|
});
|
|
@@ -856,7 +856,7 @@ var CustomersClient = class {
|
|
|
856
856
|
removeAddress(customerId, addrId) {
|
|
857
857
|
return this.http.request({
|
|
858
858
|
method: "DELETE",
|
|
859
|
-
path: `/customers/${customerId}/addresses/${addrId}`,
|
|
859
|
+
path: `/customers/${encodeURIComponent(customerId)}/addresses/${encodeURIComponent(addrId)}`,
|
|
860
860
|
token: this.tokens.get(),
|
|
861
861
|
workspaceId: this.workspaceId
|
|
862
862
|
});
|
|
@@ -865,7 +865,7 @@ var CustomersClient = class {
|
|
|
865
865
|
listNotes(customerId, opts) {
|
|
866
866
|
return this.http.request({
|
|
867
867
|
method: "GET",
|
|
868
|
-
path: `/customers/${customerId}/notes`,
|
|
868
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes`,
|
|
869
869
|
token: this.tokens.get(),
|
|
870
870
|
workspaceId: this.workspaceId,
|
|
871
871
|
bust: opts?.bust
|
|
@@ -874,7 +874,7 @@ var CustomersClient = class {
|
|
|
874
874
|
createNote(customerId, body) {
|
|
875
875
|
return this.http.request({
|
|
876
876
|
method: "POST",
|
|
877
|
-
path: `/customers/${customerId}/notes`,
|
|
877
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes`,
|
|
878
878
|
body: { body },
|
|
879
879
|
token: this.tokens.get(),
|
|
880
880
|
workspaceId: this.workspaceId
|
|
@@ -883,7 +883,7 @@ var CustomersClient = class {
|
|
|
883
883
|
updateNote(customerId, noteId, body) {
|
|
884
884
|
return this.http.request({
|
|
885
885
|
method: "PUT",
|
|
886
|
-
path: `/customers/${customerId}/notes/${noteId}`,
|
|
886
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes/${encodeURIComponent(noteId)}`,
|
|
887
887
|
body: { body },
|
|
888
888
|
token: this.tokens.get(),
|
|
889
889
|
workspaceId: this.workspaceId
|
|
@@ -892,7 +892,7 @@ var CustomersClient = class {
|
|
|
892
892
|
deleteNote(customerId, noteId) {
|
|
893
893
|
return this.http.request({
|
|
894
894
|
method: "DELETE",
|
|
895
|
-
path: `/customers/${customerId}/notes/${noteId}`,
|
|
895
|
+
path: `/customers/${encodeURIComponent(customerId)}/notes/${encodeURIComponent(noteId)}`,
|
|
896
896
|
token: this.tokens.get(),
|
|
897
897
|
workspaceId: this.workspaceId
|
|
898
898
|
});
|
|
@@ -901,7 +901,7 @@ var CustomersClient = class {
|
|
|
901
901
|
listTags(customerId, opts) {
|
|
902
902
|
return this.http.request({
|
|
903
903
|
method: "GET",
|
|
904
|
-
path: `/customers/${customerId}/tags`,
|
|
904
|
+
path: `/customers/${encodeURIComponent(customerId)}/tags`,
|
|
905
905
|
token: this.tokens.get(),
|
|
906
906
|
workspaceId: this.workspaceId,
|
|
907
907
|
bust: opts?.bust
|
|
@@ -910,7 +910,7 @@ var CustomersClient = class {
|
|
|
910
910
|
addTag(customerId, tag) {
|
|
911
911
|
return this.http.request({
|
|
912
912
|
method: "POST",
|
|
913
|
-
path: `/customers/${customerId}/tags`,
|
|
913
|
+
path: `/customers/${encodeURIComponent(customerId)}/tags`,
|
|
914
914
|
body: { tag },
|
|
915
915
|
token: this.tokens.get(),
|
|
916
916
|
workspaceId: this.workspaceId
|
|
@@ -928,7 +928,7 @@ var CustomersClient = class {
|
|
|
928
928
|
listRelationships(customerId, opts) {
|
|
929
929
|
return this.http.request({
|
|
930
930
|
method: "GET",
|
|
931
|
-
path: `/customers/${customerId}/relationships`,
|
|
931
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships`,
|
|
932
932
|
token: this.tokens.get(),
|
|
933
933
|
workspaceId: this.workspaceId,
|
|
934
934
|
bust: opts?.bust
|
|
@@ -937,7 +937,7 @@ var CustomersClient = class {
|
|
|
937
937
|
addRelationship(customerId, input) {
|
|
938
938
|
return this.http.request({
|
|
939
939
|
method: "POST",
|
|
940
|
-
path: `/customers/${customerId}/relationships`,
|
|
940
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships`,
|
|
941
941
|
body: input,
|
|
942
942
|
token: this.tokens.get(),
|
|
943
943
|
workspaceId: this.workspaceId
|
|
@@ -946,7 +946,7 @@ var CustomersClient = class {
|
|
|
946
946
|
setPrimaryRelationship(customerId, relatedId) {
|
|
947
947
|
return this.http.request({
|
|
948
948
|
method: "PUT",
|
|
949
|
-
path: `/customers/${customerId}/relationships/${relatedId}/primary`,
|
|
949
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships/${encodeURIComponent(relatedId)}/primary`,
|
|
950
950
|
token: this.tokens.get(),
|
|
951
951
|
workspaceId: this.workspaceId
|
|
952
952
|
});
|
|
@@ -954,7 +954,7 @@ var CustomersClient = class {
|
|
|
954
954
|
removeRelationship(customerId, relatedId) {
|
|
955
955
|
return this.http.request({
|
|
956
956
|
method: "DELETE",
|
|
957
|
-
path: `/customers/${customerId}/relationships/${relatedId}`,
|
|
957
|
+
path: `/customers/${encodeURIComponent(customerId)}/relationships/${encodeURIComponent(relatedId)}`,
|
|
958
958
|
token: this.tokens.get(),
|
|
959
959
|
workspaceId: this.workspaceId
|
|
960
960
|
});
|
|
@@ -967,7 +967,7 @@ var CustomersClient = class {
|
|
|
967
967
|
listLabels(type, opts) {
|
|
968
968
|
return this.http.request({
|
|
969
969
|
method: "GET",
|
|
970
|
-
path: `/customers/labels?type=${type}`,
|
|
970
|
+
path: `/customers/labels?type=${encodeURIComponent(type)}`,
|
|
971
971
|
token: this.tokens.get(),
|
|
972
972
|
workspaceId: this.workspaceId,
|
|
973
973
|
bust: opts?.bust
|
|
@@ -976,7 +976,7 @@ var CustomersClient = class {
|
|
|
976
976
|
removeLabel(labelId) {
|
|
977
977
|
return this.http.request({
|
|
978
978
|
method: "DELETE",
|
|
979
|
-
path: `/customers/labels/${labelId}`,
|
|
979
|
+
path: `/customers/labels/${encodeURIComponent(labelId)}`,
|
|
980
980
|
token: this.tokens.get(),
|
|
981
981
|
workspaceId: this.workspaceId
|
|
982
982
|
});
|
|
@@ -1023,7 +1023,7 @@ var WebhooksClient = class {
|
|
|
1023
1023
|
getEndpoint(endpointId, opts) {
|
|
1024
1024
|
return this.http.request({
|
|
1025
1025
|
method: "GET",
|
|
1026
|
-
path: `/webhooks/${endpointId}`,
|
|
1026
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}`,
|
|
1027
1027
|
token: this.tokens.get(),
|
|
1028
1028
|
workspaceId: this.workspaceId,
|
|
1029
1029
|
bust: opts?.bust
|
|
@@ -1032,7 +1032,7 @@ var WebhooksClient = class {
|
|
|
1032
1032
|
updateEndpoint(endpointId, input) {
|
|
1033
1033
|
return this.http.request({
|
|
1034
1034
|
method: "PATCH",
|
|
1035
|
-
path: `/webhooks/${endpointId}`,
|
|
1035
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}`,
|
|
1036
1036
|
body: input,
|
|
1037
1037
|
token: this.tokens.get(),
|
|
1038
1038
|
workspaceId: this.workspaceId
|
|
@@ -1041,7 +1041,7 @@ var WebhooksClient = class {
|
|
|
1041
1041
|
deleteEndpoint(endpointId) {
|
|
1042
1042
|
return this.http.request({
|
|
1043
1043
|
method: "DELETE",
|
|
1044
|
-
path: `/webhooks/${endpointId}`,
|
|
1044
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}`,
|
|
1045
1045
|
token: this.tokens.get(),
|
|
1046
1046
|
workspaceId: this.workspaceId
|
|
1047
1047
|
});
|
|
@@ -1049,7 +1049,7 @@ var WebhooksClient = class {
|
|
|
1049
1049
|
listDeliveries(endpointId, opts) {
|
|
1050
1050
|
return this.http.request({
|
|
1051
1051
|
method: "GET",
|
|
1052
|
-
path: `/webhooks/${endpointId}/deliveries`,
|
|
1052
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}/deliveries`,
|
|
1053
1053
|
token: this.tokens.get(),
|
|
1054
1054
|
workspaceId: this.workspaceId,
|
|
1055
1055
|
bust: opts?.bust
|
|
@@ -1058,7 +1058,7 @@ var WebhooksClient = class {
|
|
|
1058
1058
|
testEndpoint(endpointId) {
|
|
1059
1059
|
return this.http.request({
|
|
1060
1060
|
method: "POST",
|
|
1061
|
-
path: `/webhooks/${endpointId}/test`,
|
|
1061
|
+
path: `/webhooks/${encodeURIComponent(endpointId)}/test`,
|
|
1062
1062
|
token: this.tokens.get(),
|
|
1063
1063
|
workspaceId: this.workspaceId
|
|
1064
1064
|
});
|
|
@@ -1102,7 +1102,7 @@ var WorkspacesClient = class {
|
|
|
1102
1102
|
getWorkspace(id, opts) {
|
|
1103
1103
|
return this.http.request({
|
|
1104
1104
|
method: "GET",
|
|
1105
|
-
path: `/workspaces/${id}`,
|
|
1105
|
+
path: `/workspaces/${encodeURIComponent(id)}`,
|
|
1106
1106
|
token: this.tokens.get(),
|
|
1107
1107
|
bust: opts?.bust
|
|
1108
1108
|
});
|
|
@@ -1155,7 +1155,7 @@ var WorkspacesClient = class {
|
|
|
1155
1155
|
getRole(roleId, opts) {
|
|
1156
1156
|
return this.http.request({
|
|
1157
1157
|
method: "GET",
|
|
1158
|
-
path: `/workspaces/roles/${roleId}`,
|
|
1158
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}`,
|
|
1159
1159
|
token: this.tokens.get(),
|
|
1160
1160
|
workspaceId: this.workspaceId,
|
|
1161
1161
|
bust: opts?.bust
|
|
@@ -1164,7 +1164,7 @@ var WorkspacesClient = class {
|
|
|
1164
1164
|
updateRole(roleId, input) {
|
|
1165
1165
|
return this.http.request({
|
|
1166
1166
|
method: "PUT",
|
|
1167
|
-
path: `/workspaces/roles/${roleId}`,
|
|
1167
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}`,
|
|
1168
1168
|
body: input,
|
|
1169
1169
|
token: this.tokens.get(),
|
|
1170
1170
|
workspaceId: this.workspaceId
|
|
@@ -1173,7 +1173,7 @@ var WorkspacesClient = class {
|
|
|
1173
1173
|
removeRole(roleId) {
|
|
1174
1174
|
return this.http.request({
|
|
1175
1175
|
method: "DELETE",
|
|
1176
|
-
path: `/workspaces/roles/${roleId}`,
|
|
1176
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}`,
|
|
1177
1177
|
token: this.tokens.get(),
|
|
1178
1178
|
workspaceId: this.workspaceId
|
|
1179
1179
|
});
|
|
@@ -1181,7 +1181,7 @@ var WorkspacesClient = class {
|
|
|
1181
1181
|
getRolePermissions(roleId, opts) {
|
|
1182
1182
|
return this.http.request({
|
|
1183
1183
|
method: "GET",
|
|
1184
|
-
path: `/workspaces/roles/${roleId}/permissions`,
|
|
1184
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}/permissions`,
|
|
1185
1185
|
token: this.tokens.get(),
|
|
1186
1186
|
workspaceId: this.workspaceId,
|
|
1187
1187
|
bust: opts?.bust
|
|
@@ -1190,7 +1190,7 @@ var WorkspacesClient = class {
|
|
|
1190
1190
|
setRolePermissions(roleId, permissions) {
|
|
1191
1191
|
return this.http.request({
|
|
1192
1192
|
method: "POST",
|
|
1193
|
-
path: `/workspaces/roles/${roleId}/permissions`,
|
|
1193
|
+
path: `/workspaces/roles/${encodeURIComponent(roleId)}/permissions`,
|
|
1194
1194
|
body: { permissions },
|
|
1195
1195
|
token: this.tokens.get(),
|
|
1196
1196
|
workspaceId: this.workspaceId
|
|
@@ -1209,7 +1209,7 @@ var WorkspacesClient = class {
|
|
|
1209
1209
|
removeMember(userId) {
|
|
1210
1210
|
return this.http.request({
|
|
1211
1211
|
method: "DELETE",
|
|
1212
|
-
path: `/workspaces/members/${userId}`,
|
|
1212
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}`,
|
|
1213
1213
|
token: this.tokens.get(),
|
|
1214
1214
|
workspaceId: this.workspaceId
|
|
1215
1215
|
});
|
|
@@ -1217,7 +1217,7 @@ var WorkspacesClient = class {
|
|
|
1217
1217
|
getMemberRoles(userId, opts) {
|
|
1218
1218
|
return this.http.request({
|
|
1219
1219
|
method: "GET",
|
|
1220
|
-
path: `/workspaces/members/${userId}/roles`,
|
|
1220
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}/roles`,
|
|
1221
1221
|
token: this.tokens.get(),
|
|
1222
1222
|
workspaceId: this.workspaceId,
|
|
1223
1223
|
bust: opts?.bust
|
|
@@ -1226,7 +1226,7 @@ var WorkspacesClient = class {
|
|
|
1226
1226
|
addMemberRole(userId, roleId) {
|
|
1227
1227
|
return this.http.request({
|
|
1228
1228
|
method: "POST",
|
|
1229
|
-
path: `/workspaces/members/${userId}/roles`,
|
|
1229
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}/roles`,
|
|
1230
1230
|
body: { roleId },
|
|
1231
1231
|
token: this.tokens.get(),
|
|
1232
1232
|
workspaceId: this.workspaceId
|
|
@@ -1235,7 +1235,7 @@ var WorkspacesClient = class {
|
|
|
1235
1235
|
removeMemberRole(userId, roleId) {
|
|
1236
1236
|
return this.http.request({
|
|
1237
1237
|
method: "DELETE",
|
|
1238
|
-
path: `/workspaces/members/${userId}/roles/${roleId}`,
|
|
1238
|
+
path: `/workspaces/members/${encodeURIComponent(userId)}/roles/${encodeURIComponent(roleId)}`,
|
|
1239
1239
|
token: this.tokens.get(),
|
|
1240
1240
|
workspaceId: this.workspaceId
|
|
1241
1241
|
});
|
|
@@ -1262,7 +1262,7 @@ var WorkspacesClient = class {
|
|
|
1262
1262
|
cancelInvitation(inviteId) {
|
|
1263
1263
|
return this.http.request({
|
|
1264
1264
|
method: "DELETE",
|
|
1265
|
-
path: `/workspaces/invitations/${inviteId}`,
|
|
1265
|
+
path: `/workspaces/invitations/${encodeURIComponent(inviteId)}`,
|
|
1266
1266
|
token: this.tokens.get(),
|
|
1267
1267
|
workspaceId: this.workspaceId
|
|
1268
1268
|
});
|
|
@@ -1454,14 +1454,14 @@ var ConfigAdminClient = class {
|
|
|
1454
1454
|
getConfig(key, environment) {
|
|
1455
1455
|
return this.http.request({
|
|
1456
1456
|
method: "GET",
|
|
1457
|
-
path: `/admin/config/${key}${envQuery(environment)}`,
|
|
1457
|
+
path: `/admin/config/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1458
1458
|
token: this.adminToken
|
|
1459
1459
|
});
|
|
1460
1460
|
}
|
|
1461
1461
|
setConfig(key, input, environment) {
|
|
1462
1462
|
return this.http.request({
|
|
1463
1463
|
method: "PUT",
|
|
1464
|
-
path: `/admin/config/${key}${envQuery(environment)}`,
|
|
1464
|
+
path: `/admin/config/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1465
1465
|
body: input,
|
|
1466
1466
|
token: this.adminToken,
|
|
1467
1467
|
headers: this.actorHeaders
|
|
@@ -1470,7 +1470,7 @@ var ConfigAdminClient = class {
|
|
|
1470
1470
|
deleteConfig(key, environment) {
|
|
1471
1471
|
return this.http.request({
|
|
1472
1472
|
method: "DELETE",
|
|
1473
|
-
path: `/admin/config/${key}${envQuery(environment)}`,
|
|
1473
|
+
path: `/admin/config/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1474
1474
|
token: this.adminToken,
|
|
1475
1475
|
headers: this.actorHeaders
|
|
1476
1476
|
});
|
|
@@ -1478,14 +1478,14 @@ var ConfigAdminClient = class {
|
|
|
1478
1478
|
listConfigRevisions(key, environment) {
|
|
1479
1479
|
return this.http.request({
|
|
1480
1480
|
method: "GET",
|
|
1481
|
-
path: `/admin/config/${key}/revisions${envQuery(environment)}`,
|
|
1481
|
+
path: `/admin/config/${encodeURIComponent(key)}/revisions${envQuery(environment)}`,
|
|
1482
1482
|
token: this.adminToken
|
|
1483
1483
|
});
|
|
1484
1484
|
}
|
|
1485
1485
|
rollbackConfig(key, input, environment) {
|
|
1486
1486
|
return this.http.request({
|
|
1487
1487
|
method: "POST",
|
|
1488
|
-
path: `/admin/config/${key}/rollback${envQuery(environment)}`,
|
|
1488
|
+
path: `/admin/config/${encodeURIComponent(key)}/rollback${envQuery(environment)}`,
|
|
1489
1489
|
body: input,
|
|
1490
1490
|
token: this.adminToken,
|
|
1491
1491
|
headers: this.actorHeaders
|
|
@@ -1502,14 +1502,14 @@ var ConfigAdminClient = class {
|
|
|
1502
1502
|
getSecret(key, environment) {
|
|
1503
1503
|
return this.http.request({
|
|
1504
1504
|
method: "GET",
|
|
1505
|
-
path: `/admin/secrets/${key}${envQuery(environment)}`,
|
|
1505
|
+
path: `/admin/secrets/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1506
1506
|
token: this.adminToken
|
|
1507
1507
|
});
|
|
1508
1508
|
}
|
|
1509
1509
|
setSecret(key, input, environment) {
|
|
1510
1510
|
return this.http.request({
|
|
1511
1511
|
method: "PUT",
|
|
1512
|
-
path: `/admin/secrets/${key}${envQuery(environment)}`,
|
|
1512
|
+
path: `/admin/secrets/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1513
1513
|
body: input,
|
|
1514
1514
|
token: this.adminToken,
|
|
1515
1515
|
headers: this.actorHeaders
|
|
@@ -1518,7 +1518,7 @@ var ConfigAdminClient = class {
|
|
|
1518
1518
|
deleteSecret(key, environment) {
|
|
1519
1519
|
return this.http.request({
|
|
1520
1520
|
method: "DELETE",
|
|
1521
|
-
path: `/admin/secrets/${key}${envQuery(environment)}`,
|
|
1521
|
+
path: `/admin/secrets/${encodeURIComponent(key)}${envQuery(environment)}`,
|
|
1522
1522
|
token: this.adminToken,
|
|
1523
1523
|
headers: this.actorHeaders
|
|
1524
1524
|
});
|
|
@@ -1526,14 +1526,14 @@ var ConfigAdminClient = class {
|
|
|
1526
1526
|
listSecretRevisions(key, environment) {
|
|
1527
1527
|
return this.http.request({
|
|
1528
1528
|
method: "GET",
|
|
1529
|
-
path: `/admin/secrets/${key}/revisions${envQuery(environment)}`,
|
|
1529
|
+
path: `/admin/secrets/${encodeURIComponent(key)}/revisions${envQuery(environment)}`,
|
|
1530
1530
|
token: this.adminToken
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
rollbackSecret(key, input, environment) {
|
|
1534
1534
|
return this.http.request({
|
|
1535
1535
|
method: "POST",
|
|
1536
|
-
path: `/admin/secrets/${key}/rollback${envQuery(environment)}`,
|
|
1536
|
+
path: `/admin/secrets/${encodeURIComponent(key)}/rollback${envQuery(environment)}`,
|
|
1537
1537
|
body: input,
|
|
1538
1538
|
token: this.adminToken,
|
|
1539
1539
|
headers: this.actorHeaders
|
|
@@ -1543,7 +1543,7 @@ var ConfigAdminClient = class {
|
|
|
1543
1543
|
revealSecret(key, environment) {
|
|
1544
1544
|
return this.http.request({
|
|
1545
1545
|
method: "POST",
|
|
1546
|
-
path: `/admin/secrets/${key}/reveal${envQuery(environment)}`,
|
|
1546
|
+
path: `/admin/secrets/${encodeURIComponent(key)}/reveal${envQuery(environment)}`,
|
|
1547
1547
|
token: this.adminToken,
|
|
1548
1548
|
headers: this.actorHeaders
|
|
1549
1549
|
});
|
|
@@ -1571,7 +1571,7 @@ var CourierAdminClient = class {
|
|
|
1571
1571
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1572
1572
|
return this.http.request({
|
|
1573
1573
|
method: "GET",
|
|
1574
|
-
path: `/admin/templates/${type}${q}`,
|
|
1574
|
+
path: `/admin/templates/${encodeURIComponent(type)}${q}`,
|
|
1575
1575
|
token: this.adminToken
|
|
1576
1576
|
});
|
|
1577
1577
|
}
|
|
@@ -1579,7 +1579,7 @@ var CourierAdminClient = class {
|
|
|
1579
1579
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1580
1580
|
return this.http.request({
|
|
1581
1581
|
method: "PUT",
|
|
1582
|
-
path: `/admin/templates/${type}${q}`,
|
|
1582
|
+
path: `/admin/templates/${encodeURIComponent(type)}${q}`,
|
|
1583
1583
|
body: input,
|
|
1584
1584
|
token: this.adminToken,
|
|
1585
1585
|
headers: this.actorHeaders
|
|
@@ -1589,7 +1589,7 @@ var CourierAdminClient = class {
|
|
|
1589
1589
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1590
1590
|
return this.http.request({
|
|
1591
1591
|
method: "DELETE",
|
|
1592
|
-
path: `/admin/templates/${type}${q}`,
|
|
1592
|
+
path: `/admin/templates/${encodeURIComponent(type)}${q}`,
|
|
1593
1593
|
token: this.adminToken,
|
|
1594
1594
|
headers: this.actorHeaders
|
|
1595
1595
|
});
|
|
@@ -1598,7 +1598,7 @@ var CourierAdminClient = class {
|
|
|
1598
1598
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1599
1599
|
return this.http.request({
|
|
1600
1600
|
method: "GET",
|
|
1601
|
-
path: `/admin/templates/${type}/revisions${q}`,
|
|
1601
|
+
path: `/admin/templates/${encodeURIComponent(type)}/revisions${q}`,
|
|
1602
1602
|
token: this.adminToken
|
|
1603
1603
|
});
|
|
1604
1604
|
}
|
|
@@ -1606,7 +1606,7 @@ var CourierAdminClient = class {
|
|
|
1606
1606
|
const q = locale ? `?locale=${encodeURIComponent(locale)}` : "";
|
|
1607
1607
|
return this.http.request({
|
|
1608
1608
|
method: "POST",
|
|
1609
|
-
path: `/admin/templates/${type}/rollback${q}`,
|
|
1609
|
+
path: `/admin/templates/${encodeURIComponent(type)}/rollback${q}`,
|
|
1610
1610
|
body: input,
|
|
1611
1611
|
token: this.adminToken,
|
|
1612
1612
|
headers: this.actorHeaders
|