@knowledge-stack/ksapi 1.80.1 → 1.81.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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +7 -2
  3. package/dist/apis/UsersApi.d.ts +130 -1
  4. package/dist/apis/UsersApi.js +130 -0
  5. package/dist/esm/apis/UsersApi.d.ts +130 -1
  6. package/dist/esm/apis/UsersApi.js +131 -1
  7. package/dist/esm/models/OnboardingCompanyRequest.d.ts +53 -0
  8. package/dist/esm/models/OnboardingCompanyRequest.js +51 -0
  9. package/dist/esm/models/OnboardingProfileRequest.d.ts +59 -0
  10. package/dist/esm/models/OnboardingProfileRequest.js +50 -0
  11. package/dist/esm/models/TenantSettingsResponse.d.ts +6 -0
  12. package/dist/esm/models/TenantSettingsResponse.js +2 -0
  13. package/dist/esm/models/TenantSettingsUpdate.d.ts +6 -0
  14. package/dist/esm/models/TenantSettingsUpdate.js +10 -1
  15. package/dist/esm/models/UserResponse.d.ts +12 -0
  16. package/dist/esm/models/UserResponse.js +4 -0
  17. package/dist/esm/models/index.d.ts +2 -0
  18. package/dist/esm/models/index.js +2 -0
  19. package/dist/models/OnboardingCompanyRequest.d.ts +53 -0
  20. package/dist/models/OnboardingCompanyRequest.js +59 -0
  21. package/dist/models/OnboardingProfileRequest.d.ts +59 -0
  22. package/dist/models/OnboardingProfileRequest.js +58 -0
  23. package/dist/models/TenantSettingsResponse.d.ts +6 -0
  24. package/dist/models/TenantSettingsResponse.js +2 -0
  25. package/dist/models/TenantSettingsUpdate.d.ts +6 -0
  26. package/dist/models/TenantSettingsUpdate.js +10 -1
  27. package/dist/models/UserResponse.d.ts +12 -0
  28. package/dist/models/UserResponse.js +4 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/docs/OnboardingCompanyRequest.md +37 -0
  32. package/docs/OnboardingProfileRequest.md +39 -0
  33. package/docs/TenantSettingsResponse.md +2 -0
  34. package/docs/TenantSettingsUpdate.md +2 -0
  35. package/docs/UserResponse.md +4 -0
  36. package/docs/UsersApi.md +222 -0
  37. package/package.json +1 -1
  38. package/src/apis/UsersApi.ts +254 -0
  39. package/src/models/OnboardingCompanyRequest.ts +96 -0
  40. package/src/models/OnboardingProfileRequest.ts +101 -0
  41. package/src/models/TenantSettingsResponse.ts +8 -0
  42. package/src/models/TenantSettingsUpdate.ts +14 -0
  43. package/src/models/UserResponse.ts +16 -0
  44. package/src/models/index.ts +2 -0
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { UpdateUserRequestToJSON, UserResponseFromJSON, } from '../models/index';
24
+ import { OnboardingCompanyRequestToJSON, OnboardingProfileRequestToJSON, UpdateUserRequestToJSON, UserResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -66,6 +66,46 @@ export class UsersApi extends runtime.BaseAPI {
66
66
  return yield response.value();
67
67
  });
68
68
  }
69
+ /**
70
+ * Creates request options for skipOnboarding without sending the request
71
+ */
72
+ skipOnboardingRequestOpts(requestParameters) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const queryParameters = {};
75
+ const headerParameters = {};
76
+ if (requestParameters['authorization'] != null) {
77
+ headerParameters['authorization'] = String(requestParameters['authorization']);
78
+ }
79
+ let urlPath = `/v1/users/me/onboarding/skip`;
80
+ return {
81
+ path: urlPath,
82
+ method: 'POST',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ };
86
+ });
87
+ }
88
+ /**
89
+ * Mark onboarding complete without writing any profile/company fields. Idempotent — calling this after onboarding is already complete returns the current state unchanged (the CRUD only stamps the timestamp when it is NULL).
90
+ * Skip Onboarding Handler
91
+ */
92
+ skipOnboardingRaw(requestParameters, initOverrides) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const requestOptions = yield this.skipOnboardingRequestOpts(requestParameters);
95
+ const response = yield this.request(requestOptions, initOverrides);
96
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
97
+ });
98
+ }
99
+ /**
100
+ * Mark onboarding complete without writing any profile/company fields. Idempotent — calling this after onboarding is already complete returns the current state unchanged (the CRUD only stamps the timestamp when it is NULL).
101
+ * Skip Onboarding Handler
102
+ */
103
+ skipOnboarding() {
104
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
105
+ const response = yield this.skipOnboardingRaw(requestParameters, initOverrides);
106
+ return yield response.value();
107
+ });
108
+ }
69
109
  /**
70
110
  * Creates request options for updateMe without sending the request
71
111
  */
