@equisoft/account-service-sdk-typescript 10.2.1-snapshot.20251028125925 → 10.2.1-snapshot.20251028170339
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/.tool-versions +1 -1
- package/dist/apis/OAuthApi.d.ts +12 -0
- package/dist/apis/OAuthApi.js +38 -0
- package/dist/esm/apis/OAuthApi.d.ts +12 -0
- package/dist/esm/apis/OAuthApi.js +38 -0
- package/package.json +1 -1
- package/src/apis/OAuthApi.ts +53 -0
package/.tool-versions
CHANGED
package/dist/apis/OAuthApi.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ export interface LoginOAuthClientRequest {
|
|
|
28
28
|
clientId: string;
|
|
29
29
|
oAuthClientLoginPayload: OAuthClientLoginPayload;
|
|
30
30
|
}
|
|
31
|
+
export interface RemoveOAuthClientSecretRequest {
|
|
32
|
+
clientId: string;
|
|
33
|
+
secretUuid: string;
|
|
34
|
+
}
|
|
31
35
|
export interface UpdateOAuthClientRequest {
|
|
32
36
|
clientId: string;
|
|
33
37
|
updateOAuthClientPayload: UpdateOAuthClientPayload;
|
|
@@ -76,6 +80,14 @@ export declare class OAuthApi extends runtime.BaseAPI {
|
|
|
76
80
|
* OAuth Client login
|
|
77
81
|
*/
|
|
78
82
|
loginOAuthClient(requestParameters: LoginOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient>;
|
|
83
|
+
/**
|
|
84
|
+
* Remove a secret from an OAuth client.
|
|
85
|
+
*/
|
|
86
|
+
removeOAuthClientSecretRaw(requestParameters: RemoveOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
|
+
/**
|
|
88
|
+
* Remove a secret from an OAuth client.
|
|
89
|
+
*/
|
|
90
|
+
removeOAuthClientSecret(requestParameters: RemoveOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
79
91
|
/**
|
|
80
92
|
* Update an OAuth client
|
|
81
93
|
*/
|
package/dist/apis/OAuthApi.js
CHANGED
|
@@ -218,6 +218,44 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
218
218
|
return yield response.value();
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Remove a secret from an OAuth client.
|
|
223
|
+
*/
|
|
224
|
+
removeOAuthClientSecretRaw(requestParameters, initOverrides) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
if (requestParameters['clientId'] == null) {
|
|
227
|
+
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling removeOAuthClientSecret().');
|
|
228
|
+
}
|
|
229
|
+
if (requestParameters['secretUuid'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('secretUuid', 'Required parameter "secretUuid" was null or undefined when calling removeOAuthClientSecret().');
|
|
231
|
+
}
|
|
232
|
+
const queryParameters = {};
|
|
233
|
+
const headerParameters = {};
|
|
234
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
235
|
+
// oauth required
|
|
236
|
+
const token = this.configuration.accessToken;
|
|
237
|
+
const tokenString = yield token("OAuth2", ["account:oauthClient"]);
|
|
238
|
+
if (tokenString) {
|
|
239
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const response = yield this.request({
|
|
243
|
+
path: `/oauthClients/{clientId}/secrets/{secretUuid}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"secretUuid"}}`, encodeURIComponent(String(requestParameters['secretUuid']))),
|
|
244
|
+
method: 'DELETE',
|
|
245
|
+
headers: headerParameters,
|
|
246
|
+
query: queryParameters,
|
|
247
|
+
}, initOverrides);
|
|
248
|
+
return new runtime.VoidApiResponse(response);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Remove a secret from an OAuth client.
|
|
253
|
+
*/
|
|
254
|
+
removeOAuthClientSecret(requestParameters, initOverrides) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
yield this.removeOAuthClientSecretRaw(requestParameters, initOverrides);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
221
259
|
/**
|
|
222
260
|
* Update an OAuth client
|
|
223
261
|
*/
|
|
@@ -28,6 +28,10 @@ export interface LoginOAuthClientRequest {
|
|
|
28
28
|
clientId: string;
|
|
29
29
|
oAuthClientLoginPayload: OAuthClientLoginPayload;
|
|
30
30
|
}
|
|
31
|
+
export interface RemoveOAuthClientSecretRequest {
|
|
32
|
+
clientId: string;
|
|
33
|
+
secretUuid: string;
|
|
34
|
+
}
|
|
31
35
|
export interface UpdateOAuthClientRequest {
|
|
32
36
|
clientId: string;
|
|
33
37
|
updateOAuthClientPayload: UpdateOAuthClientPayload;
|
|
@@ -76,6 +80,14 @@ export declare class OAuthApi extends runtime.BaseAPI {
|
|
|
76
80
|
* OAuth Client login
|
|
77
81
|
*/
|
|
78
82
|
loginOAuthClient(requestParameters: LoginOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient>;
|
|
83
|
+
/**
|
|
84
|
+
* Remove a secret from an OAuth client.
|
|
85
|
+
*/
|
|
86
|
+
removeOAuthClientSecretRaw(requestParameters: RemoveOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
|
+
/**
|
|
88
|
+
* Remove a secret from an OAuth client.
|
|
89
|
+
*/
|
|
90
|
+
removeOAuthClientSecret(requestParameters: RemoveOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
79
91
|
/**
|
|
80
92
|
* Update an OAuth client
|
|
81
93
|
*/
|
|
@@ -215,6 +215,44 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
215
215
|
return yield response.value();
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* Remove a secret from an OAuth client.
|
|
220
|
+
*/
|
|
221
|
+
removeOAuthClientSecretRaw(requestParameters, initOverrides) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
if (requestParameters['clientId'] == null) {
|
|
224
|
+
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling removeOAuthClientSecret().');
|
|
225
|
+
}
|
|
226
|
+
if (requestParameters['secretUuid'] == null) {
|
|
227
|
+
throw new runtime.RequiredError('secretUuid', 'Required parameter "secretUuid" was null or undefined when calling removeOAuthClientSecret().');
|
|
228
|
+
}
|
|
229
|
+
const queryParameters = {};
|
|
230
|
+
const headerParameters = {};
|
|
231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
232
|
+
// oauth required
|
|
233
|
+
const token = this.configuration.accessToken;
|
|
234
|
+
const tokenString = yield token("OAuth2", ["account:oauthClient"]);
|
|
235
|
+
if (tokenString) {
|
|
236
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const response = yield this.request({
|
|
240
|
+
path: `/oauthClients/{clientId}/secrets/{secretUuid}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"secretUuid"}}`, encodeURIComponent(String(requestParameters['secretUuid']))),
|
|
241
|
+
method: 'DELETE',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
}, initOverrides);
|
|
245
|
+
return new runtime.VoidApiResponse(response);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Remove a secret from an OAuth client.
|
|
250
|
+
*/
|
|
251
|
+
removeOAuthClientSecret(requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
yield this.removeOAuthClientSecretRaw(requestParameters, initOverrides);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
218
256
|
/**
|
|
219
257
|
* Update an OAuth client
|
|
220
258
|
*/
|
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.20251028170339",
|
|
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
|
@@ -62,6 +62,11 @@ export interface LoginOAuthClientRequest {
|
|
|
62
62
|
oAuthClientLoginPayload: OAuthClientLoginPayload;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
export interface RemoveOAuthClientSecretRequest {
|
|
66
|
+
clientId: string;
|
|
67
|
+
secretUuid: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
65
70
|
export interface UpdateOAuthClientRequest {
|
|
66
71
|
clientId: string;
|
|
67
72
|
updateOAuthClientPayload: UpdateOAuthClientPayload;
|
|
@@ -298,6 +303,54 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
298
303
|
return await response.value();
|
|
299
304
|
}
|
|
300
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Remove a secret from an OAuth client.
|
|
308
|
+
*/
|
|
309
|
+
async removeOAuthClientSecretRaw(requestParameters: RemoveOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
310
|
+
if (requestParameters['clientId'] == null) {
|
|
311
|
+
throw new runtime.RequiredError(
|
|
312
|
+
'clientId',
|
|
313
|
+
'Required parameter "clientId" was null or undefined when calling removeOAuthClientSecret().'
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (requestParameters['secretUuid'] == null) {
|
|
318
|
+
throw new runtime.RequiredError(
|
|
319
|
+
'secretUuid',
|
|
320
|
+
'Required parameter "secretUuid" was null or undefined when calling removeOAuthClientSecret().'
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const queryParameters: any = {};
|
|
325
|
+
|
|
326
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
327
|
+
|
|
328
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
329
|
+
// oauth required
|
|
330
|
+
const token = this.configuration.accessToken;
|
|
331
|
+
const tokenString = await token("OAuth2", ["account:oauthClient"]);
|
|
332
|
+
if (tokenString) {
|
|
333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const response = await this.request({
|
|
338
|
+
path: `/oauthClients/{clientId}/secrets/{secretUuid}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"secretUuid"}}`, encodeURIComponent(String(requestParameters['secretUuid']))),
|
|
339
|
+
method: 'DELETE',
|
|
340
|
+
headers: headerParameters,
|
|
341
|
+
query: queryParameters,
|
|
342
|
+
}, initOverrides);
|
|
343
|
+
|
|
344
|
+
return new runtime.VoidApiResponse(response);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Remove a secret from an OAuth client.
|
|
349
|
+
*/
|
|
350
|
+
async removeOAuthClientSecret(requestParameters: RemoveOAuthClientSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
351
|
+
await this.removeOAuthClientSecretRaw(requestParameters, initOverrides);
|
|
352
|
+
}
|
|
353
|
+
|
|
301
354
|
/**
|
|
302
355
|
* Update an OAuth client
|
|
303
356
|
*/
|