@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
@@ -321,11 +321,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
321
321
  headerParameters['Content-Type'] = 'application/json';
322
322
 
323
323
  if (this.configuration && this.configuration.apiKey) {
324
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
324
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
325
+ {
326
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
327
+
328
+ if (apiKeyValue) {
329
+ headerParameters["X-Application-Secret"] = apiKeyValue;
330
+ }
331
+ }
325
332
  }
326
333
 
327
334
  if (this.configuration && this.configuration.apiKey) {
328
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
335
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
336
+ {
337
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
338
+
339
+ if (apiKeyValue) {
340
+ headerParameters["X-Application-Key"] = apiKeyValue;
341
+ }
342
+ }
329
343
  }
330
344
 
331
345
  const response = await this.request({
@@ -366,11 +380,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
366
380
  headerParameters['Content-Type'] = 'application/json';
367
381
 
368
382
  if (this.configuration && this.configuration.apiKey) {
369
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
383
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
384
+ {
385
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
386
+
387
+ if (apiKeyValue) {
388
+ headerParameters["X-Application-Secret"] = apiKeyValue;
389
+ }
390
+ }
370
391
  }
371
392
 
372
393
  if (this.configuration && this.configuration.apiKey) {
373
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
394
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
395
+ {
396
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
397
+
398
+ if (apiKeyValue) {
399
+ headerParameters["X-Application-Key"] = apiKeyValue;
400
+ }
401
+ }
374
402
  }
375
403
 
376
404
  const response = await this.request({
@@ -410,11 +438,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
410
438
  const headerParameters: runtime.HTTPHeaders = {};
411
439
 
412
440
  if (this.configuration && this.configuration.apiKey) {
413
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
441
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
442
+ {
443
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
444
+
445
+ if (apiKeyValue) {
446
+ headerParameters["X-Application-Secret"] = apiKeyValue;
447
+ }
448
+ }
414
449
  }
415
450
 
416
451
  if (this.configuration && this.configuration.apiKey) {
417
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
452
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
453
+ {
454
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
455
+
456
+ if (apiKeyValue) {
457
+ headerParameters["X-Application-Key"] = apiKeyValue;
458
+ }
459
+ }
418
460
  }
419
461
 
420
462
  const response = await this.request({
@@ -451,11 +493,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
451
493
  const headerParameters: runtime.HTTPHeaders = {};
452
494
 
453
495
  if (this.configuration && this.configuration.apiKey) {
454
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
496
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
497
+ {
498
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
499
+
500
+ if (apiKeyValue) {
501
+ headerParameters["X-Application-Secret"] = apiKeyValue;
502
+ }
503
+ }
455
504
  }
456
505
 
457
506
  if (this.configuration && this.configuration.apiKey) {
458
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey 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-Key"); // ApplicationPublicKey authentication
510
+
511
+ if (apiKeyValue) {
512
+ headerParameters["X-Application-Key"] = apiKeyValue;
513
+ }
514
+ }
459
515
  }
460
516
 
461
517
  const response = await this.request({
@@ -500,11 +556,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
500
556
  const headerParameters: runtime.HTTPHeaders = {};
501
557
 
502
558
  if (this.configuration && this.configuration.apiKey) {
503
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
559
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
560
+ {
561
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
562
+
563
+ if (apiKeyValue) {
564
+ headerParameters["X-Application-Secret"] = apiKeyValue;
565
+ }
566
+ }
504
567
  }
505
568
 
506
569
  if (this.configuration && this.configuration.apiKey) {
507
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
570
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
571
+ {
572
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
573
+
574
+ if (apiKeyValue) {
575
+ headerParameters["X-Application-Key"] = apiKeyValue;
576
+ }
577
+ }
508
578
  }
509
579
 
510
580
  const response = await this.request({
@@ -547,11 +617,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
547
617
  const headerParameters: runtime.HTTPHeaders = {};
548
618
 
549
619
  if (this.configuration && this.configuration.apiKey) {
550
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
620
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
621
+ {
622
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
623
+
624
+ if (apiKeyValue) {
625
+ headerParameters["X-Application-Secret"] = apiKeyValue;
626
+ }
627
+ }
551
628
  }
552
629
 
553
630
  if (this.configuration && this.configuration.apiKey) {
554
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
631
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
632
+ {
633
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
634
+
635
+ if (apiKeyValue) {
636
+ headerParameters["X-Application-Key"] = apiKeyValue;
637
+ }
638
+ }
555
639
  }
556
640
 
557
641
  const response = await this.request({
@@ -590,11 +674,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
590
674
  const headerParameters: runtime.HTTPHeaders = {};
591
675
 
592
676
  if (this.configuration && this.configuration.apiKey) {
593
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
677
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
678
+ {
679
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
680
+
681
+ if (apiKeyValue) {
682
+ headerParameters["X-Application-Secret"] = apiKeyValue;
683
+ }
684
+ }
594
685
  }
595
686
 
596
687
  if (this.configuration && this.configuration.apiKey) {
597
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
688
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
689
+ {
690
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
691
+
692
+ if (apiKeyValue) {
693
+ headerParameters["X-Application-Key"] = apiKeyValue;
694
+ }
695
+ }
598
696
  }
599
697
 
600
698
  const response = await this.request({
@@ -639,11 +737,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
639
737
  const headerParameters: runtime.HTTPHeaders = {};
640
738
 
641
739
  if (this.configuration && this.configuration.apiKey) {
642
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
740
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
741
+ {
742
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
743
+
744
+ if (apiKeyValue) {
745
+ headerParameters["X-Application-Secret"] = apiKeyValue;
746
+ }
747
+ }
643
748
  }
644
749
 
645
750
  if (this.configuration && this.configuration.apiKey) {
646
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
751
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
752
+ {
753
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
754
+
755
+ if (apiKeyValue) {
756
+ headerParameters["X-Application-Key"] = apiKeyValue;
757
+ }
758
+ }
647
759
  }
648
760
 
649
761
  const response = await this.request({
@@ -682,11 +794,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
682
794
  headerParameters['Content-Type'] = 'application/json';
683
795
 
684
796
  if (this.configuration && this.configuration.apiKey) {
685
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
797
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
798
+ {
799
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
800
+
801
+ if (apiKeyValue) {
802
+ headerParameters["X-Application-Secret"] = apiKeyValue;
803
+ }
804
+ }
686
805
  }
687
806
 
688
807
  if (this.configuration && this.configuration.apiKey) {
689
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
808
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
809
+ {
810
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
811
+
812
+ if (apiKeyValue) {
813
+ headerParameters["X-Application-Key"] = apiKeyValue;
814
+ }
815
+ }
690
816
  }
691
817
 
692
818
  const response = await this.request({
@@ -735,11 +861,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
735
861
  headerParameters['Content-Type'] = 'application/json';
736
862
 
737
863
  if (this.configuration && this.configuration.apiKey) {
738
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
864
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
865
+ {
866
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
867
+
868
+ if (apiKeyValue) {
869
+ headerParameters["X-Application-Secret"] = apiKeyValue;
870
+ }
871
+ }
739
872
  }
740
873
 
741
874
  if (this.configuration && this.configuration.apiKey) {
742
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
875
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
876
+ {
877
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
878
+
879
+ if (apiKeyValue) {
880
+ headerParameters["X-Application-Key"] = apiKeyValue;
881
+ }
882
+ }
743
883
  }
744
884
 
745
885
  const response = await this.request({
@@ -794,11 +934,25 @@ export class AuthOrganizationsApi extends runtime.BaseAPI implements AuthOrganiz
794
934
  headerParameters['Content-Type'] = 'application/json';
795
935
 
796
936
  if (this.configuration && this.configuration.apiKey) {
797
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
937
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
938
+ {
939
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
940
+
941
+ if (apiKeyValue) {
942
+ headerParameters["X-Application-Secret"] = apiKeyValue;
943
+ }
944
+ }
798
945
  }
799
946
 
800
947
  if (this.configuration && this.configuration.apiKey) {
801
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
948
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
949
+ {
950
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
951
+
952
+ if (apiKeyValue) {
953
+ headerParameters["X-Application-Key"] = apiKeyValue;
954
+ }
955
+ }
802
956
  }
803
957
 
804
958
  const response = await this.request({
@@ -60,7 +60,7 @@ export interface AuthPasswordResetApiValidateResetTokenOperationRequest {
60
60
  */
61
61
  export interface AuthPasswordResetApiInterface {
62
62
  /**
63
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
63
+ * 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`.
64
64
  * @summary Request a password reset
65
65
  * @param {ForgotPasswordRequest} forgotPasswordRequest
66
66
  * @param {*} [options] Override http request option.
@@ -70,7 +70,7 @@ export interface AuthPasswordResetApiInterface {
70
70
  forgotPasswordRaw(requestParameters: AuthPasswordResetApiForgotPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResult>>;
71
71
 
72
72
  /**
73
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
73
+ * 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`.
74
74
  * Request a password reset
75
75
  */
76
76
  forgotPassword(forgotPasswordRequest: ForgotPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResult>;
@@ -115,7 +115,7 @@ export interface AuthPasswordResetApiInterface {
115
115
  export class AuthPasswordResetApi extends runtime.BaseAPI implements AuthPasswordResetApiInterface {
116
116
 
117
117
  /**
118
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
118
+ * 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`.
119
119
  * Request a password reset
120
120
  */
121
121
  async forgotPasswordRaw(requestParameters: AuthPasswordResetApiForgotPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResult>> {
@@ -133,11 +133,25 @@ export class AuthPasswordResetApi extends runtime.BaseAPI implements AuthPasswor
133
133
  headerParameters['Content-Type'] = 'application/json';
134
134
 
135
135
  if (this.configuration && this.configuration.apiKey) {
136
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
136
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
137
+ {
138
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
139
+
140
+ if (apiKeyValue) {
141
+ headerParameters["X-Application-Secret"] = apiKeyValue;
142
+ }
143
+ }
137
144
  }
138
145
 
139
146
  if (this.configuration && this.configuration.apiKey) {
140
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
147
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
148
+ {
149
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
150
+
151
+ if (apiKeyValue) {
152
+ headerParameters["X-Application-Key"] = apiKeyValue;
153
+ }
154
+ }
141
155
  }
142
156
 
143
157
  const response = await this.request({
@@ -152,7 +166,7 @@ export class AuthPasswordResetApi extends runtime.BaseAPI implements AuthPasswor
152
166
  }
153
167
 
154
168
  /**
155
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
169
+ * 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`.
156
170
  * Request a password reset
157
171
  */
158
172
  async forgotPassword(forgotPasswordRequest: ForgotPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResult> {
@@ -179,11 +193,25 @@ export class AuthPasswordResetApi extends runtime.BaseAPI implements AuthPasswor
179
193
  headerParameters['Content-Type'] = 'application/json';
180
194
 
181
195
  if (this.configuration && this.configuration.apiKey) {
182
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
196
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
197
+ {
198
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
199
+
200
+ if (apiKeyValue) {
201
+ headerParameters["X-Application-Secret"] = apiKeyValue;
202
+ }
203
+ }
183
204
  }
184
205
 
185
206
  if (this.configuration && this.configuration.apiKey) {
186
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
207
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
208
+ {
209
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
210
+
211
+ if (apiKeyValue) {
212
+ headerParameters["X-Application-Key"] = apiKeyValue;
213
+ }
214
+ }
187
215
  }
188
216
 
189
217
  const response = await this.request({
@@ -225,11 +253,25 @@ export class AuthPasswordResetApi extends runtime.BaseAPI implements AuthPasswor
225
253
  headerParameters['Content-Type'] = 'application/json';
226
254
 
227
255
  if (this.configuration && this.configuration.apiKey) {
228
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
256
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
257
+ {
258
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
259
+
260
+ if (apiKeyValue) {
261
+ headerParameters["X-Application-Secret"] = apiKeyValue;
262
+ }
263
+ }
229
264
  }
230
265
 
231
266
  if (this.configuration && this.configuration.apiKey) {
232
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
267
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
268
+ {
269
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
270
+
271
+ if (apiKeyValue) {
272
+ headerParameters["X-Application-Key"] = apiKeyValue;
273
+ }
274
+ }
233
275
  }
234
276
 
235
277
  const response = await this.request({
@@ -162,7 +162,14 @@ export class AuthPhoneApi extends runtime.BaseAPI implements AuthPhoneApiInterfa
162
162
  const headerParameters: runtime.HTTPHeaders = {};
163
163
 
164
164
  if (this.configuration && this.configuration.apiKey) {
165
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
165
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
166
+ {
167
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
168
+
169
+ if (apiKeyValue) {
170
+ headerParameters["X-Application-Key"] = apiKeyValue;
171
+ }
172
+ }
166
173
  }
167
174
 
168
175
  const response = await this.request({
@@ -203,11 +210,25 @@ export class AuthPhoneApi extends runtime.BaseAPI implements AuthPhoneApiInterfa
203
210
  headerParameters['Content-Type'] = 'application/json';
204
211
 
205
212
  if (this.configuration && this.configuration.apiKey) {
206
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
213
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
214
+ {
215
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
216
+
217
+ if (apiKeyValue) {
218
+ headerParameters["X-Application-Secret"] = apiKeyValue;
219
+ }
220
+ }
207
221
  }
208
222
 
209
223
  if (this.configuration && this.configuration.apiKey) {
210
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
224
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
225
+ {
226
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
227
+
228
+ if (apiKeyValue) {
229
+ headerParameters["X-Application-Key"] = apiKeyValue;
230
+ }
231
+ }
211
232
  }
212
233
 
213
234
  const response = await this.request({
@@ -249,11 +270,25 @@ export class AuthPhoneApi extends runtime.BaseAPI implements AuthPhoneApiInterfa
249
270
  headerParameters['Content-Type'] = 'application/json';
250
271
 
251
272
  if (this.configuration && this.configuration.apiKey) {
252
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
273
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
274
+ {
275
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
276
+
277
+ if (apiKeyValue) {
278
+ headerParameters["X-Application-Secret"] = apiKeyValue;
279
+ }
280
+ }
253
281
  }
254
282
 
255
283
  if (this.configuration && this.configuration.apiKey) {
256
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
284
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
285
+ {
286
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
287
+
288
+ if (apiKeyValue) {
289
+ headerParameters["X-Application-Key"] = apiKeyValue;
290
+ }
291
+ }
257
292
  }
258
293
 
259
294
  const response = await this.request({
@@ -295,11 +330,25 @@ export class AuthPhoneApi extends runtime.BaseAPI implements AuthPhoneApiInterfa
295
330
  headerParameters['Content-Type'] = 'application/json';
296
331
 
297
332
  if (this.configuration && this.configuration.apiKey) {
298
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
333
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
334
+ {
335
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
336
+
337
+ if (apiKeyValue) {
338
+ headerParameters["X-Application-Secret"] = apiKeyValue;
339
+ }
340
+ }
299
341
  }
300
342
 
301
343
  if (this.configuration && this.configuration.apiKey) {
302
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
344
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
345
+ {
346
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
347
+
348
+ if (apiKeyValue) {
349
+ headerParameters["X-Application-Key"] = apiKeyValue;
350
+ }
351
+ }
303
352
  }
304
353
 
305
354
  const response = await this.request({
@@ -341,11 +390,25 @@ export class AuthPhoneApi extends runtime.BaseAPI implements AuthPhoneApiInterfa
341
390
  headerParameters['Content-Type'] = 'application/json';
342
391
 
343
392
  if (this.configuration && this.configuration.apiKey) {
344
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
393
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
394
+ {
395
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
396
+
397
+ if (apiKeyValue) {
398
+ headerParameters["X-Application-Secret"] = apiKeyValue;
399
+ }
400
+ }
345
401
  }
346
402
 
347
403
  if (this.configuration && this.configuration.apiKey) {
348
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
404
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
405
+ {
406
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
407
+
408
+ if (apiKeyValue) {
409
+ headerParameters["X-Application-Key"] = apiKeyValue;
410
+ }
411
+ }
349
412
  }
350
413
 
351
414
  const response = await this.request({
@@ -211,11 +211,25 @@ export class AuthRegistrationApi extends runtime.BaseAPI implements AuthRegistra
211
211
  headerParameters['Content-Type'] = 'application/json';
212
212
 
213
213
  if (this.configuration && this.configuration.apiKey) {
214
- headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
214
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
215
+ {
216
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Secret"); // ApplicationSecret authentication
217
+
218
+ if (apiKeyValue) {
219
+ headerParameters["X-Application-Secret"] = apiKeyValue;
220
+ }
221
+ }
215
222
  }
216
223
 
217
224
  if (this.configuration && this.configuration.apiKey) {
218
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
225
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
226
+ {
227
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
228
+
229
+ if (apiKeyValue) {
230
+ headerParameters["X-Application-Key"] = apiKeyValue;
231
+ }
232
+ }
219
233
  }
220
234
 
221
235
  const response = await this.request({
@@ -257,7 +271,14 @@ export class AuthRegistrationApi extends runtime.BaseAPI implements AuthRegistra
257
271
  headerParameters['Content-Type'] = 'application/json';
258
272
 
259
273
  if (this.configuration && this.configuration.apiKey) {
260
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
274
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
275
+ {
276
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
277
+
278
+ if (apiKeyValue) {
279
+ headerParameters["X-Application-Key"] = apiKeyValue;
280
+ }
281
+ }
261
282
  }
262
283
 
263
284
  const response = await this.request({
@@ -299,7 +320,14 @@ export class AuthRegistrationApi extends runtime.BaseAPI implements AuthRegistra
299
320
  headerParameters['Content-Type'] = 'application/json';
300
321
 
301
322
  if (this.configuration && this.configuration.apiKey) {
302
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
323
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
324
+ {
325
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
326
+
327
+ if (apiKeyValue) {
328
+ headerParameters["X-Application-Key"] = apiKeyValue;
329
+ }
330
+ }
303
331
  }
304
332
 
305
333
  const response = await this.request({
@@ -341,7 +369,14 @@ export class AuthRegistrationApi extends runtime.BaseAPI implements AuthRegistra
341
369
  headerParameters['Content-Type'] = 'application/json';
342
370
 
343
371
  if (this.configuration && this.configuration.apiKey) {
344
- headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
372
+ // An unresolved credential must produce NO header, not an empty one (sc-8162).
373
+ {
374
+ const apiKeyValue = await this.configuration.apiKey("X-Application-Key"); // ApplicationPublicKey authentication
375
+
376
+ if (apiKeyValue) {
377
+ headerParameters["X-Application-Key"] = apiKeyValue;
378
+ }
379
+ }
345
380
  }
346
381
 
347
382
  const response = await this.request({