Skip to content

Commit

Permalink
prepare release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nkbhasker committed Jun 24, 2024
1 parent bc6a4d0 commit 807a452
Show file tree
Hide file tree
Showing 23 changed files with 82 additions and 45 deletions.
9 changes: 5 additions & 4 deletions lib/connect.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/connect.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions lib/connection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export default class ConnectionClient {
constructor(grpcConncet: GrpcConnect, coreClient: CoreClient);
/**
* Get a connection by id and organization id
* @param id The connection id
* @param organizationId The organization id
* @param id The connection id
* @returns {Promise<GetConnectionResponse>} The connection
*/
getConnection(id: string, organizationId: string): Promise<GetConnectionResponse>;
getConnection(organizationId: string, id: string): Promise<GetConnectionResponse>;
/**
* List connections by domain
* @param domain The domain
Expand All @@ -27,16 +27,16 @@ export default class ConnectionClient {
listConnections(organizationId: string): Promise<ListConnectionsResponse>;
/**
* Enable a connection by id and organization id
* @param id The connection id
* @param organizationId The organization id
* @param id The connection id
* @returns {Promise<ToggleConnectionResponse>} The connection enable response
*/
enableConnection(id: string, organizationId: string): Promise<ToggleConnectionResponse>;
enableConnection(organizationId: string, id: string): Promise<ToggleConnectionResponse>;
/**
* Disable a connection by id and organization id
* @param id The connection id
* @param organizationId The organization id
* @param id The connection id
* @returns {Promise<ToggleConnectionResponse>} The connection enable response
*/
disableConnection(id: string, organizationId: string): Promise<ToggleConnectionResponse>;
disableConnection(organizationId: string, id: string): Promise<ToggleConnectionResponse>;
}
12 changes: 6 additions & 6 deletions lib/connection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/connection.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/constants/user.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IdTokenClaim, User } from '../types/user';
import type { IdTokenClaim, User } from '../types/auth';
export declare const IdTokenClaimToUserMap: {
[k in keyof IdTokenClaim]: keyof User;
};
14 changes: 9 additions & 5 deletions lib/core.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { Axios, AxiosResponse } from "axios";
import { JWK } from 'jose';
import { TokenResponse } from './types/auth';
export declare const headers: {
"user-agent": string;
"x-sdk-version": string;
"x-api-version": string;
authorization: string;
};
export default class CoreClient {
readonly envUrl: string;
readonly clientId: string;
Expand All @@ -15,12 +22,9 @@ export default class CoreClient {
/**
* Authenticate with the code
* @param {string} data Data to authenticate
* @returns {Promise<AxiosResponse<{ access_token: string, id_token: string }>>} Returns access token and id token
* @returns {Promise<AxiosResponse<TokenResponse>>} Returns access token and id token
*/
authenticate(data: string): Promise<AxiosResponse<{
access_token: string;
id_token: string;
}, any>>;
authenticate(data: string): Promise<AxiosResponse<TokenResponse, any>>;
/**
* Get the JWKS from the server and store it in the client instance
* @returns {Promise<void>} Returns nothing
Expand Down
17 changes: 12 additions & 5 deletions lib/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import ScalekitClient from "./scalekit";
export { ScalekitClient };
export default ScalekitClient;
export * from "./types/scalekit";
export * from "./types/user";
export * from "./types/auth";
Loading

0 comments on commit 807a452

Please sign in to comment.