@knowledge-stack/ksapi 1.23.4 → 1.23.5

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 (46) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/README.md +2 -2
  3. package/dist/apis/TenantsApi.d.ts +69 -5
  4. package/dist/apis/TenantsApi.js +77 -1
  5. package/dist/esm/apis/TenantsApi.d.ts +69 -5
  6. package/dist/esm/apis/TenantsApi.js +78 -2
  7. package/dist/esm/models/ChunkResponse.d.ts +6 -0
  8. package/dist/esm/models/ChunkResponse.js +2 -0
  9. package/dist/esm/models/InviteResponse.d.ts +7 -0
  10. package/dist/esm/models/InviteResponse.js +5 -0
  11. package/dist/esm/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
  12. package/dist/esm/models/{PaginatedResponseTenantUserInTenantResponse.js → PaginatedResponseTenantUserResponse.js} +12 -12
  13. package/dist/esm/models/ScoredChunkResponse.d.ts +6 -0
  14. package/dist/esm/models/ScoredChunkResponse.js +2 -0
  15. package/dist/esm/models/TenantUserEditRequest.d.ts +48 -0
  16. package/dist/esm/models/TenantUserEditRequest.js +45 -0
  17. package/dist/esm/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
  18. package/dist/esm/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +13 -9
  19. package/dist/esm/models/index.d.ts +3 -2
  20. package/dist/esm/models/index.js +3 -2
  21. package/dist/models/ChunkResponse.d.ts +6 -0
  22. package/dist/models/ChunkResponse.js +2 -0
  23. package/dist/models/InviteResponse.d.ts +7 -0
  24. package/dist/models/InviteResponse.js +5 -0
  25. package/dist/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
  26. package/dist/models/PaginatedResponseTenantUserResponse.js +78 -0
  27. package/dist/models/ScoredChunkResponse.d.ts +6 -0
  28. package/dist/models/ScoredChunkResponse.js +2 -0
  29. package/dist/models/TenantUserEditRequest.d.ts +48 -0
  30. package/dist/models/TenantUserEditRequest.js +53 -0
  31. package/dist/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
  32. package/dist/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +19 -15
  33. package/dist/models/index.d.ts +3 -2
  34. package/dist/models/index.js +3 -2
  35. package/package.json +1 -1
  36. package/src/apis/TenantsApi.ts +167 -8
  37. package/src/models/ChunkResponse.ts +8 -0
  38. package/src/models/InviteResponse.ts +19 -0
  39. package/src/models/{PaginatedResponseTenantUserInTenantResponse.ts → PaginatedResponseTenantUserResponse.ts} +25 -25
  40. package/src/models/ScoredChunkResponse.ts +8 -0
  41. package/src/models/TenantUserEditRequest.ts +93 -0
  42. package/src/models/{TenantUserInTenantResponse.ts → TenantUserResponse.ts} +24 -15
  43. package/src/models/index.ts +3 -2
  44. package/dist/esm/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
  45. package/dist/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
  46. package/dist/models/PaginatedResponseTenantUserInTenantResponse.js +0 -78
