@equisoft/account-service-sdk-typescript 10.2.1-snapshot.20251023145701 → 10.2.1-snapshot.20251024160415
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/dist/esm/models/OAuthClient.d.ts +7 -6
- package/dist/esm/models/OAuthClient.js +5 -4
- package/dist/esm/models/OAuthClientSecret.d.ts +50 -0
- package/dist/esm/models/OAuthClientSecret.js +55 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/OAuthClient.d.ts +7 -6
- package/dist/models/OAuthClient.js +5 -4
- package/dist/models/OAuthClientSecret.d.ts +50 -0
- package/dist/models/OAuthClientSecret.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/models/OAuthClient.ts +16 -9
- package/src/models/OAuthClientSecret.ts +93 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -35,6 +35,7 @@ src/models/OAuthClient.ts
|
|
|
35
35
|
src/models/OAuthClientListItem.ts
|
|
36
36
|
src/models/OAuthClientLoginPayload.ts
|
|
37
37
|
src/models/OAuthClientPublicKey.ts
|
|
38
|
+
src/models/OAuthClientSecret.ts
|
|
38
39
|
src/models/OAuthClientUpdated.ts
|
|
39
40
|
src/models/Organization.ts
|
|
40
41
|
src/models/OrganizationApplicableServiceProfiles.ts
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OAuthClientSecret } from './OAuthClientSecret';
|
|
12
13
|
import type { OAuthClientPublicKey } from './OAuthClientPublicKey';
|
|
13
14
|
/**
|
|
14
15
|
* Represents an OAuth Client
|
|
@@ -35,12 +36,6 @@ export interface OAuthClient {
|
|
|
35
36
|
* @memberof OAuthClient
|
|
36
37
|
*/
|
|
37
38
|
displayName: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof OAuthClient
|
|
42
|
-
*/
|
|
43
|
-
clientSecret: string | null;
|
|
44
39
|
/**
|
|
45
40
|
*
|
|
46
41
|
* @type {boolean}
|
|
@@ -77,6 +72,12 @@ export interface OAuthClient {
|
|
|
77
72
|
* @memberof OAuthClient
|
|
78
73
|
*/
|
|
79
74
|
scopes: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<OAuthClientSecret>}
|
|
78
|
+
* @memberof OAuthClient
|
|
79
|
+
*/
|
|
80
|
+
secrets: Array<OAuthClientSecret>;
|
|
80
81
|
/**
|
|
81
82
|
*
|
|
82
83
|
* @type {string}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { OAuthClientSecretFromJSON, OAuthClientSecretToJSON, } from './OAuthClientSecret';
|
|
14
15
|
import { OAuthClientPublicKeyFromJSON, OAuthClientPublicKeyToJSON, } from './OAuthClientPublicKey';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the OAuthClient interface.
|
|
@@ -20,8 +21,6 @@ export function instanceOfOAuthClient(value) {
|
|
|
20
21
|
return false;
|
|
21
22
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
22
23
|
return false;
|
|
23
|
-
if (!('clientSecret' in value) || value['clientSecret'] === undefined)
|
|
24
|
-
return false;
|
|
25
24
|
if (!('trusted' in value) || value['trusted'] === undefined)
|
|
26
25
|
return false;
|
|
27
26
|
if (!('system' in value) || value['system'] === undefined)
|
|
@@ -34,6 +33,8 @@ export function instanceOfOAuthClient(value) {
|
|
|
34
33
|
return false;
|
|
35
34
|
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
36
35
|
return false;
|
|
36
|
+
if (!('secrets' in value) || value['secrets'] === undefined)
|
|
37
|
+
return false;
|
|
37
38
|
if (!('serviceAccount' in value) || value['serviceAccount'] === undefined)
|
|
38
39
|
return false;
|
|
39
40
|
if (!('serviceAccountDelegation' in value) || value['serviceAccountDelegation'] === undefined)
|
|
@@ -53,13 +54,13 @@ export function OAuthClientFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
'clientId': json['clientId'],
|
|
54
55
|
'name': json['name'] == null ? undefined : json['name'],
|
|
55
56
|
'displayName': json['displayName'],
|
|
56
|
-
'clientSecret': json['clientSecret'],
|
|
57
57
|
'trusted': json['trusted'],
|
|
58
58
|
'system': json['system'],
|
|
59
59
|
'audiences': json['audiences'],
|
|
60
60
|
'redirectUris': json['redirectUris'],
|
|
61
61
|
'grantTypes': json['grantTypes'],
|
|
62
62
|
'scopes': json['scopes'],
|
|
63
|
+
'secrets': (json['secrets'].map(OAuthClientSecretFromJSON)),
|
|
63
64
|
'jwksUri': json['jwksUri'] == null ? undefined : json['jwksUri'],
|
|
64
65
|
'publicKey': json['publicKey'] == null ? undefined : OAuthClientPublicKeyFromJSON(json['publicKey']),
|
|
65
66
|
'serviceAccount': json['serviceAccount'],
|
|
@@ -79,13 +80,13 @@ export function OAuthClientToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'clientId': value['clientId'],
|
|
80
81
|
'name': value['name'],
|
|
81
82
|
'displayName': value['displayName'],
|
|
82
|
-
'clientSecret': value['clientSecret'],
|
|
83
83
|
'trusted': value['trusted'],
|
|
84
84
|
'system': value['system'],
|
|
85
85
|
'audiences': value['audiences'],
|
|
86
86
|
'redirectUris': value['redirectUris'],
|
|
87
87
|
'grantTypes': value['grantTypes'],
|
|
88
88
|
'scopes': value['scopes'],
|
|
89
|
+
'secrets': (value['secrets'].map(OAuthClientSecretToJSON)),
|
|
89
90
|
'jwksUri': value['jwksUri'],
|
|
90
91
|
'publicKey': OAuthClientPublicKeyToJSON(value['publicKey']),
|
|
91
92
|
'serviceAccount': value['serviceAccount'],
|
|
@@ -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: 10.2.2-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
|
+
* Represents a secret for an OAuth Client
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthClientSecret
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthClientSecret {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthClientSecret
|
|
22
|
+
*/
|
|
23
|
+
uuid: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OAuthClientSecret
|
|
28
|
+
*/
|
|
29
|
+
clientId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OAuthClientSecret
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof OAuthClientSecret
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OAuthClientSecret interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOAuthClientSecret(value: object): value is OAuthClientSecret;
|
|
47
|
+
export declare function OAuthClientSecretFromJSON(json: any): OAuthClientSecret;
|
|
48
|
+
export declare function OAuthClientSecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientSecret;
|
|
49
|
+
export declare function OAuthClientSecretToJSON(json: any): OAuthClientSecret;
|
|
50
|
+
export declare function OAuthClientSecretToJSONTyped(value?: OAuthClientSecret | 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: 10.2.2-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 OAuthClientSecret interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOAuthClientSecret(value) {
|
|
18
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function OAuthClientSecretFromJSON(json) {
|
|
29
|
+
return OAuthClientSecretFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function OAuthClientSecretFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'uuid': json['uuid'],
|
|
37
|
+
'clientId': json['clientId'],
|
|
38
|
+
'description': json['description'],
|
|
39
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function OAuthClientSecretToJSON(json) {
|
|
43
|
+
return OAuthClientSecretToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function OAuthClientSecretToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'uuid': value['uuid'],
|
|
51
|
+
'clientId': value['clientId'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from './OAuthClient';
|
|
|
22
22
|
export * from './OAuthClientListItem';
|
|
23
23
|
export * from './OAuthClientLoginPayload';
|
|
24
24
|
export * from './OAuthClientPublicKey';
|
|
25
|
+
export * from './OAuthClientSecret';
|
|
25
26
|
export * from './OAuthClientUpdated';
|
|
26
27
|
export * from './Organization';
|
|
27
28
|
export * from './OrganizationApplicableServiceProfiles';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export * from './OAuthClient';
|
|
|
24
24
|
export * from './OAuthClientListItem';
|
|
25
25
|
export * from './OAuthClientLoginPayload';
|
|
26
26
|
export * from './OAuthClientPublicKey';
|
|
27
|
+
export * from './OAuthClientSecret';
|
|
27
28
|
export * from './OAuthClientUpdated';
|
|
28
29
|
export * from './Organization';
|
|
29
30
|
export * from './OrganizationApplicableServiceProfiles';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OAuthClientSecret } from './OAuthClientSecret';
|
|
12
13
|
import type { OAuthClientPublicKey } from './OAuthClientPublicKey';
|
|
13
14
|
/**
|
|
14
15
|
* Represents an OAuth Client
|
|
@@ -35,12 +36,6 @@ export interface OAuthClient {
|
|
|
35
36
|
* @memberof OAuthClient
|
|
36
37
|
*/
|
|
37
38
|
displayName: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof OAuthClient
|
|
42
|
-
*/
|
|
43
|
-
clientSecret: string | null;
|
|
44
39
|
/**
|
|
45
40
|
*
|
|
46
41
|
* @type {boolean}
|
|
@@ -77,6 +72,12 @@ export interface OAuthClient {
|
|
|
77
72
|
* @memberof OAuthClient
|
|
78
73
|
*/
|
|
79
74
|
scopes: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<OAuthClientSecret>}
|
|
78
|
+
* @memberof OAuthClient
|
|
79
|
+
*/
|
|
80
|
+
secrets: Array<OAuthClientSecret>;
|
|
80
81
|
/**
|
|
81
82
|
*
|
|
82
83
|
* @type {string}
|
|
@@ -18,6 +18,7 @@ exports.OAuthClientFromJSON = OAuthClientFromJSON;
|
|
|
18
18
|
exports.OAuthClientFromJSONTyped = OAuthClientFromJSONTyped;
|
|
19
19
|
exports.OAuthClientToJSON = OAuthClientToJSON;
|
|
20
20
|
exports.OAuthClientToJSONTyped = OAuthClientToJSONTyped;
|
|
21
|
+
const OAuthClientSecret_1 = require("./OAuthClientSecret");
|
|
21
22
|
const OAuthClientPublicKey_1 = require("./OAuthClientPublicKey");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the OAuthClient interface.
|
|
@@ -27,8 +28,6 @@ function instanceOfOAuthClient(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
29
30
|
return false;
|
|
30
|
-
if (!('clientSecret' in value) || value['clientSecret'] === undefined)
|
|
31
|
-
return false;
|
|
32
31
|
if (!('trusted' in value) || value['trusted'] === undefined)
|
|
33
32
|
return false;
|
|
34
33
|
if (!('system' in value) || value['system'] === undefined)
|
|
@@ -41,6 +40,8 @@ function instanceOfOAuthClient(value) {
|
|
|
41
40
|
return false;
|
|
42
41
|
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
43
42
|
return false;
|
|
43
|
+
if (!('secrets' in value) || value['secrets'] === undefined)
|
|
44
|
+
return false;
|
|
44
45
|
if (!('serviceAccount' in value) || value['serviceAccount'] === undefined)
|
|
45
46
|
return false;
|
|
46
47
|
if (!('serviceAccountDelegation' in value) || value['serviceAccountDelegation'] === undefined)
|
|
@@ -60,13 +61,13 @@ function OAuthClientFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'clientId': json['clientId'],
|
|
61
62
|
'name': json['name'] == null ? undefined : json['name'],
|
|
62
63
|
'displayName': json['displayName'],
|
|
63
|
-
'clientSecret': json['clientSecret'],
|
|
64
64
|
'trusted': json['trusted'],
|
|
65
65
|
'system': json['system'],
|
|
66
66
|
'audiences': json['audiences'],
|
|
67
67
|
'redirectUris': json['redirectUris'],
|
|
68
68
|
'grantTypes': json['grantTypes'],
|
|
69
69
|
'scopes': json['scopes'],
|
|
70
|
+
'secrets': (json['secrets'].map(OAuthClientSecret_1.OAuthClientSecretFromJSON)),
|
|
70
71
|
'jwksUri': json['jwksUri'] == null ? undefined : json['jwksUri'],
|
|
71
72
|
'publicKey': json['publicKey'] == null ? undefined : (0, OAuthClientPublicKey_1.OAuthClientPublicKeyFromJSON)(json['publicKey']),
|
|
72
73
|
'serviceAccount': json['serviceAccount'],
|
|
@@ -86,13 +87,13 @@ function OAuthClientToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
87
|
'clientId': value['clientId'],
|
|
87
88
|
'name': value['name'],
|
|
88
89
|
'displayName': value['displayName'],
|
|
89
|
-
'clientSecret': value['clientSecret'],
|
|
90
90
|
'trusted': value['trusted'],
|
|
91
91
|
'system': value['system'],
|
|
92
92
|
'audiences': value['audiences'],
|
|
93
93
|
'redirectUris': value['redirectUris'],
|
|
94
94
|
'grantTypes': value['grantTypes'],
|
|
95
95
|
'scopes': value['scopes'],
|
|
96
|
+
'secrets': (value['secrets'].map(OAuthClientSecret_1.OAuthClientSecretToJSON)),
|
|
96
97
|
'jwksUri': value['jwksUri'],
|
|
97
98
|
'publicKey': (0, OAuthClientPublicKey_1.OAuthClientPublicKeyToJSON)(value['publicKey']),
|
|
98
99
|
'serviceAccount': value['serviceAccount'],
|
|
@@ -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: 10.2.2-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
|
+
* Represents a secret for an OAuth Client
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthClientSecret
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthClientSecret {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthClientSecret
|
|
22
|
+
*/
|
|
23
|
+
uuid: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OAuthClientSecret
|
|
28
|
+
*/
|
|
29
|
+
clientId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OAuthClientSecret
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof OAuthClientSecret
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OAuthClientSecret interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOAuthClientSecret(value: object): value is OAuthClientSecret;
|
|
47
|
+
export declare function OAuthClientSecretFromJSON(json: any): OAuthClientSecret;
|
|
48
|
+
export declare function OAuthClientSecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientSecret;
|
|
49
|
+
export declare function OAuthClientSecretToJSON(json: any): OAuthClientSecret;
|
|
50
|
+
export declare function OAuthClientSecretToJSONTyped(value?: OAuthClientSecret | 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: 10.2.2-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.instanceOfOAuthClientSecret = instanceOfOAuthClientSecret;
|
|
17
|
+
exports.OAuthClientSecretFromJSON = OAuthClientSecretFromJSON;
|
|
18
|
+
exports.OAuthClientSecretFromJSONTyped = OAuthClientSecretFromJSONTyped;
|
|
19
|
+
exports.OAuthClientSecretToJSON = OAuthClientSecretToJSON;
|
|
20
|
+
exports.OAuthClientSecretToJSONTyped = OAuthClientSecretToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OAuthClientSecret interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOAuthClientSecret(value) {
|
|
25
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function OAuthClientSecretFromJSON(json) {
|
|
36
|
+
return OAuthClientSecretFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function OAuthClientSecretFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'uuid': json['uuid'],
|
|
44
|
+
'clientId': json['clientId'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function OAuthClientSecretToJSON(json) {
|
|
50
|
+
return OAuthClientSecretToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function OAuthClientSecretToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'uuid': value['uuid'],
|
|
58
|
+
'clientId': value['clientId'],
|
|
59
|
+
'description': value['description'],
|
|
60
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './OAuthClient';
|
|
|
22
22
|
export * from './OAuthClientListItem';
|
|
23
23
|
export * from './OAuthClientLoginPayload';
|
|
24
24
|
export * from './OAuthClientPublicKey';
|
|
25
|
+
export * from './OAuthClientSecret';
|
|
25
26
|
export * from './OAuthClientUpdated';
|
|
26
27
|
export * from './Organization';
|
|
27
28
|
export * from './OrganizationApplicableServiceProfiles';
|
package/dist/models/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __exportStar(require("./OAuthClient"), exports);
|
|
|
40
40
|
__exportStar(require("./OAuthClientListItem"), exports);
|
|
41
41
|
__exportStar(require("./OAuthClientLoginPayload"), exports);
|
|
42
42
|
__exportStar(require("./OAuthClientPublicKey"), exports);
|
|
43
|
+
__exportStar(require("./OAuthClientSecret"), exports);
|
|
43
44
|
__exportStar(require("./OAuthClientUpdated"), exports);
|
|
44
45
|
__exportStar(require("./Organization"), exports);
|
|
45
46
|
__exportStar(require("./OrganizationApplicableServiceProfiles"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "10.2.1-snapshot.
|
|
3
|
+
"version": "10.2.1-snapshot.20251024160415",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OAuthClientSecret } from './OAuthClientSecret';
|
|
17
|
+
import {
|
|
18
|
+
OAuthClientSecretFromJSON,
|
|
19
|
+
OAuthClientSecretFromJSONTyped,
|
|
20
|
+
OAuthClientSecretToJSON,
|
|
21
|
+
OAuthClientSecretToJSONTyped,
|
|
22
|
+
} from './OAuthClientSecret';
|
|
16
23
|
import type { OAuthClientPublicKey } from './OAuthClientPublicKey';
|
|
17
24
|
import {
|
|
18
25
|
OAuthClientPublicKeyFromJSON,
|
|
@@ -46,12 +53,6 @@ export interface OAuthClient {
|
|
|
46
53
|
* @memberof OAuthClient
|
|
47
54
|
*/
|
|
48
55
|
displayName: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof OAuthClient
|
|
53
|
-
*/
|
|
54
|
-
clientSecret: string | null;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
* @type {boolean}
|
|
@@ -88,6 +89,12 @@ export interface OAuthClient {
|
|
|
88
89
|
* @memberof OAuthClient
|
|
89
90
|
*/
|
|
90
91
|
scopes: Array<string>;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Array<OAuthClientSecret>}
|
|
95
|
+
* @memberof OAuthClient
|
|
96
|
+
*/
|
|
97
|
+
secrets: Array<OAuthClientSecret>;
|
|
91
98
|
/**
|
|
92
99
|
*
|
|
93
100
|
* @type {string}
|
|
@@ -132,13 +139,13 @@ export interface OAuthClient {
|
|
|
132
139
|
export function instanceOfOAuthClient(value: object): value is OAuthClient {
|
|
133
140
|
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
134
141
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
135
|
-
if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false;
|
|
136
142
|
if (!('trusted' in value) || value['trusted'] === undefined) return false;
|
|
137
143
|
if (!('system' in value) || value['system'] === undefined) return false;
|
|
138
144
|
if (!('audiences' in value) || value['audiences'] === undefined) return false;
|
|
139
145
|
if (!('redirectUris' in value) || value['redirectUris'] === undefined) return false;
|
|
140
146
|
if (!('grantTypes' in value) || value['grantTypes'] === undefined) return false;
|
|
141
147
|
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
148
|
+
if (!('secrets' in value) || value['secrets'] === undefined) return false;
|
|
142
149
|
if (!('serviceAccount' in value) || value['serviceAccount'] === undefined) return false;
|
|
143
150
|
if (!('serviceAccountDelegation' in value) || value['serviceAccountDelegation'] === undefined) return false;
|
|
144
151
|
if (!('organizationUuid' in value) || value['organizationUuid'] === undefined) return false;
|
|
@@ -158,13 +165,13 @@ export function OAuthClientFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
158
165
|
'clientId': json['clientId'],
|
|
159
166
|
'name': json['name'] == null ? undefined : json['name'],
|
|
160
167
|
'displayName': json['displayName'],
|
|
161
|
-
'clientSecret': json['clientSecret'],
|
|
162
168
|
'trusted': json['trusted'],
|
|
163
169
|
'system': json['system'],
|
|
164
170
|
'audiences': json['audiences'],
|
|
165
171
|
'redirectUris': json['redirectUris'],
|
|
166
172
|
'grantTypes': json['grantTypes'],
|
|
167
173
|
'scopes': json['scopes'],
|
|
174
|
+
'secrets': ((json['secrets'] as Array<any>).map(OAuthClientSecretFromJSON)),
|
|
168
175
|
'jwksUri': json['jwksUri'] == null ? undefined : json['jwksUri'],
|
|
169
176
|
'publicKey': json['publicKey'] == null ? undefined : OAuthClientPublicKeyFromJSON(json['publicKey']),
|
|
170
177
|
'serviceAccount': json['serviceAccount'],
|
|
@@ -188,13 +195,13 @@ export function OAuthClientToJSONTyped(value?: OAuthClient | null, ignoreDiscrim
|
|
|
188
195
|
'clientId': value['clientId'],
|
|
189
196
|
'name': value['name'],
|
|
190
197
|
'displayName': value['displayName'],
|
|
191
|
-
'clientSecret': value['clientSecret'],
|
|
192
198
|
'trusted': value['trusted'],
|
|
193
199
|
'system': value['system'],
|
|
194
200
|
'audiences': value['audiences'],
|
|
195
201
|
'redirectUris': value['redirectUris'],
|
|
196
202
|
'grantTypes': value['grantTypes'],
|
|
197
203
|
'scopes': value['scopes'],
|
|
204
|
+
'secrets': ((value['secrets'] as Array<any>).map(OAuthClientSecretToJSON)),
|
|
198
205
|
'jwksUri': value['jwksUri'],
|
|
199
206
|
'publicKey': OAuthClientPublicKeyToJSON(value['publicKey']),
|
|
200
207
|
'serviceAccount': value['serviceAccount'],
|
|
@@ -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: 10.2.2-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
|
+
* Represents a secret for an OAuth Client
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OAuthClientSecret
|
|
20
|
+
*/
|
|
21
|
+
export interface OAuthClientSecret {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OAuthClientSecret
|
|
26
|
+
*/
|
|
27
|
+
uuid: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OAuthClientSecret
|
|
32
|
+
*/
|
|
33
|
+
clientId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OAuthClientSecret
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof OAuthClientSecret
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the OAuthClientSecret interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfOAuthClientSecret(value: object): value is OAuthClientSecret {
|
|
52
|
+
if (!('uuid' in value) || value['uuid'] === undefined) return false;
|
|
53
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
54
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
55
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function OAuthClientSecretFromJSON(json: any): OAuthClientSecret {
|
|
60
|
+
return OAuthClientSecretFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function OAuthClientSecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientSecret {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'uuid': json['uuid'],
|
|
70
|
+
'clientId': json['clientId'],
|
|
71
|
+
'description': json['description'],
|
|
72
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function OAuthClientSecretToJSON(json: any): OAuthClientSecret {
|
|
77
|
+
return OAuthClientSecretToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function OAuthClientSecretToJSONTyped(value?: OAuthClientSecret | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'uuid': value['uuid'],
|
|
88
|
+
'clientId': value['clientId'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './OAuthClient';
|
|
|
24
24
|
export * from './OAuthClientListItem';
|
|
25
25
|
export * from './OAuthClientLoginPayload';
|
|
26
26
|
export * from './OAuthClientPublicKey';
|
|
27
|
+
export * from './OAuthClientSecret';
|
|
27
28
|
export * from './OAuthClientUpdated';
|
|
28
29
|
export * from './Organization';
|
|
29
30
|
export * from './OrganizationApplicableServiceProfiles';
|