@zyphr-dev/node-sdk 0.1.56 → 0.1.58

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 +1879 -317
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +8 -10
  4. package/dist/index.d.ts +8 -10
  5. package/dist/index.js +1879 -317
  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 +52 -10
  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.cjs CHANGED
@@ -19757,10 +19757,20 @@ var AuthApplicationApi = class extends BaseAPI {
19757
19757
  const queryParameters = {};
19758
19758
  const headerParameters = {};
19759
19759
  if (this.configuration && this.configuration.apiKey) {
19760
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19760
+ {
19761
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19762
+ if (apiKeyValue) {
19763
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19764
+ }
19765
+ }
19761
19766
  }
19762
19767
  if (this.configuration && this.configuration.apiKey) {
19763
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19768
+ {
19769
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19770
+ if (apiKeyValue) {
19771
+ headerParameters["X-Application-Key"] = apiKeyValue;
19772
+ }
19773
+ }
19764
19774
  }
19765
19775
  const response = await this.request({
19766
19776
  path: `/auth/application`,
@@ -19793,10 +19803,20 @@ var AuthApplicationApi = class extends BaseAPI {
19793
19803
  const headerParameters = {};
19794
19804
  headerParameters["Content-Type"] = "application/json";
19795
19805
  if (this.configuration && this.configuration.apiKey) {
19796
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19806
+ {
19807
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19808
+ if (apiKeyValue) {
19809
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19810
+ }
19811
+ }
19797
19812
  }
19798
19813
  if (this.configuration && this.configuration.apiKey) {
19799
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19814
+ {
19815
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19816
+ if (apiKeyValue) {
19817
+ headerParameters["X-Application-Key"] = apiKeyValue;
19818
+ }
19819
+ }
19800
19820
  }
19801
19821
  const response = await this.request({
19802
19822
  path: `/auth/application`,
@@ -19827,7 +19847,12 @@ var AuthEmailOTPApi = class extends BaseAPI {
19827
19847
  const queryParameters = {};
19828
19848
  const headerParameters = {};
19829
19849
  if (this.configuration && this.configuration.apiKey) {
19830
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19850
+ {
19851
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19852
+ if (apiKeyValue) {
19853
+ headerParameters["X-Application-Key"] = apiKeyValue;
19854
+ }
19855
+ }
19831
19856
  }
19832
19857
  const response = await this.request({
19833
19858
  path: `/auth/email-otp/available`,
@@ -19860,10 +19885,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19860
19885
  const headerParameters = {};
19861
19886
  headerParameters["Content-Type"] = "application/json";
19862
19887
  if (this.configuration && this.configuration.apiKey) {
19863
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19888
+ {
19889
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19890
+ if (apiKeyValue) {
19891
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19892
+ }
19893
+ }
19864
19894
  }
19865
19895
  if (this.configuration && this.configuration.apiKey) {
19866
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19896
+ {
19897
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19898
+ if (apiKeyValue) {
19899
+ headerParameters["X-Application-Key"] = apiKeyValue;
19900
+ }
19901
+ }
19867
19902
  }
19868
19903
  const response = await this.request({
19869
19904
  path: `/auth/email-otp/login/send`,
@@ -19897,10 +19932,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19897
19932
  const headerParameters = {};
19898
19933
  headerParameters["Content-Type"] = "application/json";
19899
19934
  if (this.configuration && this.configuration.apiKey) {
19900
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19935
+ {
19936
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19937
+ if (apiKeyValue) {
19938
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19939
+ }
19940
+ }
19901
19941
  }
19902
19942
  if (this.configuration && this.configuration.apiKey) {
19903
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19943
+ {
19944
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19945
+ if (apiKeyValue) {
19946
+ headerParameters["X-Application-Key"] = apiKeyValue;
19947
+ }
19948
+ }
19904
19949
  }
19905
19950
  const response = await this.request({
19906
19951
  path: `/auth/email-otp/register/send`,
@@ -19934,10 +19979,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19934
19979
  const headerParameters = {};
19935
19980
  headerParameters["Content-Type"] = "application/json";
19936
19981
  if (this.configuration && this.configuration.apiKey) {
19937
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
19982
+ {
19983
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
19984
+ if (apiKeyValue) {
19985
+ headerParameters["X-Application-Secret"] = apiKeyValue;
19986
+ }
19987
+ }
19938
19988
  }
19939
19989
  if (this.configuration && this.configuration.apiKey) {
19940
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
19990
+ {
19991
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
19992
+ if (apiKeyValue) {
19993
+ headerParameters["X-Application-Key"] = apiKeyValue;
19994
+ }
19995
+ }
19941
19996
  }
19942
19997
  const response = await this.request({
19943
19998
  path: `/auth/email-otp/login/verify`,
@@ -19971,10 +20026,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19971
20026
  const headerParameters = {};
19972
20027
  headerParameters["Content-Type"] = "application/json";
19973
20028
  if (this.configuration && this.configuration.apiKey) {
19974
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20029
+ {
20030
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20031
+ if (apiKeyValue) {
20032
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20033
+ }
20034
+ }
19975
20035
  }
19976
20036
  if (this.configuration && this.configuration.apiKey) {
19977
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20037
+ {
20038
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20039
+ if (apiKeyValue) {
20040
+ headerParameters["X-Application-Key"] = apiKeyValue;
20041
+ }
20042
+ }
19978
20043
  }
19979
20044
  const response = await this.request({
19980
20045
  path: `/auth/email-otp/register/verify`,
@@ -20012,10 +20077,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20012
20077
  const headerParameters = {};
20013
20078
  headerParameters["Content-Type"] = "application/json";
20014
20079
  if (this.configuration && this.configuration.apiKey) {
20015
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20080
+ {
20081
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20082
+ if (apiKeyValue) {
20083
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20084
+ }
20085
+ }
20016
20086
  }
20017
20087
  if (this.configuration && this.configuration.apiKey) {
20018
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20088
+ {
20089
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20090
+ if (apiKeyValue) {
20091
+ headerParameters["X-Application-Key"] = apiKeyValue;
20092
+ }
20093
+ }
20019
20094
  }
20020
20095
  const response = await this.request({
20021
20096
  path: `/auth/email-templates`,
@@ -20048,10 +20123,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20048
20123
  const queryParameters = {};
20049
20124
  const headerParameters = {};
20050
20125
  if (this.configuration && this.configuration.apiKey) {
20051
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20126
+ {
20127
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20128
+ if (apiKeyValue) {
20129
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20130
+ }
20131
+ }
20052
20132
  }
20053
20133
  if (this.configuration && this.configuration.apiKey) {
20054
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20134
+ {
20135
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20136
+ if (apiKeyValue) {
20137
+ headerParameters["X-Application-Key"] = apiKeyValue;
20138
+ }
20139
+ }
20055
20140
  }
20056
20141
  const response = await this.request({
20057
20142
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20083,10 +20168,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20083
20168
  const queryParameters = {};
20084
20169
  const headerParameters = {};
20085
20170
  if (this.configuration && this.configuration.apiKey) {
20086
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20171
+ {
20172
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20173
+ if (apiKeyValue) {
20174
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20175
+ }
20176
+ }
20087
20177
  }
20088
20178
  if (this.configuration && this.configuration.apiKey) {
20089
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20179
+ {
20180
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20181
+ if (apiKeyValue) {
20182
+ headerParameters["X-Application-Key"] = apiKeyValue;
20183
+ }
20184
+ }
20090
20185
  }
20091
20186
  const response = await this.request({
20092
20187
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20118,10 +20213,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20118
20213
  const queryParameters = {};
20119
20214
  const headerParameters = {};
20120
20215
  if (this.configuration && this.configuration.apiKey) {
20121
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20216
+ {
20217
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20218
+ if (apiKeyValue) {
20219
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20220
+ }
20221
+ }
20122
20222
  }
20123
20223
  if (this.configuration && this.configuration.apiKey) {
20124
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20224
+ {
20225
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20226
+ if (apiKeyValue) {
20227
+ headerParameters["X-Application-Key"] = apiKeyValue;
20228
+ }
20229
+ }
20125
20230
  }
20126
20231
  const response = await this.request({
20127
20232
  path: `/auth/email-templates/{type}/default`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20152,10 +20257,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20152
20257
  const queryParameters = {};
20153
20258
  const headerParameters = {};
20154
20259
  if (this.configuration && this.configuration.apiKey) {
20155
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20260
+ {
20261
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20262
+ if (apiKeyValue) {
20263
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20264
+ }
20265
+ }
20156
20266
  }
20157
20267
  if (this.configuration && this.configuration.apiKey) {
20158
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20268
+ {
20269
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20270
+ if (apiKeyValue) {
20271
+ headerParameters["X-Application-Key"] = apiKeyValue;
20272
+ }
20273
+ }
20159
20274
  }
20160
20275
  const response = await this.request({
20161
20276
  path: `/auth/email-templates/{type}/versions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20180,10 +20295,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20180
20295
  const queryParameters = {};
20181
20296
  const headerParameters = {};
20182
20297
  if (this.configuration && this.configuration.apiKey) {
20183
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20298
+ {
20299
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20300
+ if (apiKeyValue) {
20301
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20302
+ }
20303
+ }
20184
20304
  }
20185
20305
  if (this.configuration && this.configuration.apiKey) {
20186
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20306
+ {
20307
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20308
+ if (apiKeyValue) {
20309
+ headerParameters["X-Application-Key"] = apiKeyValue;
20310
+ }
20311
+ }
20187
20312
  }
20188
20313
  const response = await this.request({
20189
20314
  path: `/auth/email-templates`,
@@ -20216,10 +20341,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20216
20341
  const headerParameters = {};
20217
20342
  headerParameters["Content-Type"] = "application/json";
20218
20343
  if (this.configuration && this.configuration.apiKey) {
20219
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20344
+ {
20345
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20346
+ if (apiKeyValue) {
20347
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20348
+ }
20349
+ }
20220
20350
  }
20221
20351
  if (this.configuration && this.configuration.apiKey) {
20222
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20352
+ {
20353
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20354
+ if (apiKeyValue) {
20355
+ headerParameters["X-Application-Key"] = apiKeyValue;
20356
+ }
20357
+ }
20223
20358
  }
20224
20359
  const response = await this.request({
20225
20360
  path: `/auth/email-templates/{type}/preview`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20258,10 +20393,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20258
20393
  const queryParameters = {};
20259
20394
  const headerParameters = {};
20260
20395
  if (this.configuration && this.configuration.apiKey) {
20261
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20396
+ {
20397
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20398
+ if (apiKeyValue) {
20399
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20400
+ }
20401
+ }
20262
20402
  }
20263
20403
  if (this.configuration && this.configuration.apiKey) {
20264
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20404
+ {
20405
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20406
+ if (apiKeyValue) {
20407
+ headerParameters["X-Application-Key"] = apiKeyValue;
20408
+ }
20409
+ }
20265
20410
  }
20266
20411
  const response = await this.request({
20267
20412
  path: `/auth/email-templates/{type}/versions/{version}/restore`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
@@ -20300,10 +20445,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20300
20445
  const headerParameters = {};
20301
20446
  headerParameters["Content-Type"] = "application/json";
20302
20447
  if (this.configuration && this.configuration.apiKey) {
20303
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20448
+ {
20449
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20450
+ if (apiKeyValue) {
20451
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20452
+ }
20453
+ }
20304
20454
  }
20305
20455
  if (this.configuration && this.configuration.apiKey) {
20306
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20456
+ {
20457
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20458
+ if (apiKeyValue) {
20459
+ headerParameters["X-Application-Key"] = apiKeyValue;
20460
+ }
20461
+ }
20307
20462
  }
20308
20463
  const response = await this.request({
20309
20464
  path: `/auth/email-templates/{type}/test`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20343,10 +20498,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20343
20498
  const headerParameters = {};
20344
20499
  headerParameters["Content-Type"] = "application/json";
20345
20500
  if (this.configuration && this.configuration.apiKey) {
20346
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20501
+ {
20502
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20503
+ if (apiKeyValue) {
20504
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20505
+ }
20506
+ }
20347
20507
  }
20348
20508
  if (this.configuration && this.configuration.apiKey) {
20349
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20509
+ {
20510
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20511
+ if (apiKeyValue) {
20512
+ headerParameters["X-Application-Key"] = apiKeyValue;
20513
+ }
20514
+ }
20350
20515
  }
20351
20516
  const response = await this.request({
20352
20517
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20370,7 +20535,7 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20370
20535
  // src/src/apis/AuthEmailVerificationApi.ts
20371
20536
  var AuthEmailVerificationApi = class extends BaseAPI {
20372
20537
  /**
20373
- * Verify the user\'s email using a token you collected yourself. IMPORTANT: the emailed verification LINK verifies the address server-side **on click** and then redirects to `redirect_url`. So if you take the token off that redirect and post it here, it is already redeemed — and this endpoint treats that as an idempotent **success** (`200` with `already_verified: true`), not an error. Only a genuinely invalid / expired / unknown token returns `400`. `send` / `confirm` / `resend` are NOT a mandatory matched set — `confirm` is for flows where you collect the token directly rather than landing the hosted redirect. Recommended pattern for the redirect landing: call `confirm`, ignore its result, then read the user\'s verified state back and report that — correct whether or not the link already consumed the token.
20538
+ * Verify the user\'s email using the token from the emailed link. Zyphr does NOT host auth pages and never redeems the token itself. The emailed link points at YOUR `redirect_url` with `?token=<raw>`; your app reads that token and posts it here. Nothing is verified until this call. This endpoint is idempotent: re-posting an already-redeemed token returns `200` with `already_verified: true` rather than an error, so a double submit or a link opened twice is safe. Only a genuinely invalid / expired / unknown token returns `400`. Note `redirect_url` is REQUIRED (snake_case) when sending the verification email — there is no hosted fallback page.
20374
20539
  * Confirm email verification
20375
20540
  */
20376
20541
  async confirmEmailVerificationRaw(requestParameters, initOverrides) {
@@ -20384,10 +20549,20 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20384
20549
  const headerParameters = {};
20385
20550
  headerParameters["Content-Type"] = "application/json";
20386
20551
  if (this.configuration && this.configuration.apiKey) {
20387
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20552
+ {
20553
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20554
+ if (apiKeyValue) {
20555
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20556
+ }
20557
+ }
20388
20558
  }
20389
20559
  if (this.configuration && this.configuration.apiKey) {
20390
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20560
+ {
20561
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20562
+ if (apiKeyValue) {
20563
+ headerParameters["X-Application-Key"] = apiKeyValue;
20564
+ }
20565
+ }
20391
20566
  }
20392
20567
  const response = await this.request({
20393
20568
  path: `/auth/verify-email/confirm`,
@@ -20399,7 +20574,7 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20399
20574
  return new JSONApiResponse(response, (jsonValue) => ConfirmEmailVerificationResponseFromJSON(jsonValue));
20400
20575
  }
20401
20576
  /**
20402
- * Verify the user\'s email using a token you collected yourself. IMPORTANT: the emailed verification LINK verifies the address server-side **on click** and then redirects to `redirect_url`. So if you take the token off that redirect and post it here, it is already redeemed — and this endpoint treats that as an idempotent **success** (`200` with `already_verified: true`), not an error. Only a genuinely invalid / expired / unknown token returns `400`. `send` / `confirm` / `resend` are NOT a mandatory matched set — `confirm` is for flows where you collect the token directly rather than landing the hosted redirect. Recommended pattern for the redirect landing: call `confirm`, ignore its result, then read the user\'s verified state back and report that — correct whether or not the link already consumed the token.
20577
+ * Verify the user\'s email using the token from the emailed link. Zyphr does NOT host auth pages and never redeems the token itself. The emailed link points at YOUR `redirect_url` with `?token=<raw>`; your app reads that token and posts it here. Nothing is verified until this call. This endpoint is idempotent: re-posting an already-redeemed token returns `200` with `already_verified: true` rather than an error, so a double submit or a link opened twice is safe. Only a genuinely invalid / expired / unknown token returns `400`. Note `redirect_url` is REQUIRED (snake_case) when sending the verification email — there is no hosted fallback page.
20403
20578
  * Confirm email verification
20404
20579
  */
20405
20580
  async confirmEmailVerification(confirmEmailVerificationRequest, initOverrides) {
@@ -20415,7 +20590,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20415
20590
  const headerParameters = {};
20416
20591
  headerParameters["Content-Type"] = "application/json";
20417
20592
  if (this.configuration && this.configuration.apiKey) {
20418
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20593
+ {
20594
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20595
+ if (apiKeyValue) {
20596
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20597
+ }
20598
+ }
20419
20599
  }
20420
20600
  if (this.configuration && this.configuration.accessToken) {
20421
20601
  const token = this.configuration.accessToken;
@@ -20425,7 +20605,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20425
20605
  }
20426
20606
  }
20427
20607
  if (this.configuration && this.configuration.apiKey) {
20428
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20608
+ {
20609
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20610
+ if (apiKeyValue) {
20611
+ headerParameters["X-Application-Key"] = apiKeyValue;
20612
+ }
20613
+ }
20429
20614
  }
20430
20615
  const response = await this.request({
20431
20616
  path: `/auth/verify-email/resend`,
@@ -20453,7 +20638,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20453
20638
  const headerParameters = {};
20454
20639
  headerParameters["Content-Type"] = "application/json";
20455
20640
  if (this.configuration && this.configuration.apiKey) {
20456
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20641
+ {
20642
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20643
+ if (apiKeyValue) {
20644
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20645
+ }
20646
+ }
20457
20647
  }
20458
20648
  if (this.configuration && this.configuration.accessToken) {
20459
20649
  const token = this.configuration.accessToken;
@@ -20463,7 +20653,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20463
20653
  }
20464
20654
  }
20465
20655
  if (this.configuration && this.configuration.apiKey) {
20466
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20656
+ {
20657
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20658
+ if (apiKeyValue) {
20659
+ headerParameters["X-Application-Key"] = apiKeyValue;
20660
+ }
20661
+ }
20467
20662
  }
20468
20663
  const response = await this.request({
20469
20664
  path: `/auth/verify-email/send`,
@@ -20501,10 +20696,20 @@ var AuthLoginApi = class extends BaseAPI {
20501
20696
  const headerParameters = {};
20502
20697
  headerParameters["Content-Type"] = "application/json";
20503
20698
  if (this.configuration && this.configuration.apiKey) {
20504
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20699
+ {
20700
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20701
+ if (apiKeyValue) {
20702
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20703
+ }
20704
+ }
20505
20705
  }
20506
20706
  if (this.configuration && this.configuration.apiKey) {
20507
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20707
+ {
20708
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20709
+ if (apiKeyValue) {
20710
+ headerParameters["X-Application-Key"] = apiKeyValue;
20711
+ }
20712
+ }
20508
20713
  }
20509
20714
  const response = await this.request({
20510
20715
  path: `/auth/users/login`,
@@ -20542,10 +20747,20 @@ var AuthMFAApi = class extends BaseAPI {
20542
20747
  const headerParameters = {};
20543
20748
  headerParameters["Content-Type"] = "application/json";
20544
20749
  if (this.configuration && this.configuration.apiKey) {
20545
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20750
+ {
20751
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20752
+ if (apiKeyValue) {
20753
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20754
+ }
20755
+ }
20546
20756
  }
20547
20757
  if (this.configuration && this.configuration.apiKey) {
20548
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20758
+ {
20759
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20760
+ if (apiKeyValue) {
20761
+ headerParameters["X-Application-Key"] = apiKeyValue;
20762
+ }
20763
+ }
20549
20764
  }
20550
20765
  const response = await this.request({
20551
20766
  path: `/auth/mfa/disable`,
@@ -20578,10 +20793,20 @@ var AuthMFAApi = class extends BaseAPI {
20578
20793
  const queryParameters = {};
20579
20794
  const headerParameters = {};
20580
20795
  if (this.configuration && this.configuration.apiKey) {
20581
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20796
+ {
20797
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20798
+ if (apiKeyValue) {
20799
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20800
+ }
20801
+ }
20582
20802
  }
20583
20803
  if (this.configuration && this.configuration.apiKey) {
20584
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20804
+ {
20805
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20806
+ if (apiKeyValue) {
20807
+ headerParameters["X-Application-Key"] = apiKeyValue;
20808
+ }
20809
+ }
20585
20810
  }
20586
20811
  const response = await this.request({
20587
20812
  path: `/auth/mfa/status/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -20614,10 +20839,20 @@ var AuthMFAApi = class extends BaseAPI {
20614
20839
  const headerParameters = {};
20615
20840
  headerParameters["Content-Type"] = "application/json";
20616
20841
  if (this.configuration && this.configuration.apiKey) {
20617
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20842
+ {
20843
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20844
+ if (apiKeyValue) {
20845
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20846
+ }
20847
+ }
20618
20848
  }
20619
20849
  if (this.configuration && this.configuration.apiKey) {
20620
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20850
+ {
20851
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20852
+ if (apiKeyValue) {
20853
+ headerParameters["X-Application-Key"] = apiKeyValue;
20854
+ }
20855
+ }
20621
20856
  }
20622
20857
  const response = await this.request({
20623
20858
  path: `/auth/mfa/regenerate-backup-codes`,
@@ -20651,10 +20886,20 @@ var AuthMFAApi = class extends BaseAPI {
20651
20886
  const headerParameters = {};
20652
20887
  headerParameters["Content-Type"] = "application/json";
20653
20888
  if (this.configuration && this.configuration.apiKey) {
20654
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20889
+ {
20890
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20891
+ if (apiKeyValue) {
20892
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20893
+ }
20894
+ }
20655
20895
  }
20656
20896
  if (this.configuration && this.configuration.apiKey) {
20657
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20897
+ {
20898
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20899
+ if (apiKeyValue) {
20900
+ headerParameters["X-Application-Key"] = apiKeyValue;
20901
+ }
20902
+ }
20658
20903
  }
20659
20904
  const response = await this.request({
20660
20905
  path: `/auth/mfa/enroll`,
@@ -20688,10 +20933,20 @@ var AuthMFAApi = class extends BaseAPI {
20688
20933
  const headerParameters = {};
20689
20934
  headerParameters["Content-Type"] = "application/json";
20690
20935
  if (this.configuration && this.configuration.apiKey) {
20691
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20936
+ {
20937
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20938
+ if (apiKeyValue) {
20939
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20940
+ }
20941
+ }
20692
20942
  }
20693
20943
  if (this.configuration && this.configuration.apiKey) {
20694
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20944
+ {
20945
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20946
+ if (apiKeyValue) {
20947
+ headerParameters["X-Application-Key"] = apiKeyValue;
20948
+ }
20949
+ }
20695
20950
  }
20696
20951
  const response = await this.request({
20697
20952
  path: `/auth/mfa/verify`,
@@ -20725,10 +20980,20 @@ var AuthMFAApi = class extends BaseAPI {
20725
20980
  const headerParameters = {};
20726
20981
  headerParameters["Content-Type"] = "application/json";
20727
20982
  if (this.configuration && this.configuration.apiKey) {
20728
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
20983
+ {
20984
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
20985
+ if (apiKeyValue) {
20986
+ headerParameters["X-Application-Secret"] = apiKeyValue;
20987
+ }
20988
+ }
20729
20989
  }
20730
20990
  if (this.configuration && this.configuration.apiKey) {
20731
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20991
+ {
20992
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
20993
+ if (apiKeyValue) {
20994
+ headerParameters["X-Application-Key"] = apiKeyValue;
20995
+ }
20996
+ }
20732
20997
  }
20733
20998
  const response = await this.request({
20734
20999
  path: `/auth/mfa/verify-backup`,
@@ -20762,10 +21027,20 @@ var AuthMFAApi = class extends BaseAPI {
20762
21027
  const headerParameters = {};
20763
21028
  headerParameters["Content-Type"] = "application/json";
20764
21029
  if (this.configuration && this.configuration.apiKey) {
20765
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21030
+ {
21031
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21032
+ if (apiKeyValue) {
21033
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21034
+ }
21035
+ }
20766
21036
  }
20767
21037
  if (this.configuration && this.configuration.apiKey) {
20768
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21038
+ {
21039
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21040
+ if (apiKeyValue) {
21041
+ headerParameters["X-Application-Key"] = apiKeyValue;
21042
+ }
21043
+ }
20769
21044
  }
20770
21045
  const response = await this.request({
20771
21046
  path: `/auth/mfa/verify-enrollment`,
@@ -20803,10 +21078,20 @@ var AuthMagicLinksApi = class extends BaseAPI {
20803
21078
  const headerParameters = {};
20804
21079
  headerParameters["Content-Type"] = "application/json";
20805
21080
  if (this.configuration && this.configuration.apiKey) {
20806
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21081
+ {
21082
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21083
+ if (apiKeyValue) {
21084
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21085
+ }
21086
+ }
20807
21087
  }
20808
21088
  if (this.configuration && this.configuration.apiKey) {
20809
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21089
+ {
21090
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21091
+ if (apiKeyValue) {
21092
+ headerParameters["X-Application-Key"] = apiKeyValue;
21093
+ }
21094
+ }
20810
21095
  }
20811
21096
  const response = await this.request({
20812
21097
  path: `/auth/magic-link/send`,
@@ -20840,10 +21125,20 @@ var AuthMagicLinksApi = class extends BaseAPI {
20840
21125
  const headerParameters = {};
20841
21126
  headerParameters["Content-Type"] = "application/json";
20842
21127
  if (this.configuration && this.configuration.apiKey) {
20843
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21128
+ {
21129
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21130
+ if (apiKeyValue) {
21131
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21132
+ }
21133
+ }
20844
21134
  }
20845
21135
  if (this.configuration && this.configuration.apiKey) {
20846
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21136
+ {
21137
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21138
+ if (apiKeyValue) {
21139
+ headerParameters["X-Application-Key"] = apiKeyValue;
21140
+ }
21141
+ }
20847
21142
  }
20848
21143
  const response = await this.request({
20849
21144
  path: `/auth/magic-link/verify`,
@@ -20894,7 +21189,12 @@ var AuthOAuthApi = class extends BaseAPI {
20894
21189
  }
20895
21190
  }
20896
21191
  if (this.configuration && this.configuration.apiKey) {
20897
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21192
+ {
21193
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21194
+ if (apiKeyValue) {
21195
+ headerParameters["X-Application-Key"] = apiKeyValue;
21196
+ }
21197
+ }
20898
21198
  }
20899
21199
  const response = await this.request({
20900
21200
  path: `/auth/oauth/{provider}/link/callback`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -20934,7 +21234,12 @@ var AuthOAuthApi = class extends BaseAPI {
20934
21234
  }
20935
21235
  }
20936
21236
  if (this.configuration && this.configuration.apiKey) {
20937
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21237
+ {
21238
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21239
+ if (apiKeyValue) {
21240
+ headerParameters["X-Application-Key"] = apiKeyValue;
21241
+ }
21242
+ }
20938
21243
  }
20939
21244
  const response = await this.request({
20940
21245
  path: `/auth/oauth/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -20975,7 +21280,12 @@ var AuthOAuthApi = class extends BaseAPI {
20975
21280
  }
20976
21281
  const headerParameters = {};
20977
21282
  if (this.configuration && this.configuration.apiKey) {
20978
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21283
+ {
21284
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21285
+ if (apiKeyValue) {
21286
+ headerParameters["X-Application-Key"] = apiKeyValue;
21287
+ }
21288
+ }
20979
21289
  }
20980
21290
  const response = await this.request({
20981
21291
  path: `/auth/oauth/{provider}/authorize`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21014,7 +21324,12 @@ var AuthOAuthApi = class extends BaseAPI {
21014
21324
  }
21015
21325
  }
21016
21326
  if (this.configuration && this.configuration.apiKey) {
21017
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21327
+ {
21328
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21329
+ if (apiKeyValue) {
21330
+ headerParameters["X-Application-Key"] = apiKeyValue;
21331
+ }
21332
+ }
21018
21333
  }
21019
21334
  const response = await this.request({
21020
21335
  path: `/auth/oauth/connections/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21055,10 +21370,20 @@ var AuthOAuthApi = class extends BaseAPI {
21055
21370
  }
21056
21371
  const headerParameters = {};
21057
21372
  if (this.configuration && this.configuration.apiKey) {
21058
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21373
+ {
21374
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21375
+ if (apiKeyValue) {
21376
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21377
+ }
21378
+ }
21059
21379
  }
21060
21380
  if (this.configuration && this.configuration.apiKey) {
21061
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21381
+ {
21382
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21383
+ if (apiKeyValue) {
21384
+ headerParameters["X-Application-Key"] = apiKeyValue;
21385
+ }
21386
+ }
21062
21387
  }
21063
21388
  const response = await this.request({
21064
21389
  path: `/auth/oauth/tokens/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21128,7 +21453,12 @@ var AuthOAuthApi = class extends BaseAPI {
21128
21453
  }
21129
21454
  }
21130
21455
  if (this.configuration && this.configuration.apiKey) {
21131
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21456
+ {
21457
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21458
+ if (apiKeyValue) {
21459
+ headerParameters["X-Application-Key"] = apiKeyValue;
21460
+ }
21461
+ }
21132
21462
  }
21133
21463
  const response = await this.request({
21134
21464
  path: `/auth/oauth/connections`,
@@ -21154,7 +21484,12 @@ var AuthOAuthApi = class extends BaseAPI {
21154
21484
  const queryParameters = {};
21155
21485
  const headerParameters = {};
21156
21486
  if (this.configuration && this.configuration.apiKey) {
21157
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21487
+ {
21488
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21489
+ if (apiKeyValue) {
21490
+ headerParameters["X-Application-Key"] = apiKeyValue;
21491
+ }
21492
+ }
21158
21493
  }
21159
21494
  const response = await this.request({
21160
21495
  path: `/auth/oauth/providers`,
@@ -21193,10 +21528,20 @@ var AuthOAuthApi = class extends BaseAPI {
21193
21528
  const headerParameters = {};
21194
21529
  headerParameters["Content-Type"] = "application/json";
21195
21530
  if (this.configuration && this.configuration.apiKey) {
21196
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21531
+ {
21532
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21533
+ if (apiKeyValue) {
21534
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21535
+ }
21536
+ }
21197
21537
  }
21198
21538
  if (this.configuration && this.configuration.apiKey) {
21199
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21539
+ {
21540
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21541
+ if (apiKeyValue) {
21542
+ headerParameters["X-Application-Key"] = apiKeyValue;
21543
+ }
21544
+ }
21200
21545
  }
21201
21546
  const response = await this.request({
21202
21547
  path: `/auth/oauth/tokens/{provider}/refresh`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21245,7 +21590,12 @@ var AuthOAuthApi = class extends BaseAPI {
21245
21590
  }
21246
21591
  }
21247
21592
  if (this.configuration && this.configuration.apiKey) {
21248
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21593
+ {
21594
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21595
+ if (apiKeyValue) {
21596
+ headerParameters["X-Application-Key"] = apiKeyValue;
21597
+ }
21598
+ }
21249
21599
  }
21250
21600
  const response = await this.request({
21251
21601
  path: `/auth/oauth/{provider}/link`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21287,10 +21637,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21287
21637
  const headerParameters = {};
21288
21638
  headerParameters["Content-Type"] = "application/json";
21289
21639
  if (this.configuration && this.configuration.apiKey) {
21290
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21640
+ {
21641
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21642
+ if (apiKeyValue) {
21643
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21644
+ }
21645
+ }
21291
21646
  }
21292
21647
  if (this.configuration && this.configuration.apiKey) {
21293
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21648
+ {
21649
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21650
+ if (apiKeyValue) {
21651
+ headerParameters["X-Application-Key"] = apiKeyValue;
21652
+ }
21653
+ }
21294
21654
  }
21295
21655
  const response = await this.request({
21296
21656
  path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21323,10 +21683,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21323
21683
  const headerParameters = {};
21324
21684
  headerParameters["Content-Type"] = "application/json";
21325
21685
  if (this.configuration && this.configuration.apiKey) {
21326
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21686
+ {
21687
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21688
+ if (apiKeyValue) {
21689
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21690
+ }
21691
+ }
21327
21692
  }
21328
21693
  if (this.configuration && this.configuration.apiKey) {
21329
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21694
+ {
21695
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21696
+ if (apiKeyValue) {
21697
+ headerParameters["X-Application-Key"] = apiKeyValue;
21698
+ }
21699
+ }
21330
21700
  }
21331
21701
  const response = await this.request({
21332
21702
  path: `/auth/organizations`,
@@ -21359,10 +21729,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21359
21729
  const queryParameters = {};
21360
21730
  const headerParameters = {};
21361
21731
  if (this.configuration && this.configuration.apiKey) {
21362
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21732
+ {
21733
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21734
+ if (apiKeyValue) {
21735
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21736
+ }
21737
+ }
21363
21738
  }
21364
21739
  if (this.configuration && this.configuration.apiKey) {
21365
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21740
+ {
21741
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21742
+ if (apiKeyValue) {
21743
+ headerParameters["X-Application-Key"] = apiKeyValue;
21744
+ }
21745
+ }
21366
21746
  }
21367
21747
  const response = await this.request({
21368
21748
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21392,10 +21772,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21392
21772
  const queryParameters = {};
21393
21773
  const headerParameters = {};
21394
21774
  if (this.configuration && this.configuration.apiKey) {
21395
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21775
+ {
21776
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21777
+ if (apiKeyValue) {
21778
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21779
+ }
21780
+ }
21396
21781
  }
21397
21782
  if (this.configuration && this.configuration.apiKey) {
21398
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21783
+ {
21784
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21785
+ if (apiKeyValue) {
21786
+ headerParameters["X-Application-Key"] = apiKeyValue;
21787
+ }
21788
+ }
21399
21789
  }
21400
21790
  const response = await this.request({
21401
21791
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21431,10 +21821,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21431
21821
  }
21432
21822
  const headerParameters = {};
21433
21823
  if (this.configuration && this.configuration.apiKey) {
21434
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21824
+ {
21825
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21826
+ if (apiKeyValue) {
21827
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21828
+ }
21829
+ }
21435
21830
  }
21436
21831
  if (this.configuration && this.configuration.apiKey) {
21437
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21832
+ {
21833
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21834
+ if (apiKeyValue) {
21835
+ headerParameters["X-Application-Key"] = apiKeyValue;
21836
+ }
21837
+ }
21438
21838
  }
21439
21839
  const response = await this.request({
21440
21840
  path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21468,10 +21868,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21468
21868
  }
21469
21869
  const headerParameters = {};
21470
21870
  if (this.configuration && this.configuration.apiKey) {
21471
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21871
+ {
21872
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21873
+ if (apiKeyValue) {
21874
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21875
+ }
21876
+ }
21472
21877
  }
21473
21878
  if (this.configuration && this.configuration.apiKey) {
21474
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21879
+ {
21880
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21881
+ if (apiKeyValue) {
21882
+ headerParameters["X-Application-Key"] = apiKeyValue;
21883
+ }
21884
+ }
21475
21885
  }
21476
21886
  const response = await this.request({
21477
21887
  path: `/auth/organizations`,
@@ -21503,10 +21913,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21503
21913
  const queryParameters = {};
21504
21914
  const headerParameters = {};
21505
21915
  if (this.configuration && this.configuration.apiKey) {
21506
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21916
+ {
21917
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21918
+ if (apiKeyValue) {
21919
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21920
+ }
21921
+ }
21507
21922
  }
21508
21923
  if (this.configuration && this.configuration.apiKey) {
21509
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21924
+ {
21925
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21926
+ if (apiKeyValue) {
21927
+ headerParameters["X-Application-Key"] = apiKeyValue;
21928
+ }
21929
+ }
21510
21930
  }
21511
21931
  const response = await this.request({
21512
21932
  path: `/auth/end-users/{user_id}/organizations`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -21543,10 +21963,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21543
21963
  const queryParameters = {};
21544
21964
  const headerParameters = {};
21545
21965
  if (this.configuration && this.configuration.apiKey) {
21546
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
21966
+ {
21967
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
21968
+ if (apiKeyValue) {
21969
+ headerParameters["X-Application-Secret"] = apiKeyValue;
21970
+ }
21971
+ }
21547
21972
  }
21548
21973
  if (this.configuration && this.configuration.apiKey) {
21549
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
21974
+ {
21975
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
21976
+ if (apiKeyValue) {
21977
+ headerParameters["X-Application-Key"] = apiKeyValue;
21978
+ }
21979
+ }
21550
21980
  }
21551
21981
  const response = await this.request({
21552
21982
  path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -21577,10 +22007,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21577
22007
  const headerParameters = {};
21578
22008
  headerParameters["Content-Type"] = "application/json";
21579
22009
  if (this.configuration && this.configuration.apiKey) {
21580
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22010
+ {
22011
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22012
+ if (apiKeyValue) {
22013
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22014
+ }
22015
+ }
21581
22016
  }
21582
22017
  if (this.configuration && this.configuration.apiKey) {
21583
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22018
+ {
22019
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22020
+ if (apiKeyValue) {
22021
+ headerParameters["X-Application-Key"] = apiKeyValue;
22022
+ }
22023
+ }
21584
22024
  }
21585
22025
  const response = await this.request({
21586
22026
  path: `/auth/sessions/switch-organization`,
@@ -21620,10 +22060,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21620
22060
  const headerParameters = {};
21621
22061
  headerParameters["Content-Type"] = "application/json";
21622
22062
  if (this.configuration && this.configuration.apiKey) {
21623
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22063
+ {
22064
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22065
+ if (apiKeyValue) {
22066
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22067
+ }
22068
+ }
21624
22069
  }
21625
22070
  if (this.configuration && this.configuration.apiKey) {
21626
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22071
+ {
22072
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22073
+ if (apiKeyValue) {
22074
+ headerParameters["X-Application-Key"] = apiKeyValue;
22075
+ }
22076
+ }
21627
22077
  }
21628
22078
  const response = await this.request({
21629
22079
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21668,10 +22118,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21668
22118
  const headerParameters = {};
21669
22119
  headerParameters["Content-Type"] = "application/json";
21670
22120
  if (this.configuration && this.configuration.apiKey) {
21671
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22121
+ {
22122
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22123
+ if (apiKeyValue) {
22124
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22125
+ }
22126
+ }
21672
22127
  }
21673
22128
  if (this.configuration && this.configuration.apiKey) {
21674
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22129
+ {
22130
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22131
+ if (apiKeyValue) {
22132
+ headerParameters["X-Application-Key"] = apiKeyValue;
22133
+ }
22134
+ }
21675
22135
  }
21676
22136
  const response = await this.request({
21677
22137
  path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -21708,10 +22168,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
21708
22168
  const headerParameters = {};
21709
22169
  headerParameters["Content-Type"] = "application/json";
21710
22170
  if (this.configuration && this.configuration.apiKey) {
21711
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22171
+ {
22172
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22173
+ if (apiKeyValue) {
22174
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22175
+ }
22176
+ }
21712
22177
  }
21713
22178
  if (this.configuration && this.configuration.apiKey) {
21714
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22179
+ {
22180
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22181
+ if (apiKeyValue) {
22182
+ headerParameters["X-Application-Key"] = apiKeyValue;
22183
+ }
22184
+ }
21715
22185
  }
21716
22186
  const response = await this.request({
21717
22187
  path: `/auth/forgot-password`,
@@ -21745,10 +22215,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
21745
22215
  const headerParameters = {};
21746
22216
  headerParameters["Content-Type"] = "application/json";
21747
22217
  if (this.configuration && this.configuration.apiKey) {
21748
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22218
+ {
22219
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22220
+ if (apiKeyValue) {
22221
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22222
+ }
22223
+ }
21749
22224
  }
21750
22225
  if (this.configuration && this.configuration.apiKey) {
21751
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22226
+ {
22227
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22228
+ if (apiKeyValue) {
22229
+ headerParameters["X-Application-Key"] = apiKeyValue;
22230
+ }
22231
+ }
21752
22232
  }
21753
22233
  const response = await this.request({
21754
22234
  path: `/auth/reset-password`,
@@ -21782,10 +22262,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
21782
22262
  const headerParameters = {};
21783
22263
  headerParameters["Content-Type"] = "application/json";
21784
22264
  if (this.configuration && this.configuration.apiKey) {
21785
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22265
+ {
22266
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22267
+ if (apiKeyValue) {
22268
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22269
+ }
22270
+ }
21786
22271
  }
21787
22272
  if (this.configuration && this.configuration.apiKey) {
21788
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22273
+ {
22274
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22275
+ if (apiKeyValue) {
22276
+ headerParameters["X-Application-Key"] = apiKeyValue;
22277
+ }
22278
+ }
21789
22279
  }
21790
22280
  const response = await this.request({
21791
22281
  path: `/auth/validate-reset-token`,
@@ -21816,7 +22306,12 @@ var AuthPhoneApi = class extends BaseAPI {
21816
22306
  const queryParameters = {};
21817
22307
  const headerParameters = {};
21818
22308
  if (this.configuration && this.configuration.apiKey) {
21819
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22309
+ {
22310
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22311
+ if (apiKeyValue) {
22312
+ headerParameters["X-Application-Key"] = apiKeyValue;
22313
+ }
22314
+ }
21820
22315
  }
21821
22316
  const response = await this.request({
21822
22317
  path: `/auth/phone/available`,
@@ -21849,10 +22344,20 @@ var AuthPhoneApi = class extends BaseAPI {
21849
22344
  const headerParameters = {};
21850
22345
  headerParameters["Content-Type"] = "application/json";
21851
22346
  if (this.configuration && this.configuration.apiKey) {
21852
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22347
+ {
22348
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22349
+ if (apiKeyValue) {
22350
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22351
+ }
22352
+ }
21853
22353
  }
21854
22354
  if (this.configuration && this.configuration.apiKey) {
21855
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22355
+ {
22356
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22357
+ if (apiKeyValue) {
22358
+ headerParameters["X-Application-Key"] = apiKeyValue;
22359
+ }
22360
+ }
21856
22361
  }
21857
22362
  const response = await this.request({
21858
22363
  path: `/auth/phone/login/send`,
@@ -21886,10 +22391,20 @@ var AuthPhoneApi = class extends BaseAPI {
21886
22391
  const headerParameters = {};
21887
22392
  headerParameters["Content-Type"] = "application/json";
21888
22393
  if (this.configuration && this.configuration.apiKey) {
21889
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22394
+ {
22395
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22396
+ if (apiKeyValue) {
22397
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22398
+ }
22399
+ }
21890
22400
  }
21891
22401
  if (this.configuration && this.configuration.apiKey) {
21892
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22402
+ {
22403
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22404
+ if (apiKeyValue) {
22405
+ headerParameters["X-Application-Key"] = apiKeyValue;
22406
+ }
22407
+ }
21893
22408
  }
21894
22409
  const response = await this.request({
21895
22410
  path: `/auth/phone/register/send`,
@@ -21923,10 +22438,20 @@ var AuthPhoneApi = class extends BaseAPI {
21923
22438
  const headerParameters = {};
21924
22439
  headerParameters["Content-Type"] = "application/json";
21925
22440
  if (this.configuration && this.configuration.apiKey) {
21926
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22441
+ {
22442
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22443
+ if (apiKeyValue) {
22444
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22445
+ }
22446
+ }
21927
22447
  }
21928
22448
  if (this.configuration && this.configuration.apiKey) {
21929
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22449
+ {
22450
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22451
+ if (apiKeyValue) {
22452
+ headerParameters["X-Application-Key"] = apiKeyValue;
22453
+ }
22454
+ }
21930
22455
  }
21931
22456
  const response = await this.request({
21932
22457
  path: `/auth/phone/login/verify`,
@@ -21960,10 +22485,20 @@ var AuthPhoneApi = class extends BaseAPI {
21960
22485
  const headerParameters = {};
21961
22486
  headerParameters["Content-Type"] = "application/json";
21962
22487
  if (this.configuration && this.configuration.apiKey) {
21963
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22488
+ {
22489
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22490
+ if (apiKeyValue) {
22491
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22492
+ }
22493
+ }
21964
22494
  }
21965
22495
  if (this.configuration && this.configuration.apiKey) {
21966
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22496
+ {
22497
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22498
+ if (apiKeyValue) {
22499
+ headerParameters["X-Application-Key"] = apiKeyValue;
22500
+ }
22501
+ }
21967
22502
  }
21968
22503
  const response = await this.request({
21969
22504
  path: `/auth/phone/register/verify`,
@@ -22032,10 +22567,20 @@ var AuthRegistrationApi = class extends BaseAPI {
22032
22567
  const headerParameters = {};
22033
22568
  headerParameters["Content-Type"] = "application/json";
22034
22569
  if (this.configuration && this.configuration.apiKey) {
22035
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22570
+ {
22571
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22572
+ if (apiKeyValue) {
22573
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22574
+ }
22575
+ }
22036
22576
  }
22037
22577
  if (this.configuration && this.configuration.apiKey) {
22038
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22578
+ {
22579
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22580
+ if (apiKeyValue) {
22581
+ headerParameters["X-Application-Key"] = apiKeyValue;
22582
+ }
22583
+ }
22039
22584
  }
22040
22585
  const response = await this.request({
22041
22586
  path: `/auth/users/register`,
@@ -22069,7 +22614,12 @@ var AuthRegistrationApi = class extends BaseAPI {
22069
22614
  const headerParameters = {};
22070
22615
  headerParameters["Content-Type"] = "application/json";
22071
22616
  if (this.configuration && this.configuration.apiKey) {
22072
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22617
+ {
22618
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22619
+ if (apiKeyValue) {
22620
+ headerParameters["X-Application-Key"] = apiKeyValue;
22621
+ }
22622
+ }
22073
22623
  }
22074
22624
  const response = await this.request({
22075
22625
  path: `/auth/users/anonymous`,
@@ -22103,7 +22653,12 @@ var AuthRegistrationApi = class extends BaseAPI {
22103
22653
  const headerParameters = {};
22104
22654
  headerParameters["Content-Type"] = "application/json";
22105
22655
  if (this.configuration && this.configuration.apiKey) {
22106
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22656
+ {
22657
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22658
+ if (apiKeyValue) {
22659
+ headerParameters["X-Application-Key"] = apiKeyValue;
22660
+ }
22661
+ }
22107
22662
  }
22108
22663
  const response = await this.request({
22109
22664
  path: `/auth/game-center`,
@@ -22137,7 +22692,12 @@ var AuthRegistrationApi = class extends BaseAPI {
22137
22692
  const headerParameters = {};
22138
22693
  headerParameters["Content-Type"] = "application/json";
22139
22694
  if (this.configuration && this.configuration.apiKey) {
22140
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22695
+ {
22696
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22697
+ if (apiKeyValue) {
22698
+ headerParameters["X-Application-Key"] = apiKeyValue;
22699
+ }
22700
+ }
22141
22701
  }
22142
22702
  const response = await this.request({
22143
22703
  path: `/auth/google-play-games`,
@@ -22175,7 +22735,12 @@ var AuthSessionsApi = class extends BaseAPI {
22175
22735
  }
22176
22736
  }
22177
22737
  if (this.configuration && this.configuration.apiKey) {
22178
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22738
+ {
22739
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22740
+ if (apiKeyValue) {
22741
+ headerParameters["X-Application-Key"] = apiKeyValue;
22742
+ }
22743
+ }
22179
22744
  }
22180
22745
  const response = await this.request({
22181
22746
  path: `/auth/sessions`,
@@ -22208,10 +22773,20 @@ var AuthSessionsApi = class extends BaseAPI {
22208
22773
  const headerParameters = {};
22209
22774
  headerParameters["Content-Type"] = "application/json";
22210
22775
  if (this.configuration && this.configuration.apiKey) {
22211
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22776
+ {
22777
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22778
+ if (apiKeyValue) {
22779
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22780
+ }
22781
+ }
22212
22782
  }
22213
22783
  if (this.configuration && this.configuration.apiKey) {
22214
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22784
+ {
22785
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22786
+ if (apiKeyValue) {
22787
+ headerParameters["X-Application-Key"] = apiKeyValue;
22788
+ }
22789
+ }
22215
22790
  }
22216
22791
  const response = await this.request({
22217
22792
  path: `/auth/sessions/refresh`,
@@ -22238,7 +22813,12 @@ var AuthSessionsApi = class extends BaseAPI {
22238
22813
  const queryParameters = {};
22239
22814
  const headerParameters = {};
22240
22815
  if (this.configuration && this.configuration.apiKey) {
22241
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22816
+ {
22817
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22818
+ if (apiKeyValue) {
22819
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22820
+ }
22821
+ }
22242
22822
  }
22243
22823
  if (this.configuration && this.configuration.accessToken) {
22244
22824
  const token = this.configuration.accessToken;
@@ -22248,7 +22828,12 @@ var AuthSessionsApi = class extends BaseAPI {
22248
22828
  }
22249
22829
  }
22250
22830
  if (this.configuration && this.configuration.apiKey) {
22251
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22831
+ {
22832
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22833
+ if (apiKeyValue) {
22834
+ headerParameters["X-Application-Key"] = apiKeyValue;
22835
+ }
22836
+ }
22252
22837
  }
22253
22838
  const response = await this.request({
22254
22839
  path: `/auth/sessions/revoke-all`,
@@ -22281,10 +22866,20 @@ var AuthSessionsApi = class extends BaseAPI {
22281
22866
  const headerParameters = {};
22282
22867
  headerParameters["Content-Type"] = "application/json";
22283
22868
  if (this.configuration && this.configuration.apiKey) {
22284
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22869
+ {
22870
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22871
+ if (apiKeyValue) {
22872
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22873
+ }
22874
+ }
22285
22875
  }
22286
22876
  if (this.configuration && this.configuration.apiKey) {
22287
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22877
+ {
22878
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22879
+ if (apiKeyValue) {
22880
+ headerParameters["X-Application-Key"] = apiKeyValue;
22881
+ }
22882
+ }
22288
22883
  }
22289
22884
  const response = await this.request({
22290
22885
  path: `/auth/sessions/revoke`,
@@ -22321,10 +22916,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22321
22916
  const queryParameters = {};
22322
22917
  const headerParameters = {};
22323
22918
  if (this.configuration && this.configuration.apiKey) {
22324
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22919
+ {
22920
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22921
+ if (apiKeyValue) {
22922
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22923
+ }
22924
+ }
22325
22925
  }
22326
22926
  if (this.configuration && this.configuration.apiKey) {
22327
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22927
+ {
22928
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22929
+ if (apiKeyValue) {
22930
+ headerParameters["X-Application-Key"] = apiKeyValue;
22931
+ }
22932
+ }
22328
22933
  }
22329
22934
  const response = await this.request({
22330
22935
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22355,10 +22960,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22355
22960
  const queryParameters = {};
22356
22961
  const headerParameters = {};
22357
22962
  if (this.configuration && this.configuration.apiKey) {
22358
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
22963
+ {
22964
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
22965
+ if (apiKeyValue) {
22966
+ headerParameters["X-Application-Secret"] = apiKeyValue;
22967
+ }
22968
+ }
22359
22969
  }
22360
22970
  if (this.configuration && this.configuration.apiKey) {
22361
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
22971
+ {
22972
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
22973
+ if (apiKeyValue) {
22974
+ headerParameters["X-Application-Key"] = apiKeyValue;
22975
+ }
22976
+ }
22362
22977
  }
22363
22978
  const response = await this.request({
22364
22979
  path: `/auth/users/{user_id}/auth-methods`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22393,10 +23008,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22393
23008
  }
22394
23009
  const headerParameters = {};
22395
23010
  if (this.configuration && this.configuration.apiKey) {
22396
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23011
+ {
23012
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23013
+ if (apiKeyValue) {
23014
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23015
+ }
23016
+ }
22397
23017
  }
22398
23018
  if (this.configuration && this.configuration.apiKey) {
22399
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23019
+ {
23020
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23021
+ if (apiKeyValue) {
23022
+ headerParameters["X-Application-Key"] = apiKeyValue;
23023
+ }
23024
+ }
22400
23025
  }
22401
23026
  const response = await this.request({
22402
23027
  path: `/auth/users/by-email`,
@@ -22428,10 +23053,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22428
23053
  const queryParameters = {};
22429
23054
  const headerParameters = {};
22430
23055
  if (this.configuration && this.configuration.apiKey) {
22431
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23056
+ {
23057
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23058
+ if (apiKeyValue) {
23059
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23060
+ }
23061
+ }
22432
23062
  }
22433
23063
  if (this.configuration && this.configuration.apiKey) {
22434
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23064
+ {
23065
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23066
+ if (apiKeyValue) {
23067
+ headerParameters["X-Application-Key"] = apiKeyValue;
23068
+ }
23069
+ }
22435
23070
  }
22436
23071
  const response = await this.request({
22437
23072
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22463,10 +23098,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22463
23098
  const queryParameters = {};
22464
23099
  const headerParameters = {};
22465
23100
  if (this.configuration && this.configuration.apiKey) {
22466
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23101
+ {
23102
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23103
+ if (apiKeyValue) {
23104
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23105
+ }
23106
+ }
22467
23107
  }
22468
23108
  if (this.configuration && this.configuration.apiKey) {
22469
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23109
+ {
23110
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23111
+ if (apiKeyValue) {
23112
+ headerParameters["X-Application-Key"] = apiKeyValue;
23113
+ }
23114
+ }
22470
23115
  }
22471
23116
  const response = await this.request({
22472
23117
  path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22499,10 +23144,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22499
23144
  const headerParameters = {};
22500
23145
  headerParameters["Content-Type"] = "application/json";
22501
23146
  if (this.configuration && this.configuration.apiKey) {
22502
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23147
+ {
23148
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23149
+ if (apiKeyValue) {
23150
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23151
+ }
23152
+ }
22503
23153
  }
22504
23154
  if (this.configuration && this.configuration.apiKey) {
22505
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23155
+ {
23156
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23157
+ if (apiKeyValue) {
23158
+ headerParameters["X-Application-Key"] = apiKeyValue;
23159
+ }
23160
+ }
22506
23161
  }
22507
23162
  const response = await this.request({
22508
23163
  path: `/auth/users/invite`,
@@ -22541,10 +23196,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22541
23196
  }
22542
23197
  const headerParameters = {};
22543
23198
  if (this.configuration && this.configuration.apiKey) {
22544
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23199
+ {
23200
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23201
+ if (apiKeyValue) {
23202
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23203
+ }
23204
+ }
22545
23205
  }
22546
23206
  if (this.configuration && this.configuration.apiKey) {
22547
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23207
+ {
23208
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23209
+ if (apiKeyValue) {
23210
+ headerParameters["X-Application-Key"] = apiKeyValue;
23211
+ }
23212
+ }
22548
23213
  }
22549
23214
  const response = await this.request({
22550
23215
  path: `/auth/users`,
@@ -22583,10 +23248,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22583
23248
  const headerParameters = {};
22584
23249
  headerParameters["Content-Type"] = "application/json";
22585
23250
  if (this.configuration && this.configuration.apiKey) {
22586
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23251
+ {
23252
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23253
+ if (apiKeyValue) {
23254
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23255
+ }
23256
+ }
22587
23257
  }
22588
23258
  if (this.configuration && this.configuration.apiKey) {
22589
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23259
+ {
23260
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23261
+ if (apiKeyValue) {
23262
+ headerParameters["X-Application-Key"] = apiKeyValue;
23263
+ }
23264
+ }
22590
23265
  }
22591
23266
  const response = await this.request({
22592
23267
  path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22626,10 +23301,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22626
23301
  const headerParameters = {};
22627
23302
  headerParameters["Content-Type"] = "application/json";
22628
23303
  if (this.configuration && this.configuration.apiKey) {
22629
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23304
+ {
23305
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23306
+ if (apiKeyValue) {
23307
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23308
+ }
23309
+ }
22630
23310
  }
22631
23311
  if (this.configuration && this.configuration.apiKey) {
22632
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23312
+ {
23313
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23314
+ if (apiKeyValue) {
23315
+ headerParameters["X-Application-Key"] = apiKeyValue;
23316
+ }
23317
+ }
22633
23318
  }
22634
23319
  const response = await this.request({
22635
23320
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22678,7 +23363,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22678
23363
  }
22679
23364
  }
22680
23365
  if (this.configuration && this.configuration.apiKey) {
22681
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23366
+ {
23367
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23368
+ if (apiKeyValue) {
23369
+ headerParameters["X-Application-Key"] = apiKeyValue;
23370
+ }
23371
+ }
22682
23372
  }
22683
23373
  const response = await this.request({
22684
23374
  path: `/auth/users/change-password`,
@@ -22712,7 +23402,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22712
23402
  }
22713
23403
  }
22714
23404
  if (this.configuration && this.configuration.apiKey) {
22715
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23405
+ {
23406
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23407
+ if (apiKeyValue) {
23408
+ headerParameters["X-Application-Key"] = apiKeyValue;
23409
+ }
23410
+ }
22716
23411
  }
22717
23412
  const response = await this.request({
22718
23413
  path: `/auth/users/me`,
@@ -22745,7 +23440,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22745
23440
  }
22746
23441
  }
22747
23442
  if (this.configuration && this.configuration.apiKey) {
22748
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23443
+ {
23444
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23445
+ if (apiKeyValue) {
23446
+ headerParameters["X-Application-Key"] = apiKeyValue;
23447
+ }
23448
+ }
22749
23449
  }
22750
23450
  const response = await this.request({
22751
23451
  path: `/auth/users/me`,
@@ -22785,7 +23485,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22785
23485
  }
22786
23486
  }
22787
23487
  if (this.configuration && this.configuration.apiKey) {
22788
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23488
+ {
23489
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23490
+ if (apiKeyValue) {
23491
+ headerParameters["X-Application-Key"] = apiKeyValue;
23492
+ }
23493
+ }
22789
23494
  }
22790
23495
  const response = await this.request({
22791
23496
  path: `/auth/users/me`,
@@ -22829,7 +23534,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22829
23534
  }
22830
23535
  }
22831
23536
  if (this.configuration && this.configuration.apiKey) {
22832
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23537
+ {
23538
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23539
+ if (apiKeyValue) {
23540
+ headerParameters["X-Application-Key"] = apiKeyValue;
23541
+ }
23542
+ }
22833
23543
  }
22834
23544
  const response = await this.request({
22835
23545
  path: `/auth/webauthn/credentials/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22862,7 +23572,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22862
23572
  }
22863
23573
  }
22864
23574
  if (this.configuration && this.configuration.apiKey) {
22865
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23575
+ {
23576
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23577
+ if (apiKeyValue) {
23578
+ headerParameters["X-Application-Key"] = apiKeyValue;
23579
+ }
23580
+ }
22866
23581
  }
22867
23582
  const response = await this.request({
22868
23583
  path: `/auth/webauthn/status`,
@@ -22895,7 +23610,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22895
23610
  }
22896
23611
  }
22897
23612
  if (this.configuration && this.configuration.apiKey) {
22898
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23613
+ {
23614
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23615
+ if (apiKeyValue) {
23616
+ headerParameters["X-Application-Key"] = apiKeyValue;
23617
+ }
23618
+ }
22899
23619
  }
22900
23620
  const response = await this.request({
22901
23621
  path: `/auth/webauthn/credentials`,
@@ -22941,7 +23661,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22941
23661
  }
22942
23662
  }
22943
23663
  if (this.configuration && this.configuration.apiKey) {
22944
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23664
+ {
23665
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23666
+ if (apiKeyValue) {
23667
+ headerParameters["X-Application-Key"] = apiKeyValue;
23668
+ }
23669
+ }
22945
23670
  }
22946
23671
  const response = await this.request({
22947
23672
  path: `/auth/webauthn/credentials/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22969,10 +23694,20 @@ var AuthWebAuthnApi = class extends BaseAPI {
22969
23694
  const headerParameters = {};
22970
23695
  headerParameters["Content-Type"] = "application/json";
22971
23696
  if (this.configuration && this.configuration.apiKey) {
22972
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23697
+ {
23698
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23699
+ if (apiKeyValue) {
23700
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23701
+ }
23702
+ }
22973
23703
  }
22974
23704
  if (this.configuration && this.configuration.apiKey) {
22975
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23705
+ {
23706
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23707
+ if (apiKeyValue) {
23708
+ headerParameters["X-Application-Key"] = apiKeyValue;
23709
+ }
23710
+ }
22976
23711
  }
22977
23712
  const response = await this.request({
22978
23713
  path: `/auth/webauthn/authentication/start`,
@@ -23000,7 +23735,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23000
23735
  const headerParameters = {};
23001
23736
  headerParameters["Content-Type"] = "application/json";
23002
23737
  if (this.configuration && this.configuration.apiKey) {
23003
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23738
+ {
23739
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23740
+ if (apiKeyValue) {
23741
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23742
+ }
23743
+ }
23004
23744
  }
23005
23745
  if (this.configuration && this.configuration.accessToken) {
23006
23746
  const token = this.configuration.accessToken;
@@ -23010,7 +23750,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23010
23750
  }
23011
23751
  }
23012
23752
  if (this.configuration && this.configuration.apiKey) {
23013
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23753
+ {
23754
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23755
+ if (apiKeyValue) {
23756
+ headerParameters["X-Application-Key"] = apiKeyValue;
23757
+ }
23758
+ }
23014
23759
  }
23015
23760
  const response = await this.request({
23016
23761
  path: `/auth/webauthn/registration/start`,
@@ -23044,10 +23789,20 @@ var AuthWebAuthnApi = class extends BaseAPI {
23044
23789
  const headerParameters = {};
23045
23790
  headerParameters["Content-Type"] = "application/json";
23046
23791
  if (this.configuration && this.configuration.apiKey) {
23047
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23792
+ {
23793
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23794
+ if (apiKeyValue) {
23795
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23796
+ }
23797
+ }
23048
23798
  }
23049
23799
  if (this.configuration && this.configuration.apiKey) {
23050
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23800
+ {
23801
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23802
+ if (apiKeyValue) {
23803
+ headerParameters["X-Application-Key"] = apiKeyValue;
23804
+ }
23805
+ }
23051
23806
  }
23052
23807
  const response = await this.request({
23053
23808
  path: `/auth/webauthn/authentication/verify`,
@@ -23081,7 +23836,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23081
23836
  const headerParameters = {};
23082
23837
  headerParameters["Content-Type"] = "application/json";
23083
23838
  if (this.configuration && this.configuration.apiKey) {
23084
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
23839
+ {
23840
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret");
23841
+ if (apiKeyValue) {
23842
+ headerParameters["X-Application-Secret"] = apiKeyValue;
23843
+ }
23844
+ }
23085
23845
  }
23086
23846
  if (this.configuration && this.configuration.accessToken) {
23087
23847
  const token = this.configuration.accessToken;
@@ -23091,7 +23851,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23091
23851
  }
23092
23852
  }
23093
23853
  if (this.configuration && this.configuration.apiKey) {
23094
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
23854
+ {
23855
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
23856
+ if (apiKeyValue) {
23857
+ headerParameters["X-Application-Key"] = apiKeyValue;
23858
+ }
23859
+ }
23095
23860
  }
23096
23861
  const response = await this.request({
23097
23862
  path: `/auth/webauthn/registration/verify`,
@@ -23128,7 +23893,12 @@ var DevicesApi = class extends BaseAPI {
23128
23893
  const queryParameters = {};
23129
23894
  const headerParameters = {};
23130
23895
  if (this.configuration && this.configuration.apiKey) {
23131
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23896
+ {
23897
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23898
+ if (apiKeyValue) {
23899
+ headerParameters["X-API-Key"] = apiKeyValue;
23900
+ }
23901
+ }
23132
23902
  }
23133
23903
  const response = await this.request({
23134
23904
  path: `/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23160,7 +23930,12 @@ var DevicesApi = class extends BaseAPI {
23160
23930
  const queryParameters = {};
23161
23931
  const headerParameters = {};
23162
23932
  if (this.configuration && this.configuration.apiKey) {
23163
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23933
+ {
23934
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23935
+ if (apiKeyValue) {
23936
+ headerParameters["X-API-Key"] = apiKeyValue;
23937
+ }
23938
+ }
23164
23939
  }
23165
23940
  const response = await this.request({
23166
23941
  path: `/devices/user/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -23192,7 +23967,12 @@ var DevicesApi = class extends BaseAPI {
23192
23967
  const queryParameters = {};
23193
23968
  const headerParameters = {};
23194
23969
  if (this.configuration && this.configuration.apiKey) {
23195
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
23970
+ {
23971
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
23972
+ if (apiKeyValue) {
23973
+ headerParameters["X-API-Key"] = apiKeyValue;
23974
+ }
23975
+ }
23196
23976
  }
23197
23977
  const response = await this.request({
23198
23978
  path: `/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23218,7 +23998,12 @@ var DevicesApi = class extends BaseAPI {
23218
23998
  const queryParameters = {};
23219
23999
  const headerParameters = {};
23220
24000
  if (this.configuration && this.configuration.apiKey) {
23221
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24001
+ {
24002
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24003
+ if (apiKeyValue) {
24004
+ headerParameters["X-API-Key"] = apiKeyValue;
24005
+ }
24006
+ }
23222
24007
  }
23223
24008
  const response = await this.request({
23224
24009
  path: `/devices/stats`,
@@ -23256,7 +24041,12 @@ var DevicesApi = class extends BaseAPI {
23256
24041
  }
23257
24042
  const headerParameters = {};
23258
24043
  if (this.configuration && this.configuration.apiKey) {
23259
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24044
+ {
24045
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24046
+ if (apiKeyValue) {
24047
+ headerParameters["X-API-Key"] = apiKeyValue;
24048
+ }
24049
+ }
23260
24050
  }
23261
24051
  const response = await this.request({
23262
24052
  path: `/devices`,
@@ -23275,7 +24065,7 @@ var DevicesApi = class extends BaseAPI {
23275
24065
  return await response.value();
23276
24066
  }
23277
24067
  /**
23278
- * Register a device for push notifications. If the token already exists, updates it.
24068
+ * 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.
23279
24069
  * Register a device
23280
24070
  */
23281
24071
  async registerDeviceRaw(requestParameters, initOverrides) {
@@ -23289,7 +24079,12 @@ var DevicesApi = class extends BaseAPI {
23289
24079
  const headerParameters = {};
23290
24080
  headerParameters["Content-Type"] = "application/json";
23291
24081
  if (this.configuration && this.configuration.apiKey) {
23292
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24082
+ {
24083
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24084
+ if (apiKeyValue) {
24085
+ headerParameters["X-API-Key"] = apiKeyValue;
24086
+ }
24087
+ }
23293
24088
  }
23294
24089
  const response = await this.request({
23295
24090
  path: `/devices`,
@@ -23301,7 +24096,7 @@ var DevicesApi = class extends BaseAPI {
23301
24096
  return new JSONApiResponse(response, (jsonValue) => DeviceResponseFromJSON(jsonValue));
23302
24097
  }
23303
24098
  /**
23304
- * Register a device for push notifications. If the token already exists, updates it.
24099
+ * 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.
23305
24100
  * Register a device
23306
24101
  */
23307
24102
  async registerDevice(registerDeviceRequest, initOverrides) {
@@ -23332,7 +24127,12 @@ var DomainsApi = class extends BaseAPI {
23332
24127
  const headerParameters = {};
23333
24128
  headerParameters["Content-Type"] = "application/json";
23334
24129
  if (this.configuration && this.configuration.apiKey) {
23335
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24130
+ {
24131
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24132
+ if (apiKeyValue) {
24133
+ headerParameters["X-API-Key"] = apiKeyValue;
24134
+ }
24135
+ }
23336
24136
  }
23337
24137
  const response = await this.request({
23338
24138
  path: `/domains`,
@@ -23365,7 +24165,12 @@ var DomainsApi = class extends BaseAPI {
23365
24165
  const queryParameters = {};
23366
24166
  const headerParameters = {};
23367
24167
  if (this.configuration && this.configuration.apiKey) {
23368
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24168
+ {
24169
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24170
+ if (apiKeyValue) {
24171
+ headerParameters["X-API-Key"] = apiKeyValue;
24172
+ }
24173
+ }
23369
24174
  }
23370
24175
  const response = await this.request({
23371
24176
  path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23397,7 +24202,12 @@ var DomainsApi = class extends BaseAPI {
23397
24202
  const queryParameters = {};
23398
24203
  const headerParameters = {};
23399
24204
  if (this.configuration && this.configuration.apiKey) {
23400
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24205
+ {
24206
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24207
+ if (apiKeyValue) {
24208
+ headerParameters["X-API-Key"] = apiKeyValue;
24209
+ }
24210
+ }
23401
24211
  }
23402
24212
  const response = await this.request({
23403
24213
  path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23429,7 +24239,12 @@ var DomainsApi = class extends BaseAPI {
23429
24239
  const queryParameters = {};
23430
24240
  const headerParameters = {};
23431
24241
  if (this.configuration && this.configuration.apiKey) {
23432
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24242
+ {
24243
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24244
+ if (apiKeyValue) {
24245
+ headerParameters["X-API-Key"] = apiKeyValue;
24246
+ }
24247
+ }
23433
24248
  }
23434
24249
  const response = await this.request({
23435
24250
  path: `/domains/{id}/verification-status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23455,7 +24270,12 @@ var DomainsApi = class extends BaseAPI {
23455
24270
  const queryParameters = {};
23456
24271
  const headerParameters = {};
23457
24272
  if (this.configuration && this.configuration.apiKey) {
23458
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24273
+ {
24274
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24275
+ if (apiKeyValue) {
24276
+ headerParameters["X-API-Key"] = apiKeyValue;
24277
+ }
24278
+ }
23459
24279
  }
23460
24280
  const response = await this.request({
23461
24281
  path: `/domains`,
@@ -23494,7 +24314,12 @@ var DomainsApi = class extends BaseAPI {
23494
24314
  const headerParameters = {};
23495
24315
  headerParameters["Content-Type"] = "application/json";
23496
24316
  if (this.configuration && this.configuration.apiKey) {
23497
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24317
+ {
24318
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24319
+ if (apiKeyValue) {
24320
+ headerParameters["X-API-Key"] = apiKeyValue;
24321
+ }
24322
+ }
23498
24323
  }
23499
24324
  const response = await this.request({
23500
24325
  path: `/domains/{id}/inbound`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23527,7 +24352,12 @@ var DomainsApi = class extends BaseAPI {
23527
24352
  const queryParameters = {};
23528
24353
  const headerParameters = {};
23529
24354
  if (this.configuration && this.configuration.apiKey) {
23530
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24355
+ {
24356
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24357
+ if (apiKeyValue) {
24358
+ headerParameters["X-API-Key"] = apiKeyValue;
24359
+ }
24360
+ }
23531
24361
  }
23532
24362
  const response = await this.request({
23533
24363
  path: `/domains/{id}/verify`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23563,7 +24393,12 @@ var EmailsApi = class extends BaseAPI {
23563
24393
  const queryParameters = {};
23564
24394
  const headerParameters = {};
23565
24395
  if (this.configuration && this.configuration.apiKey) {
23566
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24396
+ {
24397
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24398
+ if (apiKeyValue) {
24399
+ headerParameters["X-API-Key"] = apiKeyValue;
24400
+ }
24401
+ }
23567
24402
  }
23568
24403
  const response = await this.request({
23569
24404
  path: `/emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23595,7 +24430,12 @@ var EmailsApi = class extends BaseAPI {
23595
24430
  const queryParameters = {};
23596
24431
  const headerParameters = {};
23597
24432
  if (this.configuration && this.configuration.apiKey) {
23598
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24433
+ {
24434
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24435
+ if (apiKeyValue) {
24436
+ headerParameters["X-API-Key"] = apiKeyValue;
24437
+ }
24438
+ }
23599
24439
  }
23600
24440
  const response = await this.request({
23601
24441
  path: `/emails/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23627,7 +24467,12 @@ var EmailsApi = class extends BaseAPI {
23627
24467
  const queryParameters = {};
23628
24468
  const headerParameters = {};
23629
24469
  if (this.configuration && this.configuration.apiKey) {
23630
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24470
+ {
24471
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24472
+ if (apiKeyValue) {
24473
+ headerParameters["X-API-Key"] = apiKeyValue;
24474
+ }
24475
+ }
23631
24476
  }
23632
24477
  const response = await this.request({
23633
24478
  path: `/emails/{id}/tracking`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23665,7 +24510,12 @@ var EmailsApi = class extends BaseAPI {
23665
24510
  }
23666
24511
  const headerParameters = {};
23667
24512
  if (this.configuration && this.configuration.apiKey) {
23668
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24513
+ {
24514
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24515
+ if (apiKeyValue) {
24516
+ headerParameters["X-API-Key"] = apiKeyValue;
24517
+ }
24518
+ }
23669
24519
  }
23670
24520
  const response = await this.request({
23671
24521
  path: `/emails`,
@@ -23698,7 +24548,12 @@ var EmailsApi = class extends BaseAPI {
23698
24548
  const headerParameters = {};
23699
24549
  headerParameters["Content-Type"] = "application/json";
23700
24550
  if (this.configuration && this.configuration.apiKey) {
23701
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24551
+ {
24552
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24553
+ if (apiKeyValue) {
24554
+ headerParameters["X-API-Key"] = apiKeyValue;
24555
+ }
24556
+ }
23702
24557
  }
23703
24558
  const response = await this.request({
23704
24559
  path: `/emails/batch`,
@@ -23732,7 +24587,12 @@ var EmailsApi = class extends BaseAPI {
23732
24587
  const headerParameters = {};
23733
24588
  headerParameters["Content-Type"] = "application/json";
23734
24589
  if (this.configuration && this.configuration.apiKey) {
23735
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24590
+ {
24591
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24592
+ if (apiKeyValue) {
24593
+ headerParameters["X-API-Key"] = apiKeyValue;
24594
+ }
24595
+ }
23736
24596
  }
23737
24597
  const response = await this.request({
23738
24598
  path: `/emails`,
@@ -23779,7 +24639,12 @@ var ExecutionsApi = class extends BaseAPI {
23779
24639
  const queryParameters = {};
23780
24640
  const headerParameters = {};
23781
24641
  if (this.configuration && this.configuration.apiKey) {
23782
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24642
+ {
24643
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24644
+ if (apiKeyValue) {
24645
+ headerParameters["X-API-Key"] = apiKeyValue;
24646
+ }
24647
+ }
23783
24648
  }
23784
24649
  const response = await this.request({
23785
24650
  path: `/executions/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23811,7 +24676,12 @@ var ExecutionsApi = class extends BaseAPI {
23811
24676
  const queryParameters = {};
23812
24677
  const headerParameters = {};
23813
24678
  if (this.configuration && this.configuration.apiKey) {
23814
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24679
+ {
24680
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24681
+ if (apiKeyValue) {
24682
+ headerParameters["X-API-Key"] = apiKeyValue;
24683
+ }
24684
+ }
23815
24685
  }
23816
24686
  const response = await this.request({
23817
24687
  path: `/executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23843,7 +24713,12 @@ var ExecutionsApi = class extends BaseAPI {
23843
24713
  const queryParameters = {};
23844
24714
  const headerParameters = {};
23845
24715
  if (this.configuration && this.configuration.apiKey) {
23846
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24716
+ {
24717
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24718
+ if (apiKeyValue) {
24719
+ headerParameters["X-API-Key"] = apiKeyValue;
24720
+ }
24721
+ }
23847
24722
  }
23848
24723
  const response = await this.request({
23849
24724
  path: `/executions/{id}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23885,7 +24760,12 @@ var InboundEmailApi = class extends BaseAPI {
23885
24760
  const queryParameters = {};
23886
24761
  const headerParameters = {};
23887
24762
  if (this.configuration && this.configuration.apiKey) {
23888
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24763
+ {
24764
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24765
+ if (apiKeyValue) {
24766
+ headerParameters["X-API-Key"] = apiKeyValue;
24767
+ }
24768
+ }
23889
24769
  }
23890
24770
  const response = await this.request({
23891
24771
  path: `/inbound-emails/{id}/attachments/{attachmentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters["attachmentId"]))),
@@ -23917,7 +24797,12 @@ var InboundEmailApi = class extends BaseAPI {
23917
24797
  const queryParameters = {};
23918
24798
  const headerParameters = {};
23919
24799
  if (this.configuration && this.configuration.apiKey) {
23920
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24800
+ {
24801
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24802
+ if (apiKeyValue) {
24803
+ headerParameters["X-API-Key"] = apiKeyValue;
24804
+ }
24805
+ }
23921
24806
  }
23922
24807
  const response = await this.request({
23923
24808
  path: `/inbound-emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23958,7 +24843,12 @@ var InboundEmailApi = class extends BaseAPI {
23958
24843
  }
23959
24844
  const headerParameters = {};
23960
24845
  if (this.configuration && this.configuration.apiKey) {
23961
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24846
+ {
24847
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24848
+ if (apiKeyValue) {
24849
+ headerParameters["X-API-Key"] = apiKeyValue;
24850
+ }
24851
+ }
23962
24852
  }
23963
24853
  const response = await this.request({
23964
24854
  path: `/inbound-emails`,
@@ -24002,7 +24892,12 @@ var InboxApi = class extends BaseAPI {
24002
24892
  const headerParameters = {};
24003
24893
  headerParameters["Content-Type"] = "application/json";
24004
24894
  if (this.configuration && this.configuration.apiKey) {
24005
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24895
+ {
24896
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24897
+ if (apiKeyValue) {
24898
+ headerParameters["X-API-Key"] = apiKeyValue;
24899
+ }
24900
+ }
24006
24901
  }
24007
24902
  const response = await this.request({
24008
24903
  path: `/inbox/{id}/archive`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24075,7 +24970,12 @@ var InboxApi = class extends BaseAPI {
24075
24970
  }
24076
24971
  const headerParameters = {};
24077
24972
  if (this.configuration && this.configuration.apiKey) {
24078
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
24973
+ {
24974
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
24975
+ if (apiKeyValue) {
24976
+ headerParameters["X-API-Key"] = apiKeyValue;
24977
+ }
24978
+ }
24079
24979
  }
24080
24980
  const response = await this.request({
24081
24981
  path: `/inbox/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24140,7 +25040,12 @@ var InboxApi = class extends BaseAPI {
24140
25040
  const headerParameters = {};
24141
25041
  headerParameters["Content-Type"] = "application/json";
24142
25042
  if (this.configuration && this.configuration.apiKey) {
24143
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25043
+ {
25044
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25045
+ if (apiKeyValue) {
25046
+ headerParameters["X-API-Key"] = apiKeyValue;
25047
+ }
25048
+ }
24144
25049
  }
24145
25050
  const response = await this.request({
24146
25051
  path: `/subscriber-inbox/token`,
@@ -24179,7 +25084,12 @@ var InboxApi = class extends BaseAPI {
24179
25084
  }
24180
25085
  const headerParameters = {};
24181
25086
  if (this.configuration && this.configuration.apiKey) {
24182
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25087
+ {
25088
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25089
+ if (apiKeyValue) {
25090
+ headerParameters["X-API-Key"] = apiKeyValue;
25091
+ }
25092
+ }
24183
25093
  }
24184
25094
  const response = await this.request({
24185
25095
  path: `/inbox/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24307,7 +25217,12 @@ var InboxApi = class extends BaseAPI {
24307
25217
  }
24308
25218
  const headerParameters = {};
24309
25219
  if (this.configuration && this.configuration.apiKey) {
24310
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25220
+ {
25221
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25222
+ if (apiKeyValue) {
25223
+ headerParameters["X-API-Key"] = apiKeyValue;
25224
+ }
25225
+ }
24311
25226
  }
24312
25227
  const response = await this.request({
24313
25228
  path: `/inbox/unread-count`,
@@ -24351,7 +25266,12 @@ var InboxApi = class extends BaseAPI {
24351
25266
  }
24352
25267
  const headerParameters = {};
24353
25268
  if (this.configuration && this.configuration.apiKey) {
24354
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25269
+ {
25270
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25271
+ if (apiKeyValue) {
25272
+ headerParameters["X-API-Key"] = apiKeyValue;
25273
+ }
25274
+ }
24355
25275
  }
24356
25276
  const response = await this.request({
24357
25277
  path: `/inbox/all`,
@@ -24401,7 +25321,12 @@ var InboxApi = class extends BaseAPI {
24401
25321
  }
24402
25322
  const headerParameters = {};
24403
25323
  if (this.configuration && this.configuration.apiKey) {
24404
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25324
+ {
25325
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25326
+ if (apiKeyValue) {
25327
+ headerParameters["X-API-Key"] = apiKeyValue;
25328
+ }
25329
+ }
24405
25330
  }
24406
25331
  const response = await this.request({
24407
25332
  path: `/inbox`,
@@ -24479,7 +25404,12 @@ var InboxApi = class extends BaseAPI {
24479
25404
  const headerParameters = {};
24480
25405
  headerParameters["Content-Type"] = "application/json";
24481
25406
  if (this.configuration && this.configuration.apiKey) {
24482
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25407
+ {
25408
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25409
+ if (apiKeyValue) {
25410
+ headerParameters["X-API-Key"] = apiKeyValue;
25411
+ }
25412
+ }
24483
25413
  }
24484
25414
  const response = await this.request({
24485
25415
  path: `/inbox/read-all`,
@@ -24543,7 +25473,12 @@ var InboxApi = class extends BaseAPI {
24543
25473
  const headerParameters = {};
24544
25474
  headerParameters["Content-Type"] = "application/json";
24545
25475
  if (this.configuration && this.configuration.apiKey) {
24546
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25476
+ {
25477
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25478
+ if (apiKeyValue) {
25479
+ headerParameters["X-API-Key"] = apiKeyValue;
25480
+ }
25481
+ }
24547
25482
  }
24548
25483
  const response = await this.request({
24549
25484
  path: `/inbox/{id}/read`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24611,7 +25546,12 @@ var InboxApi = class extends BaseAPI {
24611
25546
  const headerParameters = {};
24612
25547
  headerParameters["Content-Type"] = "application/json";
24613
25548
  if (this.configuration && this.configuration.apiKey) {
24614
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25549
+ {
25550
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25551
+ if (apiKeyValue) {
25552
+ headerParameters["X-API-Key"] = apiKeyValue;
25553
+ }
25554
+ }
24615
25555
  }
24616
25556
  const response = await this.request({
24617
25557
  path: `/inbox/send/batch`,
@@ -24645,7 +25585,12 @@ var InboxApi = class extends BaseAPI {
24645
25585
  const headerParameters = {};
24646
25586
  headerParameters["Content-Type"] = "application/json";
24647
25587
  if (this.configuration && this.configuration.apiKey) {
24648
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25588
+ {
25589
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25590
+ if (apiKeyValue) {
25591
+ headerParameters["X-API-Key"] = apiKeyValue;
25592
+ }
25593
+ }
24649
25594
  }
24650
25595
  const response = await this.request({
24651
25596
  path: `/inbox/send`,
@@ -24725,7 +25670,12 @@ var PushApi = class extends BaseAPI {
24725
25670
  const queryParameters = {};
24726
25671
  const headerParameters = {};
24727
25672
  if (this.configuration && this.configuration.apiKey) {
24728
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25673
+ {
25674
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25675
+ if (apiKeyValue) {
25676
+ headerParameters["X-API-Key"] = apiKeyValue;
25677
+ }
25678
+ }
24729
25679
  }
24730
25680
  const response = await this.request({
24731
25681
  path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24751,7 +25701,12 @@ var PushApi = class extends BaseAPI {
24751
25701
  const queryParameters = {};
24752
25702
  const headerParameters = {};
24753
25703
  if (this.configuration && this.configuration.apiKey) {
24754
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25704
+ {
25705
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25706
+ if (apiKeyValue) {
25707
+ headerParameters["X-API-Key"] = apiKeyValue;
25708
+ }
25709
+ }
24755
25710
  }
24756
25711
  const response = await this.request({
24757
25712
  path: `/push/stats`,
@@ -24783,7 +25738,12 @@ var PushApi = class extends BaseAPI {
24783
25738
  const queryParameters = {};
24784
25739
  const headerParameters = {};
24785
25740
  if (this.configuration && this.configuration.apiKey) {
24786
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25741
+ {
25742
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25743
+ if (apiKeyValue) {
25744
+ headerParameters["X-API-Key"] = apiKeyValue;
25745
+ }
25746
+ }
24787
25747
  }
24788
25748
  const response = await this.request({
24789
25749
  path: `/push/devices/{id}/topics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24824,7 +25784,12 @@ var PushApi = class extends BaseAPI {
24824
25784
  }
24825
25785
  const headerParameters = {};
24826
25786
  if (this.configuration && this.configuration.apiKey) {
24827
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25787
+ {
25788
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25789
+ if (apiKeyValue) {
25790
+ headerParameters["X-API-Key"] = apiKeyValue;
25791
+ }
25792
+ }
24828
25793
  }
24829
25794
  const response = await this.request({
24830
25795
  path: `/push`,
@@ -24862,7 +25827,12 @@ var PushApi = class extends BaseAPI {
24862
25827
  }
24863
25828
  const headerParameters = {};
24864
25829
  if (this.configuration && this.configuration.apiKey) {
24865
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25830
+ {
25831
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25832
+ if (apiKeyValue) {
25833
+ headerParameters["X-API-Key"] = apiKeyValue;
25834
+ }
25835
+ }
24866
25836
  }
24867
25837
  const response = await this.request({
24868
25838
  path: `/push/topics/{key}/devices`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -24895,7 +25865,12 @@ var PushApi = class extends BaseAPI {
24895
25865
  const headerParameters = {};
24896
25866
  headerParameters["Content-Type"] = "application/json";
24897
25867
  if (this.configuration && this.configuration.apiKey) {
24898
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25868
+ {
25869
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25870
+ if (apiKeyValue) {
25871
+ headerParameters["X-API-Key"] = apiKeyValue;
25872
+ }
25873
+ }
24899
25874
  }
24900
25875
  const response = await this.request({
24901
25876
  path: `/push`,
@@ -24935,7 +25910,12 @@ var PushApi = class extends BaseAPI {
24935
25910
  const headerParameters = {};
24936
25911
  headerParameters["Content-Type"] = "application/json";
24937
25912
  if (this.configuration && this.configuration.apiKey) {
24938
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25913
+ {
25914
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25915
+ if (apiKeyValue) {
25916
+ headerParameters["X-API-Key"] = apiKeyValue;
25917
+ }
25918
+ }
24939
25919
  }
24940
25920
  const response = await this.request({
24941
25921
  path: `/push/topics/{key}/send`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -24975,7 +25955,12 @@ var PushApi = class extends BaseAPI {
24975
25955
  const headerParameters = {};
24976
25956
  headerParameters["Content-Type"] = "application/json";
24977
25957
  if (this.configuration && this.configuration.apiKey) {
24978
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25958
+ {
25959
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
25960
+ if (apiKeyValue) {
25961
+ headerParameters["X-API-Key"] = apiKeyValue;
25962
+ }
25963
+ }
24979
25964
  }
24980
25965
  const response = await this.request({
24981
25966
  path: `/push/topics/{key}/subscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -25015,7 +26000,12 @@ var PushApi = class extends BaseAPI {
25015
26000
  const headerParameters = {};
25016
26001
  headerParameters["Content-Type"] = "application/json";
25017
26002
  if (this.configuration && this.configuration.apiKey) {
25018
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26003
+ {
26004
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26005
+ if (apiKeyValue) {
26006
+ headerParameters["X-API-Key"] = apiKeyValue;
26007
+ }
26008
+ }
25019
26009
  }
25020
26010
  const response = await this.request({
25021
26011
  path: `/push/topics/{key}/unsubscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -25053,7 +26043,12 @@ var SMSApi = class extends BaseAPI {
25053
26043
  const queryParameters = {};
25054
26044
  const headerParameters = {};
25055
26045
  if (this.configuration && this.configuration.apiKey) {
25056
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26046
+ {
26047
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26048
+ if (apiKeyValue) {
26049
+ headerParameters["X-API-Key"] = apiKeyValue;
26050
+ }
26051
+ }
25057
26052
  }
25058
26053
  const response = await this.request({
25059
26054
  path: `/sms/config`,
@@ -25085,7 +26080,12 @@ var SMSApi = class extends BaseAPI {
25085
26080
  const queryParameters = {};
25086
26081
  const headerParameters = {};
25087
26082
  if (this.configuration && this.configuration.apiKey) {
25088
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26083
+ {
26084
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26085
+ if (apiKeyValue) {
26086
+ headerParameters["X-API-Key"] = apiKeyValue;
26087
+ }
26088
+ }
25089
26089
  }
25090
26090
  const response = await this.request({
25091
26091
  path: `/sms/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25111,7 +26111,12 @@ var SMSApi = class extends BaseAPI {
25111
26111
  const queryParameters = {};
25112
26112
  const headerParameters = {};
25113
26113
  if (this.configuration && this.configuration.apiKey) {
25114
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26114
+ {
26115
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26116
+ if (apiKeyValue) {
26117
+ headerParameters["X-API-Key"] = apiKeyValue;
26118
+ }
26119
+ }
25115
26120
  }
25116
26121
  const response = await this.request({
25117
26122
  path: `/sms/config`,
@@ -25137,7 +26142,12 @@ var SMSApi = class extends BaseAPI {
25137
26142
  const queryParameters = {};
25138
26143
  const headerParameters = {};
25139
26144
  if (this.configuration && this.configuration.apiKey) {
25140
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26145
+ {
26146
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26147
+ if (apiKeyValue) {
26148
+ headerParameters["X-API-Key"] = apiKeyValue;
26149
+ }
26150
+ }
25141
26151
  }
25142
26152
  const response = await this.request({
25143
26153
  path: `/sms/inbound-webhook`,
@@ -25174,7 +26184,12 @@ var SMSApi = class extends BaseAPI {
25174
26184
  }
25175
26185
  const headerParameters = {};
25176
26186
  if (this.configuration && this.configuration.apiKey) {
25177
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26187
+ {
26188
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26189
+ if (apiKeyValue) {
26190
+ headerParameters["X-API-Key"] = apiKeyValue;
26191
+ }
26192
+ }
25178
26193
  }
25179
26194
  const response = await this.request({
25180
26195
  path: `/sms`,
@@ -25207,7 +26222,12 @@ var SMSApi = class extends BaseAPI {
25207
26222
  const headerParameters = {};
25208
26223
  headerParameters["Content-Type"] = "application/json";
25209
26224
  if (this.configuration && this.configuration.apiKey) {
25210
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26225
+ {
26226
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26227
+ if (apiKeyValue) {
26228
+ headerParameters["X-API-Key"] = apiKeyValue;
26229
+ }
26230
+ }
25211
26231
  }
25212
26232
  const response = await this.request({
25213
26233
  path: `/sms/batch`,
@@ -25241,7 +26261,12 @@ var SMSApi = class extends BaseAPI {
25241
26261
  const headerParameters = {};
25242
26262
  headerParameters["Content-Type"] = "application/json";
25243
26263
  if (this.configuration && this.configuration.apiKey) {
25244
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26264
+ {
26265
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26266
+ if (apiKeyValue) {
26267
+ headerParameters["X-API-Key"] = apiKeyValue;
26268
+ }
26269
+ }
25245
26270
  }
25246
26271
  const response = await this.request({
25247
26272
  path: `/sms`,
@@ -25275,7 +26300,12 @@ var SMSApi = class extends BaseAPI {
25275
26300
  const headerParameters = {};
25276
26301
  headerParameters["Content-Type"] = "application/json";
25277
26302
  if (this.configuration && this.configuration.apiKey) {
25278
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26303
+ {
26304
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26305
+ if (apiKeyValue) {
26306
+ headerParameters["X-API-Key"] = apiKeyValue;
26307
+ }
26308
+ }
25279
26309
  }
25280
26310
  const response = await this.request({
25281
26311
  path: `/sms/test`,
@@ -25309,7 +26339,12 @@ var SMSApi = class extends BaseAPI {
25309
26339
  const headerParameters = {};
25310
26340
  headerParameters["Content-Type"] = "application/json";
25311
26341
  if (this.configuration && this.configuration.apiKey) {
25312
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26342
+ {
26343
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26344
+ if (apiKeyValue) {
26345
+ headerParameters["X-API-Key"] = apiKeyValue;
26346
+ }
26347
+ }
25313
26348
  }
25314
26349
  const response = await this.request({
25315
26350
  path: `/sms/config`,
@@ -25336,7 +26371,12 @@ var SMSApi = class extends BaseAPI {
25336
26371
  const queryParameters = {};
25337
26372
  const headerParameters = {};
25338
26373
  if (this.configuration && this.configuration.apiKey) {
25339
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26374
+ {
26375
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26376
+ if (apiKeyValue) {
26377
+ headerParameters["X-API-Key"] = apiKeyValue;
26378
+ }
26379
+ }
25340
26380
  }
25341
26381
  const response = await this.request({
25342
26382
  path: `/sms/config/verify`,
@@ -25380,7 +26420,12 @@ var SlackApi = class extends BaseAPI {
25380
26420
  const queryParameters = {};
25381
26421
  const headerParameters = {};
25382
26422
  if (this.configuration && this.configuration.apiKey) {
25383
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26423
+ {
26424
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26425
+ if (apiKeyValue) {
26426
+ headerParameters["X-API-Key"] = apiKeyValue;
26427
+ }
26428
+ }
25384
26429
  }
25385
26430
  const response = await this.request({
25386
26431
  path: `/slack/messages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25421,7 +26466,12 @@ var SlackApi = class extends BaseAPI {
25421
26466
  }
25422
26467
  const headerParameters = {};
25423
26468
  if (this.configuration && this.configuration.apiKey) {
25424
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26469
+ {
26470
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26471
+ if (apiKeyValue) {
26472
+ headerParameters["X-API-Key"] = apiKeyValue;
26473
+ }
26474
+ }
25425
26475
  }
25426
26476
  const response = await this.request({
25427
26477
  path: `/slack/messages`,
@@ -25454,7 +26504,12 @@ var SlackApi = class extends BaseAPI {
25454
26504
  const headerParameters = {};
25455
26505
  headerParameters["Content-Type"] = "application/json";
25456
26506
  if (this.configuration && this.configuration.apiKey) {
25457
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26507
+ {
26508
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26509
+ if (apiKeyValue) {
26510
+ headerParameters["X-API-Key"] = apiKeyValue;
26511
+ }
26512
+ }
25458
26513
  }
25459
26514
  const response = await this.request({
25460
26515
  path: `/slack/send`,
@@ -25498,7 +26553,12 @@ var SubscribersApi = class extends BaseAPI {
25498
26553
  const headerParameters = {};
25499
26554
  headerParameters["Content-Type"] = "application/json";
25500
26555
  if (this.configuration && this.configuration.apiKey) {
25501
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26556
+ {
26557
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26558
+ if (apiKeyValue) {
26559
+ headerParameters["X-API-Key"] = apiKeyValue;
26560
+ }
26561
+ }
25502
26562
  }
25503
26563
  const response = await this.request({
25504
26564
  path: `/subscribers/categories`,
@@ -25531,7 +26591,12 @@ var SubscribersApi = class extends BaseAPI {
25531
26591
  const headerParameters = {};
25532
26592
  headerParameters["Content-Type"] = "application/json";
25533
26593
  if (this.configuration && this.configuration.apiKey) {
25534
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26594
+ {
26595
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26596
+ if (apiKeyValue) {
26597
+ headerParameters["X-API-Key"] = apiKeyValue;
26598
+ }
26599
+ }
25535
26600
  }
25536
26601
  const response = await this.request({
25537
26602
  path: `/subscribers`,
@@ -25563,7 +26628,12 @@ var SubscribersApi = class extends BaseAPI {
25563
26628
  const queryParameters = {};
25564
26629
  const headerParameters = {};
25565
26630
  if (this.configuration && this.configuration.apiKey) {
25566
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26631
+ {
26632
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26633
+ if (apiKeyValue) {
26634
+ headerParameters["X-API-Key"] = apiKeyValue;
26635
+ }
26636
+ }
25567
26637
  }
25568
26638
  const response = await this.request({
25569
26639
  path: `/subscribers/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25593,7 +26663,12 @@ var SubscribersApi = class extends BaseAPI {
25593
26663
  const queryParameters = {};
25594
26664
  const headerParameters = {};
25595
26665
  if (this.configuration && this.configuration.apiKey) {
25596
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26666
+ {
26667
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26668
+ if (apiKeyValue) {
26669
+ headerParameters["X-API-Key"] = apiKeyValue;
26670
+ }
26671
+ }
25597
26672
  }
25598
26673
  const response = await this.request({
25599
26674
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25623,7 +26698,12 @@ var SubscribersApi = class extends BaseAPI {
25623
26698
  const queryParameters = {};
25624
26699
  const headerParameters = {};
25625
26700
  if (this.configuration && this.configuration.apiKey) {
25626
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26701
+ {
26702
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26703
+ if (apiKeyValue) {
26704
+ headerParameters["X-API-Key"] = apiKeyValue;
26705
+ }
26706
+ }
25627
26707
  }
25628
26708
  const response = await this.request({
25629
26709
  path: `/subscribers/categories/{idOrSlug}`.replace(`{${"idOrSlug"}}`, encodeURIComponent(String(requestParameters["idOrSlug"]))),
@@ -25653,7 +26733,12 @@ var SubscribersApi = class extends BaseAPI {
25653
26733
  const queryParameters = {};
25654
26734
  const headerParameters = {};
25655
26735
  if (this.configuration && this.configuration.apiKey) {
25656
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26736
+ {
26737
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26738
+ if (apiKeyValue) {
26739
+ headerParameters["X-API-Key"] = apiKeyValue;
26740
+ }
26741
+ }
25657
26742
  }
25658
26743
  const response = await this.request({
25659
26744
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25683,7 +26768,12 @@ var SubscribersApi = class extends BaseAPI {
25683
26768
  const queryParameters = {};
25684
26769
  const headerParameters = {};
25685
26770
  if (this.configuration && this.configuration.apiKey) {
25686
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26771
+ {
26772
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26773
+ if (apiKeyValue) {
26774
+ headerParameters["X-API-Key"] = apiKeyValue;
26775
+ }
26776
+ }
25687
26777
  }
25688
26778
  const response = await this.request({
25689
26779
  path: `/subscribers/by-external-id/{externalId}`.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters["externalId"]))),
@@ -25713,7 +26803,12 @@ var SubscribersApi = class extends BaseAPI {
25713
26803
  const queryParameters = {};
25714
26804
  const headerParameters = {};
25715
26805
  if (this.configuration && this.configuration.apiKey) {
25716
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26806
+ {
26807
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26808
+ if (apiKeyValue) {
26809
+ headerParameters["X-API-Key"] = apiKeyValue;
26810
+ }
26811
+ }
25717
26812
  }
25718
26813
  const response = await this.request({
25719
26814
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25750,7 +26845,12 @@ var SubscribersApi = class extends BaseAPI {
25750
26845
  }
25751
26846
  const headerParameters = {};
25752
26847
  if (this.configuration && this.configuration.apiKey) {
25753
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26848
+ {
26849
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26850
+ if (apiKeyValue) {
26851
+ headerParameters["X-API-Key"] = apiKeyValue;
26852
+ }
26853
+ }
25754
26854
  }
25755
26855
  const response = await this.request({
25756
26856
  path: `/subscribers/{id}/consent/history`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25784,7 +26884,12 @@ var SubscribersApi = class extends BaseAPI {
25784
26884
  }
25785
26885
  const headerParameters = {};
25786
26886
  if (this.configuration && this.configuration.apiKey) {
25787
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26887
+ {
26888
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26889
+ if (apiKeyValue) {
26890
+ headerParameters["X-API-Key"] = apiKeyValue;
26891
+ }
26892
+ }
25788
26893
  }
25789
26894
  const response = await this.request({
25790
26895
  path: `/subscribers/{id}/preferences`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25814,7 +26919,12 @@ var SubscribersApi = class extends BaseAPI {
25814
26919
  const queryParameters = {};
25815
26920
  const headerParameters = {};
25816
26921
  if (this.configuration && this.configuration.apiKey) {
25817
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26922
+ {
26923
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26924
+ if (apiKeyValue) {
26925
+ headerParameters["X-API-Key"] = apiKeyValue;
26926
+ }
26927
+ }
25818
26928
  }
25819
26929
  const response = await this.request({
25820
26930
  path: `/subscribers/{id}/unsubscribes`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25838,7 +26948,12 @@ var SubscribersApi = class extends BaseAPI {
25838
26948
  const queryParameters = {};
25839
26949
  const headerParameters = {};
25840
26950
  if (this.configuration && this.configuration.apiKey) {
25841
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26951
+ {
26952
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26953
+ if (apiKeyValue) {
26954
+ headerParameters["X-API-Key"] = apiKeyValue;
26955
+ }
26956
+ }
25842
26957
  }
25843
26958
  const response = await this.request({
25844
26959
  path: `/subscribers/categories`,
@@ -25874,7 +26989,12 @@ var SubscribersApi = class extends BaseAPI {
25874
26989
  }
25875
26990
  const headerParameters = {};
25876
26991
  if (this.configuration && this.configuration.apiKey) {
25877
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26992
+ {
26993
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
26994
+ if (apiKeyValue) {
26995
+ headerParameters["X-API-Key"] = apiKeyValue;
26996
+ }
26997
+ }
25878
26998
  }
25879
26999
  const response = await this.request({
25880
27000
  path: `/subscribers`,
@@ -25911,7 +27031,12 @@ var SubscribersApi = class extends BaseAPI {
25911
27031
  const headerParameters = {};
25912
27032
  headerParameters["Content-Type"] = "application/json";
25913
27033
  if (this.configuration && this.configuration.apiKey) {
25914
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27034
+ {
27035
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27036
+ if (apiKeyValue) {
27037
+ headerParameters["X-API-Key"] = apiKeyValue;
27038
+ }
27039
+ }
25915
27040
  }
25916
27041
  const response = await this.request({
25917
27042
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25943,7 +27068,12 @@ var SubscribersApi = class extends BaseAPI {
25943
27068
  const headerParameters = {};
25944
27069
  headerParameters["Content-Type"] = "application/json";
25945
27070
  if (this.configuration && this.configuration.apiKey) {
25946
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27071
+ {
27072
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27073
+ if (apiKeyValue) {
27074
+ headerParameters["X-API-Key"] = apiKeyValue;
27075
+ }
27076
+ }
25947
27077
  }
25948
27078
  const response = await this.request({
25949
27079
  path: `/subscribers/{id}/resubscribe`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25982,7 +27112,12 @@ var SubscribersApi = class extends BaseAPI {
25982
27112
  const headerParameters = {};
25983
27113
  headerParameters["Content-Type"] = "application/json";
25984
27114
  if (this.configuration && this.configuration.apiKey) {
25985
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27115
+ {
27116
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27117
+ if (apiKeyValue) {
27118
+ headerParameters["X-API-Key"] = apiKeyValue;
27119
+ }
27120
+ }
25986
27121
  }
25987
27122
  const response = await this.request({
25988
27123
  path: `/subscribers/{id}/preferences`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26015,7 +27150,12 @@ var SubscribersApi = class extends BaseAPI {
26015
27150
  const headerParameters = {};
26016
27151
  headerParameters["Content-Type"] = "application/json";
26017
27152
  if (this.configuration && this.configuration.apiKey) {
26018
- 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
+ }
26019
27159
  }
26020
27160
  const response = await this.request({
26021
27161
  path: `/subscribers/{id}/unsubscribe`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26053,7 +27193,12 @@ var SubscribersApi = class extends BaseAPI {
26053
27193
  const headerParameters = {};
26054
27194
  headerParameters["Content-Type"] = "application/json";
26055
27195
  if (this.configuration && this.configuration.apiKey) {
26056
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27196
+ {
27197
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27198
+ if (apiKeyValue) {
27199
+ headerParameters["X-API-Key"] = apiKeyValue;
27200
+ }
27201
+ }
26057
27202
  }
26058
27203
  const response = await this.request({
26059
27204
  path: `/subscribers/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26091,7 +27236,12 @@ var SubscribersApi = class extends BaseAPI {
26091
27236
  const headerParameters = {};
26092
27237
  headerParameters["Content-Type"] = "application/json";
26093
27238
  if (this.configuration && this.configuration.apiKey) {
26094
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27239
+ {
27240
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27241
+ if (apiKeyValue) {
27242
+ headerParameters["X-API-Key"] = apiKeyValue;
27243
+ }
27244
+ }
26095
27245
  }
26096
27246
  const response = await this.request({
26097
27247
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26124,7 +27274,12 @@ var SubscribersApi = class extends BaseAPI {
26124
27274
  const headerParameters = {};
26125
27275
  headerParameters["Content-Type"] = "application/json";
26126
27276
  if (this.configuration && this.configuration.apiKey) {
26127
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27277
+ {
27278
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27279
+ if (apiKeyValue) {
27280
+ headerParameters["X-API-Key"] = apiKeyValue;
27281
+ }
27282
+ }
26128
27283
  }
26129
27284
  const response = await this.request({
26130
27285
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26167,7 +27322,12 @@ var TemplatesApi = class extends BaseAPI {
26167
27322
  const headerParameters = {};
26168
27323
  headerParameters["Content-Type"] = "application/json";
26169
27324
  if (this.configuration && this.configuration.apiKey) {
26170
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27325
+ {
27326
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27327
+ if (apiKeyValue) {
27328
+ headerParameters["X-API-Key"] = apiKeyValue;
27329
+ }
27330
+ }
26171
27331
  }
26172
27332
  const response = await this.request({
26173
27333
  path: `/templates`,
@@ -26200,7 +27360,12 @@ var TemplatesApi = class extends BaseAPI {
26200
27360
  const queryParameters = {};
26201
27361
  const headerParameters = {};
26202
27362
  if (this.configuration && this.configuration.apiKey) {
26203
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27363
+ {
27364
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27365
+ if (apiKeyValue) {
27366
+ headerParameters["X-API-Key"] = apiKeyValue;
27367
+ }
27368
+ }
26204
27369
  }
26205
27370
  const response = await this.request({
26206
27371
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26232,7 +27397,12 @@ var TemplatesApi = class extends BaseAPI {
26232
27397
  const queryParameters = {};
26233
27398
  const headerParameters = {};
26234
27399
  if (this.configuration && this.configuration.apiKey) {
26235
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27400
+ {
27401
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27402
+ if (apiKeyValue) {
27403
+ headerParameters["X-API-Key"] = apiKeyValue;
27404
+ }
27405
+ }
26236
27406
  }
26237
27407
  const response = await this.request({
26238
27408
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26264,7 +27434,12 @@ var TemplatesApi = class extends BaseAPI {
26264
27434
  }
26265
27435
  const headerParameters = {};
26266
27436
  if (this.configuration && this.configuration.apiKey) {
26267
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27437
+ {
27438
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27439
+ if (apiKeyValue) {
27440
+ headerParameters["X-API-Key"] = apiKeyValue;
27441
+ }
27442
+ }
26268
27443
  }
26269
27444
  const response = await this.request({
26270
27445
  path: `/templates`,
@@ -26303,7 +27478,12 @@ var TemplatesApi = class extends BaseAPI {
26303
27478
  const headerParameters = {};
26304
27479
  headerParameters["Content-Type"] = "application/json";
26305
27480
  if (this.configuration && this.configuration.apiKey) {
26306
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27481
+ {
27482
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27483
+ if (apiKeyValue) {
27484
+ headerParameters["X-API-Key"] = apiKeyValue;
27485
+ }
27486
+ }
26307
27487
  }
26308
27488
  const response = await this.request({
26309
27489
  path: `/templates/{id}/render`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26387,7 +27567,12 @@ var TemplatesApi = class extends BaseAPI {
26387
27567
  const headerParameters = {};
26388
27568
  headerParameters["Content-Type"] = "application/json";
26389
27569
  if (this.configuration && this.configuration.apiKey) {
26390
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27570
+ {
27571
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27572
+ if (apiKeyValue) {
27573
+ headerParameters["X-API-Key"] = apiKeyValue;
27574
+ }
27575
+ }
26391
27576
  }
26392
27577
  const response = await this.request({
26393
27578
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26431,7 +27616,12 @@ var TopicsApi = class extends BaseAPI {
26431
27616
  const headerParameters = {};
26432
27617
  headerParameters["Content-Type"] = "application/json";
26433
27618
  if (this.configuration && this.configuration.apiKey) {
26434
- 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
+ }
26435
27625
  }
26436
27626
  const response = await this.request({
26437
27627
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26465,7 +27655,12 @@ var TopicsApi = class extends BaseAPI {
26465
27655
  const headerParameters = {};
26466
27656
  headerParameters["Content-Type"] = "application/json";
26467
27657
  if (this.configuration && this.configuration.apiKey) {
26468
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27658
+ {
27659
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27660
+ if (apiKeyValue) {
27661
+ headerParameters["X-API-Key"] = apiKeyValue;
27662
+ }
27663
+ }
26469
27664
  }
26470
27665
  const response = await this.request({
26471
27666
  path: `/topics`,
@@ -26498,7 +27693,12 @@ var TopicsApi = class extends BaseAPI {
26498
27693
  const queryParameters = {};
26499
27694
  const headerParameters = {};
26500
27695
  if (this.configuration && this.configuration.apiKey) {
26501
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27696
+ {
27697
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27698
+ if (apiKeyValue) {
27699
+ headerParameters["X-API-Key"] = apiKeyValue;
27700
+ }
27701
+ }
26502
27702
  }
26503
27703
  const response = await this.request({
26504
27704
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26530,7 +27730,12 @@ var TopicsApi = class extends BaseAPI {
26530
27730
  const queryParameters = {};
26531
27731
  const headerParameters = {};
26532
27732
  if (this.configuration && this.configuration.apiKey) {
26533
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27733
+ {
27734
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27735
+ if (apiKeyValue) {
27736
+ headerParameters["X-API-Key"] = apiKeyValue;
27737
+ }
27738
+ }
26534
27739
  }
26535
27740
  const response = await this.request({
26536
27741
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26556,7 +27761,12 @@ var TopicsApi = class extends BaseAPI {
26556
27761
  const queryParameters = {};
26557
27762
  const headerParameters = {};
26558
27763
  if (this.configuration && this.configuration.apiKey) {
26559
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27764
+ {
27765
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27766
+ if (apiKeyValue) {
27767
+ headerParameters["X-API-Key"] = apiKeyValue;
27768
+ }
27769
+ }
26560
27770
  }
26561
27771
  const response = await this.request({
26562
27772
  path: `/topics/stats`,
@@ -26594,7 +27804,12 @@ var TopicsApi = class extends BaseAPI {
26594
27804
  }
26595
27805
  const headerParameters = {};
26596
27806
  if (this.configuration && this.configuration.apiKey) {
26597
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27807
+ {
27808
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27809
+ if (apiKeyValue) {
27810
+ headerParameters["X-API-Key"] = apiKeyValue;
27811
+ }
27812
+ }
26598
27813
  }
26599
27814
  const response = await this.request({
26600
27815
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26629,7 +27844,12 @@ var TopicsApi = class extends BaseAPI {
26629
27844
  }
26630
27845
  const headerParameters = {};
26631
27846
  if (this.configuration && this.configuration.apiKey) {
26632
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27847
+ {
27848
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27849
+ if (apiKeyValue) {
27850
+ headerParameters["X-API-Key"] = apiKeyValue;
27851
+ }
27852
+ }
26633
27853
  }
26634
27854
  const response = await this.request({
26635
27855
  path: `/topics`,
@@ -26668,7 +27888,12 @@ var TopicsApi = class extends BaseAPI {
26668
27888
  const headerParameters = {};
26669
27889
  headerParameters["Content-Type"] = "application/json";
26670
27890
  if (this.configuration && this.configuration.apiKey) {
26671
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27891
+ {
27892
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27893
+ if (apiKeyValue) {
27894
+ headerParameters["X-API-Key"] = apiKeyValue;
27895
+ }
27896
+ }
26672
27897
  }
26673
27898
  const response = await this.request({
26674
27899
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26708,7 +27933,12 @@ var TopicsApi = class extends BaseAPI {
26708
27933
  const headerParameters = {};
26709
27934
  headerParameters["Content-Type"] = "application/json";
26710
27935
  if (this.configuration && this.configuration.apiKey) {
26711
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
27936
+ {
27937
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
27938
+ if (apiKeyValue) {
27939
+ headerParameters["X-API-Key"] = apiKeyValue;
27940
+ }
27941
+ }
26712
27942
  }
26713
27943
  const response = await this.request({
26714
27944
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26746,7 +27976,12 @@ var UtilityApi = class extends BaseAPI {
26746
27976
  const headerParameters = {};
26747
27977
  headerParameters["Content-Type"] = "application/json";
26748
27978
  if (this.configuration && this.configuration.apiKey) {
26749
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
27979
+ {
27980
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
27981
+ if (apiKeyValue) {
27982
+ headerParameters["X-Application-Key"] = apiKeyValue;
27983
+ }
27984
+ }
26750
27985
  }
26751
27986
  const response = await this.request({
26752
27987
  path: `/auth/password-strength`,
@@ -26773,7 +28008,12 @@ var UtilityApi = class extends BaseAPI {
26773
28008
  const queryParameters = {};
26774
28009
  const headerParameters = {};
26775
28010
  if (this.configuration && this.configuration.apiKey) {
26776
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
28011
+ {
28012
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key");
28013
+ if (apiKeyValue) {
28014
+ headerParameters["X-Application-Key"] = apiKeyValue;
28015
+ }
28016
+ }
26777
28017
  }
26778
28018
  const response = await this.request({
26779
28019
  path: `/auth/password-requirements`,
@@ -26810,7 +28050,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26810
28050
  const headerParameters = {};
26811
28051
  headerParameters["Content-Type"] = "application/json";
26812
28052
  if (this.configuration && this.configuration.apiKey) {
26813
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28053
+ {
28054
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28055
+ if (apiKeyValue) {
28056
+ headerParameters["X-API-Key"] = apiKeyValue;
28057
+ }
28058
+ }
26814
28059
  }
26815
28060
  const response = await this.request({
26816
28061
  path: `/v1/waas/applications`,
@@ -26843,7 +28088,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26843
28088
  const queryParameters = {};
26844
28089
  const headerParameters = {};
26845
28090
  if (this.configuration && this.configuration.apiKey) {
26846
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28091
+ {
28092
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28093
+ if (apiKeyValue) {
28094
+ headerParameters["X-API-Key"] = apiKeyValue;
28095
+ }
28096
+ }
26847
28097
  }
26848
28098
  const response = await this.request({
26849
28099
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -26874,7 +28124,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26874
28124
  const queryParameters = {};
26875
28125
  const headerParameters = {};
26876
28126
  if (this.configuration && this.configuration.apiKey) {
26877
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28127
+ {
28128
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28129
+ if (apiKeyValue) {
28130
+ headerParameters["X-API-Key"] = apiKeyValue;
28131
+ }
28132
+ }
26878
28133
  }
26879
28134
  const response = await this.request({
26880
28135
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -26906,7 +28161,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26906
28161
  const queryParameters = {};
26907
28162
  const headerParameters = {};
26908
28163
  if (this.configuration && this.configuration.apiKey) {
26909
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28164
+ {
28165
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28166
+ if (apiKeyValue) {
28167
+ headerParameters["X-API-Key"] = apiKeyValue;
28168
+ }
28169
+ }
26910
28170
  }
26911
28171
  const response = await this.request({
26912
28172
  path: `/v1/waas/applications/{appId}/usage`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -26941,7 +28201,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26941
28201
  }
26942
28202
  const headerParameters = {};
26943
28203
  if (this.configuration && this.configuration.apiKey) {
26944
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28204
+ {
28205
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28206
+ if (apiKeyValue) {
28207
+ headerParameters["X-API-Key"] = apiKeyValue;
28208
+ }
28209
+ }
26945
28210
  }
26946
28211
  const response = await this.request({
26947
28212
  path: `/v1/waas/applications`,
@@ -26980,7 +28245,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26980
28245
  const headerParameters = {};
26981
28246
  headerParameters["Content-Type"] = "application/json";
26982
28247
  if (this.configuration && this.configuration.apiKey) {
26983
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28248
+ {
28249
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28250
+ if (apiKeyValue) {
28251
+ headerParameters["X-API-Key"] = apiKeyValue;
28252
+ }
28253
+ }
26984
28254
  }
26985
28255
  const response = await this.request({
26986
28256
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27028,7 +28298,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27028
28298
  const queryParameters = {};
27029
28299
  const headerParameters = {};
27030
28300
  if (this.configuration && this.configuration.apiKey) {
27031
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28301
+ {
28302
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28303
+ if (apiKeyValue) {
28304
+ headerParameters["X-API-Key"] = apiKeyValue;
28305
+ }
28306
+ }
27032
28307
  }
27033
28308
  const response = await this.request({
27034
28309
  path: `/v1/waas/applications/{appId}/deliveries/{deliveryId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -27075,7 +28350,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27075
28350
  }
27076
28351
  const headerParameters = {};
27077
28352
  if (this.configuration && this.configuration.apiKey) {
27078
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28353
+ {
28354
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28355
+ if (apiKeyValue) {
28356
+ headerParameters["X-API-Key"] = apiKeyValue;
28357
+ }
28358
+ }
27079
28359
  }
27080
28360
  const response = await this.request({
27081
28361
  path: `/v1/waas/applications/{appId}/deliveries`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27122,7 +28402,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27122
28402
  }
27123
28403
  const headerParameters = {};
27124
28404
  if (this.configuration && this.configuration.apiKey) {
27125
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28405
+ {
28406
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28407
+ if (apiKeyValue) {
28408
+ headerParameters["X-API-Key"] = apiKeyValue;
28409
+ }
28410
+ }
27126
28411
  }
27127
28412
  const response = await this.request({
27128
28413
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/deliveries`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27160,7 +28445,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27160
28445
  const queryParameters = {};
27161
28446
  const headerParameters = {};
27162
28447
  if (this.configuration && this.configuration.apiKey) {
27163
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28448
+ {
28449
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28450
+ if (apiKeyValue) {
28451
+ headerParameters["X-API-Key"] = apiKeyValue;
28452
+ }
28453
+ }
27164
28454
  }
27165
28455
  const response = await this.request({
27166
28456
  path: `/v1/waas/applications/{appId}/deliveries/{deliveryId}/retry`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -27210,7 +28500,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27210
28500
  const queryParameters = {};
27211
28501
  const headerParameters = {};
27212
28502
  if (this.configuration && this.configuration.apiKey) {
27213
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28503
+ {
28504
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28505
+ if (apiKeyValue) {
28506
+ headerParameters["X-API-Key"] = apiKeyValue;
28507
+ }
28508
+ }
27214
28509
  }
27215
28510
  const response = await this.request({
27216
28511
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/circuit/close`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27249,7 +28544,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27249
28544
  const headerParameters = {};
27250
28545
  headerParameters["Content-Type"] = "application/json";
27251
28546
  if (this.configuration && this.configuration.apiKey) {
27252
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28547
+ {
28548
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28549
+ if (apiKeyValue) {
28550
+ headerParameters["X-API-Key"] = apiKeyValue;
28551
+ }
28552
+ }
27253
28553
  }
27254
28554
  const response = await this.request({
27255
28555
  path: `/v1/waas/applications/{appId}/endpoints`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27288,7 +28588,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27288
28588
  const queryParameters = {};
27289
28589
  const headerParameters = {};
27290
28590
  if (this.configuration && this.configuration.apiKey) {
27291
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28591
+ {
28592
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28593
+ if (apiKeyValue) {
28594
+ headerParameters["X-API-Key"] = apiKeyValue;
28595
+ }
28596
+ }
27292
28597
  }
27293
28598
  const response = await this.request({
27294
28599
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27324,7 +28629,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27324
28629
  const queryParameters = {};
27325
28630
  const headerParameters = {};
27326
28631
  if (this.configuration && this.configuration.apiKey) {
27327
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28632
+ {
28633
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28634
+ if (apiKeyValue) {
28635
+ headerParameters["X-API-Key"] = apiKeyValue;
28636
+ }
28637
+ }
27328
28638
  }
27329
28639
  const response = await this.request({
27330
28640
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27361,7 +28671,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27361
28671
  const queryParameters = {};
27362
28672
  const headerParameters = {};
27363
28673
  if (this.configuration && this.configuration.apiKey) {
27364
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28674
+ {
28675
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28676
+ if (apiKeyValue) {
28677
+ headerParameters["X-API-Key"] = apiKeyValue;
28678
+ }
28679
+ }
27365
28680
  }
27366
28681
  const response = await this.request({
27367
28682
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/circuit`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27399,7 +28714,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27399
28714
  const queryParameters = {};
27400
28715
  const headerParameters = {};
27401
28716
  if (this.configuration && this.configuration.apiKey) {
27402
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28717
+ {
28718
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28719
+ if (apiKeyValue) {
28720
+ headerParameters["X-API-Key"] = apiKeyValue;
28721
+ }
28722
+ }
27403
28723
  }
27404
28724
  const response = await this.request({
27405
28725
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/metrics`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27443,7 +28763,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27443
28763
  }
27444
28764
  const headerParameters = {};
27445
28765
  if (this.configuration && this.configuration.apiKey) {
27446
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28766
+ {
28767
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28768
+ if (apiKeyValue) {
28769
+ headerParameters["X-API-Key"] = apiKeyValue;
28770
+ }
28771
+ }
27447
28772
  }
27448
28773
  const response = await this.request({
27449
28774
  path: `/v1/waas/applications/{appId}/endpoints`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27481,7 +28806,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27481
28806
  const queryParameters = {};
27482
28807
  const headerParameters = {};
27483
28808
  if (this.configuration && this.configuration.apiKey) {
27484
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28809
+ {
28810
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28811
+ if (apiKeyValue) {
28812
+ headerParameters["X-API-Key"] = apiKeyValue;
28813
+ }
28814
+ }
27485
28815
  }
27486
28816
  const response = await this.request({
27487
28817
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/rotate-secret`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27525,7 +28855,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27525
28855
  const headerParameters = {};
27526
28856
  headerParameters["Content-Type"] = "application/json";
27527
28857
  if (this.configuration && this.configuration.apiKey) {
27528
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28858
+ {
28859
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28860
+ if (apiKeyValue) {
28861
+ headerParameters["X-API-Key"] = apiKeyValue;
28862
+ }
28863
+ }
27529
28864
  }
27530
28865
  const response = await this.request({
27531
28866
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27573,7 +28908,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27573
28908
  const headerParameters = {};
27574
28909
  headerParameters["Content-Type"] = "application/json";
27575
28910
  if (this.configuration && this.configuration.apiKey) {
27576
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28911
+ {
28912
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28913
+ if (apiKeyValue) {
28914
+ headerParameters["X-API-Key"] = apiKeyValue;
28915
+ }
28916
+ }
27577
28917
  }
27578
28918
  const response = await this.request({
27579
28919
  path: `/v1/waas/applications/{appId}/event-types`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27612,7 +28952,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27612
28952
  const queryParameters = {};
27613
28953
  const headerParameters = {};
27614
28954
  if (this.configuration && this.configuration.apiKey) {
27615
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28955
+ {
28956
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28957
+ if (apiKeyValue) {
28958
+ headerParameters["X-API-Key"] = apiKeyValue;
28959
+ }
28960
+ }
27616
28961
  }
27617
28962
  const response = await this.request({
27618
28963
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27649,7 +28994,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27649
28994
  const queryParameters = {};
27650
28995
  const headerParameters = {};
27651
28996
  if (this.configuration && this.configuration.apiKey) {
27652
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
28997
+ {
28998
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
28999
+ if (apiKeyValue) {
29000
+ headerParameters["X-API-Key"] = apiKeyValue;
29001
+ }
29002
+ }
27653
29003
  }
27654
29004
  const response = await this.request({
27655
29005
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}/deprecate`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27686,7 +29036,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27686
29036
  const queryParameters = {};
27687
29037
  const headerParameters = {};
27688
29038
  if (this.configuration && this.configuration.apiKey) {
27689
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29039
+ {
29040
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29041
+ if (apiKeyValue) {
29042
+ headerParameters["X-API-Key"] = apiKeyValue;
29043
+ }
29044
+ }
27690
29045
  }
27691
29046
  const response = await this.request({
27692
29047
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27729,7 +29084,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27729
29084
  }
27730
29085
  const headerParameters = {};
27731
29086
  if (this.configuration && this.configuration.apiKey) {
27732
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29087
+ {
29088
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29089
+ if (apiKeyValue) {
29090
+ headerParameters["X-API-Key"] = apiKeyValue;
29091
+ }
29092
+ }
27733
29093
  }
27734
29094
  const response = await this.request({
27735
29095
  path: `/v1/waas/applications/{appId}/event-types`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27773,7 +29133,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27773
29133
  const headerParameters = {};
27774
29134
  headerParameters["Content-Type"] = "application/json";
27775
29135
  if (this.configuration && this.configuration.apiKey) {
27776
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29136
+ {
29137
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29138
+ if (apiKeyValue) {
29139
+ headerParameters["X-API-Key"] = apiKeyValue;
29140
+ }
29141
+ }
27777
29142
  }
27778
29143
  const response = await this.request({
27779
29144
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27820,7 +29185,12 @@ var WaaSEventsApi = class extends BaseAPI {
27820
29185
  const headerParameters = {};
27821
29186
  headerParameters["Content-Type"] = "application/json";
27822
29187
  if (this.configuration && this.configuration.apiKey) {
27823
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29188
+ {
29189
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29190
+ if (apiKeyValue) {
29191
+ headerParameters["X-API-Key"] = apiKeyValue;
29192
+ }
29193
+ }
27824
29194
  }
27825
29195
  const response = await this.request({
27826
29196
  path: `/v1/waas/applications/{appId}/events/batch`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27860,7 +29230,12 @@ var WaaSEventsApi = class extends BaseAPI {
27860
29230
  const headerParameters = {};
27861
29231
  headerParameters["Content-Type"] = "application/json";
27862
29232
  if (this.configuration && this.configuration.apiKey) {
27863
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29233
+ {
29234
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29235
+ if (apiKeyValue) {
29236
+ headerParameters["X-API-Key"] = apiKeyValue;
29237
+ }
29238
+ }
27864
29239
  }
27865
29240
  const response = await this.request({
27866
29241
  path: `/v1/waas/applications/{appId}/events`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27904,7 +29279,12 @@ var WaaSPortalApi = class extends BaseAPI {
27904
29279
  const headerParameters = {};
27905
29280
  headerParameters["Content-Type"] = "application/json";
27906
29281
  if (this.configuration && this.configuration.apiKey) {
27907
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29282
+ {
29283
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29284
+ if (apiKeyValue) {
29285
+ headerParameters["X-API-Key"] = apiKeyValue;
29286
+ }
29287
+ }
27908
29288
  }
27909
29289
  const response = await this.request({
27910
29290
  path: `/v1/waas/applications/{appId}/portal/token`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27942,7 +29322,12 @@ var WebhooksApi = class extends BaseAPI {
27942
29322
  const headerParameters = {};
27943
29323
  headerParameters["Content-Type"] = "application/json";
27944
29324
  if (this.configuration && this.configuration.apiKey) {
27945
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29325
+ {
29326
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29327
+ if (apiKeyValue) {
29328
+ headerParameters["X-API-Key"] = apiKeyValue;
29329
+ }
29330
+ }
27946
29331
  }
27947
29332
  const response = await this.request({
27948
29333
  path: `/v1/webhooks/{id}/deliveries/bulk-retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -27975,7 +29360,12 @@ var WebhooksApi = class extends BaseAPI {
27975
29360
  const queryParameters = {};
27976
29361
  const headerParameters = {};
27977
29362
  if (this.configuration && this.configuration.apiKey) {
27978
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29363
+ {
29364
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29365
+ if (apiKeyValue) {
29366
+ headerParameters["X-API-Key"] = apiKeyValue;
29367
+ }
29368
+ }
27979
29369
  }
27980
29370
  const response = await this.request({
27981
29371
  path: `/v1/webhooks/{id}/circuit/close`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28008,7 +29398,12 @@ var WebhooksApi = class extends BaseAPI {
28008
29398
  const headerParameters = {};
28009
29399
  headerParameters["Content-Type"] = "application/json";
28010
29400
  if (this.configuration && this.configuration.apiKey) {
28011
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29401
+ {
29402
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29403
+ if (apiKeyValue) {
29404
+ headerParameters["X-API-Key"] = apiKeyValue;
29405
+ }
29406
+ }
28012
29407
  }
28013
29408
  const response = await this.request({
28014
29409
  path: `/v1/webhooks`,
@@ -28041,7 +29436,12 @@ var WebhooksApi = class extends BaseAPI {
28041
29436
  const queryParameters = {};
28042
29437
  const headerParameters = {};
28043
29438
  if (this.configuration && this.configuration.apiKey) {
28044
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29439
+ {
29440
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29441
+ if (apiKeyValue) {
29442
+ headerParameters["X-API-Key"] = apiKeyValue;
29443
+ }
29444
+ }
28045
29445
  }
28046
29446
  const response = await this.request({
28047
29447
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28067,7 +29467,12 @@ var WebhooksApi = class extends BaseAPI {
28067
29467
  const queryParameters = {};
28068
29468
  const headerParameters = {};
28069
29469
  if (this.configuration && this.configuration.apiKey) {
28070
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29470
+ {
29471
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29472
+ if (apiKeyValue) {
29473
+ headerParameters["X-API-Key"] = apiKeyValue;
29474
+ }
29475
+ }
28071
29476
  }
28072
29477
  const response = await this.request({
28073
29478
  path: `/v1/webhooks/metrics`,
@@ -28099,7 +29504,12 @@ var WebhooksApi = class extends BaseAPI {
28099
29504
  const queryParameters = {};
28100
29505
  const headerParameters = {};
28101
29506
  if (this.configuration && this.configuration.apiKey) {
28102
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29507
+ {
29508
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29509
+ if (apiKeyValue) {
29510
+ headerParameters["X-API-Key"] = apiKeyValue;
29511
+ }
29512
+ }
28103
29513
  }
28104
29514
  const response = await this.request({
28105
29515
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28131,7 +29541,12 @@ var WebhooksApi = class extends BaseAPI {
28131
29541
  const queryParameters = {};
28132
29542
  const headerParameters = {};
28133
29543
  if (this.configuration && this.configuration.apiKey) {
28134
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29544
+ {
29545
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29546
+ if (apiKeyValue) {
29547
+ headerParameters["X-API-Key"] = apiKeyValue;
29548
+ }
29549
+ }
28135
29550
  }
28136
29551
  const response = await this.request({
28137
29552
  path: `/v1/webhooks/{id}/circuit`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28169,7 +29584,12 @@ var WebhooksApi = class extends BaseAPI {
28169
29584
  const queryParameters = {};
28170
29585
  const headerParameters = {};
28171
29586
  if (this.configuration && this.configuration.apiKey) {
28172
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29587
+ {
29588
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29589
+ if (apiKeyValue) {
29590
+ headerParameters["X-API-Key"] = apiKeyValue;
29591
+ }
29592
+ }
28173
29593
  }
28174
29594
  const response = await this.request({
28175
29595
  path: `/v1/webhooks/{id}/deliveries/{deliveryId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -28195,7 +29615,12 @@ var WebhooksApi = class extends BaseAPI {
28195
29615
  const queryParameters = {};
28196
29616
  const headerParameters = {};
28197
29617
  if (this.configuration && this.configuration.apiKey) {
28198
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29618
+ {
29619
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29620
+ if (apiKeyValue) {
29621
+ headerParameters["X-API-Key"] = apiKeyValue;
29622
+ }
29623
+ }
28199
29624
  }
28200
29625
  const response = await this.request({
28201
29626
  path: `/v1/webhooks/ips`,
@@ -28227,7 +29652,12 @@ var WebhooksApi = class extends BaseAPI {
28227
29652
  const queryParameters = {};
28228
29653
  const headerParameters = {};
28229
29654
  if (this.configuration && this.configuration.apiKey) {
28230
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29655
+ {
29656
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29657
+ if (apiKeyValue) {
29658
+ headerParameters["X-API-Key"] = apiKeyValue;
29659
+ }
29660
+ }
28231
29661
  }
28232
29662
  const response = await this.request({
28233
29663
  path: `/v1/webhooks/jobs/{jobId}`.replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters["jobId"]))),
@@ -28259,7 +29689,12 @@ var WebhooksApi = class extends BaseAPI {
28259
29689
  const queryParameters = {};
28260
29690
  const headerParameters = {};
28261
29691
  if (this.configuration && this.configuration.apiKey) {
28262
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29692
+ {
29693
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29694
+ if (apiKeyValue) {
29695
+ headerParameters["X-API-Key"] = apiKeyValue;
29696
+ }
29697
+ }
28263
29698
  }
28264
29699
  const response = await this.request({
28265
29700
  path: `/v1/webhooks/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28285,7 +29720,12 @@ var WebhooksApi = class extends BaseAPI {
28285
29720
  const queryParameters = {};
28286
29721
  const headerParameters = {};
28287
29722
  if (this.configuration && this.configuration.apiKey) {
28288
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29723
+ {
29724
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29725
+ if (apiKeyValue) {
29726
+ headerParameters["X-API-Key"] = apiKeyValue;
29727
+ }
29728
+ }
28289
29729
  }
28290
29730
  const response = await this.request({
28291
29731
  path: `/v1/webhooks/usage`,
@@ -28338,7 +29778,12 @@ var WebhooksApi = class extends BaseAPI {
28338
29778
  }
28339
29779
  const headerParameters = {};
28340
29780
  if (this.configuration && this.configuration.apiKey) {
28341
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29781
+ {
29782
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29783
+ if (apiKeyValue) {
29784
+ headerParameters["X-API-Key"] = apiKeyValue;
29785
+ }
29786
+ }
28342
29787
  }
28343
29788
  const response = await this.request({
28344
29789
  path: `/v1/webhooks/{id}/deliveries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28367,7 +29812,12 @@ var WebhooksApi = class extends BaseAPI {
28367
29812
  }
28368
29813
  const headerParameters = {};
28369
29814
  if (this.configuration && this.configuration.apiKey) {
28370
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29815
+ {
29816
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29817
+ if (apiKeyValue) {
29818
+ headerParameters["X-API-Key"] = apiKeyValue;
29819
+ }
29820
+ }
28371
29821
  }
28372
29822
  const response = await this.request({
28373
29823
  path: `/v1/webhooks/events`,
@@ -28393,7 +29843,12 @@ var WebhooksApi = class extends BaseAPI {
28393
29843
  const queryParameters = {};
28394
29844
  const headerParameters = {};
28395
29845
  if (this.configuration && this.configuration.apiKey) {
28396
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29846
+ {
29847
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29848
+ if (apiKeyValue) {
29849
+ headerParameters["X-API-Key"] = apiKeyValue;
29850
+ }
29851
+ }
28397
29852
  }
28398
29853
  const response = await this.request({
28399
29854
  path: `/v1/webhooks/versions`,
@@ -28425,7 +29880,12 @@ var WebhooksApi = class extends BaseAPI {
28425
29880
  }
28426
29881
  const headerParameters = {};
28427
29882
  if (this.configuration && this.configuration.apiKey) {
28428
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29883
+ {
29884
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29885
+ if (apiKeyValue) {
29886
+ headerParameters["X-API-Key"] = apiKeyValue;
29887
+ }
29888
+ }
28429
29889
  }
28430
29890
  const response = await this.request({
28431
29891
  path: `/v1/webhooks`,
@@ -28464,7 +29924,12 @@ var WebhooksApi = class extends BaseAPI {
28464
29924
  const headerParameters = {};
28465
29925
  headerParameters["Content-Type"] = "application/json";
28466
29926
  if (this.configuration && this.configuration.apiKey) {
28467
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29927
+ {
29928
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29929
+ if (apiKeyValue) {
29930
+ headerParameters["X-API-Key"] = apiKeyValue;
29931
+ }
29932
+ }
28468
29933
  }
28469
29934
  const response = await this.request({
28470
29935
  path: `/v1/webhooks/{id}/replay`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28503,7 +29968,12 @@ var WebhooksApi = class extends BaseAPI {
28503
29968
  const queryParameters = {};
28504
29969
  const headerParameters = {};
28505
29970
  if (this.configuration && this.configuration.apiKey) {
28506
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
29971
+ {
29972
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
29973
+ if (apiKeyValue) {
29974
+ headerParameters["X-API-Key"] = apiKeyValue;
29975
+ }
29976
+ }
28507
29977
  }
28508
29978
  const response = await this.request({
28509
29979
  path: `/v1/webhooks/{id}/deliveries/{deliveryId}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -28535,7 +30005,12 @@ var WebhooksApi = class extends BaseAPI {
28535
30005
  const queryParameters = {};
28536
30006
  const headerParameters = {};
28537
30007
  if (this.configuration && this.configuration.apiKey) {
28538
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30008
+ {
30009
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30010
+ if (apiKeyValue) {
30011
+ headerParameters["X-API-Key"] = apiKeyValue;
30012
+ }
30013
+ }
28539
30014
  }
28540
30015
  const response = await this.request({
28541
30016
  path: `/v1/webhooks/{id}/rotate-secret`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28568,7 +30043,12 @@ var WebhooksApi = class extends BaseAPI {
28568
30043
  const headerParameters = {};
28569
30044
  headerParameters["Content-Type"] = "application/json";
28570
30045
  if (this.configuration && this.configuration.apiKey) {
28571
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30046
+ {
30047
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30048
+ if (apiKeyValue) {
30049
+ headerParameters["X-API-Key"] = apiKeyValue;
30050
+ }
30051
+ }
28572
30052
  }
28573
30053
  const response = await this.request({
28574
30054
  path: `/v1/webhooks/{id}/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28608,7 +30088,12 @@ var WebhooksApi = class extends BaseAPI {
28608
30088
  const headerParameters = {};
28609
30089
  headerParameters["Content-Type"] = "application/json";
28610
30090
  if (this.configuration && this.configuration.apiKey) {
28611
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30091
+ {
30092
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30093
+ if (apiKeyValue) {
30094
+ headerParameters["X-API-Key"] = apiKeyValue;
30095
+ }
30096
+ }
28612
30097
  }
28613
30098
  const response = await this.request({
28614
30099
  path: `/v1/webhooks/{id}/transform/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28648,7 +30133,12 @@ var WebhooksApi = class extends BaseAPI {
28648
30133
  const headerParameters = {};
28649
30134
  headerParameters["Content-Type"] = "application/json";
28650
30135
  if (this.configuration && this.configuration.apiKey) {
28651
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30136
+ {
30137
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30138
+ if (apiKeyValue) {
30139
+ headerParameters["X-API-Key"] = apiKeyValue;
30140
+ }
30141
+ }
28652
30142
  }
28653
30143
  const response = await this.request({
28654
30144
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28699,7 +30189,12 @@ var WorkflowsApi = class extends BaseAPI {
28699
30189
  const headerParameters = {};
28700
30190
  headerParameters["Content-Type"] = "application/json";
28701
30191
  if (this.configuration && this.configuration.apiKey) {
28702
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30192
+ {
30193
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30194
+ if (apiKeyValue) {
30195
+ headerParameters["X-API-Key"] = apiKeyValue;
30196
+ }
30197
+ }
28703
30198
  }
28704
30199
  const response = await this.request({
28705
30200
  path: `/workflows/{key}/steps`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28733,7 +30228,12 @@ var WorkflowsApi = class extends BaseAPI {
28733
30228
  const headerParameters = {};
28734
30229
  headerParameters["Content-Type"] = "application/json";
28735
30230
  if (this.configuration && this.configuration.apiKey) {
28736
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30231
+ {
30232
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30233
+ if (apiKeyValue) {
30234
+ headerParameters["X-API-Key"] = apiKeyValue;
30235
+ }
30236
+ }
28737
30237
  }
28738
30238
  const response = await this.request({
28739
30239
  path: `/workflows`,
@@ -28766,7 +30266,12 @@ var WorkflowsApi = class extends BaseAPI {
28766
30266
  const queryParameters = {};
28767
30267
  const headerParameters = {};
28768
30268
  if (this.configuration && this.configuration.apiKey) {
28769
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30269
+ {
30270
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30271
+ if (apiKeyValue) {
30272
+ headerParameters["X-API-Key"] = apiKeyValue;
30273
+ }
30274
+ }
28770
30275
  }
28771
30276
  const response = await this.request({
28772
30277
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28804,7 +30309,12 @@ var WorkflowsApi = class extends BaseAPI {
28804
30309
  const queryParameters = {};
28805
30310
  const headerParameters = {};
28806
30311
  if (this.configuration && this.configuration.apiKey) {
28807
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30312
+ {
30313
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30314
+ if (apiKeyValue) {
30315
+ headerParameters["X-API-Key"] = apiKeyValue;
30316
+ }
30317
+ }
28808
30318
  }
28809
30319
  const response = await this.request({
28810
30320
  path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
@@ -28836,7 +30346,12 @@ var WorkflowsApi = class extends BaseAPI {
28836
30346
  const queryParameters = {};
28837
30347
  const headerParameters = {};
28838
30348
  if (this.configuration && this.configuration.apiKey) {
28839
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30349
+ {
30350
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30351
+ if (apiKeyValue) {
30352
+ headerParameters["X-API-Key"] = apiKeyValue;
30353
+ }
30354
+ }
28840
30355
  }
28841
30356
  const response = await this.request({
28842
30357
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28874,7 +30389,12 @@ var WorkflowsApi = class extends BaseAPI {
28874
30389
  }
28875
30390
  const headerParameters = {};
28876
30391
  if (this.configuration && this.configuration.apiKey) {
28877
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30392
+ {
30393
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30394
+ if (apiKeyValue) {
30395
+ headerParameters["X-API-Key"] = apiKeyValue;
30396
+ }
30397
+ }
28878
30398
  }
28879
30399
  const response = await this.request({
28880
30400
  path: `/workflows/{key}/executions`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28912,7 +30432,12 @@ var WorkflowsApi = class extends BaseAPI {
28912
30432
  }
28913
30433
  const headerParameters = {};
28914
30434
  if (this.configuration && this.configuration.apiKey) {
28915
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30435
+ {
30436
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30437
+ if (apiKeyValue) {
30438
+ headerParameters["X-API-Key"] = apiKeyValue;
30439
+ }
30440
+ }
28916
30441
  }
28917
30442
  const response = await this.request({
28918
30443
  path: `/workflows`,
@@ -28951,7 +30476,12 @@ var WorkflowsApi = class extends BaseAPI {
28951
30476
  const headerParameters = {};
28952
30477
  headerParameters["Content-Type"] = "application/json";
28953
30478
  if (this.configuration && this.configuration.apiKey) {
28954
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30479
+ {
30480
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30481
+ if (apiKeyValue) {
30482
+ headerParameters["X-API-Key"] = apiKeyValue;
30483
+ }
30484
+ }
28955
30485
  }
28956
30486
  const response = await this.request({
28957
30487
  path: `/workflows/{key}/steps/reorder`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28991,7 +30521,12 @@ var WorkflowsApi = class extends BaseAPI {
28991
30521
  const headerParameters = {};
28992
30522
  headerParameters["Content-Type"] = "application/json";
28993
30523
  if (this.configuration && this.configuration.apiKey) {
28994
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30524
+ {
30525
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30526
+ if (apiKeyValue) {
30527
+ headerParameters["X-API-Key"] = apiKeyValue;
30528
+ }
30529
+ }
28995
30530
  }
28996
30531
  const response = await this.request({
28997
30532
  path: `/workflows/{key}/trigger`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -29031,7 +30566,12 @@ var WorkflowsApi = class extends BaseAPI {
29031
30566
  const headerParameters = {};
29032
30567
  headerParameters["Content-Type"] = "application/json";
29033
30568
  if (this.configuration && this.configuration.apiKey) {
29034
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30569
+ {
30570
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30571
+ if (apiKeyValue) {
30572
+ headerParameters["X-API-Key"] = apiKeyValue;
30573
+ }
30574
+ }
29035
30575
  }
29036
30576
  const response = await this.request({
29037
30577
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -29071,7 +30611,12 @@ var WorkflowsApi = class extends BaseAPI {
29071
30611
  const headerParameters = {};
29072
30612
  headerParameters["Content-Type"] = "application/json";
29073
30613
  if (this.configuration && this.configuration.apiKey) {
29074
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30614
+ {
30615
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30616
+ if (apiKeyValue) {
30617
+ headerParameters["X-API-Key"] = apiKeyValue;
30618
+ }
30619
+ }
29075
30620
  }
29076
30621
  const response = await this.request({
29077
30622
  path: `/workflows/{key}/status`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -29117,7 +30662,12 @@ var WorkflowsApi = class extends BaseAPI {
29117
30662
  const headerParameters = {};
29118
30663
  headerParameters["Content-Type"] = "application/json";
29119
30664
  if (this.configuration && this.configuration.apiKey) {
29120
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
30665
+ {
30666
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key");
30667
+ if (apiKeyValue) {
30668
+ headerParameters["X-API-Key"] = apiKeyValue;
30669
+ }
30670
+ }
29121
30671
  }
29122
30672
  const response = await this.request({
29123
30673
  path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
@@ -29380,8 +30930,21 @@ var SECRET_KEY_PREFIXES = [
29380
30930
  ];
29381
30931
  var ZyphrClient = class {
29382
30932
  auth;
29383
- /** Device registration for push (takes an OS-acquired token). */
29384
- devices;
30933
+ // NOTE: `devices` is deliberately NOT exposed here (sc-8045).
30934
+ //
30935
+ // The device API authenticates with the account-scoped secret key
30936
+ // (`X-API-Key`), which must never ship inside a client bundle. ZyphrClient
30937
+ // only ever resolves the publishable `X-Application-Key`, so every call
30938
+ // sent an empty `X-API-Key` header and could only ever 401.
30939
+ //
30940
+ // Register devices from your own backend with the server-side `Zyphr`
30941
+ // client instead:
30942
+ //
30943
+ // const zyphr = new Zyphr({ apiKey: process.env.ZYPHR_API_KEY });
30944
+ // await zyphr.devices.registerDevice({ userId, platform, token });
30945
+ //
30946
+ // Derive `userId` from your authenticated session server-side — never from
30947
+ // client-supplied input.
29385
30948
  /**
29386
30949
  * Utility endpoints that are publishable-key-safe: the application's password
29387
30950
  * policy (`getPasswordRequirements`) and a pre-submit password strength check
@@ -29437,7 +31000,6 @@ var ZyphrClient = class {
29437
31000
  profile: new AuthUserProfileApi(config),
29438
31001
  webauthn: new AuthWebAuthnApi(config)
29439
31002
  };
29440
- this.devices = new DevicesApi(config);
29441
31003
  this.utility = new UtilityApi(config);
29442
31004
  }
29443
31005
  /** Store the end-user access token; it is applied automatically to subsequent user-scoped calls. */