@zyphr-dev/node-sdk 0.1.55 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/index.cjs +1883 -319
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +31 -10
  4. package/dist/index.d.ts +31 -10
  5. package/dist/index.js +1883 -319
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/clientAuth.ts +15 -4
  9. package/src/src/apis/AuthApplicationApi.ts +32 -4
  10. package/src/src/apis/AuthEmailOTPApi.ts +72 -9
  11. package/src/src/apis/AuthEmailTemplatesApi.ts +160 -20
  12. package/src/src/apis/AuthEmailVerificationApi.ts +48 -6
  13. package/src/src/apis/AuthLoginApi.ts +16 -2
  14. package/src/src/apis/AuthMFAApi.ts +112 -14
  15. package/src/src/apis/AuthMagicLinksApi.ts +32 -4
  16. package/src/src/apis/AuthOAuthApi.ts +88 -11
  17. package/src/src/apis/AuthOrganizationsApi.ts +176 -22
  18. package/src/src/apis/AuthPasswordResetApi.ts +52 -10
  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
  46. package/src/src/models/InviteEndUser200ResponseData.ts +25 -0
package/dist/index.cjs CHANGED
@@ -9154,7 +9154,8 @@ function InviteEndUser200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9154
9154
  return {
9155
9155
  "userId": json["user_id"] == null ? void 0 : json["user_id"],
9156
9156
  "created": json["created"] == null ? void 0 : json["created"],
9157
- "linkSent": json["link_sent"] == null ? void 0 : json["link_sent"]
9157
+ "linkSent": json["link_sent"] == null ? void 0 : json["link_sent"],
9158
+ "linkSuppressedReason": json["link_suppressed_reason"] == null ? void 0 : json["link_suppressed_reason"]
9158
9159
  };
9159
9160
  }
9160
9161
  function InviteEndUser200ResponseDataToJSON(json) {
@@ -9167,7 +9168,8 @@ function InviteEndUser200ResponseDataToJSONTyped(value, ignoreDiscriminator = fa
9167
9168
  return {
9168
9169
  "user_id": value["userId"],
9169
9170
  "created": value["created"],
9170
- "link_sent": value["linkSent"]
9171
+ "link_sent": value["linkSent"],
9172
+ "link_suppressed_reason": value["linkSuppressedReason"]
9171
9173
  };
9172
9174
  }
9173
9175
 
@@ -19755,10 +19757,20 @@ var AuthApplicationApi = class extends BaseAPI {
19755
19757
  const queryParameters = {};
19756
19758
  const headerParameters = {};
19757
19759
  if (this.configuration && this.configuration.apiKey) {
19758
- 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
+ }
19759
19766
  }
19760
19767
  if (this.configuration && this.configuration.apiKey) {
19761
- 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
+ }
19762
19774
  }
