@equisoft/account-service-sdk-typescript 9.9.1-snapshot.20250728203919 → 9.9.1-snapshot.20250805184627
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 +2 -2
- package/dist/apis/OAuthApi.d.ts +12 -12
- package/dist/apis/OAuthApi.js +31 -31
- package/dist/esm/apis/OAuthApi.d.ts +12 -12
- package/dist/esm/apis/OAuthApi.js +32 -32
- package/dist/esm/models/OAuthClient.d.ts +6 -0
- package/dist/esm/models/OAuthClient.js +4 -0
- package/dist/esm/models/OAuthClientListItem.d.ts +12 -0
- package/dist/esm/models/OAuthClientListItem.js +8 -0
- package/dist/esm/models/OAuthClientUpdated.d.ts +32 -0
- package/dist/esm/models/{OAuthClientCreated.js → OAuthClientUpdated.js} +8 -8
- package/dist/esm/models/UpdateOAuthClientPayload.d.ts +101 -0
- package/dist/esm/models/{CreateOrUpdateOAuthClientPayload.js → UpdateOAuthClientPayload.js} +8 -10
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +2 -2
- package/dist/models/OAuthClient.d.ts +6 -0
- package/dist/models/OAuthClient.js +4 -0
- package/dist/models/OAuthClientListItem.d.ts +12 -0
- package/dist/models/OAuthClientListItem.js +8 -0
- package/dist/models/OAuthClientUpdated.d.ts +32 -0
- package/dist/models/{OAuthClientCreated.js → OAuthClientUpdated.js} +13 -13
- package/dist/models/UpdateOAuthClientPayload.d.ts +101 -0
- package/dist/models/{CreateOrUpdateOAuthClientPayload.js → UpdateOAuthClientPayload.js} +13 -15
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/OAuthApi.ts +49 -49
- package/src/models/OAuthClient.ts +9 -0
- package/src/models/OAuthClientListItem.ts +18 -0
- package/src/models/{OAuthClientCreated.ts → OAuthClientUpdated.ts} +12 -12
- package/src/models/{CreateOrUpdateOAuthClientPayload.ts → UpdateOAuthClientPayload.ts} +23 -31
- package/src/models/index.ts +2 -2
- package/dist/esm/models/CreateOrUpdateOAuthClientPayload.d.ts +0 -107
- package/dist/esm/models/OAuthClientCreated.d.ts +0 -32
- package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +0 -107
- package/dist/models/OAuthClientCreated.d.ts +0 -32
package/src/apis/OAuthApi.ts
CHANGED
|
@@ -15,32 +15,32 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
CreateOrUpdateOAuthClientPayload,
|
|
19
18
|
ErrorPayload,
|
|
20
19
|
OAuthClient,
|
|
21
|
-
OAuthClientCreated,
|
|
22
20
|
OAuthClientListItem,
|
|
21
|
+
OAuthClientUpdated,
|
|
22
|
+
UpdateOAuthClientPayload,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
import {
|
|
25
|
-
CreateOrUpdateOAuthClientPayloadFromJSON,
|
|
26
|
-
CreateOrUpdateOAuthClientPayloadToJSON,
|
|
27
25
|
ErrorPayloadFromJSON,
|
|
28
26
|
ErrorPayloadToJSON,
|
|
29
27
|
OAuthClientFromJSON,
|
|
30
28
|
OAuthClientToJSON,
|
|
31
|
-
OAuthClientCreatedFromJSON,
|
|
32
|
-
OAuthClientCreatedToJSON,
|
|
33
29
|
OAuthClientListItemFromJSON,
|
|
34
30
|
OAuthClientListItemToJSON,
|
|
31
|
+
OAuthClientUpdatedFromJSON,
|
|
32
|
+
OAuthClientUpdatedToJSON,
|
|
33
|
+
UpdateOAuthClientPayloadFromJSON,
|
|
34
|
+
UpdateOAuthClientPayloadToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
|
-
export interface
|
|
37
|
+
export interface GetOAuthClientRequest {
|
|
38
38
|
clientId: string;
|
|
39
|
-
createOrUpdateOAuthClientPayload: CreateOrUpdateOAuthClientPayload;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
export interface
|
|
41
|
+
export interface UpdateOAuthClientRequest {
|
|
43
42
|
clientId: string;
|
|
43
|
+
updateOAuthClientPayload: UpdateOAuthClientPayload;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -49,20 +49,13 @@ export interface GetOAuthClientRequest {
|
|
|
49
49
|
export class OAuthApi extends runtime.BaseAPI {
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Get detailed information about an oauth client.
|
|
53
53
|
*/
|
|
54
|
-
async
|
|
54
|
+
async getOAuthClientRaw(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClient>> {
|
|
55
55
|
if (requestParameters['clientId'] == null) {
|
|
56
56
|
throw new runtime.RequiredError(
|
|
57
57
|
'clientId',
|
|
58
|
-
'Required parameter "clientId" was null or undefined when calling
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (requestParameters['createOrUpdateOAuthClientPayload'] == null) {
|
|
63
|
-
throw new runtime.RequiredError(
|
|
64
|
-
'createOrUpdateOAuthClientPayload',
|
|
65
|
-
'Required parameter "createOrUpdateOAuthClientPayload" was null or undefined when calling createOrUpdateOAuthClient().'
|
|
58
|
+
'Required parameter "clientId" was null or undefined when calling getOAuthClient().'
|
|
66
59
|
);
|
|
67
60
|
}
|
|
68
61
|
|
|
@@ -70,8 +63,6 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
70
63
|
|
|
71
64
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
65
|
|
|
73
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
-
|
|
75
66
|
if (this.configuration && this.configuration.accessToken) {
|
|
76
67
|
// oauth required
|
|
77
68
|
const token = this.configuration.accessToken;
|
|
@@ -83,34 +74,26 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
83
74
|
|
|
84
75
|
const response = await this.request({
|
|
85
76
|
path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
|
|
86
|
-
method: '
|
|
77
|
+
method: 'GET',
|
|
87
78
|
headers: headerParameters,
|
|
88
79
|
query: queryParameters,
|
|
89
|
-
body: CreateOrUpdateOAuthClientPayloadToJSON(requestParameters['createOrUpdateOAuthClientPayload']),
|
|
90
80
|
}, initOverrides);
|
|
91
81
|
|
|
92
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientFromJSON(jsonValue));
|
|
93
83
|
}
|
|
94
84
|
|
|
95
85
|
/**
|
|
96
|
-
*
|
|
86
|
+
* Get detailed information about an oauth client.
|
|
97
87
|
*/
|
|
98
|
-
async
|
|
99
|
-
const response = await this.
|
|
88
|
+
async getOAuthClient(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient> {
|
|
89
|
+
const response = await this.getOAuthClientRaw(requestParameters, initOverrides);
|
|
100
90
|
return await response.value();
|
|
101
91
|
}
|
|
102
92
|
|
|
103
93
|
/**
|
|
104
|
-
* Get
|
|
94
|
+
* Get a list of all OAuth Clients.
|
|
105
95
|
*/
|
|
106
|
-
async
|
|
107
|
-
if (requestParameters['clientId'] == null) {
|
|
108
|
-
throw new runtime.RequiredError(
|
|
109
|
-
'clientId',
|
|
110
|
-
'Required parameter "clientId" was null or undefined when calling getOAuthClient().'
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
96
|
+
async listOAuthClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthClientListItem>>> {
|
|
114
97
|
const queryParameters: any = {};
|
|
115
98
|
|
|
116
99
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -125,31 +108,47 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
125
108
|
}
|
|
126
109
|
|
|
127
110
|
const response = await this.request({
|
|
128
|
-
path: `/oauthClients
|
|
111
|
+
path: `/oauthClients`,
|
|
129
112
|
method: 'GET',
|
|
130
113
|
headers: headerParameters,
|
|
131
114
|
query: queryParameters,
|
|
132
115
|
}, initOverrides);
|
|
133
116
|
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthClientListItemFromJSON));
|
|
135
118
|
}
|
|
136
119
|
|
|
137
120
|
/**
|
|
138
|
-
* Get
|
|
121
|
+
* Get a list of all OAuth Clients.
|
|
139
122
|
*/
|
|
140
|
-
async
|
|
141
|
-
const response = await this.
|
|
123
|
+
async listOAuthClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>> {
|
|
124
|
+
const response = await this.listOAuthClientsRaw(initOverrides);
|
|
142
125
|
return await response.value();
|
|
143
126
|
}
|
|
144
127
|
|
|
145
128
|
/**
|
|
146
|
-
*
|
|
129
|
+
* Update an oauth client
|
|
147
130
|
*/
|
|
148
|
-
async
|
|
131
|
+
async updateOAuthClientRaw(requestParameters: UpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClientUpdated>> {
|
|
132
|
+
if (requestParameters['clientId'] == null) {
|
|
133
|
+
throw new runtime.RequiredError(
|
|
134
|
+
'clientId',
|
|
135
|
+
'Required parameter "clientId" was null or undefined when calling updateOAuthClient().'
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (requestParameters['updateOAuthClientPayload'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'updateOAuthClientPayload',
|
|
142
|
+
'Required parameter "updateOAuthClientPayload" was null or undefined when calling updateOAuthClient().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
149
146
|
const queryParameters: any = {};
|
|
150
147
|
|
|
151
148
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
149
|
|
|
150
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
|
|
153
152
|
if (this.configuration && this.configuration.accessToken) {
|
|
154
153
|
// oauth required
|
|
155
154
|
const token = this.configuration.accessToken;
|
|
@@ -160,20 +159,21 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
const response = await this.request({
|
|
163
|
-
path: `/oauthClients`,
|
|
164
|
-
method: '
|
|
162
|
+
path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))),
|
|
163
|
+
method: 'PUT',
|
|
165
164
|
headers: headerParameters,
|
|
166
165
|
query: queryParameters,
|
|
166
|
+
body: UpdateOAuthClientPayloadToJSON(requestParameters['updateOAuthClientPayload']),
|
|
167
167
|
}, initOverrides);
|
|
168
168
|
|
|
169
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthClientUpdatedFromJSON(jsonValue));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* Update an oauth client
|
|
174
174
|
*/
|
|
175
|
-
async
|
|
176
|
-
const response = await this.
|
|
175
|
+
async updateOAuthClient(requestParameters: UpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClientUpdated> {
|
|
176
|
+
const response = await this.updateOAuthClientRaw(requestParameters, initOverrides);
|
|
177
177
|
return await response.value();
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -51,6 +51,12 @@ export interface OAuthClient {
|
|
|
51
51
|
* @memberof OAuthClient
|
|
52
52
|
*/
|
|
53
53
|
trusted: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof OAuthClient
|
|
58
|
+
*/
|
|
59
|
+
system: boolean;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {Array<string>}
|
|
@@ -121,6 +127,7 @@ export function instanceOfOAuthClient(value: object): value is OAuthClient {
|
|
|
121
127
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
122
128
|
if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false;
|
|
123
129
|
if (!('trusted' in value) || value['trusted'] === undefined) return false;
|
|
130
|
+
if (!('system' in value) || value['system'] === undefined) return false;
|
|
124
131
|
if (!('audiences' in value) || value['audiences'] === undefined) return false;
|
|
125
132
|
if (!('redirectUris' in value) || value['redirectUris'] === undefined) return false;
|
|
126
133
|
if (!('grantTypes' in value) || value['grantTypes'] === undefined) return false;
|
|
@@ -144,6 +151,7 @@ export function OAuthClientFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
144
151
|
'name': json['name'],
|
|
145
152
|
'clientSecret': json['clientSecret'],
|
|
146
153
|
'trusted': json['trusted'],
|
|
154
|
+
'system': json['system'],
|
|
147
155
|
'audiences': json['audiences'],
|
|
148
156
|
'redirectUris': json['redirectUris'],
|
|
149
157
|
'grantTypes': json['grantTypes'],
|
|
@@ -172,6 +180,7 @@ export function OAuthClientToJSONTyped(value?: OAuthClient | null, ignoreDiscrim
|
|
|
172
180
|
'name': value['name'],
|
|
173
181
|
'clientSecret': value['clientSecret'],
|
|
174
182
|
'trusted': value['trusted'],
|
|
183
|
+
'system': value['system'],
|
|
175
184
|
'audiences': value['audiences'],
|
|
176
185
|
'redirectUris': value['redirectUris'],
|
|
177
186
|
'grantTypes': value['grantTypes'],
|
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface OAuthClientListItem
|
|
20
20
|
*/
|
|
21
21
|
export interface OAuthClientListItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OAuthClientListItem
|
|
26
|
+
*/
|
|
27
|
+
clientId: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -37,6 +43,12 @@ export interface OAuthClientListItem {
|
|
|
37
43
|
* @memberof OAuthClientListItem
|
|
38
44
|
*/
|
|
39
45
|
redirectUris: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof OAuthClientListItem
|
|
50
|
+
*/
|
|
51
|
+
grantTypes: Array<string>;
|
|
40
52
|
/**
|
|
41
53
|
*
|
|
42
54
|
* @type {Array<string>}
|
|
@@ -49,9 +61,11 @@ export interface OAuthClientListItem {
|
|
|
49
61
|
* Check if a given object implements the OAuthClientListItem interface.
|
|
50
62
|
*/
|
|
51
63
|
export function instanceOfOAuthClientListItem(value: object): value is OAuthClientListItem {
|
|
64
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
52
65
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
66
|
if (!('audiences' in value) || value['audiences'] === undefined) return false;
|
|
54
67
|
if (!('redirectUris' in value) || value['redirectUris'] === undefined) return false;
|
|
68
|
+
if (!('grantTypes' in value) || value['grantTypes'] === undefined) return false;
|
|
55
69
|
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
56
70
|
return true;
|
|
57
71
|
}
|
|
@@ -66,9 +80,11 @@ export function OAuthClientListItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
66
80
|
}
|
|
67
81
|
return {
|
|
68
82
|
|
|
83
|
+
'clientId': json['clientId'],
|
|
69
84
|
'name': json['name'],
|
|
70
85
|
'audiences': json['audiences'],
|
|
71
86
|
'redirectUris': json['redirectUris'],
|
|
87
|
+
'grantTypes': json['grantTypes'],
|
|
72
88
|
'scopes': json['scopes'],
|
|
73
89
|
};
|
|
74
90
|
}
|
|
@@ -84,9 +100,11 @@ export function OAuthClientListItemToJSONTyped(value?: OAuthClientListItem | nul
|
|
|
84
100
|
|
|
85
101
|
return {
|
|
86
102
|
|
|
103
|
+
'clientId': value['clientId'],
|
|
87
104
|
'name': value['name'],
|
|
88
105
|
'audiences': value['audiences'],
|
|
89
106
|
'redirectUris': value['redirectUris'],
|
|
107
|
+
'grantTypes': value['grantTypes'],
|
|
90
108
|
'scopes': value['scopes'],
|
|
91
109
|
};
|
|
92
110
|
}
|
|
@@ -14,32 +14,32 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Information about the
|
|
17
|
+
* Information about the updated oauth client
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface OAuthClientUpdated
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface OAuthClientUpdated {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof OAuthClientUpdated
|
|
26
26
|
*/
|
|
27
27
|
clientId: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
31
|
+
* Check if a given object implements the OAuthClientUpdated interface.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function instanceOfOAuthClientUpdated(value: object): value is OAuthClientUpdated {
|
|
34
34
|
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export function
|
|
39
|
-
return
|
|
38
|
+
export function OAuthClientUpdatedFromJSON(json: any): OAuthClientUpdated {
|
|
39
|
+
return OAuthClientUpdatedFromJSONTyped(json, false);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export function
|
|
42
|
+
export function OAuthClientUpdatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientUpdated {
|
|
43
43
|
if (json == null) {
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
@@ -49,11 +49,11 @@ export function OAuthClientCreatedFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export function
|
|
53
|
-
return
|
|
52
|
+
export function OAuthClientUpdatedToJSON(json: any): OAuthClientUpdated {
|
|
53
|
+
return OAuthClientUpdatedToJSONTyped(json, false);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export function
|
|
56
|
+
export function OAuthClientUpdatedToJSONTyped(value?: OAuthClientUpdated | null, ignoreDiscriminator: boolean = false): any {
|
|
57
57
|
if (value == null) {
|
|
58
58
|
return value;
|
|
59
59
|
}
|
|
@@ -22,111 +22,104 @@ import {
|
|
|
22
22
|
} from './OAuthClientPublicKey';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* A request to
|
|
25
|
+
* A request to update an oauth client
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface UpdateOAuthClientPayload
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface UpdateOAuthClientPayload {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof UpdateOAuthClientPayload
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
40
|
-
*/
|
|
41
|
-
clientSecret?: string | null;
|
|
42
36
|
/**
|
|
43
37
|
*
|
|
44
38
|
* @type {boolean}
|
|
45
|
-
* @memberof
|
|
39
|
+
* @memberof UpdateOAuthClientPayload
|
|
46
40
|
*/
|
|
47
41
|
trusted?: boolean | null;
|
|
48
42
|
/**
|
|
49
43
|
*
|
|
50
44
|
* @type {Array<string>}
|
|
51
|
-
* @memberof
|
|
45
|
+
* @memberof UpdateOAuthClientPayload
|
|
52
46
|
*/
|
|
53
47
|
audiences?: Array<string> | null;
|
|
54
48
|
/**
|
|
55
49
|
*
|
|
56
50
|
* @type {Array<string>}
|
|
57
|
-
* @memberof
|
|
51
|
+
* @memberof UpdateOAuthClientPayload
|
|
58
52
|
*/
|
|
59
53
|
redirectUris?: Array<string> | null;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {Array<string>}
|
|
63
|
-
* @memberof
|
|
57
|
+
* @memberof UpdateOAuthClientPayload
|
|
64
58
|
*/
|
|
65
59
|
grantTypes?: Array<string> | null;
|
|
66
60
|
/**
|
|
67
61
|
*
|
|
68
62
|
* @type {Array<string>}
|
|
69
|
-
* @memberof
|
|
63
|
+
* @memberof UpdateOAuthClientPayload
|
|
70
64
|
*/
|
|
71
65
|
scopes?: Array<string> | null;
|
|
72
66
|
/**
|
|
73
67
|
*
|
|
74
68
|
* @type {string}
|
|
75
|
-
* @memberof
|
|
69
|
+
* @memberof UpdateOAuthClientPayload
|
|
76
70
|
*/
|
|
77
71
|
jwksUri?: string | null;
|
|
78
72
|
/**
|
|
79
73
|
*
|
|
80
74
|
* @type {OAuthClientPublicKey}
|
|
81
|
-
* @memberof
|
|
75
|
+
* @memberof UpdateOAuthClientPayload
|
|
82
76
|
*/
|
|
83
77
|
publicKey?: OAuthClientPublicKey | null;
|
|
84
78
|
/**
|
|
85
79
|
*
|
|
86
80
|
* @type {boolean}
|
|
87
|
-
* @memberof
|
|
81
|
+
* @memberof UpdateOAuthClientPayload
|
|
88
82
|
*/
|
|
89
83
|
serviceAccount?: boolean | null;
|
|
90
84
|
/**
|
|
91
85
|
*
|
|
92
86
|
* @type {boolean}
|
|
93
|
-
* @memberof
|
|
87
|
+
* @memberof UpdateOAuthClientPayload
|
|
94
88
|
*/
|
|
95
89
|
serviceAccountDelegation?: boolean | null;
|
|
96
90
|
/**
|
|
97
91
|
*
|
|
98
92
|
* @type {{ [key: string]: any; }}
|
|
99
|
-
* @memberof
|
|
93
|
+
* @memberof UpdateOAuthClientPayload
|
|
100
94
|
*/
|
|
101
95
|
additionalTokenFields?: { [key: string]: any; } | null;
|
|
102
96
|
/**
|
|
103
97
|
*
|
|
104
98
|
* @type {string}
|
|
105
|
-
* @memberof
|
|
99
|
+
* @memberof UpdateOAuthClientPayload
|
|
106
100
|
*/
|
|
107
101
|
ssoProvider?: string | null;
|
|
108
102
|
}
|
|
109
103
|
|
|
110
104
|
/**
|
|
111
|
-
* Check if a given object implements the
|
|
105
|
+
* Check if a given object implements the UpdateOAuthClientPayload interface.
|
|
112
106
|
*/
|
|
113
|
-
export function
|
|
107
|
+
export function instanceOfUpdateOAuthClientPayload(value: object): value is UpdateOAuthClientPayload {
|
|
114
108
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
115
109
|
return true;
|
|
116
110
|
}
|
|
117
111
|
|
|
118
|
-
export function
|
|
119
|
-
return
|
|
112
|
+
export function UpdateOAuthClientPayloadFromJSON(json: any): UpdateOAuthClientPayload {
|
|
113
|
+
return UpdateOAuthClientPayloadFromJSONTyped(json, false);
|
|
120
114
|
}
|
|
121
115
|
|
|
122
|
-
export function
|
|
116
|
+
export function UpdateOAuthClientPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOAuthClientPayload {
|
|
123
117
|
if (json == null) {
|
|
124
118
|
return json;
|
|
125
119
|
}
|
|
126
120
|
return {
|
|
127
121
|
|
|
128
122
|
'name': json['name'],
|
|
129
|
-
'clientSecret': json['clientSecret'] == null ? undefined : json['clientSecret'],
|
|
130
123
|
'trusted': json['trusted'] == null ? undefined : json['trusted'],
|
|
131
124
|
'audiences': json['audiences'] == null ? undefined : json['audiences'],
|
|
132
125
|
'redirectUris': json['redirectUris'] == null ? undefined : json['redirectUris'],
|
|
@@ -141,11 +134,11 @@ export function CreateOrUpdateOAuthClientPayloadFromJSONTyped(json: any, ignoreD
|
|
|
141
134
|
};
|
|
142
135
|
}
|
|
143
136
|
|
|
144
|
-
export function
|
|
145
|
-
return
|
|
137
|
+
export function UpdateOAuthClientPayloadToJSON(json: any): UpdateOAuthClientPayload {
|
|
138
|
+
return UpdateOAuthClientPayloadToJSONTyped(json, false);
|
|
146
139
|
}
|
|
147
140
|
|
|
148
|
-
export function
|
|
141
|
+
export function UpdateOAuthClientPayloadToJSONTyped(value?: UpdateOAuthClientPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
149
142
|
if (value == null) {
|
|
150
143
|
return value;
|
|
151
144
|
}
|
|
@@ -153,7 +146,6 @@ export function CreateOrUpdateOAuthClientPayloadToJSONTyped(value?: CreateOrUpda
|
|
|
153
146
|
return {
|
|
154
147
|
|
|
155
148
|
'name': value['name'],
|
|
156
|
-
'clientSecret': value['clientSecret'],
|
|
157
149
|
'trusted': value['trusted'],
|
|
158
150
|
'audiences': value['audiences'],
|
|
159
151
|
'redirectUris': value['redirectUris'],
|
package/src/models/index.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './ApplyPermissionsPayload';
|
|
4
4
|
export * from './AuthenticationUserAccount';
|
|
5
|
-
export * from './CreateOrUpdateOAuthClientPayload';
|
|
6
5
|
export * from './CreateOrUpdateOrganizationPayload';
|
|
7
6
|
export * from './CreateOrUpdatePermissionPayload';
|
|
8
7
|
export * from './CreateOrganizationPayload';
|
|
@@ -22,9 +21,9 @@ export * from './LocalizedString';
|
|
|
22
21
|
export * from './LoginPayload';
|
|
23
22
|
export * from './NewPasswordPayload';
|
|
24
23
|
export * from './OAuthClient';
|
|
25
|
-
export * from './OAuthClientCreated';
|
|
26
24
|
export * from './OAuthClientListItem';
|
|
27
25
|
export * from './OAuthClientPublicKey';
|
|
26
|
+
export * from './OAuthClientUpdated';
|
|
28
27
|
export * from './Organization';
|
|
29
28
|
export * from './OrganizationApplicableServiceProfiles';
|
|
30
29
|
export * from './OrganizationCreated';
|
|
@@ -64,6 +63,7 @@ export * from './SetPasswordByConfirmationHashPayload';
|
|
|
64
63
|
export * from './SetUserAccountPasswordPayload';
|
|
65
64
|
export * from './SsoProvider';
|
|
66
65
|
export * from './SsoToken';
|
|
66
|
+
export * from './UpdateOAuthClientPayload';
|
|
67
67
|
export * from './UpdateOwnerOrganizationPayload';
|
|
68
68
|
export * from './UpdateParentOrganizationPayload';
|
|
69
69
|
export * from './UpdateUserAccountPayload';
|
|
@@ -1,107 +0,0 @@
|
|
|
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
|
-
import type { OAuthClientPublicKey } from './OAuthClientPublicKey';
|
|
13
|
-
/**
|
|
14
|
-
* A request to create or update an oauth client
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateOrUpdateOAuthClientPayload
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateOrUpdateOAuthClientPayload {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
29
|
-
*/
|
|
30
|
-
clientSecret?: string | null;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {boolean}
|
|
34
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
35
|
-
*/
|
|
36
|
-
trusted?: boolean | null;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<string>}
|
|
40
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
41
|
-
*/
|
|
42
|
-
audiences?: Array<string> | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Array<string>}
|
|
46
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
47
|
-
*/
|
|
48
|
-
redirectUris?: Array<string> | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Array<string>}
|
|
52
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
53
|
-
*/
|
|
54
|
-
grantTypes?: Array<string> | null;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Array<string>}
|
|
58
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
59
|
-
*/
|
|
60
|
-
scopes?: Array<string> | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
65
|
-
*/
|
|
66
|
-
jwksUri?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {OAuthClientPublicKey}
|
|
70
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
71
|
-
*/
|
|
72
|
-
publicKey?: OAuthClientPublicKey | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {boolean}
|
|
76
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
77
|
-
*/
|
|
78
|
-
serviceAccount?: boolean | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {boolean}
|
|
82
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
83
|
-
*/
|
|
84
|
-
serviceAccountDelegation?: boolean | null;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {{ [key: string]: any; }}
|
|
88
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
89
|
-
*/
|
|
90
|
-
additionalTokenFields?: {
|
|
91
|
-
[key: string]: any;
|
|
92
|
-
} | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {string}
|
|
96
|
-
* @memberof CreateOrUpdateOAuthClientPayload
|
|
97
|
-
*/
|
|
98
|
-
ssoProvider?: string | null;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Check if a given object implements the CreateOrUpdateOAuthClientPayload interface.
|
|
102
|
-
*/
|
|
103
|
-
export declare function instanceOfCreateOrUpdateOAuthClientPayload(value: object): value is CreateOrUpdateOAuthClientPayload;
|
|
104
|
-
export declare function CreateOrUpdateOAuthClientPayloadFromJSON(json: any): CreateOrUpdateOAuthClientPayload;
|
|
105
|
-
export declare function CreateOrUpdateOAuthClientPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrUpdateOAuthClientPayload;
|
|
106
|
-
export declare function CreateOrUpdateOAuthClientPayloadToJSON(json: any): CreateOrUpdateOAuthClientPayload;
|
|
107
|
-
export declare function CreateOrUpdateOAuthClientPayloadToJSONTyped(value?: CreateOrUpdateOAuthClientPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,32 +0,0 @@
|
|
|
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 created oauth client
|
|
14
|
-
* @export
|
|
15
|
-
* @interface OAuthClientCreated
|
|
16
|
-
*/
|
|
17
|
-
export interface OAuthClientCreated {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OAuthClientCreated
|
|
22
|
-
*/
|
|
23
|
-
clientId: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the OAuthClientCreated interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfOAuthClientCreated(value: object): value is OAuthClientCreated;
|
|
29
|
-
export declare function OAuthClientCreatedFromJSON(json: any): OAuthClientCreated;
|
|
30
|
-
export declare function OAuthClientCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientCreated;
|
|
31
|
-
export declare function OAuthClientCreatedToJSON(json: any): OAuthClientCreated;
|
|
32
|
-
export declare function OAuthClientCreatedToJSONTyped(value?: OAuthClientCreated | null, ignoreDiscriminator?: boolean): any;
|