@zyphr-dev/node-sdk 0.1.56 → 0.1.57

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.
Files changed (45) hide show
  1. package/dist/index.cjs +1877 -315
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +4 -6
  4. package/dist/index.d.ts +4 -6
  5. package/dist/index.js +1877 -315
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/clientAuth.ts +15 -4
  9. package/src/src/apis/AuthApplicationApi.ts +32 -4
  10. package/src/src/apis/AuthEmailOTPApi.ts +72 -9
  11. package/src/src/apis/AuthEmailTemplatesApi.ts +160 -20
  12. package/src/src/apis/AuthEmailVerificationApi.ts +48 -6
  13. package/src/src/apis/AuthLoginApi.ts +16 -2
  14. package/src/src/apis/AuthMFAApi.ts +112 -14
  15. package/src/src/apis/AuthMagicLinksApi.ts +32 -4
  16. package/src/src/apis/AuthOAuthApi.ts +88 -11
  17. package/src/src/apis/AuthOrganizationsApi.ts +176 -22
  18. package/src/src/apis/AuthPasswordResetApi.ts +48 -6
  19. package/src/src/apis/AuthPhoneApi.ts +72 -9
  20. package/src/src/apis/AuthRegistrationApi.ts +40 -5
  21. package/src/src/apis/AuthSessionsApi.ts +56 -7
  22. package/src/src/apis/AuthUserDirectoryApi.ts +144 -18
  23. package/src/src/apis/AuthUserProfileApi.ts +32 -4
  24. package/src/src/apis/AuthWebAuthnApi.ts +96 -12
  25. package/src/src/apis/DevicesApi.ts +52 -10
  26. package/src/src/apis/DomainsApi.ts +56 -7
  27. package/src/src/apis/EmailsApi.ts +48 -6
  28. package/src/src/apis/ExecutionsApi.ts +24 -3
  29. package/src/src/apis/InboundEmailApi.ts +24 -3
  30. package/src/src/apis/InboxApi.ts +88 -11
  31. package/src/src/apis/PushApi.ts +72 -9
  32. package/src/src/apis/SMSApi.ts +80 -10
  33. package/src/src/apis/SlackApi.ts +24 -3
  34. package/src/src/apis/SubscribersApi.ts +160 -20
  35. package/src/src/apis/TemplatesApi.ts +48 -6
  36. package/src/src/apis/TopicsApi.ts +72 -9
  37. package/src/src/apis/UtilityApi.ts +16 -2
  38. package/src/src/apis/WaaSApplicationsApi.ts +48 -6
  39. package/src/src/apis/WaaSDeliveriesApi.ts +32 -4
  40. package/src/src/apis/WaaSEndpointsApi.ts +72 -9
  41. package/src/src/apis/WaaSEventTypesApi.ts +48 -6
  42. package/src/src/apis/WaaSEventsApi.ts +16 -2
  43. package/src/src/apis/WaaSPortalApi.ts +8 -1
  44. package/src/src/apis/WebhooksApi.ts +176 -22
  45. package/src/src/apis/WorkflowsApi.ts +96 -12