19763
19775
  const response = await this.request({
19764
19776
  path: `/auth/application`,
@@ -19791,10 +19803,20 @@ var AuthApplicationApi = class extends BaseAPI {
19791
19803
  const headerParameters = {};
19792
19804
  headerParameters["Content-Type"] = "application/json";
19793
19805
  if (this.configuration && this.configuration.apiKey) {
19794
- 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
+ }
19795
19812
  }
19796
19813
  if (this.configuration && this.configuration.apiKey) {
19797
- 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
+ }
19798
19820
  }
19799
19821
  const response = await this.request({
19800
19822
  path: `/auth/application`,
@@ -19825,7 +19847,12 @@ var AuthEmailOTPApi = class extends BaseAPI {
19825
19847
  const queryParameters = {};
19826
19848
  const headerParameters = {};
19827
19849
  if (this.configuration && this.configuration.apiKey) {
19828
- 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
+ }
19829
19856
  }
19830
19857
  const response = await this.request({
19831
19858
  path: `/auth/email-otp/available`,
@@ -19858,10 +19885,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19858
19885
  const headerParameters = {};
19859
19886
  headerParameters["Content-Type"] = "application/json";
19860
19887
  if (this.configuration && this.configuration.apiKey) {
19861
- 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
+ }
19862
19894
  }
19863
19895
  if (this.configuration && this.configuration.apiKey) {
19864
- 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
+ }
19865
19902
  }
19866
19903
  const response = await this.request({
19867
19904
  path: `/auth/email-otp/login/send`,
@@ -19895,10 +19932,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19895
19932
  const headerParameters = {};
19896
19933
  headerParameters["Content-Type"] = "application/json";
19897
19934
  if (this.configuration && this.configuration.apiKey) {
19898
- 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
+ }
19899
19941
  }
19900
19942
  if (this.configuration && this.configuration.apiKey) {
19901
- 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
+ }
19902
19949
  }
19903
19950
  const response = await this.request({
19904
19951
  path: `/auth/email-otp/register/send`,
@@ -19932,10 +19979,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19932
19979
  const headerParameters = {};
19933
19980
  headerParameters["Content-Type"] = "application/json";
19934
19981
  if (this.configuration && this.configuration.apiKey) {
19935
- 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
+ }
19936
19988
  }
19937
19989
  if (this.configuration && this.configuration.apiKey) {
19938
- 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
+ }
19939
19996
  }
19940
19997
  const response = await this.request({
19941
19998
  path: `/auth/email-otp/login/verify`,
@@ -19969,10 +20026,20 @@ var AuthEmailOTPApi = class extends BaseAPI {
19969
20026
  const headerParameters = {};
19970
20027
  headerParameters["Content-Type"] = "application/json";
19971
20028
  if (this.configuration && this.configuration.apiKey) {
19972
- 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
+ }
19973
20035
  }
19974
20036
  if (this.configuration && this.configuration.apiKey) {
19975
- 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
+ }
19976
20043
  }
19977
20044
  const response = await this.request({
19978
20045
  path: `/auth/email-otp/register/verify`,
@@ -20010,10 +20077,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20010
20077
  const headerParameters = {};
20011
20078
  headerParameters["Content-Type"] = "application/json";
20012
20079
  if (this.configuration && this.configuration.apiKey) {
20013
- 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
+ }
20014
20086
  }
20015
20087
  if (this.configuration && this.configuration.apiKey) {
20016
- 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
+ }
20017
20094
  }
20018
20095
  const response = await this.request({
20019
20096
  path: `/auth/email-templates`,
@@ -20046,10 +20123,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20046
20123
  const queryParameters = {};
20047
20124
  const headerParameters = {};
20048
20125
  if (this.configuration && this.configuration.apiKey) {
20049
- 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
+ }
20050
20132
  }
20051
20133
  if (this.configuration && this.configuration.apiKey) {
20052
- 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
+ }
20053
20140
  }
20054
20141
  const response = await this.request({
20055
20142
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20081,10 +20168,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20081
20168
  const queryParameters = {};
20082
20169
  const headerParameters = {};
20083
20170
  if (this.configuration && this.configuration.apiKey) {
20084
- 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
+ }
20085
20177
  }
20086
20178
  if (this.configuration && this.configuration.apiKey) {
20087
- 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
+ }
20088
20185
  }
20089
20186
  const response = await this.request({
20090
20187
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20116,10 +20213,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20116
20213
  const queryParameters = {};
20117
20214
  const headerParameters = {};
20118
20215
  if (this.configuration && this.configuration.apiKey) {
20119
- 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
+ }
20120
20222
  }
20121
20223
  if (this.configuration && this.configuration.apiKey) {
20122
- 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
+ }
20123
20230
  }
20124
20231
  const response = await this.request({
20125
20232
  path: `/auth/email-templates/{type}/default`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20150,10 +20257,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20150
20257
  const queryParameters = {};
20151
20258
  const headerParameters = {};
20152
20259
  if (this.configuration && this.configuration.apiKey) {
20153
- 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
+ }
20154
20266
  }
20155
20267
  if (this.configuration && this.configuration.apiKey) {
20156
- 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
+ }
20157
20274
  }
20158
20275
  const response = await this.request({
20159
20276
  path: `/auth/email-templates/{type}/versions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20178,10 +20295,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20178
20295
  const queryParameters = {};
20179
20296
  const headerParameters = {};
20180
20297
  if (this.configuration && this.configuration.apiKey) {
20181
- 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
+ }
20182
20304
  }
20183
20305
  if (this.configuration && this.configuration.apiKey) {
20184
- 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
+ }
20185
20312
  }
20186
20313
  const response = await this.request({
20187
20314
  path: `/auth/email-templates`,
@@ -20214,10 +20341,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20214
20341
  const headerParameters = {};
20215
20342
  headerParameters["Content-Type"] = "application/json";
20216
20343
  if (this.configuration && this.configuration.apiKey) {
20217
- 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
+ }
20218
20350
  }
20219
20351
  if (this.configuration && this.configuration.apiKey) {
20220
- 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
+ }
20221
20358
  }
20222
20359
  const response = await this.request({
20223
20360
  path: `/auth/email-templates/{type}/preview`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20256,10 +20393,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20256
20393
  const queryParameters = {};
20257
20394
  const headerParameters = {};
20258
20395
  if (this.configuration && this.configuration.apiKey) {
20259
- 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
+ }
20260
20402
  }
20261
20403
  if (this.configuration && this.configuration.apiKey) {
20262
- 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
+ }
20263
20410
  }
20264
20411
  const response = await this.request({
20265
20412
  path: `/auth/email-templates/{type}/versions/{version}/restore`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
@@ -20298,10 +20445,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20298
20445
  const headerParameters = {};
20299
20446
  headerParameters["Content-Type"] = "application/json";
20300
20447
  if (this.configuration && this.configuration.apiKey) {
20301
- 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
+ }
20302
20454
  }
20303
20455
  if (this.configuration && this.configuration.apiKey) {
20304
- 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
+ }
20305
20462
  }
20306
20463
  const response = await this.request({
20307
20464
  path: `/auth/email-templates/{type}/test`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20341,10 +20498,20 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
20341
20498
  const headerParameters = {};
20342
20499
  headerParameters["Content-Type"] = "application/json";
20343
20500
  if (this.configuration && this.configuration.apiKey) {
20344
- 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
+ }
20345
20507
  }
20346
20508
  if (this.configuration && this.configuration.apiKey) {
20347
- 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
+ }
20348
20515
  }
20349
20516
  const response = await this.request({
20350
20517
  path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
@@ -20382,10 +20549,20 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20382
20549
  const headerParameters = {};
20383
20550
  headerParameters["Content-Type"] = "application/json";
20384
20551
  if (this.configuration && this.configuration.apiKey) {
20385
- 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
+ }
20386
20558
  }
20387
20559
  if (this.configuration && this.configuration.apiKey) {
20388
- 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
+ }
20389
20566
  }
20390
20567
  const response = await this.request({
20391
20568
  path: `/auth/verify-email/confirm`,
@@ -20413,7 +20590,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20413
20590
  const headerParameters = {};
20414
20591
  headerParameters["Content-Type"] = "application/json";
20415
20592
  if (this.configuration && this.configuration.apiKey) {
20416
- 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
+ }
20417
20599
  }
20418
20600
  if (this.configuration && this.configuration.accessToken) {
20419
20601
  const token = this.configuration.accessToken;
@@ -20423,7 +20605,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20423
20605
  }
20424
20606
  }
20425
20607
  if (this.configuration && this.configuration.apiKey) {
20426
- 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
+ }
20427
20614
  }
20428
20615
  const response = await this.request({
20429
20616
  path: `/auth/verify-email/resend`,
@@ -20451,7 +20638,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20451
20638
  const headerParameters = {};
20452
20639
  headerParameters["Content-Type"] = "application/json";
20453
20640
  if (this.configuration && this.configuration.apiKey) {
20454
- 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
+ }
20455
20647
  }
20456
20648
  if (this.configuration && this.configuration.accessToken) {
20457
20649
  const token = this.configuration.accessToken;
@@ -20461,7 +20653,12 @@ var AuthEmailVerificationApi = class extends BaseAPI {
20461
20653
  }
20462
20654
  }
20463
20655
  if (this.configuration && this.configuration.apiKey) {
20464
- 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
+ }
20465
20662
  }
20466
20663
  const response = await this.request({
20467
20664
  path: `/auth/verify-email/send`,
@@ -20499,10 +20696,20 @@ var AuthLoginApi = class extends BaseAPI {
20499
20696
  const headerParameters = {};
20500
20697
  headerParameters["Content-Type"] = "application/json";
20501
20698
  if (this.configuration && this.configuration.apiKey) {
20502
- 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
+ }
20503
20705
  }
20504
20706
  if (this.configuration && this.configuration.apiKey) {
20505
- 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
+ }
20506
20713
  }
20507
20714
  const response = await this.request({
20508
20715
  path: `/auth/users/login`,
@@ -20540,10 +20747,20 @@ var AuthMFAApi = class extends BaseAPI {
20540
20747
  const headerParameters = {};
20541
20748
  headerParameters["Content-Type"] = "application/json";
20542
20749
  if (this.configuration && this.configuration.apiKey) {
20543
- 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
+ }
20544
20756
  }
20545
20757
  if (this.configuration && this.configuration.apiKey) {
20546
- 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
+ }
20547
20764
  }
20548
20765
  const response = await this.request({
20549
20766
  path: `/auth/mfa/disable`,
@@ -20576,10 +20793,20 @@ var AuthMFAApi = class extends BaseAPI {
20576
20793
  const queryParameters = {};
20577
20794
  const headerParameters = {};
20578
20795
  if (this.configuration && this.configuration.apiKey) {
20579
- 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
+ }
20580
20802
  }
20581
20803
  if (this.configuration && this.configuration.apiKey) {
20582
- 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
+ }
20583
20810
  }
20584
20811
  const response = await this.request({
20585
20812
  path: `/auth/mfa/status/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -20612,10 +20839,20 @@ var AuthMFAApi = class extends BaseAPI {
20612
20839
  const headerParameters = {};
20613
20840
  headerParameters["Content-Type"] = "application/json";
20614
20841
  if (this.configuration && this.configuration.apiKey) {
20615
- 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
+ }
20616
20848
  }
20617
20849
  if (this.configuration && this.configuration.apiKey) {
20618
- 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
+ }
20619
20856
  }
20620
20857
  const response = await this.request({
20621
20858
  path: `/auth/mfa/regenerate-backup-codes`,
@@ -20649,10 +20886,20 @@ var AuthMFAApi = class extends BaseAPI {
20649
20886
  const headerParameters = {};
20650
20887
  headerParameters["Content-Type"] = "application/json";
20651
20888
  if (this.configuration && this.configuration.apiKey) {
20652
- 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
+ }
20653
20895
  }
20654
20896
  if (this.configuration && this.configuration.apiKey) {
20655
- 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
+ }
20656
20903
  }
20657
20904
  const response = await this.request({
20658
20905
  path: `/auth/mfa/enroll`,
@@ -20686,10 +20933,20 @@ var AuthMFAApi = class extends BaseAPI {
20686
20933
  const headerParameters = {};
20687
20934
  headerParameters["Content-Type"] = "application/json";
20688
20935
  if (this.configuration && this.configuration.apiKey) {
20689
- 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
+ }
20690
20942
  }
20691
20943
  if (this.configuration && this.configuration.apiKey) {
20692
- 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
+ }
20693
20950
  }
20694
20951
  const response = await this.request({
20695
20952
  path: `/auth/mfa/verify`,
@@ -20723,10 +20980,20 @@ var AuthMFAApi = class extends BaseAPI {
20723
20980
  const headerParameters = {};
20724
20981
  headerParameters["Content-Type"] = "application/json";
20725
20982
  if (this.configuration && this.configuration.apiKey) {
20726
- 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
+ }
20727
20989
  }
20728
20990
  if (this.configuration && this.configuration.apiKey) {
20729
- 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
+ }
20730
20997
  }
20731
20998
  const response = await this.request({
20732
20999
  path: `/auth/mfa/verify-backup`,
@@ -20760,10 +21027,20 @@ var AuthMFAApi = class extends BaseAPI {
20760
21027
  const headerParameters = {};
20761
21028
  headerParameters["Content-Type"] = "application/json";
20762
21029
  if (this.configuration && this.configuration.apiKey) {
20763
- 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
+ }
20764
21036
  }
20765
21037
  if (this.configuration && this.configuration.apiKey) {
20766
- 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
+ }
20767
21044
  }
20768
21045
  const response = await this.request({
20769
21046
  path: `/auth/mfa/verify-enrollment`,
@@ -20801,10 +21078,20 @@ var AuthMagicLinksApi = class extends BaseAPI {
20801
21078
  const headerParameters = {};
20802
21079
  headerParameters["Content-Type"] = "application/json";
20803
21080
  if (this.configuration && this.configuration.apiKey) {
20804
- 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
+ }
20805
21087
  }
20806
21088
  if (this.configuration && this.configuration.apiKey) {
20807
- 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
+ }
20808
21095
  }
20809
21096
  const response = await this.request({
20810
21097
  path: `/auth/magic-link/send`,
@@ -20838,10 +21125,20 @@ var AuthMagicLinksApi = class extends BaseAPI {
20838
21125
  const headerParameters = {};
20839
21126
  headerParameters["Content-Type"] = "application/json";
20840
21127
  if (this.configuration && this.configuration.apiKey) {
20841
- 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
+ }
20842
21134
  }
20843
21135
  if (this.configuration && this.configuration.apiKey) {
20844
- 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
+ }
20845
21142
  }
20846
21143
  const response = await this.request({
20847
21144
  path: `/auth/magic-link/verify`,
@@ -20892,7 +21189,12 @@ var AuthOAuthApi = class extends BaseAPI {
20892
21189
  }
20893
21190
  }
20894
21191
  if (this.configuration && this.configuration.apiKey) {
20895
- 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
+ }
20896
21198
  }
20897
21199
  const response = await this.request({
20898
21200
  path: `/auth/oauth/{provider}/link/callback`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -20932,7 +21234,12 @@ var AuthOAuthApi = class extends BaseAPI {
20932
21234
  }
20933
21235
  }
20934
21236
  if (this.configuration && this.configuration.apiKey) {
20935
- 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
+ }
20936
21243
  }
20937
21244
  const response = await this.request({
20938
21245
  path: `/auth/oauth/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -20973,7 +21280,12 @@ var AuthOAuthApi = class extends BaseAPI {
20973
21280
  }
20974
21281
  const headerParameters = {};
20975
21282
  if (this.configuration && this.configuration.apiKey) {
20976
- 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
+ }
20977
21289
  }
20978
21290
  const response = await this.request({
20979
21291
  path: `/auth/oauth/{provider}/authorize`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21012,7 +21324,12 @@ var AuthOAuthApi = class extends BaseAPI {
21012
21324
  }
21013
21325
  }
21014
21326
  if (this.configuration && this.configuration.apiKey) {
21015
- 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
+ }
21016
21333
  }
21017
21334
  const response = await this.request({
21018
21335
  path: `/auth/oauth/connections/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21053,10 +21370,20 @@ var AuthOAuthApi = class extends BaseAPI {
21053
21370
  }
21054
21371
  const headerParameters = {};
21055
21372
  if (this.configuration && this.configuration.apiKey) {
21056
- 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
+ }
21057
21379
  }
21058
21380
  if (this.configuration && this.configuration.apiKey) {
21059
- 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
+ }
21060
21387
  }
21061
21388
  const response = await this.request({
21062
21389
  path: `/auth/oauth/tokens/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21126,7 +21453,12 @@ var AuthOAuthApi = class extends BaseAPI {
21126
21453
  }
21127
21454
  }
21128
21455
  if (this.configuration && this.configuration.apiKey) {
21129
- 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
+ }
21130
21462
  }
21131
21463
  const response = await this.request({
21132
21464
  path: `/auth/oauth/connections`,
@@ -21152,7 +21484,12 @@ var AuthOAuthApi = class extends BaseAPI {
21152
21484
  const queryParameters = {};
21153
21485
  const headerParameters = {};
21154
21486
  if (this.configuration && this.configuration.apiKey) {
21155
- 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
+ }
21156
21493
  }
21157
21494
  const response = await this.request({
21158
21495
  path: `/auth/oauth/providers`,
@@ -21191,10 +21528,20 @@ var AuthOAuthApi = class extends BaseAPI {
21191
21528
  const headerParameters = {};
21192
21529
  headerParameters["Content-Type"] = "application/json";
21193
21530
  if (this.configuration && this.configuration.apiKey) {
21194
- 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
+ }
21195
21537
  }
21196
21538
  if (this.configuration && this.configuration.apiKey) {
21197
- 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
+ }
21198
21545
  }
21199
21546
  const response = await this.request({
21200
21547
  path: `/auth/oauth/tokens/{provider}/refresh`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21243,7 +21590,12 @@ var AuthOAuthApi = class extends BaseAPI {
21243
21590
  }
21244
21591
  }
21245
21592
  if (this.configuration && this.configuration.apiKey) {
21246
- 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
+ }
21247
21599
  }
21248
21600
  const response = await this.request({
21249
21601
  path: `/auth/oauth/{provider}/link`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters["provider"]))),
@@ -21285,10 +21637,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21285
21637
  const headerParameters = {};
21286
21638
  headerParameters["Content-Type"] = "application/json";
21287
21639
  if (this.configuration && this.configuration.apiKey) {
21288
- 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
+ }
21289
21646
  }
21290
21647
  if (this.configuration && this.configuration.apiKey) {
21291
- 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
+ }
21292
21654
  }
21293
21655
  const response = await this.request({
21294
21656
  path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21321,10 +21683,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21321
21683
  const headerParameters = {};
21322
21684
  headerParameters["Content-Type"] = "application/json";
21323
21685
  if (this.configuration && this.configuration.apiKey) {
21324
- 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
+ }
21325
21692
  }
21326
21693
  if (this.configuration && this.configuration.apiKey) {
21327
- 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
+ }
21328
21700
  }
21329
21701
  const response = await this.request({
21330
21702
  path: `/auth/organizations`,
@@ -21357,10 +21729,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21357
21729
  const queryParameters = {};
21358
21730
  const headerParameters = {};
21359
21731
  if (this.configuration && this.configuration.apiKey) {
21360
- 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
+ }
21361
21738
  }
21362
21739
  if (this.configuration && this.configuration.apiKey) {
21363
- 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
+ }
21364
21746
  }
21365
21747
  const response = await this.request({
21366
21748
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21390,10 +21772,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21390
21772
  const queryParameters = {};
21391
21773
  const headerParameters = {};
21392
21774
  if (this.configuration && this.configuration.apiKey) {
21393
- 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
+ }
21394
21781
  }
21395
21782
  if (this.configuration && this.configuration.apiKey) {
21396
- 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
+ }
21397
21789
  }
21398
21790
  const response = await this.request({
21399
21791
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21429,10 +21821,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21429
21821
  }
21430
21822
  const headerParameters = {};
21431
21823
  if (this.configuration && this.configuration.apiKey) {
21432
- 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
+ }
21433
21830
  }
21434
21831
  if (this.configuration && this.configuration.apiKey) {
21435
- 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
+ }
21436
21838
  }
21437
21839
  const response = await this.request({
21438
21840
  path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21466,10 +21868,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21466
21868
  }
21467
21869
  const headerParameters = {};
21468
21870
  if (this.configuration && this.configuration.apiKey) {
21469
- 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
+ }
21470
21877
  }
21471
21878
  if (this.configuration && this.configuration.apiKey) {
21472
- 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
+ }
21473
21885
  }
21474
21886
  const response = await this.request({
21475
21887
  path: `/auth/organizations`,
@@ -21501,10 +21913,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21501
21913
  const queryParameters = {};
21502
21914
  const headerParameters = {};
21503
21915
  if (this.configuration && this.configuration.apiKey) {
21504
- 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
+ }
21505
21922
  }
21506
21923
  if (this.configuration && this.configuration.apiKey) {
21507
- 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
+ }
21508
21930
  }
21509
21931
  const response = await this.request({
21510
21932
  path: `/auth/end-users/{user_id}/organizations`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -21541,10 +21963,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21541
21963
  const queryParameters = {};
21542
21964
  const headerParameters = {};
21543
21965
  if (this.configuration && this.configuration.apiKey) {
21544
- 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
+ }
21545
21972
  }
21546
21973
  if (this.configuration && this.configuration.apiKey) {
21547
- 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
+ }
21548
21980
  }
21549
21981
  const response = await this.request({
21550
21982
  path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -21575,10 +22007,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21575
22007
  const headerParameters = {};
21576
22008
  headerParameters["Content-Type"] = "application/json";
21577
22009
  if (this.configuration && this.configuration.apiKey) {
21578
- 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
+ }
21579
22016
  }
21580
22017
  if (this.configuration && this.configuration.apiKey) {
21581
- 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
+ }
21582
22024
  }
21583
22025
  const response = await this.request({
21584
22026
  path: `/auth/sessions/switch-organization`,
@@ -21618,10 +22060,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21618
22060
  const headerParameters = {};
21619
22061
  headerParameters["Content-Type"] = "application/json";
21620
22062
  if (this.configuration && this.configuration.apiKey) {
21621
- 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
+ }
21622
22069
  }
21623
22070
  if (this.configuration && this.configuration.apiKey) {
21624
- 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
+ }
21625
22077
  }
21626
22078
  const response = await this.request({
21627
22079
  path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -21666,10 +22118,20 @@ var AuthOrganizationsApi = class extends BaseAPI {
21666
22118
  const headerParameters = {};
21667
22119
  headerParameters["Content-Type"] = "application/json";
21668
22120
  if (this.configuration && this.configuration.apiKey) {
21669
- 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
+ }
21670
22127
  }
21671
22128
  if (this.configuration && this.configuration.apiKey) {
21672
- 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
+ }
21673
22135
  }
21674
22136
  const response = await this.request({
21675
22137
  path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -21692,7 +22154,7 @@ var AuthOrganizationsApi = class extends BaseAPI {
21692
22154
  // src/src/apis/AuthPasswordResetApi.ts
21693
22155
  var AuthPasswordResetApi = class extends BaseAPI {
21694
22156
  /**
21695
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
22157
+ * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`.
21696
22158
  * Request a password reset
21697
22159
  */
21698
22160
  async forgotPasswordRaw(requestParameters, initOverrides) {
@@ -21706,10 +22168,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
21706
22168
  const headerParameters = {};
21707
22169
  headerParameters["Content-Type"] = "application/json";
21708
22170
  if (this.configuration && this.configuration.apiKey) {
21709
- 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
+ }
21710
22177
  }
21711
22178
  if (this.configuration && this.configuration.apiKey) {
21712
- 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
+ }
21713
22185
  }
21714
22186
  const response = await this.request({
21715
22187
  path: `/auth/forgot-password`,
@@ -21721,7 +22193,7 @@ var AuthPasswordResetApi = class extends BaseAPI {
21721
22193
  return new JSONApiResponse(response, (jsonValue) => SuccessResultFromJSON(jsonValue));
21722
22194
  }
21723
22195
  /**
21724
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
22196
+ * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`.
21725
22197
  * Request a password reset
21726
22198
  */
21727
22199
  async forgotPassword(forgotPasswordRequest, initOverrides) {
@@ -21743,10 +22215,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
21743
22215
  const headerParameters = {};
21744
22216
  headerParameters["Content-Type"] = "application/json";
21745
22217
  if (this.configuration && this.configuration.apiKey) {
21746
- 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
+ }
21747
22224
  }
21748
22225
  if (this.configuration && this.configuration.apiKey) {
21749
- 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
+ }
21750
22232
  }
21751
22233
  const response = await this.request({
21752
22234
  path: `/auth/reset-password`,
@@ -21780,10 +22262,20 @@ var AuthPasswordResetApi = class extends BaseAPI {
21780
22262
  const headerParameters = {};
21781
22263
  headerParameters["Content-Type"] = "application/json";
21782
22264
  if (this.configuration && this.configuration.apiKey) {
21783
- 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
+ }
21784
22271
  }
21785
22272
  if (this.configuration && this.configuration.apiKey) {
21786
- 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
+ }
21787
22279
  }
21788
22280
  const response = await this.request({
21789
22281
  path: `/auth/validate-reset-token`,
@@ -21814,7 +22306,12 @@ var AuthPhoneApi = class extends BaseAPI {
21814
22306
  const queryParameters = {};
21815
22307
  const headerParameters = {};
21816
22308
  if (this.configuration && this.configuration.apiKey) {
21817
- 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
+ }
21818
22315
  }
21819
22316
  const response = await this.request({
21820
22317
  path: `/auth/phone/available`,
@@ -21847,10 +22344,20 @@ var AuthPhoneApi = class extends BaseAPI {
21847
22344
  const headerParameters = {};
21848
22345
  headerParameters["Content-Type"] = "application/json";
21849
22346
  if (this.configuration && this.configuration.apiKey) {
21850
- 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
+ }
21851
22353
  }
21852
22354
  if (this.configuration && this.configuration.apiKey) {
21853
- 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
+ }
21854
22361
  }
21855
22362
  const response = await this.request({
21856
22363
  path: `/auth/phone/login/send`,
@@ -21884,10 +22391,20 @@ var AuthPhoneApi = class extends BaseAPI {
21884
22391
  const headerParameters = {};
21885
22392
  headerParameters["Content-Type"] = "application/json";
21886
22393
  if (this.configuration && this.configuration.apiKey) {
21887
- 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
+ }
21888
22400
  }
21889
22401
  if (this.configuration && this.configuration.apiKey) {
21890
- 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
+ }
21891
22408
  }
21892
22409
  const response = await this.request({
21893
22410
  path: `/auth/phone/register/send`,
@@ -21921,10 +22438,20 @@ var AuthPhoneApi = class extends BaseAPI {
21921
22438
  const headerParameters = {};
21922
22439
  headerParameters["Content-Type"] = "application/json";
21923
22440
  if (this.configuration && this.configuration.apiKey) {
21924
- 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
+ }
21925
22447
  }
21926
22448
  if (this.configuration && this.configuration.apiKey) {
21927
- 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
+ }
21928
22455
  }
21929
22456
  const response = await this.request({
21930
22457
  path: `/auth/phone/login/verify`,
@@ -21958,10 +22485,20 @@ var AuthPhoneApi = class extends BaseAPI {
21958
22485
  const headerParameters = {};
21959
22486
  headerParameters["Content-Type"] = "application/json";
21960
22487
  if (this.configuration && this.configuration.apiKey) {
21961
- 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
+ }
21962
22494
  }
21963
22495
  if (this.configuration && this.configuration.apiKey) {
21964
- 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
+ }
21965
22502
  }
21966
22503
  const response = await this.request({
21967
22504
  path: `/auth/phone/register/verify`,
@@ -22030,10 +22567,20 @@ var AuthRegistrationApi = class extends BaseAPI {
22030
22567
  const headerParameters = {};
22031
22568
  headerParameters["Content-Type"] = "application/json";
22032
22569
  if (this.configuration && this.configuration.apiKey) {
22033
- 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
+ }
22034
22576
  }
22035
22577
  if (this.configuration && this.configuration.apiKey) {
22036
- 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
+ }
22037
22584
  }
22038
22585
  const response = await this.request({
22039
22586
  path: `/auth/users/register`,
@@ -22067,7 +22614,12 @@ var AuthRegistrationApi = class extends BaseAPI {
22067
22614
  const headerParameters = {};
22068
22615
  headerParameters["Content-Type"] = "application/json";
22069
22616
  if (this.configuration && this.configuration.apiKey) {
22070
- 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
+ }
22071
22623
  }
22072
22624
  const response = await this.request({
22073
22625
  path: `/auth/users/anonymous`,
@@ -22101,7 +22653,12 @@ var AuthRegistrationApi = class extends BaseAPI {
22101
22653
  const headerParameters = {};
22102
22654
  headerParameters["Content-Type"] = "application/json";
22103
22655
  if (this.configuration && this.configuration.apiKey) {
22104
- 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
+ }
22105
22662
  }
22106
22663
  const response = await this.request({
22107
22664
  path: `/auth/game-center`,
@@ -22135,7 +22692,12 @@ var AuthRegistrationApi = class extends BaseAPI {
22135
22692
  const headerParameters = {};
22136
22693
  headerParameters["Content-Type"] = "application/json";
22137
22694
  if (this.configuration && this.configuration.apiKey) {
22138
- 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
+ }
22139
22701
  }
22140
22702
  const response = await this.request({
22141
22703
  path: `/auth/google-play-games`,
@@ -22173,7 +22735,12 @@ var AuthSessionsApi = class extends BaseAPI {
22173
22735
  }
22174
22736
  }
22175
22737
  if (this.configuration && this.configuration.apiKey) {
22176
- 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
+ }
22177
22744
  }
22178
22745
  const response = await this.request({
22179
22746
  path: `/auth/sessions`,
@@ -22206,10 +22773,20 @@ var AuthSessionsApi = class extends BaseAPI {
22206
22773
  const headerParameters = {};
22207
22774
  headerParameters["Content-Type"] = "application/json";
22208
22775
  if (this.configuration && this.configuration.apiKey) {
22209
- 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
+ }
22210
22782
  }
22211
22783
  if (this.configuration && this.configuration.apiKey) {
22212
- 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
+ }
22213
22790
  }
22214
22791
  const response = await this.request({
22215
22792
  path: `/auth/sessions/refresh`,
@@ -22236,7 +22813,12 @@ var AuthSessionsApi = class extends BaseAPI {
22236
22813
  const queryParameters = {};
22237
22814
  const headerParameters = {};
22238
22815
  if (this.configuration && this.configuration.apiKey) {
22239
- 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
+ }
22240
22822
  }
22241
22823
  if (this.configuration && this.configuration.accessToken) {
22242
22824
  const token = this.configuration.accessToken;
@@ -22246,7 +22828,12 @@ var AuthSessionsApi = class extends BaseAPI {
22246
22828
  }
22247
22829
  }
22248
22830
  if (this.configuration && this.configuration.apiKey) {
22249
- 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
+ }
22250
22837
  }
22251
22838
  const response = await this.request({
22252
22839
  path: `/auth/sessions/revoke-all`,
@@ -22279,10 +22866,20 @@ var AuthSessionsApi = class extends BaseAPI {
22279
22866
  const headerParameters = {};
22280
22867
  headerParameters["Content-Type"] = "application/json";
22281
22868
  if (this.configuration && this.configuration.apiKey) {
22282
- 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
+ }
22283
22875
  }
22284
22876
  if (this.configuration && this.configuration.apiKey) {
22285
- 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
+ }
22286
22883
  }
22287
22884
  const response = await this.request({
22288
22885
  path: `/auth/sessions/revoke`,
@@ -22319,10 +22916,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22319
22916
  const queryParameters = {};
22320
22917
  const headerParameters = {};
22321
22918
  if (this.configuration && this.configuration.apiKey) {
22322
- 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
+ }
22323
22925
  }
22324
22926
  if (this.configuration && this.configuration.apiKey) {
22325
- 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
+ }
22326
22933
  }
22327
22934
  const response = await this.request({
22328
22935
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22353,10 +22960,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22353
22960
  const queryParameters = {};
22354
22961
  const headerParameters = {};
22355
22962
  if (this.configuration && this.configuration.apiKey) {
22356
- 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
+ }
22357
22969
  }
22358
22970
  if (this.configuration && this.configuration.apiKey) {
22359
- 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
+ }
22360
22977
  }
22361
22978
  const response = await this.request({
22362
22979
  path: `/auth/users/{user_id}/auth-methods`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22391,10 +23008,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22391
23008
  }
22392
23009
  const headerParameters = {};
22393
23010
  if (this.configuration && this.configuration.apiKey) {
22394
- 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
+ }
22395
23017
  }
22396
23018
  if (this.configuration && this.configuration.apiKey) {
22397
- 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
+ }
22398
23025
  }
22399
23026
  const response = await this.request({
22400
23027
  path: `/auth/users/by-email`,
@@ -22426,10 +23053,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22426
23053
  const queryParameters = {};
22427
23054
  const headerParameters = {};
22428
23055
  if (this.configuration && this.configuration.apiKey) {
22429
- 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
+ }
22430
23062
  }
22431
23063
  if (this.configuration && this.configuration.apiKey) {
22432
- 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
+ }
22433
23070
  }
22434
23071
  const response = await this.request({
22435
23072
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22461,10 +23098,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22461
23098
  const queryParameters = {};
22462
23099
  const headerParameters = {};
22463
23100
  if (this.configuration && this.configuration.apiKey) {
22464
- 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
+ }
22465
23107
  }
22466
23108
  if (this.configuration && this.configuration.apiKey) {
22467
- 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
+ }
22468
23115
  }
22469
23116
  const response = await this.request({
22470
23117
  path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22497,10 +23144,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22497
23144
  const headerParameters = {};
22498
23145
  headerParameters["Content-Type"] = "application/json";
22499
23146
  if (this.configuration && this.configuration.apiKey) {
22500
- 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
+ }
22501
23153
  }
22502
23154
  if (this.configuration && this.configuration.apiKey) {
22503
- 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
+ }
22504
23161
  }
22505
23162
  const response = await this.request({
22506
23163
  path: `/auth/users/invite`,
@@ -22539,10 +23196,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22539
23196
  }
22540
23197
  const headerParameters = {};
22541
23198
  if (this.configuration && this.configuration.apiKey) {
22542
- 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
+ }
22543
23205
  }
22544
23206
  if (this.configuration && this.configuration.apiKey) {
22545
- 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
+ }
22546
23213
  }
22547
23214
  const response = await this.request({
22548
23215
  path: `/auth/users`,
@@ -22581,10 +23248,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22581
23248
  const headerParameters = {};
22582
23249
  headerParameters["Content-Type"] = "application/json";
22583
23250
  if (this.configuration && this.configuration.apiKey) {
22584
- 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
+ }
22585
23257
  }
22586
23258
  if (this.configuration && this.configuration.apiKey) {
22587
- 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
+ }
22588
23265
  }
22589
23266
  const response = await this.request({
22590
23267
  path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22624,10 +23301,20 @@ var AuthUserDirectoryApi = class extends BaseAPI {
22624
23301
  const headerParameters = {};
22625
23302
  headerParameters["Content-Type"] = "application/json";
22626
23303
  if (this.configuration && this.configuration.apiKey) {
22627
- 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
+ }
22628
23310
  }
22629
23311
  if (this.configuration && this.configuration.apiKey) {
22630
- 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
+ }
22631
23318
  }
22632
23319
  const response = await this.request({
22633
23320
  path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -22676,7 +23363,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22676
23363
  }
22677
23364
  }
22678
23365
  if (this.configuration && this.configuration.apiKey) {
22679
- 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
+ }
22680
23372
  }
22681
23373
  const response = await this.request({
22682
23374
  path: `/auth/users/change-password`,
@@ -22710,7 +23402,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22710
23402
  }
22711
23403
  }
22712
23404
  if (this.configuration && this.configuration.apiKey) {
22713
- 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
+ }
22714
23411
  }
22715
23412
  const response = await this.request({
22716
23413
  path: `/auth/users/me`,
@@ -22743,7 +23440,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22743
23440
  }
22744
23441
  }
22745
23442
  if (this.configuration && this.configuration.apiKey) {
22746
- 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
+ }
22747
23449
  }
22748
23450
  const response = await this.request({
22749
23451
  path: `/auth/users/me`,
@@ -22783,7 +23485,12 @@ var AuthUserProfileApi = class extends BaseAPI {
22783
23485
  }
22784
23486
  }
22785
23487
  if (this.configuration && this.configuration.apiKey) {
22786
- 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
+ }
22787
23494
  }
22788
23495
  const response = await this.request({
22789
23496
  path: `/auth/users/me`,
@@ -22827,7 +23534,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22827
23534
  }
22828
23535
  }
22829
23536
  if (this.configuration && this.configuration.apiKey) {
22830
- 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
+ }
22831
23543
  }
22832
23544
  const response = await this.request({
22833
23545
  path: `/auth/webauthn/credentials/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22860,7 +23572,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22860
23572
  }
22861
23573
  }
22862
23574
  if (this.configuration && this.configuration.apiKey) {
22863
- 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
+ }
22864
23581
  }
22865
23582
  const response = await this.request({
22866
23583
  path: `/auth/webauthn/status`,
@@ -22893,7 +23610,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22893
23610
  }
22894
23611
  }
22895
23612
  if (this.configuration && this.configuration.apiKey) {
22896
- 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
+ }
22897
23619
  }
22898
23620
  const response = await this.request({
22899
23621
  path: `/auth/webauthn/credentials`,
@@ -22939,7 +23661,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22939
23661
  }
22940
23662
  }
22941
23663
  if (this.configuration && this.configuration.apiKey) {
22942
- 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
+ }
22943
23670
  }
22944
23671
  const response = await this.request({
22945
23672
  path: `/auth/webauthn/credentials/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -22967,10 +23694,20 @@ var AuthWebAuthnApi = class extends BaseAPI {
22967
23694
  const headerParameters = {};
22968
23695
  headerParameters["Content-Type"] = "application/json";
22969
23696
  if (this.configuration && this.configuration.apiKey) {
22970
- 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
+ }
22971
23703
  }
22972
23704
  if (this.configuration && this.configuration.apiKey) {
22973
- 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
+ }
22974
23711
  }
22975
23712
  const response = await this.request({
22976
23713
  path: `/auth/webauthn/authentication/start`,
@@ -22998,7 +23735,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
22998
23735
  const headerParameters = {};
22999
23736
  headerParameters["Content-Type"] = "application/json";
23000
23737
  if (this.configuration && this.configuration.apiKey) {
23001
- 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
+ }
23002
23744
  }
23003
23745
  if (this.configuration && this.configuration.accessToken) {
23004
23746
  const token = this.configuration.accessToken;
@@ -23008,7 +23750,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23008
23750
  }
23009
23751
  }
23010
23752
  if (this.configuration && this.configuration.apiKey) {
23011
- 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
+ }
23012
23759
  }
23013
23760
  const response = await this.request({
23014
23761
  path: `/auth/webauthn/registration/start`,
@@ -23042,10 +23789,20 @@ var AuthWebAuthnApi = class extends BaseAPI {
23042
23789
  const headerParameters = {};
23043
23790
  headerParameters["Content-Type"] = "application/json";
23044
23791
  if (this.configuration && this.configuration.apiKey) {
23045
- 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
+ }
23046
23798
  }
23047
23799
  if (this.configuration && this.configuration.apiKey) {
23048
- 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
+ }
23049
23806
  }
23050
23807
  const response = await this.request({
23051
23808
  path: `/auth/webauthn/authentication/verify`,
@@ -23079,7 +23836,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23079
23836
  const headerParameters = {};
23080
23837
  headerParameters["Content-Type"] = "application/json";
23081
23838
  if (this.configuration && this.configuration.apiKey) {
23082
- 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
+ }
23083
23845
  }
23084
23846
  if (this.configuration && this.configuration.accessToken) {
23085
23847
  const token = this.configuration.accessToken;
@@ -23089,7 +23851,12 @@ var AuthWebAuthnApi = class extends BaseAPI {
23089
23851
  }
23090
23852
  }
23091
23853
  if (this.configuration && this.configuration.apiKey) {
23092
- 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
+ }
23093
23860
  }
23094
23861
  const response = await this.request({
23095
23862
  path: `/auth/webauthn/registration/verify`,
@@ -23126,7 +23893,12 @@ var DevicesApi = class extends BaseAPI {
23126
23893
  const queryParameters = {};
23127
23894
  const headerParameters = {};
23128
23895
  if (this.configuration && this.configuration.apiKey) {
23129
- 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
+ }
23130
23902
  }
23131
23903
  const response = await this.request({
23132
23904
  path: `/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23158,7 +23930,12 @@ var DevicesApi = class extends BaseAPI {
23158
23930
  const queryParameters = {};
23159
23931
  const headerParameters = {};
23160
23932
  if (this.configuration && this.configuration.apiKey) {
23161
- 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
+ }
23162
23939
  }
23163
23940
  const response = await this.request({
23164
23941
  path: `/devices/user/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
@@ -23190,7 +23967,12 @@ var DevicesApi = class extends BaseAPI {
23190
23967
  const queryParameters = {};
23191
23968
  const headerParameters = {};
23192
23969
  if (this.configuration && this.configuration.apiKey) {
23193
- 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
+ }
23194
23976
  }
23195
23977
  const response = await this.request({
23196
23978
  path: `/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23216,7 +23998,12 @@ var DevicesApi = class extends BaseAPI {
23216
23998
  const queryParameters = {};
23217
23999
  const headerParameters = {};
23218
24000
  if (this.configuration && this.configuration.apiKey) {
23219
- 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
+ }
23220
24007
  }
23221
24008
  const response = await this.request({
23222
24009
  path: `/devices/stats`,
@@ -23254,7 +24041,12 @@ var DevicesApi = class extends BaseAPI {
23254
24041
  }
23255
24042
  const headerParameters = {};
23256
24043
  if (this.configuration && this.configuration.apiKey) {
23257
- 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
+ }
23258
24050
  }
23259
24051
  const response = await this.request({
23260
24052
  path: `/devices`,
@@ -23273,7 +24065,7 @@ var DevicesApi = class extends BaseAPI {
23273
24065
  return await response.value();
23274
24066
  }
23275
24067
  /**
23276
- * 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.
23277
24069
  * Register a device
23278
24070
  */
23279
24071
  async registerDeviceRaw(requestParameters, initOverrides) {
@@ -23287,7 +24079,12 @@ var DevicesApi = class extends BaseAPI {
23287
24079
  const headerParameters = {};
23288
24080
  headerParameters["Content-Type"] = "application/json";
23289
24081
  if (this.configuration && this.configuration.apiKey) {
23290
- 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
+ }
23291
24088
  }
23292
24089
  const response = await this.request({
23293
24090
  path: `/devices`,
@@ -23299,7 +24096,7 @@ var DevicesApi = class extends BaseAPI {
23299
24096
  return new JSONApiResponse(response, (jsonValue) => DeviceResponseFromJSON(jsonValue));
23300
24097
  }
23301
24098
  /**
23302
- * 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.
23303
24100
  * Register a device
23304
24101
  */
23305
24102
  async registerDevice(registerDeviceRequest, initOverrides) {
@@ -23330,7 +24127,12 @@ var DomainsApi = class extends BaseAPI {
23330
24127
  const headerParameters = {};
23331
24128
  headerParameters["Content-Type"] = "application/json";
23332
24129
  if (this.configuration && this.configuration.apiKey) {
23333
- 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
+ }
23334
24136
  }
23335
24137
  const response = await this.request({
23336
24138
  path: `/domains`,
@@ -23363,7 +24165,12 @@ var DomainsApi = class extends BaseAPI {
23363
24165
  const queryParameters = {};
23364
24166
  const headerParameters = {};
23365
24167
  if (this.configuration && this.configuration.apiKey) {
23366
- 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
+ }
23367
24174
  }
23368
24175
  const response = await this.request({
23369
24176
  path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23395,7 +24202,12 @@ var DomainsApi = class extends BaseAPI {
23395
24202
  const queryParameters = {};
23396
24203
  const headerParameters = {};
23397
24204
  if (this.configuration && this.configuration.apiKey) {
23398
- 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
+ }
23399
24211
  }
23400
24212
  const response = await this.request({
23401
24213
  path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23427,7 +24239,12 @@ var DomainsApi = class extends BaseAPI {
23427
24239
  const queryParameters = {};
23428
24240
  const headerParameters = {};
23429
24241
  if (this.configuration && this.configuration.apiKey) {
23430
- 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
+ }
23431
24248
  }
23432
24249
  const response = await this.request({
23433
24250
  path: `/domains/{id}/verification-status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23453,7 +24270,12 @@ var DomainsApi = class extends BaseAPI {
23453
24270
  const queryParameters = {};
23454
24271
  const headerParameters = {};
23455
24272
  if (this.configuration && this.configuration.apiKey) {
23456
- 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
+ }
23457
24279
  }
23458
24280
  const response = await this.request({
23459
24281
  path: `/domains`,
@@ -23492,7 +24314,12 @@ var DomainsApi = class extends BaseAPI {
23492
24314
  const headerParameters = {};
23493
24315
  headerParameters["Content-Type"] = "application/json";
23494
24316
  if (this.configuration && this.configuration.apiKey) {
23495
- 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
+ }
23496
24323
  }
23497
24324
  const response = await this.request({
23498
24325
  path: `/domains/{id}/inbound`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23525,7 +24352,12 @@ var DomainsApi = class extends BaseAPI {
23525
24352
  const queryParameters = {};
23526
24353
  const headerParameters = {};
23527
24354
  if (this.configuration && this.configuration.apiKey) {
23528
- 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
+ }
23529
24361
  }
23530
24362
  const response = await this.request({
23531
24363
  path: `/domains/{id}/verify`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23561,7 +24393,12 @@ var EmailsApi = class extends BaseAPI {
23561
24393
  const queryParameters = {};
23562
24394
  const headerParameters = {};
23563
24395
  if (this.configuration && this.configuration.apiKey) {
23564
- 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
+ }
23565
24402
  }
23566
24403
  const response = await this.request({
23567
24404
  path: `/emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23593,7 +24430,12 @@ var EmailsApi = class extends BaseAPI {
23593
24430
  const queryParameters = {};
23594
24431
  const headerParameters = {};
23595
24432
  if (this.configuration && this.configuration.apiKey) {
23596
- 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
+ }
23597
24439
  }
23598
24440
  const response = await this.request({
23599
24441
  path: `/emails/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23625,7 +24467,12 @@ var EmailsApi = class extends BaseAPI {
23625
24467
  const queryParameters = {};
23626
24468
  const headerParameters = {};
23627
24469
  if (this.configuration && this.configuration.apiKey) {
23628
- 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
+ }
23629
24476
  }
23630
24477
  const response = await this.request({
23631
24478
  path: `/emails/{id}/tracking`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23663,7 +24510,12 @@ var EmailsApi = class extends BaseAPI {
23663
24510
  }
23664
24511
  const headerParameters = {};
23665
24512
  if (this.configuration && this.configuration.apiKey) {
23666
- 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
+ }
23667
24519
  }
23668
24520
  const response = await this.request({
23669
24521
  path: `/emails`,
@@ -23696,7 +24548,12 @@ var EmailsApi = class extends BaseAPI {
23696
24548
  const headerParameters = {};
23697
24549
  headerParameters["Content-Type"] = "application/json";
23698
24550
  if (this.configuration && this.configuration.apiKey) {
23699
- 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
+ }
23700
24557
  }
23701
24558
  const response = await this.request({
23702
24559
  path: `/emails/batch`,
@@ -23730,7 +24587,12 @@ var EmailsApi = class extends BaseAPI {
23730
24587
  const headerParameters = {};
23731
24588
  headerParameters["Content-Type"] = "application/json";
23732
24589
  if (this.configuration && this.configuration.apiKey) {
23733
- 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
+ }
23734
24596
  }
23735
24597
  const response = await this.request({
23736
24598
  path: `/emails`,
@@ -23777,7 +24639,12 @@ var ExecutionsApi = class extends BaseAPI {
23777
24639
  const queryParameters = {};
23778
24640
  const headerParameters = {};
23779
24641
  if (this.configuration && this.configuration.apiKey) {
23780
- 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
+ }
23781
24648
  }
23782
24649
  const response = await this.request({
23783
24650
  path: `/executions/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23809,7 +24676,12 @@ var ExecutionsApi = class extends BaseAPI {
23809
24676
  const queryParameters = {};
23810
24677
  const headerParameters = {};
23811
24678
  if (this.configuration && this.configuration.apiKey) {
23812
- 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
+ }
23813
24685
  }
23814
24686
  const response = await this.request({
23815
24687
  path: `/executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23841,7 +24713,12 @@ var ExecutionsApi = class extends BaseAPI {
23841
24713
  const queryParameters = {};
23842
24714
  const headerParameters = {};
23843
24715
  if (this.configuration && this.configuration.apiKey) {
23844
- 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
+ }
23845
24722
  }
23846
24723
  const response = await this.request({
23847
24724
  path: `/executions/{id}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23883,7 +24760,12 @@ var InboundEmailApi = class extends BaseAPI {
23883
24760
  const queryParameters = {};
23884
24761
  const headerParameters = {};
23885
24762
  if (this.configuration && this.configuration.apiKey) {
23886
- 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
+ }
23887
24769
  }
23888
24770
  const response = await this.request({
23889
24771
  path: `/inbound-emails/{id}/attachments/{attachmentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters["attachmentId"]))),
@@ -23915,7 +24797,12 @@ var InboundEmailApi = class extends BaseAPI {
23915
24797
  const queryParameters = {};
23916
24798
  const headerParameters = {};
23917
24799
  if (this.configuration && this.configuration.apiKey) {
23918
- 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
+ }
23919
24806
  }
23920
24807
  const response = await this.request({
23921
24808
  path: `/inbound-emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -23956,7 +24843,12 @@ var InboundEmailApi = class extends BaseAPI {
23956
24843
  }
23957
24844
  const headerParameters = {};
23958
24845
  if (this.configuration && this.configuration.apiKey) {
23959
- 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
+ }
23960
24852
  }
23961
24853
  const response = await this.request({
23962
24854
  path: `/inbound-emails`,
@@ -24000,7 +24892,12 @@ var InboxApi = class extends BaseAPI {
24000
24892
  const headerParameters = {};
24001
24893
  headerParameters["Content-Type"] = "application/json";
24002
24894
  if (this.configuration && this.configuration.apiKey) {
24003
- 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
+ }
24004
24901
  }
24005
24902
  const response = await this.request({
24006
24903
  path: `/inbox/{id}/archive`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24073,7 +24970,12 @@ var InboxApi = class extends BaseAPI {
24073
24970
  }
24074
24971
  const headerParameters = {};
24075
24972
  if (this.configuration && this.configuration.apiKey) {
24076
- 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
+ }
24077
24979
  }
24078
24980
  const response = await this.request({
24079
24981
  path: `/inbox/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24138,7 +25040,12 @@ var InboxApi = class extends BaseAPI {
24138
25040
  const headerParameters = {};
24139
25041
  headerParameters["Content-Type"] = "application/json";
24140
25042
  if (this.configuration && this.configuration.apiKey) {
24141
- 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
+ }
24142
25049
  }
24143
25050
  const response = await this.request({
24144
25051
  path: `/subscriber-inbox/token`,
@@ -24177,7 +25084,12 @@ var InboxApi = class extends BaseAPI {
24177
25084
  }
24178
25085
  const headerParameters = {};
24179
25086
  if (this.configuration && this.configuration.apiKey) {
24180
- 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
+ }
24181
25093
  }
24182
25094
  const response = await this.request({
24183
25095
  path: `/inbox/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24305,7 +25217,12 @@ var InboxApi = class extends BaseAPI {
24305
25217
  }
24306
25218
  const headerParameters = {};
24307
25219
  if (this.configuration && this.configuration.apiKey) {
24308
- 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
+ }
24309
25226
  }
24310
25227
  const response = await this.request({
24311
25228
  path: `/inbox/unread-count`,
@@ -24349,7 +25266,12 @@ var InboxApi = class extends BaseAPI {
24349
25266
  }
24350
25267
  const headerParameters = {};
24351
25268
  if (this.configuration && this.configuration.apiKey) {
24352
- 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
+ }
24353
25275
  }
24354
25276
  const response = await this.request({
24355
25277
  path: `/inbox/all`,
@@ -24399,7 +25321,12 @@ var InboxApi = class extends BaseAPI {
24399
25321
  }
24400
25322
  const headerParameters = {};
24401
25323
  if (this.configuration && this.configuration.apiKey) {
24402
- 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
+ }
24403
25330
  }
24404
25331
  const response = await this.request({
24405
25332
  path: `/inbox`,
@@ -24477,7 +25404,12 @@ var InboxApi = class extends BaseAPI {
24477
25404
  const headerParameters = {};
24478
25405
  headerParameters["Content-Type"] = "application/json";
24479
25406
  if (this.configuration && this.configuration.apiKey) {
24480
- 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
+ }
24481
25413
  }
24482
25414
  const response = await this.request({
24483
25415
  path: `/inbox/read-all`,
@@ -24541,7 +25473,12 @@ var InboxApi = class extends BaseAPI {
24541
25473
  const headerParameters = {};
24542
25474
  headerParameters["Content-Type"] = "application/json";
24543
25475
  if (this.configuration && this.configuration.apiKey) {
24544
- 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
+ }
24545
25482
  }
24546
25483
  const response = await this.request({
24547
25484
  path: `/inbox/{id}/read`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24609,7 +25546,12 @@ var InboxApi = class extends BaseAPI {
24609
25546
  const headerParameters = {};
24610
25547
  headerParameters["Content-Type"] = "application/json";
24611
25548
  if (this.configuration && this.configuration.apiKey) {
24612
- 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
+ }
24613
25555
  }
24614
25556
  const response = await this.request({
24615
25557
  path: `/inbox/send/batch`,
@@ -24643,7 +25585,12 @@ var InboxApi = class extends BaseAPI {
24643
25585
  const headerParameters = {};
24644
25586
  headerParameters["Content-Type"] = "application/json";
24645
25587
  if (this.configuration && this.configuration.apiKey) {
24646
- 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
+ }
24647
25594
  }
24648
25595
  const response = await this.request({
24649
25596
  path: `/inbox/send`,
@@ -24723,7 +25670,12 @@ var PushApi = class extends BaseAPI {
24723
25670
  const queryParameters = {};
24724
25671
  const headerParameters = {};
24725
25672
  if (this.configuration && this.configuration.apiKey) {
24726
- 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
+ }
24727
25679
  }
24728
25680
  const response = await this.request({
24729
25681
  path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24749,7 +25701,12 @@ var PushApi = class extends BaseAPI {
24749
25701
  const queryParameters = {};
24750
25702
  const headerParameters = {};
24751
25703
  if (this.configuration && this.configuration.apiKey) {
24752
- 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
+ }
24753
25710
  }
24754
25711
  const response = await this.request({
24755
25712
  path: `/push/stats`,
@@ -24781,7 +25738,12 @@ var PushApi = class extends BaseAPI {
24781
25738
  const queryParameters = {};
24782
25739
  const headerParameters = {};
24783
25740
  if (this.configuration && this.configuration.apiKey) {
24784
- 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
+ }
24785
25747
  }
24786
25748
  const response = await this.request({
24787
25749
  path: `/push/devices/{id}/topics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -24822,7 +25784,12 @@ var PushApi = class extends BaseAPI {
24822
25784
  }
24823
25785
  const headerParameters = {};
24824
25786
  if (this.configuration && this.configuration.apiKey) {
24825
- 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
+ }
24826
25793
  }
24827
25794
  const response = await this.request({
24828
25795
  path: `/push`,
@@ -24860,7 +25827,12 @@ var PushApi = class extends BaseAPI {
24860
25827
  }
24861
25828
  const headerParameters = {};
24862
25829
  if (this.configuration && this.configuration.apiKey) {
24863
- 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
+ }
24864
25836
  }
24865
25837
  const response = await this.request({
24866
25838
  path: `/push/topics/{key}/devices`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -24893,7 +25865,12 @@ var PushApi = class extends BaseAPI {
24893
25865
  const headerParameters = {};
24894
25866
  headerParameters["Content-Type"] = "application/json";
24895
25867
  if (this.configuration && this.configuration.apiKey) {
24896
- 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
+ }
24897
25874
  }
24898
25875
  const response = await this.request({
24899
25876
  path: `/push`,
@@ -24933,7 +25910,12 @@ var PushApi = class extends BaseAPI {
24933
25910
  const headerParameters = {};
24934
25911
  headerParameters["Content-Type"] = "application/json";
24935
25912
  if (this.configuration && this.configuration.apiKey) {
24936
- 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
+ }
24937
25919
  }
24938
25920
  const response = await this.request({
24939
25921
  path: `/push/topics/{key}/send`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -24973,7 +25955,12 @@ var PushApi = class extends BaseAPI {
24973
25955
  const headerParameters = {};
24974
25956
  headerParameters["Content-Type"] = "application/json";
24975
25957
  if (this.configuration && this.configuration.apiKey) {
24976
- 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
+ }
24977
25964
  }
24978
25965
  const response = await this.request({
24979
25966
  path: `/push/topics/{key}/subscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -25013,7 +26000,12 @@ var PushApi = class extends BaseAPI {
25013
26000
  const headerParameters = {};
25014
26001
  headerParameters["Content-Type"] = "application/json";
25015
26002
  if (this.configuration && this.configuration.apiKey) {
25016
- 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
+ }
25017
26009
  }
25018
26010
  const response = await this.request({
25019
26011
  path: `/push/topics/{key}/unsubscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -25051,7 +26043,12 @@ var SMSApi = class extends BaseAPI {
25051
26043
  const queryParameters = {};
25052
26044
  const headerParameters = {};
25053
26045
  if (this.configuration && this.configuration.apiKey) {
25054
- 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
+ }
25055
26052
  }
25056
26053
  const response = await this.request({
25057
26054
  path: `/sms/config`,
@@ -25083,7 +26080,12 @@ var SMSApi = class extends BaseAPI {
25083
26080
  const queryParameters = {};
25084
26081
  const headerParameters = {};
25085
26082
  if (this.configuration && this.configuration.apiKey) {
25086
- 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
+ }
25087
26089
  }
25088
26090
  const response = await this.request({
25089
26091
  path: `/sms/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25109,7 +26111,12 @@ var SMSApi = class extends BaseAPI {
25109
26111
  const queryParameters = {};
25110
26112
  const headerParameters = {};
25111
26113
  if (this.configuration && this.configuration.apiKey) {
25112
- 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
+ }
25113
26120
  }
25114
26121
  const response = await this.request({
25115
26122
  path: `/sms/config`,
@@ -25135,7 +26142,12 @@ var SMSApi = class extends BaseAPI {
25135
26142
  const queryParameters = {};
25136
26143
  const headerParameters = {};
25137
26144
  if (this.configuration && this.configuration.apiKey) {
25138
- 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
+ }
25139
26151
  }
25140
26152
  const response = await this.request({
25141
26153
  path: `/sms/inbound-webhook`,
@@ -25172,7 +26184,12 @@ var SMSApi = class extends BaseAPI {
25172
26184
  }
25173
26185
  const headerParameters = {};
25174
26186
  if (this.configuration && this.configuration.apiKey) {
25175
- 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
+ }
25176
26193
  }
25177
26194
  const response = await this.request({
25178
26195
  path: `/sms`,
@@ -25205,7 +26222,12 @@ var SMSApi = class extends BaseAPI {
25205
26222
  const headerParameters = {};
25206
26223
  headerParameters["Content-Type"] = "application/json";
25207
26224
  if (this.configuration && this.configuration.apiKey) {
25208
- 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
+ }
25209
26231
  }
25210
26232
  const response = await this.request({
25211
26233
  path: `/sms/batch`,
@@ -25239,7 +26261,12 @@ var SMSApi = class extends BaseAPI {
25239
26261
  const headerParameters = {};
25240
26262
  headerParameters["Content-Type"] = "application/json";
25241
26263
  if (this.configuration && this.configuration.apiKey) {
25242
- 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
+ }
25243
26270
  }
25244
26271
  const response = await this.request({
25245
26272
  path: `/sms`,
@@ -25273,7 +26300,12 @@ var SMSApi = class extends BaseAPI {
25273
26300
  const headerParameters = {};
25274
26301
  headerParameters["Content-Type"] = "application/json";
25275
26302
  if (this.configuration && this.configuration.apiKey) {
25276
- 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
+ }
25277
26309
  }
25278
26310
  const response = await this.request({
25279
26311
  path: `/sms/test`,
@@ -25307,7 +26339,12 @@ var SMSApi = class extends BaseAPI {
25307
26339
  const headerParameters = {};
25308
26340
  headerParameters["Content-Type"] = "application/json";
25309
26341
  if (this.configuration && this.configuration.apiKey) {
25310
- 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
+ }
25311
26348
  }
25312
26349
  const response = await this.request({
25313
26350
  path: `/sms/config`,
@@ -25334,7 +26371,12 @@ var SMSApi = class extends BaseAPI {
25334
26371
  const queryParameters = {};
25335
26372
  const headerParameters = {};
25336
26373
  if (this.configuration && this.configuration.apiKey) {
25337
- 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
+ }
25338
26380
  }
25339
26381
  const response = await this.request({
25340
26382
  path: `/sms/config/verify`,
@@ -25378,7 +26420,12 @@ var SlackApi = class extends BaseAPI {
25378
26420
  const queryParameters = {};
25379
26421
  const headerParameters = {};
25380
26422
  if (this.configuration && this.configuration.apiKey) {
25381
- 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
+ }
25382
26429
  }
25383
26430
  const response = await this.request({
25384
26431
  path: `/slack/messages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25419,7 +26466,12 @@ var SlackApi = class extends BaseAPI {
25419
26466
  }
25420
26467
  const headerParameters = {};
25421
26468
  if (this.configuration && this.configuration.apiKey) {
25422
- 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
+ }
25423
26475
  }
25424
26476
  const response = await this.request({
25425
26477
  path: `/slack/messages`,
@@ -25452,7 +26504,12 @@ var SlackApi = class extends BaseAPI {
25452
26504
  const headerParameters = {};
25453
26505
  headerParameters["Content-Type"] = "application/json";
25454
26506
  if (this.configuration && this.configuration.apiKey) {
25455
- 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
+ }
25456
26513
  }
25457
26514
  const response = await this.request({
25458
26515
  path: `/slack/send`,
@@ -25496,7 +26553,12 @@ var SubscribersApi = class extends BaseAPI {
25496
26553
  const headerParameters = {};
25497
26554
  headerParameters["Content-Type"] = "application/json";
25498
26555
  if (this.configuration && this.configuration.apiKey) {
25499
- 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
+ }
25500
26562
  }
25501
26563
  const response = await this.request({
25502
26564
  path: `/subscribers/categories`,
@@ -25529,7 +26591,12 @@ var SubscribersApi = class extends BaseAPI {
25529
26591
  const headerParameters = {};
25530
26592
  headerParameters["Content-Type"] = "application/json";
25531
26593
  if (this.configuration && this.configuration.apiKey) {
25532
- 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
+ }
25533
26600
  }
25534
26601
  const response = await this.request({
25535
26602
  path: `/subscribers`,
@@ -25561,7 +26628,12 @@ var SubscribersApi = class extends BaseAPI {
25561
26628
  const queryParameters = {};
25562
26629
  const headerParameters = {};
25563
26630
  if (this.configuration && this.configuration.apiKey) {
25564
- 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
+ }
25565
26637
  }
25566
26638
  const response = await this.request({
25567
26639
  path: `/subscribers/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25591,7 +26663,12 @@ var SubscribersApi = class extends BaseAPI {
25591
26663
  const queryParameters = {};
25592
26664
  const headerParameters = {};
25593
26665
  if (this.configuration && this.configuration.apiKey) {
25594
- 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
+ }
25595
26672
  }
25596
26673
  const response = await this.request({
25597
26674
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25621,7 +26698,12 @@ var SubscribersApi = class extends BaseAPI {
25621
26698
  const queryParameters = {};
25622
26699
  const headerParameters = {};
25623
26700
  if (this.configuration && this.configuration.apiKey) {
25624
- 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
+ }
25625
26707
  }
25626
26708
  const response = await this.request({
25627
26709
  path: `/subscribers/categories/{idOrSlug}`.replace(`{${"idOrSlug"}}`, encodeURIComponent(String(requestParameters["idOrSlug"]))),
@@ -25651,7 +26733,12 @@ var SubscribersApi = class extends BaseAPI {
25651
26733
  const queryParameters = {};
25652
26734
  const headerParameters = {};
25653
26735
  if (this.configuration && this.configuration.apiKey) {
25654
- 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
+ }
25655
26742
  }
25656
26743
  const response = await this.request({
25657
26744
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25681,7 +26768,12 @@ var SubscribersApi = class extends BaseAPI {
25681
26768
  const queryParameters = {};
25682
26769
  const headerParameters = {};
25683
26770
  if (this.configuration && this.configuration.apiKey) {
25684
- 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
+ }
25685
26777
  }
25686
26778
  const response = await this.request({
25687
26779
  path: `/subscribers/by-external-id/{externalId}`.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters["externalId"]))),
@@ -25711,7 +26803,12 @@ var SubscribersApi = class extends BaseAPI {
25711
26803
  const queryParameters = {};
25712
26804
  const headerParameters = {};
25713
26805
  if (this.configuration && this.configuration.apiKey) {
25714
- 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
+ }
25715
26812
  }
25716
26813
  const response = await this.request({
25717
26814
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25748,7 +26845,12 @@ var SubscribersApi = class extends BaseAPI {
25748
26845
  }
25749
26846
  const headerParameters = {};
25750
26847
  if (this.configuration && this.configuration.apiKey) {
25751
- 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
+ }
25752
26854
  }
25753
26855
  const response = await this.request({
25754
26856
  path: `/subscribers/{id}/consent/history`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25782,7 +26884,12 @@ var SubscribersApi = class extends BaseAPI {
25782
26884
  }
25783
26885
  const headerParameters = {};
25784
26886
  if (this.configuration && this.configuration.apiKey) {
25785
- 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
+ }
25786
26893
  }
25787
26894
  const response = await this.request({
25788
26895
  path: `/subscribers/{id}/preferences`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25812,7 +26919,12 @@ var SubscribersApi = class extends BaseAPI {
25812
26919
  const queryParameters = {};
25813
26920
  const headerParameters = {};
25814
26921
  if (this.configuration && this.configuration.apiKey) {
25815
- 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
+ }
25816
26928
  }
25817
26929
  const response = await this.request({
25818
26930
  path: `/subscribers/{id}/unsubscribes`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25836,7 +26948,12 @@ var SubscribersApi = class extends BaseAPI {
25836
26948
  const queryParameters = {};
25837
26949
  const headerParameters = {};
25838
26950
  if (this.configuration && this.configuration.apiKey) {
25839
- 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
+ }
25840
26957
  }
25841
26958
  const response = await this.request({
25842
26959
  path: `/subscribers/categories`,
@@ -25872,7 +26989,12 @@ var SubscribersApi = class extends BaseAPI {
25872
26989
  }
25873
26990
  const headerParameters = {};
25874
26991
  if (this.configuration && this.configuration.apiKey) {
25875
- 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
+ }
25876
26998
  }
25877
26999
  const response = await this.request({
25878
27000
  path: `/subscribers`,
@@ -25909,7 +27031,12 @@ var SubscribersApi = class extends BaseAPI {
25909
27031
  const headerParameters = {};
25910
27032
  headerParameters["Content-Type"] = "application/json";
25911
27033
  if (this.configuration && this.configuration.apiKey) {
25912
- 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
+ }
25913
27040
  }
25914
27041
  const response = await this.request({
25915
27042
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25941,7 +27068,12 @@ var SubscribersApi = class extends BaseAPI {
25941
27068
  const headerParameters = {};
25942
27069
  headerParameters["Content-Type"] = "application/json";
25943
27070
  if (this.configuration && this.configuration.apiKey) {
25944
- 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
+ }
25945
27077
  }
25946
27078
  const response = await this.request({
25947
27079
  path: `/subscribers/{id}/resubscribe`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -25980,7 +27112,12 @@ var SubscribersApi = class extends BaseAPI {
25980
27112
  const headerParameters = {};
25981
27113
  headerParameters["Content-Type"] = "application/json";
25982
27114
  if (this.configuration && this.configuration.apiKey) {
25983
- 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
+ }
25984
27121
  }
25985
27122
  const response = await this.request({
25986
27123
  path: `/subscribers/{id}/preferences`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26013,7 +27150,12 @@ var SubscribersApi = class extends BaseAPI {
26013
27150
  const headerParameters = {};
26014
27151
  headerParameters["Content-Type"] = "application/json";
26015
27152
  if (this.configuration && this.configuration.apiKey) {
26016
- 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
+ }
26017
27159
  }
26018
27160
  const response = await this.request({
26019
27161
  path: `/subscribers/{id}/unsubscribe`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26051,7 +27193,12 @@ var SubscribersApi = class extends BaseAPI {
26051
27193
  const headerParameters = {};
26052
27194
  headerParameters["Content-Type"] = "application/json";
26053
27195
  if (this.configuration && this.configuration.apiKey) {
26054
- 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
+ }
26055
27202
  }
26056
27203
  const response = await this.request({
26057
27204
  path: `/subscribers/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26089,7 +27236,12 @@ var SubscribersApi = class extends BaseAPI {
26089
27236
  const headerParameters = {};
26090
27237
  headerParameters["Content-Type"] = "application/json";
26091
27238
  if (this.configuration && this.configuration.apiKey) {
26092
- 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
+ }
26093
27245
  }
26094
27246
  const response = await this.request({
26095
27247
  path: `/subscribers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26122,7 +27274,12 @@ var SubscribersApi = class extends BaseAPI {
26122
27274
  const headerParameters = {};
26123
27275
  headerParameters["Content-Type"] = "application/json";
26124
27276
  if (this.configuration && this.configuration.apiKey) {
26125
- 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
+ }
26126
27283
  }
26127
27284
  const response = await this.request({
26128
27285
  path: `/subscribers/{id}/consent`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26165,7 +27322,12 @@ var TemplatesApi = class extends BaseAPI {
26165
27322
  const headerParameters = {};
26166
27323
  headerParameters["Content-Type"] = "application/json";
26167
27324
  if (this.configuration && this.configuration.apiKey) {
26168
- 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
+ }
26169
27331
  }
26170
27332
  const response = await this.request({
26171
27333
  path: `/templates`,
@@ -26198,7 +27360,12 @@ var TemplatesApi = class extends BaseAPI {
26198
27360
  const queryParameters = {};
26199
27361
  const headerParameters = {};
26200
27362
  if (this.configuration && this.configuration.apiKey) {
26201
- 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
+ }
26202
27369
  }
26203
27370
  const response = await this.request({
26204
27371
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26230,7 +27397,12 @@ var TemplatesApi = class extends BaseAPI {
26230
27397
  const queryParameters = {};
26231
27398
  const headerParameters = {};
26232
27399
  if (this.configuration && this.configuration.apiKey) {
26233
- 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
+ }
26234
27406
  }
26235
27407
  const response = await this.request({
26236
27408
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26262,7 +27434,12 @@ var TemplatesApi = class extends BaseAPI {
26262
27434
  }
26263
27435
  const headerParameters = {};
26264
27436
  if (this.configuration && this.configuration.apiKey) {
26265
- 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
+ }
26266
27443
  }
26267
27444
  const response = await this.request({
26268
27445
  path: `/templates`,
@@ -26301,7 +27478,12 @@ var TemplatesApi = class extends BaseAPI {
26301
27478
  const headerParameters = {};
26302
27479
  headerParameters["Content-Type"] = "application/json";
26303
27480
  if (this.configuration && this.configuration.apiKey) {
26304
- 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
+ }
26305
27487
  }
26306
27488
  const response = await this.request({
26307
27489
  path: `/templates/{id}/render`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26385,7 +27567,12 @@ var TemplatesApi = class extends BaseAPI {
26385
27567
  const headerParameters = {};
26386
27568
  headerParameters["Content-Type"] = "application/json";
26387
27569
  if (this.configuration && this.configuration.apiKey) {
26388
- 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
+ }
26389
27576
  }
26390
27577
  const response = await this.request({
26391
27578
  path: `/templates/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -26429,7 +27616,12 @@ var TopicsApi = class extends BaseAPI {
26429
27616
  const headerParameters = {};
26430
27617
  headerParameters["Content-Type"] = "application/json";
26431
27618
  if (this.configuration && this.configuration.apiKey) {
26432
- 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
+ }
26433
27625
  }
26434
27626
  const response = await this.request({
26435
27627
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26463,7 +27655,12 @@ var TopicsApi = class extends BaseAPI {
26463
27655
  const headerParameters = {};
26464
27656
  headerParameters["Content-Type"] = "application/json";
26465
27657
  if (this.configuration && this.configuration.apiKey) {
26466
- 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
+ }
26467
27664
  }
26468
27665
  const response = await this.request({
26469
27666
  path: `/topics`,
@@ -26496,7 +27693,12 @@ var TopicsApi = class extends BaseAPI {
26496
27693
  const queryParameters = {};
26497
27694
  const headerParameters = {};
26498
27695
  if (this.configuration && this.configuration.apiKey) {
26499
- 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
+ }
26500
27702
  }
26501
27703
  const response = await this.request({
26502
27704
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26528,7 +27730,12 @@ var TopicsApi = class extends BaseAPI {
26528
27730
  const queryParameters = {};
26529
27731
  const headerParameters = {};
26530
27732
  if (this.configuration && this.configuration.apiKey) {
26531
- 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
+ }
26532
27739
  }
26533
27740
  const response = await this.request({
26534
27741
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26554,7 +27761,12 @@ var TopicsApi = class extends BaseAPI {
26554
27761
  const queryParameters = {};
26555
27762
  const headerParameters = {};
26556
27763
  if (this.configuration && this.configuration.apiKey) {
26557
- 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
+ }
26558
27770
  }
26559
27771
  const response = await this.request({
26560
27772
  path: `/topics/stats`,
@@ -26592,7 +27804,12 @@ var TopicsApi = class extends BaseAPI {
26592
27804
  }
26593
27805
  const headerParameters = {};
26594
27806
  if (this.configuration && this.configuration.apiKey) {
26595
- 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
+ }
26596
27813
  }
26597
27814
  const response = await this.request({
26598
27815
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26627,7 +27844,12 @@ var TopicsApi = class extends BaseAPI {
26627
27844
  }
26628
27845
  const headerParameters = {};
26629
27846
  if (this.configuration && this.configuration.apiKey) {
26630
- 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
+ }
26631
27853
  }
26632
27854
  const response = await this.request({
26633
27855
  path: `/topics`,
@@ -26666,7 +27888,12 @@ var TopicsApi = class extends BaseAPI {
26666
27888
  const headerParameters = {};
26667
27889
  headerParameters["Content-Type"] = "application/json";
26668
27890
  if (this.configuration && this.configuration.apiKey) {
26669
- 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
+ }
26670
27897
  }
26671
27898
  const response = await this.request({
26672
27899
  path: `/topics/{key}/subscribers`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26706,7 +27933,12 @@ var TopicsApi = class extends BaseAPI {
26706
27933
  const headerParameters = {};
26707
27934
  headerParameters["Content-Type"] = "application/json";
26708
27935
  if (this.configuration && this.configuration.apiKey) {
26709
- 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
+ }
26710
27942
  }
26711
27943
  const response = await this.request({
26712
27944
  path: `/topics/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -26744,7 +27976,12 @@ var UtilityApi = class extends BaseAPI {
26744
27976
  const headerParameters = {};
26745
27977
  headerParameters["Content-Type"] = "application/json";
26746
27978
  if (this.configuration && this.configuration.apiKey) {
26747
- 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
+ }
26748
27985
  }
26749
27986
  const response = await this.request({
26750
27987
  path: `/auth/password-strength`,
@@ -26771,7 +28008,12 @@ var UtilityApi = class extends BaseAPI {
26771
28008
  const queryParameters = {};
26772
28009
  const headerParameters = {};
26773
28010
  if (this.configuration && this.configuration.apiKey) {
26774
- 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
+ }
26775
28017
  }
26776
28018
  const response = await this.request({
26777
28019
  path: `/auth/password-requirements`,
@@ -26808,7 +28050,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26808
28050
  const headerParameters = {};
26809
28051
  headerParameters["Content-Type"] = "application/json";
26810
28052
  if (this.configuration && this.configuration.apiKey) {
26811
- 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
+ }
26812
28059
  }
26813
28060
  const response = await this.request({
26814
28061
  path: `/v1/waas/applications`,
@@ -26841,7 +28088,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26841
28088
  const queryParameters = {};
26842
28089
  const headerParameters = {};
26843
28090
  if (this.configuration && this.configuration.apiKey) {
26844
- 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
+ }
26845
28097
  }
26846
28098
  const response = await this.request({
26847
28099
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -26872,7 +28124,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26872
28124
  const queryParameters = {};
26873
28125
  const headerParameters = {};
26874
28126
  if (this.configuration && this.configuration.apiKey) {
26875
- 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
+ }
26876
28133
  }
26877
28134
  const response = await this.request({
26878
28135
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -26904,7 +28161,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26904
28161
  const queryParameters = {};
26905
28162
  const headerParameters = {};
26906
28163
  if (this.configuration && this.configuration.apiKey) {
26907
- 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
+ }
26908
28170
  }
26909
28171
  const response = await this.request({
26910
28172
  path: `/v1/waas/applications/{appId}/usage`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -26939,7 +28201,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26939
28201
  }
26940
28202
  const headerParameters = {};
26941
28203
  if (this.configuration && this.configuration.apiKey) {
26942
- 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
+ }
26943
28210
  }
26944
28211
  const response = await this.request({
26945
28212
  path: `/v1/waas/applications`,
@@ -26978,7 +28245,12 @@ var WaaSApplicationsApi = class extends BaseAPI {
26978
28245
  const headerParameters = {};
26979
28246
  headerParameters["Content-Type"] = "application/json";
26980
28247
  if (this.configuration && this.configuration.apiKey) {
26981
- 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
+ }
26982
28254
  }
26983
28255
  const response = await this.request({
26984
28256
  path: `/v1/waas/applications/{appId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27026,7 +28298,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27026
28298
  const queryParameters = {};
27027
28299
  const headerParameters = {};
27028
28300
  if (this.configuration && this.configuration.apiKey) {
27029
- 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
+ }
27030
28307
  }
27031
28308
  const response = await this.request({
27032
28309
  path: `/v1/waas/applications/{appId}/deliveries/{deliveryId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -27073,7 +28350,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27073
28350
  }
27074
28351
  const headerParameters = {};
27075
28352
  if (this.configuration && this.configuration.apiKey) {
27076
- 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
+ }
27077
28359
  }
27078
28360
  const response = await this.request({
27079
28361
  path: `/v1/waas/applications/{appId}/deliveries`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27120,7 +28402,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27120
28402
  }
27121
28403
  const headerParameters = {};
27122
28404
  if (this.configuration && this.configuration.apiKey) {
27123
- 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
+ }
27124
28411
  }
27125
28412
  const response = await this.request({
27126
28413
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/deliveries`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27158,7 +28445,12 @@ var WaaSDeliveriesApi = class extends BaseAPI {
27158
28445
  const queryParameters = {};
27159
28446
  const headerParameters = {};
27160
28447
  if (this.configuration && this.configuration.apiKey) {
27161
- 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
+ }
27162
28454
  }
27163
28455
  const response = await this.request({
27164
28456
  path: `/v1/waas/applications/{appId}/deliveries/{deliveryId}/retry`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -27208,7 +28500,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27208
28500
  const queryParameters = {};
27209
28501
  const headerParameters = {};
27210
28502
  if (this.configuration && this.configuration.apiKey) {
27211
- 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
+ }
27212
28509
  }
27213
28510
  const response = await this.request({
27214
28511
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/circuit/close`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27247,7 +28544,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27247
28544
  const headerParameters = {};
27248
28545
  headerParameters["Content-Type"] = "application/json";
27249
28546
  if (this.configuration && this.configuration.apiKey) {
27250
- 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
+ }
27251
28553
  }
27252
28554
  const response = await this.request({
27253
28555
  path: `/v1/waas/applications/{appId}/endpoints`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27286,7 +28588,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27286
28588
  const queryParameters = {};
27287
28589
  const headerParameters = {};
27288
28590
  if (this.configuration && this.configuration.apiKey) {
27289
- 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
+ }
27290
28597
  }
27291
28598
  const response = await this.request({
27292
28599
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27322,7 +28629,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27322
28629
  const queryParameters = {};
27323
28630
  const headerParameters = {};
27324
28631
  if (this.configuration && this.configuration.apiKey) {
27325
- 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
+ }
27326
28638
  }
27327
28639
  const response = await this.request({
27328
28640
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27359,7 +28671,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27359
28671
  const queryParameters = {};
27360
28672
  const headerParameters = {};
27361
28673
  if (this.configuration && this.configuration.apiKey) {
27362
- 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
+ }
27363
28680
  }
27364
28681
  const response = await this.request({
27365
28682
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/circuit`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27397,7 +28714,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27397
28714
  const queryParameters = {};
27398
28715
  const headerParameters = {};
27399
28716
  if (this.configuration && this.configuration.apiKey) {
27400
- 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
+ }
27401
28723
  }
27402
28724
  const response = await this.request({
27403
28725
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/metrics`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27441,7 +28763,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27441
28763
  }
27442
28764
  const headerParameters = {};
27443
28765
  if (this.configuration && this.configuration.apiKey) {
27444
- 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
+ }
27445
28772
  }
27446
28773
  const response = await this.request({
27447
28774
  path: `/v1/waas/applications/{appId}/endpoints`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27479,7 +28806,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27479
28806
  const queryParameters = {};
27480
28807
  const headerParameters = {};
27481
28808
  if (this.configuration && this.configuration.apiKey) {
27482
- 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
+ }
27483
28815
  }
27484
28816
  const response = await this.request({
27485
28817
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}/rotate-secret`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27523,7 +28855,12 @@ var WaaSEndpointsApi = class extends BaseAPI {
27523
28855
  const headerParameters = {};
27524
28856
  headerParameters["Content-Type"] = "application/json";
27525
28857
  if (this.configuration && this.configuration.apiKey) {
27526
- 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
+ }
27527
28864
  }
27528
28865
  const response = await this.request({
27529
28866
  path: `/v1/waas/applications/{appId}/endpoints/{endpointId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"endpointId"}}`, encodeURIComponent(String(requestParameters["endpointId"]))),
@@ -27571,7 +28908,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27571
28908
  const headerParameters = {};
27572
28909
  headerParameters["Content-Type"] = "application/json";
27573
28910
  if (this.configuration && this.configuration.apiKey) {
27574
- 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
+ }
27575
28917
  }
27576
28918
  const response = await this.request({
27577
28919
  path: `/v1/waas/applications/{appId}/event-types`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27610,7 +28952,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27610
28952
  const queryParameters = {};
27611
28953
  const headerParameters = {};
27612
28954
  if (this.configuration && this.configuration.apiKey) {
27613
- 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
+ }
27614
28961
  }
27615
28962
  const response = await this.request({
27616
28963
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27647,7 +28994,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27647
28994
  const queryParameters = {};
27648
28995
  const headerParameters = {};
27649
28996
  if (this.configuration && this.configuration.apiKey) {
27650
- 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
+ }
27651
29003
  }
27652
29004
  const response = await this.request({
27653
29005
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}/deprecate`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27684,7 +29036,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27684
29036
  const queryParameters = {};
27685
29037
  const headerParameters = {};
27686
29038
  if (this.configuration && this.configuration.apiKey) {
27687
- 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
+ }
27688
29045
  }
27689
29046
  const response = await this.request({
27690
29047
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27727,7 +29084,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27727
29084
  }
27728
29085
  const headerParameters = {};
27729
29086
  if (this.configuration && this.configuration.apiKey) {
27730
- 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
+ }
27731
29093
  }
27732
29094
  const response = await this.request({
27733
29095
  path: `/v1/waas/applications/{appId}/event-types`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27771,7 +29133,12 @@ var WaaSEventTypesApi = class extends BaseAPI {
27771
29133
  const headerParameters = {};
27772
29134
  headerParameters["Content-Type"] = "application/json";
27773
29135
  if (this.configuration && this.configuration.apiKey) {
27774
- 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
+ }
27775
29142
  }
27776
29143
  const response = await this.request({
27777
29144
  path: `/v1/waas/applications/{appId}/event-types/{eventTypeId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))).replace(`{${"eventTypeId"}}`, encodeURIComponent(String(requestParameters["eventTypeId"]))),
@@ -27818,7 +29185,12 @@ var WaaSEventsApi = class extends BaseAPI {
27818
29185
  const headerParameters = {};
27819
29186
  headerParameters["Content-Type"] = "application/json";
27820
29187
  if (this.configuration && this.configuration.apiKey) {
27821
- 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
+ }
27822
29194
  }
27823
29195
  const response = await this.request({
27824
29196
  path: `/v1/waas/applications/{appId}/events/batch`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27858,7 +29230,12 @@ var WaaSEventsApi = class extends BaseAPI {
27858
29230
  const headerParameters = {};
27859
29231
  headerParameters["Content-Type"] = "application/json";
27860
29232
  if (this.configuration && this.configuration.apiKey) {
27861
- 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
+ }
27862
29239
  }
27863
29240
  const response = await this.request({
27864
29241
  path: `/v1/waas/applications/{appId}/events`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27902,7 +29279,12 @@ var WaaSPortalApi = class extends BaseAPI {
27902
29279
  const headerParameters = {};
27903
29280
  headerParameters["Content-Type"] = "application/json";
27904
29281
  if (this.configuration && this.configuration.apiKey) {
27905
- 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
+ }
27906
29288
  }
27907
29289
  const response = await this.request({
27908
29290
  path: `/v1/waas/applications/{appId}/portal/token`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters["appId"]))),
@@ -27940,7 +29322,12 @@ var WebhooksApi = class extends BaseAPI {
27940
29322
  const headerParameters = {};
27941
29323
  headerParameters["Content-Type"] = "application/json";
27942
29324
  if (this.configuration && this.configuration.apiKey) {
27943
- 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
+ }
27944
29331
  }
27945
29332
  const response = await this.request({
27946
29333
  path: `/v1/webhooks/{id}/deliveries/bulk-retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -27973,7 +29360,12 @@ var WebhooksApi = class extends BaseAPI {
27973
29360
  const queryParameters = {};
27974
29361
  const headerParameters = {};
27975
29362
  if (this.configuration && this.configuration.apiKey) {
27976
- 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
+ }
27977
29369
  }
27978
29370
  const response = await this.request({
27979
29371
  path: `/v1/webhooks/{id}/circuit/close`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28006,7 +29398,12 @@ var WebhooksApi = class extends BaseAPI {
28006
29398
  const headerParameters = {};
28007
29399
  headerParameters["Content-Type"] = "application/json";
28008
29400
  if (this.configuration && this.configuration.apiKey) {
28009
- 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
+ }
28010
29407
  }
28011
29408
  const response = await this.request({
28012
29409
  path: `/v1/webhooks`,
@@ -28039,7 +29436,12 @@ var WebhooksApi = class extends BaseAPI {
28039
29436
  const queryParameters = {};
28040
29437
  const headerParameters = {};
28041
29438
  if (this.configuration && this.configuration.apiKey) {
28042
- 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
+ }
28043
29445
  }
28044
29446
  const response = await this.request({
28045
29447
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28065,7 +29467,12 @@ var WebhooksApi = class extends BaseAPI {
28065
29467
  const queryParameters = {};
28066
29468
  const headerParameters = {};
28067
29469
  if (this.configuration && this.configuration.apiKey) {
28068
- 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
+ }
28069
29476
  }
28070
29477
  const response = await this.request({
28071
29478
  path: `/v1/webhooks/metrics`,
@@ -28097,7 +29504,12 @@ var WebhooksApi = class extends BaseAPI {
28097
29504
  const queryParameters = {};
28098
29505
  const headerParameters = {};
28099
29506
  if (this.configuration && this.configuration.apiKey) {
28100
- 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
+ }
28101
29513
  }
28102
29514
  const response = await this.request({
28103
29515
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28129,7 +29541,12 @@ var WebhooksApi = class extends BaseAPI {
28129
29541
  const queryParameters = {};
28130
29542
  const headerParameters = {};
28131
29543
  if (this.configuration && this.configuration.apiKey) {
28132
- 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
+ }
28133
29550
  }
28134
29551
  const response = await this.request({
28135
29552
  path: `/v1/webhooks/{id}/circuit`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28167,7 +29584,12 @@ var WebhooksApi = class extends BaseAPI {
28167
29584
  const queryParameters = {};
28168
29585
  const headerParameters = {};
28169
29586
  if (this.configuration && this.configuration.apiKey) {
28170
- 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
+ }
28171
29593
  }
28172
29594
  const response = await this.request({
28173
29595
  path: `/v1/webhooks/{id}/deliveries/{deliveryId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -28193,7 +29615,12 @@ var WebhooksApi = class extends BaseAPI {
28193
29615
  const queryParameters = {};
28194
29616
  const headerParameters = {};
28195
29617
  if (this.configuration && this.configuration.apiKey) {
28196
- 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
+ }
28197
29624
  }
28198
29625
  const response = await this.request({
28199
29626
  path: `/v1/webhooks/ips`,
@@ -28225,7 +29652,12 @@ var WebhooksApi = class extends BaseAPI {
28225
29652
  const queryParameters = {};
28226
29653
  const headerParameters = {};
28227
29654
  if (this.configuration && this.configuration.apiKey) {
28228
- 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
+ }
28229
29661
  }
28230
29662
  const response = await this.request({
28231
29663
  path: `/v1/webhooks/jobs/{jobId}`.replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters["jobId"]))),
@@ -28257,7 +29689,12 @@ var WebhooksApi = class extends BaseAPI {
28257
29689
  const queryParameters = {};
28258
29690
  const headerParameters = {};
28259
29691
  if (this.configuration && this.configuration.apiKey) {
28260
- 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
+ }
28261
29698
  }
28262
29699
  const response = await this.request({
28263
29700
  path: `/v1/webhooks/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28283,7 +29720,12 @@ var WebhooksApi = class extends BaseAPI {
28283
29720
  const queryParameters = {};
28284
29721
  const headerParameters = {};
28285
29722
  if (this.configuration && this.configuration.apiKey) {
28286
- 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
+ }
28287
29729
  }
28288
29730
  const response = await this.request({
28289
29731
  path: `/v1/webhooks/usage`,
@@ -28336,7 +29778,12 @@ var WebhooksApi = class extends BaseAPI {
28336
29778
  }
28337
29779
  const headerParameters = {};
28338
29780
  if (this.configuration && this.configuration.apiKey) {
28339
- 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
+ }
28340
29787
  }
28341
29788
  const response = await this.request({
28342
29789
  path: `/v1/webhooks/{id}/deliveries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28365,7 +29812,12 @@ var WebhooksApi = class extends BaseAPI {
28365
29812
  }
28366
29813
  const headerParameters = {};
28367
29814
  if (this.configuration && this.configuration.apiKey) {
28368
- 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
+ }
28369
29821
  }
28370
29822
  const response = await this.request({
28371
29823
  path: `/v1/webhooks/events`,
@@ -28391,7 +29843,12 @@ var WebhooksApi = class extends BaseAPI {
28391
29843
  const queryParameters = {};
28392
29844
  const headerParameters = {};
28393
29845
  if (this.configuration && this.configuration.apiKey) {
28394
- 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
+ }
28395
29852
  }
28396
29853
  const response = await this.request({
28397
29854
  path: `/v1/webhooks/versions`,
@@ -28423,7 +29880,12 @@ var WebhooksApi = class extends BaseAPI {
28423
29880
  }
28424
29881
  const headerParameters = {};
28425
29882
  if (this.configuration && this.configuration.apiKey) {
28426
- 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
+ }
28427
29889
  }
28428
29890
  const response = await this.request({
28429
29891
  path: `/v1/webhooks`,
@@ -28462,7 +29924,12 @@ var WebhooksApi = class extends BaseAPI {
28462
29924
  const headerParameters = {};
28463
29925
  headerParameters["Content-Type"] = "application/json";
28464
29926
  if (this.configuration && this.configuration.apiKey) {
28465
- 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
+ }
28466
29933
  }
28467
29934
  const response = await this.request({
28468
29935
  path: `/v1/webhooks/{id}/replay`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28501,7 +29968,12 @@ var WebhooksApi = class extends BaseAPI {
28501
29968
  const queryParameters = {};
28502
29969
  const headerParameters = {};
28503
29970
  if (this.configuration && this.configuration.apiKey) {
28504
- 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
+ }
28505
29977
  }
28506
29978
  const response = await this.request({
28507
29979
  path: `/v1/webhooks/{id}/deliveries/{deliveryId}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
@@ -28533,7 +30005,12 @@ var WebhooksApi = class extends BaseAPI {
28533
30005
  const queryParameters = {};
28534
30006
  const headerParameters = {};
28535
30007
  if (this.configuration && this.configuration.apiKey) {
28536
- 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
+ }
28537
30014
  }
28538
30015
  const response = await this.request({
28539
30016
  path: `/v1/webhooks/{id}/rotate-secret`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28566,7 +30043,12 @@ var WebhooksApi = class extends BaseAPI {
28566
30043
  const headerParameters = {};
28567
30044
  headerParameters["Content-Type"] = "application/json";
28568
30045
  if (this.configuration && this.configuration.apiKey) {
28569
- 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
+ }
28570
30052
  }
28571
30053
  const response = await this.request({
28572
30054
  path: `/v1/webhooks/{id}/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28606,7 +30088,12 @@ var WebhooksApi = class extends BaseAPI {
28606
30088
  const headerParameters = {};
28607
30089
  headerParameters["Content-Type"] = "application/json";
28608
30090
  if (this.configuration && this.configuration.apiKey) {
28609
- 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
+ }
28610
30097
  }
28611
30098
  const response = await this.request({
28612
30099
  path: `/v1/webhooks/{id}/transform/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28646,7 +30133,12 @@ var WebhooksApi = class extends BaseAPI {
28646
30133
  const headerParameters = {};
28647
30134
  headerParameters["Content-Type"] = "application/json";
28648
30135
  if (this.configuration && this.configuration.apiKey) {
28649
- 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
+ }
28650
30142
  }
28651
30143
  const response = await this.request({
28652
30144
  path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
@@ -28697,7 +30189,12 @@ var WorkflowsApi = class extends BaseAPI {
28697
30189
  const headerParameters = {};
28698
30190
  headerParameters["Content-Type"] = "application/json";
28699
30191
  if (this.configuration && this.configuration.apiKey) {
28700
- 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
+ }
28701
30198
  }
28702
30199
  const response = await this.request({
28703
30200
  path: `/workflows/{key}/steps`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28731,7 +30228,12 @@ var WorkflowsApi = class extends BaseAPI {
28731
30228
  const headerParameters = {};
28732
30229
  headerParameters["Content-Type"] = "application/json";
28733
30230
  if (this.configuration && this.configuration.apiKey) {
28734
- 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
+ }
28735
30237
  }
28736
30238
  const response = await this.request({
28737
30239
  path: `/workflows`,
@@ -28764,7 +30266,12 @@ var WorkflowsApi = class extends BaseAPI {
28764
30266
  const queryParameters = {};
28765
30267
  const headerParameters = {};
28766
30268
  if (this.configuration && this.configuration.apiKey) {
28767
- 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
+ }
28768
30275
  }
28769
30276
  const response = await this.request({
28770
30277
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28802,7 +30309,12 @@ var WorkflowsApi = class extends BaseAPI {
28802
30309
  const queryParameters = {};
28803
30310
  const headerParameters = {};
28804
30311
  if (this.configuration && this.configuration.apiKey) {
28805
- 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
+ }
28806
30318
  }
28807
30319
  const response = await this.request({
28808
30320
  path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
@@ -28834,7 +30346,12 @@ var WorkflowsApi = class extends BaseAPI {
28834
30346
  const queryParameters = {};
28835
30347
  const headerParameters = {};
28836
30348
  if (this.configuration && this.configuration.apiKey) {
28837
- 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
+ }
28838
30355
  }
28839
30356
  const response = await this.request({
28840
30357
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28872,7 +30389,12 @@ var WorkflowsApi = class extends BaseAPI {
28872
30389
  }
28873
30390
  const headerParameters = {};
28874
30391
  if (this.configuration && this.configuration.apiKey) {
28875
- 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
+ }
28876
30398
  }
28877
30399
  const response = await this.request({
28878
30400
  path: `/workflows/{key}/executions`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28910,7 +30432,12 @@ var WorkflowsApi = class extends BaseAPI {
28910
30432
  }
28911
30433
  const headerParameters = {};
28912
30434
  if (this.configuration && this.configuration.apiKey) {
28913
- 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
+ }
28914
30441
  }
28915
30442
  const response = await this.request({
28916
30443
  path: `/workflows`,
@@ -28949,7 +30476,12 @@ var WorkflowsApi = class extends BaseAPI {
28949
30476
  const headerParameters = {};
28950
30477
  headerParameters["Content-Type"] = "application/json";
28951
30478
  if (this.configuration && this.configuration.apiKey) {
28952
- 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
+ }
28953
30485
  }
28954
30486
  const response = await this.request({
28955
30487
  path: `/workflows/{key}/steps/reorder`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -28989,7 +30521,12 @@ var WorkflowsApi = class extends BaseAPI {
28989
30521
  const headerParameters = {};
28990
30522
  headerParameters["Content-Type"] = "application/json";
28991
30523
  if (this.configuration && this.configuration.apiKey) {
28992
- 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
+ }
28993
30530
  }
28994
30531
  const response = await this.request({
28995
30532
  path: `/workflows/{key}/trigger`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -29029,7 +30566,12 @@ var WorkflowsApi = class extends BaseAPI {
29029
30566
  const headerParameters = {};
29030
30567
  headerParameters["Content-Type"] = "application/json";
29031
30568
  if (this.configuration && this.configuration.apiKey) {
29032
- 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
+ }
29033
30575
  }
29034
30576
  const response = await this.request({
29035
30577
  path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -29069,7 +30611,12 @@ var WorkflowsApi = class extends BaseAPI {
29069
30611
  const headerParameters = {};
29070
30612
  headerParameters["Content-Type"] = "application/json";
29071
30613
  if (this.configuration && this.configuration.apiKey) {
29072
- 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
+ }
29073
30620
  }
29074
30621
  const response = await this.request({
29075
30622
  path: `/workflows/{key}/status`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
@@ -29115,7 +30662,12 @@ var WorkflowsApi = class extends BaseAPI {
29115
30662
  const headerParameters = {};
29116
30663
  headerParameters["Content-Type"] = "application/json";
29117
30664
  if (this.configuration && this.configuration.apiKey) {
29118
- 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
+ }
29119
30671
  }
29120
30672
  const response = await this.request({
29121
30673
  path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
@@ -29378,8 +30930,21 @@ var SECRET_KEY_PREFIXES = [
29378
30930
  ];
29379
30931
  var ZyphrClient = class {
29380
30932
  auth;
29381
- /** Device registration for push (takes an OS-acquired token). */
29382
- 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.
29383
30948
  /**
29384
30949
  * Utility endpoints that are publishable-key-safe: the application's password
29385
30950
  * policy (`getPasswordRequirements`) and a pre-submit password strength check
@@ -29435,7 +31000,6 @@ var ZyphrClient = class {
29435
31000
  profile: new AuthUserProfileApi(config),
29436
31001
  webauthn: new AuthWebAuthnApi(config)
29437
31002
  };
29438
- this.devices = new DevicesApi(config);
29439
31003
  this.utility = new UtilityApi(config);
29440
31004
  }
29441
31005
  /** Store the end-user access token; it is applied automatically to subsequent user-scoped calls. */