@dynamic-labs/sdk-api 0.195.0 → 0.196.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/package.json +1 -1
- package/src/apis/ServerApi.cjs +280 -0
- package/src/apis/ServerApi.d.ts +28 -28
- package/src/apis/ServerApi.js +280 -0
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -319,6 +319,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
319
319
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
320
320
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling addBusinessAccountMemberServer.');
|
|
321
321
|
}
|
|
322
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
323
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling addBusinessAccountMemberServer.');
|
|
324
|
+
}
|
|
322
325
|
if (requestParameters.addBusinessAccountMemberSdkRequest === null || requestParameters.addBusinessAccountMemberSdkRequest === undefined) {
|
|
323
326
|
throw new runtime.RequiredError('addBusinessAccountMemberSdkRequest', 'Required parameter requestParameters.addBusinessAccountMemberSdkRequest was null or undefined when calling addBusinessAccountMemberServer.');
|
|
324
327
|
}
|
|
@@ -328,6 +331,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
328
331
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
329
332
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
330
333
|
}
|
|
334
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
335
|
+
const token = this.configuration.accessToken;
|
|
336
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
337
|
+
if (tokenString) {
|
|
338
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
331
341
|
const response = await this.request({
|
|
332
342
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/members`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
333
343
|
method: 'POST',
|
|
@@ -436,12 +446,22 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
436
446
|
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
437
447
|
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling cancelBusinessAccountMemberInviteServer.');
|
|
438
448
|
}
|
|
449
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
450
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling cancelBusinessAccountMemberInviteServer.');
|
|
451
|
+
}
|
|
439
452
|
const queryParameters = {};
|
|
440
453
|
const headerParameters = {};
|
|
441
454
|
headerParameters['Content-Type'] = 'application/json';
|
|
442
455
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
443
456
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
444
457
|
}
|
|
458
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
459
|
+
const token = this.configuration.accessToken;
|
|
460
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
461
|
+
if (tokenString) {
|
|
462
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
445
465
|
const response = await this.request({
|
|
446
466
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/invites/{inviteId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
447
467
|
method: 'DELETE',
|
|
@@ -499,12 +519,22 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
499
519
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
500
520
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling createBusinessAccountActivityExportServer.');
|
|
501
521
|
}
|
|
522
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
523
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling createBusinessAccountActivityExportServer.');
|
|
524
|
+
}
|
|
502
525
|
const queryParameters = {};
|
|
503
526
|
const headerParameters = {};
|
|
504
527
|
headerParameters['Content-Type'] = 'application/json';
|
|
505
528
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
506
529
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
507
530
|
}
|
|
531
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
532
|
+
const token = this.configuration.accessToken;
|
|
533
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
534
|
+
if (tokenString) {
|
|
535
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
508
538
|
const response = await this.request({
|
|
509
539
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/activity/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
510
540
|
method: 'POST',
|
|
@@ -530,12 +560,22 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
530
560
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
531
561
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createBusinessAccountServer.');
|
|
532
562
|
}
|
|
563
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
564
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling createBusinessAccountServer.');
|
|
565
|
+
}
|
|
533
566
|
const queryParameters = {};
|
|
534
567
|
const headerParameters = {};
|
|
535
568
|
headerParameters['Content-Type'] = 'application/json';
|
|
536
569
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
537
570
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
538
571
|
}
|
|
572
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
573
|
+
const token = this.configuration.accessToken;
|
|
574
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
575
|
+
if (tokenString) {
|
|
576
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
539
579
|
const response = await this.request({
|
|
540
580
|
path: `/server/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
541
581
|
method: 'POST',
|
|
@@ -774,6 +814,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
774
814
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
775
815
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling defineBusinessAccountRoleServer.');
|
|
776
816
|
}
|
|
817
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
818
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling defineBusinessAccountRoleServer.');
|
|
819
|
+
}
|
|
777
820
|
if (requestParameters.defineBusinessAccountRoleSdkRequest === null || requestParameters.defineBusinessAccountRoleSdkRequest === undefined) {
|
|
778
821
|
throw new runtime.RequiredError('defineBusinessAccountRoleSdkRequest', 'Required parameter requestParameters.defineBusinessAccountRoleSdkRequest was null or undefined when calling defineBusinessAccountRoleServer.');
|
|
779
822
|
}
|
|
@@ -783,6 +826,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
783
826
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
784
827
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
785
828
|
}
|
|
829
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
830
|
+
const token = this.configuration.accessToken;
|
|
831
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
832
|
+
if (tokenString) {
|
|
833
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
786
836
|
const response = await this.request({
|
|
787
837
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
788
838
|
method: 'POST',
|
|
@@ -814,12 +864,22 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
814
864
|
if (requestParameters.role === null || requestParameters.role === undefined) {
|
|
815
865
|
throw new runtime.RequiredError('role', 'Required parameter requestParameters.role was null or undefined when calling deleteBusinessAccountRoleServer.');
|
|
816
866
|
}
|
|
867
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
868
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling deleteBusinessAccountRoleServer.');
|
|
869
|
+
}
|
|
817
870
|
const queryParameters = {};
|
|
818
871
|
const headerParameters = {};
|
|
819
872
|
headerParameters['Content-Type'] = 'application/json';
|
|
820
873
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
821
874
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
822
875
|
}
|
|
876
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
877
|
+
const token = this.configuration.accessToken;
|
|
878
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
879
|
+
if (tokenString) {
|
|
880
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
823
883
|
const response = await this.request({
|
|
824
884
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/roles/{role}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters.role))),
|
|
825
885
|
method: 'DELETE',
|
|
@@ -891,11 +951,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
891
951
|
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
892
952
|
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling downloadBusinessAccountActivityExportServer.');
|
|
893
953
|
}
|
|
954
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
955
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling downloadBusinessAccountActivityExportServer.');
|
|
956
|
+
}
|
|
894
957
|
const queryParameters = {};
|
|
895
958
|
const headerParameters = {};
|
|
896
959
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
897
960
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
898
961
|
}
|
|
962
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
963
|
+
const token = this.configuration.accessToken;
|
|
964
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
965
|
+
if (tokenString) {
|
|
966
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
899
969
|
const response = await this.request({
|
|
900
970
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/activity/exports/{exportId}/download`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
901
971
|
method: 'GET',
|
|
@@ -926,11 +996,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
926
996
|
if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
|
|
927
997
|
throw new runtime.RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling executeBusinessAccountProposalServer.');
|
|
928
998
|
}
|
|
999
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1000
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling executeBusinessAccountProposalServer.');
|
|
1001
|
+
}
|
|
929
1002
|
const queryParameters = {};
|
|
930
1003
|
const headerParameters = {};
|
|
931
1004
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
932
1005
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
933
1006
|
}
|
|
1007
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1008
|
+
const token = this.configuration.accessToken;
|
|
1009
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1010
|
+
if (tokenString) {
|
|
1011
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
934
1014
|
const response = await this.request({
|
|
935
1015
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/execute`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
|
|
936
1016
|
method: 'POST',
|
|
@@ -1029,11 +1109,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1029
1109
|
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
1030
1110
|
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling getBusinessAccountActivityExportServer.');
|
|
1031
1111
|
}
|
|
1112
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1113
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountActivityExportServer.');
|
|
1114
|
+
}
|
|
1032
1115
|
const queryParameters = {};
|
|
1033
1116
|
const headerParameters = {};
|
|
1034
1117
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1035
1118
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1036
1119
|
}
|
|
1120
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1121
|
+
const token = this.configuration.accessToken;
|
|
1122
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1123
|
+
if (tokenString) {
|
|
1124
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1037
1127
|
const response = await this.request({
|
|
1038
1128
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/activity/exports/{exportId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
1039
1129
|
method: 'GET',
|
|
@@ -1060,6 +1150,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1060
1150
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1061
1151
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountActivityServer.');
|
|
1062
1152
|
}
|
|
1153
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1154
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountActivityServer.');
|
|
1155
|
+
}
|
|
1063
1156
|
const queryParameters = {};
|
|
1064
1157
|
if (requestParameters.limit !== undefined) {
|
|
1065
1158
|
queryParameters['limit'] = requestParameters.limit;
|
|
@@ -1071,6 +1164,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1071
1164
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1072
1165
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1073
1166
|
}
|
|
1167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1168
|
+
const token = this.configuration.accessToken;
|
|
1169
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1170
|
+
if (tokenString) {
|
|
1171
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1074
1174
|
const response = await this.request({
|
|
1075
1175
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/activity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1076
1176
|
method: 'GET',
|
|
@@ -1098,11 +1198,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1098
1198
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1099
1199
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountByIdServer.');
|
|
1100
1200
|
}
|
|
1201
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1202
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountByIdServer.');
|
|
1203
|
+
}
|
|
1101
1204
|
const queryParameters = {};
|
|
1102
1205
|
const headerParameters = {};
|
|
1103
1206
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1104
1207
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1105
1208
|
}
|
|
1209
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1210
|
+
const token = this.configuration.accessToken;
|
|
1211
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1212
|
+
if (tokenString) {
|
|
1213
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1106
1216
|
const response = await this.request({
|
|
1107
1217
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1108
1218
|
method: 'GET',
|
|
@@ -1130,11 +1240,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1130
1240
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1131
1241
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountGovernanceServer.');
|
|
1132
1242
|
}
|
|
1243
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1244
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountGovernanceServer.');
|
|
1245
|
+
}
|
|
1133
1246
|
const queryParameters = {};
|
|
1134
1247
|
const headerParameters = {};
|
|
1135
1248
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1136
1249
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1137
1250
|
}
|
|
1251
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1252
|
+
const token = this.configuration.accessToken;
|
|
1253
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1254
|
+
if (tokenString) {
|
|
1255
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1138
1258
|
const response = await this.request({
|
|
1139
1259
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1140
1260
|
method: 'GET',
|
|
@@ -1162,11 +1282,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1162
1282
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1163
1283
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountPolicyLayerServer.');
|
|
1164
1284
|
}
|
|
1285
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1286
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountPolicyLayerServer.');
|
|
1287
|
+
}
|
|
1165
1288
|
const queryParameters = {};
|
|
1166
1289
|
const headerParameters = {};
|
|
1167
1290
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1168
1291
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1169
1292
|
}
|
|
1293
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1294
|
+
const token = this.configuration.accessToken;
|
|
1295
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1296
|
+
if (tokenString) {
|
|
1297
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1170
1300
|
const response = await this.request({
|
|
1171
1301
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1172
1302
|
method: 'GET',
|
|
@@ -1197,11 +1327,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1197
1327
|
if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
|
|
1198
1328
|
throw new runtime.RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling getBusinessAccountProposalServer.');
|
|
1199
1329
|
}
|
|
1330
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1331
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountProposalServer.');
|
|
1332
|
+
}
|
|
1200
1333
|
const queryParameters = {};
|
|
1201
1334
|
const headerParameters = {};
|
|
1202
1335
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1203
1336
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1204
1337
|
}
|
|
1338
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1339
|
+
const token = this.configuration.accessToken;
|
|
1340
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1341
|
+
if (tokenString) {
|
|
1342
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1205
1345
|
const response = await this.request({
|
|
1206
1346
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
|
|
1207
1347
|
method: 'GET',
|
|
@@ -1485,6 +1625,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1485
1625
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1486
1626
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
1487
1627
|
}
|
|
1628
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1629
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
1630
|
+
}
|
|
1488
1631
|
if (requestParameters.linkBusinessAccountWalletSdkRequest === null || requestParameters.linkBusinessAccountWalletSdkRequest === undefined) {
|
|
1489
1632
|
throw new runtime.RequiredError('linkBusinessAccountWalletSdkRequest', 'Required parameter requestParameters.linkBusinessAccountWalletSdkRequest was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
1490
1633
|
}
|
|
@@ -1497,6 +1640,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1497
1640
|
if (requestParameters.xDynWalletApiKey !== undefined && requestParameters.xDynWalletApiKey !== null) {
|
|
1498
1641
|
headerParameters['x-dyn-wallet-api-key'] = String(requestParameters.xDynWalletApiKey);
|
|
1499
1642
|
}
|
|
1643
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1644
|
+
const token = this.configuration.accessToken;
|
|
1645
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1646
|
+
if (tokenString) {
|
|
1647
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1500
1650
|
const response = await this.request({
|
|
1501
1651
|
path: `/server/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1502
1652
|
method: 'POST',
|
|
@@ -1525,11 +1675,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1525
1675
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1526
1676
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling listBusinessAccountMemberInvitesServer.');
|
|
1527
1677
|
}
|
|
1678
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1679
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountMemberInvitesServer.');
|
|
1680
|
+
}
|
|
1528
1681
|
const queryParameters = {};
|
|
1529
1682
|
const headerParameters = {};
|
|
1530
1683
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1531
1684
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1532
1685
|
}
|
|
1686
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1687
|
+
const token = this.configuration.accessToken;
|
|
1688
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1689
|
+
if (tokenString) {
|
|
1690
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1533
1693
|
const response = await this.request({
|
|
1534
1694
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1535
1695
|
method: 'GET',
|
|
@@ -1554,11 +1714,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1554
1714
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1555
1715
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling listBusinessAccountProposalsAwaitingApprovalServer.');
|
|
1556
1716
|
}
|
|
1717
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1718
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountProposalsAwaitingApprovalServer.');
|
|
1719
|
+
}
|
|
1557
1720
|
const queryParameters = {};
|
|
1558
1721
|
const headerParameters = {};
|
|
1559
1722
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1560
1723
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1561
1724
|
}
|
|
1725
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1726
|
+
const token = this.configuration.accessToken;
|
|
1727
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1728
|
+
if (tokenString) {
|
|
1729
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1562
1732
|
const response = await this.request({
|
|
1563
1733
|
path: `/server/{environmentId}/businessAccounts/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1564
1734
|
method: 'GET',
|
|
@@ -1586,6 +1756,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1586
1756
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1587
1757
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling listBusinessAccountProposalsServer.');
|
|
1588
1758
|
}
|
|
1759
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1760
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountProposalsServer.');
|
|
1761
|
+
}
|
|
1589
1762
|
const queryParameters = {};
|
|
1590
1763
|
if (requestParameters.status !== undefined) {
|
|
1591
1764
|
queryParameters['status'] = requestParameters.status;
|
|
@@ -1594,6 +1767,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1594
1767
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1595
1768
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1596
1769
|
}
|
|
1770
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1771
|
+
const token = this.configuration.accessToken;
|
|
1772
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1773
|
+
if (tokenString) {
|
|
1774
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1597
1777
|
const response = await this.request({
|
|
1598
1778
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1599
1779
|
method: 'GET',
|
|
@@ -1621,11 +1801,21 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1621
1801
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1622
1802
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling listBusinessAccountRolesServer.');
|
|
1623
1803
|
}
|
|
1804
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1805
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountRolesServer.');
|
|
1806
|
+
}
|
|
1624
1807
|
const queryParameters = {};
|
|
1625
1808
|
const headerParameters = {};
|
|
1626
1809
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1627
1810
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1628
1811
|
}
|
|
1812
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1813
|
+
const token = this.configuration.accessToken;
|
|
1814
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1815
|
+
if (tokenString) {
|
|
1816
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1629
1819
|
const response = await this.request({
|
|
1630
1820
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1631
1821
|
method: 'GET',
|
|
@@ -1649,6 +1839,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1649
1839
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1650
1840
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling listBusinessAccountsServer.');
|
|
1651
1841
|
}
|
|
1842
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1843
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountsServer.');
|
|
1844
|
+
}
|
|
1652
1845
|
const queryParameters = {};
|
|
1653
1846
|
if (requestParameters.externalRef) {
|
|
1654
1847
|
queryParameters['externalRef'] = requestParameters.externalRef;
|
|
@@ -1657,6 +1850,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1657
1850
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1658
1851
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1659
1852
|
}
|
|
1853
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1854
|
+
const token = this.configuration.accessToken;
|
|
1855
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1856
|
+
if (tokenString) {
|
|
1857
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1660
1860
|
const response = await this.request({
|
|
1661
1861
|
path: `/server/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1662
1862
|
method: 'GET',
|
|
@@ -1723,12 +1923,22 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1723
1923
|
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
1724
1924
|
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling removeBusinessAccountMemberServer.');
|
|
1725
1925
|
}
|
|
1926
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1927
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling removeBusinessAccountMemberServer.');
|
|
1928
|
+
}
|
|
1726
1929
|
const queryParameters = {};
|
|
1727
1930
|
const headerParameters = {};
|
|
1728
1931
|
headerParameters['Content-Type'] = 'application/json';
|
|
1729
1932
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1730
1933
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1731
1934
|
}
|
|
1935
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1936
|
+
const token = this.configuration.accessToken;
|
|
1937
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1938
|
+
if (tokenString) {
|
|
1939
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1732
1942
|
const response = await this.request({
|
|
1733
1943
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
1734
1944
|
method: 'DELETE',
|
|
@@ -1763,6 +1973,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1763
1973
|
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
1764
1974
|
throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling removeBusinessAccountSignerServer.');
|
|
1765
1975
|
}
|
|
1976
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
1977
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling removeBusinessAccountSignerServer.');
|
|
1978
|
+
}
|
|
1766
1979
|
const queryParameters = {};
|
|
1767
1980
|
const headerParameters = {};
|
|
1768
1981
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -1772,6 +1985,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1772
1985
|
if (requestParameters.xDynWalletApiKey !== undefined && requestParameters.xDynWalletApiKey !== null) {
|
|
1773
1986
|
headerParameters['x-dyn-wallet-api-key'] = String(requestParameters.xDynWalletApiKey);
|
|
1774
1987
|
}
|
|
1988
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1989
|
+
const token = this.configuration.accessToken;
|
|
1990
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
1991
|
+
if (tokenString) {
|
|
1992
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1775
1995
|
const response = await this.request({
|
|
1776
1996
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
1777
1997
|
method: 'DELETE',
|
|
@@ -1803,6 +2023,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1803
2023
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1804
2024
|
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling removeBusinessAccountWalletServer.');
|
|
1805
2025
|
}
|
|
2026
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
2027
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling removeBusinessAccountWalletServer.');
|
|
2028
|
+
}
|
|
1806
2029
|
const queryParameters = {};
|
|
1807
2030
|
const headerParameters = {};
|
|
1808
2031
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -1812,6 +2035,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1812
2035
|
if (requestParameters.xDynWalletApiKey !== undefined && requestParameters.xDynWalletApiKey !== null) {
|
|
1813
2036
|
headerParameters['x-dyn-wallet-api-key'] = String(requestParameters.xDynWalletApiKey);
|
|
1814
2037
|
}
|
|
2038
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2039
|
+
const token = this.configuration.accessToken;
|
|
2040
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
2041
|
+
if (tokenString) {
|
|
2042
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
1815
2045
|
const response = await this.request({
|
|
1816
2046
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1817
2047
|
method: 'DELETE',
|
|
@@ -1917,6 +2147,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1917
2147
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
1918
2148
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling setBusinessAccountGovernanceServer.');
|
|
1919
2149
|
}
|
|
2150
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
2151
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling setBusinessAccountGovernanceServer.');
|
|
2152
|
+
}
|
|
1920
2153
|
if (requestParameters.setBusinessAccountGovernanceSdkRequest === null || requestParameters.setBusinessAccountGovernanceSdkRequest === undefined) {
|
|
1921
2154
|
throw new runtime.RequiredError('setBusinessAccountGovernanceSdkRequest', 'Required parameter requestParameters.setBusinessAccountGovernanceSdkRequest was null or undefined when calling setBusinessAccountGovernanceServer.');
|
|
1922
2155
|
}
|
|
@@ -1926,6 +2159,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1926
2159
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
1927
2160
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
1928
2161
|
}
|
|
2162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2163
|
+
const token = this.configuration.accessToken;
|
|
2164
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
2165
|
+
if (tokenString) {
|
|
2166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
1929
2169
|
const response = await this.request({
|
|
1930
2170
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
1931
2171
|
method: 'PUT',
|
|
@@ -2136,6 +2376,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2136
2376
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
2137
2377
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling transferBusinessAccountOwnershipServer.');
|
|
2138
2378
|
}
|
|
2379
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
2380
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling transferBusinessAccountOwnershipServer.');
|
|
2381
|
+
}
|
|
2139
2382
|
if (requestParameters.transferBusinessAccountOwnershipSdkRequest === null || requestParameters.transferBusinessAccountOwnershipSdkRequest === undefined) {
|
|
2140
2383
|
throw new runtime.RequiredError('transferBusinessAccountOwnershipSdkRequest', 'Required parameter requestParameters.transferBusinessAccountOwnershipSdkRequest was null or undefined when calling transferBusinessAccountOwnershipServer.');
|
|
2141
2384
|
}
|
|
@@ -2145,6 +2388,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2145
2388
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
2146
2389
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
2147
2390
|
}
|
|
2391
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2392
|
+
const token = this.configuration.accessToken;
|
|
2393
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
2394
|
+
if (tokenString) {
|
|
2395
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2148
2398
|
const response = await this.request({
|
|
2149
2399
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/transferOwnership`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
2150
2400
|
method: 'POST',
|
|
@@ -2176,6 +2426,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2176
2426
|
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
2177
2427
|
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling updateBusinessAccountMemberRoleServer.');
|
|
2178
2428
|
}
|
|
2429
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
2430
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling updateBusinessAccountMemberRoleServer.');
|
|
2431
|
+
}
|
|
2179
2432
|
if (requestParameters.updateBusinessAccountMemberRoleSdkRequest === null || requestParameters.updateBusinessAccountMemberRoleSdkRequest === undefined) {
|
|
2180
2433
|
throw new runtime.RequiredError('updateBusinessAccountMemberRoleSdkRequest', 'Required parameter requestParameters.updateBusinessAccountMemberRoleSdkRequest was null or undefined when calling updateBusinessAccountMemberRoleServer.');
|
|
2181
2434
|
}
|
|
@@ -2185,6 +2438,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2185
2438
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
2186
2439
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
2187
2440
|
}
|
|
2441
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2442
|
+
const token = this.configuration.accessToken;
|
|
2443
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
2444
|
+
if (tokenString) {
|
|
2445
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2188
2448
|
const response = await this.request({
|
|
2189
2449
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
2190
2450
|
method: 'PATCH',
|
|
@@ -2213,6 +2473,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2213
2473
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
2214
2474
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
2215
2475
|
}
|
|
2476
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
2477
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
2478
|
+
}
|
|
2216
2479
|
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
2217
2480
|
throw new runtime.RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
2218
2481
|
}
|
|
@@ -2222,6 +2485,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2222
2485
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
2223
2486
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
2224
2487
|
}
|
|
2488
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2489
|
+
const token = this.configuration.accessToken;
|
|
2490
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
2491
|
+
if (tokenString) {
|
|
2492
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2225
2495
|
const response = await this.request({
|
|
2226
2496
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
2227
2497
|
method: 'PATCH',
|
|
@@ -2249,6 +2519,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2249
2519
|
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
2250
2520
|
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountServer.');
|
|
2251
2521
|
}
|
|
2522
|
+
if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
|
|
2523
|
+
throw new runtime.RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling updateBusinessAccountServer.');
|
|
2524
|
+
}
|
|
2252
2525
|
if (requestParameters.updateBusinessAccountSdkRequest === null || requestParameters.updateBusinessAccountSdkRequest === undefined) {
|
|
2253
2526
|
throw new runtime.RequiredError('updateBusinessAccountSdkRequest', 'Required parameter requestParameters.updateBusinessAccountSdkRequest was null or undefined when calling updateBusinessAccountServer.');
|
|
2254
2527
|
}
|
|
@@ -2258,6 +2531,13 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
2258
2531
|
if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
|
|
2259
2532
|
headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
|
|
2260
2533
|
}
|
|
2534
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2535
|
+
const token = this.configuration.accessToken;
|
|
2536
|
+
const tokenString = await token("serverSignerAuth", []);
|
|
2537
|
+
if (tokenString) {
|
|
2538
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2261
2541
|
const response = await this.request({
|
|
2262
2542
|
path: `/server/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
2263
2543
|
method: 'PATCH',
|