@@ -111,4 +151,94 @@ export class UsersApi extends runtime.BaseAPI {
111
151
  return yield response.value();
112
152
  });
113
153
  }
154
+ /**
155
+ * Creates request options for updateOnboardingCompany without sending the request
156
+ */
157
+ updateOnboardingCompanyRequestOpts(requestParameters) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ if (requestParameters['onboardingCompanyRequest'] == null) {
160
+ throw new runtime.RequiredError('onboardingCompanyRequest', 'Required parameter "onboardingCompanyRequest" was null or undefined when calling updateOnboardingCompany().');
161
+ }
162
+ const queryParameters = {};
163
+ const headerParameters = {};
164
+ headerParameters['Content-Type'] = 'application/json';
165
+ if (requestParameters['authorization'] != null) {
166
+ headerParameters['authorization'] = String(requestParameters['authorization']);
167
+ }
168
+ let urlPath = `/v1/users/me/onboarding/company`;
169
+ return {
170
+ path: urlPath,
171
+ method: 'PATCH',
172
+ headers: headerParameters,
173
+ query: queryParameters,
174
+ body: OnboardingCompanyRequestToJSON(requestParameters['onboardingCompanyRequest']),
175
+ };
176
+ });
177
+ }
178
+ /**
179
+ * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
180
+ * Update Onboarding Company Handler
181
+ */
182
+ updateOnboardingCompanyRaw(requestParameters, initOverrides) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const requestOptions = yield this.updateOnboardingCompanyRequestOpts(requestParameters);
185
+ const response = yield this.request(requestOptions, initOverrides);
186
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
187
+ });
188
+ }
189
+ /**
190
+ * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
191
+ * Update Onboarding Company Handler
192
+ */
193
+ updateOnboardingCompany(requestParameters, initOverrides) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ const response = yield this.updateOnboardingCompanyRaw(requestParameters, initOverrides);
196
+ return yield response.value();
197
+ });
198
+ }
199
+ /**
200
+ * Creates request options for updateOnboardingProfile without sending the request
201
+ */
202
+ updateOnboardingProfileRequestOpts(requestParameters) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ if (requestParameters['onboardingProfileRequest'] == null) {
205
+ throw new runtime.RequiredError('onboardingProfileRequest', 'Required parameter "onboardingProfileRequest" was null or undefined when calling updateOnboardingProfile().');
206
+ }
207
+ const queryParameters = {};
208
+ const headerParameters = {};
209
+ headerParameters['Content-Type'] = 'application/json';
210
+ if (requestParameters['authorization'] != null) {
211
+ headerParameters['authorization'] = String(requestParameters['authorization']);
212
+ }
213
+ let urlPath = `/v1/users/me/onboarding/profile`;
214
+ return {
215
+ path: urlPath,
216
+ method: 'PATCH',
217
+ headers: headerParameters,
218
+ query: queryParameters,
219
+ body: OnboardingProfileRequestToJSON(requestParameters['onboardingProfileRequest']),
220
+ };
221
+ });
222
+ }
223
+ /**
224
+ * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users (name) or a future per-membership profile endpoint (job_title).
225
+ * Update Onboarding Profile Handler
226
+ */
227
+ updateOnboardingProfileRaw(requestParameters, initOverrides) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ const requestOptions = yield this.updateOnboardingProfileRequestOpts(requestParameters);
230
+ const response = yield this.request(requestOptions, initOverrides);
231
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
232
+ });
233
+ }
234
+ /**
235
+ * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users (name) or a future per-membership profile endpoint (job_title).
236
+ * Update Onboarding Profile Handler
237
+ */
238
+ updateOnboardingProfile(requestParameters, initOverrides) {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ const response = yield this.updateOnboardingProfileRaw(requestParameters, initOverrides);
241
+ return yield response.value();
242
+ });
243
+ }
114
244
  }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Step 1 of onboarding — tenant-wide company info. OWNER/ADMIN only.
