@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 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: number;
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?: number[];
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: number, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
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: number, body?: {
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: number, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
681
+ export declare function deleteCredential(credentialId: string, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
680
682
  status: 204;
681
683
  } | {
682
684
  status: 400;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integrations-platform-client",
3
- "version": "1.1.12",
3
+ "version": "1.2.0",
4
4
  "description": "The Unito Integrations Platform Client",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",