@knowledge-stack/ksapi 1.80.0 → 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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +8 -2
- package/dist/apis/AgentApi.d.ts +4 -4
- package/dist/apis/AgentApi.js +2 -2
- package/dist/apis/SubscriptionsApi.d.ts +9 -9
- package/dist/apis/SubscriptionsApi.js +3 -3
- package/dist/apis/UsersApi.d.ts +130 -1
- package/dist/apis/UsersApi.js +130 -0
- package/dist/esm/apis/AgentApi.d.ts +4 -4
- package/dist/esm/apis/AgentApi.js +2 -2
- package/dist/esm/apis/SubscriptionsApi.d.ts +9 -9
- package/dist/esm/apis/SubscriptionsApi.js +4 -4
- package/dist/esm/apis/UsersApi.d.ts +130 -1
- package/dist/esm/apis/UsersApi.js +131 -1
- package/dist/esm/models/DocumentResponse.d.ts +6 -0
- package/dist/esm/models/DocumentResponse.js +2 -0
- package/dist/esm/models/FolderResponse.d.ts +6 -0
- package/dist/esm/models/FolderResponse.js +2 -0
- package/dist/esm/models/MeteredQuotaStatus.d.ts +6 -0
- package/dist/esm/models/MeteredQuotaStatus.js +2 -0
- package/dist/esm/models/OnboardingCompanyRequest.d.ts +53 -0
- package/dist/esm/models/OnboardingCompanyRequest.js +51 -0
- package/dist/esm/models/OnboardingProfileRequest.d.ts +59 -0
- package/dist/esm/models/OnboardingProfileRequest.js +50 -0
- package/dist/esm/models/SubmitSubscriptionResponse.d.ts +75 -0
- package/dist/esm/models/SubmitSubscriptionResponse.js +52 -0
- package/dist/esm/models/TenantSettingsResponse.d.ts +6 -0
- package/dist/esm/models/TenantSettingsResponse.js +2 -0
- package/dist/esm/models/TenantSettingsUpdate.d.ts +6 -0
- package/dist/esm/models/TenantSettingsUpdate.js +10 -1
- package/dist/esm/models/UserResponse.d.ts +12 -0
- package/dist/esm/models/UserResponse.js +4 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/DocumentResponse.d.ts +6 -0
- package/dist/models/DocumentResponse.js +2 -0
- package/dist/models/FolderResponse.d.ts +6 -0
- package/dist/models/FolderResponse.js +2 -0
- package/dist/models/MeteredQuotaStatus.d.ts +6 -0
- package/dist/models/MeteredQuotaStatus.js +2 -0
- package/dist/models/OnboardingCompanyRequest.d.ts +53 -0
- package/dist/models/OnboardingCompanyRequest.js +59 -0
- package/dist/models/OnboardingProfileRequest.d.ts +59 -0
- package/dist/models/OnboardingProfileRequest.js +58 -0
- package/dist/models/SubmitSubscriptionResponse.d.ts +75 -0
- package/dist/models/SubmitSubscriptionResponse.js +60 -0
- package/dist/models/TenantSettingsResponse.d.ts +6 -0
- package/dist/models/TenantSettingsResponse.js +2 -0
- package/dist/models/TenantSettingsUpdate.d.ts +6 -0
- package/dist/models/TenantSettingsUpdate.js +10 -1
- package/dist/models/UserResponse.d.ts +12 -0
- package/dist/models/UserResponse.js +4 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/AgentApi.md +1 -1
- package/docs/DocumentResponse.md +2 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponse.md +2 -0
- package/docs/MeteredQuotaStatus.md +2 -0
- package/docs/OnboardingCompanyRequest.md +37 -0
- package/docs/OnboardingProfileRequest.md +39 -0
- package/docs/SubmitSubscriptionResponse.md +39 -0
- package/docs/SubscriptionsApi.md +4 -4
- package/docs/TenantSettingsResponse.md +2 -0
- package/docs/TenantSettingsUpdate.md +2 -0
- package/docs/UserResponse.md +4 -0
- package/docs/UsersApi.md +222 -0
- package/package.json +1 -1
- package/src/apis/AgentApi.ts +4 -4
- package/src/apis/SubscriptionsApi.ts +12 -12
- package/src/apis/UsersApi.ts +254 -0
- package/src/models/DocumentResponse.ts +8 -0
- package/src/models/FolderResponse.ts +8 -0
- package/src/models/MeteredQuotaStatus.ts +8 -0
- package/src/models/OnboardingCompanyRequest.ts +96 -0
- package/src/models/OnboardingProfileRequest.ts +101 -0
- package/src/models/SubmitSubscriptionResponse.ts +117 -0
- package/src/models/TenantSettingsResponse.ts +8 -0
- package/src/models/TenantSettingsUpdate.ts +14 -0
- package/src/models/UserResponse.ts +16 -0
- package/src/models/index.ts +3 -0
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* Result envelope for the subscription-change submit endpoint.
|
|
14
|
+
*
|
|
15
|
+
* The endpoint returns immediately after the (mock-)Stripe charge is
|
|
16
|
+
* submitted; the actual plan/seat write happens later in the Stripe
|
|
17
|
+
* subscription webhook. ``submitted=True`` always when the route
|
|
18
|
+
* succeeds (errors raise via the global handler).
|
|
19
|
+
*
|
|
20
|
+
* ``noop=True`` indicates the tenant is already at the requested
|
|
21
|
+
* ``(plan, num_seats)`` — no Stripe call was issued, no webhook will
|
|
22
|
+
* arrive, and the user's account is unchanged. Symmetric with
|
|
23
|
+
* ``StripeWebhookAck.replayed`` so client UIs can render "already
|
|
24
|
+
* on this plan" rather than spinning a "waiting for webhook"
|
|
25
|
+
* indicator forever.
|
|
26
|
+
*
|
|
27
|
+
* ``idempotency_key`` echoes the value forwarded to Stripe — clients
|
|
28
|
+
* can store it to correlate the eventual webhook receipt with the
|
|
29
|
+
* original request, and re-send it verbatim on retries.
|
|
30
|
+
* @export
|
|
31
|
+
* @interface SubmitSubscriptionResponse
|
|
32
|
+
*/
|
|
33
|
+
export interface SubmitSubscriptionResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Always True when the submit returns 202.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof SubmitSubscriptionResponse
|
|
38
|
+
*/
|
|
39
|
+
submitted: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* True when the tenant was already at the target ``(plan, num_seats)`` — no Stripe call was made and no webhook will arrive.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof SubmitSubscriptionResponse
|
|
44
|
+
*/
|
|
45
|
+
noop: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Idempotency key forwarded to Stripe — sourced from the ``Idempotency-Key`` request header or a server-generated uuid4 when absent.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SubmitSubscriptionResponse
|
|
50
|
+
*/
|
|
51
|
+
idempotencyKey: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const SubmitSubscriptionResponsePropertyValidationAttributesMap: {
|
|
54
|
+
[property: string]: {
|
|
55
|
+
maxLength?: number;
|
|
56
|
+
minLength?: number;
|
|
57
|
+
pattern?: string;
|
|
58
|
+
maximum?: number;
|
|
59
|
+
exclusiveMaximum?: boolean;
|
|
60
|
+
minimum?: number;
|
|
61
|
+
exclusiveMinimum?: boolean;
|
|
62
|
+
multipleOf?: number;
|
|
63
|
+
maxItems?: number;
|
|
64
|
+
minItems?: number;
|
|
65
|
+
uniqueItems?: boolean;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the SubmitSubscriptionResponse interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfSubmitSubscriptionResponse(value: object): value is SubmitSubscriptionResponse;
|
|
72
|
+
export declare function SubmitSubscriptionResponseFromJSON(json: any): SubmitSubscriptionResponse;
|
|
73
|
+
export declare function SubmitSubscriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitSubscriptionResponse;
|
|
74
|
+
export declare function SubmitSubscriptionResponseToJSON(json: any): SubmitSubscriptionResponse;
|
|
75
|
+
export declare function SubmitSubscriptionResponseToJSONTyped(value?: SubmitSubscriptionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 SubmitSubscriptionResponsePropertyValidationAttributesMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SubmitSubscriptionResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSubmitSubscriptionResponse(value) {
|
|
19
|
+
if (!('submitted' in value) || value['submitted'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('noop' in value) || value['noop'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('idempotencyKey' in value) || value['idempotencyKey'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function SubmitSubscriptionResponseFromJSON(json) {
|
|
28
|
+
return SubmitSubscriptionResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function SubmitSubscriptionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'submitted': json['submitted'],
|
|
36
|
+
'noop': json['noop'],
|
|
37
|
+
'idempotencyKey': json['idempotency_key'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function SubmitSubscriptionResponseToJSON(json) {
|
|
41
|
+
return SubmitSubscriptionResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function SubmitSubscriptionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'submitted': value['submitted'],
|
|
49
|
+
'noop': value['noop'],
|
|
50
|
+
'idempotency_key': value['idempotencyKey'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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';
|
|
@@ -142,6 +144,7 @@ export * from './StepInput';
|
|
|
142
144
|
export * from './StepKind';
|
|
143
145
|
export * from './StepOutput';
|
|
144
146
|
export * from './SubmitFeedbackRequest';
|
|
147
|
+
export * from './SubmitSubscriptionResponse';
|
|
145
148
|
export * from './SubscriptionPlanResponse';
|
|
146
149
|
export * from './SubtreeChunkGroup';
|
|
147
150
|
export * from './SubtreeChunksResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -144,6 +146,7 @@ export * from './StepInput';
|
|
|
144
146
|
export * from './StepKind';
|
|
145
147
|
export * from './StepOutput';
|
|
146
148
|
export * from './SubmitFeedbackRequest';
|
|
149
|
+
export * from './SubmitSubscriptionResponse';
|
|
147
150
|
export * from './SubscriptionPlanResponse';
|
|
148
151
|
export * from './SubtreeChunkGroup';
|
|
149
152
|
export * from './SubtreeChunksResponse';
|
|
@@ -121,6 +121,12 @@ export interface DocumentResponse {
|
|
|
121
121
|
* @memberof DocumentResponse
|
|
122
122
|
*/
|
|
123
123
|
tags?: Array<TagResponse> | null;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the current caller has write access to this document. Only populated by endpoints that compute it (e.g. folder contents).
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof DocumentResponse
|
|
128
|
+
*/
|
|
129
|
+
canWrite?: boolean | null;
|
|
124
130
|
}
|
|
125
131
|
/**
|
|
126
132
|
* @export
|
|
@@ -93,6 +93,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
93
|
'createdAt': (new Date(json['created_at'])),
|
|
94
94
|
'updatedAt': (new Date(json['updated_at'])),
|
|
95
95
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
96
|
+
'canWrite': json['can_write'] == null ? undefined : json['can_write'],
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
99
|
function DocumentResponseToJSON(json) {
|
|
@@ -120,5 +121,6 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
120
121
|
'created_at': value['createdAt'].toISOString(),
|
|
121
122
|
'updated_at': value['updatedAt'].toISOString(),
|
|
122
123
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
124
|
+
'can_write': value['canWrite'],
|
|
123
125
|
};
|
|
124
126
|
}
|
|
@@ -88,6 +88,12 @@ export interface FolderResponse {
|
|
|
88
88
|
* @memberof FolderResponse
|
|
89
89
|
*/
|
|
90
90
|
tags?: Array<TagResponse> | null;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the current caller has write access to this folder. Only populated by endpoints that compute it (e.g. folder contents).
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof FolderResponse
|
|
95
|
+
*/
|
|
96
|
+
canWrite?: boolean | null;
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
99
|
* @export
|
|
@@ -75,6 +75,7 @@ function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
'createdAt': (new Date(json['created_at'])),
|
|
76
76
|
'updatedAt': (new Date(json['updated_at'])),
|
|
77
77
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
78
|
+
'canWrite': json['can_write'] == null ? undefined : json['can_write'],
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
function FolderResponseToJSON(json) {
|
|
@@ -97,5 +98,6 @@ function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
98
|
'created_at': value['createdAt'].toISOString(),
|
|
98
99
|
'updated_at': value['updatedAt'].toISOString(),
|
|
99
100
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
101
|
+
'can_write': value['canWrite'],
|
|
100
102
|
};
|
|
101
103
|
}
|
|
@@ -46,6 +46,12 @@ export interface MeteredQuotaStatus {
|
|
|
46
46
|
* @memberof MeteredQuotaStatus
|
|
47
47
|
*/
|
|
48
48
|
periodEnd: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Persistent additional-quota balance for this metric. Unchanged by period rollover; decremented when included is exhausted, incremented on refund or top-up.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof MeteredQuotaStatus
|
|
53
|
+
*/
|
|
54
|
+
additionalBalance?: number;
|
|
49
55
|
}
|
|
50
56
|
export declare const MeteredQuotaStatusPropertyValidationAttributesMap: {
|
|
51
57
|
[property: string]: {
|
|
@@ -50,6 +50,7 @@ function MeteredQuotaStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'limit': json['limit'],
|
|
51
51
|
'periodStart': (new Date(json['period_start'])),
|
|
52
52
|
'periodEnd': (new Date(json['period_end'])),
|
|
53
|
+
'additionalBalance': json['additional_balance'] == null ? undefined : json['additional_balance'],
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
function MeteredQuotaStatusToJSON(json) {
|
|
@@ -65,5 +66,6 @@ function MeteredQuotaStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
66
|
'limit': value['limit'],
|
|
66
67
|
'period_start': value['periodStart'].toISOString(),
|
|
67
68
|
'period_end': value['periodEnd'].toISOString(),
|
|
69
|
+
'additional_balance': value['additionalBalance'],
|
|
68
70
|
};
|
|
69
71
|
}
|
|
@@ -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
|
+
}
|