@equisoft/account-service-sdk-typescript 9.9.1-snapshot.20250728203919 → 9.9.1-snapshot.20250811150401

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.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/.tool-versions +1 -1
  3. package/dist/apis/OAuthApi.d.ts +12 -12
  4. package/dist/apis/OAuthApi.js +31 -31
  5. package/dist/esm/apis/OAuthApi.d.ts +12 -12
  6. package/dist/esm/apis/OAuthApi.js +32 -32
  7. package/dist/esm/models/OAuthClient.d.ts +6 -0
  8. package/dist/esm/models/OAuthClient.js +4 -0
  9. package/dist/esm/models/OAuthClientListItem.d.ts +12 -0
  10. package/dist/esm/models/OAuthClientListItem.js +8 -0
  11. package/dist/esm/models/OAuthClientUpdated.d.ts +32 -0
  12. package/dist/esm/models/{OAuthClientCreated.js → OAuthClientUpdated.js} +8 -8
  13. package/dist/esm/models/UpdateOAuthClientPayload.d.ts +101 -0
  14. package/dist/esm/models/{CreateOrUpdateOAuthClientPayload.js → UpdateOAuthClientPayload.js} +8 -10
  15. package/dist/esm/models/index.d.ts +2 -2
  16. package/dist/esm/models/index.js +2 -2
  17. package/dist/models/OAuthClient.d.ts +6 -0
  18. package/dist/models/OAuthClient.js +4 -0
  19. package/dist/models/OAuthClientListItem.d.ts +12 -0
  20. package/dist/models/OAuthClientListItem.js +8 -0
  21. package/dist/models/OAuthClientUpdated.d.ts +32 -0
  22. package/dist/models/{OAuthClientCreated.js → OAuthClientUpdated.js} +13 -13
  23. package/dist/models/UpdateOAuthClientPayload.d.ts +101 -0
  24. package/dist/models/{CreateOrUpdateOAuthClientPayload.js → UpdateOAuthClientPayload.js} +13 -15
  25. package/dist/models/index.d.ts +2 -2
  26. package/dist/models/index.js +2 -2
  27. package/package.json +1 -1
  28. package/src/apis/OAuthApi.ts +49 -49
  29. package/src/models/OAuthClient.ts +9 -0
  30. package/src/models/OAuthClientListItem.ts +18 -0
  31. package/src/models/{OAuthClientCreated.ts → OAuthClientUpdated.ts} +12 -12
  32. package/src/models/{CreateOrUpdateOAuthClientPayload.ts → UpdateOAuthClientPayload.ts} +23 -31
  33. package/src/models/index.ts +2 -2
  34. package/dist/esm/models/CreateOrUpdateOAuthClientPayload.d.ts +0 -107
  35. package/dist/esm/models/OAuthClientCreated.d.ts +0 -32
  36. package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +0 -107
  37. package/dist/models/OAuthClientCreated.d.ts +0 -32
@@ -13,7 +13,6 @@ src/apis/index.ts
13
13
  src/index.ts
14
14
  src/models/ApplyPermissionsPayload.ts
15
15
  src/models/AuthenticationUserAccount.ts
16
- src/models/CreateOrUpdateOAuthClientPayload.ts
17
16
  src/models/CreateOrUpdateOrganizationPayload.ts
18
17
  src/models/CreateOrUpdatePermissionPayload.ts
19
18
  src/models/CreateOrganizationPayload.ts
@@ -33,9 +32,9 @@ src/models/LocalizedString.ts
33
32
  src/models/LoginPayload.ts
34
33
  src/models/NewPasswordPayload.ts
35
34
  src/models/OAuthClient.ts
36
- src/models/OAuthClientCreated.ts
37
35
  src/models/OAuthClientListItem.ts
38
36
  src/models/OAuthClientPublicKey.ts
37
+ src/models/OAuthClientUpdated.ts
39
38
  src/models/Organization.ts
40
39
  src/models/OrganizationApplicableServiceProfiles.ts
41
40
  src/models/OrganizationCreated.ts
@@ -75,6 +74,7 @@ src/models/SetPasswordByConfirmationHashPayload.ts
75
74
  src/models/SetUserAccountPasswordPayload.ts
76
75
  src/models/SsoProvider.ts
77
76
  src/models/SsoToken.ts
77
+ src/models/UpdateOAuthClientPayload.ts
78
78
  src/models/UpdateOwnerOrganizationPayload.ts
79
79
  src/models/UpdateParentOrganizationPayload.ts
