@compassdigital/sdk.typescript 4.766.0 → 4.768.0
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.
- package/lib/index.d.ts +43 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +52 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +77 -0
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +14 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/shoppingcart.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +121 -0
- package/src/interface/auth.ts +123 -0
- package/src/interface/shoppingcart.ts +19 -0
package/lib/index.js
CHANGED
|
@@ -7176,6 +7176,58 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
7176
7176
|
delete_auth_oauth_client(clientId, options) {
|
|
7177
7177
|
return this.request('auth', '/auth/oauth-clients/{clientId}', 'DELETE', `/auth/oauth-clients/${clientId}`, null, options);
|
|
7178
7178
|
}
|
|
7179
|
+
/**
|
|
7180
|
+
* GET /auth/.well-known/openid-configuration - OpenID Provider metadata (RFC 8414 discovery document).
|
|
7181
|
+
*
|
|
7182
|
+
* @param options - additional request options
|
|
7183
|
+
*/
|
|
7184
|
+
get_auth_openid_configuration(options) {
|
|
7185
|
+
return this.request('auth', '/auth/.well-known/openid-configuration', 'GET', `/auth/.well-known/openid-configuration`, null, options);
|
|
7186
|
+
}
|
|
7187
|
+
/**
|
|
7188
|
+
* POST /auth/oidc/register - RFC 7591 dynamic client registration for public (PKCE-only) clients.
|
|
7189
|
+
*
|
|
7190
|
+
* @param body
|
|
7191
|
+
* @param options - additional request options
|
|
7192
|
+
*/
|
|
7193
|
+
post_auth_oidc_register(body, options) {
|
|
7194
|
+
return this.request('auth', '/auth/oidc/register', 'POST', `/auth/oidc/register`, body, options);
|
|
7195
|
+
}
|
|
7196
|
+
/**
|
|
7197
|
+
* GET /auth/authorize - OAuth 2.1 authorization endpoint. Stores the request and redirects to the login page.
|
|
7198
|
+
*
|
|
7199
|
+
* @param options - additional request options
|
|
7200
|
+
*/
|
|
7201
|
+
get_auth_authorize(options) {
|
|
7202
|
+
return this.request('auth', '/auth/authorize', 'GET', `/auth/authorize`, null, options);
|
|
7203
|
+
}
|
|
7204
|
+
/**
|
|
7205
|
+
* GET /auth/authorize/request/{request_id} - What the login page needs to render a pending authorization request.
|
|
7206
|
+
*
|
|
7207
|
+
* @param request_id
|
|
7208
|
+
* @param options - additional request options
|
|
7209
|
+
*/
|
|
7210
|
+
get_auth_authorize_request(request_id, options) {
|
|
7211
|
+
return this.request('auth', '/auth/authorize/request/{request_id}', 'GET', `/auth/authorize/request/${request_id}`, null, options);
|
|
7212
|
+
}
|
|
7213
|
+
/**
|
|
7214
|
+
* POST /auth/authorize/login - Password login for a pending authorization request.
|
|
7215
|
+
*
|
|
7216
|
+
* @param body
|
|
7217
|
+
* @param options - additional request options
|
|
7218
|
+
*/
|
|
7219
|
+
post_auth_authorize_login(body, options) {
|
|
7220
|
+
return this.request('auth', '/auth/authorize/login', 'POST', `/auth/authorize/login`, body, options);
|
|
7221
|
+
}
|
|
7222
|
+
/**
|
|
7223
|
+
* POST /auth/authorize/sso - SSO login for a pending authorization request, using the secure exchange token minted by POST /auth/sso/exchange.
|
|
7224
|
+
*
|
|
7225
|
+
* @param body
|
|
7226
|
+
* @param options - additional request options
|
|
7227
|
+
*/
|
|
7228
|
+
post_auth_authorize_sso(body, options) {
|
|
7229
|
+
return this.request('auth', '/auth/authorize/sso', 'POST', `/auth/authorize/sso`, body, options);
|
|
7230
|
+
}
|
|
7179
7231
|
/**
|
|
7180
7232
|
* GET /review - Get reviews by taxonomy
|
|
7181
7233
|
*
|