@equisoft/account-service-sdk-typescript 9.8.1-snapshot.20250630123949 → 9.8.1-snapshot.20250711131703
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/.openapi-generator/FILES +1 -0
- package/.tool-versions +1 -1
- package/dist/apis/OAuthApi.d.ts +9 -1
- package/dist/apis/OAuthApi.js +33 -0
- package/dist/esm/apis/OAuthApi.d.ts +9 -1
- package/dist/esm/apis/OAuthApi.js +34 -1
- package/dist/esm/models/OAuthClientListItem.d.ts +50 -0
- package/dist/esm/models/OAuthClientListItem.js +55 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/OAuthClientListItem.d.ts +50 -0
- package/dist/models/OAuthClientListItem.js +62 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/OAuthApi.ts +38 -0
- package/src/models/OAuthClientListItem.ts +93 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -34,6 +34,7 @@ src/models/LoginPayload.ts
|
|
|
34
34
|
src/models/NewPasswordPayload.ts
|
|
35
35
|
src/models/OAuthClient.ts
|
|
36
36
|
src/models/OAuthClientCreated.ts
|
|
37
|
+
src/models/OAuthClientListItem.ts
|
|
37
38
|
src/models/OAuthClientPublicKey.ts
|
|
38
39
|
src/models/Organization.ts
|
|
39
40
|
src/models/OrganizationApplicableServiceProfiles.ts
|
package/.tool-versions
CHANGED
package/dist/apis/OAuthApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateOrUpdateOAuthClientPayload, OAuthClient, OAuthClientCreated } from '../models/index';
|
|
13
|
+
import type { CreateOrUpdateOAuthClientPayload, OAuthClient, OAuthClientCreated, OAuthClientListItem } from '../models/index';
|
|
14
14
|
export interface CreateOrUpdateOAuthClientRequest {
|
|
15
15
|
clientId: string;
|
|
16
16
|
createOrUpdateOAuthClientPayload: CreateOrUpdateOAuthClientPayload;
|
|
@@ -38,4 +38,12 @@ export declare class OAuthApi extends runtime.BaseAPI {
|
|
|
38
38
|
* Get detailed information about an oauth client.
|
|
39
39
|
*/
|
|
40
40
|
getOAuthClient(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient>;
|
|
41
|
+
/**
|
|
42
|
+
* Get a list of all OAuth Clients.
|
|
43
|
+
*/
|
|
44
|
+
listOAuthClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthClientListItem>>>;
|
|
45
|
+
/**
|
|
46
|
+
* Get a list of all OAuth Clients.
|
|
47
|
+
*/
|
|
48
|
+
listOAuthClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>>;
|
|
41
49
|
}
|
package/dist/apis/OAuthApi.js
CHANGED
|
@@ -106,5 +106,38 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
106
106
|
return yield response.value();
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Get a list of all OAuth Clients.
|
|
111
|
+
*/
|
|
112
|
+
listOAuthClientsRaw(initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const queryParameters = {};
|
|
115
|
+
const headerParameters = {};
|
|
116
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
117
|
+
// oauth required
|
|
118
|
+
const token = this.configuration.accessToken;
|
|
119
|
+
const tokenString = yield token("OAuth2", ["account:oauthClient"]);
|
|
120
|
+
if (tokenString) {
|
|
121
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
const response = yield this.request({
|
|
125
|
+
path: `/oauthClients`,
|
|
126
|
+
method: 'GET',
|
|
127
|
+
headers: headerParameters,
|
|
128
|
+
query: queryParameters,
|
|
129
|
+
}, initOverrides);
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OAuthClientListItemFromJSON));
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Get a list of all OAuth Clients.
|
|
135
|
+
*/
|
|
136
|
+
listOAuthClients(initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const response = yield this.listOAuthClientsRaw(initOverrides);
|
|
139
|
+
return yield response.value();
|
|
140
|
+
});
|
|
141
|
+
}
|
|
109
142
|
}
|
|
110
143
|
exports.OAuthApi = OAuthApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateOrUpdateOAuthClientPayload, OAuthClient, OAuthClientCreated } from '../models/index';
|
|
13
|
+
import type { CreateOrUpdateOAuthClientPayload, OAuthClient, OAuthClientCreated, OAuthClientListItem } from '../models/index';
|
|
14
14
|
export interface CreateOrUpdateOAuthClientRequest {
|
|
15
15
|
clientId: string;
|
|
16
16
|
createOrUpdateOAuthClientPayload: CreateOrUpdateOAuthClientPayload;
|
|
@@ -38,4 +38,12 @@ export declare class OAuthApi extends runtime.BaseAPI {
|
|
|
38
38
|
* Get detailed information about an oauth client.
|
|
39
39
|
*/
|
|
40
40
|
getOAuthClient(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient>;
|
|
41
|
+
/**
|
|
42
|
+
* Get a list of all OAuth Clients.
|
|
43
|
+
*/
|
|
44
|
+
listOAuthClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthClientListItem>>>;
|
|
45
|
+
/**
|
|
46
|
+
* Get a list of all OAuth Clients.
|
|
47
|
+
*/
|
|
48
|
+
listOAuthClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>>;
|
|
41
49
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CreateOrUpdateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientCreatedFromJSON, } from '../models/index';
|
|
24
|
+
import { CreateOrUpdateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientCreatedFromJSON, OAuthClientListItemFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -103,4 +103,37 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
103
103
|
return yield response.value();
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Get a list of all OAuth Clients.
|
|
108
|
+
*/
|
|
109
|
+
listOAuthClientsRaw(initOverrides) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const queryParameters = {};
|
|
112
|
+
const headerParameters = {};
|
|
113
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
114
|
+
// oauth required
|
|
115
|
+
const token = this.configuration.accessToken;
|
|
116
|
+
const tokenString = yield token("OAuth2", ["account:oauthClient"]);
|
|
117
|
+
if (tokenString) {
|
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const response = yield this.request({
|
|
122
|
+
path: `/oauthClients`,
|
|
123
|
+
method: 'GET',
|
|
124
|
+
headers: headerParameters,
|
|
125
|
+
query: queryParameters,
|
|
126
|
+
}, initOverrides);
|
|
127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthClientListItemFromJSON));
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get a list of all OAuth Clients.
|
|
132
|
+
*/
|
|
133
|
+
listOAuthClients(initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const response = yield this.listOAuthClientsRaw(initOverrides);
|
|
136
|
+
return yield response.value();
|
|
137
|
+
});
|
|
138
|
+
}
|
|
106
139
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User account and session management
|
|
3
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 9.8.1-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Informations for an OAuth Client in a list
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthClientListItem
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthClientListItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthClientListItem
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof OAuthClientListItem
|
|
28
|
+
*/
|
|
29
|
+
audiences: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof OAuthClientListItem
|
|
34
|
+
*/
|
|
35
|
+
redirectUris: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof OAuthClientListItem
|
|
40
|
+
*/
|
|
41
|
+
scopes: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OAuthClientListItem interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOAuthClientListItem(value: object): value is OAuthClientListItem;
|
|
47
|
+
export declare function OAuthClientListItemFromJSON(json: any): OAuthClientListItem;
|
|
48
|
+
export declare function OAuthClientListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientListItem;
|
|
49
|
+
export declare function OAuthClientListItemToJSON(json: any): OAuthClientListItem;
|
|
50
|
+
export declare function OAuthClientListItemToJSONTyped(value?: OAuthClientListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* User account and session management
|
|
5
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 9.8.1-SNAPSHOT
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the OAuthClientListItem interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOAuthClientListItem(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('audiences' in value) || value['audiences'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('redirectUris' in value) || value['redirectUris'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function OAuthClientListItemFromJSON(json) {
|
|
29
|
+
return OAuthClientListItemFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function OAuthClientListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'audiences': json['audiences'],
|
|
38
|
+
'redirectUris': json['redirectUris'],
|
|
39
|
+
'scopes': json['scopes'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function OAuthClientListItemToJSON(json) {
|
|
43
|
+
return OAuthClientListItemToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function OAuthClientListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'audiences': value['audiences'],
|
|
52
|
+
'redirectUris': value['redirectUris'],
|
|
53
|
+
'scopes': value['scopes'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -21,6 +21,7 @@ export * from './LoginPayload';
|
|
|
21
21
|
export * from './NewPasswordPayload';
|
|
22
22
|
export * from './OAuthClient';
|
|
23
23
|
export * from './OAuthClientCreated';
|
|
24
|
+
export * from './OAuthClientListItem';
|
|
24
25
|
export * from './OAuthClientPublicKey';
|
|
25
26
|
export * from './Organization';
|
|
26
27
|
export * from './OrganizationApplicableServiceProfiles';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export * from './LoginPayload';
|
|
|
23
23
|
export * from './NewPasswordPayload';
|
|
24
24
|
export * from './OAuthClient';
|
|
25
25
|
export * from './OAuthClientCreated';
|
|
26
|
+
export * from './OAuthClientListItem';
|
|
26
27
|
export * from './OAuthClientPublicKey';
|
|
27
28
|
export * from './Organization';
|
|
28
29
|
export * from './OrganizationApplicableServiceProfiles';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User account and session management
|
|
3
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 9.8.1-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Informations for an OAuth Client in a list
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthClientListItem
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthClientListItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthClientListItem
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof OAuthClientListItem
|
|
28
|
+
*/
|
|
29
|
+
audiences: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof OAuthClientListItem
|
|
34
|
+
*/
|
|
35
|
+
redirectUris: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof OAuthClientListItem
|
|
40
|
+
*/
|
|
41
|
+
scopes: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OAuthClientListItem interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOAuthClientListItem(value: object): value is OAuthClientListItem;
|
|
47
|
+
export declare function OAuthClientListItemFromJSON(json: any): OAuthClientListItem;
|
|
48
|
+
export declare function OAuthClientListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientListItem;
|
|
49
|
+
export declare function OAuthClientListItemToJSON(json: any): OAuthClientListItem;
|
|
50
|
+
export declare function OAuthClientListItemToJSONTyped(value?: OAuthClientListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* User account and session management
|
|
6
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 9.8.1-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfOAuthClientListItem = instanceOfOAuthClientListItem;
|
|
17
|
+
exports.OAuthClientListItemFromJSON = OAuthClientListItemFromJSON;
|
|
18
|
+
exports.OAuthClientListItemFromJSONTyped = OAuthClientListItemFromJSONTyped;
|
|
19
|
+
exports.OAuthClientListItemToJSON = OAuthClientListItemToJSON;
|
|
20
|
+
exports.OAuthClientListItemToJSONTyped = OAuthClientListItemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OAuthClientListItem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOAuthClientListItem(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('audiences' in value) || value['audiences'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('redirectUris' in value) || value['redirectUris'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function OAuthClientListItemFromJSON(json) {
|
|
36
|
+
return OAuthClientListItemFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function OAuthClientListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'audiences': json['audiences'],
|
|
45
|
+
'redirectUris': json['redirectUris'],
|
|
46
|
+
'scopes': json['scopes'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function OAuthClientListItemToJSON(json) {
|
|
50
|
+
return OAuthClientListItemToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function OAuthClientListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'audiences': value['audiences'],
|
|
59
|
+
'redirectUris': value['redirectUris'],
|
|
60
|
+
'scopes': value['scopes'],
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './LoginPayload';
|
|
|
21
21
|
export * from './NewPasswordPayload';
|
|
22
22
|
export * from './OAuthClient';
|
|
23
23
|
export * from './OAuthClientCreated';
|
|
24
|
+
export * from './OAuthClientListItem';
|
|
24
25
|
export * from './OAuthClientPublicKey';
|
|
25
26
|
export * from './Organization';
|
|
26
27
|
export * from './OrganizationApplicableServiceProfiles';
|
package/dist/models/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __exportStar(require("./LoginPayload"), exports);
|
|
|
39
39
|
__exportStar(require("./NewPasswordPayload"), exports);
|
|
40
40
|
__exportStar(require("./OAuthClient"), exports);
|
|
41
41
|
__exportStar(require("./OAuthClientCreated"), exports);
|
|
42
|
+
__exportStar(require("./OAuthClientListItem"), exports);
|
|
42
43
|
__exportStar(require("./OAuthClientPublicKey"), exports);
|
|
43
44
|
__exportStar(require("./Organization"), exports);
|
|
44
45
|
__exportStar(require("./OrganizationApplicableServiceProfiles"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "9.8.1-snapshot.
|
|
3
|
+
"version": "9.8.1-snapshot.20250711131703",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
package/src/apis/OAuthApi.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
ErrorPayload,
|
|
20
20
|
OAuthClient,
|
|
21
21
|
OAuthClientCreated,
|
|
22
|
+
OAuthClientListItem,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
24
25
|
CreateOrUpdateOAuthClientPayloadFromJSON,
|
|
@@ -29,6 +30,8 @@ import {
|
|
|
29
30
|
OAuthClientToJSON,
|
|
30
31
|
OAuthClientCreatedFromJSON,
|
|
31
32
|
OAuthClientCreatedToJSON,
|
|
33
|
+
OAuthClientListItemFromJSON,
|
|
34
|
+
OAuthClientListItemToJSON,
|
|
32
35
|
} from '../models/index';
|
|
33
36
|
|
|
34
37
|
export interface CreateOrUpdateOAuthClientRequest {
|
|
@@ -139,4 +142,39 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
139
142
|
return await response.value();
|
|
140
143
|
}
|
|
141
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Get a list of all OAuth Clients.
|
|
147
|
+
*/
|
|
148
|
+
async listOAuthClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthClientListItem>>> {
|
|
149
|
+
const queryParameters: any = {};
|
|
150
|
+
|
|
151
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
|
+
|
|
153
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
154
|
+
// oauth required
|
|
155
|
+
const token = this.configuration.accessToken;
|
|
156
|
+
const tokenString = await token("OAuth2", ["account:oauthClient"]);
|
|
157
|
+
if (tokenString) {
|
|
158
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/oauthClients`,
|
|
164
|
+
method: 'GET',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
}, initOverrides);
|
|
168
|
+
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthClientListItemFromJSON));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Get a list of all OAuth Clients.
|
|
174
|
+
*/
|
|
175
|
+
async listOAuthClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>> {
|
|
176
|
+
const response = await this.listOAuthClientsRaw(initOverrides);
|
|
177
|
+
return await response.value();
|
|
178
|
+
}
|
|
179
|
+
|
|
142
180
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* User account and session management
|
|
5
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 9.8.1-SNAPSHOT
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Informations for an OAuth Client in a list
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OAuthClientListItem
|
|
20
|
+
*/
|
|
21
|
+
export interface OAuthClientListItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OAuthClientListItem
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof OAuthClientListItem
|
|
32
|
+
*/
|
|
33
|
+
audiences: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof OAuthClientListItem
|
|
38
|
+
*/
|
|
39
|
+
redirectUris: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof OAuthClientListItem
|
|
44
|
+
*/
|
|
45
|
+
scopes: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the OAuthClientListItem interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfOAuthClientListItem(value: object): value is OAuthClientListItem {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('audiences' in value) || value['audiences'] === undefined) return false;
|
|
54
|
+
if (!('redirectUris' in value) || value['redirectUris'] === undefined) return false;
|
|
55
|
+
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function OAuthClientListItemFromJSON(json: any): OAuthClientListItem {
|
|
60
|
+
return OAuthClientListItemFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function OAuthClientListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientListItem {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'audiences': json['audiences'],
|
|
71
|
+
'redirectUris': json['redirectUris'],
|
|
72
|
+
'scopes': json['scopes'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function OAuthClientListItemToJSON(json: any): OAuthClientListItem {
|
|
77
|
+
return OAuthClientListItemToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function OAuthClientListItemToJSONTyped(value?: OAuthClientListItem | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'audiences': value['audiences'],
|
|
89
|
+
'redirectUris': value['redirectUris'],
|
|
90
|
+
'scopes': value['scopes'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './LoginPayload';
|
|
|
23
23
|
export * from './NewPasswordPayload';
|
|
24
24
|
export * from './OAuthClient';
|
|
25
25
|
export * from './OAuthClientCreated';
|
|
26
|
+
export * from './OAuthClientListItem';
|
|
26
27
|
export * from './OAuthClientPublicKey';
|
|
27
28
|
export * from './Organization';
|
|
28
29
|
export * from './OrganizationApplicableServiceProfiles';
|