commerce-sdk-isomorphic 5.0.0-unstable-20260129081332 → 5.0.0-unstable-20260131080822

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.
@@ -41297,6 +41297,7 @@ type authorizePasswordlessCustomerBodyType = {
41297
41297
  email?: string;
41298
41298
  first_name?: string;
41299
41299
  phone_number?: string;
41300
+ customer_no?: string;
41300
41301
  };
41301
41302
  type authorizeWebauthnRegistrationQueryParameters = {};
41302
41303
  type authorizeWebauthnRegistrationPathParameters = {
@@ -41483,7 +41484,7 @@ type startWebauthnAuthenticationBodyType = {
41483
41484
  tenant_id?: string;
41484
41485
  client_id: string;
41485
41486
  channel_id: string;
41486
- user_id: string;
41487
+ user_id?: string;
41487
41488
  };
41488
41489
  type startWebauthnUserRegistrationQueryParameters = {};
41489
41490
  type startWebauthnUserRegistrationPathParameters = {
@@ -41625,7 +41626,8 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
41625
41626
  "last_name",
41626
41627
  "email",
41627
41628
  "first_name",
41628
- "phone_number"
41629
+ "phone_number",
41630
+ "customer_no"
41629
41631
  ];
41630
41632
  readonly authorizePasswordlessCustomerRequired: readonly [
41631
41633
  "organizationId",
@@ -41867,14 +41869,13 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
41867
41869
  "organizationId",
41868
41870
  "client_id",
41869
41871
  "channel_id",
41870
- "user_id",
41871
- "tenant_id"
41872
+ "tenant_id",
41873
+ "user_id"
41872
41874
  ];
41873
41875
  readonly startWebauthnAuthenticationRequired: readonly [
41874
41876
  "organizationId",
41875
41877
  "client_id",
41876
- "channel_id",
41877
- "user_id"
41878
+ "channel_id"
41878
41879
  ];
41879
41880
  readonly startWebauthnUserRegistration: readonly [
41880
41881
  "organizationId",
@@ -42106,7 +42107,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42106
42107
  * @param options.body - The data to send as the request body.
42107
42108
  * @param options.body.user_id - User ID for logging in.
42108
42109
  * @param options.body.mode - Password Action delivery modes
42109
- * @param options.body.locale - The locale of the template. Not needed for the `callback` mode
42110
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
42110
42111
  * @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
42111
42112
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
42112
42113
  * @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -42114,6 +42115,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42114
42115
  * @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
42115
42116
  * @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
42116
42117
  * @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
42118
+ * @param options.body.customer_no - The customer number assigned to the shopper profile when `register_customer` is set to `true`. If the `customer_no` already exists, the request fails. The `customer_no` parameter is optional and only used when `register_customer` is set to `true`.
42117
42119
  *
42118
42120
  * @returns A promise of type string.
42119
42121
  */
@@ -42141,7 +42143,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42141
42143
  * @param options.body - The data to send as the request body.
42142
42144
  * @param options.body.user_id - User ID for logging in.
42143
42145
  * @param options.body.mode - Password Action delivery modes
42144
- * @param options.body.locale - The locale of the template. Not needed for the `callback` mode
42146
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
42145
42147
  * @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
42146
42148
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
42147
42149
  * @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -42149,6 +42151,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42149
42151
  * @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
42150
42152
  * @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
42151
42153
  * @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
42154
+ * @param options.body.customer_no - The customer number assigned to the shopper profile when `register_customer` is set to `true`. If the `customer_no` already exists, the request fails. The `customer_no` parameter is optional and only used when `register_customer` is set to `true`.
42152
42155
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
42153
42156
  *
42154
42157
  * @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
@@ -42179,7 +42182,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42179
42182
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
42180
42183
  * @param options.body.mode - Password Action delivery modes
42181
42184
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
42182
- * @param options.body.locale - The locale of the template.
42185
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
42183
42186
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
42184
42187
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
42185
42188
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -42211,7 +42214,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42211
42214
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
42212
42215
  * @param options.body.mode - Password Action delivery modes
42213
42216
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
42214
- * @param options.body.locale - The locale of the template.
42217
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
42215
42218
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
42216
42219
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
42217
42220
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -42526,7 +42529,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42526
42529
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
42527
42530
  * @param options.body.mode - Password Action delivery modes
42528
42531
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
42529
- * @param options.body.locale - The locale of the template.
42532
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
42530
42533
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
42531
42534
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
42532
42535
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -42555,7 +42558,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
42555
42558
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
42556
42559
  * @param options.body.mode - Password Action delivery modes
42557
42560
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
42558
- * @param options.body.locale - The locale of the template.
42561
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
42559
42562
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
42560
42563
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
42561
42564
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -43843,6 +43846,7 @@ declare namespace ShopperLoginApiTypes {
43843
43846
  email?: string;
43844
43847
  first_name?: string;
43845
43848
  phone_number?: string;
43849
+ customer_no?: string;
43846
43850
  };
43847
43851
  type authorizeWebauthnRegistrationQueryParameters = {};
43848
43852
  type authorizeWebauthnRegistrationPathParameters = {
@@ -44029,7 +44033,7 @@ declare namespace ShopperLoginApiTypes {
44029
44033
  tenant_id?: string;
44030
44034
  client_id: string;
44031
44035
  channel_id: string;
44032
- user_id: string;
44036
+ user_id?: string;
44033
44037
  };
44034
44038
  type startWebauthnUserRegistrationQueryParameters = {};
44035
44039
  type startWebauthnUserRegistrationPathParameters = {
@@ -44171,7 +44175,8 @@ declare namespace ShopperLoginApiTypes {
44171
44175
  "last_name",
44172
44176
  "email",
44173
44177
  "first_name",
44174
- "phone_number"
44178
+ "phone_number",
44179
+ "customer_no"
44175
44180
  ];
44176
44181
  readonly authorizePasswordlessCustomerRequired: readonly [
44177
44182
  "organizationId",
@@ -44413,14 +44418,13 @@ declare namespace ShopperLoginApiTypes {
44413
44418
  "organizationId",
44414
44419
  "client_id",
44415
44420
  "channel_id",
44416
- "user_id",
44417
- "tenant_id"
44421
+ "tenant_id",
44422
+ "user_id"
44418
44423
  ];
44419
44424
  readonly startWebauthnAuthenticationRequired: readonly [
44420
44425
  "organizationId",
44421
44426
  "client_id",
44422
- "channel_id",
44423
- "user_id"
44427
+ "channel_id"
44424
44428
  ];
44425
44429
  readonly startWebauthnUserRegistration: readonly [
44426
44430
  "organizationId",
@@ -44652,7 +44656,7 @@ declare namespace ShopperLoginApiTypes {
44652
44656
  * @param options.body - The data to send as the request body.
44653
44657
  * @param options.body.user_id - User ID for logging in.
44654
44658
  * @param options.body.mode - Password Action delivery modes
44655
- * @param options.body.locale - The locale of the template. Not needed for the `callback` mode
44659
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
44656
44660
  * @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
44657
44661
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
44658
44662
  * @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -44660,6 +44664,7 @@ declare namespace ShopperLoginApiTypes {
44660
44664
  * @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
44661
44665
  * @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
44662
44666
  * @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
44667
+ * @param options.body.customer_no - The customer number assigned to the shopper profile when `register_customer` is set to `true`. If the `customer_no` already exists, the request fails. The `customer_no` parameter is optional and only used when `register_customer` is set to `true`.
44663
44668
  *
44664
44669
  * @returns A promise of type string.
44665
44670
  */
@@ -44687,7 +44692,7 @@ declare namespace ShopperLoginApiTypes {
44687
44692
  * @param options.body - The data to send as the request body.
44688
44693
  * @param options.body.user_id - User ID for logging in.
44689
44694
  * @param options.body.mode - Password Action delivery modes
44690
- * @param options.body.locale - The locale of the template. Not needed for the `callback` mode
44695
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
44691
44696
  * @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
44692
44697
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
44693
44698
  * @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -44695,6 +44700,7 @@ declare namespace ShopperLoginApiTypes {
44695
44700
  * @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
44696
44701
  * @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
44697
44702
  * @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
44703
+ * @param options.body.customer_no - The customer number assigned to the shopper profile when `register_customer` is set to `true`. If the `customer_no` already exists, the request fails. The `customer_no` parameter is optional and only used when `register_customer` is set to `true`.
44698
44704
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
44699
44705
  *
44700
44706
  * @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
@@ -44725,7 +44731,7 @@ declare namespace ShopperLoginApiTypes {
44725
44731
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
44726
44732
  * @param options.body.mode - Password Action delivery modes
44727
44733
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
44728
- * @param options.body.locale - The locale of the template.
44734
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
44729
44735
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
44730
44736
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
44731
44737
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -44757,7 +44763,7 @@ declare namespace ShopperLoginApiTypes {
44757
44763
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
44758
44764
  * @param options.body.mode - Password Action delivery modes
44759
44765
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
44760
- * @param options.body.locale - The locale of the template.
44766
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
44761
44767
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
44762
44768
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
44763
44769
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -45072,7 +45078,7 @@ declare namespace ShopperLoginApiTypes {
45072
45078
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
45073
45079
  * @param options.body.mode - Password Action delivery modes
45074
45080
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
45075
- * @param options.body.locale - The locale of the template.
45081
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
45076
45082
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
45077
45083
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
45078
45084
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -45101,7 +45107,7 @@ declare namespace ShopperLoginApiTypes {
45101
45107
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
45102
45108
  * @param options.body.mode - Password Action delivery modes
45103
45109
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
45104
- * @param options.body.locale - The locale of the template.
45110
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
45105
45111
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
45106
45112
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
45107
45113
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -63010,6 +63016,7 @@ declare namespace helpers {
63010
63016
  email?: string;
63011
63017
  first_name?: string;
63012
63018
  phone_number?: string;
63019
+ customer_no?: string;
63013
63020
  };
63014
63021
  type authorizeWebauthnRegistrationQueryParameters = {};
63015
63022
  type authorizeWebauthnRegistrationPathParameters = {
@@ -63196,7 +63203,7 @@ declare namespace helpers {
63196
63203
  tenant_id?: string;
63197
63204
  client_id: string;
63198
63205
  channel_id: string;
63199
- user_id: string;
63206
+ user_id?: string;
63200
63207
  };
63201
63208
  type startWebauthnUserRegistrationQueryParameters = {};
63202
63209
  type startWebauthnUserRegistrationPathParameters = {
@@ -63338,7 +63345,8 @@ declare namespace helpers {
63338
63345
  "last_name",
63339
63346
  "email",
63340
63347
  "first_name",
63341
- "phone_number"
63348
+ "phone_number",
63349
+ "customer_no"
63342
63350
  ];
63343
63351
  readonly authorizePasswordlessCustomerRequired: readonly [
63344
63352
  "organizationId",
@@ -63580,14 +63588,13 @@ declare namespace helpers {
63580
63588
  "organizationId",
63581
63589
  "client_id",
63582
63590
  "channel_id",
63583
- "user_id",
63584
- "tenant_id"
63591
+ "tenant_id",
63592
+ "user_id"
63585
63593
  ];
63586
63594
  readonly startWebauthnAuthenticationRequired: readonly [
63587
63595
  "organizationId",
63588
63596
  "client_id",
63589
- "channel_id",
63590
- "user_id"
63597
+ "channel_id"
63591
63598
  ];
63592
63599
  readonly startWebauthnUserRegistration: readonly [
63593
63600
  "organizationId",
@@ -63819,7 +63826,7 @@ declare namespace helpers {
63819
63826
  * @param options.body - The data to send as the request body.
63820
63827
  * @param options.body.user_id - User ID for logging in.
63821
63828
  * @param options.body.mode - Password Action delivery modes
63822
- * @param options.body.locale - The locale of the template. Not needed for the `callback` mode
63829
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
63823
63830
  * @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
63824
63831
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
63825
63832
  * @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -63827,6 +63834,7 @@ declare namespace helpers {
63827
63834
  * @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
63828
63835
  * @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
63829
63836
  * @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
63837
+ * @param options.body.customer_no - The customer number assigned to the shopper profile when `register_customer` is set to `true`. If the `customer_no` already exists, the request fails. The `customer_no` parameter is optional and only used when `register_customer` is set to `true`.
63830
63838
  *
63831
63839
  * @returns A promise of type string.
63832
63840
  */
@@ -63854,7 +63862,7 @@ declare namespace helpers {
63854
63862
  * @param options.body - The data to send as the request body.
63855
63863
  * @param options.body.user_id - User ID for logging in.
63856
63864
  * @param options.body.mode - Password Action delivery modes
63857
- * @param options.body.locale - The locale of the template. Not needed for the `callback` mode
63865
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
63858
63866
  * @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
63859
63867
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
63860
63868
  * @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -63862,6 +63870,7 @@ declare namespace helpers {
63862
63870
  * @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
63863
63871
  * @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
63864
63872
  * @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
63873
+ * @param options.body.customer_no - The customer number assigned to the shopper profile when `register_customer` is set to `true`. If the `customer_no` already exists, the request fails. The `customer_no` parameter is optional and only used when `register_customer` is set to `true`.
63865
63874
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
63866
63875
  *
63867
63876
  * @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
@@ -63892,7 +63901,7 @@ declare namespace helpers {
63892
63901
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
63893
63902
  * @param options.body.mode - Password Action delivery modes
63894
63903
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
63895
- * @param options.body.locale - The locale of the template.
63904
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
63896
63905
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
63897
63906
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
63898
63907
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -63924,7 +63933,7 @@ declare namespace helpers {
63924
63933
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
63925
63934
  * @param options.body.mode - Password Action delivery modes
63926
63935
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
63927
- * @param options.body.locale - The locale of the template.
63936
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
63928
63937
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
63929
63938
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
63930
63939
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -64239,7 +64248,7 @@ declare namespace helpers {
64239
64248
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
64240
64249
  * @param options.body.mode - Password Action delivery modes
64241
64250
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
64242
- * @param options.body.locale - The locale of the template.
64251
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
64243
64252
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
64244
64253
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
64245
64254
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
@@ -64268,7 +64277,7 @@ declare namespace helpers {
64268
64277
  * @param options.body.user_id - User ID for logging in. This is the id that is used to log into SFCC.
64269
64278
  * @param options.body.mode - Password Action delivery modes
64270
64279
  * @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
64271
- * @param options.body.locale - The locale of the template.
64280
+ * @param options.body.locale - The locale of the template. Required when the mode is `email` or `sms`.
64272
64281
  * @param options.body.client_id - -| The public client ID. Requires setting `grant_type` to `passwordless_login_pkce`. When using the `hint` query parameter either a public or private client ID can be used.
64273
64282
  * @param options.body.code_challenge - PKCE code challenge. Created by the client. The `code_challenge` is created by SHA256 hashing the `code_verifier` and Base64 encoding the resulting hash. The `code_verifier` should be a high entropy cryptographically random string with a minimum of 43 characters and a maximum of 128 characters. Requires setting `grant_type` to `passwordless_login_pkce`
64274
64283
  * @param options.body.callback_uri - The callback uri. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.