@equisoft/account-service-sdk-typescript 10.2.1-snapshot.20251106133325 → 10.2.1-snapshot.20251107123912
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/apis/OAuthApi.d.ts +3 -3
- package/dist/apis/OAuthApi.js +1 -1
- package/dist/esm/apis/OAuthApi.d.ts +3 -3
- package/dist/esm/apis/OAuthApi.js +2 -2
- package/dist/esm/models/AddOAuthClientSecretResponse.d.ts +56 -0
- package/dist/esm/models/AddOAuthClientSecretResponse.js +59 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/AddOAuthClientSecretResponse.d.ts +56 -0
- package/dist/models/AddOAuthClientSecretResponse.js +66 -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 +6 -3
- package/src/models/AddOAuthClientSecretResponse.ts +102 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,7 @@ src/apis/UserApi.ts
|
|
|
12
12
|
src/apis/index.ts
|
|
13
13
|
src/index.ts
|
|
14
14
|
src/models/AddOAuthClientSecretPayload.ts
|
|
15
|
+
src/models/AddOAuthClientSecretResponse.ts
|
|
15
16
|
src/models/ApplyPermissionsPayload.ts
|
|
16
17
|
src/models/AuthenticationUserAccount.ts
|
|
17
18
|
src/models/CreateOAuthClientPayload.ts
|
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 { AddOAuthClientSecretPayload, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
|
|
13
|
+
import type { AddOAuthClientSecretPayload, AddOAuthClientSecretResponse, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
|
|
14
14
|
export interface AddOAuthClientSecretRequest {
|
|
15
15
|
clientId: string;
|
|
16
16
|
addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
|
|
@@ -46,11 +46,11 @@ export declare class OAuthApi extends runtime.BaseAPI {
|
|
|
46
46
|
/**
|
|
47
47
|
* Add a secret to an OAuth client.
|
|
48
48
|
*/
|
|
49
|
-
addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
49
|
+
addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddOAuthClientSecretResponse>>;
|
|
50
50
|
/**
|
|
51
51
|
* Add a secret to an OAuth client.
|
|
52
52
|
*/
|
|
53
|
-
addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
53
|
+
addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddOAuthClientSecretResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Create a new OAuth Client.
|
|
56
56
|
*/
|
package/dist/apis/OAuthApi.js
CHANGED
|
@@ -58,7 +58,7 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
58
58
|
query: queryParameters,
|
|
59
59
|
body: (0, index_1.AddOAuthClientSecretPayloadToJSON)(requestParameters['addOAuthClientSecretPayload']),
|
|
60
60
|
}, initOverrides);
|
|
61
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddOAuthClientSecretResponseFromJSON)(jsonValue));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddOAuthClientSecretPayload, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
|
|
13
|
+
import type { AddOAuthClientSecretPayload, AddOAuthClientSecretResponse, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
|
|
14
14
|
export interface AddOAuthClientSecretRequest {
|
|
15
15
|
clientId: string;
|
|
16
16
|
addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
|
|
@@ -46,11 +46,11 @@ export declare class OAuthApi extends runtime.BaseAPI {
|
|
|
46
46
|
/**
|
|
47
47
|
* Add a secret to an OAuth client.
|
|
48
48
|
*/
|
|
49
|
-
addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
49
|
+
addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddOAuthClientSecretResponse>>;
|
|
50
50
|
/**
|
|
51
51
|
* Add a secret to an OAuth client.
|
|
52
52
|
*/
|
|
53
|
-
addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
53
|
+
addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddOAuthClientSecretResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Create a new OAuth Client.
|
|
56
56
|
*/
|
|
@@ -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 { AddOAuthClientSecretPayloadToJSON, CreateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientLoginPayloadToJSON, OAuthClientUpdatedFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
|
|
24
|
+
import { AddOAuthClientSecretPayloadToJSON, AddOAuthClientSecretResponseFromJSON, CreateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientLoginPayloadToJSON, OAuthClientUpdatedFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -55,7 +55,7 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
55
55
|
query: queryParameters,
|
|
56
56
|
body: AddOAuthClientSecretPayloadToJSON(requestParameters['addOAuthClientSecretPayload']),
|
|
57
57
|
}, initOverrides);
|
|
58
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AddOAuthClientSecretResponseFromJSON(jsonValue));
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -0,0 +1,56 @@
|
|
|
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.3-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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddOAuthClientSecretResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AddOAuthClientSecretResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the OAuth client secret.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddOAuthClientSecretResponse
|
|
22
|
+
*/
|
|
23
|
+
uuid: string;
|
|
24
|
+
/**
|
|
25
|
+
* The OAuth client secret value.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddOAuthClientSecretResponse
|
|
28
|
+
*/
|
|
29
|
+
clientSecret: string;
|
|
30
|
+
/**
|
|
31
|
+
* The OAuth client masked secret value (first 4 char).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddOAuthClientSecretResponse
|
|
34
|
+
*/
|
|
35
|
+
maskedSecret: string;
|
|
36
|
+
/**
|
|
37
|
+
* Description of the OAuth client secret.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddOAuthClientSecretResponse
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
* The timestamp when the OAuth client secret was created.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof AddOAuthClientSecretResponse
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AddOAuthClientSecretResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAddOAuthClientSecretResponse(value: object): value is AddOAuthClientSecretResponse;
|
|
53
|
+
export declare function AddOAuthClientSecretResponseFromJSON(json: any): AddOAuthClientSecretResponse;
|
|
54
|
+
export declare function AddOAuthClientSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOAuthClientSecretResponse;
|
|
55
|
+
export declare function AddOAuthClientSecretResponseToJSON(json: any): AddOAuthClientSecretResponse;
|
|
56
|
+
export declare function AddOAuthClientSecretResponseToJSONTyped(value?: AddOAuthClientSecretResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.3-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 AddOAuthClientSecretResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAddOAuthClientSecretResponse(value) {
|
|
18
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('clientSecret' in value) || value['clientSecret'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('maskedSecret' in value) || value['maskedSecret'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function AddOAuthClientSecretResponseFromJSON(json) {
|
|
31
|
+
return AddOAuthClientSecretResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function AddOAuthClientSecretResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'uuid': json['uuid'],
|
|
39
|
+
'clientSecret': json['clientSecret'],
|
|
40
|
+
'maskedSecret': json['maskedSecret'],
|
|
41
|
+
'description': json['description'],
|
|
42
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function AddOAuthClientSecretResponseToJSON(json) {
|
|
46
|
+
return AddOAuthClientSecretResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function AddOAuthClientSecretResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'uuid': value['uuid'],
|
|
54
|
+
'clientSecret': value['clientSecret'],
|
|
55
|
+
'maskedSecret': value['maskedSecret'],
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AddOAuthClientSecretPayload';
|
|
4
|
+
export * from './AddOAuthClientSecretResponse';
|
|
4
5
|
export * from './ApplyPermissionsPayload';
|
|
5
6
|
export * from './AuthenticationUserAccount';
|
|
6
7
|
export * from './CreateOAuthClientPayload';
|
|
@@ -0,0 +1,56 @@
|
|
|
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.3-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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddOAuthClientSecretResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AddOAuthClientSecretResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the OAuth client secret.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddOAuthClientSecretResponse
|
|
22
|
+
*/
|
|
23
|
+
uuid: string;
|
|
24
|
+
/**
|
|
25
|
+
* The OAuth client secret value.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddOAuthClientSecretResponse
|
|
28
|
+
*/
|
|
29
|
+
clientSecret: string;
|
|
30
|
+
/**
|
|
31
|
+
* The OAuth client masked secret value (first 4 char).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddOAuthClientSecretResponse
|
|
34
|
+
*/
|
|
35
|
+
maskedSecret: string;
|
|
36
|
+
/**
|
|
37
|
+
* Description of the OAuth client secret.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddOAuthClientSecretResponse
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
* The timestamp when the OAuth client secret was created.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof AddOAuthClientSecretResponse
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AddOAuthClientSecretResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAddOAuthClientSecretResponse(value: object): value is AddOAuthClientSecretResponse;
|
|
53
|
+
export declare function AddOAuthClientSecretResponseFromJSON(json: any): AddOAuthClientSecretResponse;
|
|
54
|
+
export declare function AddOAuthClientSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOAuthClientSecretResponse;
|
|
55
|
+
export declare function AddOAuthClientSecretResponseToJSON(json: any): AddOAuthClientSecretResponse;
|
|
56
|
+
export declare function AddOAuthClientSecretResponseToJSONTyped(value?: AddOAuthClientSecretResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.3-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.instanceOfAddOAuthClientSecretResponse = instanceOfAddOAuthClientSecretResponse;
|
|
17
|
+
exports.AddOAuthClientSecretResponseFromJSON = AddOAuthClientSecretResponseFromJSON;
|
|
18
|
+
exports.AddOAuthClientSecretResponseFromJSONTyped = AddOAuthClientSecretResponseFromJSONTyped;
|
|
19
|
+
exports.AddOAuthClientSecretResponseToJSON = AddOAuthClientSecretResponseToJSON;
|
|
20
|
+
exports.AddOAuthClientSecretResponseToJSONTyped = AddOAuthClientSecretResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AddOAuthClientSecretResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAddOAuthClientSecretResponse(value) {
|
|
25
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('clientSecret' in value) || value['clientSecret'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('maskedSecret' in value) || value['maskedSecret'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AddOAuthClientSecretResponseFromJSON(json) {
|
|
38
|
+
return AddOAuthClientSecretResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AddOAuthClientSecretResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'uuid': json['uuid'],
|
|
46
|
+
'clientSecret': json['clientSecret'],
|
|
47
|
+
'maskedSecret': json['maskedSecret'],
|
|
48
|
+
'description': json['description'],
|
|
49
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AddOAuthClientSecretResponseToJSON(json) {
|
|
53
|
+
return AddOAuthClientSecretResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AddOAuthClientSecretResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'uuid': value['uuid'],
|
|
61
|
+
'clientSecret': value['clientSecret'],
|
|
62
|
+
'maskedSecret': value['maskedSecret'],
|
|
63
|
+
'description': value['description'],
|
|
64
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AddOAuthClientSecretPayload"), exports);
|
|
20
|
+
__exportStar(require("./AddOAuthClientSecretResponse"), exports);
|
|
20
21
|
__exportStar(require("./ApplyPermissionsPayload"), exports);
|
|
21
22
|
__exportStar(require("./AuthenticationUserAccount"), exports);
|
|
22
23
|
__exportStar(require("./CreateOAuthClientPayload"), 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.20251107123912",
|
|
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
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AddOAuthClientSecretPayload,
|
|
19
|
+
AddOAuthClientSecretResponse,
|
|
19
20
|
CreateOAuthClientPayload,
|
|
20
21
|
ErrorPayload,
|
|
21
22
|
OAuthClient,
|
|
@@ -27,6 +28,8 @@ import type {
|
|
|
27
28
|
import {
|
|
28
29
|
AddOAuthClientSecretPayloadFromJSON,
|
|
29
30
|
AddOAuthClientSecretPayloadToJSON,
|
|
31
|
+
AddOAuthClientSecretResponseFromJSON,
|
|
32
|
+
AddOAuthClientSecretResponseToJSON,
|
|
30
33
|
CreateOAuthClientPayloadFromJSON,
|
|
31
34
|
CreateOAuthClientPayloadToJSON,
|
|
32
35
|
ErrorPayloadFromJSON,
|
|
@@ -87,7 +90,7 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
87
90
|
/**
|
|
88
91
|
* Add a secret to an OAuth client.
|
|
89
92
|
*/
|
|
90
|
-
async addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
93
|
+
async addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddOAuthClientSecretResponse>> {
|
|
91
94
|
if (requestParameters['clientId'] == null) {
|
|
92
95
|
throw new runtime.RequiredError(
|
|
93
96
|
'clientId',
|
|
@@ -125,13 +128,13 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
125
128
|
body: AddOAuthClientSecretPayloadToJSON(requestParameters['addOAuthClientSecretPayload']),
|
|
126
129
|
}, initOverrides);
|
|
127
130
|
|
|
128
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AddOAuthClientSecretResponseFromJSON(jsonValue));
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
/**
|
|
132
135
|
* Add a secret to an OAuth client.
|
|
133
136
|
*/
|
|
134
|
-
async addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddOAuthClientSecretResponse> {
|
|
135
138
|
const response = await this.addOAuthClientSecretRaw(requestParameters, initOverrides);
|
|
136
139
|
return await response.value();
|
|
137
140
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.3-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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AddOAuthClientSecretResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AddOAuthClientSecretResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The unique identifier of the OAuth client secret.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AddOAuthClientSecretResponse
|
|
26
|
+
*/
|
|
27
|
+
uuid: string;
|
|
28
|
+
/**
|
|
29
|
+
* The OAuth client secret value.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AddOAuthClientSecretResponse
|
|
32
|
+
*/
|
|
33
|
+
clientSecret: string;
|
|
34
|
+
/**
|
|
35
|
+
* The OAuth client masked secret value (first 4 char).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AddOAuthClientSecretResponse
|
|
38
|
+
*/
|
|
39
|
+
maskedSecret: string;
|
|
40
|
+
/**
|
|
41
|
+
* Description of the OAuth client secret.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AddOAuthClientSecretResponse
|
|
44
|
+
*/
|
|
45
|
+
description: string;
|
|
46
|
+
/**
|
|
47
|
+
* The timestamp when the OAuth client secret was created.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof AddOAuthClientSecretResponse
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AddOAuthClientSecretResponse interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAddOAuthClientSecretResponse(value: object): value is AddOAuthClientSecretResponse {
|
|
58
|
+
if (!('uuid' in value) || value['uuid'] === undefined) return false;
|
|
59
|
+
if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false;
|
|
60
|
+
if (!('maskedSecret' in value) || value['maskedSecret'] === undefined) return false;
|
|
61
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AddOAuthClientSecretResponseFromJSON(json: any): AddOAuthClientSecretResponse {
|
|
67
|
+
return AddOAuthClientSecretResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AddOAuthClientSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOAuthClientSecretResponse {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'uuid': json['uuid'],
|
|
77
|
+
'clientSecret': json['clientSecret'],
|
|
78
|
+
'maskedSecret': json['maskedSecret'],
|
|
79
|
+
'description': json['description'],
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AddOAuthClientSecretResponseToJSON(json: any): AddOAuthClientSecretResponse {
|
|
85
|
+
return AddOAuthClientSecretResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AddOAuthClientSecretResponseToJSONTyped(value?: AddOAuthClientSecretResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'uuid': value['uuid'],
|
|
96
|
+
'clientSecret': value['clientSecret'],
|
|
97
|
+
'maskedSecret': value['maskedSecret'],
|
|
98
|
+
'description': value['description'],
|
|
99
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AddOAuthClientSecretPayload';
|
|
4
|
+
export * from './AddOAuthClientSecretResponse';
|
|
4
5
|
export * from './ApplyPermissionsPayload';
|
|
5
6
|
export * from './AuthenticationUserAccount';
|
|
6
7
|
export * from './CreateOAuthClientPayload';
|