@compassdigital/sdk.typescript 4.573.0 → 4.574.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/package.json
CHANGED
|
@@ -25,11 +25,11 @@ export interface Auth {
|
|
|
25
25
|
token?: string;
|
|
26
26
|
expires?: string;
|
|
27
27
|
};
|
|
28
|
-
// Access token
|
|
28
|
+
// Access token (flat field for backward compatibility; prefer the access object in new clients)
|
|
29
29
|
access_token?: string;
|
|
30
|
-
//
|
|
30
|
+
// Access token lifetime in seconds (flat field for backward compatibility)
|
|
31
31
|
expires_in?: number;
|
|
32
|
-
//
|
|
32
|
+
// When the access token expires (epoch ms, flat field for backward compatibility)
|
|
33
33
|
expires_at?: number;
|
|
34
34
|
attributes?: {
|
|
35
35
|
clientName?: string;
|
|
@@ -51,20 +51,20 @@ export interface Auth {
|
|
|
51
51
|
};
|
|
52
52
|
// Identifier of the user or session
|
|
53
53
|
id?: string;
|
|
54
|
-
// Refresh token
|
|
54
|
+
// Refresh token (flat field for backward compatibility; prefer the refresh object in new clients)
|
|
55
55
|
refresh_token?: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// GET /compassconnect/oms_token - Gets an OMS token
|
|
59
59
|
|
|
60
60
|
export interface GetCompassconnectOmsTokenQuery {
|
|
61
|
-
//
|
|
61
|
+
// SSO authorization code from the IdP after login
|
|
62
62
|
code: string;
|
|
63
63
|
// The client id of the application getting the token
|
|
64
64
|
client_id: string;
|
|
65
65
|
// The callback uri of the application calling the service
|
|
66
66
|
callback_uri: string;
|
|
67
|
-
//
|
|
67
|
+
// Base URL of the Compass/OMS instance (e.g. https://host/oauth2.0)
|
|
68
68
|
oms_url: string;
|
|
69
69
|
}
|
|
70
70
|
|