@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.
@@ -317,6 +317,9 @@ class ServerApi extends BaseAPI {
317
317
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
318
318
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling addBusinessAccountMemberServer.');
319
319
  }
320
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
321
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling addBusinessAccountMemberServer.');
322
+ }
320
323
  if (requestParameters.addBusinessAccountMemberSdkRequest === null || requestParameters.addBusinessAccountMemberSdkRequest === undefined) {
321
324
  throw new RequiredError('addBusinessAccountMemberSdkRequest', 'Required parameter requestParameters.addBusinessAccountMemberSdkRequest was null or undefined when calling addBusinessAccountMemberServer.');
322
325
  }
@@ -326,6 +329,13 @@ class ServerApi extends BaseAPI {
326
329
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
327
330
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
328
331
  }
332
+ if (this.configuration && this.configuration.accessToken) {
333
+ const token = this.configuration.accessToken;
334
+ const tokenString = await token("serverSignerAuth", []);
335
+ if (tokenString) {
336
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
337
+ }
338
+ }
329
339
  const response = await this.request({
330
340
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/members`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
331
341
  method: 'POST',
@@ -434,12 +444,22 @@ class ServerApi extends BaseAPI {
434
444
  if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
435
445
  throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling cancelBusinessAccountMemberInviteServer.');
436
446
  }
447
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
448
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling cancelBusinessAccountMemberInviteServer.');
449
+ }
437
450
  const queryParameters = {};
438
451
  const headerParameters = {};
439
452
  headerParameters['Content-Type'] = 'application/json';
440
453
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
441
454
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
442
455
  }
456
+ if (this.configuration && this.configuration.accessToken) {
457
+ const token = this.configuration.accessToken;
458
+ const tokenString = await token("serverSignerAuth", []);
459
+ if (tokenString) {
460
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
461
+ }
462
+ }
443
463
  const response = await this.request({
444
464
  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))),
445
465
  method: 'DELETE',
@@ -497,12 +517,22 @@ class ServerApi extends BaseAPI {
497
517
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
498
518
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling createBusinessAccountActivityExportServer.');
499
519
  }
520
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
521
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling createBusinessAccountActivityExportServer.');
522
+ }
500
523
  const queryParameters = {};
501
524
  const headerParameters = {};
502
525
  headerParameters['Content-Type'] = 'application/json';
503
526
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
504
527
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
505
528
  }
529
+ if (this.configuration && this.configuration.accessToken) {
530
+ const token = this.configuration.accessToken;
531
+ const tokenString = await token("serverSignerAuth", []);
532
+ if (tokenString) {
533
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
534
+ }
535
+ }
506
536
  const response = await this.request({
507
537
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/activity/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
508
538
  method: 'POST',
@@ -528,12 +558,22 @@ class ServerApi extends BaseAPI {
528
558
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
529
559
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createBusinessAccountServer.');
530
560
  }
561
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
562
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling createBusinessAccountServer.');
563
+ }
531
564
  const queryParameters = {};
532
565
  const headerParameters = {};
533
566
  headerParameters['Content-Type'] = 'application/json';
534
567
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
535
568
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
536
569
  }
570
+ if (this.configuration && this.configuration.accessToken) {
571
+ const token = this.configuration.accessToken;
572
+ const tokenString = await token("serverSignerAuth", []);
573
+ if (tokenString) {
574
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
575
+ }
576
+ }
537
577
  const response = await this.request({
538
578
  path: `/server/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
539
579
  method: 'POST',
@@ -772,6 +812,9 @@ class ServerApi extends BaseAPI {
772
812
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
773
813
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling defineBusinessAccountRoleServer.');
774
814
  }
815
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
816
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling defineBusinessAccountRoleServer.');
817
+ }
775
818
  if (requestParameters.defineBusinessAccountRoleSdkRequest === null || requestParameters.defineBusinessAccountRoleSdkRequest === undefined) {
776
819
  throw new RequiredError('defineBusinessAccountRoleSdkRequest', 'Required parameter requestParameters.defineBusinessAccountRoleSdkRequest was null or undefined when calling defineBusinessAccountRoleServer.');
777
820
  }
@@ -781,6 +824,13 @@ class ServerApi extends BaseAPI {
781
824
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
782
825
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
783
826
  }
827
+ if (this.configuration && this.configuration.accessToken) {
828
+ const token = this.configuration.accessToken;
829
+ const tokenString = await token("serverSignerAuth", []);
830
+ if (tokenString) {
831
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
832
+ }
833
+ }
784
834
  const response = await this.request({
785
835
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
786
836
  method: 'POST',
@@ -812,12 +862,22 @@ class ServerApi extends BaseAPI {
812
862
  if (requestParameters.role === null || requestParameters.role === undefined) {
813
863
  throw new RequiredError('role', 'Required parameter requestParameters.role was null or undefined when calling deleteBusinessAccountRoleServer.');
814
864
  }
865
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
866
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling deleteBusinessAccountRoleServer.');
867
+ }
815
868
  const queryParameters = {};
816
869
  const headerParameters = {};
817
870
  headerParameters['Content-Type'] = 'application/json';
818
871
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
819
872
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
820
873
  }
874
+ if (this.configuration && this.configuration.accessToken) {
875
+ const token = this.configuration.accessToken;
876
+ const tokenString = await token("serverSignerAuth", []);
877
+ if (tokenString) {
878
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
879
+ }
880
+ }
821
881
  const response = await this.request({
822
882
  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))),
823
883
  method: 'DELETE',
@@ -889,11 +949,21 @@ class ServerApi extends BaseAPI {
889
949
  if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
890
950
  throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling downloadBusinessAccountActivityExportServer.');
891
951
  }
952
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
953
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling downloadBusinessAccountActivityExportServer.');
954
+ }
892
955
  const queryParameters = {};
