@knowledge-stack/ksapi 1.23.3 → 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
@@ -13,50 +13,50 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { TenantUserInTenantResponse } from './TenantUserInTenantResponse';
16
+ import type { TenantUserResponse } from './TenantUserResponse';
17
17
  import {
18
- TenantUserInTenantResponseFromJSON,
19
- TenantUserInTenantResponseFromJSONTyped,
20
- TenantUserInTenantResponseToJSON,
21
- TenantUserInTenantResponseToJSONTyped,
22
- } from './TenantUserInTenantResponse';
18
+ TenantUserResponseFromJSON,
19
+ TenantUserResponseFromJSONTyped,
20
+ TenantUserResponseToJSON,
21
+ TenantUserResponseToJSONTyped,
22
+ } from './TenantUserResponse';
23
23
 
24
24
  /**
25
25
  *
26
26
  * @export
27
- * @interface PaginatedResponseTenantUserInTenantResponse
27
+ * @interface PaginatedResponseTenantUserResponse
28
28
  */
29
- export interface PaginatedResponseTenantUserInTenantResponse {
29
+ export interface PaginatedResponseTenantUserResponse {
30
30
  /**
31
31
  * List of items
32
- * @type {Array<TenantUserInTenantResponse>}
33
- * @memberof PaginatedResponseTenantUserInTenantResponse
32
+ * @type {Array<TenantUserResponse>}
33
+ * @memberof PaginatedResponseTenantUserResponse
34
34
  */
35
- items: Array<TenantUserInTenantResponse>;
35
+ items: Array<TenantUserResponse>;
36
36
  /**
37
37
  * Total number of items
38
38
  * @type {number}
39
- * @memberof PaginatedResponseTenantUserInTenantResponse
39
+ * @memberof PaginatedResponseTenantUserResponse
40
40
  */
41
41
  total: number;
42
42
  /**
43
43
  * Number of items per page
44
44
  * @type {number}
45
- * @memberof PaginatedResponseTenantUserInTenantResponse
45
+ * @memberof PaginatedResponseTenantUserResponse
46
46
  */
47
47
  limit: number;
48
48
  /**
49
49
  * Number of items to skip
50
50
  * @type {number}
51
- * @memberof PaginatedResponseTenantUserInTenantResponse
51
+ * @memberof PaginatedResponseTenantUserResponse
52
52
  */
53
53
  offset: number;
54
54
  }
55
55
 
56
56
  /**
57
- * Check if a given object implements the PaginatedResponseTenantUserInTenantResponse interface.
57
+ * Check if a given object implements the PaginatedResponseTenantUserResponse interface.
58
58
  */
59
- export function instanceOfPaginatedResponseTenantUserInTenantResponse(value: object): value is PaginatedResponseTenantUserInTenantResponse {
59
+ export function instanceOfPaginatedResponseTenantUserResponse(value: object): value is PaginatedResponseTenantUserResponse {
60
60
  if (!('items' in value) || value['items'] === undefined) return false;
61
61
  if (!('total' in value) || value['total'] === undefined) return false;
62
62
  if (!('limit' in value) || value['limit'] === undefined) return false;
@@ -64,42 +64,42 @@ export function instanceOfPaginatedResponseTenantUserInTenantResponse(value: obj
64
64
  return true;
65
65
  }
66
66
 
67
- export function PaginatedResponseTenantUserInTenantResponseFromJSON(json: any): PaginatedResponseTenantUserInTenantResponse {
68
- return PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json, false);
67
+ export function PaginatedResponseTenantUserResponseFromJSON(json: any): PaginatedResponseTenantUserResponse {
68
+ return PaginatedResponseTenantUserResponseFromJSONTyped(json, false);
69
69
  }
70
70
 
71
- export function PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserInTenantResponse {
71
+ export function PaginatedResponseTenantUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserResponse {
72
72
  if (json == null) {
73
73
  return json;
74
74
  }
75
75
  return {
76
76
 
77
- 'items': ((json['items'] as Array<any>).map(TenantUserInTenantResponseFromJSON)),
77
+ 'items': ((json['items'] as Array<any>).map(TenantUserResponseFromJSON)),
78
78
  'total': json['total'],
79
79
  'limit': json['limit'],
80
80
  'offset': json['offset'],
81
81
  };
82
82
  }
83
83
 
84
- export function PaginatedResponseTenantUserInTenantResponseToJSON(json: any): PaginatedResponseTenantUserInTenantResponse {
85
- return PaginatedResponseTenantUserInTenantResponseToJSONTyped(json, false);
84
+ export function PaginatedResponseTenantUserResponseToJSON(json: any): PaginatedResponseTenantUserResponse {
85
+ return PaginatedResponseTenantUserResponseToJSONTyped(json, false);
86
86
  }
87
87
 
88
- export function PaginatedResponseTenantUserInTenantResponseToJSONTyped(value?: PaginatedResponseTenantUserInTenantResponse | null, ignoreDiscriminator: boolean = false): any {
88
+ export function PaginatedResponseTenantUserResponseToJSONTyped(value?: PaginatedResponseTenantUserResponse | null, ignoreDiscriminator: boolean = false): any {
89
89
  if (value == null) {
90
90
  return value;
91
91
  }
92
92
 
93
93
  return {
94
94
 
95
- 'items': ((value['items'] as Array<any>).map(TenantUserInTenantResponseToJSON)),
95
+ 'items': ((value['items'] as Array<any>).map(TenantUserResponseToJSON)),
96
96
  'total': value['total'],
97
97
  'limit': value['limit'],
98
98
  'offset': value['offset'],
99
99
  };
100
100
  }
101
101
 
102
- export const PaginatedResponseTenantUserInTenantResponsePropertyValidationAttributesMap: {
102
+ export const PaginatedResponseTenantUserResponsePropertyValidationAttributesMap: {
103
103
  [property: string]: {
104
104
  maxLength?: number,
105
105
  minLength?: number,
@@ -118,6 +118,12 @@ export interface ScoredChunkResponse {
118
118
  * @memberof ScoredChunkResponse
119
119
  */
120
120
  updatedAt: Date;
121
+ /**
122
+ * Presigned URL to download the chunk's visual asset (6-hour validity)
123
+ * @type {string}
124
+ * @memberof ScoredChunkResponse
125
+ */
126
+ assetS3Url?: string | null;
121
127
  /**
122
128
  * Cosine similarity score (1 - cosine_distance)
123
129
  * @type {number}
@@ -172,6 +178,7 @@ export function ScoredChunkResponseFromJSONTyped(json: any, ignoreDiscriminator:
172
178
  'tenantId': json['tenant_id'],
173
179
  'createdAt': (new Date(json['created_at'])),
174
180
  'updatedAt': (new Date(json['updated_at'])),
181
+ 'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
175
182
  'score': json['score'],
176
183
  };
177
184
  }
@@ -201,6 +208,7 @@ export function ScoredChunkResponseToJSONTyped(value?: ScoredChunkResponse | nul
201
208
  'tenant_id': value['tenantId'],
202
209
  'created_at': value['createdAt'].toISOString(),
203
210
  'updated_at': value['updatedAt'].toISOString(),
211
+ 'asset_s3_url': value['assetS3Url'],
204
212
  'score': value['score'],
205
213
  };
206
214
  }
@@ -0,0 +1,93 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { TenantUserRole } from './TenantUserRole';
17
+ import {
18
+ TenantUserRoleFromJSON,
19
+ TenantUserRoleFromJSONTyped,
20
+ TenantUserRoleToJSON,
21
+ TenantUserRoleToJSONTyped,
22
+ } from './TenantUserRole';
23
+
24
+ /**
25
+ * Request to update a tenant user's role.
26
+ * @export
27
+ * @interface TenantUserEditRequest
28
+ */
29
+ export interface TenantUserEditRequest {
30
+ /**
31
+ *
32
+ * @type {TenantUserRole}
33
+ * @memberof TenantUserEditRequest
34
+ */
35
+ role: TenantUserRole;
36
+ }
37
+
38
+
39
+
40
+ /**
41
+ * Check if a given object implements the TenantUserEditRequest interface.
42
+ */
43
+ export function instanceOfTenantUserEditRequest(value: object): value is TenantUserEditRequest {
44
+ if (!('role' in value) || value['role'] === undefined) return false;
45
+ return true;
46
+ }
47
+
48
+ export function TenantUserEditRequestFromJSON(json: any): TenantUserEditRequest {
49
+ return TenantUserEditRequestFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function TenantUserEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserEditRequest {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'role': TenantUserRoleFromJSON(json['role']),
59
+ };
60
+ }
61
+
62
+ export function TenantUserEditRequestToJSON(json: any): TenantUserEditRequest {
63
+ return TenantUserEditRequestToJSONTyped(json, false);
64
+ }
65
+
66
+ export function TenantUserEditRequestToJSONTyped(value?: TenantUserEditRequest | null, ignoreDiscriminator: boolean = false): any {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+
71
+ return {
72
+
73
+ 'role': TenantUserRoleToJSON(value['role']),
74
+ };
75
+ }
76
+
77
+ export const TenantUserEditRequestPropertyValidationAttributesMap: {
78
+ [property: string]: {
79
+ maxLength?: number,
80
+ minLength?: number,
81
+ pattern?: string,
82
+ maximum?: number,
83
+ exclusiveMaximum?: boolean,
84
+ minimum?: number,
85
+ exclusiveMinimum?: boolean,
86
+ multipleOf?: number,
87
+ maxItems?: number,
88
+ minItems?: number,
89
+ uniqueItems?: boolean
90
+ }
91
+ } = {
92
+ }
93
+
@@ -24,31 +24,37 @@ import {
24
24
  /**
25
25
  * Tenant member response model.
26
26
  * @export
27
- * @interface TenantUserInTenantResponse
27
+ * @interface TenantUserResponse
28
28
  */
29
- export interface TenantUserInTenantResponse {
29
+ export interface TenantUserResponse {
30
30
  /**
31
31
  * User ID
32
32
  * @type {string}
33
- * @memberof TenantUserInTenantResponse
33
+ * @memberof TenantUserResponse
34
34
  */
35
35
  userId: string;
36
36
  /**
37
37
  * User email address
38
38
  * @type {string}
39
- * @memberof TenantUserInTenantResponse
39
+ * @memberof TenantUserResponse
40
40
  */
41
41
  email?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {TenantUserRole}
45
- * @memberof TenantUserInTenantResponse
45
+ * @memberof TenantUserResponse
46
46
  */
47
47
  role: TenantUserRole;
48
+ /**
49
+ * Date the user was added to the tenant
50
+ * @type {Date}
51
+ * @memberof TenantUserResponse
52
+ */
53
+ createdAt: Date;
48
54
  /**
49
55
  * Date the user was updated
50
56
  * @type {Date}
51
- * @memberof TenantUserInTenantResponse
57
+ * @memberof TenantUserResponse
52
58
  */
53
59
  updatedAt: Date;
54
60
  }
@@ -56,20 +62,21 @@ export interface TenantUserInTenantResponse {
56
62
 
57
63
 
58
64
  /**
59
- * Check if a given object implements the TenantUserInTenantResponse interface.
65
+ * Check if a given object implements the TenantUserResponse interface.
60
66
  */
61
- export function instanceOfTenantUserInTenantResponse(value: object): value is TenantUserInTenantResponse {
67
+ export function instanceOfTenantUserResponse(value: object): value is TenantUserResponse {
62
68
  if (!('userId' in value) || value['userId'] === undefined) return false;
63
69
  if (!('role' in value) || value['role'] === undefined) return false;
70
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
64
71
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
65
72
  return true;
66
73
  }
67
74
 
68
- export function TenantUserInTenantResponseFromJSON(json: any): TenantUserInTenantResponse {
69
- return TenantUserInTenantResponseFromJSONTyped(json, false);
75
+ export function TenantUserResponseFromJSON(json: any): TenantUserResponse {
76
+ return TenantUserResponseFromJSONTyped(json, false);
70
77
  }
71
78
 
72
- export function TenantUserInTenantResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserInTenantResponse {
79
+ export function TenantUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserResponse {
73
80
  if (json == null) {
74
81
  return json;
75
82
  }
@@ -78,15 +85,16 @@ export function TenantUserInTenantResponseFromJSONTyped(json: any, ignoreDiscrim
78
85
  'userId': json['user_id'],
79
86
  'email': json['email'] == null ? undefined : json['email'],
80
87
  'role': TenantUserRoleFromJSON(json['role']),
88
+ 'createdAt': (new Date(json['created_at'])),
81
89
  'updatedAt': (new Date(json['updated_at'])),
82
90
  };
83
91
  }
84
92
 
85
- export function TenantUserInTenantResponseToJSON(json: any): TenantUserInTenantResponse {
86
- return TenantUserInTenantResponseToJSONTyped(json, false);
93
+ export function TenantUserResponseToJSON(json: any): TenantUserResponse {
94
+ return TenantUserResponseToJSONTyped(json, false);
87
95
  }
88
96
 
89
- export function TenantUserInTenantResponseToJSONTyped(value?: TenantUserInTenantResponse | null, ignoreDiscriminator: boolean = false): any {
97
+ export function TenantUserResponseToJSONTyped(value?: TenantUserResponse | null, ignoreDiscriminator: boolean = false): any {
90
98
  if (value == null) {
91
99
  return value;
92
100
  }
@@ -96,11 +104,12 @@ export function TenantUserInTenantResponseToJSONTyped(value?: TenantUserInTenant
96
104
  'user_id': value['userId'],
97
105
  'email': value['email'],
98
106
  'role': TenantUserRoleToJSON(value['role']),
107
+ 'created_at': value['createdAt'].toISOString(),
99
108
  'updated_at': value['updatedAt'].toISOString(),
100
109
  };
101
110
  }
102
111
 
103
- export const TenantUserInTenantResponsePropertyValidationAttributesMap: {
112
+ export const TenantUserResponsePropertyValidationAttributesMap: {
104
113
  [property: string]: {
105
114
  maxLength?: number,
106
115
  minLength?: number,
@@ -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';
@@ -1,66 +0,0 @@
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 { TenantUserInTenantResponse } from './TenantUserInTenantResponse';
13
- /**
14
- *
15
- * @export
16
- * @interface PaginatedResponseTenantUserInTenantResponse
17
- */
18
- export interface PaginatedResponseTenantUserInTenantResponse {
19
- /**
20
- * List of items
21
- * @type {Array<TenantUserInTenantResponse>}
22
- * @memberof PaginatedResponseTenantUserInTenantResponse
23
- */
24
- items: Array<TenantUserInTenantResponse>;
25
- /**
26
- * Total number of items
27
- * @type {number}
28
- * @memberof PaginatedResponseTenantUserInTenantResponse
29
- */
30
- total: number;
31
- /**
32
- * Number of items per page
33
- * @type {number}
34
- * @memberof PaginatedResponseTenantUserInTenantResponse
35
- */
36
- limit: number;
37
- /**
38
- * Number of items to skip
39
- * @type {number}
40
- * @memberof PaginatedResponseTenantUserInTenantResponse
41
- */
42
- offset: number;
43
- }
44
- /**
45
- * Check if a given object implements the PaginatedResponseTenantUserInTenantResponse interface.
46
- */
47
- export declare function instanceOfPaginatedResponseTenantUserInTenantResponse(value: object): value is PaginatedResponseTenantUserInTenantResponse;
48
- export declare function PaginatedResponseTenantUserInTenantResponseFromJSON(json: any): PaginatedResponseTenantUserInTenantResponse;
49
- export declare function PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserInTenantResponse;
50
- export declare function PaginatedResponseTenantUserInTenantResponseToJSON(json: any): PaginatedResponseTenantUserInTenantResponse;
51
- export declare function PaginatedResponseTenantUserInTenantResponseToJSONTyped(value?: PaginatedResponseTenantUserInTenantResponse | null, ignoreDiscriminator?: boolean): any;
52
- export declare const PaginatedResponseTenantUserInTenantResponsePropertyValidationAttributesMap: {
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
- };
@@ -1,66 +0,0 @@
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 { TenantUserInTenantResponse } from './TenantUserInTenantResponse';
13
- /**
14
- *
15
- * @export
16
- * @interface PaginatedResponseTenantUserInTenantResponse
17
- */
18
- export interface PaginatedResponseTenantUserInTenantResponse {
19
- /**
20
- * List of items
21
- * @type {Array<TenantUserInTenantResponse>}
22
- * @memberof PaginatedResponseTenantUserInTenantResponse
23
- */
24
- items: Array<TenantUserInTenantResponse>;
25
- /**
26
- * Total number of items
27
- * @type {number}
28
- * @memberof PaginatedResponseTenantUserInTenantResponse
29
- */
30
- total: number;
31
- /**
32
- * Number of items per page
33
- * @type {number}
34
- * @memberof PaginatedResponseTenantUserInTenantResponse
35
- */
36
- limit: number;
37
- /**
38
- * Number of items to skip
39
- * @type {number}
40
- * @memberof PaginatedResponseTenantUserInTenantResponse
41
- */
42
- offset: number;
43
- }
44
- /**
45
- * Check if a given object implements the PaginatedResponseTenantUserInTenantResponse interface.
46
- */
47
- export declare function instanceOfPaginatedResponseTenantUserInTenantResponse(value: object): value is PaginatedResponseTenantUserInTenantResponse;
48
- export declare function PaginatedResponseTenantUserInTenantResponseFromJSON(json: any): PaginatedResponseTenantUserInTenantResponse;
49
- export declare function PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserInTenantResponse;
50
- export declare function PaginatedResponseTenantUserInTenantResponseToJSON(json: any): PaginatedResponseTenantUserInTenantResponse;
51
- export declare function PaginatedResponseTenantUserInTenantResponseToJSONTyped(value?: PaginatedResponseTenantUserInTenantResponse | null, ignoreDiscriminator?: boolean): any;
52
- export declare const PaginatedResponseTenantUserInTenantResponsePropertyValidationAttributesMap: {
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
- };
@@ -1,78 +0,0 @@
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.PaginatedResponseTenantUserInTenantResponsePropertyValidationAttributesMap = void 0;
17
- exports.instanceOfPaginatedResponseTenantUserInTenantResponse = instanceOfPaginatedResponseTenantUserInTenantResponse;
18
- exports.PaginatedResponseTenantUserInTenantResponseFromJSON = PaginatedResponseTenantUserInTenantResponseFromJSON;
19
- exports.PaginatedResponseTenantUserInTenantResponseFromJSONTyped = PaginatedResponseTenantUserInTenantResponseFromJSONTyped;
20
- exports.PaginatedResponseTenantUserInTenantResponseToJSON = PaginatedResponseTenantUserInTenantResponseToJSON;
21
- exports.PaginatedResponseTenantUserInTenantResponseToJSONTyped = PaginatedResponseTenantUserInTenantResponseToJSONTyped;
22
- const TenantUserInTenantResponse_1 = require("./TenantUserInTenantResponse");
23
- /**
24
- * Check if a given object implements the PaginatedResponseTenantUserInTenantResponse interface.
25
- */
26
- function instanceOfPaginatedResponseTenantUserInTenantResponse(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 PaginatedResponseTenantUserInTenantResponseFromJSON(json) {
38
- return PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json, false);
39
- }
40
- function PaginatedResponseTenantUserInTenantResponseFromJSONTyped(json, ignoreDiscriminator) {
41
- if (json == null) {
42
- return json;
43
- }
44
- return {
45
- 'items': (json['items'].map(TenantUserInTenantResponse_1.TenantUserInTenantResponseFromJSON)),
46
- 'total': json['total'],
47
- 'limit': json['limit'],
48
- 'offset': json['offset'],
49
- };
50
- }
51
- function PaginatedResponseTenantUserInTenantResponseToJSON(json) {
52
- return PaginatedResponseTenantUserInTenantResponseToJSONTyped(json, false);
53
- }
54
- function PaginatedResponseTenantUserInTenantResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'items': (value['items'].map(TenantUserInTenantResponse_1.TenantUserInTenantResponseToJSON)),
60
- 'total': value['total'],
61
- 'limit': value['limit'],
62
- 'offset': value['offset'],
63
- };
64
- }
65
- exports.PaginatedResponseTenantUserInTenantResponsePropertyValidationAttributesMap = {
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
- };