fusio-sdk 3.1.0 → 3.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.
Files changed (27) hide show
  1. package/dist/src/generated/backend/Client.d.ts +2 -0
  2. package/dist/src/generated/backend/Client.js +4 -0
  3. package/dist/src/generated/backend/Identity.d.ts +21 -0
  4. package/dist/src/generated/backend/Identity.js +5 -0
  5. package/dist/src/generated/backend/IdentityCollection.d.ts +7 -0
  6. package/dist/src/generated/backend/IdentityCollection.js +5 -0
  7. package/dist/src/generated/backend/IdentityCreate.d.ts +7 -0
  8. package/dist/src/generated/backend/IdentityCreate.js +5 -0
  9. package/dist/src/generated/backend/IdentityTag.d.ts +42 -0
  10. package/dist/src/generated/backend/IdentityTag.js +213 -0
  11. package/dist/src/generated/backend/IdentityUpdate.d.ts +7 -0
  12. package/dist/src/generated/backend/IdentityUpdate.js +5 -0
  13. package/dist/src/generated/consumer/AccountTag.d.ts +0 -7
  14. package/dist/src/generated/consumer/AccountTag.js +0 -38
  15. package/dist/src/generated/consumer/Client.d.ts +2 -0
  16. package/dist/src/generated/consumer/Client.js +4 -0
  17. package/dist/src/generated/consumer/Identity.d.ts +10 -0
  18. package/dist/src/generated/consumer/Identity.js +5 -0
  19. package/dist/src/generated/consumer/IdentityCollection.d.ts +7 -0
  20. package/dist/src/generated/consumer/IdentityCollection.js +5 -0
  21. package/dist/src/generated/consumer/IdentityTag.d.ts +27 -0
  22. package/dist/src/generated/consumer/IdentityTag.js +121 -0
  23. package/dist/src/generated/consumer/Passthru.d.ts +8 -0
  24. package/dist/src/generated/consumer/Passthru.js +5 -0
  25. package/package.json +1 -1
  26. package/dist/src/generated/consumer/UserProvider.d.ts +0 -9
  27. package/dist/src/generated/consumer/UserProvider.js +0 -5
@@ -17,6 +17,7 @@ import { PlanTag } from "./PlanTag";
17
17
  import { PageTag } from "./PageTag";
18
18
  import { MarketplaceTag } from "./MarketplaceTag";
19
19
  import { LogTag } from "./LogTag";
20
+ import { IdentityTag } from "./IdentityTag";
20
21
  import { GeneratorTag } from "./GeneratorTag";
21
22
  import { EventTag } from "./EventTag";
22
23
  import { DashboardTag } from "./DashboardTag";