893
956
  const headerParameters = {};
894
957
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
895
958
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
896
959
  }
960
+ if (this.configuration && this.configuration.accessToken) {
961
+ const token = this.configuration.accessToken;
962
+ const tokenString = await token("serverSignerAuth", []);
963
+ if (tokenString) {
964
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
965
+ }
966
+ }
897
967
  const response = await this.request({
898
968
  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))),
899
969
  method: 'GET',
@@ -924,11 +994,21 @@ class ServerApi extends BaseAPI {
924
994
  if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
925
995
  throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling executeBusinessAccountProposalServer.');
926
996
  }
997
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
998
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling executeBusinessAccountProposalServer.');
999
+ }
927
1000
  const queryParameters = {};
928
1001
  const headerParameters = {};
929
1002
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
930
1003
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
931
1004
  }
1005
+ if (this.configuration && this.configuration.accessToken) {
1006
+ const token = this.configuration.accessToken;
1007
+ const tokenString = await token("serverSignerAuth", []);
1008
+ if (tokenString) {
1009
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1010
+ }
1011
+ }
932
1012
  const response = await this.request({
933
1013
  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))),
934
1014
  method: 'POST',
@@ -1027,11 +1107,21 @@ class ServerApi extends BaseAPI {
1027
1107
  if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
1028
1108
  throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling getBusinessAccountActivityExportServer.');
1029
1109
  }
1110
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1111
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountActivityExportServer.');
1112
+ }
1030
1113
  const queryParameters = {};
1031
1114
  const headerParameters = {};
1032
1115
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1033
1116
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1034
1117
  }
1118
+ if (this.configuration && this.configuration.accessToken) {
1119
+ const token = this.configuration.accessToken;
1120
+ const tokenString = await token("serverSignerAuth", []);
1121
+ if (tokenString) {
1122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1123
+ }
1124
+ }
1035
1125
  const response = await this.request({
1036
1126
  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))),
1037
1127
  method: 'GET',
@@ -1058,6 +1148,9 @@ class ServerApi extends BaseAPI {
1058
1148
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1059
1149
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountActivityServer.');
1060
1150
  }
1151
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1152
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountActivityServer.');
1153
+ }
1061
1154
  const queryParameters = {};