14
+ * @export
15
+ * @interface OnboardingCompanyRequest
16
+ */
17
+ export interface OnboardingCompanyRequest {
18
+ /**
19
+ * Brief company description (≤5000 chars)
20
+ * @type {string}
21
+ * @memberof OnboardingCompanyRequest
22
+ */
23
+ description?: string | null;
24
+ /**
25
+ * Industry / company type (free text)
26
+ * @type {string}
27
+ * @memberof OnboardingCompanyRequest
28
+ */
29
+ industry?: string | null;
30
+ }
31
+ export declare const OnboardingCompanyRequestPropertyValidationAttributesMap: {
32
+ [property: string]: {
33
+ maxLength?: number;
34
+ minLength?: number;
35
+ pattern?: string;
36
+ maximum?: number;
37
+ exclusiveMaximum?: boolean;
38
+ minimum?: number;
39
+ exclusiveMinimum?: boolean;
40
+ multipleOf?: number;
41
+ maxItems?: number;
42
+ minItems?: number;
43
+ uniqueItems?: boolean;
44
+ };
45
+ };
46
+ /**
47
+ * Check if a given object implements the OnboardingCompanyRequest interface.
48
+ */
49
+ export declare function instanceOfOnboardingCompanyRequest(value: object): value is OnboardingCompanyRequest;
50
+ export declare function OnboardingCompanyRequestFromJSON(json: any): OnboardingCompanyRequest;
51
+ export declare function OnboardingCompanyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingCompanyRequest;
52
+ export declare function OnboardingCompanyRequestToJSON(json: any): OnboardingCompanyRequest;
53
+ export declare function OnboardingCompanyRequestToJSONTyped(value?: OnboardingCompanyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const OnboardingCompanyRequestPropertyValidationAttributesMap = {
15
+ description: {
16
+ maxLength: 5000,
17
+ },
18
+ industry: {
19
+ maxLength: 120,
20
+ },
21
+ };
22
+ /**
23
+ * Check if a given object implements the OnboardingCompanyRequest interface.
24
+ */
25
+ export function instanceOfOnboardingCompanyRequest(value) {
26
+ return true;
27
+ }
28
+ export function OnboardingCompanyRequestFromJSON(json) {
29
+ return OnboardingCompanyRequestFromJSONTyped(json, false);
30
+ }
31
+ export function OnboardingCompanyRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'description': json['description'] == null ? undefined : json['description'],
37
+ 'industry': json['industry'] == null ? undefined : json['industry'],
38
+ };
39
+ }
40
+ export function OnboardingCompanyRequestToJSON(json) {
41
+ return OnboardingCompanyRequestToJSONTyped(json, false);
42
+ }
43
+ export function OnboardingCompanyRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'description': value['description'],
49
+ 'industry': value['industry'],
50
+ };
51
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Step 2 of onboarding — per-user info for the current tenant.
14
+ * @export
15
+ * @interface OnboardingProfileRequest
16
+ */
17
+ export interface OnboardingProfileRequest {
18
+ /**
19
+ * User's first name
20
+ * @type {string}
21
+ * @memberof OnboardingProfileRequest
22
+ */
23
+ firstName?: string | null;
24
+ /**
25
+ * User's last name
26
+ * @type {string}
27
+ * @memberof OnboardingProfileRequest
28
+ */
29
+ lastName?: string | null;
30
+ /**
31
+ * What the user does at this tenant
32
+ * @type {string}
33
+ * @memberof OnboardingProfileRequest
34
+ */
35
+ jobTitle?: string | null;
36
+ }
37
+ export declare const OnboardingProfileRequestPropertyValidationAttributesMap: {
38
+ [property: string]: {
39
+ maxLength?: number;
40
+ minLength?: number;
41
+ pattern?: string;
42
+ maximum?: number;
43
+ exclusiveMaximum?: boolean;
44
+ minimum?: number;
45
+ exclusiveMinimum?: boolean;
46
+ multipleOf?: number;
47
+ maxItems?: number;
48
+ minItems?: number;
49
+ uniqueItems?: boolean;
50
+ };
51
+ };
52
+ /**
53
+ * Check if a given object implements the OnboardingProfileRequest interface.
54
+ */
55
+ export declare function instanceOfOnboardingProfileRequest(value: object): value is OnboardingProfileRequest;
56
+ export declare function OnboardingProfileRequestFromJSON(json: any): OnboardingProfileRequest;
57
+ export declare function OnboardingProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingProfileRequest;
58
+ export declare function OnboardingProfileRequestToJSON(json: any): OnboardingProfileRequest;
59
+ export declare function OnboardingProfileRequestToJSONTyped(value?: OnboardingProfileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const OnboardingProfileRequestPropertyValidationAttributesMap = {
15
+ jobTitle: {
16
+ maxLength: 120,
17
+ },
18
+ };
19
+ /**
20
+ * Check if a given object implements the OnboardingProfileRequest interface.
21
+ */
22
+ export function instanceOfOnboardingProfileRequest(value) {
23
+ return true;
24
+ }
25
+ export function OnboardingProfileRequestFromJSON(json) {
26
+ return OnboardingProfileRequestFromJSONTyped(json, false);
27
+ }
28
+ export function OnboardingProfileRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
34
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
35
+ 'jobTitle': json['job_title'] == null ? undefined : json['job_title'],
36
+ };
37
+ }
38
+ export function OnboardingProfileRequestToJSON(json) {
39
+ return OnboardingProfileRequestToJSONTyped(json, false);
40
+ }
41
+ export function OnboardingProfileRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'first_name': value['firstName'],
47
+ 'last_name': value['lastName'],
48
+ 'job_title': value['jobTitle'],
49
+ };
50
+ }
@@ -29,6 +29,12 @@ export interface TenantSettingsResponse {
29
29
  * @memberof TenantSettingsResponse
30
30
  */
31
31
  description: string;
32
+ /**
33
+ * Industry / company type captured during onboarding
34
+ * @type {string}
35
+ * @memberof TenantSettingsResponse
36
+ */
37
+ industry?: string | null;
32
38
  /**
33
39
  * IANA timezone (e.g. 'America/New_York')
34
40
  * @type {string}
@@ -38,6 +38,7 @@ export function TenantSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'language': SupportedLanguageFromJSON(json['language']),
40
40
  'description': json['description'],
41
+ 'industry': json['industry'] == null ? undefined : json['industry'],
41
42
  'timezone': json['timezone'],
42
43
  'inviteLink': InviteLinkSettingsResponseFromJSON(json['invite_link']),
43
44
  };
@@ -52,6 +53,7 @@ export function TenantSettingsResponseToJSONTyped(value, ignoreDiscriminator = f
52
53
  return {
53
54
  'language': SupportedLanguageToJSON(value['language']),
54
55
  'description': value['description'],
56
+ 'industry': value['industry'],
55
57
  'timezone': value['timezone'],
56
58
  'invite_link': InviteLinkSettingsResponseToJSON(value['inviteLink']),
57
59
  };
@@ -29,6 +29,12 @@ export interface TenantSettingsUpdate {
29
29
  * @memberof TenantSettingsUpdate
30
30
  */
31
31
  description?: string | null;
32
+ /**
33
+ * Industry / company type captured during onboarding
34
+ * @type {string}
35
+ * @memberof TenantSettingsUpdate
36
+ */
37
+ industry?: string | null;
32
38
  /**
33
39
  * IANA timezone (e.g. 'America/New_York')
34
40
  * @type {string}
@@ -13,7 +13,14 @@
13
13
  */
14
14
  import { SupportedLanguageFromJSON, SupportedLanguageToJSON, } from './SupportedLanguage';
15
15
  import { InviteLinkSettingsRequestFromJSON, InviteLinkSettingsRequestToJSON, } from './InviteLinkSettingsRequest';
16
- export const TenantSettingsUpdatePropertyValidationAttributesMap = {};
16
+ export const TenantSettingsUpdatePropertyValidationAttributesMap = {
17
+ description: {
18
+ maxLength: 5000,
19
+ },
20
+ industry: {
21
+ maxLength: 120,
22
+ },
23
+ };
17
24
  /**
18
25
  * Check if a given object implements the TenantSettingsUpdate interface.
19
26
  */
@@ -30,6 +37,7 @@ export function TenantSettingsUpdateFromJSONTyped(json, ignoreDiscriminator) {
30
37
  return {
31
38
  'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
32
39
  'description': json['description'] == null ? undefined : json['description'],
40
+ 'industry': json['industry'] == null ? undefined : json['industry'],
33
41
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
34
42
  'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
35
43
  'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
@@ -47,6 +55,7 @@ export function TenantSettingsUpdateToJSONTyped(value, ignoreDiscriminator = fal
47
55
  return {
48
56
  'language': SupportedLanguageToJSON(value['language']),
49
57
  'description': value['description'],
58
+ 'industry': value['industry'],
50
59
  'timezone': value['timezone'],
51
60
  'brand_name': value['brandName'],
52
61
  'brand_color': value['brandColor'],
@@ -65,6 +65,18 @@ export interface UserResponse {
65
65
  * @memberof UserResponse
66
66
  */
67
67
  defaultTenantId: string;
68
+ /**
69
+ * User's job title at the current tenant (per-membership)
70
+ * @type {string}
71
+ * @memberof UserResponse
72
+ */
73
+ jobTitle?: string | null;
74
+ /**
75
+ * When the user finished onboarding for the current tenant. NULL = wizard should be shown.
76
+ * @type {Date}
77
+ * @memberof UserResponse
78
+ */
79
+ onboardingCompletedAt?: Date | null;
68
80
  }
69
81
  export declare const UserResponsePropertyValidationAttributesMap: {
70
82
  [property: string]: {
@@ -52,6 +52,8 @@ export function UserResponseFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'currentTenantId': json['current_tenant_id'],
53
53
  'currentTenantRole': TenantUserRoleFromJSON(json['current_tenant_role']),
54
54
  'defaultTenantId': json['default_tenant_id'],
55
+ 'jobTitle': json['job_title'] == null ? undefined : json['job_title'],
56
+ 'onboardingCompletedAt': json['onboarding_completed_at'] == null ? undefined : (new Date(json['onboarding_completed_at'])),
55
57
  };
56
58
  }
57
59
  export function UserResponseToJSON(json) {
@@ -70,5 +72,7 @@ export function UserResponseToJSONTyped(value, ignoreDiscriminator = false) {
70
72
  'current_tenant_id': value['currentTenantId'],
71
73
  'current_tenant_role': TenantUserRoleToJSON(value['currentTenantRole']),
72
74
  'default_tenant_id': value['defaultTenantId'],
75
+ 'job_title': value['jobTitle'],
76
+ 'onboarding_completed_at': value['onboardingCompletedAt'] == null ? value['onboardingCompletedAt'] : value['onboardingCompletedAt'].toISOString(),
73
77
  };
74
78
  }
@@ -88,6 +88,8 @@ export * from './MembershipResponse';
88
88
  export * from './MessageRole';
89
89
  export * from './MeteredQuotaStatus';
90
90
  export * from './NonFilesystemReferenceType';
91
+ export * from './OnboardingCompanyRequest';
92
+ export * from './OnboardingProfileRequest';
91
93
  export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
92
94
  export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
93
95
  export * from './PaginatedResponseDocumentResponse';
@@ -90,6 +90,8 @@ export * from './MembershipResponse';
90
90
  export * from './MessageRole';
91
91
  export * from './MeteredQuotaStatus';
92
92
  export * from './NonFilesystemReferenceType';
93
+ export * from './OnboardingCompanyRequest';
94
+ export * from './OnboardingProfileRequest';
93
95
  export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
94
96
  export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
95
97
  export * from './PaginatedResponseDocumentResponse';
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Step 1 of onboarding — tenant-wide company info. OWNER/ADMIN only.
14
+ * @export
15
+ * @interface OnboardingCompanyRequest
16
+ */
17
+ export interface OnboardingCompanyRequest {
18
+ /**
19
+ * Brief company description (≤5000 chars)
20
+ * @type {string}
21
+ * @memberof OnboardingCompanyRequest
22
+ */
23
+ description?: string | null;
24
+ /**
25
+ * Industry / company type (free text)
26
+ * @type {string}
27
+ * @memberof OnboardingCompanyRequest
28
+ */
29
+ industry?: string | null;
30
+ }
31
+ export declare const OnboardingCompanyRequestPropertyValidationAttributesMap: {
32
+ [property: string]: {
33
+ maxLength?: number;
34
+ minLength?: number;
35
+ pattern?: string;
36
+ maximum?: number;
37
+ exclusiveMaximum?: boolean;
38
+ minimum?: number;
39
+ exclusiveMinimum?: boolean;
40
+ multipleOf?: number;
41
+ maxItems?: number;
42
+ minItems?: number;
43
+ uniqueItems?: boolean;
44
+ };
45
+ };
46
+ /**
47
+ * Check if a given object implements the OnboardingCompanyRequest interface.
48
+ */
49
+ export declare function instanceOfOnboardingCompanyRequest(value: object): value is OnboardingCompanyRequest;
50
+ export declare function OnboardingCompanyRequestFromJSON(json: any): OnboardingCompanyRequest;
51
+ export declare function OnboardingCompanyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingCompanyRequest;
52
+ export declare function OnboardingCompanyRequestToJSON(json: any): OnboardingCompanyRequest;
53
+ export declare function OnboardingCompanyRequestToJSONTyped(value?: OnboardingCompanyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OnboardingCompanyRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfOnboardingCompanyRequest = instanceOfOnboardingCompanyRequest;
18
+ exports.OnboardingCompanyRequestFromJSON = OnboardingCompanyRequestFromJSON;
19
+ exports.OnboardingCompanyRequestFromJSONTyped = OnboardingCompanyRequestFromJSONTyped;
20
+ exports.OnboardingCompanyRequestToJSON = OnboardingCompanyRequestToJSON;
21
+ exports.OnboardingCompanyRequestToJSONTyped = OnboardingCompanyRequestToJSONTyped;
22
+ exports.OnboardingCompanyRequestPropertyValidationAttributesMap = {
23
+ description: {
24
+ maxLength: 5000,
25
+ },
26
+ industry: {
27
+ maxLength: 120,
28
+ },
29
+ };
30
+ /**
31
+ * Check if a given object implements the OnboardingCompanyRequest interface.
32
+ */
33
+ function instanceOfOnboardingCompanyRequest(value) {
34
+ return true;
35
+ }
36
+ function OnboardingCompanyRequestFromJSON(json) {
37
+ return OnboardingCompanyRequestFromJSONTyped(json, false);
38
+ }
39
+ function OnboardingCompanyRequestFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'description': json['description'] == null ? undefined : json['description'],
45
+ 'industry': json['industry'] == null ? undefined : json['industry'],
46
+ };
47
+ }
48
+ function OnboardingCompanyRequestToJSON(json) {
49
+ return OnboardingCompanyRequestToJSONTyped(json, false);
50
+ }
51
+ function OnboardingCompanyRequestToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'description': value['description'],
57
+ 'industry': value['industry'],
58
+ };
59
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Step 2 of onboarding — per-user info for the current tenant.
14
+ * @export
15
+ * @interface OnboardingProfileRequest
16
+ */
17
+ export interface OnboardingProfileRequest {
18
+ /**
19
+ * User's first name
20
+ * @type {string}
21
+ * @memberof OnboardingProfileRequest
22
+ */
23
+ firstName?: string | null;
24
+ /**
25
+ * User's last name
26
+ * @type {string}
27
+ * @memberof OnboardingProfileRequest
28
+ */
29
+ lastName?: string | null;
30
+ /**
31
+ * What the user does at this tenant
32
+ * @type {string}
33
+ * @memberof OnboardingProfileRequest
34
+ */
35
+ jobTitle?: string | null;
36
+ }
37
+ export declare const OnboardingProfileRequestPropertyValidationAttributesMap: {
38
+ [property: string]: {
39
+ maxLength?: number;
40
+ minLength?: number;
41
+ pattern?: string;
42
+ maximum?: number;
43
+ exclusiveMaximum?: boolean;
44
+ minimum?: number;
45
+ exclusiveMinimum?: boolean;
46
+ multipleOf?: number;
47
+ maxItems?: number;
48
+ minItems?: number;
49
+ uniqueItems?: boolean;
50
+ };
51
+ };
52
+ /**
53
+ * Check if a given object implements the OnboardingProfileRequest interface.
54
+ */
55
+ export declare function instanceOfOnboardingProfileRequest(value: object): value is OnboardingProfileRequest;
56
+ export declare function OnboardingProfileRequestFromJSON(json: any): OnboardingProfileRequest;
57
+ export declare function OnboardingProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingProfileRequest;
58
+ export declare function OnboardingProfileRequestToJSON(json: any): OnboardingProfileRequest;
59
+ export declare function OnboardingProfileRequestToJSONTyped(value?: OnboardingProfileRequest | null, ignoreDiscriminator?: boolean): any;