80
80
  src/models/UpdateUserAccountPayload.ts
package/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
1
  java temurin-21.0.7+6.0.LTS
2
- nodejs 22.17.1
2
+ nodejs 22.18.0
3
3
  yarn 1.22.17
@@ -10,26 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateOrUpdateOAuthClientPayload, OAuthClient, OAuthClientCreated, OAuthClientListItem } from '../models/index';
14
- export interface CreateOrUpdateOAuthClientRequest {
13
+ import type { OAuthClient, OAuthClientListItem, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
14
+ export interface GetOAuthClientRequest {
15
15
  clientId: string;
16
- createOrUpdateOAuthClientPayload: CreateOrUpdateOAuthClientPayload;
17
16
  }
18
- export interface GetOAuthClientRequest {
17
+ export interface UpdateOAuthClientRequest {
19
18
  clientId: string;
19
+ updateOAuthClientPayload: UpdateOAuthClientPayload;
20
20
  }
21
21
  /**
22
22
  *
23
23
  */
24
24
  export declare class OAuthApi extends runtime.BaseAPI {
25
- /**
26
- * Create or update an oauth client
27
- */
28
- createOrUpdateOAuthClientRaw(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClientCreated>>;
29
- /**
30
- * Create or update an oauth client
31
- */
32
- createOrUpdateOAuthClient(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClientCreated>;
33
25
  /**
34
26
  * Get detailed information about an oauth client.
35
27
  */
@@ -46,4 +38,12 @@ export declare class OAuthApi extends runtime.BaseAPI {
46
38
  * Get a list of all OAuth Clients.
47
39
  */
48
40
  listOAuthClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>>;
41
+ /**
42
+ * Update an oauth client
43
+ */
44
+ updateOAuthClientRaw(requestParameters: UpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClientUpdated>>;
45
+ /**
46
+ * Update an oauth client
47
+ */
48
+ updateOAuthClient(requestParameters: UpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClientUpdated>;
49
49
  }
@@ -30,19 +30,15 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class OAuthApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create or update an oauth client
33
+ * Get detailed information about an oauth client.
34
34
  */
35
- createOrUpdateOAuthClientRaw(requestParameters, initOverrides) {
35
+ getOAuthClientRaw(requestParameters, initOverrides) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  if (requestParameters['clientId'] == null) {
38
- throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createOrUpdateOAuthClient().');
39
- }
40
- if (requestParameters['createOrUpdateOAuthClientPayload'] == null) {
41
- throw new runtime.RequiredError('createOrUpdateOAuthClientPayload', 'Required parameter "createOrUpdateOAuthClientPayload" was null or undefined when calling createOrUpdateOAuthClient().');
38
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getOAuthClient().');
42
39
  }
43
40
  const queryParameters = {};
44
41
  const headerParameters = {};
45
- headerParameters['Content-Type'] = 'application/json';
46
42
  if (this.configuration && this.configuration.accessToken) {
47
43
  // oauth required
48
44
  const token = this.configuration.accessToken;
@@ -53,31 +49,27 @@ class OAuthApi extends runtime.BaseAPI {
53
49
  }
54
50
  const response = yield this.request({
55
51
  path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
56
- method: 'PUT',
52
+ method: 'GET',
57
53
  headers: headerParameters,
58
54
  query: queryParameters,
59
- body: (0, index_1.CreateOrUpdateOAuthClientPayloadToJSON)(requestParameters['createOrUpdateOAuthClientPayload']),
60
55
  }, initOverrides);
61
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OAuthClientCreatedFromJSON)(jsonValue));
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OAuthClientFromJSON)(jsonValue));
62
57
  });
63
58
  }
64
59
  /**
65
- * Create or update an oauth client
60
+ * Get detailed information about an oauth client.
66
61
  */
67
- createOrUpdateOAuthClient(requestParameters, initOverrides) {
62
+ getOAuthClient(requestParameters, initOverrides) {
68
63
  return __awaiter(this, void 0, void 0, function* () {
69
- const response = yield this.createOrUpdateOAuthClientRaw(requestParameters, initOverrides);
64
+ const response = yield this.getOAuthClientRaw(requestParameters, initOverrides);
70
65
  return yield response.value();
71
66
  });
72
67
  }
73
68
  /**
74
- * Get detailed information about an oauth client.
69
+ * Get a list of all OAuth Clients.
75
70
  */
76
- getOAuthClientRaw(requestParameters, initOverrides) {
71
+ listOAuthClientsRaw(initOverrides) {
77
72
  return __awaiter(this, void 0, void 0, function* () {
78
- if (requestParameters['clientId'] == null) {
79
- throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getOAuthClient().');
80
- }
81
73
  const queryParameters = {};
82
74
  const headerParameters = {};
83
75
  if (this.configuration && this.configuration.accessToken) {
@@ -89,30 +81,37 @@ class OAuthApi extends runtime.BaseAPI {
89
81
  }
90
82
  }
91
83
  const response = yield this.request({
92
- path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
84
+ path: `/oauthClients`,
93
85
  method: 'GET',
94
86
  headers: headerParameters,
95
87
  query: queryParameters,
96
88
  }, initOverrides);
97
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OAuthClientFromJSON)(jsonValue));
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OAuthClientListItemFromJSON));
98
90
  });
99
91
  }
100
92
  /**
101
- * Get detailed information about an oauth client.
93
+ * Get a list of all OAuth Clients.
102
94
  */
103
- getOAuthClient(requestParameters, initOverrides) {
95
+ listOAuthClients(initOverrides) {
104
96
  return __awaiter(this, void 0, void 0, function* () {
105
- const response = yield this.getOAuthClientRaw(requestParameters, initOverrides);
97
+ const response = yield this.listOAuthClientsRaw(initOverrides);
106
98
  return yield response.value();
107
99
  });
108
100
  }
109
101
  /**
110
- * Get a list of all OAuth Clients.
102
+ * Update an oauth client
111
103
  */
112
- listOAuthClientsRaw(initOverrides) {
104
+ updateOAuthClientRaw(requestParameters, initOverrides) {
113
105
  return __awaiter(this, void 0, void 0, function* () {
106
+ if (requestParameters['clientId'] == null) {
107
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateOAuthClient().');
108
+ }
109
+ if (requestParameters['updateOAuthClientPayload'] == null) {
110
+ throw new runtime.RequiredError('updateOAuthClientPayload', 'Required parameter "updateOAuthClientPayload" was null or undefined when calling updateOAuthClient().');
111
+ }
114
112
  const queryParameters = {};
115
113
  const headerParameters = {};
114
+ headerParameters['Content-Type'] = 'application/json';
116
115
  if (this.configuration && this.configuration.accessToken) {
117
116
  // oauth required
118
117
  const token = this.configuration.accessToken;
@@ -122,20 +121,21 @@ class OAuthApi extends runtime.BaseAPI {
122
121
  }
123
122
  }
124
123
  const response = yield this.request({
125
- path: `/oauthClients`,
126
- method: 'GET',
124
+ path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
125
+ method: 'PUT',
127
126
  headers: headerParameters,
128
127
  query: queryParameters,
128
+ body: (0, index_1.UpdateOAuthClientPayloadToJSON)(requestParameters['updateOAuthClientPayload']),
129
129
  }, initOverrides);
130
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OAuthClientListItemFromJSON));
130
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OAuthClientUpdatedFromJSON)(jsonValue));
131
131
  });