1062
1155
  if (requestParameters.limit !== undefined) {
1063
1156
  queryParameters['limit'] = requestParameters.limit;
@@ -1069,6 +1162,13 @@ class ServerApi extends BaseAPI {
1069
1162
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1070
1163
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1071
1164
  }
1165
+ if (this.configuration && this.configuration.accessToken) {
1166
+ const token = this.configuration.accessToken;
1167
+ const tokenString = await token("serverSignerAuth", []);
1168
+ if (tokenString) {
1169
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1170
+ }
1171
+ }
1072
1172
  const response = await this.request({
1073
1173
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/activity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1074
1174
  method: 'GET',
@@ -1096,11 +1196,21 @@ class ServerApi extends BaseAPI {
1096
1196
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1097
1197
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountByIdServer.');
1098
1198
  }
1199
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1200
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountByIdServer.');
1201
+ }
1099
1202
  const queryParameters = {};
1100
1203
  const headerParameters = {};
1101
1204
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1102
1205
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1103
1206
  }
1207
+ if (this.configuration && this.configuration.accessToken) {
1208
+ const token = this.configuration.accessToken;
1209
+ const tokenString = await token("serverSignerAuth", []);
1210
+ if (tokenString) {
1211
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1212
+ }
1213
+ }
1104
1214
  const response = await this.request({
1105
1215
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1106
1216
  method: 'GET',
@@ -1128,11 +1238,21 @@ class ServerApi extends BaseAPI {
1128
1238
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1129
1239
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountGovernanceServer.');
1130
1240
  }
1241
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1242
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountGovernanceServer.');
1243
+ }
1131
1244
  const queryParameters = {};
1132
1245
  const headerParameters = {};
1133
1246
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1134
1247
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1135
1248
  }
1249
+ if (this.configuration && this.configuration.accessToken) {
1250
+ const token = this.configuration.accessToken;
1251
+ const tokenString = await token("serverSignerAuth", []);
1252
+ if (tokenString) {
1253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1254
+ }
1255
+ }
1136
1256
  const response = await this.request({
1137
1257
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1138
1258
  method: 'GET',
@@ -1160,11 +1280,21 @@ class ServerApi extends BaseAPI {
1160
1280
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1161
1281
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountPolicyLayerServer.');
1162
1282
  }
1283
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1284
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountPolicyLayerServer.');
1285
+ }
1163
1286
  const queryParameters = {};
1164
1287
  const headerParameters = {};
1165
1288
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1166
1289
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1167
1290
  }
1291
+ if (this.configuration && this.configuration.accessToken) {
1292
+ const token = this.configuration.accessToken;
1293
+ const tokenString = await token("serverSignerAuth", []);
1294
+ if (tokenString) {
1295
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1296
+ }
1297
+ }
1168
1298
  const response = await this.request({
1169
1299
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1170
1300
  method: 'GET',
@@ -1195,11 +1325,21 @@ class ServerApi extends BaseAPI {
1195
1325
  if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
1196
1326
  throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling getBusinessAccountProposalServer.');
1197
1327
  }
1328
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1329
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling getBusinessAccountProposalServer.');
1330
+ }
1198
1331
  const queryParameters = {};
1199
1332
  const headerParameters = {};
1200
1333
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1201
1334
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1202
1335
  }
1336
+ if (this.configuration && this.configuration.accessToken) {
1337
+ const token = this.configuration.accessToken;
1338
+ const tokenString = await token("serverSignerAuth", []);
1339
+ if (tokenString) {
1340
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1341
+ }
1342
+ }
1203
1343
  const response = await this.request({
1204
1344
  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))),
1205
1345
  method: 'GET',
@@ -1483,6 +1623,9 @@ class ServerApi extends BaseAPI {
1483
1623
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1484
1624
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling linkBusinessAccountWalletServer.');
1485
1625
  }
1626
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1627
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling linkBusinessAccountWalletServer.');
1628
+ }
1486
1629
  if (requestParameters.linkBusinessAccountWalletSdkRequest === null || requestParameters.linkBusinessAccountWalletSdkRequest === undefined) {
1487
1630
  throw new RequiredError('linkBusinessAccountWalletSdkRequest', 'Required parameter requestParameters.linkBusinessAccountWalletSdkRequest was null or undefined when calling linkBusinessAccountWalletServer.');
1488
1631
  }