@@ -43,6 +44,7 @@ export declare class Client extends ClientAbstract {
43
44
  page(): PageTag;
44
45
  marketplace(): MarketplaceTag;
45
46
  log(): LogTag;
47
+ identity(): IdentityTag;
46
48
  generator(): GeneratorTag;
47
49
  event(): EventTag;
48
50
  dashboard(): DashboardTag;
@@ -17,6 +17,7 @@ import { PlanTag } from "./PlanTag";
17
17
  import { PageTag } from "./PageTag";
18
18
  import { MarketplaceTag } from "./MarketplaceTag";
19
19
  import { LogTag } from "./LogTag";
20
+ import { IdentityTag } from "./IdentityTag";
20
21
  import { GeneratorTag } from "./GeneratorTag";
21
22
  import { EventTag } from "./EventTag";
22
23
  import { DashboardTag } from "./DashboardTag";
@@ -71,6 +72,9 @@ export class Client extends ClientAbstract {
71
72
  log() {
72
73
  return new LogTag(this.httpClient, this.parser);
73
74
  }
75
+ identity() {
76
+ return new IdentityTag(this.httpClient, this.parser);
77
+ }
74
78
  generator() {
75
79
  return new GeneratorTag(this.httpClient, this.parser);
76
80
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Identity automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export interface Identity {
6
+ id?: number;
7
+ appId?: number;
8
+ roleId?: number;
9
+ name?: string;
10
+ icon?: string;
11
+ class?: string;
12
+ clientId?: string;
13
+ clientSecret?: string;
14
+ authorizationUri?: string;
15
+ tokenUri?: string;
16
+ userInfoUri?: string;
17
+ idProperty?: string;
18
+ nameProperty?: string;
19
+ emailProperty?: string;
20
+ allowCreate?: boolean;
21
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Identity automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * IdentityCollection automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import { Collection } from "./Collection";
6
+ import { Identity } from "./Identity";
7
+ export declare type IdentityCollection = Collection<Identity>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * IdentityCollection automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * IdentityCreate automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import { Identity } from "./Identity";
6
+ export interface IdentityCreate extends Identity {
7
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * IdentityCreate automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
@@ -0,0 +1,42 @@
1
+ /**
2
+ * IdentityTag automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import { TagAbstract } from "sdkgen-client";
6
+ import { Identity } from "./Identity";
7
+ import { IdentityCollection } from "./IdentityCollection";
8
+ import { IdentityCreate } from "./IdentityCreate";
9
+ import { IdentityUpdate } from "./IdentityUpdate";
10
+ import { Message } from "./Message";
11
+ export declare class IdentityTag extends TagAbstract {
12
+ /**
13
+ * @returns {Promise<Message>}
14
+ * @throws {MessageException}
15
+ * @throws {ClientException}
16
+ */
17
+ delete(identityId: string): Promise<Message>;
18
+ /**
19
+ * @returns {Promise<Message>}
20
+ * @throws {MessageException}
21
+ * @throws {ClientException}
22
+ */
23
+ update(identityId: string, payload: IdentityUpdate): Promise<Message>;
24
+ /**
25
+ * @returns {Promise<Identity>}
26
+ * @throws {MessageException}
27
+ * @throws {ClientException}
28
+ */
29
+ get(identityId: string): Promise<Identity>;
30
+ /**
31
+ * @returns {Promise<Message>}
32
+ * @throws {MessageException}
33
+ * @throws {ClientException}
34
+ */
35
+ create(payload: IdentityCreate): Promise<Message>;
36
+ /**
37
+ * @returns {Promise<IdentityCollection>}
38
+ * @throws {MessageException}
39
+ * @throws {ClientException}
40
+ */
41
+ getAll(startIndex?: number, count?: number, search?: string): Promise<IdentityCollection>;
42
+ }
@@ -0,0 +1,213 @@
1
+ /**
2
+ * IdentityTag automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import axios from "axios";
6
+ import { TagAbstract } from "sdkgen-client";
7
+ import { ClientException, UnknownStatusCodeException } from "sdkgen-client";
8
+ import { MessageException } from "./MessageException";
9
+ export class IdentityTag extends TagAbstract {
10
+ /**
11
+ * @returns {Promise<Message>}
12
+ * @throws {MessageException}
13
+ * @throws {ClientException}
14
+ */
15
+ async delete(identityId) {
16
+ const url = this.parser.url('/backend/identity/$identity_id<[0-9]+|^~>', {
17
+ 'identity_id': identityId,
18
+ });
19
+ let params = {
20
+ url: url,
21
+ method: 'DELETE',
22
+ params: this.parser.query({}),
23
+ };
24
+ try {
25
+ const response = await this.httpClient.request(params);
26
+ return response.data;
27
+ }
28
+ catch (error) {
29
+ if (error instanceof ClientException) {
30
+ throw error;
31
+ }
32
+ else if (axios.isAxiosError(error) && error.response) {
33
+ switch (error.response.status) {
34
+ case 401:
35
+ throw new MessageException(error.response.data);
36
+ case 404:
37
+ throw new MessageException(error.response.data);
38
+ case 410:
39
+ throw new MessageException(error.response.data);
40
+ case 500:
41
+ throw new MessageException(error.response.data);
42
+ default:
43
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
44
+ }
45
+ }
46
+ else {
47
+ throw new ClientException('An unknown error occurred: ' + String(error));
48
+ }
49
+ }
50
+ }
51
+ /**
52
+ * @returns {Promise<Message>}
53
+ * @throws {MessageException}
54
+ * @throws {ClientException}
55
+ */
56
+ async update(identityId, payload) {
57
+ const url = this.parser.url('/backend/identity/$identity_id<[0-9]+|^~>', {
58
+ 'identity_id': identityId,
59
+ });
60
+ let params = {
61
+ url: url,
62
+ method: 'PUT',
63
+ params: this.parser.query({}),
64
+ data: payload
65
+ };
66
+ try {
67
+ const response = await this.httpClient.request(params);
68
+ return response.data;
69
+ }
70
+ catch (error) {
71
+ if (error instanceof ClientException) {
72
+ throw error;
73
+ }
74
+ else if (axios.isAxiosError(error) && error.response) {
75
+ switch (error.response.status) {
76
+ case 400:
77
+ throw new MessageException(error.response.data);
78
+ case 401:
79
+ throw new MessageException(error.response.data);
80
+ case 404:
81
+ throw new MessageException(error.response.data);
82
+ case 410:
83
+ throw new MessageException(error.response.data);
84
+ case 500:
85
+ throw new MessageException(error.response.data);
86
+ default:
87
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
88
+ }
89
+ }
90
+ else {
91
+ throw new ClientException('An unknown error occurred: ' + String(error));
92
+ }
93
+ }
94
+ }
95
+ /**
96
+ * @returns {Promise<Identity>}
97
+ * @throws {MessageException}
98
+ * @throws {ClientException}
99
+ */
100
+ async get(identityId) {
101
+ const url = this.parser.url('/backend/identity/$identity_id<[0-9]+|^~>', {
102
+ 'identity_id': identityId,
103
+ });
104
+ let params = {
105
+ url: url,
106
+ method: 'GET',
107
+ params: this.parser.query({}),
108
+ };
109
+ try {
110
+ const response = await this.httpClient.request(params);
111
+ return response.data;
112
+ }
113
+ catch (error) {
114
+ if (error instanceof ClientException) {
115
+ throw error;
116
+ }
117
+ else if (axios.isAxiosError(error) && error.response) {
118
+ switch (error.response.status) {
119
+ case 401:
120
+ throw new MessageException(error.response.data);
121
+ case 404:
122
+ throw new MessageException(error.response.data);
123
+ case 410:
124
+ throw new MessageException(error.response.data);
125
+ case 500:
126
+ throw new MessageException(error.response.data);
127
+ default:
128
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
129
+ }
130
+ }
131
+ else {
132
+ throw new ClientException('An unknown error occurred: ' + String(error));
133
+ }
134
+ }
135
+ }
136
+ /**
137
+ * @returns {Promise<Message>}
138
+ * @throws {MessageException}
139
+ * @throws {ClientException}
140
+ */
141
+ async create(payload) {
142
+ const url = this.parser.url('/backend/identity', {});
143
+ let params = {
144
+ url: url,
145
+ method: 'POST',
146
+ params: this.parser.query({}),
147
+ data: payload
148
+ };
149
+ try {
150
+ const response = await this.httpClient.request(params);
151
+ return response.data;
152
+ }
153
+ catch (error) {
154
+ if (error instanceof ClientException) {
155
+ throw error;
156
+ }
157
+ else if (axios.isAxiosError(error) && error.response) {
158
+ switch (error.response.status) {
159
+ case 400:
160
+ throw new MessageException(error.response.data);
161
+ case 401:
162
+ throw new MessageException(error.response.data);
163
+ case 500:
164
+ throw new MessageException(error.response.data);
165
+ default:
166
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
167
+ }
168
+ }
169
+ else {
170
+ throw new ClientException('An unknown error occurred: ' + String(error));
171
+ }
172
+ }
173
+ }
174
+ /**
175
+ * @returns {Promise<IdentityCollection>}
176
+ * @throws {MessageException}
177
+ * @throws {ClientException}
178
+ */
179
+ async getAll(startIndex, count, search) {
180
+ const url = this.parser.url('/backend/identity', {});
181
+ let params = {
182
+ url: url,
183
+ method: 'GET',
184
+ params: this.parser.query({
185
+ 'startIndex': startIndex,
186
+ 'count': count,
187
+ 'search': search,
188
+ }),
189
+ };
190
+ try {
191
+ const response = await this.httpClient.request(params);
192
+ return response.data;
193
+ }
194
+ catch (error) {
195
+ if (error instanceof ClientException) {
196
+ throw error;
197
+ }
198
+ else if (axios.isAxiosError(error) && error.response) {
199
+ switch (error.response.status) {
200
+ case 401:
201
+ throw new MessageException(error.response.data);
202
+ case 500:
203
+ throw new MessageException(error.response.data);
204
+ default:
205
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
206
+ }
207
+ }
208
+ else {
209
+ throw new ClientException('An unknown error occurred: ' + String(error));
210
+ }
211
+ }
212
+ }
213
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * IdentityUpdate automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import { Identity } from "./Identity";
6
+ export interface IdentityUpdate extends Identity {
7
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * IdentityUpdate automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
@@ -14,7 +14,6 @@ import { UserEmail } from "./UserEmail";
14
14
  import { UserJWT } from "./UserJWT";
15
15
  import { UserLogin } from "./UserLogin";
16
16
  import { UserPasswordReset } from "./UserPasswordReset";
17
- import { UserProvider } from "./UserProvider";
18
17
  import { UserRefresh } from "./UserRefresh";
19
18
  import { UserRegister } from "./UserRegister";
20
19
  export declare class AccountTag extends TagAbstract {
@@ -36,12 +35,6 @@ export declare class AccountTag extends TagAbstract {
36
35
  * @throws {ClientException}
37
36
  */
38
37
  register(payload: UserRegister): Promise<Message>;
39
- /**
40
- * @returns {Promise<UserJWT>}
41
- * @throws {MessageException}
42
- * @throws {ClientException}
43
- */
44
- provider(provider: string, payload: UserProvider): Promise<UserJWT>;
45
38
  /**
46
39
  * @returns {Promise<UserJWT>}
47
40
  * @throws {MessageException}
@@ -115,44 +115,6 @@ export class AccountTag extends TagAbstract {
115
115
  }
116
116
  }
117
117
  }
118
- /**
119
- * @returns {Promise<UserJWT>}
120
- * @throws {MessageException}
121
- * @throws {ClientException}
122
- */
123
- async provider(provider, payload) {
124
- const url = this.parser.url('/consumer/provider/:provider', {
125
- 'provider': provider,
126
- });
127
- let params = {
128
- url: url,
129
- method: 'POST',
130
- params: this.parser.query({}),
131
- data: payload
132
- };
133
- try {
134
- const response = await this.httpClient.request(params);
135
- return response.data;
136
- }
137
- catch (error) {
138
- if (error instanceof ClientException) {
139
- throw error;
140
- }
141
- else if (axios.isAxiosError(error) && error.response) {
142
- switch (error.response.status) {
143
- case 400:
144
- throw new MessageException(error.response.data);
145
- case 500:
146
- throw new MessageException(error.response.data);
147
- default:
148
- throw new UnknownStatusCodeException('The server returned an unknown status code');
149
- }
150
- }
151
- else {
152
- throw new ClientException('An unknown error occurred: ' + String(error));
153
- }
154
- }
155
- }
156
118
  /**
157
119
  * @returns {Promise<UserJWT>}
158
120
  * @throws {MessageException}
@@ -3,6 +3,7 @@
3
3
  * {@link https://sdkgen.app}
4
4
  */
5
5
  import { ClientAbstract } from "sdkgen-client";
6
+ import { IdentityTag } from "./IdentityTag";
6
7
  import { AccountTag } from "./AccountTag";
7
8
  import { TransactionTag } from "./TransactionTag";
8
9
  import { SubscriptionTag } from "./SubscriptionTag";
@@ -15,6 +16,7 @@ import { GrantTag } from "./GrantTag";
15
16
  import { EventTag } from "./EventTag";
16
17
  import { AppTag } from "./AppTag";
17
18
  export declare class Client extends ClientAbstract {
19
+ identity(): IdentityTag;
18
20
  account(): AccountTag;
19
21
  transaction(): TransactionTag;
20
22
  subscription(): SubscriptionTag;
@@ -3,6 +3,7 @@
3
3
  * {@link https://sdkgen.app}
4
4
  */
5
5
  import { ClientAbstract } from "sdkgen-client";
6
+ import { IdentityTag } from "./IdentityTag";
6
7
  import { AccountTag } from "./AccountTag";
7
8
  import { TransactionTag } from "./TransactionTag";
8
9
  import { SubscriptionTag } from "./SubscriptionTag";
@@ -15,6 +16,9 @@ import { GrantTag } from "./GrantTag";
15
16
  import { EventTag } from "./EventTag";
16
17
  import { AppTag } from "./AppTag";
17
18
  export class Client extends ClientAbstract {
19
+ identity() {
20
+ return new IdentityTag(this.httpClient, this.parser);
21
+ }
18
22
  account() {
19
23
  return new AccountTag(this.httpClient, this.parser);
20
24
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Identity automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export interface Identity {
6
+ id?: number;
7
+ name?: string;
8
+ icon?: string;
9
+ redirect?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Identity automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * IdentityCollection automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import { Collection } from "./Collection";
6
+ import { Identity } from "./Identity";
7
+ export declare type IdentityCollection = Collection<Identity>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * IdentityCollection automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * IdentityTag automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import { TagAbstract } from "sdkgen-client";
6
+ import { IdentityCollection } from "./IdentityCollection";
7
+ import { Passthru } from "./Passthru";
8
+ export declare class IdentityTag extends TagAbstract {
9
+ /**
10
+ * @returns {Promise<Passthru>}
11
+ * @throws {MessageException}
12
+ * @throws {ClientException}
13
+ */
14
+ redirect(identity: string): Promise<Passthru>;
15
+ /**
16
+ * @returns {Promise<Passthru>}
17
+ * @throws {MessageException}
18
+ * @throws {ClientException}
19
+ */
20
+ exchange(identity: string): Promise<Passthru>;
21
+ /**
22
+ * @returns {Promise<IdentityCollection>}
23
+ * @throws {MessageException}
24
+ * @throws {ClientException}
25
+ */
26
+ getAll(appId?: number): Promise<IdentityCollection>;
27
+ }
@@ -0,0 +1,121 @@
1
+ /**
2
+ * IdentityTag automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ import axios from "axios";
6
+ import { TagAbstract } from "sdkgen-client";
7
+ import { ClientException, UnknownStatusCodeException } from "sdkgen-client";
8
+ import { MessageException } from "./MessageException";
9
+ export class IdentityTag extends TagAbstract {
10
+ /**
11
+ * @returns {Promise<Passthru>}
12
+ * @throws {MessageException}
13
+ * @throws {ClientException}
14
+ */
15
+ async redirect(identity) {
16
+ const url = this.parser.url('/consumer/identity/:identity/redirect', {
17
+ 'identity': identity,
18
+ });
19
+ let params = {
20
+ url: url,
21
+ method: 'GET',
22
+ params: this.parser.query({}),
23
+ };
24
+ try {
25
+ const response = await this.httpClient.request(params);
26
+ return response.data;
27
+ }
28
+ catch (error) {
29
+ if (error instanceof ClientException) {
30
+ throw error;
31
+ }
32
+ else if (axios.isAxiosError(error) && error.response) {
33
+ switch (error.response.status) {
34
+ case 400:
35
+ throw new MessageException(error.response.data);
36
+ case 500:
37
+ throw new MessageException(error.response.data);
38
+ default:
39
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
40
+ }
41
+ }
42
+ else {
43
+ throw new ClientException('An unknown error occurred: ' + String(error));
44
+ }
45
+ }
46
+ }
47
+ /**
48
+ * @returns {Promise<Passthru>}
49
+ * @throws {MessageException}
50
+ * @throws {ClientException}
51
+ */
52
+ async exchange(identity) {
53
+ const url = this.parser.url('/consumer/identity/:identity/exchange', {
54
+ 'identity': identity,
55
+ });
56
+ let params = {
57
+ url: url,
58
+ method: 'GET',
59
+ params: this.parser.query({}),
60
+ };
61
+ try {
62
+ const response = await this.httpClient.request(params);
63
+ return response.data;
64
+ }
65
+ catch (error) {
66
+ if (error instanceof ClientException) {
67
+ throw error;
68
+ }
69
+ else if (axios.isAxiosError(error) && error.response) {
70
+ switch (error.response.status) {
71
+ case 400:
72
+ throw new MessageException(error.response.data);
73
+ case 500:
74
+ throw new MessageException(error.response.data);
75
+ default:
76
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
77
+ }
78
+ }
79
+ else {
80
+ throw new ClientException('An unknown error occurred: ' + String(error));
81
+ }
82
+ }
83
+ }
84
+ /**
85
+ * @returns {Promise<IdentityCollection>}
86
+ * @throws {MessageException}
87
+ * @throws {ClientException}
88
+ */
89
+ async getAll(appId) {
90
+ const url = this.parser.url('/consumer/identity', {});
91
+ let params = {
92
+ url: url,
93
+ method: 'GET',
94
+ params: this.parser.query({
95
+ 'appId': appId,
96
+ }),
97
+ };
98
+ try {
99
+ const response = await this.httpClient.request(params);
100
+ return response.data;
101
+ }
102
+ catch (error) {
103
+ if (error instanceof ClientException) {
104
+ throw error;
105
+ }
106
+ else if (axios.isAxiosError(error) && error.response) {
107
+ switch (error.response.status) {
108
+ case 400:
109
+ throw new MessageException(error.response.data);
110
+ case 500:
111
+ throw new MessageException(error.response.data);
112
+ default:
113
+ throw new UnknownStatusCodeException('The server returned an unknown status code');
114
+ }
115
+ }
116
+ else {
117
+ throw new ClientException('An unknown error occurred: ' + String(error));
118
+ }
119
+ }
120
+ }
121
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Passthru automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ /**
6
+ * No schema information available
7
+ */
8
+ export declare type Passthru = Record<string, any>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Passthru automatically generated by SDKgen please do not edit this file manually
3
+ * {@link https://sdkgen.app}
4
+ */
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusio-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "SDK to talk to the Fusio API",
5
5
  "keywords": [
6
6
  "API",
@@ -1,9 +0,0 @@
1
- /**
2
- * UserProvider automatically generated by SDKgen please do not edit this file manually
3
- * {@link https://sdkgen.app}
4
- */
5
- export interface UserProvider {
6
- code?: string;
7
- clientId?: string;
8
- redirectUri?: string;
9
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * UserProvider automatically generated by SDKgen please do not edit this file manually
3
- * {@link https://sdkgen.app}
4
- */
5
- export {};