@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
@@ -142,7 +142,14 @@ export class AuthSessionsApi extends runtime.BaseAPI implements AuthSessionsApiI
142
142
  }
143
143
  }
144
144
  if (this.configuration && this.configuration.apiKey) {
145
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
145
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
146
+ {
147
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
148
+
149
+ if (apiKeyValue) {
150
+ headerParameters["X-Application-Key"] = apiKeyValue;
151
+ }
152
+ }
146
153
  }
147
154
 
148
155
  const response = await this.request({
@@ -183,11 +190,25 @@ export class AuthSessionsApi extends runtime.BaseAPI implements AuthSessionsApiI
183
190
  headerParameters['Content-Type'] = 'application/json';
184
191
 
185
192
  if (this.configuration && this.configuration.apiKey) {
186
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
193
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
194
+ {
195
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
196
+
197
+ if (apiKeyValue) {
198
+ headerParameters["X-Application-Secret"] = apiKeyValue;
199
+ }
200
+ }
187
201
  }
188
202
 
189
203
  if (this.configuration && this.configuration.apiKey) {
190
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
204
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
205
+ {
206
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
207
+
208
+ if (apiKeyValue) {
209
+ headerParameters["X-Application-Key"] = apiKeyValue;
210
+ }
211
+ }
191
212
  }
192
213
 
193
214
  const response = await this.request({
@@ -220,7 +241,14 @@ export class AuthSessionsApi extends runtime.BaseAPI implements AuthSessionsApiI
220
241
  const headerParameters: runtime.HTTPHeaders = {};
221
242
 
222
243
  if (this.configuration && this.configuration.apiKey) {
223
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
244
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
245
+ {
246
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
247
+
248
+ if (apiKeyValue) {
249
+ headerParameters["X-Application-Secret"] = apiKeyValue;
250
+ }
251
+ }
224
252
  }
225
253
 
226
254
  if (this.configuration && this.configuration.accessToken) {
@@ -232,7 +260,14 @@ export class AuthSessionsApi extends runtime.BaseAPI implements AuthSessionsApiI
232
260
  }
233
261
  }
234
262
  if (this.configuration && this.configuration.apiKey) {
235
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
263
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
264
+ {
265
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
266
+
267
+ if (apiKeyValue) {
268
+ headerParameters["X-Application-Key"] = apiKeyValue;
269
+ }
270
+ }
236
271
  }
237
272
 
238
273
  const response = await this.request({
@@ -273,11 +308,25 @@ export class AuthSessionsApi extends runtime.BaseAPI implements AuthSessionsApiI
273
308
  headerParameters['Content-Type'] = 'application/json';
274
309
 
275
310
  if (this.configuration && this.configuration.apiKey) {
276
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
311
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
312
+ {
313
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
314
+
315
+ if (apiKeyValue) {
316
+ headerParameters["X-Application-Secret"] = apiKeyValue;
317
+ }
318
+ }
277
319
  }
278
320
 
279
321
  if (this.configuration && this.configuration.apiKey) {
280
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
322
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
323
+ {
324
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
325
+
326
+ if (apiKeyValue) {
327
+ headerParameters["X-Application-Key"] = apiKeyValue;
328
+ }
329
+ }
281
330
  }
282
331
 
283
332
  const response = await this.request({
@@ -267,11 +267,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
267
267
  const headerParameters: runtime.HTTPHeaders = {};
268
268
 
269
269
  if (this.configuration && this.configuration.apiKey) {
270
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
270
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
271
+ {
272
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
273
+
274
+ if (apiKeyValue) {
275
+ headerParameters["X-Application-Secret"] = apiKeyValue;
276
+ }
277
+ }
271
278
  }
272
279
 
273
280
  if (this.configuration && this.configuration.apiKey) {
274
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
281
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
282
+ {
283
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
284
+
285
+ if (apiKeyValue) {
286
+ headerParameters["X-Application-Key"] = apiKeyValue;
287
+ }
288
+ }
275
289
  }
276
290
 
277
291
  const response = await this.request({
@@ -309,11 +323,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
309
323
  const headerParameters: runtime.HTTPHeaders = {};
310
324
 
311
325
  if (this.configuration && this.configuration.apiKey) {
312
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
326
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
327
+ {
328
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
329
+
330
+ if (apiKeyValue) {
331
+ headerParameters["X-Application-Secret"] = apiKeyValue;
332
+ }
333
+ }
313
334
  }
314
335
 
315
336
  if (this.configuration && this.configuration.apiKey) {
316
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
337
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
338
+ {
339
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
340
+
341
+ if (apiKeyValue) {
342
+ headerParameters["X-Application-Key"] = apiKeyValue;
343
+ }
344
+ }
317
345
  }
318
346
 
319
347
  const response = await this.request({
@@ -356,11 +384,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
356
384
  const headerParameters: runtime.HTTPHeaders = {};
357
385
 
358
386
  if (this.configuration && this.configuration.apiKey) {
359
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
387
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
388
+ {
389
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
390
+
391
+ if (apiKeyValue) {
392
+ headerParameters["X-Application-Secret"] = apiKeyValue;
393
+ }
394
+ }
360
395
  }
361
396
 
362
397
  if (this.configuration && this.configuration.apiKey) {
363
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
398
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
399
+ {
400
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
401
+
402
+ if (apiKeyValue) {
403
+ headerParameters["X-Application-Key"] = apiKeyValue;
404
+ }
405
+ }
364
406
  }
365
407
 
366
408
  const response = await this.request({
@@ -399,11 +441,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
399
441
  const headerParameters: runtime.HTTPHeaders = {};
400
442
 
401
443
  if (this.configuration && this.configuration.apiKey) {
402
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
444
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
445
+ {
446
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
447
+
448
+ if (apiKeyValue) {
449
+ headerParameters["X-Application-Secret"] = apiKeyValue;
450
+ }
451
+ }
403
452
  }
404
453
 
405
454
  if (this.configuration && this.configuration.apiKey) {
406
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
455
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
456
+ {
457
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
458
+
459
+ if (apiKeyValue) {
460
+ headerParameters["X-Application-Key"] = apiKeyValue;
461
+ }
462
+ }
407
463
  }
408
464
 
409
465
  const response = await this.request({
@@ -442,11 +498,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
442
498
  const headerParameters: runtime.HTTPHeaders = {};
443
499
 
444
500
  if (this.configuration && this.configuration.apiKey) {
445
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
501
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
502
+ {
503
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
504
+
505
+ if (apiKeyValue) {
506
+ headerParameters["X-Application-Secret"] = apiKeyValue;
507
+ }
508
+ }
446
509
  }
447
510
 
448
511
  if (this.configuration && this.configuration.apiKey) {
449
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
512
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
513
+ {
514
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
515
+
516
+ if (apiKeyValue) {
517
+ headerParameters["X-Application-Key"] = apiKeyValue;
518
+ }
519
+ }
450
520
  }
451
521
 
452
522
  const response = await this.request({
@@ -487,11 +557,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
487
557
  headerParameters['Content-Type'] = 'application/json';
488
558
 
489
559
  if (this.configuration && this.configuration.apiKey) {
490
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
560
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
561
+ {
562
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
563
+
564
+ if (apiKeyValue) {
565
+ headerParameters["X-Application-Secret"] = apiKeyValue;
566
+ }
567
+ }
491
568
  }
492
569
 
493
570
  if (this.configuration && this.configuration.apiKey) {
494
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
571
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
572
+ {
573
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
574
+
575
+ if (apiKeyValue) {
576
+ headerParameters["X-Application-Key"] = apiKeyValue;
577
+ }
578
+ }
495
579
  }
496
580
 
497
581
  const response = await this.request({
@@ -540,11 +624,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
540
624
  const headerParameters: runtime.HTTPHeaders = {};
541
625
 
542
626
  if (this.configuration && this.configuration.apiKey) {
543
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
627
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
628
+ {
629
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
630
+
631
+ if (apiKeyValue) {
632
+ headerParameters["X-Application-Secret"] = apiKeyValue;
633
+ }
634
+ }
544
635
  }
545
636
 
546
637
  if (this.configuration && this.configuration.apiKey) {
547
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
638
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
639
+ {
640
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
641
+
642
+ if (apiKeyValue) {
643
+ headerParameters["X-Application-Key"] = apiKeyValue;
644
+ }
645
+ }
548
646
  }
549
647
 
550
648
  const response = await this.request({
@@ -592,11 +690,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
592
690
  headerParameters['Content-Type'] = 'application/json';
593
691
 
594
692
  if (this.configuration && this.configuration.apiKey) {
595
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
693
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
694
+ {
695
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
696
+
697
+ if (apiKeyValue) {
698
+ headerParameters["X-Application-Secret"] = apiKeyValue;
699
+ }
700
+ }
596
701
  }
597
702
 
598
703
  if (this.configuration && this.configuration.apiKey) {
599
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
704
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
705
+ {
706
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
707
+
708
+ if (apiKeyValue) {
709
+ headerParameters["X-Application-Key"] = apiKeyValue;
710
+ }
711
+ }
600
712
  }
601
713
 
602
714
  const response = await this.request({
@@ -645,11 +757,25 @@ export class AuthUserDirectoryApi extends runtime.BaseAPI implements AuthUserDir
645
757
  headerParameters['Content-Type'] = 'application/json';
646
758
 
647
759
  if (this.configuration && this.configuration.apiKey) {
648
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
760
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
761
+ {
762
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
763
+
764
+ if (apiKeyValue) {
765
+ headerParameters["X-Application-Secret"] = apiKeyValue;
766
+ }
767
+ }
649
768
  }
650
769
 
651
770
  if (this.configuration && this.configuration.apiKey) {
652
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
771
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
772
+ {
773
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
774
+
775
+ if (apiKeyValue) {
776
+ headerParameters["X-Application-Key"] = apiKeyValue;
777
+ }
778
+ }
653
779
  }
654
780
 
655
781
  const response = await this.request({
@@ -148,7 +148,14 @@ export class AuthUserProfileApi extends runtime.BaseAPI implements AuthUserProfi
148
148
  }
149
149
  }
150
150
  if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
151
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
152
+ {
153
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
154
+
155
+ if (apiKeyValue) {
156
+ headerParameters["X-Application-Key"] = apiKeyValue;
157
+ }
158
+ }
152
159
  }
153
160
 
154
161
  const response = await this.request({
@@ -189,7 +196,14 @@ export class AuthUserProfileApi extends runtime.BaseAPI implements AuthUserProfi
189
196
  }
190
197
  }
191
198
  if (this.configuration && this.configuration.apiKey) {
192
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
199
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
200
+ {
201
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
202
+
203
+ if (apiKeyValue) {
204
+ headerParameters["X-Application-Key"] = apiKeyValue;
205
+ }
206
+ }
193
207
  }
194
208
 
195
209
  const response = await this.request({
@@ -229,7 +243,14 @@ export class AuthUserProfileApi extends runtime.BaseAPI implements AuthUserProfi
229
243
  }
230
244
  }
231
245
  if (this.configuration && this.configuration.apiKey) {
232
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
246
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
247
+ {
248
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
249
+
250
+ if (apiKeyValue) {
251
+ headerParameters["X-Application-Key"] = apiKeyValue;
252
+ }
253
+ }
233
254
  }
234
255
 
235
256
  const response = await this.request({
@@ -278,7 +299,14 @@ export class AuthUserProfileApi extends runtime.BaseAPI implements AuthUserProfi
278
299
  }
279
300
  }
280
301
  if (this.configuration && this.configuration.apiKey) {
281
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
302
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
303
+ {
304
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
305
+
306
+ if (apiKeyValue) {
307
+ headerParameters["X-Application-Key"] = apiKeyValue;
308
+ }
309
+ }
282
310
  }
283
311
 
284
312
  const response = await this.request({
@@ -252,7 +252,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
252
252
  }
253
253
  }
254
254
  if (this.configuration && this.configuration.apiKey) {
255
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
255
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
256
+ {
257
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
258
+
259
+ if (apiKeyValue) {
260
+ headerParameters["X-Application-Key"] = apiKeyValue;
261
+ }
262
+ }
256
263
  }
257
264
 
258
265
  const response = await this.request({
@@ -292,7 +299,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
292
299
  }
293
300
  }
294
301
  if (this.configuration && this.configuration.apiKey) {
295
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
302
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
303
+ {
304
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
305
+
306
+ if (apiKeyValue) {
307
+ headerParameters["X-Application-Key"] = apiKeyValue;
308
+ }
309
+ }
296
310
  }
297
311
 
298
312
  const response = await this.request({
@@ -332,7 +346,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
332
346
  }
333
347
  }
334
348
  if (this.configuration && this.configuration.apiKey) {
335
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
349
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
350
+ {
351
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
352
+
353
+ if (apiKeyValue) {
354
+ headerParameters["X-Application-Key"] = apiKeyValue;
355
+ }
356
+ }
336
357
  }
337
358
 
338
359
  const response = await this.request({
@@ -388,7 +409,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
388
409
  }
389
410
  }
390
411
  if (this.configuration && this.configuration.apiKey) {
391
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
412
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
413
+ {
414
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
415
+
416
+ if (apiKeyValue) {
417
+ headerParameters["X-Application-Key"] = apiKeyValue;
418
+ }
419
+ }
392
420
  }
393
421
 
394
422
  const response = await this.request({
@@ -423,11 +451,25 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
423
451
  headerParameters['Content-Type'] = 'application/json';
424
452
 
425
453
  if (this.configuration && this.configuration.apiKey) {
426
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
454
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
455
+ {
456
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
457
+
458
+ if (apiKeyValue) {
459
+ headerParameters["X-Application-Secret"] = apiKeyValue;
460
+ }
461
+ }
427
462
  }
428
463
 
429
464
  if (this.configuration && this.configuration.apiKey) {
430
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
465
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
466
+ {
467
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
468
+
469
+ if (apiKeyValue) {
470
+ headerParameters["X-Application-Key"] = apiKeyValue;
471
+ }
472
+ }
431
473
  }
432
474
 
433
475
  const response = await this.request({
@@ -462,7 +504,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
462
504
  headerParameters['Content-Type'] = 'application/json';
463
505
 
464
506
  if (this.configuration && this.configuration.apiKey) {
465
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
507
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
508
+ {
509
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
510
+
511
+ if (apiKeyValue) {
512
+ headerParameters["X-Application-Secret"] = apiKeyValue;
513
+ }
514
+ }
466
515
  }
467
516
 
468
517
  if (this.configuration && this.configuration.accessToken) {
@@ -474,7 +523,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
474
523
  }
475
524
  }
476
525
  if (this.configuration && this.configuration.apiKey) {
477
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
526
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
527
+ {
528
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
529
+
530
+ if (apiKeyValue) {
531
+ headerParameters["X-Application-Key"] = apiKeyValue;
532
+ }
533
+ }
478
534
  }
479
535
 
480
536
  const response = await this.request({
@@ -516,11 +572,25 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
516
572
  headerParameters['Content-Type'] = 'application/json';
517
573
 
518
574
  if (this.configuration && this.configuration.apiKey) {
519
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
575
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
576
+ {
577
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
578
+
579
+ if (apiKeyValue) {
580
+ headerParameters["X-Application-Secret"] = apiKeyValue;
581
+ }
582
+ }
520
583
  }
521
584
 
522
585
  if (this.configuration && this.configuration.apiKey) {
523
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
586
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
587
+ {
588
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
589
+
590
+ if (apiKeyValue) {
591
+ headerParameters["X-Application-Key"] = apiKeyValue;
592
+ }
593
+ }
524
594
  }
525
595
 
526
596
  const response = await this.request({
@@ -562,7 +632,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
562
632
  headerParameters['Content-Type'] = 'application/json';
563
633
 
564
634
  if (this.configuration && this.configuration.apiKey) {
565
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
635
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
636
+ {
637
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
638
+
639
+ if (apiKeyValue) {
640
+ headerParameters["X-Application-Secret"] = apiKeyValue;
641
+ }
642
+ }
566
643
  }
567
644
 
568
645
  if (this.configuration && this.configuration.accessToken) {
@@ -574,7 +651,14 @@ export class AuthWebAuthnApi extends runtime.BaseAPI implements AuthWebAuthnApiI
574
651
  }
575
652
  }
576
653
  if (this.configuration && this.configuration.apiKey) {
577
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
654
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
655
+ {
656
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
657
+
658
+ if (apiKeyValue) {
659
+ headerParameters["X-Application-Key"] = apiKeyValue;
660
+ }
661
+ }
578
662
  }
579
663
 
580
664
  const response = await this.request({