fusio-sdk 5.0.6 → 5.0.8

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.
@@ -8,6 +8,7 @@ export interface BackendConnection {
8
8
  id?: number;
9
9
  name?: string;
10
10
  class?: string;
11
+ oauth2?: boolean;
11
12
  config?: BackendConnectionConfig;
12
13
  metadata?: CommonMetadata;
13
14
  }
package/dist/Client.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Client automatically generated by SDKgen please do not edit this file manually
3
3
  * {@link https://sdkgen.app}
4
4
  */
5
- import { ClientAbstract, TokenStoreInterface } from "sdkgen-client";
5
+ import { ClientAbstract } from "sdkgen-client";
6
6
  import { AuthorizationTag } from "./AuthorizationTag";
7
7
  import { SystemTag } from "./SystemTag";
8
8
  import { ConsumerTag } from "./ConsumerTag";
@@ -12,5 +12,5 @@ export declare class Client extends ClientAbstract {
12
12
  system(): SystemTag;
13
13
  consumer(): ConsumerTag;
14
14
  backend(): BackendTag;
15
- static build(clientId: string, clientSecret: string, tokenStore: TokenStoreInterface | null, scopes: Array<string> | null): Client;
15
+ static build(): Client;
16
16
  }
package/dist/Client.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * {@link https://sdkgen.app}
4
4
  */
5
5
  import { ClientAbstract } from "sdkgen-client";
6
- import { OAuth2 } from "sdkgen-client";
6
+ import { Anonymous } from "sdkgen-client";
7
7
  import { AuthorizationTag } from "./AuthorizationTag";
8
8
  import { SystemTag } from "./SystemTag";
9
9
  import { ConsumerTag } from "./ConsumerTag";
@@ -21,7 +21,7 @@ export class Client extends ClientAbstract {
21
21
  backend() {
22
22
  return new BackendTag(this.httpClient, this.parser);
23
23
  }
24
- static build(clientId, clientSecret, tokenStore, scopes) {
25
- return new Client('https://api.typehub.cloud/', new OAuth2(clientId, clientSecret, 'https://api.typehub.cloud/authorization/token', '', tokenStore, scopes));
24
+ static build() {
25
+ return new Client('https://api.sdkgen.app/', new Anonymous());
26
26
  }
27
27
  }
@@ -23,5 +23,5 @@ export declare class ConsumerIdentityTag extends TagAbstract {
23
23
  * @throws {CommonMessageExceptionException}
24
24
  * @throws {ClientException}
25
25
  */
26
- getAll(appId?: number): Promise<ConsumerIdentityCollection>;
26
+ getAll(appId?: number, appKey?: string): Promise<ConsumerIdentityCollection>;
27
27
  }
@@ -86,13 +86,14 @@ export class ConsumerIdentityTag extends TagAbstract {
86
86
  * @throws {CommonMessageExceptionException}
87
87
  * @throws {ClientException}
88
88
  */
89
- async getAll(appId) {
89
+ async getAll(appId, appKey) {
90
90
  const url = this.parser.url('/consumer/identity', {});
91
91
  let params = {
92
92
  url: url,
93
93
  method: 'GET',
94
94
  params: this.parser.query({
95
95
  'appId': appId,
96
+ 'appKey': appKey,
96
97
  }, []),
97
98
  };
98
99
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusio-sdk",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "SDK to talk to the Fusio API",
5
5
  "keywords": [
6
6
  "API",