@unito/integrations-platform-client 1.1.12 → 1.2.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/dist/src/api.d.ts +7 -5
- package/package.json +1 -1
package/dist/src/api.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ export type AuthorizationOAuth2 = {
|
|
|
93
93
|
authorizationUrl?: string;
|
|
94
94
|
/** The URL to obtain or refresh an access token. */
|
|
95
95
|
tokenUrl: string;
|
|
96
|
+
/** The callback URL which the provider will redirect the user after granting or denying access. */
|
|
97
|
+
legacyRedirectUrl?: string;
|
|
96
98
|
grantType: AuthorizationGrantType;
|
|
97
99
|
scopes: AuthorizationScope[];
|
|
98
100
|
requestContentType: AuthorizationOAuth2ContentType;
|
|
@@ -143,7 +145,7 @@ export type IntegrationEvent = {
|
|
|
143
145
|
};
|
|
144
146
|
export type Credential = Base & {
|
|
145
147
|
/** The id of the credential. */
|
|
146
|
-
id:
|
|
148
|
+
id: string;
|
|
147
149
|
/** The id of the integration. */
|
|
148
150
|
integrationId: number;
|
|
149
151
|
/** The name of the integration. */
|
|
@@ -545,7 +547,7 @@ export declare function getCredentials({ pagination, filters, }?: {
|
|
|
545
547
|
/** The integration id of the credential. */
|
|
546
548
|
integrationId?: number;
|
|
547
549
|
/** List of credential ids. */
|
|
548
|
-
id?:
|
|
550
|
+
id?: string[];
|
|
549
551
|
/** The scope of the credential. */
|
|
550
552
|
credentialScope?: 'development' | 'compliance' | 'production' | 'service';
|
|
551
553
|
/** The id of the Unito User for which this credential belongs to. */
|
|
@@ -618,7 +620,7 @@ export declare function createCredential(body?: {
|
|
|
618
620
|
/**
|
|
619
621
|
* Get a credential
|
|
620
622
|
*/
|
|
621
|
-
export declare function getCredentialById(credentialId:
|
|
623
|
+
export declare function getCredentialById(credentialId: string, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
|
|
622
624
|
status: 200;
|
|
623
625
|
data: Credential;
|
|
624
626
|
} | {
|
|
@@ -643,7 +645,7 @@ export declare function getCredentialById(credentialId: number, opts?: Oazapfts.
|
|
|
643
645
|
/**
|
|
644
646
|
* Update a credential
|
|
645
647
|
*/
|
|
646
|
-
export declare function updateCredential(credentialId:
|
|
648
|
+
export declare function updateCredential(credentialId: string, body?: {
|
|
647
649
|
payload?: {
|
|
648
650
|
[key: string]: any;
|
|
649
651
|
};
|
|
@@ -676,7 +678,7 @@ export declare function updateCredential(credentialId: number, body?: {
|
|
|
676
678
|
/**
|
|
677
679
|
* Delete a credential
|
|
678
680
|
*/
|
|
679
|
-
export declare function deleteCredential(credentialId:
|
|
681
|
+
export declare function deleteCredential(credentialId: string, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
|
|
680
682
|
status: 204;
|
|
681
683
|
} | {
|
|
682
684
|
status: 400;
|