@equisoft/account-service-sdk-typescript 10.2.1-snapshot.20251023170305 → 10.2.1-snapshot.20251027114327
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/esm/models/OAuthClient.d.ts +7 -0
- package/dist/esm/models/OAuthClient.js +5 -0
- 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 -0
- package/dist/models/OAuthClient.js +5 -0
- 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 -0
- 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
|
package/.tool-versions
CHANGED
|
@@ -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
|
|
@@ -71,6 +72,12 @@ export interface OAuthClient {
|
|
|
71
72
|
* @memberof OAuthClient
|
|
72
73
|
*/
|
|
73
74
|
scopes: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<OAuthClientSecret>}
|
|
78
|
+
* @memberof OAuthClient
|
|
79
|
+
*/
|
|
80
|
+
secrets: Array<OAuthClientSecret>;
|
|
74
81
|
/**
|
|
75
82
|
*
|
|
76
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.
|
|
@@ -32,6 +33,8 @@ export function instanceOfOAuthClient(value) {
|
|
|
32
33
|
return false;
|
|
33
34
|
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
34
35
|
return false;
|
|
36
|
+
if (!('secrets' in value) || value['secrets'] === undefined)
|
|
37
|
+
return false;
|
|
35
38
|
if (!('serviceAccount' in value) || value['serviceAccount'] === undefined)
|
|
36
39
|
return false;
|
|
37
40
|
if (!('serviceAccountDelegation' in value) || value['serviceAccountDelegation'] === undefined)
|
|
@@ -57,6 +60,7 @@ export function OAuthClientFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
60
|
'redirectUris': json['redirectUris'],
|
|
58
61
|
'grantTypes': json['grantTypes'],
|
|
59
62
|
'scopes': json['scopes'],
|
|
63
|
+
'secrets': (json['secrets'].map(OAuthClientSecretFromJSON)),
|
|
60
64
|
'jwksUri': json['jwksUri'] == null ? undefined : json['jwksUri'],
|
|
61
65
|
'publicKey': json['publicKey'] == null ? undefined : OAuthClientPublicKeyFromJSON(json['publicKey']),
|
|
62
66
|
'serviceAccount': json['serviceAccount'],
|
|
@@ -82,6 +86,7 @@ export function OAuthClientToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
82
86
|
'redirectUris': value['redirectUris'],
|
|
83
87
|
'grantTypes': value['grantTypes'],
|
|
84
88
|
'scopes': value['scopes'],
|
|
89
|
+
'secrets': (value['secrets'].map(OAuthClientSecretToJSON)),
|
|
85
90
|
'jwksUri': value['jwksUri'],
|
|
86
91
|
'publicKey': OAuthClientPublicKeyToJSON(value['publicKey']),
|
|
87
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
|
|
@@ -71,6 +72,12 @@ export interface OAuthClient {
|
|
|
71
72
|
* @memberof OAuthClient
|
|
72
73
|
*/
|
|
73
74
|
scopes: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<OAuthClientSecret>}
|
|
78
|
+
* @memberof OAuthClient
|
|
79
|
+
*/
|
|
80
|
+
secrets: Array<OAuthClientSecret>;
|
|
74
81
|
/**
|
|
75
82
|
*
|
|
76
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.
|
|
@@ -39,6 +40,8 @@ function instanceOfOAuthClient(value) {
|
|
|
39
40
|
return false;
|
|
40
41
|
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
41
42
|
return false;
|
|
43
|
+
if (!('secrets' in value) || value['secrets'] === undefined)
|
|
44
|
+
return false;
|
|
42
45
|
if (!('serviceAccount' in value) || value['serviceAccount'] === undefined)
|
|
43
46
|
return false;
|
|
44
47
|
if (!('serviceAccountDelegation' in value) || value['serviceAccountDelegation'] === undefined)
|
|
@@ -64,6 +67,7 @@ function OAuthClientFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
67
|
'redirectUris': json['redirectUris'],
|
|
65
68
|
'grantTypes': json['grantTypes'],
|
|
66
69
|
'scopes': json['scopes'],
|
|
70
|
+
'secrets': (json['secrets'].map(OAuthClientSecret_1.OAuthClientSecretFromJSON)),
|
|
67
71
|
'jwksUri': json['jwksUri'] == null ? undefined : json['jwksUri'],
|
|
68
72
|
'publicKey': json['publicKey'] == null ? undefined : (0, OAuthClientPublicKey_1.OAuthClientPublicKeyFromJSON)(json['publicKey']),
|
|
69
73
|
'serviceAccount': json['serviceAccount'],
|
|
@@ -89,6 +93,7 @@ function OAuthClientToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
93
|
'redirectUris': value['redirectUris'],
|
|
90
94
|
'grantTypes': value['grantTypes'],
|
|
91
95
|
'scopes': value['scopes'],
|
|
96
|
+
'secrets': (value['secrets'].map(OAuthClientSecret_1.OAuthClientSecretToJSON)),
|
|
92
97
|
'jwksUri': value['jwksUri'],
|
|
93
98
|
'publicKey': (0, OAuthClientPublicKey_1.OAuthClientPublicKeyToJSON)(value['publicKey']),
|
|
94
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.20251027114327",
|
|
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,
|
|
@@ -82,6 +89,12 @@ export interface OAuthClient {
|
|
|
82
89
|
* @memberof OAuthClient
|
|
83
90
|
*/
|
|
84
91
|
scopes: Array<string>;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Array<OAuthClientSecret>}
|
|
95
|
+
* @memberof OAuthClient
|
|
96
|
+
*/
|
|
97
|
+
secrets: Array<OAuthClientSecret>;
|
|
85
98
|
/**
|
|
86
99
|
*
|
|
87
100
|
* @type {string}
|
|
@@ -132,6 +145,7 @@ export function instanceOfOAuthClient(value: object): value is OAuthClient {
|
|
|
132
145
|
if (!('redirectUris' in value) || value['redirectUris'] === undefined) return false;
|
|
133
146
|
if (!('grantTypes' in value) || value['grantTypes'] === undefined) return false;
|
|
134
147
|
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
148
|
+
if (!('secrets' in value) || value['secrets'] === undefined) return false;
|
|
135
149
|
if (!('serviceAccount' in value) || value['serviceAccount'] === undefined) return false;
|
|
136
150
|
if (!('serviceAccountDelegation' in value) || value['serviceAccountDelegation'] === undefined) return false;
|
|
137
151
|
if (!('organizationUuid' in value) || value['organizationUuid'] === undefined) return false;
|
|
@@ -157,6 +171,7 @@ export function OAuthClientFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
157
171
|
'redirectUris': json['redirectUris'],
|
|
158
172
|
'grantTypes': json['grantTypes'],
|
|
159
173
|
'scopes': json['scopes'],
|
|
174
|
+
'secrets': ((json['secrets'] as Array<any>).map(OAuthClientSecretFromJSON)),
|
|
160
175
|
'jwksUri': json['jwksUri'] == null ? undefined : json['jwksUri'],
|
|
161
176
|
'publicKey': json['publicKey'] == null ? undefined : OAuthClientPublicKeyFromJSON(json['publicKey']),
|
|
162
177
|
'serviceAccount': json['serviceAccount'],
|
|
@@ -186,6 +201,7 @@ export function OAuthClientToJSONTyped(value?: OAuthClient | null, ignoreDiscrim
|
|
|
186
201
|
'redirectUris': value['redirectUris'],
|
|
187
202
|
'grantTypes': value['grantTypes'],
|
|
188
203
|
'scopes': value['scopes'],
|
|
204
|
+
'secrets': ((value['secrets'] as Array<any>).map(OAuthClientSecretToJSON)),
|
|
189
205
|
'jwksUri': value['jwksUri'],
|
|
190
206
|
'publicKey': OAuthClientPublicKeyToJSON(value['publicKey']),
|
|
191
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';
|