@taico/client 0.0.2 → 0.1.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 +169 -3
- package/dist/src/client/index.d.ts +2 -0
- package/dist/src/client/models/CreateProjectDto.d.ts +1 -1
- package/dist/src/client/models/OnboardingRequestDto.d.ts +18 -0
- package/dist/src/client/models/OnboardingRequestDto.js +1 -0
- package/dist/src/client/models/OnboardingStatusResponseDto.d.ts +6 -0
- package/dist/src/client/models/OnboardingStatusResponseDto.js +1 -0
- package/dist/src/client/models/PatchProjectDto.d.ts +1 -1
- package/dist/src/client/models/UserResponseDto.d.ts +4 -0
- package/dist/src/client/services/AuthorizationServerService.d.ts +2 -2
- package/dist/src/client/services/AuthorizationServerService.js +2 -2
- package/dist/src/client/services/WebAuthenticationService.d.ts +23 -0
- package/dist/src/client/services/WebAuthenticationService.js +42 -0
- package/package.json +1 -1
|
@@ -432,6 +432,57 @@ export interface paths {
|
|
|
432
432
|
patch?: never;
|
|
433
433
|
trace?: never;
|
|
434
434
|
};
|
|
435
|
+
"/api/v1/auth/onboarding-status": {
|
|
436
|
+
parameters: {
|
|
437
|
+
query?: never;
|
|
438
|
+
header?: never;
|
|
439
|
+
path?: never;
|
|
440
|
+
cookie?: never;
|
|
441
|
+
};
|
|
442
|
+
/** Check if system needs onboarding */
|
|
443
|
+
get: operations["WebAuthController_getOnboardingStatus"];
|
|
444
|
+
put?: never;
|
|
445
|
+
post?: never;
|
|
446
|
+
delete?: never;
|
|
447
|
+
options?: never;
|
|
448
|
+
head?: never;
|
|
449
|
+
patch?: never;
|
|
450
|
+
trace?: never;
|
|
451
|
+
};
|
|
452
|
+
"/api/v1/auth/onboard": {
|
|
453
|
+
parameters: {
|
|
454
|
+
query?: never;
|
|
455
|
+
header?: never;
|
|
456
|
+
path?: never;
|
|
457
|
+
cookie?: never;
|
|
458
|
+
};
|
|
459
|
+
get?: never;
|
|
460
|
+
put?: never;
|
|
461
|
+
/** Create first admin user (only works if no admins exist) */
|
|
462
|
+
post: operations["WebAuthController_onboard"];
|
|
463
|
+
delete?: never;
|
|
464
|
+
options?: never;
|
|
465
|
+
head?: never;
|
|
466
|
+
patch?: never;
|
|
467
|
+
trace?: never;
|
|
468
|
+
};
|
|
469
|
+
"/api/v1/auth/mark-walkthrough-seen": {
|
|
470
|
+
parameters: {
|
|
471
|
+
query?: never;
|
|
472
|
+
header?: never;
|
|
473
|
+
path?: never;
|
|
474
|
+
cookie?: never;
|
|
475
|
+
};
|
|
476
|
+
get?: never;
|
|
477
|
+
put?: never;
|
|
478
|
+
/** Mark walkthrough as seen for authenticated user */
|
|
479
|
+
post: operations["WebAuthController_markWalkthroughSeen"];
|
|
480
|
+
delete?: never;
|
|
481
|
+
options?: never;
|
|
482
|
+
head?: never;
|
|
483
|
+
patch?: never;
|
|
484
|
+
trace?: never;
|
|
485
|
+
};
|
|
435
486
|
"/api/v1/auth-journeys/servers/{serverId}": {
|
|
436
487
|
parameters: {
|
|
437
488
|
query?: never;
|
|
@@ -1609,7 +1660,7 @@ export interface components {
|
|
|
1609
1660
|
*/
|
|
1610
1661
|
description?: string;
|
|
1611
1662
|
/**
|
|
1612
|
-
* @description Repository URL for code projects
|
|
1663
|
+
* @description Repository URL for code projects (supports HTTP/HTTPS and SSH URLs)
|
|
1613
1664
|
* @example https://github.com/user/repo
|
|
1614
1665
|
*/
|
|
1615
1666
|
repoUrl?: string;
|
|
@@ -1673,7 +1724,7 @@ export interface components {
|
|
|
1673
1724
|
*/
|
|
1674
1725
|
description?: string;
|
|
1675
1726
|
/**
|
|
1676
|
-
* @description Repository URL for code projects
|
|
1727
|
+
* @description Repository URL for code projects (supports HTTP/HTTPS and SSH URLs)
|
|
1677
1728
|
* @example https://github.com/user/repo
|
|
1678
1729
|
*/
|
|
1679
1730
|
repoUrl?: string;
|
|
@@ -2172,6 +2223,11 @@ export interface components {
|
|
|
2172
2223
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
2173
2224
|
*/
|
|
2174
2225
|
actorId: string;
|
|
2226
|
+
/**
|
|
2227
|
+
* @description Whether the user has seen the walkthrough
|
|
2228
|
+
* @example false
|
|
2229
|
+
*/
|
|
2230
|
+
hasSeenWalkthrough: boolean;
|
|
2175
2231
|
};
|
|
2176
2232
|
LoginResponseDto: {
|
|
2177
2233
|
/** @description Authenticated user information */
|
|
@@ -2194,6 +2250,35 @@ export interface components {
|
|
|
2194
2250
|
*/
|
|
2195
2251
|
newPassword: string;
|
|
2196
2252
|
};
|
|
2253
|
+
OnboardingStatusResponseDto: {
|
|
2254
|
+
/**
|
|
2255
|
+
* @description Whether the system needs to be onboarded (no admin users exist)
|
|
2256
|
+
* @example true
|
|
2257
|
+
*/
|
|
2258
|
+
needsOnboarding: boolean;
|
|
2259
|
+
};
|
|
2260
|
+
OnboardingRequestDto: {
|
|
2261
|
+
/**
|
|
2262
|
+
* @description Email address for the first admin user
|
|
2263
|
+
* @example admin@example.com
|
|
2264
|
+
*/
|
|
2265
|
+
email: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* @description Display name for the first admin user
|
|
2268
|
+
* @example Admin User
|
|
2269
|
+
*/
|
|
2270
|
+
displayName: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* @description Slug/username for the first admin user
|
|
2273
|
+
* @example admin
|
|
2274
|
+
*/
|
|
2275
|
+
slug: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* @description Password for the first admin user (minimum 8 characters)
|
|
2278
|
+
* @example securepassword123
|
|
2279
|
+
*/
|
|
2280
|
+
password: string;
|
|
2281
|
+
};
|
|
2197
2282
|
ActorResponseDto: {
|
|
2198
2283
|
/**
|
|
2199
2284
|
* @description Unique identifier for the actor
|
|
@@ -5096,7 +5181,7 @@ export interface operations {
|
|
|
5096
5181
|
/** @description Opaque state value for CSRF protection */
|
|
5097
5182
|
state: string;
|
|
5098
5183
|
/** @description Resource server URL that the client wants to access */
|
|
5099
|
-
resource
|
|
5184
|
+
resource?: string;
|
|
5100
5185
|
};
|
|
5101
5186
|
header?: never;
|
|
5102
5187
|
path: {
|
|
@@ -5548,6 +5633,87 @@ export interface operations {
|
|
|
5548
5633
|
};
|
|
5549
5634
|
};
|
|
5550
5635
|
};
|
|
5636
|
+
WebAuthController_getOnboardingStatus: {
|
|
5637
|
+
parameters: {
|
|
5638
|
+
query?: never;
|
|
5639
|
+
header?: never;
|
|
5640
|
+
path?: never;
|
|
5641
|
+
cookie?: never;
|
|
5642
|
+
};
|
|
5643
|
+
requestBody?: never;
|
|
5644
|
+
responses: {
|
|
5645
|
+
/** @description Onboarding status */
|
|
5646
|
+
200: {
|
|
5647
|
+
headers: {
|
|
5648
|
+
[name: string]: unknown;
|
|
5649
|
+
};
|
|
5650
|
+
content: {
|
|
5651
|
+
"application/json": components["schemas"]["OnboardingStatusResponseDto"];
|
|
5652
|
+
};
|
|
5653
|
+
};
|
|
5654
|
+
};
|
|
5655
|
+
};
|
|
5656
|
+
WebAuthController_onboard: {
|
|
5657
|
+
parameters: {
|
|
5658
|
+
query?: never;
|
|
5659
|
+
header?: never;
|
|
5660
|
+
path?: never;
|
|
5661
|
+
cookie?: never;
|
|
5662
|
+
};
|
|
5663
|
+
requestBody: {
|
|
5664
|
+
content: {
|
|
5665
|
+
"application/json": components["schemas"]["OnboardingRequestDto"];
|
|
5666
|
+
};
|
|
5667
|
+
};
|
|
5668
|
+
responses: {
|
|
5669
|
+
/** @description First admin user created and logged in */
|
|
5670
|
+
200: {
|
|
5671
|
+
headers: {
|
|
5672
|
+
[name: string]: unknown;
|
|
5673
|
+
};
|
|
5674
|
+
content: {
|
|
5675
|
+
"application/json": components["schemas"]["LoginResponseDto"];
|
|
5676
|
+
};
|
|
5677
|
+
};
|
|
5678
|
+
/** @description Admin users already exist, onboarding not allowed */
|
|
5679
|
+
409: {
|
|
5680
|
+
headers: {
|
|
5681
|
+
[name: string]: unknown;
|
|
5682
|
+
};
|
|
5683
|
+
content?: never;
|
|
5684
|
+
};
|
|
5685
|
+
};
|
|
5686
|
+
};
|
|
5687
|
+
WebAuthController_markWalkthroughSeen: {
|
|
5688
|
+
parameters: {
|
|
5689
|
+
query?: never;
|
|
5690
|
+
header?: never;
|
|
5691
|
+
path?: never;
|
|
5692
|
+
cookie?: never;
|
|
5693
|
+
};
|
|
5694
|
+
requestBody?: never;
|
|
5695
|
+
responses: {
|
|
5696
|
+
/** @description Walkthrough marked as seen */
|
|
5697
|
+
200: {
|
|
5698
|
+
headers: {
|
|
5699
|
+
[name: string]: unknown;
|
|
5700
|
+
};
|
|
5701
|
+
content: {
|
|
5702
|
+
"application/json": {
|
|
5703
|
+
/** @example true */
|
|
5704
|
+
ok?: boolean;
|
|
5705
|
+
};
|
|
5706
|
+
};
|
|
5707
|
+
};
|
|
5708
|
+
/** @description Not authenticated */
|
|
5709
|
+
401: {
|
|
5710
|
+
headers: {
|
|
5711
|
+
[name: string]: unknown;
|
|
5712
|
+
};
|
|
5713
|
+
content?: never;
|
|
5714
|
+
};
|
|
5715
|
+
};
|
|
5716
|
+
};
|
|
5551
5717
|
AuthJourneysController_getAuthJourneys: {
|
|
5552
5718
|
parameters: {
|
|
5553
5719
|
query?: never;
|
|
@@ -69,6 +69,8 @@ export type { MappingResponseDto } from './models/MappingResponseDto.js';
|
|
|
69
69
|
export { McpFlowResponseDto } from './models/McpFlowResponseDto.js';
|
|
70
70
|
export type { MetaTagResponseDto } from './models/MetaTagResponseDto.js';
|
|
71
71
|
export type { MoveBlockDto } from './models/MoveBlockDto.js';
|
|
72
|
+
export type { OnboardingRequestDto } from './models/OnboardingRequestDto.js';
|
|
73
|
+
export type { OnboardingStatusResponseDto } from './models/OnboardingStatusResponseDto.js';
|
|
72
74
|
export { PatchAgentDto } from './models/PatchAgentDto.js';
|
|
73
75
|
export type { PatchProjectDto } from './models/PatchProjectDto.js';
|
|
74
76
|
export type { ProjectResponseDto } from './models/ProjectResponseDto.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type OnboardingRequestDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Email address for the first admin user
|
|
4
|
+
*/
|
|
5
|
+
email: string;
|
|
6
|
+
/**
|
|
7
|
+
* Display name for the first admin user
|
|
8
|
+
*/
|
|
9
|
+
displayName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Slug/username for the first admin user
|
|
12
|
+
*/
|
|
13
|
+
slug: string;
|
|
14
|
+
/**
|
|
15
|
+
* Password for the first admin user (minimum 8 characters)
|
|
16
|
+
*/
|
|
17
|
+
password: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -45,14 +45,14 @@ export declare class AuthorizationServerService {
|
|
|
45
45
|
* @param codeChallengeMethod PKCE code challenge method (S256 for SHA-256)
|
|
46
46
|
* @param redirectUri Redirect URI where the authorization response will be sent
|
|
47
47
|
* @param state Opaque state value for CSRF protection
|
|
48
|
-
* @param resource Resource server URL that the client wants to access
|
|
49
48
|
* @param serverIdentifier
|
|
50
49
|
* @param version
|
|
51
50
|
* @param scope Space-delimited list of scopes being requested
|
|
51
|
+
* @param resource Resource server URL that the client wants to access
|
|
52
52
|
* @returns void
|
|
53
53
|
* @throws ApiError
|
|
54
54
|
*/
|
|
55
|
-
static authorizationControllerAuthorize(responseType: 'code', clientId: string, codeChallenge: string, codeChallengeMethod: string, redirectUri: string, state: string,
|
|
55
|
+
static authorizationControllerAuthorize(responseType: 'code', clientId: string, codeChallenge: string, codeChallengeMethod: string, redirectUri: string, state: string, serverIdentifier: string, version: string, scope?: string, resource?: string): CancelablePromise<void>;
|
|
56
56
|
/**
|
|
57
57
|
* OAuth 2.0 Authorization Consent Handler
|
|
58
58
|
* Handles user consent decision. Validates the flow ID (CSRF token), generates an authorization code if approved, and redirects back to the client with the code or error.
|
|
@@ -66,14 +66,14 @@ export class AuthorizationServerService {
|
|
|
66
66
|
* @param codeChallengeMethod PKCE code challenge method (S256 for SHA-256)
|
|
67
67
|
* @param redirectUri Redirect URI where the authorization response will be sent
|
|
68
68
|
* @param state Opaque state value for CSRF protection
|
|
69
|
-
* @param resource Resource server URL that the client wants to access
|
|
70
69
|
* @param serverIdentifier
|
|
71
70
|
* @param version
|
|
72
71
|
* @param scope Space-delimited list of scopes being requested
|
|
72
|
+
* @param resource Resource server URL that the client wants to access
|
|
73
73
|
* @returns void
|
|
74
74
|
* @throws ApiError
|
|
75
75
|
*/
|
|
76
|
-
static authorizationControllerAuthorize(responseType, clientId, codeChallenge, codeChallengeMethod, redirectUri, state,
|
|
76
|
+
static authorizationControllerAuthorize(responseType, clientId, codeChallenge, codeChallengeMethod, redirectUri, state, serverIdentifier, version, scope, resource) {
|
|
77
77
|
return __request(OpenAPI, {
|
|
78
78
|
method: 'GET',
|
|
79
79
|
url: '/api/v1/auth/authorize/mcp/{serverIdentifier}/{version}',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ChangePasswordRequestDto } from '../models/ChangePasswordRequestDto.js';
|
|
2
2
|
import type { LoginRequestDto } from '../models/LoginRequestDto.js';
|
|
3
3
|
import type { LoginResponseDto } from '../models/LoginResponseDto.js';
|
|
4
|
+
import type { OnboardingRequestDto } from '../models/OnboardingRequestDto.js';
|
|
5
|
+
import type { OnboardingStatusResponseDto } from '../models/OnboardingStatusResponseDto.js';
|
|
4
6
|
import type { UserResponseDto } from '../models/UserResponseDto.js';
|
|
5
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
8
|
export declare class WebAuthenticationService {
|
|
@@ -40,4 +42,25 @@ export declare class WebAuthenticationService {
|
|
|
40
42
|
static webAuthControllerChangePassword(requestBody: ChangePasswordRequestDto): CancelablePromise<{
|
|
41
43
|
ok?: boolean;
|
|
42
44
|
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Check if system needs onboarding
|
|
47
|
+
* @returns OnboardingStatusResponseDto Onboarding status
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static webAuthControllerGetOnboardingStatus(): CancelablePromise<OnboardingStatusResponseDto>;
|
|
51
|
+
/**
|
|
52
|
+
* Create first admin user (only works if no admins exist)
|
|
53
|
+
* @param requestBody
|
|
54
|
+
* @returns LoginResponseDto First admin user created and logged in
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static webAuthControllerOnboard(requestBody: OnboardingRequestDto): CancelablePromise<LoginResponseDto>;
|
|
58
|
+
/**
|
|
59
|
+
* Mark walkthrough as seen for authenticated user
|
|
60
|
+
* @returns any Walkthrough marked as seen
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
static webAuthControllerMarkWalkthroughSeen(): CancelablePromise<{
|
|
64
|
+
ok?: boolean;
|
|
65
|
+
}>;
|
|
43
66
|
}
|
|
@@ -74,4 +74,46 @@ export class WebAuthenticationService {
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if system needs onboarding
|
|
79
|
+
* @returns OnboardingStatusResponseDto Onboarding status
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static webAuthControllerGetOnboardingStatus() {
|
|
83
|
+
return __request(OpenAPI, {
|
|
84
|
+
method: 'GET',
|
|
85
|
+
url: '/api/v1/auth/onboarding-status',
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Create first admin user (only works if no admins exist)
|
|
90
|
+
* @param requestBody
|
|
91
|
+
* @returns LoginResponseDto First admin user created and logged in
|
|
92
|
+
* @throws ApiError
|
|
93
|
+
*/
|
|
94
|
+
static webAuthControllerOnboard(requestBody) {
|
|
95
|
+
return __request(OpenAPI, {
|
|
96
|
+
method: 'POST',
|
|
97
|
+
url: '/api/v1/auth/onboard',
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: 'application/json',
|
|
100
|
+
errors: {
|
|
101
|
+
409: `Admin users already exist, onboarding not allowed`,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Mark walkthrough as seen for authenticated user
|
|
107
|
+
* @returns any Walkthrough marked as seen
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
static webAuthControllerMarkWalkthroughSeen() {
|
|
111
|
+
return __request(OpenAPI, {
|
|
112
|
+
method: 'POST',
|
|
113
|
+
url: '/api/v1/auth/mark-walkthrough-seen',
|
|
114
|
+
errors: {
|
|
115
|
+
401: `Not authenticated`,
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
}
|
|
77
119
|
}
|