@equisoft/account-service-sdk-typescript 10.2.1-snapshot.20251027114327 → 10.2.1-snapshot.20251028125925

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.
@@ -11,6 +11,7 @@ src/apis/SessionApi.ts
11
11
  src/apis/UserApi.ts
12
12
  src/apis/index.ts
13
13
  src/index.ts
14
+ src/models/AddOAuthClientSecretPayload.ts
14
15
  src/models/ApplyPermissionsPayload.ts
15
16
  src/models/AuthenticationUserAccount.ts
16
17
  src/models/CreateOrUpdateOrganizationPayload.ts
package/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
- java temurin-21.0.8+9.0.LTS
1
+ java temurin-21.0.9+10.0.LTS
2
2
  nodejs 22.21.0
3
3
  yarn 1.22.17
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
13
+ import type { AddOAuthClientSecretPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
14
+ export interface AddOAuthClientSecretRequest {
15
+ clientId: string;
16
+ addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
17
+ }
14
18
  export interface DeleteOAuthClientRequest {
15
19
  clientId: string;
16
20
  }
@@ -32,6 +36,14 @@ export interface UpdateOAuthClientRequest {
32
36
  *
33
37
  */
34
38
  export declare class OAuthApi extends runtime.BaseAPI {
39
+ /**
40
+ * Add a secret to an OAuth client.
41
+ */
42
+ addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClient>>;
43
+ /**
44
+ * Add a secret to an OAuth client.
45
+ */
46
+ addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient>;
35
47
  /**
36
48
  * Delete OAuth client
37
49
  */
@@ -29,6 +29,47 @@ const index_1 = require("../models/index");
29
29
  *
30
30
  */
31
31
  class OAuthApi extends runtime.BaseAPI {
32
+ /**
33
+ * Add a secret to an OAuth client.
34
+ */
35
+ addOAuthClientSecretRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['clientId'] == null) {
38
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling addOAuthClientSecret().');
39
+ }
40
+ if (requestParameters['addOAuthClientSecretPayload'] == null) {
41
+ throw new runtime.RequiredError('addOAuthClientSecretPayload', 'Required parameter "addOAuthClientSecretPayload" was null or undefined when calling addOAuthClientSecret().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ headerParameters['Content-Type'] = 'application/json';
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ // oauth required
48
+ const token = this.configuration.accessToken;
49
+ const tokenString = yield token("OAuth2", ["account:oauthClient"]);
50
+ if (tokenString) {
51
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
52
+ }
53
+ }
54
+ const response = yield this.request({
55
+ path: `/oauthClients/{clientId}/secrets`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
56
+ method: 'POST',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ body: (0, index_1.AddOAuthClientSecretPayloadToJSON)(requestParameters['addOAuthClientSecretPayload']),
60
+ }, initOverrides);
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OAuthClientFromJSON)(jsonValue));
62
+ });
63
+ }
64
+ /**
65
+ * Add a secret to an OAuth client.
66
+ */
67
+ addOAuthClientSecret(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const response = yield this.addOAuthClientSecretRaw(requestParameters, initOverrides);
70
+ return yield response.value();
71
+ });
72
+ }
32
73
  /**
33
74
  * Delete OAuth client
34
75
  */
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
13
+ import type { AddOAuthClientSecretPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
14
+ export interface AddOAuthClientSecretRequest {
15
+ clientId: string;
16
+ addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
17
+ }
14
18
  export interface DeleteOAuthClientRequest {
15
19
  clientId: string;
16
20
  }
@@ -32,6 +36,14 @@ export interface UpdateOAuthClientRequest {
32
36
  *
33
37
  */
34
38
  export declare class OAuthApi extends runtime.BaseAPI {
39
+ /**
40
+ * Add a secret to an OAuth client.
41
+ */
42
+ addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClient>>;
43
+ /**
44
+ * Add a secret to an OAuth client.
45
+ */
46
+ addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient>;
35
47
  /**
36
48
  * Delete OAuth client
37
49
  */
@@ -21,11 +21,52 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientLoginPayloadToJSON, OAuthClientUpdatedFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
24
+ import { AddOAuthClientSecretPayloadToJSON, OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientLoginPayloadToJSON, OAuthClientUpdatedFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class OAuthApi extends runtime.BaseAPI {
29
+ /**
30
+ * Add a secret to an OAuth client.
31
+ */
32
+ addOAuthClientSecretRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['clientId'] == null) {
35
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling addOAuthClientSecret().');
36
+ }
37
+ if (requestParameters['addOAuthClientSecretPayload'] == null) {
38
+ throw new runtime.RequiredError('addOAuthClientSecretPayload', 'Required parameter "addOAuthClientSecretPayload" was null or undefined when calling addOAuthClientSecret().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ headerParameters['Content-Type'] = 'application/json';
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ // oauth required
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("OAuth2", ["account:oauthClient"]);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
50
+ }
51
+ const response = yield this.request({
52
+ path: `/oauthClients/{clientId}/secrets`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
53
+ method: 'POST',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ body: AddOAuthClientSecretPayloadToJSON(requestParameters['addOAuthClientSecretPayload']),
57
+ }, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Add a secret to an OAuth client.
63
+ */
64
+ addOAuthClientSecret(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const response = yield this.addOAuthClientSecretRaw(requestParameters, initOverrides);
67
+ return yield response.value();
68
+ });
69
+ }
29
70
  /**
30
71
  * Delete OAuth client
31
72
  */
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface AddOAuthClientSecretPayload
16
+ */
17
+ export interface AddOAuthClientSecretPayload {
18
+ /**
19
+ * Description of the OAuth client secret.
20
+ * @type {string}
21
+ * @memberof AddOAuthClientSecretPayload
22
+ */
23
+ description: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AddOAuthClientSecretPayload interface.
27
+ */
28
+ export declare function instanceOfAddOAuthClientSecretPayload(value: object): value is AddOAuthClientSecretPayload;
29
+ export declare function AddOAuthClientSecretPayloadFromJSON(json: any): AddOAuthClientSecretPayload;
30
+ export declare function AddOAuthClientSecretPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOAuthClientSecretPayload;
31
+ export declare function AddOAuthClientSecretPayloadToJSON(json: any): AddOAuthClientSecretPayload;
32
+ export declare function AddOAuthClientSecretPayloadToJSONTyped(value?: AddOAuthClientSecretPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 AddOAuthClientSecretPayload interface.
16
+ */
17
+ export function instanceOfAddOAuthClientSecretPayload(value) {
18
+ if (!('description' in value) || value['description'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AddOAuthClientSecretPayloadFromJSON(json) {
23
+ return AddOAuthClientSecretPayloadFromJSONTyped(json, false);
24
+ }
25
+ export function AddOAuthClientSecretPayloadFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'description': json['description'],
31
+ };
32
+ }
33
+ export function AddOAuthClientSecretPayloadToJSON(json) {
34
+ return AddOAuthClientSecretPayloadToJSONTyped(json, false);
35
+ }
36
+ export function AddOAuthClientSecretPayloadToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'description': value['description'],
42
+ };
43
+ }
@@ -21,12 +21,6 @@ export interface OAuthClientSecret {
21
21
  * @memberof OAuthClientSecret
22
22
  */
23
23
  uuid: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof OAuthClientSecret
28
- */
29
- clientId: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -17,8 +17,6 @@
17
17
  export function instanceOfOAuthClientSecret(value) {
18
18
  if (!('uuid' in value) || value['uuid'] === undefined)
19
19
  return false;
20
- if (!('clientId' in value) || value['clientId'] === undefined)
21
- return false;
22
20
  if (!('description' in value) || value['description'] === undefined)
23
21
  return false;
24
22
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -34,7 +32,6 @@ export function OAuthClientSecretFromJSONTyped(json, ignoreDiscriminator) {
34
32
  }
35
33
  return {
36
34
  'uuid': json['uuid'],
37
- 'clientId': json['clientId'],
38
35
  'description': json['description'],
39
36
  'createdAt': (new Date(json['createdAt'])),
40
37
  };
@@ -48,7 +45,6 @@ export function OAuthClientSecretToJSONTyped(value, ignoreDiscriminator = false)
48
45
  }
49
46
  return {
50
47
  'uuid': value['uuid'],
51
- 'clientId': value['clientId'],
52
48
  'description': value['description'],
53
49
  'createdAt': ((value['createdAt']).toISOString()),
54
50
  };
@@ -1,3 +1,4 @@
1
+ export * from './AddOAuthClientSecretPayload';
1
2
  export * from './ApplyPermissionsPayload';
2
3
  export * from './AuthenticationUserAccount';
3
4
  export * from './CreateOrUpdateOrganizationPayload';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AddOAuthClientSecretPayload';
3
4
  export * from './ApplyPermissionsPayload';
4
5
  export * from './AuthenticationUserAccount';
5
6
  export * from './CreateOrUpdateOrganizationPayload';
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface AddOAuthClientSecretPayload
16
+ */
17
+ export interface AddOAuthClientSecretPayload {
18
+ /**
19
+ * Description of the OAuth client secret.
20
+ * @type {string}
21
+ * @memberof AddOAuthClientSecretPayload
22
+ */
23
+ description: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AddOAuthClientSecretPayload interface.
27
+ */
28
+ export declare function instanceOfAddOAuthClientSecretPayload(value: object): value is AddOAuthClientSecretPayload;
29
+ export declare function AddOAuthClientSecretPayloadFromJSON(json: any): AddOAuthClientSecretPayload;
30
+ export declare function AddOAuthClientSecretPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOAuthClientSecretPayload;
31
+ export declare function AddOAuthClientSecretPayloadToJSON(json: any): AddOAuthClientSecretPayload;
32
+ export declare function AddOAuthClientSecretPayloadToJSONTyped(value?: AddOAuthClientSecretPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfAddOAuthClientSecretPayload = instanceOfAddOAuthClientSecretPayload;
17
+ exports.AddOAuthClientSecretPayloadFromJSON = AddOAuthClientSecretPayloadFromJSON;
18
+ exports.AddOAuthClientSecretPayloadFromJSONTyped = AddOAuthClientSecretPayloadFromJSONTyped;
19
+ exports.AddOAuthClientSecretPayloadToJSON = AddOAuthClientSecretPayloadToJSON;
20
+ exports.AddOAuthClientSecretPayloadToJSONTyped = AddOAuthClientSecretPayloadToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AddOAuthClientSecretPayload interface.
23
+ */
24
+ function instanceOfAddOAuthClientSecretPayload(value) {
25
+ if (!('description' in value) || value['description'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AddOAuthClientSecretPayloadFromJSON(json) {
30
+ return AddOAuthClientSecretPayloadFromJSONTyped(json, false);
31
+ }
32
+ function AddOAuthClientSecretPayloadFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'description': json['description'],
38
+ };
39
+ }
40
+ function AddOAuthClientSecretPayloadToJSON(json) {
41
+ return AddOAuthClientSecretPayloadToJSONTyped(json, false);
42
+ }
43
+ function AddOAuthClientSecretPayloadToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'description': value['description'],
49
+ };
50
+ }
@@ -21,12 +21,6 @@ export interface OAuthClientSecret {
21
21
  * @memberof OAuthClientSecret
22
22
  */
23
23
  uuid: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof OAuthClientSecret
28
- */
29
- clientId: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -24,8 +24,6 @@ exports.OAuthClientSecretToJSONTyped = OAuthClientSecretToJSONTyped;
24
24
  function instanceOfOAuthClientSecret(value) {
25
25
  if (!('uuid' in value) || value['uuid'] === undefined)
26
26
  return false;
27
- if (!('clientId' in value) || value['clientId'] === undefined)
28
- return false;
29
27
  if (!('description' in value) || value['description'] === undefined)
30
28
  return false;
31
29
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -41,7 +39,6 @@ function OAuthClientSecretFromJSONTyped(json, ignoreDiscriminator) {
41
39
  }
42
40
  return {
43
41
  'uuid': json['uuid'],
44
- 'clientId': json['clientId'],
45
42
  'description': json['description'],
46
43
  'createdAt': (new Date(json['createdAt'])),
47
44
  };
@@ -55,7 +52,6 @@ function OAuthClientSecretToJSONTyped(value, ignoreDiscriminator = false) {
55
52
  }
56
53
  return {
57
54
  'uuid': value['uuid'],
58
- 'clientId': value['clientId'],
59
55
  'description': value['description'],
60
56
  'createdAt': ((value['createdAt']).toISOString()),
61
57
  };
@@ -1,3 +1,4 @@
1
+ export * from './AddOAuthClientSecretPayload';
1
2
  export * from './ApplyPermissionsPayload';
2
3
  export * from './AuthenticationUserAccount';
3
4
  export * from './CreateOrUpdateOrganizationPayload';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AddOAuthClientSecretPayload"), exports);
19
20
  __exportStar(require("./ApplyPermissionsPayload"), exports);
20
21
  __exportStar(require("./AuthenticationUserAccount"), exports);
21
22
  __exportStar(require("./CreateOrUpdateOrganizationPayload"), 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.20251027114327",
3
+ "version": "10.2.1-snapshot.20251028125925",
4
4
  "description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AddOAuthClientSecretPayload,
18
19
  ErrorPayload,
19
20
  OAuthClient,
20
21
  OAuthClientListItem,
@@ -23,6 +24,8 @@ import type {
23
24
  UpdateOAuthClientPayload,
24
25
  } from '../models/index';
25
26
  import {
27
+ AddOAuthClientSecretPayloadFromJSON,
28
+ AddOAuthClientSecretPayloadToJSON,
26
29
  ErrorPayloadFromJSON,
27
30
  ErrorPayloadToJSON,
28
31
  OAuthClientFromJSON,
@@ -37,6 +40,11 @@ import {
37
40
  UpdateOAuthClientPayloadToJSON,
38
41
  } from '../models/index';
39
42
 
43
+ export interface AddOAuthClientSecretRequest {
44
+ clientId: string;
45
+ addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
46
+ }
47
+
40
48
  export interface DeleteOAuthClientRequest {
41
49
  clientId: string;
42
50
  }
@@ -64,6 +72,58 @@ export interface UpdateOAuthClientRequest {
64
72
  */
65
73
  export class OAuthApi extends runtime.BaseAPI {
66
74
 
75
+ /**
76
+ * Add a secret to an OAuth client.
77
+ */
78
+ async addOAuthClientSecretRaw(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClient>> {
79
+ if (requestParameters['clientId'] == null) {
80
+ throw new runtime.RequiredError(
81
+ 'clientId',
82
+ 'Required parameter "clientId" was null or undefined when calling addOAuthClientSecret().'
83
+ );
84
+ }
85
+
86
+ if (requestParameters['addOAuthClientSecretPayload'] == null) {
87
+ throw new runtime.RequiredError(
88
+ 'addOAuthClientSecretPayload',
89
+ 'Required parameter "addOAuthClientSecretPayload" was null or undefined when calling addOAuthClientSecret().'
90
+ );
91
+ }
92
+
93
+ const queryParameters: any = {};
94
+
95
+ const headerParameters: runtime.HTTPHeaders = {};
96
+
97
+ headerParameters['Content-Type'] = 'application/json';
98
+
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ // oauth required
101
+ const token = this.configuration.accessToken;
102
+ const tokenString = await token("OAuth2", ["account:oauthClient"]);
103
+ if (tokenString) {
104
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
105
+ }
106
+ }
107
+
108
+ const response = await this.request({
109
+ path: `/oauthClients/{clientId}/secrets`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
110
+ method: 'POST',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ body: AddOAuthClientSecretPayloadToJSON(requestParameters['addOAuthClientSecretPayload']),
114
+ }, initOverrides);
115
+
116
+ return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientFromJSON(jsonValue));
117
+ }
118
+
119
+ /**
120
+ * Add a secret to an OAuth client.
121
+ */
122
+ async addOAuthClientSecret(requestParameters: AddOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient> {
123
+ const response = await this.addOAuthClientSecretRaw(requestParameters, initOverrides);
124
+ return await response.value();
125
+ }
126
+
67
127
  /**
68
128
  * Delete OAuth client
69
129
  */
@@ -0,0 +1,66 @@
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
+ *
18
+ * @export
19
+ * @interface AddOAuthClientSecretPayload
20
+ */
21
+ export interface AddOAuthClientSecretPayload {
22
+ /**
23
+ * Description of the OAuth client secret.
24
+ * @type {string}
25
+ * @memberof AddOAuthClientSecretPayload
26
+ */
27
+ description: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AddOAuthClientSecretPayload interface.
32
+ */
33
+ export function instanceOfAddOAuthClientSecretPayload(value: object): value is AddOAuthClientSecretPayload {
34
+ if (!('description' in value) || value['description'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AddOAuthClientSecretPayloadFromJSON(json: any): AddOAuthClientSecretPayload {
39
+ return AddOAuthClientSecretPayloadFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AddOAuthClientSecretPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOAuthClientSecretPayload {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'description': json['description'],
49
+ };
50
+ }
51
+
52
+ export function AddOAuthClientSecretPayloadToJSON(json: any): AddOAuthClientSecretPayload {
53
+ return AddOAuthClientSecretPayloadToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AddOAuthClientSecretPayloadToJSONTyped(value?: AddOAuthClientSecretPayload | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'description': value['description'],
64
+ };
65
+ }
66
+
@@ -25,12 +25,6 @@ export interface OAuthClientSecret {
25
25
  * @memberof OAuthClientSecret
26
26
  */
27
27
  uuid: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof OAuthClientSecret
32
- */
33
- clientId: string;
34
28
  /**
35
29
  *
36
30
  * @type {string}
@@ -50,7 +44,6 @@ export interface OAuthClientSecret {
50
44
  */
51
45
  export function instanceOfOAuthClientSecret(value: object): value is OAuthClientSecret {
52
46
  if (!('uuid' in value) || value['uuid'] === undefined) return false;
53
- if (!('clientId' in value) || value['clientId'] === undefined) return false;
54
47
  if (!('description' in value) || value['description'] === undefined) return false;
55
48
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
56
49
  return true;
@@ -67,7 +60,6 @@ export function OAuthClientSecretFromJSONTyped(json: any, ignoreDiscriminator: b
67
60
  return {
68
61
 
69
62
  'uuid': json['uuid'],
70
- 'clientId': json['clientId'],
71
63
  'description': json['description'],
72
64
  'createdAt': (new Date(json['createdAt'])),
73
65
  };
@@ -85,7 +77,6 @@ export function OAuthClientSecretToJSONTyped(value?: OAuthClientSecret | null, i
85
77
  return {
86
78
 
87
79
  'uuid': value['uuid'],
88
- 'clientId': value['clientId'],
89
80
  'description': value['description'],
90
81
  'createdAt': ((value['createdAt']).toISOString()),
91
82
  };
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AddOAuthClientSecretPayload';
3
4
  export * from './ApplyPermissionsPayload';
4
5
  export * from './AuthenticationUserAccount';
5
6
  export * from './CreateOrUpdateOrganizationPayload';