@@ -0,0 +1,66 @@
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
+ import type { TenantUserResponse } from './TenantUserResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseTenantUserResponse
17
+ */
18
+ export interface PaginatedResponseTenantUserResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<TenantUserResponse>}
22
+ * @memberof PaginatedResponseTenantUserResponse
23
+ */
24
+ items: Array<TenantUserResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseTenantUserResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseTenantUserResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseTenantUserResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseTenantUserResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseTenantUserResponse(value: object): value is PaginatedResponseTenantUserResponse;
48
+ export declare function PaginatedResponseTenantUserResponseFromJSON(json: any): PaginatedResponseTenantUserResponse;
49
+ export declare function PaginatedResponseTenantUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserResponse;
50
+ export declare function PaginatedResponseTenantUserResponseToJSON(json: any): PaginatedResponseTenantUserResponse;
51
+ export declare function PaginatedResponseTenantUserResponseToJSONTyped(value?: PaginatedResponseTenantUserResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseTenantUserResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -11,11 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { TenantUserInTenantResponseFromJSON, TenantUserInTenantResponseToJSON, } from './TenantUserInTenantResponse';
14
+ import { TenantUserResponseFromJSON, TenantUserResponseToJSON, } from './TenantUserResponse';
15
15
  /**
16
- * Check if a given object implements the PaginatedResponseTenantUserInTenantResponse interface.
16
+ * Check if a given object implements the PaginatedResponseTenantUserResponse interface.
17
17
  */
18
- export function instanceOfPaginatedResponseTenantUserInTenantResponse(value) {
18
+ export function instanceOfPaginatedResponseTenantUserResponse(value) {
19
19
  if (!('items' in value) || value['items'] === undefined)
20
20
  return false;
21
21
  if (!('total' in value) || value['total'] === undefined)
@@ -26,35 +26,35 @@ export function instanceOfPaginatedResponseTenantUserInTenantResponse(value) {
26
26
  return false;
27
27
  return true;
28
28
  }
29
- export function PaginatedResponseTenantUserInTenantResponseFromJSON(json) {
30
- return PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json, false);
29
+ export function PaginatedResponseTenantUserResponseFromJSON(json) {
30
+ return PaginatedResponseTenantUserResponseFromJSONTyped(json, false);
31
31
  }
32
- export function PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ export function PaginatedResponseTenantUserResponseFromJSONTyped(json, ignoreDiscriminator) {
33
33
  if (json == null) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'items': (json['items'].map(TenantUserInTenantResponseFromJSON)),
37
+ 'items': (json['items'].map(TenantUserResponseFromJSON)),
38
38
  'total': json['total'],
39
39
  'limit': json['limit'],
40
40
  'offset': json['offset'],
41
41
  };
42
42
  }
43
- export function PaginatedResponseTenantUserInTenantResponseToJSON(json) {
44
- return PaginatedResponseTenantUserInTenantResponseToJSONTyped(json, false);
43
+ export function PaginatedResponseTenantUserResponseToJSON(json) {
44
+ return PaginatedResponseTenantUserResponseToJSONTyped(json, false);
45
45
  }
46
- export function PaginatedResponseTenantUserInTenantResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ export function PaginatedResponseTenantUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
47
  if (value == null) {
48
48
  return value;
49
49
  }
50
50
  return {
51
- 'items': (value['items'].map(TenantUserInTenantResponseToJSON)),
51
+ 'items': (value['items'].map(TenantUserResponseToJSON)),
52
52
  'total': value['total'],
53
53
  'limit': value['limit'],
54
54
  'offset': value['offset'],
55
55
  };
56
56
  }
57
- export const PaginatedResponseTenantUserInTenantResponsePropertyValidationAttributesMap = {
57
+ export const PaginatedResponseTenantUserResponsePropertyValidationAttributesMap = {
58
58
  total: {
59
59
  minimum: 0,
60
60
  exclusiveMinimum: false,
@@ -101,6 +101,12 @@ export interface ScoredChunkResponse {
101
101
  * @memberof ScoredChunkResponse
102
102
  */
103
103
  updatedAt: Date;
104
+ /**
105
+ * Presigned URL to download the chunk's visual asset (6-hour validity)
106
+ * @type {string}
107
+ * @memberof ScoredChunkResponse
108
+ */
109
+ assetS3Url?: string | null;
104
110
  /**
105
111
  * Cosine similarity score (1 - cosine_distance)
106
112
  * @type {number}
@@ -67,6 +67,7 @@ export function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'tenantId': json['tenant_id'],
68
68
  'createdAt': (new Date(json['created_at'])),
69
69
  'updatedAt': (new Date(json['updated_at'])),
70
+ 'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
70
71
  'score': json['score'],
71
72
  };
72
73
  }
@@ -92,6 +93,7 @@ export function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = fals
92
93
  'tenant_id': value['tenantId'],
93
94
  'created_at': value['createdAt'].toISOString(),
94
95
  'updated_at': value['updatedAt'].toISOString(),
96
+ 'asset_s3_url': value['assetS3Url'],
95
97
  'score': value['score'],
96
98
  };
97
99
  }
@@ -0,0 +1,48 @@
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
+ import type { TenantUserRole } from './TenantUserRole';
13
+ /**
14
+ * Request to update a tenant user's role.
15
+ * @export
16
+ * @interface TenantUserEditRequest
17
+ */
18
+ export interface TenantUserEditRequest {
19
+ /**
20
+ *
21
+ * @type {TenantUserRole}
22
+ * @memberof TenantUserEditRequest
23
+ */
24
+ role: TenantUserRole;
25
+ }
26
+ /**
27
+ * Check if a given object implements the TenantUserEditRequest interface.
28
+ */
29
+ export declare function instanceOfTenantUserEditRequest(value: object): value is TenantUserEditRequest;
30
+ export declare function TenantUserEditRequestFromJSON(json: any): TenantUserEditRequest;
31
+ export declare function TenantUserEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserEditRequest;
32
+ export declare function TenantUserEditRequestToJSON(json: any): TenantUserEditRequest;
33
+ export declare function TenantUserEditRequestToJSONTyped(value?: TenantUserEditRequest | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const TenantUserEditRequestPropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
@@ -0,0 +1,45 @@
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
+ import { TenantUserRoleFromJSON, TenantUserRoleToJSON, } from './TenantUserRole';
15
+ /**
16
+ * Check if a given object implements the TenantUserEditRequest interface.
17
+ */
18
+ export function instanceOfTenantUserEditRequest(value) {
19
+ if (!('role' in value) || value['role'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function TenantUserEditRequestFromJSON(json) {
24
+ return TenantUserEditRequestFromJSONTyped(json, false);
25
+ }
26
+ export function TenantUserEditRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'role': TenantUserRoleFromJSON(json['role']),
32
+ };
33
+ }
34
+ export function TenantUserEditRequestToJSON(json) {
35
+ return TenantUserEditRequestToJSONTyped(json, false);
36
+ }
37
+ export function TenantUserEditRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'role': TenantUserRoleToJSON(value['role']),
43
+ };
44
+ }
45
+ export const TenantUserEditRequestPropertyValidationAttributesMap = {};
@@ -13,43 +13,49 @@ import type { TenantUserRole } from './TenantUserRole';
13
13
  /**
14
14
  * Tenant member response model.
15
15
  * @export
16
- * @interface TenantUserInTenantResponse
16
+ * @interface TenantUserResponse
17
17
  */
18
- export interface TenantUserInTenantResponse {
18
+ export interface TenantUserResponse {
19
19
  /**
20
20
  * User ID
21
21
  * @type {string}
22
- * @memberof TenantUserInTenantResponse
22
+ * @memberof TenantUserResponse
23
23
  */
24
24
  userId: string;
25
25
  /**
26
26
  * User email address
27
27
  * @type {string}
28
- * @memberof TenantUserInTenantResponse
28
+ * @memberof TenantUserResponse
29
29
  */
30
30
  email?: string | null;
31
31
  /**
32
32
  *
33
33
  * @type {TenantUserRole}
34
- * @memberof TenantUserInTenantResponse
34
+ * @memberof TenantUserResponse
35
35
  */
36
36
  role: TenantUserRole;
37
+ /**
38
+ * Date the user was added to the tenant
39
+ * @type {Date}
40
+ * @memberof TenantUserResponse
41
+ */
42
+ createdAt: Date;
37
43
  /**
38
44
  * Date the user was updated
39
45
  * @type {Date}
40
- * @memberof TenantUserInTenantResponse
46
+ * @memberof TenantUserResponse
41
47
  */
42
48
  updatedAt: Date;
43
49
  }
44
50
  /**
45
- * Check if a given object implements the TenantUserInTenantResponse interface.
51
+ * Check if a given object implements the TenantUserResponse interface.
46
52
  */
47
- export declare function instanceOfTenantUserInTenantResponse(value: object): value is TenantUserInTenantResponse;
48
- export declare function TenantUserInTenantResponseFromJSON(json: any): TenantUserInTenantResponse;
49
- export declare function TenantUserInTenantResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserInTenantResponse;
50
- export declare function TenantUserInTenantResponseToJSON(json: any): TenantUserInTenantResponse;
51
- export declare function TenantUserInTenantResponseToJSONTyped(value?: TenantUserInTenantResponse | null, ignoreDiscriminator?: boolean): any;
52
- export declare const TenantUserInTenantResponsePropertyValidationAttributesMap: {
53
+ export declare function instanceOfTenantUserResponse(value: object): value is TenantUserResponse;
54
+ export declare function TenantUserResponseFromJSON(json: any): TenantUserResponse;
55
+ export declare function TenantUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserResponse;
56
+ export declare function TenantUserResponseToJSON(json: any): TenantUserResponse;
57
+ export declare function TenantUserResponseToJSONTyped(value?: TenantUserResponse | null, ignoreDiscriminator?: boolean): any;
58
+ export declare const TenantUserResponsePropertyValidationAttributesMap: {
53
59
  [property: string]: {
54
60
  maxLength?: number;
55
61
  minLength?: number;
@@ -13,21 +13,23 @@
13
13
  */
14
14
  import { TenantUserRoleFromJSON, TenantUserRoleToJSON, } from './TenantUserRole';
15
15
  /**
16
- * Check if a given object implements the TenantUserInTenantResponse interface.
16
+ * Check if a given object implements the TenantUserResponse interface.
17
17
  */
18
- export function instanceOfTenantUserInTenantResponse(value) {
18
+ export function instanceOfTenantUserResponse(value) {
19
19
  if (!('userId' in value) || value['userId'] === undefined)
20
20
  return false;
21
21
  if (!('role' in value) || value['role'] === undefined)
22
22
  return false;
23
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
24
+ return false;
23
25
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
24
26
  return false;
25
27
  return true;
26
28
  }
27
- export function TenantUserInTenantResponseFromJSON(json) {
28
- return TenantUserInTenantResponseFromJSONTyped(json, false);
29
+ export function TenantUserResponseFromJSON(json) {
30
+ return TenantUserResponseFromJSONTyped(json, false);
29
31
  }
30
- export function TenantUserInTenantResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ export function TenantUserResponseFromJSONTyped(json, ignoreDiscriminator) {
31
33
  if (json == null) {
32
34
  return json;
33
35
  }
@@ -35,13 +37,14 @@ export function TenantUserInTenantResponseFromJSONTyped(json, ignoreDiscriminato
35
37
  'userId': json['user_id'],
36
38
  'email': json['email'] == null ? undefined : json['email'],
37
39
  'role': TenantUserRoleFromJSON(json['role']),
40
+ 'createdAt': (new Date(json['created_at'])),
38
41
  'updatedAt': (new Date(json['updated_at'])),
39
42
  };
40
43
  }
41
- export function TenantUserInTenantResponseToJSON(json) {
42
- return TenantUserInTenantResponseToJSONTyped(json, false);
44
+ export function TenantUserResponseToJSON(json) {
45
+ return TenantUserResponseToJSONTyped(json, false);
43
46
  }
44
- export function TenantUserInTenantResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ export function TenantUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
48
  if (value == null) {
46
49
  return value;
47
50
  }
@@ -49,7 +52,8 @@ export function TenantUserInTenantResponseToJSONTyped(value, ignoreDiscriminator
49
52
  'user_id': value['userId'],
50
53
  'email': value['email'],
51
54
  'role': TenantUserRoleToJSON(value['role']),
55
+ 'created_at': value['createdAt'].toISOString(),
52
56
  'updated_at': value['updatedAt'].toISOString(),
53
57
  };
54
58
  }
55
- export const TenantUserInTenantResponsePropertyValidationAttributesMap = {};
59
+ export const TenantUserResponsePropertyValidationAttributesMap = {};
@@ -52,7 +52,7 @@ export * from './PaginatedResponsePathPartResponse';
52
52
  export * from './PaginatedResponsePermissionResponse';
53
53
  export * from './PaginatedResponseTagResponse';
54
54
  export * from './PaginatedResponseTenantResponse';
55
- export * from './PaginatedResponseTenantUserInTenantResponse';
55
+ export * from './PaginatedResponseTenantUserResponse';
56
56
  export * from './PaginatedResponseThreadMessageResponse';
57
57
  export * from './PaginatedResponseThreadResponse';
58
58
  export * from './PaginatedResponseWorkflowSummaryResponse';
@@ -74,7 +74,8 @@ export * from './SectionResponse';
74
74
  export * from './SignInRequest';
75
75
  export * from './TagResponse';
76
76
  export * from './TenantResponse';
77
- export * from './TenantUserInTenantResponse';
77
+ export * from './TenantUserEditRequest';
78
+ export * from './TenantUserResponse';
78
79
  export * from './TenantUserRole';
79
80
  export * from './ThreadMessageResponse';
80
81
  export * from './ThreadResponse';
@@ -54,7 +54,7 @@ export * from './PaginatedResponsePathPartResponse';
54
54
  export * from './PaginatedResponsePermissionResponse';
55
55
  export * from './PaginatedResponseTagResponse';
56
56
  export * from './PaginatedResponseTenantResponse';
57
- export * from './PaginatedResponseTenantUserInTenantResponse';
57
+ export * from './PaginatedResponseTenantUserResponse';
58
58
  export * from './PaginatedResponseThreadMessageResponse';
59
59
  export * from './PaginatedResponseThreadResponse';
60
60
  export * from './PaginatedResponseWorkflowSummaryResponse';
@@ -76,7 +76,8 @@ export * from './SectionResponse';
76
76
  export * from './SignInRequest';
77
77
  export * from './TagResponse';
78
78
  export * from './TenantResponse';
79
- export * from './TenantUserInTenantResponse';
79
+ export * from './TenantUserEditRequest';
80
+ export * from './TenantUserResponse';
80
81
  export * from './TenantUserRole';
81
82
  export * from './ThreadMessageResponse';
82
83
  export * from './ThreadResponse';
@@ -101,6 +101,12 @@ export interface ChunkResponse {
101
101
  * @memberof ChunkResponse
102
102
  */
103
103
  updatedAt: Date;
104
+ /**
105
+ * Presigned URL to download the chunk's visual asset (6-hour validity)
106
+ * @type {string}
107
+ * @memberof ChunkResponse
108
+ */
109
+ assetS3Url?: string | null;
104
110
  }
105
111
  /**
106
112
  * Check if a given object implements the ChunkResponse interface.
@@ -73,6 +73,7 @@ function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
73
73
  'tenantId': json['tenant_id'],
74
74
  'createdAt': (new Date(json['created_at'])),
75
75
  'updatedAt': (new Date(json['updated_at'])),
76
+ 'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
76
77
  };
77
78
  }
78
79
  function ChunkResponseToJSON(json) {
@@ -97,6 +98,7 @@ function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
97
98
  'tenant_id': value['tenantId'],
98
99
  'created_at': value['createdAt'].toISOString(),
99
100
  'updated_at': value['updatedAt'].toISOString(),
101
+ 'asset_s3_url': value['assetS3Url'],
100
102
  };
101
103
  }
102
104
  exports.ChunkResponsePropertyValidationAttributesMap = {};
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TenantUserRole } from './TenantUserRole';
12
13
  /**
13
14
  * Invite response model.
14
15
  * @export
@@ -33,6 +34,12 @@ export interface InviteResponse {
33
34
  * @memberof InviteResponse
34
35
  */
35
36
  email: string;
37
+ /**
38
+ *
39
+ * @type {TenantUserRole}
40
+ * @memberof InviteResponse
41
+ */
42
+ role: TenantUserRole;
36
43
  /**
37
44
  *
38
45
  * @type {Date}
@@ -19,6 +19,7 @@ exports.InviteResponseFromJSON = InviteResponseFromJSON;
19
19
  exports.InviteResponseFromJSONTyped = InviteResponseFromJSONTyped;
20
20
  exports.InviteResponseToJSON = InviteResponseToJSON;
21
21
  exports.InviteResponseToJSONTyped = InviteResponseToJSONTyped;
22
+ const TenantUserRole_1 = require("./TenantUserRole");
22
23
  /**
23
24
  * Check if a given object implements the InviteResponse interface.
24
25
  */
@@ -29,6 +30,8 @@ function instanceOfInviteResponse(value) {
29
30
  return false;
30
31
  if (!('email' in value) || value['email'] === undefined)
31
32
  return false;
33
+ if (!('role' in value) || value['role'] === undefined)
34
+ return false;
32
35
  if (!('expiresAt' in value) || value['expiresAt'] === undefined)
33
36
  return false;
34
37
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -50,6 +53,7 @@ function InviteResponseFromJSONTyped(json, ignoreDiscriminator) {
50
53
  'id': json['id'],
51
54
  'tenantId': json['tenant_id'],
52
55
  'email': json['email'],
56
+ 'role': (0, TenantUserRole_1.TenantUserRoleFromJSON)(json['role']),
53
57
  'expiresAt': (new Date(json['expires_at'])),
54
58
  'acceptedAt': json['accepted_at'] == null ? undefined : (new Date(json['accepted_at'])),
55
59
  'createdAt': (new Date(json['created_at'])),
@@ -69,6 +73,7 @@ function InviteResponseToJSONTyped(value, ignoreDiscriminator = false) {
69
73
  'id': value['id'],
70
74
  'tenant_id': value['tenantId'],
71
75
  'email': value['email'],
76
+ 'role': (0, TenantUserRole_1.TenantUserRoleToJSON)(value['role']),
72
77
  'expires_at': value['expiresAt'].toISOString(),
73
78
  'accepted_at': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
74
79
  'created_at': value['createdAt'].toISOString(),
@@ -0,0 +1,66 @@
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
+ import type { TenantUserResponse } from './TenantUserResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseTenantUserResponse
17
+ */
18
+ export interface PaginatedResponseTenantUserResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<TenantUserResponse>}
22
+ * @memberof PaginatedResponseTenantUserResponse
23
+ */
24
+ items: Array<TenantUserResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseTenantUserResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseTenantUserResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseTenantUserResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseTenantUserResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseTenantUserResponse(value: object): value is PaginatedResponseTenantUserResponse;
48
+ export declare function PaginatedResponseTenantUserResponseFromJSON(json: any): PaginatedResponseTenantUserResponse;
49
+ export declare function PaginatedResponseTenantUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserResponse;
50
+ export declare function PaginatedResponseTenantUserResponseToJSON(json: any): PaginatedResponseTenantUserResponse;
51
+ export declare function PaginatedResponseTenantUserResponseToJSONTyped(value?: PaginatedResponseTenantUserResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseTenantUserResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -0,0 +1,78 @@
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.PaginatedResponseTenantUserResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseTenantUserResponse = instanceOfPaginatedResponseTenantUserResponse;
18
+ exports.PaginatedResponseTenantUserResponseFromJSON = PaginatedResponseTenantUserResponseFromJSON;
19
+ exports.PaginatedResponseTenantUserResponseFromJSONTyped = PaginatedResponseTenantUserResponseFromJSONTyped;
20
+ exports.PaginatedResponseTenantUserResponseToJSON = PaginatedResponseTenantUserResponseToJSON;
21
+ exports.PaginatedResponseTenantUserResponseToJSONTyped = PaginatedResponseTenantUserResponseToJSONTyped;
22
+ const TenantUserResponse_1 = require("./TenantUserResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseTenantUserResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponseTenantUserResponse(value) {
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ if (!('total' in value) || value['total'] === undefined)
30
+ return false;
31
+ if (!('limit' in value) || value['limit'] === undefined)
32
+ return false;
33
+ if (!('offset' in value) || value['offset'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PaginatedResponseTenantUserResponseFromJSON(json) {
38
+ return PaginatedResponseTenantUserResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseTenantUserResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(TenantUserResponse_1.TenantUserResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseTenantUserResponseToJSON(json) {
52
+ return PaginatedResponseTenantUserResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseTenantUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(TenantUserResponse_1.TenantUserResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseTenantUserResponsePropertyValidationAttributesMap = {
66
+ total: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ limit: {
71
+ minimum: 1,
72
+ exclusiveMinimum: false,
73
+ },
74
+ offset: {
75
+ minimum: 0,
76
+ exclusiveMinimum: false,
77
+ },
78
+ };
@@ -101,6 +101,12 @@ export interface ScoredChunkResponse {
101
101
  * @memberof ScoredChunkResponse
102
102
  */
103
103
  updatedAt: Date;
104
+ /**
105
+ * Presigned URL to download the chunk's visual asset (6-hour validity)
106
+ * @type {string}
107
+ * @memberof ScoredChunkResponse
108
+ */
109
+ assetS3Url?: string | null;
104
110
  /**
105
111
  * Cosine similarity score (1 - cosine_distance)
106
112
  * @type {number}