@zyphr-dev/node-sdk 0.1.56 → 0.1.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/index.cjs +1879 -317
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +8 -10
  4. package/dist/index.d.ts +8 -10
  5. package/dist/index.js +1879 -317
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/clientAuth.ts +15 -4
  9. package/src/src/apis/AuthApplicationApi.ts +32 -4
  10. package/src/src/apis/AuthEmailOTPApi.ts +72 -9
  11. package/src/src/apis/AuthEmailTemplatesApi.ts +160 -20
  12. package/src/src/apis/AuthEmailVerificationApi.ts +52 -10
  13. package/src/src/apis/AuthLoginApi.ts +16 -2
  14. package/src/src/apis/AuthMFAApi.ts +112 -14
  15. package/src/src/apis/AuthMagicLinksApi.ts +32 -4
  16. package/src/src/apis/AuthOAuthApi.ts +88 -11
  17. package/src/src/apis/AuthOrganizationsApi.ts +176 -22
  18. package/src/src/apis/AuthPasswordResetApi.ts +48 -6
  19. package/src/src/apis/AuthPhoneApi.ts +72 -9
  20. package/src/src/apis/AuthRegistrationApi.ts +40 -5
  21. package/src/src/apis/AuthSessionsApi.ts +56 -7
  22. package/src/src/apis/AuthUserDirectoryApi.ts +144 -18
  23. package/src/src/apis/AuthUserProfileApi.ts +32 -4
  24. package/src/src/apis/AuthWebAuthnApi.ts +96 -12
  25. package/src/src/apis/DevicesApi.ts +52 -10
  26. package/src/src/apis/DomainsApi.ts +56 -7
  27. package/src/src/apis/EmailsApi.ts +48 -6
  28. package/src/src/apis/ExecutionsApi.ts +24 -3
  29. package/src/src/apis/InboundEmailApi.ts +24 -3
  30. package/src/src/apis/InboxApi.ts +88 -11
  31. package/src/src/apis/PushApi.ts +72 -9
  32. package/src/src/apis/SMSApi.ts +80 -10
  33. package/src/src/apis/SlackApi.ts +24 -3
  34. package/src/src/apis/SubscribersApi.ts +160 -20
  35. package/src/src/apis/TemplatesApi.ts +48 -6
  36. package/src/src/apis/TopicsApi.ts +72 -9
  37. package/src/src/apis/UtilityApi.ts +16 -2
  38. package/src/src/apis/WaaSApplicationsApi.ts +48 -6
  39. package/src/src/apis/WaaSDeliveriesApi.ts +32 -4
  40. package/src/src/apis/WaaSEndpointsApi.ts +72 -9
  41. package/src/src/apis/WaaSEventTypesApi.ts +48 -6
  42. package/src/src/apis/WaaSEventsApi.ts +16 -2
  43. package/src/src/apis/WaaSPortalApi.ts +8 -1
  44. package/src/src/apis/WebhooksApi.ts +176 -22
  45. package/src/src/apis/WorkflowsApi.ts +96 -12
@@ -193,7 +193,14 @@ export class WaaSApplicationsApi extends runtime.BaseAPI implements WaaSApplicat
193
193
  headerParameters['Content-Type'] = 'application/json';
194
194
 
195
195
  if (this.configuration && this.configuration.apiKey) {
196
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
196
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
197
+ {
198
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
199
+
200
+ if (apiKeyValue) {
201
+ headerParameters["X-API-Key"] = apiKeyValue;
202
+ }
203
+ }
197
204
  }
198
205
 