@@ -1495,6 +1638,13 @@ class ServerApi extends BaseAPI {
1495
1638
  if (requestParameters.xDynWalletApiKey !== undefined && requestParameters.xDynWalletApiKey !== null) {
1496
1639
  headerParameters['x-dyn-wallet-api-key'] = String(requestParameters.xDynWalletApiKey);
1497
1640
  }
1641
+ if (this.configuration && this.configuration.accessToken) {
1642
+ const token = this.configuration.accessToken;
1643
+ const tokenString = await token("serverSignerAuth", []);
1644
+ if (tokenString) {
1645
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1646
+ }
1647
+ }
1498
1648
  const response = await this.request({
1499
1649
  path: `/server/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1500
1650
  method: 'POST',
@@ -1523,11 +1673,21 @@ class ServerApi extends BaseAPI {
1523
1673
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1524
1674
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling listBusinessAccountMemberInvitesServer.');
1525
1675
  }
1676
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1677
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountMemberInvitesServer.');
1678
+ }
1526
1679
  const queryParameters = {};
1527
1680
  const headerParameters = {};
1528
1681
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1529
1682
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1530
1683
  }
1684
+ if (this.configuration && this.configuration.accessToken) {
1685
+ const token = this.configuration.accessToken;
1686
+ const tokenString = await token("serverSignerAuth", []);
1687
+ if (tokenString) {
1688
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1689
+ }
1690
+ }
1531
1691
  const response = await this.request({
1532
1692
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1533
1693
  method: 'GET',
@@ -1552,11 +1712,21 @@ class ServerApi extends BaseAPI {
1552
1712
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1553
1713
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling listBusinessAccountProposalsAwaitingApprovalServer.');
1554
1714
  }
1715
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1716
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountProposalsAwaitingApprovalServer.');
1717
+ }
1555
1718
  const queryParameters = {};
1556
1719
  const headerParameters = {};
1557
1720
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1558
1721
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1559
1722
  }
1723
+ if (this.configuration && this.configuration.accessToken) {
1724
+ const token = this.configuration.accessToken;
1725
+ const tokenString = await token("serverSignerAuth", []);
1726
+ if (tokenString) {
1727
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1728
+ }
1729
+ }
1560
1730
  const response = await this.request({
1561
1731
  path: `/server/{environmentId}/businessAccounts/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1562
1732
  method: 'GET',
@@ -1584,6 +1754,9 @@ class ServerApi extends BaseAPI {
1584
1754
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1585
1755
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling listBusinessAccountProposalsServer.');
1586
1756
  }
1757
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1758
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountProposalsServer.');
1759
+ }
1587
1760
  const queryParameters = {};
1588
1761
  if (requestParameters.status !== undefined) {
1589
1762
  queryParameters['status'] = requestParameters.status;
@@ -1592,6 +1765,13 @@ class ServerApi extends BaseAPI {
1592
1765
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1593
1766
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1594
1767
  }
1768
+ if (this.configuration && this.configuration.accessToken) {
1769
+ const token = this.configuration.accessToken;
1770
+ const tokenString = await token("serverSignerAuth", []);
1771
+ if (tokenString) {
1772
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1773
+ }
1774
+ }
1595
1775
  const response = await this.request({
1596
1776
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1597
1777
  method: 'GET',
@@ -1619,11 +1799,21 @@ class ServerApi extends BaseAPI {
1619
1799
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1620
1800
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling listBusinessAccountRolesServer.');
1621
1801
  }
1802
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1803
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountRolesServer.');
1804
+ }
1622
1805
  const queryParameters = {};
1623
1806
  const headerParameters = {};
1624
1807
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1625
1808
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1626
1809
  }
1810
+ if (this.configuration && this.configuration.accessToken) {
1811
+ const token = this.configuration.accessToken;
1812
+ const tokenString = await token("serverSignerAuth", []);
1813
+ if (tokenString) {
1814
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1815
+ }
1816
+ }
1627
1817
  const response = await this.request({
1628
1818
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1629
1819
  method: 'GET',
@@ -1647,6 +1837,9 @@ class ServerApi extends BaseAPI {
1647
1837
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1648
1838
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling listBusinessAccountsServer.');
1649
1839
  }
1840
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1841
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling listBusinessAccountsServer.');
1842
+ }
1650
1843
  const queryParameters = {};
1651
1844
  if (requestParameters.externalRef) {
1652
1845
  queryParameters['externalRef'] = requestParameters.externalRef;
@@ -1655,6 +1848,13 @@ class ServerApi extends BaseAPI {
1655
1848
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1656
1849
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1657
1850
  }
1851
+ if (this.configuration && this.configuration.accessToken) {
1852
+ const token = this.configuration.accessToken;
1853
+ const tokenString = await token("serverSignerAuth", []);
1854
+ if (tokenString) {
1855
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1856
+ }
1857
+ }
1658
1858
  const response = await this.request({
1659
1859
  path: `/server/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1660
1860
  method: 'GET',
@@ -1721,12 +1921,22 @@ class ServerApi extends BaseAPI {
1721
1921
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
1722
1922
  throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling removeBusinessAccountMemberServer.');
1723
1923
  }
1924
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1925
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling removeBusinessAccountMemberServer.');
1926
+ }
1724
1927
  const queryParameters = {};
1725
1928
  const headerParameters = {};
1726
1929
  headerParameters['Content-Type'] = 'application/json';
1727
1930
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1728
1931
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1729
1932
  }
1933
+ if (this.configuration && this.configuration.accessToken) {
1934
+ const token = this.configuration.accessToken;
1935
+ const tokenString = await token("serverSignerAuth", []);
1936
+ if (tokenString) {
1937
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1938
+ }
1939
+ }
1730
1940
  const response = await this.request({
1731
1941
  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))),
1732
1942
  method: 'DELETE',
@@ -1761,6 +1971,9 @@ class ServerApi extends BaseAPI {
1761
1971
  if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
1762
1972
  throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling removeBusinessAccountSignerServer.');
1763
1973
  }
1974
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
1975
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling removeBusinessAccountSignerServer.');
1976
+ }
1764
1977
  const queryParameters = {};
1765
1978
  const headerParameters = {};
1766
1979
  headerParameters['Content-Type'] = 'application/json';
@@ -1770,6 +1983,13 @@ class ServerApi extends BaseAPI {
1770
1983
  if (requestParameters.xDynWalletApiKey !== undefined && requestParameters.xDynWalletApiKey !== null) {
1771
1984
  headerParameters['x-dyn-wallet-api-key'] = String(requestParameters.xDynWalletApiKey);
1772
1985
  }
1986
+ if (this.configuration && this.configuration.accessToken) {
1987
+ const token = this.configuration.accessToken;
1988
+ const tokenString = await token("serverSignerAuth", []);
1989
+ if (tokenString) {
1990
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1991
+ }
1992
+ }
1773
1993
  const response = await this.request({
1774
1994
  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))),
1775
1995
  method: 'DELETE',
@@ -1801,6 +2021,9 @@ class ServerApi extends BaseAPI {
1801
2021
  if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1802
2022
  throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling removeBusinessAccountWalletServer.');
1803
2023
  }
2024
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
2025
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling removeBusinessAccountWalletServer.');
2026
+ }
1804
2027
  const queryParameters = {};
1805
2028
  const headerParameters = {};
1806
2029
  headerParameters['Content-Type'] = 'application/json';
@@ -1810,6 +2033,13 @@ class ServerApi extends BaseAPI {
1810
2033
  if (requestParameters.xDynWalletApiKey !== undefined && requestParameters.xDynWalletApiKey !== null) {
1811
2034
  headerParameters['x-dyn-wallet-api-key'] = String(requestParameters.xDynWalletApiKey);
1812
2035
  }
2036
+ if (this.configuration && this.configuration.accessToken) {
2037
+ const token = this.configuration.accessToken;
2038
+ const tokenString = await token("serverSignerAuth", []);
2039
+ if (tokenString) {
2040
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2041
+ }
2042
+ }
1813
2043
  const response = await this.request({
1814
2044
  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))),
1815
2045
  method: 'DELETE',
@@ -1915,6 +2145,9 @@ class ServerApi extends BaseAPI {
1915
2145
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
1916
2146
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling setBusinessAccountGovernanceServer.');
1917
2147
  }
2148
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
2149
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling setBusinessAccountGovernanceServer.');
2150
+ }
1918
2151
  if (requestParameters.setBusinessAccountGovernanceSdkRequest === null || requestParameters.setBusinessAccountGovernanceSdkRequest === undefined) {
1919
2152
  throw new RequiredError('setBusinessAccountGovernanceSdkRequest', 'Required parameter requestParameters.setBusinessAccountGovernanceSdkRequest was null or undefined when calling setBusinessAccountGovernanceServer.');
1920
2153
  }
@@ -1924,6 +2157,13 @@ class ServerApi extends BaseAPI {
1924
2157
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
1925
2158
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
1926
2159
  }
2160
+ if (this.configuration && this.configuration.accessToken) {
2161
+ const token = this.configuration.accessToken;
2162
+ const tokenString = await token("serverSignerAuth", []);
2163
+ if (tokenString) {
2164
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2165
+ }
2166
+ }
1927
2167
  const response = await this.request({
1928
2168
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
1929
2169
  method: 'PUT',
@@ -2134,6 +2374,9 @@ class ServerApi extends BaseAPI {
2134
2374
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
2135
2375
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling transferBusinessAccountOwnershipServer.');
2136
2376
  }
2377
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
2378
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling transferBusinessAccountOwnershipServer.');
2379
+ }
2137
2380
  if (requestParameters.transferBusinessAccountOwnershipSdkRequest === null || requestParameters.transferBusinessAccountOwnershipSdkRequest === undefined) {
2138
2381
  throw new RequiredError('transferBusinessAccountOwnershipSdkRequest', 'Required parameter requestParameters.transferBusinessAccountOwnershipSdkRequest was null or undefined when calling transferBusinessAccountOwnershipServer.');
2139
2382
  }
@@ -2143,6 +2386,13 @@ class ServerApi extends BaseAPI {
2143
2386
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
2144
2387
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
2145
2388
  }
2389
+ if (this.configuration && this.configuration.accessToken) {
2390
+ const token = this.configuration.accessToken;
2391
+ const tokenString = await token("serverSignerAuth", []);
2392
+ if (tokenString) {
2393
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2394
+ }
2395
+ }
2146
2396
  const response = await this.request({
2147
2397
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/transferOwnership`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
2148
2398
  method: 'POST',
@@ -2174,6 +2424,9 @@ class ServerApi extends BaseAPI {
2174
2424
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
2175
2425
  throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling updateBusinessAccountMemberRoleServer.');
2176
2426
  }
2427
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
2428
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling updateBusinessAccountMemberRoleServer.');
2429
+ }
2177
2430
  if (requestParameters.updateBusinessAccountMemberRoleSdkRequest === null || requestParameters.updateBusinessAccountMemberRoleSdkRequest === undefined) {
2178
2431
  throw new RequiredError('updateBusinessAccountMemberRoleSdkRequest', 'Required parameter requestParameters.updateBusinessAccountMemberRoleSdkRequest was null or undefined when calling updateBusinessAccountMemberRoleServer.');
2179
2432
  }
@@ -2183,6 +2436,13 @@ class ServerApi extends BaseAPI {
2183
2436
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
2184
2437
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
2185
2438
  }
2439
+ if (this.configuration && this.configuration.accessToken) {
2440
+ const token = this.configuration.accessToken;
2441
+ const tokenString = await token("serverSignerAuth", []);
2442
+ if (tokenString) {
2443
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2444
+ }
2445
+ }
2186
2446
  const response = await this.request({
2187
2447
  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))),
2188
2448
  method: 'PATCH',
@@ -2211,6 +2471,9 @@ class ServerApi extends BaseAPI {
2211
2471
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
2212
2472
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
2213
2473
  }
2474
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
2475
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
2476
+ }
2214
2477
  if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
2215
2478
  throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
2216
2479
  }
@@ -2220,6 +2483,13 @@ class ServerApi extends BaseAPI {
2220
2483
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
2221
2484
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
2222
2485
  }
2486
+ if (this.configuration && this.configuration.accessToken) {
2487
+ const token = this.configuration.accessToken;
2488
+ const tokenString = await token("serverSignerAuth", []);
2489
+ if (tokenString) {
2490
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2491
+ }
2492
+ }
2223
2493
  const response = await this.request({
2224
2494
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
2225
2495
  method: 'PATCH',
@@ -2247,6 +2517,9 @@ class ServerApi extends BaseAPI {
2247
2517
  if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
2248
2518
  throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountServer.');
2249
2519
  }
2520
+ if (requestParameters.xDynRequestSigningProof === null || requestParameters.xDynRequestSigningProof === undefined) {
2521
+ throw new RequiredError('xDynRequestSigningProof', 'Required parameter requestParameters.xDynRequestSigningProof was null or undefined when calling updateBusinessAccountServer.');
2522
+ }
2250
2523
  if (requestParameters.updateBusinessAccountSdkRequest === null || requestParameters.updateBusinessAccountSdkRequest === undefined) {
2251
2524
  throw new RequiredError('updateBusinessAccountSdkRequest', 'Required parameter requestParameters.updateBusinessAccountSdkRequest was null or undefined when calling updateBusinessAccountServer.');
2252
2525
  }
@@ -2256,6 +2529,13 @@ class ServerApi extends BaseAPI {
2256
2529
  if (requestParameters.xDynRequestSigningProof !== undefined && requestParameters.xDynRequestSigningProof !== null) {
2257
2530
  headerParameters['x-dyn-request-signing-proof'] = String(requestParameters.xDynRequestSigningProof);
2258
2531
  }
2532
+ if (this.configuration && this.configuration.accessToken) {
2533
+ const token = this.configuration.accessToken;
2534
+ const tokenString = await token("serverSignerAuth", []);
2535
+ if (tokenString) {
2536
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2537
+ }
2538
+ }
2259
2539
  const response = await this.request({
2260
2540
  path: `/server/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
2261
2541
  method: 'PATCH',