@compassdigital/sdk.typescript 4.941.0 → 4.942.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.
@@ -5037,6 +5037,31 @@ export interface PostConsumerUserAccessCodeRedeemResponse {
5037
5037
  client: string;
5038
5038
  }
5039
5039
 
5040
+ export interface ConsumerUserAuthToken {
5041
+ // The token value
5042
+ token?: string;
5043
+ // When the token expires
5044
+ expires?: string;
5045
+ }
5046
+
5047
+ export interface ConsumerUserAuthResponse {
5048
+ // @deprecated
5049
+ token?: string;
5050
+ // The access token
5051
+ access?: ConsumerUserAuthToken;
5052
+ // The refresh token
5053
+ refresh?: ConsumerUserAuthToken;
5054
+ // The ID of the user
5055
+ user?: string;
5056
+ // The profile of the user
5057
+ profile?: GetConsumerUserResponse;
5058
+ }
5059
+
5060
+ export interface PostConsumerUserAuthRequest {
5061
+ // The refresh token issued at login or the last refresh
5062
+ refresh_token?: string;
5063
+ }
5064
+
5040
5065
  // GET /consumer/v1/health-check
5041
5066
 
5042
5067
  export type HealthCheckControllerExecuteResponse = {};
@@ -5989,3 +6014,23 @@ export type PostConsumerUserAccessCodeValidateResponse$0 =
5989
6014
  export type PostConsumerUserAccessCodeRedeemBody = PostConsumerUserAccessCodeRedeemRequest;
5990
6015
 
5991
6016
  export type PostConsumerUserAccessCodeRedeemResponse$0 = PostConsumerUserAccessCodeRedeemResponse;
6017
+
6018
+ // GET /consumer/user/auth - Log a user in with their email and password
6019
+
6020
+ export interface GetConsumerUserAuthQuery {
6021
+ // The realm of the user
6022
+ realm?: string;
6023
+ }
6024
+
6025
+ export type GetConsumerUserAuthResponse = ConsumerUserAuthResponse;
6026
+
6027
+ // POST /consumer/user/auth - Exchange a refresh token for new access and refresh tokens
6028
+
6029
+ export interface PostConsumerUserAuthQuery {
6030
+ // The realm of the user
6031
+ realm?: string;
6032
+ }
6033
+
6034
+ export type PostConsumerUserAuthBody = PostConsumerUserAuthRequest;
6035
+
6036
+ export type PostConsumerUserAuthResponse = ConsumerUserAuthResponse;