199
206
  const response = await this.request({
@@ -233,7 +240,14 @@ export class WaaSApplicationsApi extends runtime.BaseAPI implements WaaSApplicat
233
240
  const headerParameters: runtime.HTTPHeaders = {};
234
241
 
235
242
  if (this.configuration && this.configuration.apiKey) {
236
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
243
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
244
+ {
245
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
246
+
247
+ if (apiKeyValue) {
248
+ headerParameters["X-API-Key"] = apiKeyValue;
249
+ }
250
+ }
237
251
  }
238
252
 
239
253
  const response = await this.request({
@@ -271,7 +285,14 @@ export class WaaSApplicationsApi extends runtime.BaseAPI implements WaaSApplicat
271
285
  const headerParameters: runtime.HTTPHeaders = {};
272
286
 
273
287
  if (this.configuration && this.configuration.apiKey) {
274
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
288
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
289
+ {
290
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
291
+
292
+ if (apiKeyValue) {
293
+ headerParameters["X-API-Key"] = apiKeyValue;
294
+ }
295
+ }
275
296
  }
276
297
 
277
298
  const response = await this.request({
@@ -310,7 +331,14 @@ export class WaaSApplicationsApi extends runtime.BaseAPI implements WaaSApplicat
310
331
  const headerParameters: runtime.HTTPHeaders = {};
311
332
 
312
333
  if (this.configuration && this.configuration.apiKey) {
313
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
334
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
335
+ {
336
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
337
+
338
+ if (apiKeyValue) {
339
+ headerParameters["X-API-Key"] = apiKeyValue;
340
+ }
341
+ }
314
342
  }
315
343
 
316
344
  const response = await this.request({
@@ -354,7 +382,14 @@ export class WaaSApplicationsApi extends runtime.BaseAPI implements WaaSApplicat
354
382
  const headerParameters: runtime.HTTPHeaders = {};
355
383
 
356
384
  if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
385
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
386
+ {
387
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
388
+
389
+ if (apiKeyValue) {
390
+ headerParameters["X-API-Key"] = apiKeyValue;
391
+ }
392
+ }
358
393
  }
359
394
 
360
395
  const response = await this.request({
@@ -402,7 +437,14 @@ export class WaaSApplicationsApi extends runtime.BaseAPI implements WaaSApplicat
402
437
  headerParameters['Content-Type'] = 'application/json';
403
438
 
404
439
  if (this.configuration && this.configuration.apiKey) {
405
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
440
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
441
+ {
442
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
443
+
444
+ if (apiKeyValue) {
445
+ headerParameters["X-API-Key"] = apiKeyValue;
446
+ }
447
+ }
406
448
  }
407
449
 
408
450
  const response = await this.request({
@@ -165,7 +165,14 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
165
165
  const headerParameters: runtime.HTTPHeaders = {};
166
166
 
167
167
  if (this.configuration && this.configuration.apiKey) {
168
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
168
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
169
+ {
170
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
171
+
172
+ if (apiKeyValue) {
173
+ headerParameters["X-API-Key"] = apiKeyValue;
174
+ }
175
+ }
169
176
  }
170
177
 
171
178
  const response = await this.request({
@@ -224,7 +231,14 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
224
231
  const headerParameters: runtime.HTTPHeaders = {};
225
232
 
226
233
  if (this.configuration && this.configuration.apiKey) {
227
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
234
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
235
+ {
236
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
237
+
238
+ if (apiKeyValue) {
239
+ headerParameters["X-API-Key"] = apiKeyValue;
240
+ }
241
+ }
228
242
  }
229
243
 
230
244
  const response = await this.request({
@@ -282,7 +296,14 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
282
296
  const headerParameters: runtime.HTTPHeaders = {};
283
297
 
284
298
  if (this.configuration && this.configuration.apiKey) {
285
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
299
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
300
+ {
301
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
302
+
303
+ if (apiKeyValue) {
304
+ headerParameters["X-API-Key"] = apiKeyValue;
305
+ }
306
+ }
286
307
  }
287
308
 
288
309
  const response = await this.request({
@@ -328,7 +349,14 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
328
349
  const headerParameters: runtime.HTTPHeaders = {};
329
350
 
330
351
  if (this.configuration && this.configuration.apiKey) {
331
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
352
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
353
+ {
354
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
355
+
356
+ if (apiKeyValue) {
357
+ headerParameters["X-API-Key"] = apiKeyValue;
358
+ }
359
+ }
332
360
  }
333
361
 
334
362
  const response = await this.request({
@@ -291,7 +291,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
291
291
  const headerParameters: runtime.HTTPHeaders = {};
292
292
 
293
293
  if (this.configuration && this.configuration.apiKey) {
294
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
294
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
295
+ {
296
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
297
+
298
+ if (apiKeyValue) {
299
+ headerParameters["X-API-Key"] = apiKeyValue;
300
+ }
301
+ }
295
302
  }
296
303
 
297
304
  const response = await this.request({
@@ -339,7 +346,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
339
346
  headerParameters['Content-Type'] = 'application/json';
340
347
 
341
348
  if (this.configuration && this.configuration.apiKey) {
342
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
349
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
350
+ {
351
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
352
+
353
+ if (apiKeyValue) {
354
+ headerParameters["X-API-Key"] = apiKeyValue;
355
+ }
356
+ }
343
357
  }
344
358
 
345
359
  const response = await this.request({
@@ -386,7 +400,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
386
400
  const headerParameters: runtime.HTTPHeaders = {};
387
401
 
388
402
  if (this.configuration && this.configuration.apiKey) {
389
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
403
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
404
+ {
405
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
406
+
407
+ if (apiKeyValue) {
408
+ headerParameters["X-API-Key"] = apiKeyValue;
409
+ }
410
+ }
390
411
  }
391
412
 
392
413
  const response = await this.request({
@@ -430,7 +451,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
430
451
  const headerParameters: runtime.HTTPHeaders = {};
431
452
 
432
453
  if (this.configuration && this.configuration.apiKey) {
433
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
454
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
455
+ {
456
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
457
+
458
+ if (apiKeyValue) {
459
+ headerParameters["X-API-Key"] = apiKeyValue;
460
+ }
461
+ }
434
462
  }
435
463
 
436
464
  const response = await this.request({
@@ -475,7 +503,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
475
503
  const headerParameters: runtime.HTTPHeaders = {};
476
504
 
477
505
  if (this.configuration && this.configuration.apiKey) {
478
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
506
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
507
+ {
508
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
509
+
510
+ if (apiKeyValue) {
511
+ headerParameters["X-API-Key"] = apiKeyValue;
512
+ }
513
+ }
479
514
  }
480
515
 
481
516
  const response = await this.request({
@@ -521,7 +556,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
521
556
  const headerParameters: runtime.HTTPHeaders = {};
522
557
 
523
558
  if (this.configuration && this.configuration.apiKey) {
524
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
559
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
560
+ {
561
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
562
+
563
+ if (apiKeyValue) {
564
+ headerParameters["X-API-Key"] = apiKeyValue;
565
+ }
566
+ }
525
567
  }
526
568
 
527
569
  const response = await this.request({
@@ -576,7 +618,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
576
618
  const headerParameters: runtime.HTTPHeaders = {};
577
619
 
578
620
  if (this.configuration && this.configuration.apiKey) {
579
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
621
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
622
+ {
623
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
624
+
625
+ if (apiKeyValue) {
626
+ headerParameters["X-API-Key"] = apiKeyValue;
627
+ }
628
+ }
580
629
  }
581
630
 
582
631
  const response = await this.request({
@@ -622,7 +671,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
622
671
  const headerParameters: runtime.HTTPHeaders = {};
623
672
 
624
673
  if (this.configuration && this.configuration.apiKey) {
625
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
674
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
675
+ {
676
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
677
+
678
+ if (apiKeyValue) {
679
+ headerParameters["X-API-Key"] = apiKeyValue;
680
+ }
681
+ }
626
682
  }
627
683
 
628
684
  const response = await this.request({
@@ -676,7 +732,14 @@ export class WaaSEndpointsApi extends runtime.BaseAPI implements WaaSEndpointsAp
676
732
  headerParameters['Content-Type'] = 'application/json';
677
733
 
678
734
  if (this.configuration && this.configuration.apiKey) {
679
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
735
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
736
+ {
737
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
738
+
739
+ if (apiKeyValue) {
740
+ headerParameters["X-API-Key"] = apiKeyValue;
741
+ }
742
+ }
680
743
  }
681
744
 
682
745
  const response = await this.request({
@@ -212,7 +212,14 @@ export class WaaSEventTypesApi extends runtime.BaseAPI implements WaaSEventTypes
212
212
  headerParameters['Content-Type'] = 'application/json';
213
213
 
214
214
  if (this.configuration && this.configuration.apiKey) {
215
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
215
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
216
+ {
217
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
218
+
219
+ if (apiKeyValue) {
220
+ headerParameters["X-API-Key"] = apiKeyValue;
221
+ }
222
+ }
216
223
  }
217
224
 
218
225
  const response = await this.request({
@@ -259,7 +266,14 @@ export class WaaSEventTypesApi extends runtime.BaseAPI implements WaaSEventTypes
259
266
  const headerParameters: runtime.HTTPHeaders = {};
260
267
 
261
268
  if (this.configuration && this.configuration.apiKey) {
262
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
269
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
270
+ {
271
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
272
+
273
+ if (apiKeyValue) {
274
+ headerParameters["X-API-Key"] = apiKeyValue;
275
+ }
276
+ }
263
277
  }
264
278
 
265
279
  const response = await this.request({
@@ -304,7 +318,14 @@ export class WaaSEventTypesApi extends runtime.BaseAPI implements WaaSEventTypes
304
318
  const headerParameters: runtime.HTTPHeaders = {};
305
319
 
306
320
  if (this.configuration && this.configuration.apiKey) {
307
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
321
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
322
+ {
323
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
324
+
325
+ if (apiKeyValue) {
326
+ headerParameters["X-API-Key"] = apiKeyValue;
327
+ }
328
+ }
308
329
  }
309
330
 
310
331
  const response = await this.request({
@@ -349,7 +370,14 @@ export class WaaSEventTypesApi extends runtime.BaseAPI implements WaaSEventTypes
349
370
  const headerParameters: runtime.HTTPHeaders = {};
350
371
 
351
372
  if (this.configuration && this.configuration.apiKey) {
352
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
373
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
374
+ {
375
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
376
+
377
+ if (apiKeyValue) {
378
+ headerParameters["X-API-Key"] = apiKeyValue;
379
+ }
380
+ }
353
381
  }
354
382
 
355
383
  const response = await this.request({
@@ -403,7 +431,14 @@ export class WaaSEventTypesApi extends runtime.BaseAPI implements WaaSEventTypes
403
431
  const headerParameters: runtime.HTTPHeaders = {};
404
432
 
405
433
  if (this.configuration && this.configuration.apiKey) {
406
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
434
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
435
+ {
436
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
437
+
438
+ if (apiKeyValue) {
439
+ headerParameters["X-API-Key"] = apiKeyValue;
440
+ }
441
+ }
407
442
  }
408
443
 
409
444
  const response = await this.request({
@@ -457,7 +492,14 @@ export class WaaSEventTypesApi extends runtime.BaseAPI implements WaaSEventTypes
457
492
  headerParameters['Content-Type'] = 'application/json';
458
493
 
459
494
  if (this.configuration && this.configuration.apiKey) {
460
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
495
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
496
+ {
497
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
498
+
499
+ if (apiKeyValue) {
500
+ headerParameters["X-API-Key"] = apiKeyValue;
501
+ }
502
+ }
461
503
  }
462
504
 
463
505
  const response = await this.request({
@@ -115,7 +115,14 @@ export class WaaSEventsApi extends runtime.BaseAPI implements WaaSEventsApiInter
115
115
  headerParameters['Content-Type'] = 'application/json';
116
116
 
117
117
  if (this.configuration && this.configuration.apiKey) {
118
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
118
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
119
+ {
120
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
121
+
122
+ if (apiKeyValue) {
123
+ headerParameters["X-API-Key"] = apiKeyValue;
124
+ }
125
+ }
119
126
  }
120
127
 
121
128
  const response = await this.request({
@@ -164,7 +171,14 @@ export class WaaSEventsApi extends runtime.BaseAPI implements WaaSEventsApiInter
164
171
  headerParameters['Content-Type'] = 'application/json';
165
172
 
166
173
  if (this.configuration && this.configuration.apiKey) {
167
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
174
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
175
+ {
176
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
177
+
178
+ if (apiKeyValue) {
179
+ headerParameters["X-API-Key"] = apiKeyValue;
180
+ }
181
+ }
168
182
  }
169
183
 
170
184
  const response = await this.request({
@@ -87,7 +87,14 @@ export class WaaSPortalApi extends runtime.BaseAPI implements WaaSPortalApiInter
87
87
  headerParameters['Content-Type'] = 'application/json';
88
88
 
89
89
  if (this.configuration && this.configuration.apiKey) {
90
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
90
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
91
+ {
92
+ const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
93
+
94
+ if (apiKeyValue) {
95
+ headerParameters["X-API-Key"] = apiKeyValue;
96
+ }
97
+ }
91
98
  }
92
99
 
93
100
  const response = await this.request({