@taico/client 0.2.17 → 0.3.0
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/dist/contracts/types.d.ts +297 -2
- package/dist/src/v1/client/index.d.ts +5 -0
- package/dist/src/v1/client/index.js +2 -0
- package/dist/src/v1/client/models/AccountSetupStatusRequestDto.d.ts +6 -0
- package/dist/src/v1/client/models/AccountSetupStatusRequestDto.js +1 -0
- package/dist/src/v1/client/models/AccountSetupStatusResponseDto.d.ts +10 -0
- package/dist/src/v1/client/models/AccountSetupStatusResponseDto.js +1 -0
- package/dist/src/v1/client/models/CreateManagedUserRequestDto.d.ts +19 -0
- package/dist/src/v1/client/models/CreateManagedUserRequestDto.js +11 -0
- package/dist/src/v1/client/models/ManagedUserResponseDto.d.ts +51 -0
- package/dist/src/v1/client/models/ManagedUserResponseDto.js +11 -0
- package/dist/src/v1/client/models/SetupManagedUserRequestDto.d.ts +18 -0
- package/dist/src/v1/client/models/SetupManagedUserRequestDto.js +1 -0
- package/dist/src/v1/client/models/TaskListResponseDto.d.ts +2 -2
- package/dist/src/v1/client/services/WebAuthenticationService.d.ts +46 -0
- package/dist/src/v1/client/services/WebAuthenticationService.js +83 -0
- package/dist/src/v2/types.d.ts +29 -0
- package/dist/src/v2/web-authentication-resource.d.ts +30 -1
- package/dist/src/v2/web-authentication-resource.js +24 -0
- package/package.json +2 -2
|
@@ -381,6 +381,92 @@ export interface paths {
|
|
|
381
381
|
patch?: never;
|
|
382
382
|
trace?: never;
|
|
383
383
|
};
|
|
384
|
+
"/api/v1/auth/users": {
|
|
385
|
+
parameters: {
|
|
386
|
+
query?: never;
|
|
387
|
+
header?: never;
|
|
388
|
+
path?: never;
|
|
389
|
+
cookie?: never;
|
|
390
|
+
};
|
|
391
|
+
/** List human users for admin user management */
|
|
392
|
+
get: operations["WebAuthController_listUsers"];
|
|
393
|
+
put?: never;
|
|
394
|
+
/** Create an invited human user */
|
|
395
|
+
post: operations["WebAuthController_createUser"];
|
|
396
|
+
delete?: never;
|
|
397
|
+
options?: never;
|
|
398
|
+
head?: never;
|
|
399
|
+
patch?: never;
|
|
400
|
+
trace?: never;
|
|
401
|
+
};
|
|
402
|
+
"/api/v1/auth/users/{userId}/reset-password": {
|
|
403
|
+
parameters: {
|
|
404
|
+
query?: never;
|
|
405
|
+
header?: never;
|
|
406
|
+
path?: never;
|
|
407
|
+
cookie?: never;
|
|
408
|
+
};
|
|
409
|
+
get?: never;
|
|
410
|
+
put?: never;
|
|
411
|
+
/** Reset a managed user password so they can set a new one */
|
|
412
|
+
post: operations["WebAuthController_resetUserPassword"];
|
|
413
|
+
delete?: never;
|
|
414
|
+
options?: never;
|
|
415
|
+
head?: never;
|
|
416
|
+
patch?: never;
|
|
417
|
+
trace?: never;
|
|
418
|
+
};
|
|
419
|
+
"/api/v1/auth/users/{userId}": {
|
|
420
|
+
parameters: {
|
|
421
|
+
query?: never;
|
|
422
|
+
header?: never;
|
|
423
|
+
path?: never;
|
|
424
|
+
cookie?: never;
|
|
425
|
+
};
|
|
426
|
+
get?: never;
|
|
427
|
+
put?: never;
|
|
428
|
+
post?: never;
|
|
429
|
+
/** Deactivate a managed user */
|
|
430
|
+
delete: operations["WebAuthController_deleteUser"];
|
|
431
|
+
options?: never;
|
|
432
|
+
head?: never;
|
|
433
|
+
patch?: never;
|
|
434
|
+
trace?: never;
|
|
435
|
+
};
|
|
436
|
+
"/api/v1/auth/account-setup-status": {
|
|
437
|
+
parameters: {
|
|
438
|
+
query?: never;
|
|
439
|
+
header?: never;
|
|
440
|
+
path?: never;
|
|
441
|
+
cookie?: never;
|
|
442
|
+
};
|
|
443
|
+
get?: never;
|
|
444
|
+
put?: never;
|
|
445
|
+
/** Check whether an invited or reset account can be set up */
|
|
446
|
+
post: operations["WebAuthController_getAccountSetupStatus"];
|
|
447
|
+
delete?: never;
|
|
448
|
+
options?: never;
|
|
449
|
+
head?: never;
|
|
450
|
+
patch?: never;
|
|
451
|
+
trace?: never;
|
|
452
|
+
};
|
|
453
|
+
"/api/v1/auth/setup-account": {
|
|
454
|
+
parameters: {
|
|
455
|
+
query?: never;
|
|
456
|
+
header?: never;
|
|
457
|
+
path?: never;
|
|
458
|
+
cookie?: never;
|
|
459
|
+
};
|
|
460
|
+
get?: never;
|
|
461
|
+
put?: never;
|
|
462
|
+
/** Set up an invited or reset account and log in */
|
|
463
|
+
post: operations["WebAuthController_setupAccount"];
|
|
464
|
+
delete?: never;
|
|
465
|
+
options?: never;
|
|
466
|
+
head?: never;
|
|
467
|
+
patch?: never;
|
|
468
|
+
trace?: never;
|
|
469
|
+
};
|
|
384
470
|
"/api/v1/auth/refresh": {
|
|
385
471
|
parameters: {
|
|
386
472
|
query?: never;
|
|
@@ -2749,6 +2835,85 @@ export interface components {
|
|
|
2749
2835
|
*/
|
|
2750
2836
|
expiresIn: number;
|
|
2751
2837
|
};
|
|
2838
|
+
ManagedUserResponseDto: {
|
|
2839
|
+
/** @description User ID */
|
|
2840
|
+
id: string;
|
|
2841
|
+
/** @description User email address */
|
|
2842
|
+
email: string;
|
|
2843
|
+
/** @description Display name from the associated human actor */
|
|
2844
|
+
displayName: string;
|
|
2845
|
+
/** @description Actor slug/username */
|
|
2846
|
+
slug: string;
|
|
2847
|
+
/** @description Actor ID associated with this user */
|
|
2848
|
+
actorId: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* @description User role
|
|
2851
|
+
* @enum {string}
|
|
2852
|
+
*/
|
|
2853
|
+
role: "admin" | "standard";
|
|
2854
|
+
/** @description Whether this user can currently sign in */
|
|
2855
|
+
isActive: boolean;
|
|
2856
|
+
/** @description Whether this user still needs to set a password */
|
|
2857
|
+
passwordSetupPending: boolean;
|
|
2858
|
+
/**
|
|
2859
|
+
* Format: date-time
|
|
2860
|
+
* @description Creation timestamp
|
|
2861
|
+
*/
|
|
2862
|
+
createdAt: string;
|
|
2863
|
+
/**
|
|
2864
|
+
* Format: date-time
|
|
2865
|
+
* @description Last update timestamp
|
|
2866
|
+
*/
|
|
2867
|
+
updatedAt: string;
|
|
2868
|
+
};
|
|
2869
|
+
CreateManagedUserRequestDto: {
|
|
2870
|
+
/**
|
|
2871
|
+
* @description Email address to invite
|
|
2872
|
+
* @example user@example.com
|
|
2873
|
+
*/
|
|
2874
|
+
email: string;
|
|
2875
|
+
/**
|
|
2876
|
+
* @description Role for the new user
|
|
2877
|
+
* @example standard
|
|
2878
|
+
* @enum {string}
|
|
2879
|
+
*/
|
|
2880
|
+
role: "admin" | "standard";
|
|
2881
|
+
};
|
|
2882
|
+
AccountSetupStatusRequestDto: {
|
|
2883
|
+
/**
|
|
2884
|
+
* @description Email address to check
|
|
2885
|
+
* @example user@example.com
|
|
2886
|
+
*/
|
|
2887
|
+
email: string;
|
|
2888
|
+
};
|
|
2889
|
+
AccountSetupStatusResponseDto: {
|
|
2890
|
+
/** @description Normalized email address */
|
|
2891
|
+
email: string;
|
|
2892
|
+
/** @description Whether an invited or reset account can be set up */
|
|
2893
|
+
canSetup: boolean;
|
|
2894
|
+
};
|
|
2895
|
+
SetupManagedUserRequestDto: {
|
|
2896
|
+
/**
|
|
2897
|
+
* @description Invited or reset account email address
|
|
2898
|
+
* @example user@example.com
|
|
2899
|
+
*/
|
|
2900
|
+
email: string;
|
|
2901
|
+
/**
|
|
2902
|
+
* @description Display name for the user
|
|
2903
|
+
* @example Jane User
|
|
2904
|
+
*/
|
|
2905
|
+
displayName: string;
|
|
2906
|
+
/**
|
|
2907
|
+
* @description Slug/username for the user
|
|
2908
|
+
* @example jane
|
|
2909
|
+
*/
|
|
2910
|
+
slug: string;
|
|
2911
|
+
/**
|
|
2912
|
+
* @description New password for the account
|
|
2913
|
+
* @example securepassword123
|
|
2914
|
+
*/
|
|
2915
|
+
password: string;
|
|
2916
|
+
};
|
|
2752
2917
|
ChangePasswordRequestDto: {
|
|
2753
2918
|
/**
|
|
2754
2919
|
* @description Current password
|
|
@@ -3670,12 +3835,12 @@ export interface components {
|
|
|
3670
3835
|
*/
|
|
3671
3836
|
page: number;
|
|
3672
3837
|
/**
|
|
3673
|
-
* @description Number of items per page
|
|
3838
|
+
* @description Number of items per status per page when no status filter is provided
|
|
3674
3839
|
* @example 20
|
|
3675
3840
|
*/
|
|
3676
3841
|
limit: number;
|
|
3677
3842
|
/**
|
|
3678
|
-
* @description Total number of pages
|
|
3843
|
+
* @description Total number of pages based on the largest matching status bucket
|
|
3679
3844
|
* @example 3
|
|
3680
3845
|
*/
|
|
3681
3846
|
totalPages: number;
|
|
@@ -6819,6 +6984,136 @@ export interface operations {
|
|
|
6819
6984
|
};
|
|
6820
6985
|
};
|
|
6821
6986
|
};
|
|
6987
|
+
WebAuthController_listUsers: {
|
|
6988
|
+
parameters: {
|
|
6989
|
+
query?: never;
|
|
6990
|
+
header?: never;
|
|
6991
|
+
path?: never;
|
|
6992
|
+
cookie?: never;
|
|
6993
|
+
};
|
|
6994
|
+
requestBody?: never;
|
|
6995
|
+
responses: {
|
|
6996
|
+
200: {
|
|
6997
|
+
headers: {
|
|
6998
|
+
[name: string]: unknown;
|
|
6999
|
+
};
|
|
7000
|
+
content: {
|
|
7001
|
+
"application/json": components["schemas"]["ManagedUserResponseDto"][];
|
|
7002
|
+
};
|
|
7003
|
+
};
|
|
7004
|
+
};
|
|
7005
|
+
};
|
|
7006
|
+
WebAuthController_createUser: {
|
|
7007
|
+
parameters: {
|
|
7008
|
+
query?: never;
|
|
7009
|
+
header?: never;
|
|
7010
|
+
path?: never;
|
|
7011
|
+
cookie?: never;
|
|
7012
|
+
};
|
|
7013
|
+
requestBody: {
|
|
7014
|
+
content: {
|
|
7015
|
+
"application/json": components["schemas"]["CreateManagedUserRequestDto"];
|
|
7016
|
+
};
|
|
7017
|
+
};
|
|
7018
|
+
responses: {
|
|
7019
|
+
201: {
|
|
7020
|
+
headers: {
|
|
7021
|
+
[name: string]: unknown;
|
|
7022
|
+
};
|
|
7023
|
+
content: {
|
|
7024
|
+
"application/json": components["schemas"]["ManagedUserResponseDto"];
|
|
7025
|
+
};
|
|
7026
|
+
};
|
|
7027
|
+
};
|
|
7028
|
+
};
|
|
7029
|
+
WebAuthController_resetUserPassword: {
|
|
7030
|
+
parameters: {
|
|
7031
|
+
query?: never;
|
|
7032
|
+
header?: never;
|
|
7033
|
+
path: {
|
|
7034
|
+
userId: string;
|
|
7035
|
+
};
|
|
7036
|
+
cookie?: never;
|
|
7037
|
+
};
|
|
7038
|
+
requestBody?: never;
|
|
7039
|
+
responses: {
|
|
7040
|
+
200: {
|
|
7041
|
+
headers: {
|
|
7042
|
+
[name: string]: unknown;
|
|
7043
|
+
};
|
|
7044
|
+
content: {
|
|
7045
|
+
"application/json": components["schemas"]["ManagedUserResponseDto"];
|
|
7046
|
+
};
|
|
7047
|
+
};
|
|
7048
|
+
};
|
|
7049
|
+
};
|
|
7050
|
+
WebAuthController_deleteUser: {
|
|
7051
|
+
parameters: {
|
|
7052
|
+
query?: never;
|
|
7053
|
+
header?: never;
|
|
7054
|
+
path: {
|
|
7055
|
+
userId: string;
|
|
7056
|
+
};
|
|
7057
|
+
cookie?: never;
|
|
7058
|
+
};
|
|
7059
|
+
requestBody?: never;
|
|
7060
|
+
responses: {
|
|
7061
|
+
200: {
|
|
7062
|
+
headers: {
|
|
7063
|
+
[name: string]: unknown;
|
|
7064
|
+
};
|
|
7065
|
+
content: {
|
|
7066
|
+
"application/json": components["schemas"]["ManagedUserResponseDto"];
|
|
7067
|
+
};
|
|
7068
|
+
};
|
|
7069
|
+
};
|
|
7070
|
+
};
|
|
7071
|
+
WebAuthController_getAccountSetupStatus: {
|
|
7072
|
+
parameters: {
|
|
7073
|
+
query?: never;
|
|
7074
|
+
header?: never;
|
|
7075
|
+
path?: never;
|
|
7076
|
+
cookie?: never;
|
|
7077
|
+
};
|
|
7078
|
+
requestBody: {
|
|
7079
|
+
content: {
|
|
7080
|
+
"application/json": components["schemas"]["AccountSetupStatusRequestDto"];
|
|
7081
|
+
};
|
|
7082
|
+
};
|
|
7083
|
+
responses: {
|
|
7084
|
+
200: {
|
|
7085
|
+
headers: {
|
|
7086
|
+
[name: string]: unknown;
|
|
7087
|
+
};
|
|
7088
|
+
content: {
|
|
7089
|
+
"application/json": components["schemas"]["AccountSetupStatusResponseDto"];
|
|
7090
|
+
};
|
|
7091
|
+
};
|
|
7092
|
+
};
|
|
7093
|
+
};
|
|
7094
|
+
WebAuthController_setupAccount: {
|
|
7095
|
+
parameters: {
|
|
7096
|
+
query?: never;
|
|
7097
|
+
header?: never;
|
|
7098
|
+
path?: never;
|
|
7099
|
+
cookie?: never;
|
|
7100
|
+
};
|
|
7101
|
+
requestBody: {
|
|
7102
|
+
content: {
|
|
7103
|
+
"application/json": components["schemas"]["SetupManagedUserRequestDto"];
|
|
7104
|
+
};
|
|
7105
|
+
};
|
|
7106
|
+
responses: {
|
|
7107
|
+
200: {
|
|
7108
|
+
headers: {
|
|
7109
|
+
[name: string]: unknown;
|
|
7110
|
+
};
|
|
7111
|
+
content: {
|
|
7112
|
+
"application/json": components["schemas"]["LoginResponseDto"];
|
|
7113
|
+
};
|
|
7114
|
+
};
|
|
7115
|
+
};
|
|
7116
|
+
};
|
|
6822
7117
|
WebAuthController_refresh: {
|
|
6823
7118
|
parameters: {
|
|
6824
7119
|
query?: never;
|
|
@@ -2,6 +2,8 @@ export { ApiError } from './core/ApiError.js';
|
|
|
2
2
|
export { CancelablePromise, CancelError } from './core/CancelablePromise.js';
|
|
3
3
|
export { OpenAPI } from './core/OpenAPI.js';
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI.js';
|
|
5
|
+
export type { AccountSetupStatusRequestDto } from './models/AccountSetupStatusRequestDto.js';
|
|
6
|
+
export type { AccountSetupStatusResponseDto } from './models/AccountSetupStatusResponseDto.js';
|
|
5
7
|
export type { ActiveTaskExecutionListResponseDto } from './models/ActiveTaskExecutionListResponseDto.js';
|
|
6
8
|
export { ActiveTaskExecutionResponseDto } from './models/ActiveTaskExecutionResponseDto.js';
|
|
7
9
|
export type { ActiveTaskExecutionTagSnapshotResponseDto } from './models/ActiveTaskExecutionTagSnapshotResponseDto.js';
|
|
@@ -51,6 +53,7 @@ export { CreateChatProviderDto } from './models/CreateChatProviderDto.js';
|
|
|
51
53
|
export type { CreateCommentDto } from './models/CreateCommentDto.js';
|
|
52
54
|
export type { CreateConnectionDto } from './models/CreateConnectionDto.js';
|
|
53
55
|
export type { CreateInputRequestDto } from './models/CreateInputRequestDto.js';
|
|
56
|
+
export { CreateManagedUserRequestDto } from './models/CreateManagedUserRequestDto.js';
|
|
54
57
|
export type { CreateMappingDto } from './models/CreateMappingDto.js';
|
|
55
58
|
export type { CreateProjectDto } from './models/CreateProjectDto.js';
|
|
56
59
|
export type { CreateScheduledTaskDto } from './models/CreateScheduledTaskDto.js';
|
|
@@ -83,6 +86,7 @@ export type { JwksResponseDto } from './models/JwksResponseDto.js';
|
|
|
83
86
|
export type { ListThreadMessagesResponseDto } from './models/ListThreadMessagesResponseDto.js';
|
|
84
87
|
export type { LoginRequestDto } from './models/LoginRequestDto.js';
|
|
85
88
|
export type { LoginResponseDto } from './models/LoginResponseDto.js';
|
|
89
|
+
export { ManagedUserResponseDto } from './models/ManagedUserResponseDto.js';
|
|
86
90
|
export type { MappingResponseDto } from './models/MappingResponseDto.js';
|
|
87
91
|
export { McpFlowResponseDto } from './models/McpFlowResponseDto.js';
|
|
88
92
|
export type { MetaTagResponseDto } from './models/MetaTagResponseDto.js';
|
|
@@ -107,6 +111,7 @@ export type { SecretValueResponseDto } from './models/SecretValueResponseDto.js'
|
|
|
107
111
|
export type { ServerListResponseDto } from './models/ServerListResponseDto.js';
|
|
108
112
|
export { ServerResponseDto } from './models/ServerResponseDto.js';
|
|
109
113
|
export type { SetActiveChatProviderDto } from './models/SetActiveChatProviderDto.js';
|
|
114
|
+
export type { SetupManagedUserRequestDto } from './models/SetupManagedUserRequestDto.js';
|
|
110
115
|
export { StopActiveTaskExecutionDto } from './models/StopActiveTaskExecutionDto.js';
|
|
111
116
|
export type { TagResponseDto } from './models/TagResponseDto.js';
|
|
112
117
|
export type { TaskBlueprintListResponseDto } from './models/TaskBlueprintListResponseDto.js';
|
|
@@ -18,11 +18,13 @@ export { ClientRegistrationResponseDto } from './models/ClientRegistrationRespon
|
|
|
18
18
|
export { ConnectionFlowResponseDto } from './models/ConnectionFlowResponseDto.js';
|
|
19
19
|
export { CreateAgentDto } from './models/CreateAgentDto.js';
|
|
20
20
|
export { CreateChatProviderDto } from './models/CreateChatProviderDto.js';
|
|
21
|
+
export { CreateManagedUserRequestDto } from './models/CreateManagedUserRequestDto.js';
|
|
21
22
|
export { CreateServerDto } from './models/CreateServerDto.js';
|
|
22
23
|
export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
|
|
23
24
|
export { GlobalSearchResultDto } from './models/GlobalSearchResultDto.js';
|
|
24
25
|
export { IntrospectTokenRequestDto } from './models/IntrospectTokenRequestDto.js';
|
|
25
26
|
export { IntrospectTokenResponseDto } from './models/IntrospectTokenResponseDto.js';
|
|
27
|
+
export { ManagedUserResponseDto } from './models/ManagedUserResponseDto.js';
|
|
26
28
|
export { McpFlowResponseDto } from './models/McpFlowResponseDto.js';
|
|
27
29
|
export { PatchAgentDto } from './models/PatchAgentDto.js';
|
|
28
30
|
export { RegisterClientDto } from './models/RegisterClientDto.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CreateManagedUserRequestDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Email address to invite
|
|
4
|
+
*/
|
|
5
|
+
email: string;
|
|
6
|
+
/**
|
|
7
|
+
* Role for the new user
|
|
8
|
+
*/
|
|
9
|
+
role: CreateManagedUserRequestDto.role;
|
|
10
|
+
};
|
|
11
|
+
export declare namespace CreateManagedUserRequestDto {
|
|
12
|
+
/**
|
|
13
|
+
* Role for the new user
|
|
14
|
+
*/
|
|
15
|
+
enum role {
|
|
16
|
+
ADMIN = "admin",
|
|
17
|
+
STANDARD = "standard"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var CreateManagedUserRequestDto;
|
|
2
|
+
(function (CreateManagedUserRequestDto) {
|
|
3
|
+
/**
|
|
4
|
+
* Role for the new user
|
|
5
|
+
*/
|
|
6
|
+
let role;
|
|
7
|
+
(function (role) {
|
|
8
|
+
role["ADMIN"] = "admin";
|
|
9
|
+
role["STANDARD"] = "standard";
|
|
10
|
+
})(role = CreateManagedUserRequestDto.role || (CreateManagedUserRequestDto.role = {}));
|
|
11
|
+
})(CreateManagedUserRequestDto || (CreateManagedUserRequestDto = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type ManagedUserResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* User ID
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* User email address
|
|
8
|
+
*/
|
|
9
|
+
email: string;
|
|
10
|
+
/**
|
|
11
|
+
* Display name from the associated human actor
|
|
12
|
+
*/
|
|
13
|
+
displayName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Actor slug/username
|
|
16
|
+
*/
|
|
17
|
+
slug: string;
|
|
18
|
+
/**
|
|
19
|
+
* Actor ID associated with this user
|
|
20
|
+
*/
|
|
21
|
+
actorId: string;
|
|
22
|
+
/**
|
|
23
|
+
* User role
|
|
24
|
+
*/
|
|
25
|
+
role: ManagedUserResponseDto.role;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this user can currently sign in
|
|
28
|
+
*/
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this user still needs to set a password
|
|
32
|
+
*/
|
|
33
|
+
passwordSetupPending: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Creation timestamp
|
|
36
|
+
*/
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/**
|
|
39
|
+
* Last update timestamp
|
|
40
|
+
*/
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
};
|
|
43
|
+
export declare namespace ManagedUserResponseDto {
|
|
44
|
+
/**
|
|
45
|
+
* User role
|
|
46
|
+
*/
|
|
47
|
+
enum role {
|
|
48
|
+
ADMIN = "admin",
|
|
49
|
+
STANDARD = "standard"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var ManagedUserResponseDto;
|
|
2
|
+
(function (ManagedUserResponseDto) {
|
|
3
|
+
/**
|
|
4
|
+
* User role
|
|
5
|
+
*/
|
|
6
|
+
let role;
|
|
7
|
+
(function (role) {
|
|
8
|
+
role["ADMIN"] = "admin";
|
|
9
|
+
role["STANDARD"] = "standard";
|
|
10
|
+
})(role = ManagedUserResponseDto.role || (ManagedUserResponseDto.role = {}));
|
|
11
|
+
})(ManagedUserResponseDto || (ManagedUserResponseDto = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SetupManagedUserRequestDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Invited or reset account email address
|
|
4
|
+
*/
|
|
5
|
+
email: string;
|
|
6
|
+
/**
|
|
7
|
+
* Display name for the user
|
|
8
|
+
*/
|
|
9
|
+
displayName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Slug/username for the user
|
|
12
|
+
*/
|
|
13
|
+
slug: string;
|
|
14
|
+
/**
|
|
15
|
+
* New password for the account
|
|
16
|
+
*/
|
|
17
|
+
password: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,11 +13,11 @@ export type TaskListResponseDto = {
|
|
|
13
13
|
*/
|
|
14
14
|
page: number;
|
|
15
15
|
/**
|
|
16
|
-
* Number of items per page
|
|
16
|
+
* Number of items per status per page when no status filter is provided
|
|
17
17
|
*/
|
|
18
18
|
limit: number;
|
|
19
19
|
/**
|
|
20
|
-
* Total number of pages
|
|
20
|
+
* Total number of pages based on the largest matching status bucket
|
|
21
21
|
*/
|
|
22
22
|
totalPages: number;
|
|
23
23
|
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import type { AccountSetupStatusRequestDto } from '../models/AccountSetupStatusRequestDto.js';
|
|
2
|
+
import type { AccountSetupStatusResponseDto } from '../models/AccountSetupStatusResponseDto.js';
|
|
1
3
|
import type { ChangePasswordRequestDto } from '../models/ChangePasswordRequestDto.js';
|
|
4
|
+
import type { CreateManagedUserRequestDto } from '../models/CreateManagedUserRequestDto.js';
|
|
2
5
|
import type { LoginRequestDto } from '../models/LoginRequestDto.js';
|
|
3
6
|
import type { LoginResponseDto } from '../models/LoginResponseDto.js';
|
|
7
|
+
import type { ManagedUserResponseDto } from '../models/ManagedUserResponseDto.js';
|
|
4
8
|
import type { OnboardingRequestDto } from '../models/OnboardingRequestDto.js';
|
|
5
9
|
import type { OnboardingStatusResponseDto } from '../models/OnboardingStatusResponseDto.js';
|
|
10
|
+
import type { SetupManagedUserRequestDto } from '../models/SetupManagedUserRequestDto.js';
|
|
6
11
|
import type { UserResponseDto } from '../models/UserResponseDto.js';
|
|
7
12
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
13
|
import type { OpenAPIConfig } from '../core/OpenAPI.js';
|
|
@@ -14,6 +19,47 @@ export declare class WebAuthenticationService {
|
|
|
14
19
|
* @throws ApiError
|
|
15
20
|
*/
|
|
16
21
|
static webAuthControllerLogin(requestBody: LoginRequestDto, config?: OpenAPIConfig): CancelablePromise<LoginResponseDto>;
|
|
22
|
+
/**
|
|
23
|
+
* List human users for admin user management
|
|
24
|
+
* @returns ManagedUserResponseDto
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static webAuthControllerListUsers(config?: OpenAPIConfig): CancelablePromise<Array<ManagedUserResponseDto>>;
|
|
28
|
+
/**
|
|
29
|
+
* Create an invited human user
|
|
30
|
+
* @param requestBody
|
|
31
|
+
* @returns ManagedUserResponseDto
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static webAuthControllerCreateUser(requestBody: CreateManagedUserRequestDto, config?: OpenAPIConfig): CancelablePromise<ManagedUserResponseDto>;
|
|
35
|
+
/**
|
|
36
|
+
* Reset a managed user password so they can set a new one
|
|
37
|
+
* @param userId
|
|
38
|
+
* @returns ManagedUserResponseDto
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static webAuthControllerResetUserPassword(userId: string, config?: OpenAPIConfig): CancelablePromise<ManagedUserResponseDto>;
|
|
42
|
+
/**
|
|
43
|
+
* Deactivate a managed user
|
|
44
|
+
* @param userId
|
|
45
|
+
* @returns ManagedUserResponseDto
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static webAuthControllerDeleteUser(userId: string, config?: OpenAPIConfig): CancelablePromise<ManagedUserResponseDto>;
|
|
49
|
+
/**
|
|
50
|
+
* Check whether an invited or reset account can be set up
|
|
51
|
+
* @param requestBody
|
|
52
|
+
* @returns AccountSetupStatusResponseDto
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
static webAuthControllerGetAccountSetupStatus(requestBody: AccountSetupStatusRequestDto, config?: OpenAPIConfig): CancelablePromise<AccountSetupStatusResponseDto>;
|
|
56
|
+
/**
|
|
57
|
+
* Set up an invited or reset account and log in
|
|
58
|
+
* @param requestBody
|
|
59
|
+
* @returns LoginResponseDto
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
static webAuthControllerSetupAccount(requestBody: SetupManagedUserRequestDto, config?: OpenAPIConfig): CancelablePromise<LoginResponseDto>;
|
|
17
63
|
/**
|
|
18
64
|
* Refresh access token using refresh token
|
|
19
65
|
* @returns LoginResponseDto Token refreshed successfully, new tokens set in cookies
|
|
@@ -18,6 +18,89 @@ export class WebAuthenticationService {
|
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* List human users for admin user management
|
|
23
|
+
* @returns ManagedUserResponseDto
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static webAuthControllerListUsers(config = OpenAPI) {
|
|
27
|
+
return __request(config, {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
url: '/api/v1/auth/users',
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create an invited human user
|
|
34
|
+
* @param requestBody
|
|
35
|
+
* @returns ManagedUserResponseDto
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static webAuthControllerCreateUser(requestBody, config = OpenAPI) {
|
|
39
|
+
return __request(config, {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: '/api/v1/auth/users',
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Reset a managed user password so they can set a new one
|
|
48
|
+
* @param userId
|
|
49
|
+
* @returns ManagedUserResponseDto
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static webAuthControllerResetUserPassword(userId, config = OpenAPI) {
|
|
53
|
+
return __request(config, {
|
|
54
|
+
method: 'POST',
|
|
55
|
+
url: '/api/v1/auth/users/{userId}/reset-password',
|
|
56
|
+
path: {
|
|
57
|
+
'userId': userId,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Deactivate a managed user
|
|
63
|
+
* @param userId
|
|
64
|
+
* @returns ManagedUserResponseDto
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
static webAuthControllerDeleteUser(userId, config = OpenAPI) {
|
|
68
|
+
return __request(config, {
|
|
69
|
+
method: 'DELETE',
|
|
70
|
+
url: '/api/v1/auth/users/{userId}',
|
|
71
|
+
path: {
|
|
72
|
+
'userId': userId,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check whether an invited or reset account can be set up
|
|
78
|
+
* @param requestBody
|
|
79
|
+
* @returns AccountSetupStatusResponseDto
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static webAuthControllerGetAccountSetupStatus(requestBody, config = OpenAPI) {
|
|
83
|
+
return __request(config, {
|
|
84
|
+
method: 'POST',
|
|
85
|
+
url: '/api/v1/auth/account-setup-status',
|
|
86
|
+
body: requestBody,
|
|
87
|
+
mediaType: 'application/json',
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Set up an invited or reset account and log in
|
|
92
|
+
* @param requestBody
|
|
93
|
+
* @returns LoginResponseDto
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static webAuthControllerSetupAccount(requestBody, config = OpenAPI) {
|
|
97
|
+
return __request(config, {
|
|
98
|
+
method: 'POST',
|
|
99
|
+
url: '/api/v1/auth/setup-account',
|
|
100
|
+
body: requestBody,
|
|
101
|
+
mediaType: 'application/json',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
21
104
|
/**
|
|
22
105
|
* Refresh access token using refresh token
|
|
23
106
|
* @returns LoginResponseDto Token refreshed successfully, new tokens set in cookies
|
package/dist/src/v2/types.d.ts
CHANGED
|
@@ -158,6 +158,35 @@ export interface LoginResponseDto {
|
|
|
158
158
|
user: UserResponseDto;
|
|
159
159
|
expiresIn: number;
|
|
160
160
|
}
|
|
161
|
+
export interface ManagedUserResponseDto {
|
|
162
|
+
id: string;
|
|
163
|
+
email: string;
|
|
164
|
+
displayName: string;
|
|
165
|
+
slug: string;
|
|
166
|
+
actorId: string;
|
|
167
|
+
role: 'admin' | 'standard';
|
|
168
|
+
isActive: boolean;
|
|
169
|
+
passwordSetupPending: boolean;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
updatedAt: string;
|
|
172
|
+
}
|
|
173
|
+
export interface CreateManagedUserRequestDto {
|
|
174
|
+
email: string;
|
|
175
|
+
role: 'admin' | 'standard';
|
|
176
|
+
}
|
|
177
|
+
export interface AccountSetupStatusRequestDto {
|
|
178
|
+
email: string;
|
|
179
|
+
}
|
|
180
|
+
export interface AccountSetupStatusResponseDto {
|
|
181
|
+
email: string;
|
|
182
|
+
canSetup: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface SetupManagedUserRequestDto {
|
|
185
|
+
email: string;
|
|
186
|
+
displayName: string;
|
|
187
|
+
slug: string;
|
|
188
|
+
password: string;
|
|
189
|
+
}
|
|
161
190
|
export interface ChangePasswordRequestDto {
|
|
162
191
|
currentPassword: string;
|
|
163
192
|
newPassword: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
-
import type { ChangePasswordRequestDto, LoginRequestDto, LoginResponseDto, OnboardingRequestDto, OnboardingStatusResponseDto, UserResponseDto } from './types.js';
|
|
2
|
+
import type { AccountSetupStatusRequestDto, AccountSetupStatusResponseDto, ChangePasswordRequestDto, CreateManagedUserRequestDto, LoginRequestDto, LoginResponseDto, ManagedUserResponseDto, OnboardingRequestDto, OnboardingStatusResponseDto, SetupManagedUserRequestDto, UserResponseDto } from './types.js';
|
|
3
3
|
export declare class WebAuthenticationResource extends BaseClient {
|
|
4
4
|
constructor(config: ClientConfig);
|
|
5
5
|
/** Login with email and password */
|
|
@@ -7,6 +7,35 @@ export declare class WebAuthenticationResource extends BaseClient {
|
|
|
7
7
|
body: LoginRequestDto;
|
|
8
8
|
signal?: AbortSignal;
|
|
9
9
|
}): Promise<LoginResponseDto>;
|
|
10
|
+
/** List human users for admin user management */
|
|
11
|
+
WebAuthController_listUsers(params?: {
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
}): Promise<ManagedUserResponseDto[]>;
|
|
14
|
+
/** Create an invited human user */
|
|
15
|
+
WebAuthController_createUser(params: {
|
|
16
|
+
body: CreateManagedUserRequestDto;
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
}): Promise<ManagedUserResponseDto>;
|
|
19
|
+
/** Reset a managed user password so they can set a new one */
|
|
20
|
+
WebAuthController_resetUserPassword(params: {
|
|
21
|
+
userId: string;
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
}): Promise<ManagedUserResponseDto>;
|
|
24
|
+
/** Deactivate a managed user */
|
|
25
|
+
WebAuthController_deleteUser(params: {
|
|
26
|
+
userId: string;
|
|
27
|
+
signal?: AbortSignal;
|
|
28
|
+
}): Promise<ManagedUserResponseDto>;
|
|
29
|
+
/** Check whether an invited or reset account can be set up */
|
|
30
|
+
WebAuthController_getAccountSetupStatus(params: {
|
|
31
|
+
body: AccountSetupStatusRequestDto;
|
|
32
|
+
signal?: AbortSignal;
|
|
33
|
+
}): Promise<AccountSetupStatusResponseDto>;
|
|
34
|
+
/** Set up an invited or reset account and log in */
|
|
35
|
+
WebAuthController_setupAccount(params: {
|
|
36
|
+
body: SetupManagedUserRequestDto;
|
|
37
|
+
signal?: AbortSignal;
|
|
38
|
+
}): Promise<LoginResponseDto>;
|
|
10
39
|
/** Refresh access token using refresh token */
|
|
11
40
|
WebAuthController_refresh(params?: {
|
|
12
41
|
signal?: AbortSignal;
|
|
@@ -7,6 +7,30 @@ export class WebAuthenticationResource extends BaseClient {
|
|
|
7
7
|
async WebAuthController_login(params) {
|
|
8
8
|
return this.request('POST', '/api/v1/auth/login', { body: params.body, signal: params?.signal });
|
|
9
9
|
}
|
|
10
|
+
/** List human users for admin user management */
|
|
11
|
+
async WebAuthController_listUsers(params) {
|
|
12
|
+
return this.request('GET', '/api/v1/auth/users', { signal: params?.signal });
|
|
13
|
+
}
|
|
14
|
+
/** Create an invited human user */
|
|
15
|
+
async WebAuthController_createUser(params) {
|
|
16
|
+
return this.request('POST', '/api/v1/auth/users', { body: params.body, signal: params?.signal });
|
|
17
|
+
}
|
|
18
|
+
/** Reset a managed user password so they can set a new one */
|
|
19
|
+
async WebAuthController_resetUserPassword(params) {
|
|
20
|
+
return this.request('POST', `/api/v1/auth/users/${params.userId}/reset-password`, { signal: params?.signal });
|
|
21
|
+
}
|
|
22
|
+
/** Deactivate a managed user */
|
|
23
|
+
async WebAuthController_deleteUser(params) {
|
|
24
|
+
return this.request('DELETE', `/api/v1/auth/users/${params.userId}`, { signal: params?.signal });
|
|
25
|
+
}
|
|
26
|
+
/** Check whether an invited or reset account can be set up */
|
|
27
|
+
async WebAuthController_getAccountSetupStatus(params) {
|
|
28
|
+
return this.request('POST', '/api/v1/auth/account-setup-status', { body: params.body, signal: params?.signal });
|
|
29
|
+
}
|
|
30
|
+
/** Set up an invited or reset account and log in */
|
|
31
|
+
async WebAuthController_setupAccount(params) {
|
|
32
|
+
return this.request('POST', '/api/v1/auth/setup-account', { body: params.body, signal: params?.signal });
|
|
33
|
+
}
|
|
10
34
|
/** Refresh access token using refresh token */
|
|
11
35
|
async WebAuthController_refresh(params) {
|
|
12
36
|
return this.request('POST', '/api/v1/auth/refresh', { signal: params?.signal });
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taico/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "PolyForm-Small-Business-1.0.0",
|
|
7
7
|
"main": "./dist/src/index.js",
|
|
8
8
|
"types": "./dist/src/index.d.ts",
|
|
9
9
|
"files": [
|