132
132
  }
133
133
  /**
134
- * Get a list of all OAuth Clients.
134
+ * Update an oauth client
135
135
  */
136
- listOAuthClients(initOverrides) {
136
+ updateOAuthClient(requestParameters, initOverrides) {
137
137
  return __awaiter(this, void 0, void 0, function* () {
138
- const response = yield this.listOAuthClientsRaw(initOverrides);
138
+ const response = yield this.updateOAuthClientRaw(requestParameters, initOverrides);
139
139
  return yield response.value();
140
140
  });
141
141
  }
@@ -10,26 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateOrUpdateOAuthClientPayload, OAuthClient, OAuthClientCreated, OAuthClientListItem } from '../models/index';
14
- export interface CreateOrUpdateOAuthClientRequest {
13
+ import type { OAuthClient, OAuthClientListItem, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
14
+ export interface GetOAuthClientRequest {
15
15
  clientId: string;
16
- createOrUpdateOAuthClientPayload: CreateOrUpdateOAuthClientPayload;
17
16
  }
18
- export interface GetOAuthClientRequest {
17
+ export interface UpdateOAuthClientRequest {
19
18
  clientId: string;
19
+ updateOAuthClientPayload: UpdateOAuthClientPayload;
20
20
  }
21
21
  /**
22
22
  *
23
23
  */
24
24
  export declare class OAuthApi extends runtime.BaseAPI {
25
- /**
26
- * Create or update an oauth client
27
- */
28
- createOrUpdateOAuthClientRaw(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClientCreated>>;
29
- /**
30
- * Create or update an oauth client
31
- */
32
- createOrUpdateOAuthClient(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClientCreated>;
33
25
  /**
34
26
  * Get detailed information about an oauth client.
35
27
  */
@@ -46,4 +38,12 @@ export declare class OAuthApi extends runtime.BaseAPI {
46
38
  * Get a list of all OAuth Clients.
47
39
  */
48
40
  listOAuthClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>>;
41
+ /**
42
+ * Update an oauth client
43
+ */
44
+ updateOAuthClientRaw(requestParameters: UpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClientUpdated>>;
45
+ /**
46
+ * Update an oauth client
47
+ */
48
+ updateOAuthClient(requestParameters: UpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClientUpdated>;
49
49
  }
@@ -21,25 +21,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CreateOrUpdateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientCreatedFromJSON, OAuthClientListItemFromJSON, } from '../models/index';
24
+ import { OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientUpdatedFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class OAuthApi extends runtime.BaseAPI {
29
29
  /**
30
- * Create or update an oauth client
30
+ * Get detailed information about an oauth client.
31
31
  */
32
- createOrUpdateOAuthClientRaw(requestParameters, initOverrides) {
32
+ getOAuthClientRaw(requestParameters, initOverrides) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  if (requestParameters['clientId'] == null) {
35
- throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createOrUpdateOAuthClient().');
36
- }
37
- if (requestParameters['createOrUpdateOAuthClientPayload'] == null) {
38
- throw new runtime.RequiredError('createOrUpdateOAuthClientPayload', 'Required parameter "createOrUpdateOAuthClientPayload" was null or undefined when calling createOrUpdateOAuthClient().');
35
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getOAuthClient().');
39
36
  }
40
37
  const queryParameters = {};
41
38
  const headerParameters = {};
42
- headerParameters['Content-Type'] = 'application/json';
43
39
  if (this.configuration && this.configuration.accessToken) {
44
40
  // oauth required
45
41
  const token = this.configuration.accessToken;
@@ -50,31 +46,27 @@ export class OAuthApi extends runtime.BaseAPI {
50
46
  }
51
47
  const response = yield this.request({
52
48
  path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
53
- method: 'PUT',
49
+ method: 'GET',
54
50
  headers: headerParameters,
55
51
  query: queryParameters,
56
- body: CreateOrUpdateOAuthClientPayloadToJSON(requestParameters['createOrUpdateOAuthClientPayload']),
57
52
  }, initOverrides);
58
- return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientCreatedFromJSON(jsonValue));
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientFromJSON(jsonValue));
59
54
  });
60
55
  }
61
56
  /**
62
- * Create or update an oauth client
57
+ * Get detailed information about an oauth client.
63
58
  */
64
- createOrUpdateOAuthClient(requestParameters, initOverrides) {
59
+ getOAuthClient(requestParameters, initOverrides) {
65
60
  return __awaiter(this, void 0, void 0, function* () {
66
- const response = yield this.createOrUpdateOAuthClientRaw(requestParameters, initOverrides);
61
+ const response = yield this.getOAuthClientRaw(requestParameters, initOverrides);
67
62
  return yield response.value();
68
63
  });
69
64
  }
70
65
  /**
71
- * Get detailed information about an oauth client.
66
+ * Get a list of all OAuth Clients.
72
67
  */
73
- getOAuthClientRaw(requestParameters, initOverrides) {
68
+ listOAuthClientsRaw(initOverrides) {
74
69
  return __awaiter(this, void 0, void 0, function* () {
75
- if (requestParameters['clientId'] == null) {
76
- throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getOAuthClient().');
77
- }
78
70
  const queryParameters = {};
79
71
  const headerParameters = {};
80
72
  if (this.configuration && this.configuration.accessToken) {
@@ -86,30 +78,37 @@ export class OAuthApi extends runtime.BaseAPI {
86
78
  }
87
79
  }
88
80
  const response = yield this.request({
89
- path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
81
+ path: `/oauthClients`,
90
82
  method: 'GET',
91
83
  headers: headerParameters,
92
84
  query: queryParameters,
93
85
  }, initOverrides);
94
- return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientFromJSON(jsonValue));
86
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthClientListItemFromJSON));
95
87
  });
96
88
  }
97
89
  /**
98
- * Get detailed information about an oauth client.
90
+ * Get a list of all OAuth Clients.
99
91
  */
100
- getOAuthClient(requestParameters, initOverrides) {
92
+ listOAuthClients(initOverrides) {
101
93
  return __awaiter(this, void 0, void 0, function* () {
102
- const response = yield this.getOAuthClientRaw(requestParameters, initOverrides);
94
+ const response = yield this.listOAuthClientsRaw(initOverrides);
103
95
  return yield response.value();
104
96
  });
105
97
  }
106
98
  /**
107
- * Get a list of all OAuth Clients.
99
+ * Update an oauth client
108
100
  */
109
- listOAuthClientsRaw(initOverrides) {
101
+ updateOAuthClientRaw(requestParameters, initOverrides) {
110
102
  return __awaiter(this, void 0, void 0, function* () {
103
+ if (requestParameters['clientId'] == null) {
104
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateOAuthClient().');
105
+ }
106
+ if (requestParameters['updateOAuthClientPayload'] == null) {
107
+ throw new runtime.RequiredError('updateOAuthClientPayload', 'Required parameter "updateOAuthClientPayload" was null or undefined when calling updateOAuthClient().');
108
+ }
111
109
  const queryParameters = {};
112
110
  const headerParameters = {};
111
+ headerParameters['Content-Type'] = 'application/json';
113
112
  if (this.configuration && this.configuration.accessToken) {
114
113
  // oauth required
115
114
  const token = this.configuration.accessToken;
@@ -119,20 +118,21 @@ export class OAuthApi extends runtime.BaseAPI {
119
118
  }
120
119
  }
121
120
  const response = yield this.request({
122
- path: `/oauthClients`,
123
- method: 'GET',
121
+ path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
122
+ method: 'PUT',
124
123
  headers: headerParameters,
125
124
  query: queryParameters,
125
+ body: UpdateOAuthClientPayloadToJSON(requestParameters['updateOAuthClientPayload']),
126
126
  }, initOverrides);
127
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthClientListItemFromJSON));
127
+ return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientUpdatedFromJSON(jsonValue));
128
128
  });
129
129
  }
130
130
  /**
131
- * Get a list of all OAuth Clients.
131
+ * Update an oauth client
132
132
  */
133
- listOAuthClients(initOverrides) {
133
+ updateOAuthClient(requestParameters, initOverrides) {
134
134
  return __awaiter(this, void 0, void 0, function* () {
135
- const response = yield this.listOAuthClientsRaw(initOverrides);
135
+ const response = yield this.updateOAuthClientRaw(requestParameters, initOverrides);
136
136
  return yield response.value();
137
137
  });
138
138
  }
@@ -40,6 +40,12 @@ export interface OAuthClient {
40
40
  * @memberof OAuthClient
41
41
  */
42
42
  trusted: boolean;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof OAuthClient
47
+ */
48
+ system: boolean;
43
49
  /**
44
50
  *
45
51
  * @type {Array<string>}
@@ -24,6 +24,8 @@ export function instanceOfOAuthClient(value) {
24
24
  return false;
25
25
  if (!('trusted' in value) || value['trusted'] === undefined)
26
26
  return false;
27
+ if (!('system' in value) || value['system'] === undefined)
28
+ return false;
27
29
  if (!('audiences' in value) || value['audiences'] === undefined)
28
30
  return false;
29
31
  if (!('redirectUris' in value) || value['redirectUris'] === undefined)
@@ -50,6 +52,7 @@ export function OAuthClientFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'name': json['name'],
51
53
  'clientSecret': json['clientSecret'],
52
54
  'trusted': json['trusted'],
55
+ 'system': json['system'],
53
56
  'audiences': json['audiences'],
54
57
  'redirectUris': json['redirectUris'],
55
58
  'grantTypes': json['grantTypes'],
@@ -74,6 +77,7 @@ export function OAuthClientToJSONTyped(value, ignoreDiscriminator = false) {
74
77
  'name': value['name'],
75
78
  'clientSecret': value['clientSecret'],
76
79
  'trusted': value['trusted'],
80
+ 'system': value['system'],
77
81
  'audiences': value['audiences'],
78
82
  'redirectUris': value['redirectUris'],
79
83
  'grantTypes': value['grantTypes'],
@@ -15,6 +15,12 @@
15
15
  * @interface OAuthClientListItem
16
16
  */
17
17
  export interface OAuthClientListItem {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OAuthClientListItem
22
+ */
23
+ clientId: string;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -33,6 +39,12 @@ export interface OAuthClientListItem {
33
39
  * @memberof OAuthClientListItem
34
40
  */
35
41
  redirectUris: Array<string>;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof OAuthClientListItem
46
+ */
47
+ grantTypes: Array<string>;
36
48
  /**
37
49
  *
38
50
  * @type {Array<string>}
@@ -15,12 +15,16 @@
15
15
  * Check if a given object implements the OAuthClientListItem interface.
16
16
  */
17
17
  export function instanceOfOAuthClientListItem(value) {
18
+ if (!('clientId' in value) || value['clientId'] === undefined)
19
+ return false;
18
20
  if (!('name' in value) || value['name'] === undefined)
19
21
  return false;
20
22
  if (!('audiences' in value) || value['audiences'] === undefined)
21
23
  return false;
22
24
  if (!('redirectUris' in value) || value['redirectUris'] === undefined)
23
25
  return false;
26
+ if (!('grantTypes' in value) || value['grantTypes'] === undefined)
27
+ return false;
24
28
  if (!('scopes' in value) || value['scopes'] === undefined)
25
29
  return false;
26
30
  return true;
@@ -33,9 +37,11 @@ export function OAuthClientListItemFromJSONTyped(json, ignoreDiscriminator) {
33
37
  return json;
34
38
  }
35
39
  return {
40
+ 'clientId': json['clientId'],
36
41
  'name': json['name'],
37
42
  'audiences': json['audiences'],
38
43
  'redirectUris': json['redirectUris'],
44
+ 'grantTypes': json['grantTypes'],
39
45
  'scopes': json['scopes'],
40
46
  };
41
47
  }
@@ -47,9 +53,11 @@ export function OAuthClientListItemToJSONTyped(value, ignoreDiscriminator = fals
47
53
  return value;
48
54
  }
49
55
  return {
56
+ 'clientId': value['clientId'],
50
57
  'name': value['name'],
51
58
  'audiences': value['audiences'],
52
59
  'redirectUris': value['redirectUris'],
60
+ 'grantTypes': value['grantTypes'],
53
61
  'scopes': value['scopes'],
54
62
  };
55
63
  }
@@ -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: 9.9.1-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Information about the updated oauth client
14
+ * @export
15
+ * @interface OAuthClientUpdated
16
+ */
17
+ export interface OAuthClientUpdated {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OAuthClientUpdated
22
+ */
23
+ clientId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OAuthClientUpdated interface.
27
+ */
28
+ export declare function instanceOfOAuthClientUpdated(value: object): value is OAuthClientUpdated;
29
+ export declare function OAuthClientUpdatedFromJSON(json: any): OAuthClientUpdated;
30
+ export declare function OAuthClientUpdatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientUpdated;
31
+ export declare function OAuthClientUpdatedToJSON(json: any): OAuthClientUpdated;
32
+ export declare function OAuthClientUpdatedToJSONTyped(value?: OAuthClientUpdated | null, ignoreDiscriminator?: boolean): any;
@@ -12,17 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the OAuthClientCreated interface.
15
+ * Check if a given object implements the OAuthClientUpdated interface.
16
16
  */
17
- export function instanceOfOAuthClientCreated(value) {
17
+ export function instanceOfOAuthClientUpdated(value) {
18
18
  if (!('clientId' in value) || value['clientId'] === undefined)
19
19
  return false;
20
20
  return true;
21
21
  }
22
- export function OAuthClientCreatedFromJSON(json) {
23
- return OAuthClientCreatedFromJSONTyped(json, false);
22
+ export function OAuthClientUpdatedFromJSON(json) {
23
+ return OAuthClientUpdatedFromJSONTyped(json, false);
24
24
  }
25
- export function OAuthClientCreatedFromJSONTyped(json, ignoreDiscriminator) {
25
+ export function OAuthClientUpdatedFromJSONTyped(json, ignoreDiscriminator) {
26
26
  if (json == null) {
27
27
  return json;
28
28
  }
@@ -30,10 +30,10 @@ export function OAuthClientCreatedFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'clientId': json['clientId'],
31
31
  };
32
32
  }
33
- export function OAuthClientCreatedToJSON(json) {
34
- return OAuthClientCreatedToJSONTyped(json, false);
33
+ export function OAuthClientUpdatedToJSON(json) {
34
+ return OAuthClientUpdatedToJSONTyped(json, false);
35
35
  }
36
- export function OAuthClientCreatedToJSONTyped(value, ignoreDiscriminator = false) {
36
+ export function OAuthClientUpdatedToJSONTyped(value, ignoreDiscriminator = false) {
37
37
  if (value == null) {
38
38
  return value;
39
39
  }