package/dist/index.js CHANGED
@@ -17064,10 +17064,20 @@ var AuthApplicationApi = class extends BaseAPI {
17064
17064
  const queryParameters = {};
17065
17065
  const headerParameters = {};
17066
17066
  if (this.configuration && this.configuration.apiKey) {
17067
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17067
+ {
17068
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17069
+ if (apiKeyValue) {
17070
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17071
+ }
17072
+ }
17068
17073
  }
17069
17074
  if (this.configuration && this.configuration.apiKey) {
17070
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17075
+ {
17076
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17077
+ if (apiKeyValue) {
17078
+ headerParameters["X-Application-Key"] = apiKeyValue;
17079
+ }
17080
+ }
17071
17081
  }
17072
17082
  const response = await this.request({
17073
17083
  path: `/auth/application`,
@@ -17100,10 +17110,20 @@ var AuthApplicationApi = class extends BaseAPI {
17100
17110
  const headerParameters = {};
17101
17111
  headerParameters["Content-Type"] = "application/json";
17102
17112
  if (this.configuration && this.configuration.apiKey) {
17103
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17113
+ {
17114
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17115
+ if (apiKeyValue) {
17116
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17117
+ }
17118
+ }
17104
17119
  }
17105
17120
  if (this.configuration && this.configuration.apiKey) {
17106
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17121
+ {
17122
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17123
+ if (apiKeyValue) {
17124
+ headerParameters["X-Application-Key"] = apiKeyValue;
17125
+ }
17126
+ }
17107
17127
  }
17108
17128
  const response = await this.request({
17109
17129
  path: `/auth/application`,
@@ -17134,7 +17154,12 @@ var AuthEmailOTPApi = class extends BaseAPI {
17134
17154
  const queryParameters = {};
17135
17155
  const headerParameters = {};
17136
17156
  if (this.configuration && this.configuration.apiKey) {
17137
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17157
+ {
17158
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17159
+ if (apiKeyValue) {
17160
+ headerParameters["X-Application-Key"] = apiKeyValue;
17161
+ }
17162
+ }
17138
17163
  }
17139
17164
  const response = await this.request({
17140
17165
  path: `/auth/email-otp/available`,
@@ -17167,10 +17192,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
17167
17192
  const headerParameters = {};
17168
17193
  headerParameters["Content-Type"] = "application/json";
17169
17194
  if (this.configuration && this.configuration.apiKey) {
17170
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17195
+ {
17196
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17197
+ if (apiKeyValue) {
17198
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17199
+ }
17200
+ }
17171
17201
  }
17172
17202
  if (this.configuration && this.configuration.apiKey) {
17173
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17203
+ {
17204
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17205
+ if (apiKeyValue) {
17206
+ headerParameters["X-Application-Key"] = apiKeyValue;
17207
+ }
17208
+ }
17174
17209
  }
17175
17210
  const response = await this.request({
17176
17211
  path: `/auth/email-otp/login/send`,
@@ -17204,10 +17239,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
17204
17239
  const headerParameters = {};
17205
17240
  headerParameters["Content-Type"] = "application/json";
17206
17241
  if (this.configuration && this.configuration.apiKey) {
17207
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17242
+ {
17243
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17244
+ if (apiKeyValue) {
17245
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17246
+ }
17247
+ }
17208
17248
  }
17209
17249
  if (this.configuration && this.configuration.apiKey) {
17210
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17250
+ {
17251
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17252
+ if (apiKeyValue) {
17253
+ headerParameters["X-Application-Key"] = apiKeyValue;
17254
+ }
17255
+ }
17211
17256
  }
17212
17257
  const response = await this.request({
17213
17258
  path: `/auth/email-otp/register/send`,
@@ -17241,10 +17286,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
17241
17286
  const headerParameters = {};
17242
17287
  headerParameters["Content-Type"] = "application/json";
17243
17288
  if (this.configuration && this.configuration.apiKey) {
17244
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17289
+ {
17290
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17291
+ if (apiKeyValue) {
17292
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17293
+ }
17294
+ }
17245
17295
  }
17246
17296
  if (this.configuration && this.configuration.apiKey) {
17247
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17297
+ {
17298
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17299
+ if (apiKeyValue) {
17300
+ headerParameters["X-Application-Key"] = apiKeyValue;
17301
+ }
17302
+ }
17248
17303
  }
17249
17304
  const response = await this.request({
17250
17305
  path: `/auth/email-otp/login/verify`,
@@ -17278,10 +17333,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
17278
17333
  const headerParameters = {};
17279
17334
  headerParameters["Content-Type"] = "application/json";
17280
17335
  if (this.configuration && this.configuration.apiKey) {
17281
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17336
+ {
17337
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17338
+ if (apiKeyValue) {
17339
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17340
+ }
17341
+ }
17282
17342
  }
17283
17343
  if (this.configuration && this.configuration.apiKey) {
17284
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17344
+ {
17345
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17346
+ if (apiKeyValue) {
17347
+ headerParameters["X-Application-Key"] = apiKeyValue;
17348
+ }
17349
+ }
17285
17350
  }
17286
17351
  const response = await this.request({
17287
17352
  path: `/auth/email-otp/register/verify`,
@@ -17319,10 +17384,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17319
17384
  const headerParameters = {};
17320
17385
  headerParameters["Content-Type"] = "application/json";
17321
17386
  if (this.configuration && this.configuration.apiKey) {
17322
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17387
+ {
17388
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17389
+ if (apiKeyValue) {
17390
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17391
+ }
17392
+ }
17323
17393
  }
17324
17394
  if (this.configuration && this.configuration.apiKey) {
17325
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17395
+ {
17396
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17397
+ if (apiKeyValue) {
17398
+ headerParameters["X-Application-Key"] = apiKeyValue;
17399
+ }
17400
+ }
17326
17401
  }
17327
17402
  const response = await this.request({
17328
17403
  path: `/auth/email-templates`,
@@ -17355,10 +17430,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17355
17430
  const queryParameters = {};
17356
17431
  const headerParameters = {};
17357
17432
  if (this.configuration && this.configuration.apiKey) {
17358
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17433
+ {
17434
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17435
+ if (apiKeyValue) {
17436
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17437
+ }
17438
+ }
17359
17439
  }
17360
17440
  if (this.configuration && this.configuration.apiKey) {
17361
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17441
+ {
17442
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17443
+ if (apiKeyValue) {
17444
+ headerParameters["X-Application-Key"] = apiKeyValue;
17445
+ }
17446
+ }
17362
17447
  }
17363
17448
  const response = await this.request({
17364
17449
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17390,10 +17475,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17390
17475
  const queryParameters = {};
17391
17476
  const headerParameters = {};
17392
17477
  if (this.configuration && this.configuration.apiKey) {
17393
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17478
+ {
17479
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17480
+ if (apiKeyValue) {
17481
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17482
+ }
17483
+ }
17394
17484
  }
17395
17485
  if (this.configuration && this.configuration.apiKey) {
17396
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17486
+ {
17487
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17488
+ if (apiKeyValue) {
17489
+ headerParameters["X-Application-Key"] = apiKeyValue;
17490
+ }
17491
+ }
17397
17492
  }
17398
17493
  const response = await this.request({
17399
17494
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17425,10 +17520,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17425
17520
  const queryParameters = {};
17426
17521
  const headerParameters = {};
17427
17522
  if (this.configuration && this.configuration.apiKey) {
17428
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17523
+ {
17524
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17525
+ if (apiKeyValue) {
17526
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17527
+ }
17528
+ }
17429
17529
  }
17430
17530
  if (this.configuration && this.configuration.apiKey) {
17431
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17531
+ {
17532
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17533
+ if (apiKeyValue) {
17534
+ headerParameters["X-Application-Key"] = apiKeyValue;
17535
+ }
17536
+ }
17432
17537
  }
17433
17538
  const response = await this.request({
17434
17539
  path: `/auth/email-templates/{type}/default`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17459,10 +17564,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17459
17564
  const queryParameters = {};
17460
17565
  const headerParameters = {};
17461
17566
  if (this.configuration && this.configuration.apiKey) {
17462
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17567
+ {
17568
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17569
+ if (apiKeyValue) {
17570
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17571
+ }
17572
+ }
17463
17573
  }
17464
17574
  if (this.configuration && this.configuration.apiKey) {
17465
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17575
+ {
17576
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17577
+ if (apiKeyValue) {
17578
+ headerParameters["X-Application-Key"] = apiKeyValue;
17579
+ }
17580
+ }
17466
17581
  }
17467
17582
  const response = await this.request({
17468
17583
  path: `/auth/email-templates/{type}/versions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17487,10 +17602,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17487
17602
  const queryParameters = {};
17488
17603
  const headerParameters = {};
17489
17604
  if (this.configuration && this.configuration.apiKey) {
17490
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17605
+ {
17606
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17607
+ if (apiKeyValue) {
17608
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17609
+ }
17610
+ }
17491
17611
  }
17492
17612
  if (this.configuration && this.configuration.apiKey) {
17493
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17613
+ {
17614
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17615
+ if (apiKeyValue) {
17616
+ headerParameters["X-Application-Key"] = apiKeyValue;
17617
+ }
17618
+ }
17494
17619
  }
17495
17620
  const response = await this.request({
17496
17621
  path: `/auth/email-templates`,
@@ -17523,10 +17648,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17523
17648
  const headerParameters = {};
17524
17649
  headerParameters["Content-Type"] = "application/json";
17525
17650
  if (this.configuration && this.configuration.apiKey) {
17526
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17651
+ {
17652
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17653
+ if (apiKeyValue) {
17654
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17655
+ }
17656
+ }
17527
17657
  }
17528
17658
  if (this.configuration && this.configuration.apiKey) {
17529
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17659
+ {
17660
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17661
+ if (apiKeyValue) {
17662
+ headerParameters["X-Application-Key"] = apiKeyValue;
17663
+ }
17664
+ }
17530
17665
  }
17531
17666
  const response = await this.request({
17532
17667
  path: `/auth/email-templates/{type}/preview`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17565,10 +17700,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17565
17700
  const queryParameters = {};
17566
17701
  const headerParameters = {};
17567
17702
  if (this.configuration && this.configuration.apiKey) {
17568
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17703
+ {
17704
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17705
+ if (apiKeyValue) {
17706
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17707
+ }
17708
+ }
17569
17709
  }
17570
17710
  if (this.configuration && this.configuration.apiKey) {
17571
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17711
+ {
17712
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17713
+ if (apiKeyValue) {
17714
+ headerParameters["X-Application-Key"] = apiKeyValue;
17715
+ }
17716
+ }
17572
17717
  }
17573
17718
  const response = await this.request({
17574
17719
  path: `/auth/email-templates/{type}/versions/{version}/restore`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
@@ -17607,10 +17752,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17607
17752
  const headerParameters = {};
17608
17753
  headerParameters["Content-Type"] = "application/json";
17609
17754
  if (this.configuration && this.configuration.apiKey) {
17610
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17755
+ {
17756
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17757
+ if (apiKeyValue) {
17758
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17759
+ }
17760
+ }
17611
17761
  }
17612
17762
  if (this.configuration && this.configuration.apiKey) {
17613
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17763
+ {
17764
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17765
+ if (apiKeyValue) {
17766
+ headerParameters["X-Application-Key"] = apiKeyValue;
17767
+ }
17768
+ }
17614
17769
  }
17615
17770
  const response = await this.request({
17616
17771
  path: `/auth/email-templates/{type}/test`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17650,10 +17805,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
17650
17805
  const headerParameters = {};
17651
17806
  headerParameters["Content-Type"] = "application/json";
17652
17807
  if (this.configuration && this.configuration.apiKey) {
17653
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17808
+ {
17809
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17810
+ if (apiKeyValue) {
17811
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17812
+ }
17813
+ }
17654
17814
  }
17655
17815
  if (this.configuration && this.configuration.apiKey) {
17656
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17816
+ {
17817
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17818
+ if (apiKeyValue) {
17819
+ headerParameters["X-Application-Key"] = apiKeyValue;
17820
+ }
17821
+ }
17657
17822
  }
17658
17823
  const response = await this.request({
17659
17824
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -17691,10 +17856,20 @@ var AuthEmailVerificationApi = class extends BaseAPI {
17691
17856
  const headerParameters = {};
17692
17857
  headerParameters["Content-Type"] = "application/json";
17693
17858
  if (this.configuration && this.configuration.apiKey) {
17694
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17859
+ {
17860
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17861
+ if (apiKeyValue) {
17862
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17863
+ }
17864
+ }
17695
17865
  }
17696
17866
  if (this.configuration && this.configuration.apiKey) {
17697
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17867
+ {
17868
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17869
+ if (apiKeyValue) {
17870
+ headerParameters["X-Application-Key"] = apiKeyValue;
17871
+ }
17872
+ }
17698
17873
  }
17699
17874
  const response = await this.request({
17700
17875
  path: `/auth/verify-email/confirm`,
@@ -17722,7 +17897,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
17722
17897
  const headerParameters = {};
17723
17898
  headerParameters["Content-Type"] = "application/json";
17724
17899
  if (this.configuration && this.configuration.apiKey) {
17725
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17900
+ {
17901
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17902
+ if (apiKeyValue) {
17903
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17904
+ }
17905
+ }
17726
17906
  }
17727
17907
  if (this.configuration && this.configuration.accessToken) {
17728
17908
  const token = this.configuration.accessToken;
@@ -17732,7 +17912,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
17732
17912
  }
17733
17913
  }
17734
17914
  if (this.configuration && this.configuration.apiKey) {
17735
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17915
+ {
17916
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17917
+ if (apiKeyValue) {
17918
+ headerParameters["X-Application-Key"] = apiKeyValue;
17919
+ }
17920
+ }
17736
17921
  }
17737
17922
  const response = await this.request({
17738
17923
  path: `/auth/verify-email/resend`,
@@ -17760,7 +17945,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
17760
17945
  const headerParameters = {};
17761
17946
  headerParameters["Content-Type"] = "application/json";
17762
17947
  if (this.configuration && this.configuration.apiKey) {
17763
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
17948
+ {
17949
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
17950
+ if (apiKeyValue) {
17951
+ headerParameters["X-Application-Secret"] = apiKeyValue;
17952
+ }
17953
+ }
17764
17954
  }
17765
17955
  if (this.configuration && this.configuration.accessToken) {
17766
17956
  const token = this.configuration.accessToken;
@@ -17770,7 +17960,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
17770
17960
  }
17771
17961
  }
17772
17962
  if (this.configuration && this.configuration.apiKey) {
17773
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
17963
+ {
17964
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
17965
+ if (apiKeyValue) {
17966
+ headerParameters["X-Application-Key"] = apiKeyValue;
17967
+ }
17968
+ }
17774
17969
  }
17775
17970
  const response = await this.request({
17776
17971
  path: `/auth/verify-email/send`,
@@ -17808,10 +18003,20 @@ var AuthLoginApi = class extends BaseAPI {
17808
18003
  const headerParameters = {};
17809
18004
  headerParameters["Content-Type"] = "application/json";
17810
18005
  if (this.configuration && this.configuration.apiKey) {
17811
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18006
+ {
18007
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18008
+ if (apiKeyValue) {
18009
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18010
+ }
18011
+ }
17812
18012
  }
17813
18013
  if (this.configuration && this.configuration.apiKey) {
17814
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18014
+ {
18015
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18016
+ if (apiKeyValue) {
18017
+ headerParameters["X-Application-Key"] = apiKeyValue;
18018
+ }
18019
+ }
17815
18020
  }
17816
18021
  const response = await this.request({
17817
18022
  path: `/auth/users/login`,
@@ -17849,10 +18054,20 @@ var AuthMFAApi = class extends BaseAPI {
17849
18054
  const headerParameters = {};
17850
18055
  headerParameters["Content-Type"] = "application/json";
17851
18056
  if (this.configuration && this.configuration.apiKey) {
17852
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18057
+ {
18058
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18059
+ if (apiKeyValue) {
18060
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18061
+ }
18062
+ }
17853
18063
  }
17854
18064
  if (this.configuration && this.configuration.apiKey) {
17855
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18065
+ {
18066
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18067
+ if (apiKeyValue) {
18068
+ headerParameters["X-Application-Key"] = apiKeyValue;
18069
+ }
18070
+ }
17856
18071
  }
17857
18072
  const response = await this.request({
17858
18073
  path: `/auth/mfa/disable`,
@@ -17885,10 +18100,20 @@ var AuthMFAApi = class extends BaseAPI {
17885
18100
  const queryParameters = {};
17886
18101
  const headerParameters = {};
17887
18102
  if (this.configuration && this.configuration.apiKey) {
17888
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18103
+ {
18104
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18105
+ if (apiKeyValue) {
18106
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18107
+ }
18108
+ }
17889
18109
  }
17890
18110
  if (this.configuration && this.configuration.apiKey) {
17891
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18111
+ {
18112
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18113
+ if (apiKeyValue) {
18114
+ headerParameters["X-Application-Key"] = apiKeyValue;
18115
+ }
18116
+ }
17892
18117
  }
17893
18118
  const response = await this.request({
17894
18119
  path: `/auth/mfa/status/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -17921,10 +18146,20 @@ var AuthMFAApi = class extends BaseAPI {
17921
18146
  const headerParameters = {};
17922
18147
  headerParameters["Content-Type"] = "application/json";
17923
18148
  if (this.configuration && this.configuration.apiKey) {
17924
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18149
+ {
18150
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18151
+ if (apiKeyValue) {
18152
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18153
+ }
18154
+ }
17925
18155
  }
17926
18156
  if (this.configuration && this.configuration.apiKey) {
17927
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18157
+ {
18158
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18159
+ if (apiKeyValue) {
18160
+ headerParameters["X-Application-Key"] = apiKeyValue;
18161
+ }
18162
+ }
17928
18163
  }
17929
18164
  const response = await this.request({
17930
18165
  path: `/auth/mfa/regenerate-backup-codes`,
@@ -17958,10 +18193,20 @@ var AuthMFAApi = class extends BaseAPI {
17958
18193
  const headerParameters = {};
17959
18194
  headerParameters["Content-Type"] = "application/json";
17960
18195
  if (this.configuration && this.configuration.apiKey) {
17961
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18196
+ {
18197
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18198
+ if (apiKeyValue) {
18199
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18200
+ }
18201
+ }
17962
18202
  }
17963
18203
  if (this.configuration && this.configuration.apiKey) {
17964
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18204
+ {
18205
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18206
+ if (apiKeyValue) {
18207
+ headerParameters["X-Application-Key"] = apiKeyValue;
18208
+ }
18209
+ }
17965
18210
  }
17966
18211
  const response = await this.request({
17967
18212
  path: `/auth/mfa/enroll`,
@@ -17995,10 +18240,20 @@ var AuthMFAApi = class extends BaseAPI {
17995
18240
  const headerParameters = {};
17996
18241
  headerParameters["Content-Type"] = "application/json";
17997
18242
  if (this.configuration && this.configuration.apiKey) {
17998
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18243
+ {
18244
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18245
+ if (apiKeyValue) {
18246
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18247
+ }
18248
+ }
17999
18249
  }
18000
18250
  if (this.configuration && this.configuration.apiKey) {
18001
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18251
+ {
18252
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18253
+ if (apiKeyValue) {
18254
+ headerParameters["X-Application-Key"] = apiKeyValue;
18255
+ }
18256
+ }
18002
18257
  }
18003
18258
  const response = await this.request({
18004
18259
  path: `/auth/mfa/verify`,
@@ -18032,10 +18287,20 @@ var AuthMFAApi = class extends BaseAPI {
18032
18287
  const headerParameters = {};
18033
18288
  headerParameters["Content-Type"] = "application/json";
18034
18289
  if (this.configuration && this.configuration.apiKey) {
18035
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18290
+ {
18291
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18292
+ if (apiKeyValue) {
18293
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18294
+ }
18295
+ }
18036
18296
  }
18037
18297
  if (this.configuration && this.configuration.apiKey) {
18038
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18298
+ {
18299
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18300
+ if (apiKeyValue) {
18301
+ headerParameters["X-Application-Key"] = apiKeyValue;
18302
+ }
18303
+ }
18039
18304
  }
18040
18305
  const response = await this.request({
18041
18306
  path: `/auth/mfa/verify-backup`,
@@ -18069,10 +18334,20 @@ var AuthMFAApi = class extends BaseAPI {
18069
18334
  const headerParameters = {};
18070
18335
  headerParameters["Content-Type"] = "application/json";
18071
18336
  if (this.configuration && this.configuration.apiKey) {
18072
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18337
+ {
18338
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18339
+ if (apiKeyValue) {
18340
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18341
+ }
18342
+ }
18073
18343
  }
18074
18344
  if (this.configuration && this.configuration.apiKey) {
18075
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18345
+ {
18346
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18347
+ if (apiKeyValue) {
18348
+ headerParameters["X-Application-Key"] = apiKeyValue;
18349
+ }
18350
+ }
18076
18351
  }
18077
18352
  const response = await this.request({
18078
18353
  path: `/auth/mfa/verify-enrollment`,
@@ -18110,10 +18385,20 @@ var AuthMagicLinksApi = class extends BaseAPI {
18110
18385
  const headerParameters = {};
18111
18386
  headerParameters["Content-Type"] = "application/json";
18112
18387
  if (this.configuration && this.configuration.apiKey) {
18113
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18388
+ {
18389
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18390
+ if (apiKeyValue) {
18391
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18392
+ }
18393
+ }
18114
18394
  }
18115
18395
  if (this.configuration && this.configuration.apiKey) {
18116
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18396
+ {
18397
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18398
+ if (apiKeyValue) {
18399
+ headerParameters["X-Application-Key"] = apiKeyValue;
18400
+ }
18401
+ }
18117
18402
  }
18118
18403
  const response = await this.request({
18119
18404
  path: `/auth/magic-link/send`,
@@ -18147,10 +18432,20 @@ var AuthMagicLinksApi = class extends BaseAPI {
18147
18432
  const headerParameters = {};
18148
18433
  headerParameters["Content-Type"] = "application/json";
18149
18434
  if (this.configuration && this.configuration.apiKey) {
18150
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18435
+ {
18436
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18437
+ if (apiKeyValue) {
18438
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18439
+ }
18440
+ }
18151
18441
  }
18152
18442
  if (this.configuration && this.configuration.apiKey) {
18153
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18443
+ {
18444
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18445
+ if (apiKeyValue) {
18446
+ headerParameters["X-Application-Key"] = apiKeyValue;
18447
+ }
18448
+ }
18154
18449
  }
18155
18450
  const response = await this.request({
18156
18451
  path: `/auth/magic-link/verify`,
@@ -18201,7 +18496,12 @@ var AuthOAuthApi = class extends BaseAPI {
18201
18496
  }
18202
18497
  }
18203
18498
  if (this.configuration && this.configuration.apiKey) {
18204
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18499
+ {
18500
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18501
+ if (apiKeyValue) {
18502
+ headerParameters["X-Application-Key"] = apiKeyValue;
18503
+ }
18504
+ }
18205
18505
  }
18206
18506
  const response = await this.request({
18207
18507
  path: `/auth/oauth/{provider}/link/callback`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18241,7 +18541,12 @@ var AuthOAuthApi = class extends BaseAPI {
18241
18541
  }
18242
18542
  }
18243
18543
  if (this.configuration && this.configuration.apiKey) {
18244
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18544
+ {
18545
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18546
+ if (apiKeyValue) {
18547
+ headerParameters["X-Application-Key"] = apiKeyValue;
18548
+ }
18549
+ }
18245
18550
  }
18246
18551
  const response = await this.request({
18247
18552
  path: `/auth/oauth/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18282,7 +18587,12 @@ var AuthOAuthApi = class extends BaseAPI {
18282
18587
  }
18283
18588
  const headerParameters = {};
18284
18589
  if (this.configuration && this.configuration.apiKey) {
18285
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18590
+ {
18591
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18592
+ if (apiKeyValue) {
18593
+ headerParameters["X-Application-Key"] = apiKeyValue;
18594
+ }
18595
+ }
18286
18596
  }
18287
18597
  const response = await this.request({
18288
18598
  path: `/auth/oauth/{provider}/authorize`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18321,7 +18631,12 @@ var AuthOAuthApi = class extends BaseAPI {
18321
18631
  }
18322
18632
  }
18323
18633
  if (this.configuration && this.configuration.apiKey) {
18324
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18634
+ {
18635
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18636
+ if (apiKeyValue) {
18637
+ headerParameters["X-Application-Key"] = apiKeyValue;
18638
+ }
18639
+ }
18325
18640
  }
18326
18641
  const response = await this.request({
18327
18642
  path: `/auth/oauth/connections/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18362,10 +18677,20 @@ var AuthOAuthApi = class extends BaseAPI {
18362
18677
  }
18363
18678
  const headerParameters = {};
18364
18679
  if (this.configuration && this.configuration.apiKey) {
18365
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18680
+ {
18681
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18682
+ if (apiKeyValue) {
18683
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18684
+ }
18685
+ }
18366
18686
  }
18367
18687
  if (this.configuration && this.configuration.apiKey) {
18368
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18688
+ {
18689
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18690
+ if (apiKeyValue) {
18691
+ headerParameters["X-Application-Key"] = apiKeyValue;
18692
+ }
18693
+ }
18369
18694
  }
18370
18695
  const response = await this.request({
18371
18696
  path: `/auth/oauth/tokens/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18435,7 +18760,12 @@ var AuthOAuthApi = class extends BaseAPI {
18435
18760
  }
18436
18761
  }
18437
18762
  if (this.configuration && this.configuration.apiKey) {
18438
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18763
+ {
18764
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18765
+ if (apiKeyValue) {
18766
+ headerParameters["X-Application-Key"] = apiKeyValue;
18767
+ }
18768
+ }
18439
18769
  }
18440
18770
  const response = await this.request({
18441
18771
  path: `/auth/oauth/connections`,
@@ -18461,7 +18791,12 @@ var AuthOAuthApi = class extends BaseAPI {
18461
18791
  const queryParameters = {};
18462
18792
  const headerParameters = {};
18463
18793
  if (this.configuration && this.configuration.apiKey) {
18464
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18794
+ {
18795
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18796
+ if (apiKeyValue) {
18797
+ headerParameters["X-Application-Key"] = apiKeyValue;
18798
+ }
18799
+ }
18465
18800
  }
18466
18801
  const response = await this.request({
18467
18802
  path: `/auth/oauth/providers`,
@@ -18500,10 +18835,20 @@ var AuthOAuthApi = class extends BaseAPI {
18500
18835
  const headerParameters = {};
18501
18836
  headerParameters["Content-Type"] = "application/json";
18502
18837
  if (this.configuration && this.configuration.apiKey) {
18503
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18838
+ {
18839
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18840
+ if (apiKeyValue) {
18841
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18842
+ }
18843
+ }
18504
18844
  }
18505
18845
  if (this.configuration && this.configuration.apiKey) {
18506
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18846
+ {
18847
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18848
+ if (apiKeyValue) {
18849
+ headerParameters["X-Application-Key"] = apiKeyValue;
18850
+ }
18851
+ }
18507
18852
  }
18508
18853
  const response = await this.request({
18509
18854
  path: `/auth/oauth/tokens/{provider}/refresh`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18552,7 +18897,12 @@ var AuthOAuthApi = class extends BaseAPI {
18552
18897
  }
18553
18898
  }
18554
18899
  if (this.configuration && this.configuration.apiKey) {
18555
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18900
+ {
18901
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18902
+ if (apiKeyValue) {
18903
+ headerParameters["X-Application-Key"] = apiKeyValue;
18904
+ }
18905
+ }
18556
18906
  }
18557
18907
  const response = await this.request({
18558
18908
  path: `/auth/oauth/{provider}/link`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -18594,10 +18944,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18594
18944
  const headerParameters = {};
18595
18945
  headerParameters["Content-Type"] = "application/json";
18596
18946
  if (this.configuration && this.configuration.apiKey) {
18597
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18947
+ {
18948
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18949
+ if (apiKeyValue) {
18950
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18951
+ }
18952
+ }
18598
18953
  }
18599
18954
  if (this.configuration && this.configuration.apiKey) {
18600
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
18955
+ {
18956
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
18957
+ if (apiKeyValue) {
18958
+ headerParameters["X-Application-Key"] = apiKeyValue;
18959
+ }
18960
+ }
18601
18961
  }
18602
18962
  const response = await this.request({
18603
18963
  path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -18630,10 +18990,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18630
18990
  const headerParameters = {};
18631
18991
  headerParameters["Content-Type"] = "application/json";
18632
18992
  if (this.configuration && this.configuration.apiKey) {
18633
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
18993
+ {
18994
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
18995
+ if (apiKeyValue) {
18996
+ headerParameters["X-Application-Secret"] = apiKeyValue;
18997
+ }
18998
+ }
18634
18999
  }
18635
19000
  if (this.configuration && this.configuration.apiKey) {
18636
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19001
+ {
19002
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19003
+ if (apiKeyValue) {
19004
+ headerParameters["X-Application-Key"] = apiKeyValue;
19005
+ }
19006
+ }
18637
19007
  }
18638
19008
  const response = await this.request({
18639
19009
  path: `/auth/organizations`,
@@ -18666,10 +19036,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18666
19036
  const queryParameters = {};
18667
19037
  const headerParameters = {};
18668
19038
  if (this.configuration && this.configuration.apiKey) {
18669
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19039
+ {
19040
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19041
+ if (apiKeyValue) {
19042
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19043
+ }
19044
+ }
18670
19045
  }
18671
19046
  if (this.configuration && this.configuration.apiKey) {
18672
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19047
+ {
19048
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19049
+ if (apiKeyValue) {
19050
+ headerParameters["X-Application-Key"] = apiKeyValue;
19051
+ }
19052
+ }
18673
19053
  }
18674
19054
  const response = await this.request({
18675
19055
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -18699,10 +19079,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18699
19079
  const queryParameters = {};
18700
19080
  const headerParameters = {};
18701
19081
  if (this.configuration && this.configuration.apiKey) {
18702
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19082
+ {
19083
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19084
+ if (apiKeyValue) {
19085
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19086
+ }
19087
+ }
18703
19088
  }
18704
19089
  if (this.configuration && this.configuration.apiKey) {
18705
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19090
+ {
19091
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19092
+ if (apiKeyValue) {
19093
+ headerParameters["X-Application-Key"] = apiKeyValue;
19094
+ }
19095
+ }
18706
19096
  }
18707
19097
  const response = await this.request({
18708
19098
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -18738,10 +19128,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18738
19128
  }
18739
19129
  const headerParameters = {};
18740
19130
  if (this.configuration && this.configuration.apiKey) {
18741
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19131
+ {
19132
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19133
+ if (apiKeyValue) {
19134
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19135
+ }
19136
+ }
18742
19137
  }
18743
19138
  if (this.configuration && this.configuration.apiKey) {
18744
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19139
+ {
19140
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19141
+ if (apiKeyValue) {
19142
+ headerParameters["X-Application-Key"] = apiKeyValue;
19143
+ }
19144
+ }
18745
19145
  }
18746
19146
  const response = await this.request({
18747
19147
  path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -18775,10 +19175,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18775
19175
  }
18776
19176
  const headerParameters = {};
18777
19177
  if (this.configuration && this.configuration.apiKey) {
18778
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19178
+ {
19179
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19180
+ if (apiKeyValue) {
19181
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19182
+ }
19183
+ }
18779
19184
  }
18780
19185
  if (this.configuration && this.configuration.apiKey) {
18781
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19186
+ {
19187
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19188
+ if (apiKeyValue) {
19189
+ headerParameters["X-Application-Key"] = apiKeyValue;
19190
+ }
19191
+ }
18782
19192
  }
18783
19193
  const response = await this.request({
18784
19194
  path: `/auth/organizations`,
@@ -18810,10 +19220,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18810
19220
  const queryParameters = {};
18811
19221
  const headerParameters = {};
18812
19222
  if (this.configuration && this.configuration.apiKey) {
18813
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19223
+ {
19224
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19225
+ if (apiKeyValue) {
19226
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19227
+ }
19228
+ }
18814
19229
  }
18815
19230
  if (this.configuration && this.configuration.apiKey) {
18816
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19231
+ {
19232
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19233
+ if (apiKeyValue) {
19234
+ headerParameters["X-Application-Key"] = apiKeyValue;
19235
+ }
19236
+ }
18817
19237
  }
18818
19238
  const response = await this.request({
18819
19239
  path: `/auth/end-users/{user_id}/organizations`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -18850,10 +19270,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18850
19270
  const queryParameters = {};
18851
19271
  const headerParameters = {};
18852
19272
  if (this.configuration && this.configuration.apiKey) {
18853
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19273
+ {
19274
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19275
+ if (apiKeyValue) {
19276
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19277
+ }
19278
+ }
18854
19279
  }
18855
19280
  if (this.configuration && this.configuration.apiKey) {
18856
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19281
+ {
19282
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19283
+ if (apiKeyValue) {
19284
+ headerParameters["X-Application-Key"] = apiKeyValue;
19285
+ }
19286
+ }
18857
19287
  }
18858
19288
  const response = await this.request({
18859
19289
  path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -18884,10 +19314,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18884
19314
  const headerParameters = {};
18885
19315
  headerParameters["Content-Type"] = "application/json";
18886
19316
  if (this.configuration && this.configuration.apiKey) {
18887
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19317
+ {
19318
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19319
+ if (apiKeyValue) {
19320
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19321
+ }
19322
+ }
18888
19323
  }
18889
19324
  if (this.configuration && this.configuration.apiKey) {
18890
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19325
+ {
19326
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19327
+ if (apiKeyValue) {
19328
+ headerParameters["X-Application-Key"] = apiKeyValue;
19329
+ }
19330
+ }
18891
19331
  }
18892
19332
  const response = await this.request({
18893
19333
  path: `/auth/sessions/switch-organization`,
@@ -18927,10 +19367,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18927
19367
  const headerParameters = {};
18928
19368
  headerParameters["Content-Type"] = "application/json";
18929
19369
  if (this.configuration && this.configuration.apiKey) {
18930
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19370
+ {
19371
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19372
+ if (apiKeyValue) {
19373
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19374
+ }
19375
+ }
18931
19376
  }
18932
19377
  if (this.configuration && this.configuration.apiKey) {
18933
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19378
+ {
19379
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19380
+ if (apiKeyValue) {
19381
+ headerParameters["X-Application-Key"] = apiKeyValue;
19382
+ }
19383
+ }
18934
19384
  }
18935
19385
  const response = await this.request({
18936
19386
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -18975,10 +19425,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
18975
19425
  const headerParameters = {};
18976
19426
  headerParameters["Content-Type"] = "application/json";
18977
19427
  if (this.configuration && this.configuration.apiKey) {
18978
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19428
+ {
19429
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19430
+ if (apiKeyValue) {
19431
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19432
+ }
19433
+ }
18979
19434
  }
18980
19435
  if (this.configuration && this.configuration.apiKey) {
18981
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19436
+ {
19437
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19438
+ if (apiKeyValue) {
19439
+ headerParameters["X-Application-Key"] = apiKeyValue;
19440
+ }
19441
+ }
18982
19442
  }
18983
19443
  const response = await this.request({
18984
19444
  path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19015,10 +19475,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
19015
19475
  const headerParameters = {};
19016
19476
  headerParameters["Content-Type"] = "application/json";
19017
19477
  if (this.configuration && this.configuration.apiKey) {
19018
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19478
+ {
19479
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19480
+ if (apiKeyValue) {
19481
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19482
+ }
19483
+ }
19019
19484
  }
19020
19485
  if (this.configuration && this.configuration.apiKey) {
19021
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19486
+ {
19487
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19488
+ if (apiKeyValue) {
19489
+ headerParameters["X-Application-Key"] = apiKeyValue;
19490
+ }
19491
+ }
19022
19492
  }
19023
19493
  const response = await this.request({
19024
19494
  path: `/auth/forgot-password`,
@@ -19052,10 +19522,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
19052
19522
  const headerParameters = {};
19053
19523
  headerParameters["Content-Type"] = "application/json";
19054
19524
  if (this.configuration && this.configuration.apiKey) {
19055
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19525
+ {
19526
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19527
+ if (apiKeyValue) {
19528
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19529
+ }
19530
+ }
19056
19531
  }
19057
19532
  if (this.configuration && this.configuration.apiKey) {
19058
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19533
+ {
19534
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19535
+ if (apiKeyValue) {
19536
+ headerParameters["X-Application-Key"] = apiKeyValue;
19537
+ }
19538
+ }
19059
19539
  }
19060
19540
  const response = await this.request({
19061
19541
  path: `/auth/reset-password`,
@@ -19089,10 +19569,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
19089
19569
  const headerParameters = {};
19090
19570
  headerParameters["Content-Type"] = "application/json";
19091
19571
  if (this.configuration && this.configuration.apiKey) {
19092
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19572
+ {
19573
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19574
+ if (apiKeyValue) {
19575
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19576
+ }
19577
+ }
19093
19578
  }
19094
19579
  if (this.configuration && this.configuration.apiKey) {
19095
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19580
+ {
19581
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19582
+ if (apiKeyValue) {
19583
+ headerParameters["X-Application-Key"] = apiKeyValue;
19584
+ }
19585
+ }
19096
19586
  }
19097
19587
  const response = await this.request({
19098
19588
  path: `/auth/validate-reset-token`,
@@ -19123,7 +19613,12 @@ var AuthPhoneApi = class extends BaseAPI {
19123
19613
  const queryParameters = {};
19124
19614
  const headerParameters = {};
19125
19615
  if (this.configuration && this.configuration.apiKey) {
19126
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19616
+ {
19617
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19618
+ if (apiKeyValue) {
19619
+ headerParameters["X-Application-Key"] = apiKeyValue;
19620
+ }
19621
+ }
19127
19622
  }
19128
19623
  const response = await this.request({
19129
19624
  path: `/auth/phone/available`,
@@ -19156,10 +19651,20 @@ var AuthPhoneApi = class extends BaseAPI {
19156
19651
  const headerParameters = {};
19157
19652
  headerParameters["Content-Type"] = "application/json";
19158
19653
  if (this.configuration && this.configuration.apiKey) {
19159
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19654
+ {
19655
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19656
+ if (apiKeyValue) {
19657
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19658
+ }
19659
+ }
19160
19660
  }
19161
19661
  if (this.configuration && this.configuration.apiKey) {
19162
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19662
+ {
19663
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19664
+ if (apiKeyValue) {
19665
+ headerParameters["X-Application-Key"] = apiKeyValue;
19666
+ }
19667
+ }
19163
19668
  }
19164
19669
  const response = await this.request({
19165
19670
  path: `/auth/phone/login/send`,
@@ -19193,10 +19698,20 @@ var AuthPhoneApi = class extends BaseAPI {
19193
19698
  const headerParameters = {};
19194
19699
  headerParameters["Content-Type"] = "application/json";
19195
19700
  if (this.configuration && this.configuration.apiKey) {
19196
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19701
+ {
19702
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19703
+ if (apiKeyValue) {
19704
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19705
+ }
19706
+ }
19197
19707
  }
19198
19708
  if (this.configuration && this.configuration.apiKey) {
19199
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19709
+ {
19710
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19711
+ if (apiKeyValue) {
19712
+ headerParameters["X-Application-Key"] = apiKeyValue;
19713
+ }
19714
+ }
19200
19715
  }
19201
19716
  const response = await this.request({
19202
19717
  path: `/auth/phone/register/send`,
@@ -19230,10 +19745,20 @@ var AuthPhoneApi = class extends BaseAPI {
19230
19745
  const headerParameters = {};
19231
19746
  headerParameters["Content-Type"] = "application/json";
19232
19747
  if (this.configuration && this.configuration.apiKey) {
19233
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19748
+ {
19749
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19750
+ if (apiKeyValue) {
19751
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19752
+ }
19753
+ }
19234
19754
  }
19235
19755
  if (this.configuration && this.configuration.apiKey) {
19236
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19756
+ {
19757
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19758
+ if (apiKeyValue) {
19759
+ headerParameters["X-Application-Key"] = apiKeyValue;
19760
+ }
19761
+ }
19237
19762
  }
19238
19763
  const response = await this.request({
19239
19764
  path: `/auth/phone/login/verify`,
@@ -19267,10 +19792,20 @@ var AuthPhoneApi = class extends BaseAPI {
19267
19792
  const headerParameters = {};
19268
19793
  headerParameters["Content-Type"] = "application/json";
19269
19794
  if (this.configuration && this.configuration.apiKey) {
19270
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19795
+ {
19796
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19797
+ if (apiKeyValue) {
19798
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19799
+ }
19800
+ }
19271
19801
  }
19272
19802
  if (this.configuration && this.configuration.apiKey) {
19273
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19803
+ {
19804
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19805
+ if (apiKeyValue) {
19806
+ headerParameters["X-Application-Key"] = apiKeyValue;
19807
+ }
19808
+ }
19274
19809
  }
19275
19810
  const response = await this.request({
19276
19811
  path: `/auth/phone/register/verify`,
@@ -19339,10 +19874,20 @@ var AuthRegistrationApi = class extends BaseAPI {
19339
19874
  const headerParameters = {};
19340
19875
  headerParameters["Content-Type"] = "application/json";
19341
19876
  if (this.configuration && this.configuration.apiKey) {
19342
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19877
+ {
19878
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19879
+ if (apiKeyValue) {
19880
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19881
+ }
19882
+ }
19343
19883
  }
19344
19884
  if (this.configuration && this.configuration.apiKey) {
19345
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19885
+ {
19886
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19887
+ if (apiKeyValue) {
19888
+ headerParameters["X-Application-Key"] = apiKeyValue;
19889
+ }
19890
+ }
19346
19891
  }
19347
19892
  const response = await this.request({
19348
19893
  path: `/auth/users/register`,
@@ -19376,7 +19921,12 @@ var AuthRegistrationApi = class extends BaseAPI {
19376
19921
  const headerParameters = {};
19377
19922
  headerParameters["Content-Type"] = "application/json";
19378
19923
  if (this.configuration && this.configuration.apiKey) {
19379
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19924
+ {
19925
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19926
+ if (apiKeyValue) {
19927
+ headerParameters["X-Application-Key"] = apiKeyValue;
19928
+ }
19929
+ }
19380
19930
  }
19381
19931
  const response = await this.request({
19382
19932
  path: `/auth/users/anonymous`,
@@ -19410,7 +19960,12 @@ var AuthRegistrationApi = class extends BaseAPI {
19410
19960
  const headerParameters = {};
19411
19961
  headerParameters["Content-Type"] = "application/json";
19412
19962
  if (this.configuration && this.configuration.apiKey) {
19413
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19963
+ {
19964
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19965
+ if (apiKeyValue) {
19966
+ headerParameters["X-Application-Key"] = apiKeyValue;
19967
+ }
19968
+ }
19414
19969
  }
19415
19970
  const response = await this.request({
19416
19971
  path: `/auth/game-center`,
@@ -19444,7 +19999,12 @@ var AuthRegistrationApi = class extends BaseAPI {
19444
19999
  const headerParameters = {};
19445
20000
  headerParameters["Content-Type"] = "application/json";
19446
20001
  if (this.configuration && this.configuration.apiKey) {
19447
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20002
+ {
20003
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20004
+ if (apiKeyValue) {
20005
+ headerParameters["X-Application-Key"] = apiKeyValue;
20006
+ }
20007
+ }
19448
20008
  }
19449
20009
  const response = await this.request({
19450
20010
  path: `/auth/google-play-games`,
@@ -19482,7 +20042,12 @@ var AuthSessionsApi = class extends BaseAPI {
19482
20042
  }
19483
20043
  }
19484
20044
  if (this.configuration && this.configuration.apiKey) {
19485
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20045
+ {
20046
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20047
+ if (apiKeyValue) {
20048
+ headerParameters["X-Application-Key"] = apiKeyValue;
20049
+ }
20050
+ }
19486
20051
  }
19487
20052
  const response = await this.request({
19488
20053
  path: `/auth/sessions`,
@@ -19515,10 +20080,20 @@ var AuthSessionsApi = class extends BaseAPI {
19515
20080
  const headerParameters = {};
19516
20081
  headerParameters["Content-Type"] = "application/json";
19517
20082
  if (this.configuration && this.configuration.apiKey) {
19518
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20083
+ {
20084
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20085
+ if (apiKeyValue) {
20086
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20087
+ }
20088
+ }
19519
20089
  }
19520
20090
  if (this.configuration && this.configuration.apiKey) {
19521
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20091
+ {
20092
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20093
+ if (apiKeyValue) {
20094
+ headerParameters["X-Application-Key"] = apiKeyValue;
20095
+ }
20096
+ }
19522
20097
  }
19523
20098
  const response = await this.request({
19524
20099
  path: `/auth/sessions/refresh`,
@@ -19545,7 +20120,12 @@ var AuthSessionsApi = class extends BaseAPI {
19545
20120
  const queryParameters = {};
19546
20121
  const headerParameters = {};
19547
20122
  if (this.configuration && this.configuration.apiKey) {
19548
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20123
+ {
20124
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20125
+ if (apiKeyValue) {
20126
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20127
+ }
20128
+ }
19549
20129
  }
19550
20130
  if (this.configuration && this.configuration.accessToken) {
19551
20131
  const token = this.configuration.accessToken;
@@ -19555,7 +20135,12 @@ var AuthSessionsApi = class extends BaseAPI {
19555
20135
  }
19556
20136
  }
19557
20137
  if (this.configuration && this.configuration.apiKey) {
19558
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20138
+ {
20139
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20140
+ if (apiKeyValue) {
20141
+ headerParameters["X-Application-Key"] = apiKeyValue;
20142
+ }
20143
+ }
19559
20144
  }
19560
20145
  const response = await this.request({
19561
20146
  path: `/auth/sessions/revoke-all`,
@@ -19588,10 +20173,20 @@ var AuthSessionsApi = class extends BaseAPI {
19588
20173
  const headerParameters = {};
19589
20174
  headerParameters["Content-Type"] = "application/json";
19590
20175
  if (this.configuration && this.configuration.apiKey) {
19591
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20176
+ {
20177
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20178
+ if (apiKeyValue) {
20179
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20180
+ }
20181
+ }
19592
20182
  }
19593
20183
  if (this.configuration && this.configuration.apiKey) {
19594
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20184
+ {
20185
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20186
+ if (apiKeyValue) {
20187
+ headerParameters["X-Application-Key"] = apiKeyValue;
20188
+ }
20189
+ }
19595
20190
  }
19596
20191
  const response = await this.request({
19597
20192
  path: `/auth/sessions/revoke`,
@@ -19628,10 +20223,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19628
20223
  const queryParameters = {};
19629
20224
  const headerParameters = {};
19630
20225
  if (this.configuration && this.configuration.apiKey) {
19631
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20226
+ {
20227
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20228
+ if (apiKeyValue) {
20229
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20230
+ }
20231
+ }
19632
20232
  }
19633
20233
  if (this.configuration && this.configuration.apiKey) {
19634
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20234
+ {
20235
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20236
+ if (apiKeyValue) {
20237
+ headerParameters["X-Application-Key"] = apiKeyValue;
20238
+ }
20239
+ }
19635
20240
  }
19636
20241
  const response = await this.request({
19637
20242
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19662,10 +20267,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19662
20267
  const queryParameters = {};
19663
20268
  const headerParameters = {};
19664
20269
  if (this.configuration && this.configuration.apiKey) {
19665
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20270
+ {
20271
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20272
+ if (apiKeyValue) {
20273
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20274
+ }
20275
+ }
19666
20276
  }
19667
20277
  if (this.configuration && this.configuration.apiKey) {
19668
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20278
+ {
20279
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20280
+ if (apiKeyValue) {
20281
+ headerParameters["X-Application-Key"] = apiKeyValue;
20282
+ }
20283
+ }
19669
20284
  }
19670
20285
  const response = await this.request({
19671
20286
  path: `/auth/users/{user_id}/auth-methods`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19700,10 +20315,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19700
20315
  }
19701
20316
  const headerParameters = {};
19702
20317
  if (this.configuration && this.configuration.apiKey) {
19703
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20318
+ {
20319
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20320
+ if (apiKeyValue) {
20321
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20322
+ }
20323
+ }
19704
20324
  }
19705
20325
  if (this.configuration && this.configuration.apiKey) {
19706
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20326
+ {
20327
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20328
+ if (apiKeyValue) {
20329
+ headerParameters["X-Application-Key"] = apiKeyValue;
20330
+ }
20331
+ }
19707
20332
  }
19708
20333
  const response = await this.request({
19709
20334
  path: `/auth/users/by-email`,
@@ -19735,10 +20360,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19735
20360
  const queryParameters = {};
19736
20361
  const headerParameters = {};
19737
20362
  if (this.configuration && this.configuration.apiKey) {
19738
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20363
+ {
20364
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20365
+ if (apiKeyValue) {
20366
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20367
+ }
20368
+ }
19739
20369
  }
19740
20370
  if (this.configuration && this.configuration.apiKey) {
19741
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20371
+ {
20372
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20373
+ if (apiKeyValue) {
20374
+ headerParameters["X-Application-Key"] = apiKeyValue;
20375
+ }
20376
+ }
19742
20377
  }
19743
20378
  const response = await this.request({
19744
20379
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19770,10 +20405,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19770
20405
  const queryParameters = {};
19771
20406
  const headerParameters = {};
19772
20407
  if (this.configuration && this.configuration.apiKey) {
19773
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20408
+ {
20409
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20410
+ if (apiKeyValue) {
20411
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20412
+ }
20413
+ }
19774
20414
  }
19775
20415
  if (this.configuration && this.configuration.apiKey) {
19776
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20416
+ {
20417
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20418
+ if (apiKeyValue) {
20419
+ headerParameters["X-Application-Key"] = apiKeyValue;
20420
+ }
20421
+ }
19777
20422
  }
19778
20423
  const response = await this.request({
19779
20424
  path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19806,10 +20451,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19806
20451
  const headerParameters = {};
19807
20452
  headerParameters["Content-Type"] = "application/json";
19808
20453
  if (this.configuration && this.configuration.apiKey) {
19809
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20454
+ {
20455
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20456
+ if (apiKeyValue) {
20457
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20458
+ }
20459
+ }
19810
20460
  }
19811
20461
  if (this.configuration && this.configuration.apiKey) {
19812
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20462
+ {
20463
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20464
+ if (apiKeyValue) {
20465
+ headerParameters["X-Application-Key"] = apiKeyValue;
20466
+ }
20467
+ }
19813
20468
  }
19814
20469
  const response = await this.request({
19815
20470
  path: `/auth/users/invite`,
@@ -19848,10 +20503,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19848
20503
  }
19849
20504
  const headerParameters = {};
19850
20505
  if (this.configuration && this.configuration.apiKey) {
19851
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20506
+ {
20507
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20508
+ if (apiKeyValue) {
20509
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20510
+ }
20511
+ }
19852
20512
  }
19853
20513
  if (this.configuration && this.configuration.apiKey) {
19854
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20514
+ {
20515
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20516
+ if (apiKeyValue) {
20517
+ headerParameters["X-Application-Key"] = apiKeyValue;
20518
+ }
20519
+ }
19855
20520
  }
19856
20521
  const response = await this.request({
19857
20522
  path: `/auth/users`,
@@ -19890,10 +20555,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19890
20555
  const headerParameters = {};
19891
20556
  headerParameters["Content-Type"] = "application/json";
19892
20557
  if (this.configuration && this.configuration.apiKey) {
19893
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20558
+ {
20559
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20560
+ if (apiKeyValue) {
20561
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20562
+ }
20563
+ }
19894
20564
  }
19895
20565
  if (this.configuration && this.configuration.apiKey) {
19896
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20566
+ {
20567
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20568
+ if (apiKeyValue) {
20569
+ headerParameters["X-Application-Key"] = apiKeyValue;
20570
+ }
20571
+ }
19897
20572
  }
19898
20573
  const response = await this.request({
19899
20574
  path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19933,10 +20608,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
19933
20608
  const headerParameters = {};
19934
20609
  headerParameters["Content-Type"] = "application/json";
19935
20610
  if (this.configuration && this.configuration.apiKey) {
19936
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20611
+ {
20612
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20613
+ if (apiKeyValue) {
20614
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20615
+ }
20616
+ }
19937
20617
  }
19938
20618
  if (this.configuration && this.configuration.apiKey) {
19939
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20619
+ {
20620
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20621
+ if (apiKeyValue) {
20622
+ headerParameters["X-Application-Key"] = apiKeyValue;
20623
+ }
20624
+ }
19940
20625
  }
19941
20626
  const response = await this.request({
19942
20627
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -19985,7 +20670,12 @@ var AuthUserProfileApi = class extends BaseAPI {
19985
20670
  }
19986
20671
  }
19987
20672
  if (this.configuration && this.configuration.apiKey) {
19988
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20673
+ {
20674
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20675
+ if (apiKeyValue) {
20676
+ headerParameters["X-Application-Key"] = apiKeyValue;
20677
+ }
20678
+ }
19989
20679
  }
19990
20680
  const response = await this.request({
19991
20681
  path: `/auth/users/change-password`,
@@ -20019,7 +20709,12 @@ var AuthUserProfileApi = class extends BaseAPI {
20019
20709
  }
20020
20710
  }
20021
20711
  if (this.configuration && this.configuration.apiKey) {
20022
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20712
+ {
20713
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20714
+ if (apiKeyValue) {
20715
+ headerParameters["X-Application-Key"] = apiKeyValue;
20716
+ }
20717
+ }
20023
20718
  }
20024
20719
  const response = await this.request({
20025
20720
  path: `/auth/users/me`,
@@ -20052,7 +20747,12 @@ var AuthUserProfileApi = class extends BaseAPI {
20052
20747
  }
20053
20748
  }
20054
20749
  if (this.configuration && this.configuration.apiKey) {
20055
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20750
+ {
20751
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20752
+ if (apiKeyValue) {
20753
+ headerParameters["X-Application-Key"] = apiKeyValue;
20754
+ }
20755
+ }
20056
20756
  }
20057
20757
  const response = await this.request({
20058
20758
  path: `/auth/users/me`,
@@ -20092,7 +20792,12 @@ var AuthUserProfileApi = class extends BaseAPI {
20092
20792
  }
20093
20793
  }
20094
20794
  if (this.configuration && this.configuration.apiKey) {
20095
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20795
+ {
20796
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20797
+ if (apiKeyValue) {
20798
+ headerParameters["X-Application-Key"] = apiKeyValue;
20799
+ }
20800
+ }
20096
20801
  }
20097
20802
  const response = await this.request({
20098
20803
  path: `/auth/users/me`,
@@ -20136,7 +20841,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20136
20841
  }
20137
20842
  }
20138
20843
  if (this.configuration && this.configuration.apiKey) {
20139
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20844
+ {
20845
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20846
+ if (apiKeyValue) {
20847
+ headerParameters["X-Application-Key"] = apiKeyValue;
20848
+ }
20849
+ }
20140
20850
  }
20141
20851
  const response = await this.request({
20142
20852
  path: `/auth/webauthn/credentials/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20169,7 +20879,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20169
20879
  }
20170
20880
  }
20171
20881
  if (this.configuration && this.configuration.apiKey) {
20172
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20882
+ {
20883
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20884
+ if (apiKeyValue) {
20885
+ headerParameters["X-Application-Key"] = apiKeyValue;
20886
+ }
20887
+ }
20173
20888
  }
20174
20889
  const response = await this.request({
20175
20890
  path: `/auth/webauthn/status`,
@@ -20202,7 +20917,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20202
20917
  }
20203
20918
  }
20204
20919
  if (this.configuration && this.configuration.apiKey) {
20205
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20920
+ {
20921
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20922
+ if (apiKeyValue) {
20923
+ headerParameters["X-Application-Key"] = apiKeyValue;
20924
+ }
20925
+ }
20206
20926
  }
20207
20927
  const response = await this.request({
20208
20928
  path: `/auth/webauthn/credentials`,
@@ -20248,7 +20968,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20248
20968
  }
20249
20969
  }
20250
20970
  if (this.configuration && this.configuration.apiKey) {
20251
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20971
+ {
20972
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20973
+ if (apiKeyValue) {
20974
+ headerParameters["X-Application-Key"] = apiKeyValue;
20975
+ }
20976
+ }
20252
20977
  }
20253
20978
  const response = await this.request({
20254
20979
  path: `/auth/webauthn/credentials/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20276,10 +21001,20 @@ var AuthWebAuthnApi = class extends BaseAPI {
20276
21001
  const headerParameters = {};
20277
21002
  headerParameters["Content-Type"] = "application/json";
20278
21003
  if (this.configuration && this.configuration.apiKey) {
20279
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21004
+ {
21005
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21006
+ if (apiKeyValue) {
21007
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21008
+ }
21009
+ }
20280
21010
  }
20281
21011
  if (this.configuration && this.configuration.apiKey) {
20282
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21012
+ {
21013
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21014
+ if (apiKeyValue) {
21015
+ headerParameters["X-Application-Key"] = apiKeyValue;
21016
+ }
21017
+ }
20283
21018
  }
20284
21019
  const response = await this.request({
20285
21020
  path: `/auth/webauthn/authentication/start`,
@@ -20307,7 +21042,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20307
21042
  const headerParameters = {};
20308
21043
  headerParameters["Content-Type"] = "application/json";
20309
21044
  if (this.configuration && this.configuration.apiKey) {
20310
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21045
+ {
21046
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21047
+ if (apiKeyValue) {
21048
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21049
+ }
21050
+ }
20311
21051
  }
20312
21052
  if (this.configuration && this.configuration.accessToken) {
20313
21053
  const token = this.configuration.accessToken;
@@ -20317,7 +21057,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20317
21057
  }
20318
21058
  }
20319
21059
  if (this.configuration && this.configuration.apiKey) {
20320
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21060
+ {
21061
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21062
+ if (apiKeyValue) {
21063
+ headerParameters["X-Application-Key"] = apiKeyValue;
21064
+ }
21065
+ }
20321
21066
  }
20322
21067
  const response = await this.request({
20323
21068
  path: `/auth/webauthn/registration/start`,
@@ -20351,10 +21096,20 @@ var AuthWebAuthnApi = class extends BaseAPI {
20351
21096
  const headerParameters = {};
20352
21097
  headerParameters["Content-Type"] = "application/json";
20353
21098
  if (this.configuration && this.configuration.apiKey) {
20354
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21099
+ {
21100
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21101
+ if (apiKeyValue) {
21102
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21103
+ }
21104
+ }
20355
21105
  }
20356
21106
  if (this.configuration && this.configuration.apiKey) {
20357
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21107
+ {
21108
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21109
+ if (apiKeyValue) {
21110
+ headerParameters["X-Application-Key"] = apiKeyValue;
21111
+ }
21112
+ }
20358
21113
  }
20359
21114
  const response = await this.request({
20360
21115
  path: `/auth/webauthn/authentication/verify`,
@@ -20388,7 +21143,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20388
21143
  const headerParameters = {};
20389
21144
  headerParameters["Content-Type"] = "application/json";
20390
21145
  if (this.configuration && this.configuration.apiKey) {
20391
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21146
+ {
21147
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21148
+ if (apiKeyValue) {
21149
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21150
+ }
21151
+ }
20392
21152
  }
20393
21153
  if (this.configuration && this.configuration.accessToken) {
20394
21154
  const token = this.configuration.accessToken;
@@ -20398,7 +21158,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
20398
21158
  }
20399
21159
  }
20400
21160
  if (this.configuration && this.configuration.apiKey) {
20401
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21161
+ {
21162
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21163
+ if (apiKeyValue) {
21164
+ headerParameters["X-Application-Key"] = apiKeyValue;
21165
+ }
21166
+ }
20402
21167
  }
20403
21168
  const response = await this.request({
20404
21169
  path: `/auth/webauthn/registration/verify`,
@@ -20435,7 +21200,12 @@ var DevicesApi = class extends BaseAPI {
20435
21200
  const queryParameters = {};
20436
21201
  const headerParameters = {};
20437
21202
  if (this.configuration && this.configuration.apiKey) {
20438
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21203
+ {
21204
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21205
+ if (apiKeyValue) {
21206
+ headerParameters["X-API-Key"] = apiKeyValue;
21207
+ }
21208
+ }
20439
21209
  }
20440
21210
  const response = await this.request({
20441
21211
  path: `/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20467,7 +21237,12 @@ var DevicesApi = class extends BaseAPI {
20467
21237
  const queryParameters = {};
20468
21238
  const headerParameters = {};
20469
21239
  if (this.configuration && this.configuration.apiKey) {
20470
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21240
+ {
21241
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21242
+ if (apiKeyValue) {
21243
+ headerParameters["X-API-Key"] = apiKeyValue;
21244
+ }
21245
+ }
20471
21246
  }
20472
21247
  const response = await this.request({
20473
21248
  path: `/devices/user/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -20499,7 +21274,12 @@ var DevicesApi = class extends BaseAPI {
20499
21274
  const queryParameters = {};
20500
21275
  const headerParameters = {};
20501
21276
  if (this.configuration && this.configuration.apiKey) {
20502
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21277
+ {
21278
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21279
+ if (apiKeyValue) {
21280
+ headerParameters["X-API-Key"] = apiKeyValue;
21281
+ }
21282
+ }
20503
21283
  }
20504
21284
  const response = await this.request({
20505
21285
  path: `/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20525,7 +21305,12 @@ var DevicesApi = class extends BaseAPI {
20525
21305
  const queryParameters = {};
20526
21306
  const headerParameters = {};
20527
21307
  if (this.configuration && this.configuration.apiKey) {
20528
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21308
+ {
21309
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21310
+ if (apiKeyValue) {
21311
+ headerParameters["X-API-Key"] = apiKeyValue;
21312
+ }
21313
+ }
20529
21314
  }
20530
21315
  const response = await this.request({
20531
21316
  path: `/devices/stats`,
@@ -20563,7 +21348,12 @@ var DevicesApi = class extends BaseAPI {
20563
21348
  }
20564
21349
  const headerParameters = {};
20565
21350
  if (this.configuration && this.configuration.apiKey) {
20566
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21351
+ {
21352
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21353
+ if (apiKeyValue) {
21354
+ headerParameters["X-API-Key"] = apiKeyValue;
21355
+ }
21356
+ }
20567
21357
  }
20568
21358
  const response = await this.request({
20569
21359
  path: `/devices`,
@@ -20582,7 +21372,7 @@ var DevicesApi = class extends BaseAPI {
20582
21372
  return await response.value();
20583
21373
  }
20584
21374
  /**
20585
- * Register a device for push notifications. If the token already exists, updates it.
21375
+ * Register a device for push notifications. Registration is an upsert keyed on (project, token), so calling it on every app launch is safe and idempotent. Re-registering an existing token under a different `user_id` **reassigns** the device to that user — the previous association does not persist, so a push addressed to the old user will not reach this device. `user_id` is an opaque string you choose. It is stored verbatim with no foreign key, and `POST /v1/push` matches on exactly that value. No Subscriber record is created for you. Requires a secret API key, so call it from your backend and derive `user_id` from the authenticated session rather than the request body.
20586
21376
  * Register a device
20587
21377
  */
20588
21378
  async registerDeviceRaw(requestParameters, initOverrides) {
@@ -20596,7 +21386,12 @@ var DevicesApi = class extends BaseAPI {
20596
21386
  const headerParameters = {};
20597
21387
  headerParameters["Content-Type"] = "application/json";
20598
21388
  if (this.configuration && this.configuration.apiKey) {
20599
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21389
+ {
21390
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21391
+ if (apiKeyValue) {
21392
+ headerParameters["X-API-Key"] = apiKeyValue;
21393
+ }
21394
+ }
20600
21395
  }
20601
21396
  const response = await this.request({
20602
21397
  path: `/devices`,
@@ -20608,7 +21403,7 @@ var DevicesApi = class extends BaseAPI {
20608
21403
  return new JSONApiResponse(response, (jsonValue) => DeviceResponseFromJSON(jsonValue));
20609
21404
  }
20610
21405
  /**
20611
- * Register a device for push notifications. If the token already exists, updates it.
21406
+ * Register a device for push notifications. Registration is an upsert keyed on (project, token), so calling it on every app launch is safe and idempotent. Re-registering an existing token under a different `user_id` **reassigns** the device to that user — the previous association does not persist, so a push addressed to the old user will not reach this device. `user_id` is an opaque string you choose. It is stored verbatim with no foreign key, and `POST /v1/push` matches on exactly that value. No Subscriber record is created for you. Requires a secret API key, so call it from your backend and derive `user_id` from the authenticated session rather than the request body.
20612
21407
  * Register a device
20613
21408
  */
20614
21409
  async registerDevice(registerDeviceRequest, initOverrides) {
@@ -20639,7 +21434,12 @@ var DomainsApi = class extends BaseAPI {
20639
21434
  const headerParameters = {};
20640
21435
  headerParameters["Content-Type"] = "application/json";
20641
21436
  if (this.configuration && this.configuration.apiKey) {
20642
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21437
+ {
21438
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21439
+ if (apiKeyValue) {
21440
+ headerParameters["X-API-Key"] = apiKeyValue;
21441
+ }
21442
+ }
20643
21443
  }
20644
21444
  const response = await this.request({
20645
21445
  path: `/domains`,
@@ -20672,7 +21472,12 @@ var DomainsApi = class extends BaseAPI {
20672
21472
  const queryParameters = {};
20673
21473
  const headerParameters = {};
20674
21474
  if (this.configuration && this.configuration.apiKey) {
20675
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21475
+ {
21476
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21477
+ if (apiKeyValue) {
21478
+ headerParameters["X-API-Key"] = apiKeyValue;
21479
+ }
21480
+ }
20676
21481
  }
20677
21482
  const response = await this.request({
20678
21483
  path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20704,7 +21509,12 @@ var DomainsApi = class extends BaseAPI {
20704
21509
  const queryParameters = {};
20705
21510
  const headerParameters = {};
20706
21511
  if (this.configuration && this.configuration.apiKey) {
20707
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21512
+ {
21513
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21514
+ if (apiKeyValue) {
21515
+ headerParameters["X-API-Key"] = apiKeyValue;
21516
+ }
21517
+ }
20708
21518
  }
20709
21519
  const response = await this.request({
20710
21520
  path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20736,7 +21546,12 @@ var DomainsApi = class extends BaseAPI {
20736
21546
  const queryParameters = {};
20737
21547
  const headerParameters = {};
20738
21548
  if (this.configuration && this.configuration.apiKey) {
20739
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21549
+ {
21550
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21551
+ if (apiKeyValue) {
21552
+ headerParameters["X-API-Key"] = apiKeyValue;
21553
+ }
21554
+ }
20740
21555
  }
20741
21556
  const response = await this.request({
20742
21557
  path: `/domains/{id}/verification-status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20762,7 +21577,12 @@ var DomainsApi = class extends BaseAPI {
20762
21577
  const queryParameters = {};
20763
21578
  const headerParameters = {};
20764
21579
  if (this.configuration && this.configuration.apiKey) {
20765
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21580
+ {
21581
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21582
+ if (apiKeyValue) {
21583
+ headerParameters["X-API-Key"] = apiKeyValue;
21584
+ }
21585
+ }
20766
21586
  }
20767
21587
  const response = await this.request({
20768
21588
  path: `/domains`,
@@ -20801,7 +21621,12 @@ var DomainsApi = class extends BaseAPI {
20801
21621
  const headerParameters = {};
20802
21622
  headerParameters["Content-Type"] = "application/json";
20803
21623
  if (this.configuration && this.configuration.apiKey) {
20804
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21624
+ {
21625
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21626
+ if (apiKeyValue) {
21627
+ headerParameters["X-API-Key"] = apiKeyValue;
21628
+ }
21629
+ }
20805
21630
  }
20806
21631
  const response = await this.request({
20807
21632
  path: `/domains/{id}/inbound`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20834,7 +21659,12 @@ var DomainsApi = class extends BaseAPI {
20834
21659
  const queryParameters = {};
20835
21660
  const headerParameters = {};
20836
21661
  if (this.configuration && this.configuration.apiKey) {
20837
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21662
+ {
21663
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21664
+ if (apiKeyValue) {
21665
+ headerParameters["X-API-Key"] = apiKeyValue;
21666
+ }
21667
+ }
20838
21668
  }
20839
21669
  const response = await this.request({
20840
21670
  path: `/domains/{id}/verify`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20870,7 +21700,12 @@ var EmailsApi = class extends BaseAPI {
20870
21700
  const queryParameters = {};
20871
21701
  const headerParameters = {};
20872
21702
  if (this.configuration && this.configuration.apiKey) {
20873
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21703
+ {
21704
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21705
+ if (apiKeyValue) {
21706
+ headerParameters["X-API-Key"] = apiKeyValue;
21707
+ }
21708
+ }
20874
21709
  }
20875
21710
  const response = await this.request({
20876
21711
  path: `/emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20902,7 +21737,12 @@ var EmailsApi = class extends BaseAPI {
20902
21737
  const queryParameters = {};
20903
21738
  const headerParameters = {};
20904
21739
  if (this.configuration && this.configuration.apiKey) {
20905
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21740
+ {
21741
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21742
+ if (apiKeyValue) {
21743
+ headerParameters["X-API-Key"] = apiKeyValue;
21744
+ }
21745
+ }
20906
21746
  }
20907
21747
  const response = await this.request({
20908
21748
  path: `/emails/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20934,7 +21774,12 @@ var EmailsApi = class extends BaseAPI {
20934
21774
  const queryParameters = {};
20935
21775
  const headerParameters = {};
20936
21776
  if (this.configuration && this.configuration.apiKey) {
20937
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21777
+ {
21778
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21779
+ if (apiKeyValue) {
21780
+ headerParameters["X-API-Key"] = apiKeyValue;
21781
+ }
21782
+ }
20938
21783
  }
20939
21784
  const response = await this.request({
20940
21785
  path: `/emails/{id}/tracking`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -20972,7 +21817,12 @@ var EmailsApi = class extends BaseAPI {
20972
21817
  }
20973
21818
  const headerParameters = {};
20974
21819
  if (this.configuration && this.configuration.apiKey) {
20975
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21820
+ {
21821
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21822
+ if (apiKeyValue) {
21823
+ headerParameters["X-API-Key"] = apiKeyValue;
21824
+ }
21825
+ }
20976
21826
  }
20977
21827
  const response = await this.request({
20978
21828
  path: `/emails`,
@@ -21005,7 +21855,12 @@ var EmailsApi = class extends BaseAPI {
21005
21855
  const headerParameters = {};
21006
21856
  headerParameters["Content-Type"] = "application/json";
21007
21857
  if (this.configuration && this.configuration.apiKey) {
21008
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21858
+ {
21859
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21860
+ if (apiKeyValue) {
21861
+ headerParameters["X-API-Key"] = apiKeyValue;
21862
+ }
21863
+ }
21009
21864
  }
21010
21865
  const response = await this.request({
21011
21866
  path: `/emails/batch`,
@@ -21039,7 +21894,12 @@ var EmailsApi = class extends BaseAPI {
21039
21894
  const headerParameters = {};
21040
21895
  headerParameters["Content-Type"] = "application/json";
21041
21896
  if (this.configuration && this.configuration.apiKey) {
21042
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21897
+ {
21898
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21899
+ if (apiKeyValue) {
21900
+ headerParameters["X-API-Key"] = apiKeyValue;
21901
+ }
21902
+ }
21043
21903
  }
21044
21904
  const response = await this.request({
21045
21905
  path: `/emails`,
@@ -21086,7 +21946,12 @@ var ExecutionsApi = class extends BaseAPI {
21086
21946
  const queryParameters = {};
21087
21947
  const headerParameters = {};
21088
21948
  if (this.configuration && this.configuration.apiKey) {
21089
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21949
+ {
21950
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21951
+ if (apiKeyValue) {
21952
+ headerParameters["X-API-Key"] = apiKeyValue;
21953
+ }
21954
+ }
21090
21955
  }
21091
21956
  const response = await this.request({
21092
21957
  path: `/executions/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21118,7 +21983,12 @@ var ExecutionsApi = class extends BaseAPI {
21118
21983
  const queryParameters = {};
21119
21984
  const headerParameters = {};
21120
21985
  if (this.configuration && this.configuration.apiKey) {
21121
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
21986
+ {
21987
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
21988
+ if (apiKeyValue) {
21989
+ headerParameters["X-API-Key"] = apiKeyValue;
21990
+ }
21991
+ }
21122
21992
  }
21123
21993
  const response = await this.request({
21124
21994
  path: `/executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21150,7 +22020,12 @@ var ExecutionsApi = class extends BaseAPI {
21150
22020
  const queryParameters = {};
21151
22021
  const headerParameters = {};
21152
22022
  if (this.configuration && this.configuration.apiKey) {
21153
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22023
+ {
22024
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22025
+ if (apiKeyValue) {
22026
+ headerParameters["X-API-Key"] = apiKeyValue;
22027
+ }
22028
+ }
21154
22029
  }
21155
22030
  const response = await this.request({
21156
22031
  path: `/executions/{id}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21192,7 +22067,12 @@ var InboundEmailApi = class extends BaseAPI {
21192
22067
  const queryParameters = {};
21193
22068
  const headerParameters = {};
21194
22069
  if (this.configuration && this.configuration.apiKey) {
21195
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22070
+ {
22071
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22072
+ if (apiKeyValue) {
22073
+ headerParameters["X-API-Key"] = apiKeyValue;
22074
+ }
22075
+ }
21196
22076
  }
21197
22077
  const response = await this.request({
21198
22078
  path: `/inbound-emails/{id}/attachments/{attachmentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters["attachmentId"]))),
@@ -21224,7 +22104,12 @@ var InboundEmailApi = class extends BaseAPI {
21224
22104
  const queryParameters = {};
21225
22105
  const headerParameters = {};
21226
22106
  if (this.configuration && this.configuration.apiKey) {
21227
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22107
+ {
22108
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22109
+ if (apiKeyValue) {
22110
+ headerParameters["X-API-Key"] = apiKeyValue;
22111
+ }
22112
+ }
21228
22113
  }
21229
22114
  const response = await this.request({
21230
22115
  path: `/inbound-emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21265,7 +22150,12 @@ var InboundEmailApi = class extends BaseAPI {
21265
22150
  }
21266
22151
  const headerParameters = {};
21267
22152
  if (this.configuration && this.configuration.apiKey) {
21268
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22153
+ {
22154
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22155
+ if (apiKeyValue) {
22156
+ headerParameters["X-API-Key"] = apiKeyValue;
22157
+ }
22158
+ }
21269
22159
  }
21270
22160
  const response = await this.request({
21271
22161
  path: `/inbound-emails`,
@@ -21309,7 +22199,12 @@ var InboxApi = class extends BaseAPI {
21309
22199
  const headerParameters = {};
21310
22200
  headerParameters["Content-Type"] = "application/json";
21311
22201
  if (this.configuration && this.configuration.apiKey) {
21312
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22202
+ {
22203
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22204
+ if (apiKeyValue) {
22205
+ headerParameters["X-API-Key"] = apiKeyValue;
22206
+ }
22207
+ }
21313
22208
  }
21314
22209
  const response = await this.request({
21315
22210
  path: `/inbox/{id}/archive`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21382,7 +22277,12 @@ var InboxApi = class extends BaseAPI {
21382
22277
  }
21383
22278
  const headerParameters = {};
21384
22279
  if (this.configuration && this.configuration.apiKey) {
21385
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22280
+ {
22281
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22282
+ if (apiKeyValue) {
22283
+ headerParameters["X-API-Key"] = apiKeyValue;
22284
+ }
22285
+ }
21386
22286
  }
21387
22287
  const response = await this.request({
21388
22288
  path: `/inbox/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21447,7 +22347,12 @@ var InboxApi = class extends BaseAPI {
21447
22347
  const headerParameters = {};
21448
22348
  headerParameters["Content-Type"] = "application/json";
21449
22349
  if (this.configuration && this.configuration.apiKey) {
21450
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22350
+ {
22351
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22352
+ if (apiKeyValue) {
22353
+ headerParameters["X-API-Key"] = apiKeyValue;
22354
+ }
22355
+ }
21451
22356
  }
21452
22357
  const response = await this.request({
21453
22358
  path: `/subscriber-inbox/token`,
@@ -21486,7 +22391,12 @@ var InboxApi = class extends BaseAPI {
21486
22391
  }
21487
22392
  const headerParameters = {};
21488
22393
  if (this.configuration && this.configuration.apiKey) {
21489
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22394
+ {
22395
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22396
+ if (apiKeyValue) {
22397
+ headerParameters["X-API-Key"] = apiKeyValue;
22398
+ }
22399
+ }
21490
22400
  }
21491
22401
  const response = await this.request({
21492
22402
  path: `/inbox/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21614,7 +22524,12 @@ var InboxApi = class extends BaseAPI {
21614
22524
  }
21615
22525
  const headerParameters = {};
21616
22526
  if (this.configuration && this.configuration.apiKey) {
21617
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22527
+ {
22528
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22529
+ if (apiKeyValue) {
22530
+ headerParameters["X-API-Key"] = apiKeyValue;
22531
+ }
22532
+ }
21618
22533
  }
21619
22534
  const response = await this.request({
21620
22535
  path: `/inbox/unread-count`,
@@ -21658,7 +22573,12 @@ var InboxApi = class extends BaseAPI {
21658
22573
  }
21659
22574
  const headerParameters = {};
21660
22575
  if (this.configuration && this.configuration.apiKey) {
21661
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22576
+ {
22577
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22578
+ if (apiKeyValue) {
22579
+ headerParameters["X-API-Key"] = apiKeyValue;
22580
+ }
22581
+ }
21662
22582
  }
21663
22583
  const response = await this.request({
21664
22584
  path: `/inbox/all`,
@@ -21708,7 +22628,12 @@ var InboxApi = class extends BaseAPI {
21708
22628
  }
21709
22629
  const headerParameters = {};
21710
22630
  if (this.configuration && this.configuration.apiKey) {
21711
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22631
+ {
22632
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22633
+ if (apiKeyValue) {
22634
+ headerParameters["X-API-Key"] = apiKeyValue;
22635
+ }
22636
+ }
21712
22637
  }
21713
22638
  const response = await this.request({
21714
22639
  path: `/inbox`,
@@ -21786,7 +22711,12 @@ var InboxApi = class extends BaseAPI {
21786
22711
  const headerParameters = {};
21787
22712
  headerParameters["Content-Type"] = "application/json";
21788
22713
  if (this.configuration && this.configuration.apiKey) {
21789
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22714
+ {
22715
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22716
+ if (apiKeyValue) {
22717
+ headerParameters["X-API-Key"] = apiKeyValue;
22718
+ }
22719
+ }
21790
22720
  }
21791
22721
  const response = await this.request({
21792
22722
  path: `/inbox/read-all`,
@@ -21850,7 +22780,12 @@ var InboxApi = class extends BaseAPI {
21850
22780
  const headerParameters = {};
21851
22781
  headerParameters["Content-Type"] = "application/json";
21852
22782
  if (this.configuration && this.configuration.apiKey) {
21853
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22783
+ {
22784
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22785
+ if (apiKeyValue) {
22786
+ headerParameters["X-API-Key"] = apiKeyValue;
22787
+ }
22788
+ }
21854
22789
  }
21855
22790
  const response = await this.request({
21856
22791
  path: `/inbox/{id}/read`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21918,7 +22853,12 @@ var InboxApi = class extends BaseAPI {
21918
22853
  const headerParameters = {};
21919
22854
  headerParameters["Content-Type"] = "application/json";
21920
22855
  if (this.configuration && this.configuration.apiKey) {
21921
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22856
+ {
22857
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22858
+ if (apiKeyValue) {
22859
+ headerParameters["X-API-Key"] = apiKeyValue;
22860
+ }
22861
+ }
21922
22862
  }
21923
22863
  const response = await this.request({
21924
22864
  path: `/inbox/send/batch`,
@@ -21952,7 +22892,12 @@ var InboxApi = class extends BaseAPI {
21952
22892
  const headerParameters = {};
21953
22893
  headerParameters["Content-Type"] = "application/json";
21954
22894
  if (this.configuration && this.configuration.apiKey) {
21955
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22895
+ {
22896
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22897
+ if (apiKeyValue) {
22898
+ headerParameters["X-API-Key"] = apiKeyValue;
22899
+ }
22900
+ }
21956
22901
  }
21957
22902
  const response = await this.request({
21958
22903
  path: `/inbox/send`,
@@ -22032,7 +22977,12 @@ var PushApi = class extends BaseAPI {
22032
22977
  const queryParameters = {};
22033
22978
  const headerParameters = {};
22034
22979
  if (this.configuration && this.configuration.apiKey) {
22035
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22980
+ {
22981
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
22982
+ if (apiKeyValue) {
22983
+ headerParameters["X-API-Key"] = apiKeyValue;
22984
+ }
22985
+ }
22036
22986
  }
22037
22987
  const response = await this.request({
22038
22988
  path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22058,7 +23008,12 @@ var PushApi = class extends BaseAPI {
22058
23008
  const queryParameters = {};
22059
23009
  const headerParameters = {};
22060
23010
  if (this.configuration && this.configuration.apiKey) {
22061
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23011
+ {
23012
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23013
+ if (apiKeyValue) {
23014
+ headerParameters["X-API-Key"] = apiKeyValue;
23015
+ }
23016
+ }
22062
23017
  }
22063
23018
  const response = await this.request({
22064
23019
  path: `/push/stats`,
@@ -22090,7 +23045,12 @@ var PushApi = class extends BaseAPI {
22090
23045
  const queryParameters = {};
22091
23046
  const headerParameters = {};
22092
23047
  if (this.configuration && this.configuration.apiKey) {
22093
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23048
+ {
23049
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23050
+ if (apiKeyValue) {
23051
+ headerParameters["X-API-Key"] = apiKeyValue;
23052
+ }
23053
+ }
22094
23054
  }
22095
23055
  const response = await this.request({
22096
23056
  path: `/push/devices/{id}/topics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22131,7 +23091,12 @@ var PushApi = class extends BaseAPI {
22131
23091
  }
22132
23092
  const headerParameters = {};
22133
23093
  if (this.configuration && this.configuration.apiKey) {
22134
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23094
+ {
23095
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23096
+ if (apiKeyValue) {
23097
+ headerParameters["X-API-Key"] = apiKeyValue;
23098
+ }
23099
+ }
22135
23100
  }
22136
23101
  const response = await this.request({
22137
23102
  path: `/push`,
@@ -22169,7 +23134,12 @@ var PushApi = class extends BaseAPI {
22169
23134
  }
22170
23135
  const headerParameters = {};
22171
23136
  if (this.configuration && this.configuration.apiKey) {
22172
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23137
+ {
23138
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23139
+ if (apiKeyValue) {
23140
+ headerParameters["X-API-Key"] = apiKeyValue;
23141
+ }
23142
+ }
22173
23143
  }
22174
23144
  const response = await this.request({
22175
23145
  path: `/push/topics/{key}/devices`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -22202,7 +23172,12 @@ var PushApi = class extends BaseAPI {
22202
23172
  const headerParameters = {};
22203
23173
  headerParameters["Content-Type"] = "application/json";
22204
23174
  if (this.configuration && this.configuration.apiKey) {
22205
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23175
+ {
23176
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23177
+ if (apiKeyValue) {
23178
+ headerParameters["X-API-Key"] = apiKeyValue;
23179
+ }
23180
+ }
22206
23181
  }
22207
23182
  const response = await this.request({
22208
23183
  path: `/push`,
@@ -22242,7 +23217,12 @@ var PushApi = class extends BaseAPI {
22242
23217
  const headerParameters = {};
22243
23218
  headerParameters["Content-Type"] = "application/json";
22244
23219
  if (this.configuration && this.configuration.apiKey) {
22245
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23220
+ {
23221
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23222
+ if (apiKeyValue) {
23223
+ headerParameters["X-API-Key"] = apiKeyValue;
23224
+ }
23225
+ }
22246
23226
  }
22247
23227
  const response = await this.request({
22248
23228
  path: `/push/topics/{key}/send`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -22282,7 +23262,12 @@ var PushApi = class extends BaseAPI {
22282
23262
  const headerParameters = {};
22283
23263
  headerParameters["Content-Type"] = "application/json";
22284
23264
  if (this.configuration && this.configuration.apiKey) {
22285
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23265
+ {
23266
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23267
+ if (apiKeyValue) {
23268
+ headerParameters["X-API-Key"] = apiKeyValue;
23269
+ }
23270
+ }
22286
23271
  }
22287
23272
  const response = await this.request({
22288
23273
  path: `/push/topics/{key}/subscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -22322,7 +23307,12 @@ var PushApi = class extends BaseAPI {
22322
23307
  const headerParameters = {};
22323
23308
  headerParameters["Content-Type"] = "application/json";
22324
23309
  if (this.configuration && this.configuration.apiKey) {
22325
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23310
+ {
23311
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23312
+ if (apiKeyValue) {
23313
+ headerParameters["X-API-Key"] = apiKeyValue;
23314
+ }
23315
+ }
22326
23316
  }
22327
23317
  const response = await this.request({
22328
23318
  path: `/push/topics/{key}/unsubscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -22360,7 +23350,12 @@ var SMSApi = class extends BaseAPI {
22360
23350
  const queryParameters = {};
22361
23351
  const headerParameters = {};
22362
23352
  if (this.configuration && this.configuration.apiKey) {
22363
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23353
+ {
23354
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23355
+ if (apiKeyValue) {
23356
+ headerParameters["X-API-Key"] = apiKeyValue;
23357
+ }
23358
+ }
22364
23359
  }
22365
23360
  const response = await this.request({
22366
23361
  path: `/sms/config`,
@@ -22392,7 +23387,12 @@ var SMSApi = class extends BaseAPI {
22392
23387
  const queryParameters = {};
22393
23388
  const headerParameters = {};
22394
23389
  if (this.configuration && this.configuration.apiKey) {
22395
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23390
+ {
23391
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23392
+ if (apiKeyValue) {
23393
+ headerParameters["X-API-Key"] = apiKeyValue;
23394
+ }
23395
+ }
22396
23396
  }
22397
23397
  const response = await this.request({
22398
23398
  path: `/sms/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22418,7 +23418,12 @@ var SMSApi = class extends BaseAPI {
22418
23418
  const queryParameters = {};
22419
23419
  const headerParameters = {};
22420
23420
  if (this.configuration && this.configuration.apiKey) {
22421
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23421
+ {
23422
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23423
+ if (apiKeyValue) {
23424
+ headerParameters["X-API-Key"] = apiKeyValue;
23425
+ }
23426
+ }
22422
23427
  }
22423
23428
  const response = await this.request({
22424
23429
  path: `/sms/config`,
@@ -22444,7 +23449,12 @@ var SMSApi = class extends BaseAPI {
22444
23449
  const queryParameters = {};
22445
23450
  const headerParameters = {};
22446
23451
  if (this.configuration && this.configuration.apiKey) {
22447
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23452
+ {
23453
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23454
+ if (apiKeyValue) {
23455
+ headerParameters["X-API-Key"] = apiKeyValue;
23456
+ }
23457
+ }
22448
23458
  }
22449
23459
  const response = await this.request({
22450
23460
  path: `/sms/inbound-webhook`,
@@ -22481,7 +23491,12 @@ var SMSApi = class extends BaseAPI {
22481
23491
  }
22482
23492
  const headerParameters = {};
22483
23493
  if (this.configuration && this.configuration.apiKey) {
22484
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23494
+ {
23495
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23496
+ if (apiKeyValue) {
23497
+ headerParameters["X-API-Key"] = apiKeyValue;
23498
+ }
23499
+ }
22485
23500
  }
22486
23501
  const response = await this.request({
22487
23502
  path: `/sms`,
@@ -22514,7 +23529,12 @@ var SMSApi = class extends BaseAPI {
22514
23529
  const headerParameters = {};
22515
23530
  headerParameters["Content-Type"] = "application/json";
22516
23531
  if (this.configuration && this.configuration.apiKey) {
22517
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23532
+ {
23533
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23534
+ if (apiKeyValue) {
23535
+ headerParameters["X-API-Key"] = apiKeyValue;
23536
+ }
23537
+ }
22518
23538
  }
22519
23539
  const response = await this.request({
22520
23540
  path: `/sms/batch`,
@@ -22548,7 +23568,12 @@ var SMSApi = class extends BaseAPI {
22548
23568
  const headerParameters = {};
22549
23569
  headerParameters["Content-Type"] = "application/json";
22550
23570
  if (this.configuration && this.configuration.apiKey) {
22551
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23571
+ {
23572
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23573
+ if (apiKeyValue) {
23574
+ headerParameters["X-API-Key"] = apiKeyValue;
23575
+ }
23576
+ }
22552
23577
  }
22553
23578
  const response = await this.request({
22554
23579
  path: `/sms`,
@@ -22582,7 +23607,12 @@ var SMSApi = class extends BaseAPI {
22582
23607
  const headerParameters = {};
22583
23608
  headerParameters["Content-Type"] = "application/json";
22584
23609
  if (this.configuration && this.configuration.apiKey) {
22585
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23610
+ {
23611
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23612
+ if (apiKeyValue) {
23613
+ headerParameters["X-API-Key"] = apiKeyValue;
23614
+ }
23615
+ }
22586
23616
  }
22587
23617
  const response = await this.request({
22588
23618
  path: `/sms/test`,
@@ -22616,7 +23646,12 @@ var SMSApi = class extends BaseAPI {
22616
23646
  const headerParameters = {};
22617
23647
  headerParameters["Content-Type"] = "application/json";
22618
23648
  if (this.configuration && this.configuration.apiKey) {
22619
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23649
+ {
23650
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23651
+ if (apiKeyValue) {
23652
+ headerParameters["X-API-Key"] = apiKeyValue;
23653
+ }
23654
+ }
22620
23655
  }
22621
23656
  const response = await this.request({
22622
23657
  path: `/sms/config`,
@@ -22643,7 +23678,12 @@ var SMSApi = class extends BaseAPI {
22643
23678
  const queryParameters = {};
22644
23679
  const headerParameters = {};
22645
23680
  if (this.configuration && this.configuration.apiKey) {
22646
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23681
+ {
23682
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23683
+ if (apiKeyValue) {
23684
+ headerParameters["X-API-Key"] = apiKeyValue;
23685
+ }
23686
+ }
22647
23687
  }
22648
23688
  const response = await this.request({
22649
23689
  path: `/sms/config/verify`,
@@ -22687,7 +23727,12 @@ var SlackApi = class extends BaseAPI {
22687
23727
  const queryParameters = {};
22688
23728
  const headerParameters = {};
22689
23729
  if (this.configuration && this.configuration.apiKey) {
22690
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23730
+ {
23731
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23732
+ if (apiKeyValue) {
23733
+ headerParameters["X-API-Key"] = apiKeyValue;
23734
+ }
23735
+ }
22691
23736
  }
22692
23737
  const response = await this.request({
22693
23738
  path: `/slack/messages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22728,7 +23773,12 @@ var SlackApi = class extends BaseAPI {
22728
23773
  }
22729
23774
  const headerParameters = {};
22730
23775
  if (this.configuration && this.configuration.apiKey) {
22731
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23776
+ {
23777
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23778
+ if (apiKeyValue) {
23779
+ headerParameters["X-API-Key"] = apiKeyValue;
23780
+ }
23781
+ }
22732
23782
  }
22733
23783
  const response = await this.request({
22734
23784
  path: `/slack/messages`,
@@ -22761,7 +23811,12 @@ var SlackApi = class extends BaseAPI {
22761
23811
  const headerParameters = {};
22762
23812
  headerParameters["Content-Type"] = "application/json";
22763
23813
  if (this.configuration && this.configuration.apiKey) {
22764
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23814
+ {
23815
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23816
+ if (apiKeyValue) {
23817
+ headerParameters["X-API-Key"] = apiKeyValue;
23818
+ }
23819
+ }
22765
23820
  }
22766
23821
  const response = await this.request({
22767
23822
  path: `/slack/send`,
@@ -22805,7 +23860,12 @@ var SubscribersApi = class extends BaseAPI {
22805
23860
  const headerParameters = {};
22806
23861
  headerParameters["Content-Type"] = "application/json";
22807
23862
  if (this.configuration && this.configuration.apiKey) {
22808
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23863
+ {
23864
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23865
+ if (apiKeyValue) {
23866
+ headerParameters["X-API-Key"] = apiKeyValue;
23867
+ }
23868
+ }
22809
23869
  }
22810
23870
  const response = await this.request({
22811
23871
  path: `/subscribers/categories`,
@@ -22838,7 +23898,12 @@ var SubscribersApi = class extends BaseAPI {
22838
23898
  const headerParameters = {};
22839
23899
  headerParameters["Content-Type"] = "application/json";
22840
23900
  if (this.configuration && this.configuration.apiKey) {
22841
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23901
+ {
23902
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23903
+ if (apiKeyValue) {
23904
+ headerParameters["X-API-Key"] = apiKeyValue;
23905
+ }
23906
+ }
22842
23907
  }
22843
23908
  const response = await this.request({
22844
23909
  path: `/subscribers`,
@@ -22870,7 +23935,12 @@ var SubscribersApi = class extends BaseAPI {
22870
23935
  const queryParameters = {};
22871
23936
  const headerParameters = {};
22872
23937
  if (this.configuration && this.configuration.apiKey) {
22873
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23938
+ {
23939
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23940
+ if (apiKeyValue) {
23941
+ headerParameters["X-API-Key"] = apiKeyValue;
23942
+ }
23943
+ }
22874
23944
  }
22875
23945
  const response = await this.request({
22876
23946
  path: `/subscribers/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22900,7 +23970,12 @@ var SubscribersApi = class extends BaseAPI {
22900
23970
  const queryParameters = {};
22901
23971
  const headerParameters = {};
22902
23972
  if (this.configuration && this.configuration.apiKey) {
22903
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23973
+ {
23974
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23975
+ if (apiKeyValue) {
23976
+ headerParameters["X-API-Key"] = apiKeyValue;
23977
+ }
23978
+ }
22904
23979
  }
22905
23980
  const response = await this.request({
22906
23981
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22930,7 +24005,12 @@ var SubscribersApi = class extends BaseAPI {
22930
24005
  const queryParameters = {};
22931
24006
  const headerParameters = {};
22932
24007
  if (this.configuration && this.configuration.apiKey) {
22933
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24008
+ {
24009
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24010
+ if (apiKeyValue) {
24011
+ headerParameters["X-API-Key"] = apiKeyValue;
24012
+ }
24013
+ }
22934
24014
  }
22935
24015
  const response = await this.request({
22936
24016
  path: `/subscribers/categories/{idOrSlug}`.replace(`{${"idOrSlug"}}`, encodeURIComponent(String(requestParameters["idOrSlug"]))),
@@ -22960,7 +24040,12 @@ var SubscribersApi = class extends BaseAPI {
22960
24040
  const queryParameters = {};
22961
24041
  const headerParameters = {};
22962
24042
  if (this.configuration && this.configuration.apiKey) {
22963
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24043
+ {
24044
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24045
+ if (apiKeyValue) {
24046
+ headerParameters["X-API-Key"] = apiKeyValue;
24047
+ }
24048
+ }
22964
24049
  }
22965
24050
  const response = await this.request({
22966
24051
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22990,7 +24075,12 @@ var SubscribersApi = class extends BaseAPI {
22990
24075
  const queryParameters = {};
22991
24076
  const headerParameters = {};
22992
24077
  if (this.configuration && this.configuration.apiKey) {
22993
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24078
+ {
24079
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24080
+ if (apiKeyValue) {
24081
+ headerParameters["X-API-Key"] = apiKeyValue;
24082
+ }
24083
+ }
22994
24084
  }
22995
24085
  const response = await this.request({
22996
24086
  path: `/subscribers/by-external-id/{externalId}`.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters["externalId"]))),
@@ -23020,7 +24110,12 @@ var SubscribersApi = class extends BaseAPI {
23020
24110
  const queryParameters = {};
23021
24111
  const headerParameters = {};
23022
24112
  if (this.configuration && this.configuration.apiKey) {
23023
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24113
+ {
24114
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24115
+ if (apiKeyValue) {
24116
+ headerParameters["X-API-Key"] = apiKeyValue;
24117
+ }
24118
+ }
23024
24119
  }
23025
24120
  const response = await this.request({
23026
24121
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23057,7 +24152,12 @@ var SubscribersApi = class extends BaseAPI {
23057
24152
  }
23058
24153
  const headerParameters = {};
23059
24154
  if (this.configuration && this.configuration.apiKey) {
23060
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24155
+ {
24156
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24157
+ if (apiKeyValue) {
24158
+ headerParameters["X-API-Key"] = apiKeyValue;
24159
+ }
24160
+ }
23061
24161
  }
23062
24162
  const response = await this.request({
23063
24163
  path: `/subscribers/{id}/consent/history`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23091,7 +24191,12 @@ var SubscribersApi = class extends BaseAPI {
23091
24191
  }
23092
24192
  const headerParameters = {};
23093
24193
  if (this.configuration && this.configuration.apiKey) {
23094
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24194
+ {
24195
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24196
+ if (apiKeyValue) {
24197
+ headerParameters["X-API-Key"] = apiKeyValue;
24198
+ }
24199
+ }
23095
24200
  }
23096
24201
  const response = await this.request({
23097
24202
  path: `/subscribers/{id}/preferences`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23121,7 +24226,12 @@ var SubscribersApi = class extends BaseAPI {
23121
24226
  const queryParameters = {};
23122
24227
  const headerParameters = {};
23123
24228
  if (this.configuration && this.configuration.apiKey) {
23124
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24229
+ {
24230
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24231
+ if (apiKeyValue) {
24232
+ headerParameters["X-API-Key"] = apiKeyValue;
24233
+ }
24234
+ }
23125
24235
  }
23126
24236
  const response = await this.request({
23127
24237
  path: `/subscribers/{id}/unsubscribes`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23145,7 +24255,12 @@ var SubscribersApi = class extends BaseAPI {
23145
24255
  const queryParameters = {};
23146
24256
  const headerParameters = {};
23147
24257
  if (this.configuration && this.configuration.apiKey) {
23148
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24258
+ {
24259
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24260
+ if (apiKeyValue) {
24261
+ headerParameters["X-API-Key"] = apiKeyValue;
24262
+ }
24263
+ }
23149
24264
  }
23150
24265
  const response = await this.request({
23151
24266
  path: `/subscribers/categories`,
@@ -23181,7 +24296,12 @@ var SubscribersApi = class extends BaseAPI {
23181
24296
  }
23182
24297
  const headerParameters = {};
23183
24298
  if (this.configuration && this.configuration.apiKey) {
23184
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24299
+ {
24300
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24301
+ if (apiKeyValue) {
24302
+ headerParameters["X-API-Key"] = apiKeyValue;
24303
+ }
24304
+ }
23185
24305
  }
23186
24306
  const response = await this.request({
23187
24307
  path: `/subscribers`,
@@ -23218,7 +24338,12 @@ var SubscribersApi = class extends BaseAPI {
23218
24338
  const headerParameters = {};
23219
24339
  headerParameters["Content-Type"] = "application/json";
23220
24340
  if (this.configuration && this.configuration.apiKey) {
23221
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24341
+ {
24342
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24343
+ if (apiKeyValue) {
24344
+ headerParameters["X-API-Key"] = apiKeyValue;
24345
+ }
24346
+ }
23222
24347
  }
23223
24348
  const response = await this.request({
23224
24349
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23250,7 +24375,12 @@ var SubscribersApi = class extends BaseAPI {
23250
24375
  const headerParameters = {};
23251
24376
  headerParameters["Content-Type"] = "application/json";
23252
24377
  if (this.configuration && this.configuration.apiKey) {
23253
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24378
+ {
24379
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24380
+ if (apiKeyValue) {
24381
+ headerParameters["X-API-Key"] = apiKeyValue;
24382
+ }
24383
+ }
23254
24384
  }
23255
24385
  const response = await this.request({
23256
24386
  path: `/subscribers/{id}/resubscribe`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23289,7 +24419,12 @@ var SubscribersApi = class extends BaseAPI {
23289
24419
  const headerParameters = {};
23290
24420
  headerParameters["Content-Type"] = "application/json";
23291
24421
  if (this.configuration && this.configuration.apiKey) {
23292
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24422
+ {
24423
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24424
+ if (apiKeyValue) {
24425
+ headerParameters["X-API-Key"] = apiKeyValue;
24426
+ }
24427
+ }
23293
24428
  }
23294
24429
  const response = await this.request({
23295
24430
  path: `/subscribers/{id}/preferences`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23322,7 +24457,12 @@ var SubscribersApi = class extends BaseAPI {
23322
24457
  const headerParameters = {};
23323
24458
  headerParameters["Content-Type"] = "application/json";
23324
24459
  if (this.configuration && this.configuration.apiKey) {
23325
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24460
+ {
24461
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24462
+ if (apiKeyValue) {
24463
+ headerParameters["X-API-Key"] = apiKeyValue;
24464
+ }
24465
+ }
23326
24466
  }
23327
24467
  const response = await this.request({
23328
24468
  path: `/subscribers/{id}/unsubscribe`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23360,7 +24500,12 @@ var SubscribersApi = class extends BaseAPI {
23360
24500
  const headerParameters = {};
23361
24501
  headerParameters["Content-Type"] = "application/json";
23362
24502
  if (this.configuration && this.configuration.apiKey) {
23363
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24503
+ {
24504
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24505
+ if (apiKeyValue) {
24506
+ headerParameters["X-API-Key"] = apiKeyValue;
24507
+ }
24508
+ }
23364
24509
  }
23365
24510
  const response = await this.request({
23366
24511
  path: `/subscribers/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23398,7 +24543,12 @@ var SubscribersApi = class extends BaseAPI {
23398
24543
  const headerParameters = {};
23399
24544
  headerParameters["Content-Type"] = "application/json";
23400
24545
  if (this.configuration && this.configuration.apiKey) {
23401
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24546
+ {
24547
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24548
+ if (apiKeyValue) {
24549
+ headerParameters["X-API-Key"] = apiKeyValue;
24550
+ }
24551
+ }
23402
24552
  }
23403
24553
  const response = await this.request({
23404
24554
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23431,7 +24581,12 @@ var SubscribersApi = class extends BaseAPI {
23431
24581
  const headerParameters = {};
23432
24582
  headerParameters["Content-Type"] = "application/json";
23433
24583
  if (this.configuration && this.configuration.apiKey) {
23434
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24584
+ {
24585
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24586
+ if (apiKeyValue) {
24587
+ headerParameters["X-API-Key"] = apiKeyValue;
24588
+ }
24589
+ }
23435
24590
  }
23436
24591
  const response = await this.request({
23437
24592
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23474,7 +24629,12 @@ var TemplatesApi = class extends BaseAPI {
23474
24629
  const headerParameters = {};
23475
24630
  headerParameters["Content-Type"] = "application/json";
23476
24631
  if (this.configuration && this.configuration.apiKey) {
23477
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24632
+ {
24633
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24634
+ if (apiKeyValue) {
24635
+ headerParameters["X-API-Key"] = apiKeyValue;
24636
+ }
24637
+ }
23478
24638
  }
23479
24639
  const response = await this.request({
23480
24640
  path: `/templates`,
@@ -23507,7 +24667,12 @@ var TemplatesApi = class extends BaseAPI {
23507
24667
  const queryParameters = {};
23508
24668
  const headerParameters = {};
23509
24669
  if (this.configuration && this.configuration.apiKey) {
23510
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24670
+ {
24671
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24672
+ if (apiKeyValue) {
24673
+ headerParameters["X-API-Key"] = apiKeyValue;
24674
+ }
24675
+ }
23511
24676
  }
23512
24677
  const response = await this.request({
23513
24678
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23539,7 +24704,12 @@ var TemplatesApi = class extends BaseAPI {
23539
24704
  const queryParameters = {};
23540
24705
  const headerParameters = {};
23541
24706
  if (this.configuration && this.configuration.apiKey) {
23542
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24707
+ {
24708
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24709
+ if (apiKeyValue) {
24710
+ headerParameters["X-API-Key"] = apiKeyValue;
24711
+ }
24712
+ }
23543
24713
  }
23544
24714
  const response = await this.request({
23545
24715
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23571,7 +24741,12 @@ var TemplatesApi = class extends BaseAPI {
23571
24741
  }
23572
24742
  const headerParameters = {};
23573
24743
  if (this.configuration && this.configuration.apiKey) {
23574
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24744
+ {
24745
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24746
+ if (apiKeyValue) {
24747
+ headerParameters["X-API-Key"] = apiKeyValue;
24748
+ }
24749
+ }
23575
24750
  }
23576
24751
  const response = await this.request({
23577
24752
  path: `/templates`,
@@ -23610,7 +24785,12 @@ var TemplatesApi = class extends BaseAPI {
23610
24785
  const headerParameters = {};
23611
24786
  headerParameters["Content-Type"] = "application/json";
23612
24787
  if (this.configuration && this.configuration.apiKey) {
23613
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24788
+ {
24789
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24790
+ if (apiKeyValue) {
24791
+ headerParameters["X-API-Key"] = apiKeyValue;
24792
+ }
24793
+ }
23614
24794
  }
23615
24795
  const response = await this.request({
23616
24796
  path: `/templates/{id}/render`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23694,7 +24874,12 @@ var TemplatesApi = class extends BaseAPI {
23694
24874
  const headerParameters = {};
23695
24875
  headerParameters["Content-Type"] = "application/json";
23696
24876
  if (this.configuration && this.configuration.apiKey) {
23697
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24877
+ {
24878
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24879
+ if (apiKeyValue) {
24880
+ headerParameters["X-API-Key"] = apiKeyValue;
24881
+ }
24882
+ }
23698
24883
  }
23699
24884
  const response = await this.request({
23700
24885
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23738,7 +24923,12 @@ var TopicsApi = class extends BaseAPI {
23738
24923
  const headerParameters = {};
23739
24924
  headerParameters["Content-Type"] = "application/json";
23740
24925
  if (this.configuration && this.configuration.apiKey) {
23741
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24926
+ {
24927
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24928
+ if (apiKeyValue) {
24929
+ headerParameters["X-API-Key"] = apiKeyValue;
24930
+ }
24931
+ }
23742
24932
  }
23743
24933
  const response = await this.request({
23744
24934
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -23772,7 +24962,12 @@ var TopicsApi = class extends BaseAPI {
23772
24962
  const headerParameters = {};
23773
24963
  headerParameters["Content-Type"] = "application/json";
23774
24964
  if (this.configuration && this.configuration.apiKey) {
23775
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24965
+ {
24966
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24967
+ if (apiKeyValue) {
24968
+ headerParameters["X-API-Key"] = apiKeyValue;
24969
+ }
24970
+ }
23776
24971
  }
23777
24972
  const response = await this.request({
23778
24973
  path: `/topics`,
@@ -23805,7 +25000,12 @@ var TopicsApi = class extends BaseAPI {
23805
25000
  const queryParameters = {};
23806
25001
  const headerParameters = {};
23807
25002
  if (this.configuration && this.configuration.apiKey) {
23808
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25003
+ {
25004
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25005
+ if (apiKeyValue) {
25006
+ headerParameters["X-API-Key"] = apiKeyValue;
25007
+ }
25008
+ }
23809
25009
  }
23810
25010
  const response = await this.request({
23811
25011
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -23837,7 +25037,12 @@ var TopicsApi = class extends BaseAPI {
23837
25037
  const queryParameters = {};
23838
25038
  const headerParameters = {};
23839
25039
  if (this.configuration && this.configuration.apiKey) {
23840
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25040
+ {
25041
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25042
+ if (apiKeyValue) {
25043
+ headerParameters["X-API-Key"] = apiKeyValue;
25044
+ }
25045
+ }
23841
25046
  }
23842
25047
  const response = await this.request({
23843
25048
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -23863,7 +25068,12 @@ var TopicsApi = class extends BaseAPI {
23863
25068
  const queryParameters = {};
23864
25069
  const headerParameters = {};
23865
25070
  if (this.configuration && this.configuration.apiKey) {
23866
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25071
+ {
25072
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25073
+ if (apiKeyValue) {
25074
+ headerParameters["X-API-Key"] = apiKeyValue;
25075
+ }
25076
+ }
23867
25077
  }
23868
25078
  const response = await this.request({
23869
25079
  path: `/topics/stats`,
@@ -23901,7 +25111,12 @@ var TopicsApi = class extends BaseAPI {
23901
25111
  }
23902
25112
  const headerParameters = {};
23903
25113
  if (this.configuration && this.configuration.apiKey) {
23904
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25114
+ {
25115
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25116
+ if (apiKeyValue) {
25117
+ headerParameters["X-API-Key"] = apiKeyValue;
25118
+ }
25119
+ }
23905
25120
  }
23906
25121
  const response = await this.request({
23907
25122
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -23936,7 +25151,12 @@ var TopicsApi = class extends BaseAPI {
23936
25151
  }
23937
25152
  const headerParameters = {};
23938
25153
  if (this.configuration && this.configuration.apiKey) {
23939
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25154
+ {
25155
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25156
+ if (apiKeyValue) {
25157
+ headerParameters["X-API-Key"] = apiKeyValue;
25158
+ }
25159
+ }
23940
25160
  }
23941
25161
  const response = await this.request({
23942
25162
  path: `/topics`,
@@ -23975,7 +25195,12 @@ var TopicsApi = class extends BaseAPI {
23975
25195
  const headerParameters = {};
23976
25196
  headerParameters["Content-Type"] = "application/json";
23977
25197
  if (this.configuration && this.configuration.apiKey) {
23978
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25198
+ {
25199
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25200
+ if (apiKeyValue) {
25201
+ headerParameters["X-API-Key"] = apiKeyValue;
25202
+ }
25203
+ }
23979
25204
  }
23980
25205
  const response = await this.request({
23981
25206
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -24015,7 +25240,12 @@ var TopicsApi = class extends BaseAPI {
24015
25240
  const headerParameters = {};
24016
25241
  headerParameters["Content-Type"] = "application/json";
24017
25242
  if (this.configuration && this.configuration.apiKey) {
24018
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25243
+ {
25244
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25245
+ if (apiKeyValue) {
25246
+ headerParameters["X-API-Key"] = apiKeyValue;
25247
+ }
25248
+ }
24019
25249
  }
24020
25250
  const response = await this.request({
24021
25251
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -24053,7 +25283,12 @@ var UtilityApi = class extends BaseAPI {
24053
25283
  const headerParameters = {};
24054
25284
  headerParameters["Content-Type"] = "application/json";
24055
25285
  if (this.configuration && this.configuration.apiKey) {
24056
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
25286
+ {
25287
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
25288
+ if (apiKeyValue) {
25289
+ headerParameters["X-Application-Key"] = apiKeyValue;
25290
+ }
25291
+ }
24057
25292
  }
24058
25293
  const response = await this.request({
24059
25294
  path: `/auth/password-strength`,
@@ -24080,7 +25315,12 @@ var UtilityApi = class extends BaseAPI {
24080
25315
  const queryParameters = {};
24081
25316
  const headerParameters = {};
24082
25317
  if (this.configuration && this.configuration.apiKey) {
24083
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
25318
+ {
25319
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
25320
+ if (apiKeyValue) {
25321
+ headerParameters["X-Application-Key"] = apiKeyValue;
25322
+ }
25323
+ }
24084
25324
  }
24085
25325
  const response = await this.request({
24086
25326
  path: `/auth/password-requirements`,
@@ -24117,7 +25357,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
24117
25357
  const headerParameters = {};
24118
25358
  headerParameters["Content-Type"] = "application/json";
24119
25359
  if (this.configuration && this.configuration.apiKey) {
24120
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25360
+ {
25361
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25362
+ if (apiKeyValue) {
25363
+ headerParameters["X-API-Key"] = apiKeyValue;
25364
+ }
25365
+ }
24121
25366
  }
24122
25367
  const response = await this.request({
24123
25368
  path: `/v1/waas/applications`,
@@ -24150,7 +25395,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
24150
25395
  const queryParameters = {};
24151
25396
  const headerParameters = {};
24152
25397
  if (this.configuration && this.configuration.apiKey) {
24153
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25398
+ {
25399
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25400
+ if (apiKeyValue) {
25401
+ headerParameters["X-API-Key"] = apiKeyValue;
25402
+ }
25403
+ }
24154
25404
  }
24155
25405
  const response = await this.request({
24156
25406
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24181,7 +25431,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
24181
25431
  const queryParameters = {};
24182
25432
  const headerParameters = {};
24183
25433
  if (this.configuration && this.configuration.apiKey) {
24184
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25434
+ {
25435
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25436
+ if (apiKeyValue) {
25437
+ headerParameters["X-API-Key"] = apiKeyValue;
25438
+ }
25439
+ }
24185
25440
  }
24186
25441
  const response = await this.request({
24187
25442
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24213,7 +25468,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
24213
25468
  const queryParameters = {};
24214
25469
  const headerParameters = {};
24215
25470
  if (this.configuration && this.configuration.apiKey) {
24216
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25471
+ {
25472
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25473
+ if (apiKeyValue) {
25474
+ headerParameters["X-API-Key"] = apiKeyValue;
25475
+ }
25476
+ }
24217
25477
  }
24218
25478
  const response = await this.request({
24219
25479
  path: `/v1/waas/applications/{appId}/usage`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24248,7 +25508,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
24248
25508
  }
24249
25509
  const headerParameters = {};
24250
25510
  if (this.configuration && this.configuration.apiKey) {
24251
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25511
+ {
25512
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25513
+ if (apiKeyValue) {
25514
+ headerParameters["X-API-Key"] = apiKeyValue;
25515
+ }
25516
+ }
24252
25517
  }
24253
25518
  const response = await this.request({
24254
25519
  path: `/v1/waas/applications`,
@@ -24287,7 +25552,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
24287
25552
  const headerParameters = {};
24288
25553
  headerParameters["Content-Type"] = "application/json";
24289
25554
  if (this.configuration && this.configuration.apiKey) {
24290
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25555
+ {
25556
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25557
+ if (apiKeyValue) {
25558
+ headerParameters["X-API-Key"] = apiKeyValue;
25559
+ }
25560
+ }
24291
25561
  }
24292
25562
  const response = await this.request({
24293
25563
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24335,7 +25605,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
24335
25605
  const queryParameters = {};
24336
25606
  const headerParameters = {};
24337
25607
  if (this.configuration && this.configuration.apiKey) {
24338
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25608
+ {
25609
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25610
+ if (apiKeyValue) {
25611
+ headerParameters["X-API-Key"] = apiKeyValue;
25612
+ }
25613
+ }
24339
25614
  }
24340
25615
  const response = await this.request({
24341
25616
  path: `/v1/waas/applications/{appId}/deliveries/{deliveryId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -24382,7 +25657,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
24382
25657
  }
24383
25658
  const headerParameters = {};
24384
25659
  if (this.configuration && this.configuration.apiKey) {
24385
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25660
+ {
25661
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25662
+ if (apiKeyValue) {
25663
+ headerParameters["X-API-Key"] = apiKeyValue;
25664
+ }
25665
+ }
24386
25666
  }
24387
25667
  const response = await this.request({
24388
25668
  path: `/v1/waas/applications/{appId}/deliveries`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24429,7 +25709,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
24429
25709
  }
24430
25710
  const headerParameters = {};
24431
25711
  if (this.configuration && this.configuration.apiKey) {
24432
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25712
+ {
25713
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25714
+ if (apiKeyValue) {
25715
+ headerParameters["X-API-Key"] = apiKeyValue;
25716
+ }
25717
+ }
24433
25718
  }
24434
25719
  const response = await this.request({
24435
25720
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/deliveries`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24467,7 +25752,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
24467
25752
  const queryParameters = {};
24468
25753
  const headerParameters = {};
24469
25754
  if (this.configuration && this.configuration.apiKey) {
24470
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25755
+ {
25756
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25757
+ if (apiKeyValue) {
25758
+ headerParameters["X-API-Key"] = apiKeyValue;
25759
+ }
25760
+ }
24471
25761
  }
24472
25762
  const response = await this.request({
24473
25763
  path: `/v1/waas/applications/{appId}/deliveries/{deliveryId}/retry`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -24517,7 +25807,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24517
25807
  const queryParameters = {};
24518
25808
  const headerParameters = {};
24519
25809
  if (this.configuration && this.configuration.apiKey) {
24520
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25810
+ {
25811
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25812
+ if (apiKeyValue) {
25813
+ headerParameters["X-API-Key"] = apiKeyValue;
25814
+ }
25815
+ }
24521
25816
  }
24522
25817
  const response = await this.request({
24523
25818
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/circuit/close`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24556,7 +25851,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24556
25851
  const headerParameters = {};
24557
25852
  headerParameters["Content-Type"] = "application/json";
24558
25853
  if (this.configuration && this.configuration.apiKey) {
24559
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25854
+ {
25855
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25856
+ if (apiKeyValue) {
25857
+ headerParameters["X-API-Key"] = apiKeyValue;
25858
+ }
25859
+ }
24560
25860
  }
24561
25861
  const response = await this.request({
24562
25862
  path: `/v1/waas/applications/{appId}/endpoints`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24595,7 +25895,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24595
25895
  const queryParameters = {};
24596
25896
  const headerParameters = {};
24597
25897
  if (this.configuration && this.configuration.apiKey) {
24598
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25898
+ {
25899
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25900
+ if (apiKeyValue) {
25901
+ headerParameters["X-API-Key"] = apiKeyValue;
25902
+ }
25903
+ }
24599
25904
  }
24600
25905
  const response = await this.request({
24601
25906
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24631,7 +25936,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24631
25936
  const queryParameters = {};
24632
25937
  const headerParameters = {};
24633
25938
  if (this.configuration && this.configuration.apiKey) {
24634
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25939
+ {
25940
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25941
+ if (apiKeyValue) {
25942
+ headerParameters["X-API-Key"] = apiKeyValue;
25943
+ }
25944
+ }
24635
25945
  }
24636
25946
  const response = await this.request({
24637
25947
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24668,7 +25978,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24668
25978
  const queryParameters = {};
24669
25979
  const headerParameters = {};
24670
25980
  if (this.configuration && this.configuration.apiKey) {
24671
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25981
+ {
25982
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25983
+ if (apiKeyValue) {
25984
+ headerParameters["X-API-Key"] = apiKeyValue;
25985
+ }
25986
+ }
24672
25987
  }
24673
25988
  const response = await this.request({
24674
25989
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/circuit`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24706,7 +26021,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24706
26021
  const queryParameters = {};
24707
26022
  const headerParameters = {};
24708
26023
  if (this.configuration && this.configuration.apiKey) {
24709
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26024
+ {
26025
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26026
+ if (apiKeyValue) {
26027
+ headerParameters["X-API-Key"] = apiKeyValue;
26028
+ }
26029
+ }
24710
26030
  }
24711
26031
  const response = await this.request({
24712
26032
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/metrics`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24750,7 +26070,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24750
26070
  }
24751
26071
  const headerParameters = {};
24752
26072
  if (this.configuration && this.configuration.apiKey) {
24753
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26073
+ {
26074
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26075
+ if (apiKeyValue) {
26076
+ headerParameters["X-API-Key"] = apiKeyValue;
26077
+ }
26078
+ }
24754
26079
  }
24755
26080
  const response = await this.request({
24756
26081
  path: `/v1/waas/applications/{appId}/endpoints`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24788,7 +26113,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24788
26113
  const queryParameters = {};
24789
26114
  const headerParameters = {};
24790
26115
  if (this.configuration && this.configuration.apiKey) {
24791
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26116
+ {
26117
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26118
+ if (apiKeyValue) {
26119
+ headerParameters["X-API-Key"] = apiKeyValue;
26120
+ }
26121
+ }
24792
26122
  }
24793
26123
  const response = await this.request({
24794
26124
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/rotate-secret`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24832,7 +26162,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
24832
26162
  const headerParameters = {};
24833
26163
  headerParameters["Content-Type"] = "application/json";
24834
26164
  if (this.configuration && this.configuration.apiKey) {
24835
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26165
+ {
26166
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26167
+ if (apiKeyValue) {
26168
+ headerParameters["X-API-Key"] = apiKeyValue;
26169
+ }
26170
+ }
24836
26171
  }
24837
26172
  const response = await this.request({
24838
26173
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -24880,7 +26215,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
24880
26215
  const headerParameters = {};
24881
26216
  headerParameters["Content-Type"] = "application/json";
24882
26217
  if (this.configuration && this.configuration.apiKey) {
24883
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26218
+ {
26219
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26220
+ if (apiKeyValue) {
26221
+ headerParameters["X-API-Key"] = apiKeyValue;
26222
+ }
26223
+ }
24884
26224
  }
24885
26225
  const response = await this.request({
24886
26226
  path: `/v1/waas/applications/{appId}/event-types`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -24919,7 +26259,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
24919
26259
  const queryParameters = {};
24920
26260
  const headerParameters = {};
24921
26261
  if (this.configuration && this.configuration.apiKey) {
24922
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26262
+ {
26263
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26264
+ if (apiKeyValue) {
26265
+ headerParameters["X-API-Key"] = apiKeyValue;
26266
+ }
26267
+ }
24923
26268
  }
24924
26269
  const response = await this.request({
24925
26270
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -24956,7 +26301,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
24956
26301
  const queryParameters = {};
24957
26302
  const headerParameters = {};
24958
26303
  if (this.configuration && this.configuration.apiKey) {
24959
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26304
+ {
26305
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26306
+ if (apiKeyValue) {
26307
+ headerParameters["X-API-Key"] = apiKeyValue;
26308
+ }
26309
+ }
24960
26310
  }
24961
26311
  const response = await this.request({
24962
26312
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}/deprecate`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -24993,7 +26343,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
24993
26343
  const queryParameters = {};
24994
26344
  const headerParameters = {};
24995
26345
  if (this.configuration && this.configuration.apiKey) {
24996
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26346
+ {
26347
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26348
+ if (apiKeyValue) {
26349
+ headerParameters["X-API-Key"] = apiKeyValue;
26350
+ }
26351
+ }
24997
26352
  }
24998
26353
  const response = await this.request({
24999
26354
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -25036,7 +26391,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
25036
26391
  }
25037
26392
  const headerParameters = {};
25038
26393
  if (this.configuration && this.configuration.apiKey) {
25039
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26394
+ {
26395
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26396
+ if (apiKeyValue) {
26397
+ headerParameters["X-API-Key"] = apiKeyValue;
26398
+ }
26399
+ }
25040
26400
  }
25041
26401
  const response = await this.request({
25042
26402
  path: `/v1/waas/applications/{appId}/event-types`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -25080,7 +26440,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
25080
26440
  const headerParameters = {};
25081
26441
  headerParameters["Content-Type"] = "application/json";
25082
26442
  if (this.configuration && this.configuration.apiKey) {
25083
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26443
+ {
26444
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26445
+ if (apiKeyValue) {
26446
+ headerParameters["X-API-Key"] = apiKeyValue;
26447
+ }
26448
+ }
25084
26449
  }
25085
26450
  const response = await this.request({
25086
26451
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -25127,7 +26492,12 @@ var WaaSEventsApi = class extends BaseAPI {
25127
26492
  const headerParameters = {};
25128
26493
  headerParameters["Content-Type"] = "application/json";
25129
26494
  if (this.configuration && this.configuration.apiKey) {
25130
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26495
+ {
26496
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26497
+ if (apiKeyValue) {
26498
+ headerParameters["X-API-Key"] = apiKeyValue;
26499
+ }
26500
+ }
25131
26501
  }
25132
26502
  const response = await this.request({
25133
26503
  path: `/v1/waas/applications/{appId}/events/batch`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -25167,7 +26537,12 @@ var WaaSEventsApi = class extends BaseAPI {
25167
26537
  const headerParameters = {};
25168
26538
  headerParameters["Content-Type"] = "application/json";
25169
26539
  if (this.configuration && this.configuration.apiKey) {
25170
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26540
+ {
26541
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26542
+ if (apiKeyValue) {
26543
+ headerParameters["X-API-Key"] = apiKeyValue;
26544
+ }
26545
+ }
25171
26546
  }
25172
26547
  const response = await this.request({
25173
26548
  path: `/v1/waas/applications/{appId}/events`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -25211,7 +26586,12 @@ var WaaSPortalApi = class extends BaseAPI {
25211
26586
  const headerParameters = {};
25212
26587
  headerParameters["Content-Type"] = "application/json";
25213
26588
  if (this.configuration && this.configuration.apiKey) {
25214
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26589
+ {
26590
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26591
+ if (apiKeyValue) {
26592
+ headerParameters["X-API-Key"] = apiKeyValue;
26593
+ }
26594
+ }
25215
26595
  }
25216
26596
  const response = await this.request({
25217
26597
  path: `/v1/waas/applications/{appId}/portal/token`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -25249,7 +26629,12 @@ var WebhooksApi = class extends BaseAPI {
25249
26629
  const headerParameters = {};
25250
26630
  headerParameters["Content-Type"] = "application/json";
25251
26631
  if (this.configuration && this.configuration.apiKey) {
25252
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26632
+ {
26633
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26634
+ if (apiKeyValue) {
26635
+ headerParameters["X-API-Key"] = apiKeyValue;
26636
+ }
26637
+ }
25253
26638
  }
25254
26639
  const response = await this.request({
25255
26640
  path: `/v1/webhooks/{id}/deliveries/bulk-retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25282,7 +26667,12 @@ var WebhooksApi = class extends BaseAPI {
25282
26667
  const queryParameters = {};
25283
26668
  const headerParameters = {};
25284
26669
  if (this.configuration && this.configuration.apiKey) {
25285
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26670
+ {
26671
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26672
+ if (apiKeyValue) {
26673
+ headerParameters["X-API-Key"] = apiKeyValue;
26674
+ }
26675
+ }
25286
26676
  }
25287
26677
  const response = await this.request({
25288
26678
  path: `/v1/webhooks/{id}/circuit/close`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25315,7 +26705,12 @@ var WebhooksApi = class extends BaseAPI {
25315
26705
  const headerParameters = {};
25316
26706
  headerParameters["Content-Type"] = "application/json";
25317
26707
  if (this.configuration && this.configuration.apiKey) {
25318
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26708
+ {
26709
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26710
+ if (apiKeyValue) {
26711
+ headerParameters["X-API-Key"] = apiKeyValue;
26712
+ }
26713
+ }
25319
26714
  }
25320
26715
  const response = await this.request({
25321
26716
  path: `/v1/webhooks`,
@@ -25348,7 +26743,12 @@ var WebhooksApi = class extends BaseAPI {
25348
26743
  const queryParameters = {};
25349
26744
  const headerParameters = {};
25350
26745
  if (this.configuration && this.configuration.apiKey) {
25351
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26746
+ {
26747
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26748
+ if (apiKeyValue) {
26749
+ headerParameters["X-API-Key"] = apiKeyValue;
26750
+ }
26751
+ }
25352
26752
  }
25353
26753
  const response = await this.request({
25354
26754
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25374,7 +26774,12 @@ var WebhooksApi = class extends BaseAPI {
25374
26774
  const queryParameters = {};
25375
26775
  const headerParameters = {};
25376
26776
  if (this.configuration && this.configuration.apiKey) {
25377
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26777
+ {
26778
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26779
+ if (apiKeyValue) {
26780
+ headerParameters["X-API-Key"] = apiKeyValue;
26781
+ }
26782
+ }
25378
26783
  }
25379
26784
  const response = await this.request({
25380
26785
  path: `/v1/webhooks/metrics`,
@@ -25406,7 +26811,12 @@ var WebhooksApi = class extends BaseAPI {
25406
26811
  const queryParameters = {};
25407
26812
  const headerParameters = {};
25408
26813
  if (this.configuration && this.configuration.apiKey) {
25409
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26814
+ {
26815
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26816
+ if (apiKeyValue) {
26817
+ headerParameters["X-API-Key"] = apiKeyValue;
26818
+ }
26819
+ }
25410
26820
  }
25411
26821
  const response = await this.request({
25412
26822
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25438,7 +26848,12 @@ var WebhooksApi = class extends BaseAPI {
25438
26848
  const queryParameters = {};
25439
26849
  const headerParameters = {};
25440
26850
  if (this.configuration && this.configuration.apiKey) {
25441
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26851
+ {
26852
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26853
+ if (apiKeyValue) {
26854
+ headerParameters["X-API-Key"] = apiKeyValue;
26855
+ }
26856
+ }
25442
26857
  }
25443
26858
  const response = await this.request({
25444
26859
  path: `/v1/webhooks/{id}/circuit`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25476,7 +26891,12 @@ var WebhooksApi = class extends BaseAPI {
25476
26891
  const queryParameters = {};
25477
26892
  const headerParameters = {};
25478
26893
  if (this.configuration && this.configuration.apiKey) {
25479
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26894
+ {
26895
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26896
+ if (apiKeyValue) {
26897
+ headerParameters["X-API-Key"] = apiKeyValue;
26898
+ }
26899
+ }
25480
26900
  }
25481
26901
  const response = await this.request({
25482
26902
  path: `/v1/webhooks/{id}/deliveries/{deliveryId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -25502,7 +26922,12 @@ var WebhooksApi = class extends BaseAPI {
25502
26922
  const queryParameters = {};
25503
26923
  const headerParameters = {};
25504
26924
  if (this.configuration && this.configuration.apiKey) {
25505
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26925
+ {
26926
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26927
+ if (apiKeyValue) {
26928
+ headerParameters["X-API-Key"] = apiKeyValue;
26929
+ }
26930
+ }
25506
26931
  }
25507
26932
  const response = await this.request({
25508
26933
  path: `/v1/webhooks/ips`,
@@ -25534,7 +26959,12 @@ var WebhooksApi = class extends BaseAPI {
25534
26959
  const queryParameters = {};
25535
26960
  const headerParameters = {};
25536
26961
  if (this.configuration && this.configuration.apiKey) {
25537
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26962
+ {
26963
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26964
+ if (apiKeyValue) {
26965
+ headerParameters["X-API-Key"] = apiKeyValue;
26966
+ }
26967
+ }
25538
26968
  }
25539
26969
  const response = await this.request({
25540
26970
  path: `/v1/webhooks/jobs/{jobId}`.replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters["jobId"]))),
@@ -25566,7 +26996,12 @@ var WebhooksApi = class extends BaseAPI {
25566
26996
  const queryParameters = {};
25567
26997
  const headerParameters = {};
25568
26998
  if (this.configuration && this.configuration.apiKey) {
25569
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26999
+ {
27000
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27001
+ if (apiKeyValue) {
27002
+ headerParameters["X-API-Key"] = apiKeyValue;
27003
+ }
27004
+ }
25570
27005
  }
25571
27006
  const response = await this.request({
25572
27007
  path: `/v1/webhooks/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25592,7 +27027,12 @@ var WebhooksApi = class extends BaseAPI {
25592
27027
  const queryParameters = {};
25593
27028
  const headerParameters = {};
25594
27029
  if (this.configuration && this.configuration.apiKey) {
25595
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27030
+ {
27031
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27032
+ if (apiKeyValue) {
27033
+ headerParameters["X-API-Key"] = apiKeyValue;
27034
+ }
27035
+ }
25596
27036
  }
25597
27037
  const response = await this.request({
25598
27038
  path: `/v1/webhooks/usage`,
@@ -25645,7 +27085,12 @@ var WebhooksApi = class extends BaseAPI {
25645
27085
  }
25646
27086
  const headerParameters = {};
25647
27087
  if (this.configuration && this.configuration.apiKey) {
25648
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27088
+ {
27089
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27090
+ if (apiKeyValue) {
27091
+ headerParameters["X-API-Key"] = apiKeyValue;
27092
+ }
27093
+ }
25649
27094
  }
25650
27095
  const response = await this.request({
25651
27096
  path: `/v1/webhooks/{id}/deliveries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25674,7 +27119,12 @@ var WebhooksApi = class extends BaseAPI {
25674
27119
  }
25675
27120
  const headerParameters = {};
25676
27121
  if (this.configuration && this.configuration.apiKey) {
25677
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27122
+ {
27123
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27124
+ if (apiKeyValue) {
27125
+ headerParameters["X-API-Key"] = apiKeyValue;
27126
+ }
27127
+ }
25678
27128
  }
25679
27129
  const response = await this.request({
25680
27130
  path: `/v1/webhooks/events`,
@@ -25700,7 +27150,12 @@ var WebhooksApi = class extends BaseAPI {
25700
27150
  const queryParameters = {};
25701
27151
  const headerParameters = {};
25702
27152
  if (this.configuration && this.configuration.apiKey) {
25703
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27153
+ {
27154
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27155
+ if (apiKeyValue) {
27156
+ headerParameters["X-API-Key"] = apiKeyValue;
27157
+ }
27158
+ }
25704
27159
  }
25705
27160
  const response = await this.request({
25706
27161
  path: `/v1/webhooks/versions`,
@@ -25732,7 +27187,12 @@ var WebhooksApi = class extends BaseAPI {
25732
27187
  }
25733
27188
  const headerParameters = {};
25734
27189
  if (this.configuration && this.configuration.apiKey) {
25735
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27190
+ {
27191
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27192
+ if (apiKeyValue) {
27193
+ headerParameters["X-API-Key"] = apiKeyValue;
27194
+ }
27195
+ }
25736
27196
  }
25737
27197
  const response = await this.request({
25738
27198
  path: `/v1/webhooks`,
@@ -25771,7 +27231,12 @@ var WebhooksApi = class extends BaseAPI {
25771
27231
  const headerParameters = {};
25772
27232
  headerParameters["Content-Type"] = "application/json";
25773
27233
  if (this.configuration && this.configuration.apiKey) {
25774
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27234
+ {
27235
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27236
+ if (apiKeyValue) {
27237
+ headerParameters["X-API-Key"] = apiKeyValue;
27238
+ }
27239
+ }
25775
27240
  }
25776
27241
  const response = await this.request({
25777
27242
  path: `/v1/webhooks/{id}/replay`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25810,7 +27275,12 @@ var WebhooksApi = class extends BaseAPI {
25810
27275
  const queryParameters = {};
25811
27276
  const headerParameters = {};
25812
27277
  if (this.configuration && this.configuration.apiKey) {
25813
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27278
+ {
27279
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27280
+ if (apiKeyValue) {
27281
+ headerParameters["X-API-Key"] = apiKeyValue;
27282
+ }
27283
+ }
25814
27284
  }
25815
27285
  const response = await this.request({
25816
27286
  path: `/v1/webhooks/{id}/deliveries/{deliveryId}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -25842,7 +27312,12 @@ var WebhooksApi = class extends BaseAPI {
25842
27312
  const queryParameters = {};
25843
27313
  const headerParameters = {};
25844
27314
  if (this.configuration && this.configuration.apiKey) {
25845
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27315
+ {
27316
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27317
+ if (apiKeyValue) {
27318
+ headerParameters["X-API-Key"] = apiKeyValue;
27319
+ }
27320
+ }
25846
27321
  }
25847
27322
  const response = await this.request({
25848
27323
  path: `/v1/webhooks/{id}/rotate-secret`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25875,7 +27350,12 @@ var WebhooksApi = class extends BaseAPI {
25875
27350
  const headerParameters = {};
25876
27351
  headerParameters["Content-Type"] = "application/json";
25877
27352
  if (this.configuration && this.configuration.apiKey) {
25878
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27353
+ {
27354
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27355
+ if (apiKeyValue) {
27356
+ headerParameters["X-API-Key"] = apiKeyValue;
27357
+ }
27358
+ }
25879
27359
  }
25880
27360
  const response = await this.request({
25881
27361
  path: `/v1/webhooks/{id}/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25915,7 +27395,12 @@ var WebhooksApi = class extends BaseAPI {
25915
27395
  const headerParameters = {};
25916
27396
  headerParameters["Content-Type"] = "application/json";
25917
27397
  if (this.configuration && this.configuration.apiKey) {
25918
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27398
+ {
27399
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27400
+ if (apiKeyValue) {
27401
+ headerParameters["X-API-Key"] = apiKeyValue;
27402
+ }
27403
+ }
25919
27404
  }
25920
27405
  const response = await this.request({
25921
27406
  path: `/v1/webhooks/{id}/transform/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25955,7 +27440,12 @@ var WebhooksApi = class extends BaseAPI {
25955
27440
  const headerParameters = {};
25956
27441
  headerParameters["Content-Type"] = "application/json";
25957
27442
  if (this.configuration && this.configuration.apiKey) {
25958
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27443
+ {
27444
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27445
+ if (apiKeyValue) {
27446
+ headerParameters["X-API-Key"] = apiKeyValue;
27447
+ }
27448
+ }
25959
27449
  }
25960
27450
  const response = await this.request({
25961
27451
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26006,7 +27496,12 @@ var WorkflowsApi = class extends BaseAPI {
26006
27496
  const headerParameters = {};
26007
27497
  headerParameters["Content-Type"] = "application/json";
26008
27498
  if (this.configuration && this.configuration.apiKey) {
26009
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27499
+ {
27500
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27501
+ if (apiKeyValue) {
27502
+ headerParameters["X-API-Key"] = apiKeyValue;
27503
+ }
27504
+ }
26010
27505
  }
26011
27506
  const response = await this.request({
26012
27507
  path: `/workflows/{key}/steps`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26040,7 +27535,12 @@ var WorkflowsApi = class extends BaseAPI {
26040
27535
  const headerParameters = {};
26041
27536
  headerParameters["Content-Type"] = "application/json";
26042
27537
  if (this.configuration && this.configuration.apiKey) {
26043
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27538
+ {
27539
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27540
+ if (apiKeyValue) {
27541
+ headerParameters["X-API-Key"] = apiKeyValue;
27542
+ }
27543
+ }
26044
27544
  }
26045
27545
  const response = await this.request({
26046
27546
  path: `/workflows`,
@@ -26073,7 +27573,12 @@ var WorkflowsApi = class extends BaseAPI {
26073
27573
  const queryParameters = {};
26074
27574
  const headerParameters = {};
26075
27575
  if (this.configuration && this.configuration.apiKey) {
26076
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27576
+ {
27577
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27578
+ if (apiKeyValue) {
27579
+ headerParameters["X-API-Key"] = apiKeyValue;
27580
+ }
27581
+ }
26077
27582
  }
26078
27583
  const response = await this.request({
26079
27584
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26111,7 +27616,12 @@ var WorkflowsApi = class extends BaseAPI {
26111
27616
  const queryParameters = {};
26112
27617
  const headerParameters = {};
26113
27618
  if (this.configuration && this.configuration.apiKey) {
26114
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27619
+ {
27620
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27621
+ if (apiKeyValue) {
27622
+ headerParameters["X-API-Key"] = apiKeyValue;
27623
+ }
27624
+ }
26115
27625
  }
26116
27626
  const response = await this.request({
26117
27627
  path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
@@ -26143,7 +27653,12 @@ var WorkflowsApi = class extends BaseAPI {
26143
27653
  const queryParameters = {};
26144
27654
  const headerParameters = {};
26145
27655
  if (this.configuration && this.configuration.apiKey) {
26146
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27656
+ {
27657
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27658
+ if (apiKeyValue) {
27659
+ headerParameters["X-API-Key"] = apiKeyValue;
27660
+ }
27661
+ }
26147
27662
  }
26148
27663
  const response = await this.request({
26149
27664
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26181,7 +27696,12 @@ var WorkflowsApi = class extends BaseAPI {
26181
27696
  }
26182
27697
  const headerParameters = {};
26183
27698
  if (this.configuration && this.configuration.apiKey) {
26184
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27699
+ {
27700
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27701
+ if (apiKeyValue) {
27702
+ headerParameters["X-API-Key"] = apiKeyValue;
27703
+ }
27704
+ }
26185
27705
  }
26186
27706
  const response = await this.request({
26187
27707
  path: `/workflows/{key}/executions`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26219,7 +27739,12 @@ var WorkflowsApi = class extends BaseAPI {
26219
27739
  }
26220
27740
  const headerParameters = {};
26221
27741
  if (this.configuration && this.configuration.apiKey) {
26222
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27742
+ {
27743
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27744
+ if (apiKeyValue) {
27745
+ headerParameters["X-API-Key"] = apiKeyValue;
27746
+ }
27747
+ }
26223
27748
  }
26224
27749
  const response = await this.request({
26225
27750
  path: `/workflows`,
@@ -26258,7 +27783,12 @@ var WorkflowsApi = class extends BaseAPI {
26258
27783
  const headerParameters = {};
26259
27784
  headerParameters["Content-Type"] = "application/json";
26260
27785
  if (this.configuration && this.configuration.apiKey) {
26261
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27786
+ {
27787
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27788
+ if (apiKeyValue) {
27789
+ headerParameters["X-API-Key"] = apiKeyValue;
27790
+ }
27791
+ }
26262
27792
  }
26263
27793
  const response = await this.request({
26264
27794
  path: `/workflows/{key}/steps/reorder`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26298,7 +27828,12 @@ var WorkflowsApi = class extends BaseAPI {
26298
27828
  const headerParameters = {};
26299
27829
  headerParameters["Content-Type"] = "application/json";
26300
27830
  if (this.configuration && this.configuration.apiKey) {
26301
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27831
+ {
27832
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27833
+ if (apiKeyValue) {
27834
+ headerParameters["X-API-Key"] = apiKeyValue;
27835
+ }
27836
+ }
26302
27837
  }
26303
27838
  const response = await this.request({
26304
27839
  path: `/workflows/{key}/trigger`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26338,7 +27873,12 @@ var WorkflowsApi = class extends BaseAPI {
26338
27873
  const headerParameters = {};
26339
27874
  headerParameters["Content-Type"] = "application/json";
26340
27875
  if (this.configuration && this.configuration.apiKey) {
26341
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27876
+ {
27877
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27878
+ if (apiKeyValue) {
27879
+ headerParameters["X-API-Key"] = apiKeyValue;
27880
+ }
27881
+ }
26342
27882
  }
26343
27883
  const response = await this.request({
26344
27884
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26378,7 +27918,12 @@ var WorkflowsApi = class extends BaseAPI {
26378
27918
  const headerParameters = {};
26379
27919
  headerParameters["Content-Type"] = "application/json";
26380
27920
  if (this.configuration && this.configuration.apiKey) {
26381
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27921
+ {
27922
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27923
+ if (apiKeyValue) {
27924
+ headerParameters["X-API-Key"] = apiKeyValue;
27925
+ }
27926
+ }
26382
27927
  }
26383
27928
  const response = await this.request({
26384
27929
  path: `/workflows/{key}/status`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26424,7 +27969,12 @@ var WorkflowsApi = class extends BaseAPI {
26424
27969
  const headerParameters = {};
26425
27970
  headerParameters["Content-Type"] = "application/json";
26426
27971
  if (this.configuration && this.configuration.apiKey) {
26427
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27972
+ {
27973
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27974
+ if (apiKeyValue) {
27975
+ headerParameters["X-API-Key"] = apiKeyValue;
27976
+ }
27977
+ }
26428
27978
  }
26429
27979
  const response = await this.request({
26430
27980
  path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
@@ -26687,8 +28237,21 @@ var SECRET_KEY_PREFIXES = [
26687
28237
  ];
26688
28238
  var ZyphrClient = class {
26689
28239
  auth;
26690
- /** Device registration for push (takes an OS-acquired token). */
26691
- devices;
28240
+ // NOTE: `devices` is deliberately NOT exposed here (sc-8045).
28241
+ //
28242
+ // The device API authenticates with the account-scoped secret key
28243
+ // (`X-API-Key`), which must never ship inside a client bundle. ZyphrClient
28244
+ // only ever resolves the publishable `X-Application-Key`, so every call
28245
+ // sent an empty `X-API-Key` header and could only ever 401.
28246
+ //
28247
+ // Register devices from your own backend with the server-side `Zyphr`
28248
+ // client instead:
28249
+ //
28250
+ // const zyphr = new Zyphr({ apiKey: process.env.ZYPHR_API_KEY });
28251
+ // await zyphr.devices.registerDevice({ userId, platform, token });
28252
+ //
28253
+ // Derive `userId` from your authenticated session server-side — never from
28254
+ // client-supplied input.
26692
28255
  /**
26693
28256
  * Utility endpoints that are publishable-key-safe: the application's password
26694
28257
  * policy (`getPasswordRequirements`) and a pre-submit password strength check
@@ -26744,7 +28307,6 @@ var ZyphrClient = class {
26744
28307
  profile: new AuthUserProfileApi(config),
26745
28308
  webauthn: new AuthWebAuthnApi(config)
26746
28309
  };
26747
- this.devices = new DevicesApi(config);
26748
28310
  this.utility = new UtilityApi(config);
26749
28311
  }
26750
28312
  /** Store the end-user access token; it is applied automatically to subsequent user-scoped calls. */