@unito/integrations-platform-client 1.1.0 → 1.1.2
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/dist/src/api.d.ts +14 -2
- package/package.json +1 -1
package/dist/src/api.d.ts
CHANGED
|
@@ -149,13 +149,21 @@ export type Credential = Base & {
|
|
|
149
149
|
/** The name of the integration. */
|
|
150
150
|
integrationName: string;
|
|
151
151
|
/** The display name of the integration. */
|
|
152
|
-
integrationDisplayName
|
|
152
|
+
integrationDisplayName?: string;
|
|
153
153
|
/** The id of the authorization. */
|
|
154
154
|
authorizationId: number;
|
|
155
155
|
/** The scope of the credential. */
|
|
156
156
|
scope: 'development' | 'compliance' | 'production' | 'service';
|
|
157
157
|
/** The id of the Unito User for which this credential belongs to. */
|
|
158
158
|
unitoUserId: string | null;
|
|
159
|
+
/** The id of the credential account. */
|
|
160
|
+
credentialAccountId?: string | null;
|
|
161
|
+
/** The last time we tried to obtain the latest credential account. */
|
|
162
|
+
lastCredentialAccountAccessAt?: string | null;
|
|
163
|
+
/** The first time obtaining the latest credential account failed. */
|
|
164
|
+
firstFailedCredentialAccountAccessAt?: string | null;
|
|
165
|
+
/** The last time the credential was refreshed. */
|
|
166
|
+
lastRefreshedAt?: string | null;
|
|
159
167
|
/** The payload of the credential, which conforms to the schema (ex. variables) of the authorization. */
|
|
160
168
|
payload: {
|
|
161
169
|
[key: string]: any;
|
|
@@ -544,6 +552,10 @@ export declare function getCredentials({ pagination, filters, }?: {
|
|
|
544
552
|
unitoUserId?: string;
|
|
545
553
|
/** The id of the credential account for which this credential belongs to. */
|
|
546
554
|
credentialAccountId?: string;
|
|
555
|
+
/** The last access to the credential account occured before the provided date. */
|
|
556
|
+
lastCredentialAccountAccessAtBefore?: string;
|
|
557
|
+
/** The first failure to access the credential account occured after the provided date. */
|
|
558
|
+
firstFailedCredentialAccountAccessAtAfter?: string;
|
|
547
559
|
};
|
|
548
560
|
}, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
|
|
549
561
|
status: 200;
|
|
@@ -718,7 +730,7 @@ export declare function getCredentialAccount(xUnitoCredentialId: string, { xUnit
|
|
|
718
730
|
*/
|
|
719
731
|
export declare function postTrack(body: {
|
|
720
732
|
jwtToken: string;
|
|
721
|
-
event: 'AUTH_START' | 'AUTH_SUBMIT' | 'AUTH_ACTION' | 'AUTH_BLOCKED' | 'USER_SUCCEEDS_CONNECTION' | 'USER_FAILED_CONNECTION';
|
|
733
|
+
event: 'AUTH_START' | 'AUTH_SUBMIT' | 'AUTH_ACTION' | 'AUTH_BLOCKED' | 'USER_SUCCEEDS_CONNECTION' | 'USER_FAILED_CONNECTION' | 'AUTH_CHOOSE_CONNECTION_SUBMIT';
|
|
722
734
|
payload?: {
|
|
723
735
|
[key: string]: any;
|
|
724
736
|
};
|