@knowledge-stack/ksapi 1.41.0 → 1.42.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 (133) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +18 -9
  3. package/dist/apis/ApiKeysApi.d.ts +187 -0
  4. package/dist/apis/ApiKeysApi.js +193 -0
  5. package/dist/apis/AuthApi.d.ts +6 -0
  6. package/dist/apis/AuthApi.js +6 -0
  7. package/dist/apis/ChunkLineagesApi.d.ts +9 -0
  8. package/dist/apis/ChunkLineagesApi.js +9 -0
  9. package/dist/apis/ChunksApi.d.ts +24 -0
  10. package/dist/apis/ChunksApi.js +24 -0
  11. package/dist/apis/DocumentVersionsApi.d.ts +21 -0
  12. package/dist/apis/DocumentVersionsApi.js +21 -0
  13. package/dist/apis/DocumentsApi.d.ts +21 -0
  14. package/dist/apis/DocumentsApi.js +21 -0
  15. package/dist/apis/FoldersApi.d.ts +21 -0
  16. package/dist/apis/FoldersApi.js +21 -0
  17. package/dist/apis/InvitesApi.d.ts +12 -0
  18. package/dist/apis/InvitesApi.js +12 -0
  19. package/dist/apis/PathPartsApi.d.ts +18 -0
  20. package/dist/apis/PathPartsApi.js +18 -0
  21. package/dist/apis/SectionsApi.d.ts +12 -0
  22. package/dist/apis/SectionsApi.js +12 -0
  23. package/dist/apis/TagsApi.d.ts +15 -0
  24. package/dist/apis/TagsApi.js +15 -0
  25. package/dist/apis/TenantsApi.d.ts +24 -0
  26. package/dist/apis/TenantsApi.js +24 -0
  27. package/dist/apis/ThreadMessagesApi.d.ts +9 -0
  28. package/dist/apis/ThreadMessagesApi.js +9 -0
  29. package/dist/apis/ThreadsApi.d.ts +21 -0
  30. package/dist/apis/ThreadsApi.js +21 -0
  31. package/dist/apis/UserPermissionsApi.d.ts +12 -0
  32. package/dist/apis/UserPermissionsApi.js +12 -0
  33. package/dist/apis/UsersApi.d.ts +6 -0
  34. package/dist/apis/UsersApi.js +6 -0
  35. package/dist/apis/WorkflowsApi.d.ts +9 -0
  36. package/dist/apis/WorkflowsApi.js +9 -0
  37. package/dist/apis/index.d.ts +1 -0
  38. package/dist/apis/index.js +1 -0
  39. package/dist/esm/apis/ApiKeysApi.d.ts +187 -0
  40. package/dist/esm/apis/ApiKeysApi.js +189 -0
  41. package/dist/esm/apis/AuthApi.d.ts +6 -0
  42. package/dist/esm/apis/AuthApi.js +6 -0
  43. package/dist/esm/apis/ChunkLineagesApi.d.ts +9 -0
  44. package/dist/esm/apis/ChunkLineagesApi.js +9 -0
  45. package/dist/esm/apis/ChunksApi.d.ts +24 -0
  46. package/dist/esm/apis/ChunksApi.js +24 -0
  47. package/dist/esm/apis/DocumentVersionsApi.d.ts +21 -0
  48. package/dist/esm/apis/DocumentVersionsApi.js +21 -0
  49. package/dist/esm/apis/DocumentsApi.d.ts +21 -0
  50. package/dist/esm/apis/DocumentsApi.js +21 -0
  51. package/dist/esm/apis/FoldersApi.d.ts +21 -0
  52. package/dist/esm/apis/FoldersApi.js +21 -0
  53. package/dist/esm/apis/InvitesApi.d.ts +12 -0
  54. package/dist/esm/apis/InvitesApi.js +12 -0
  55. package/dist/esm/apis/PathPartsApi.d.ts +18 -0
  56. package/dist/esm/apis/PathPartsApi.js +18 -0
  57. package/dist/esm/apis/SectionsApi.d.ts +12 -0
  58. package/dist/esm/apis/SectionsApi.js +12 -0
  59. package/dist/esm/apis/TagsApi.d.ts +15 -0
  60. package/dist/esm/apis/TagsApi.js +15 -0
  61. package/dist/esm/apis/TenantsApi.d.ts +24 -0
  62. package/dist/esm/apis/TenantsApi.js +24 -0
  63. package/dist/esm/apis/ThreadMessagesApi.d.ts +9 -0
  64. package/dist/esm/apis/ThreadMessagesApi.js +9 -0
  65. package/dist/esm/apis/ThreadsApi.d.ts +21 -0
  66. package/dist/esm/apis/ThreadsApi.js +21 -0
  67. package/dist/esm/apis/UserPermissionsApi.d.ts +12 -0
  68. package/dist/esm/apis/UserPermissionsApi.js +12 -0
  69. package/dist/esm/apis/UsersApi.d.ts +6 -0
  70. package/dist/esm/apis/UsersApi.js +6 -0
  71. package/dist/esm/apis/WorkflowsApi.d.ts +9 -0
  72. package/dist/esm/apis/WorkflowsApi.js +9 -0
  73. package/dist/esm/apis/index.d.ts +1 -0
  74. package/dist/esm/apis/index.js +1 -0
  75. package/dist/esm/models/ApiKeyResponse.d.ts +65 -0
  76. package/dist/esm/models/ApiKeyResponse.js +56 -0
  77. package/dist/esm/models/CreateApiKeyRequest.d.ts +47 -0
  78. package/dist/esm/models/CreateApiKeyRequest.js +49 -0
  79. package/dist/esm/models/CreateApiKeyResponse.d.ts +71 -0
  80. package/dist/esm/models/CreateApiKeyResponse.js +60 -0
  81. package/dist/esm/models/index.d.ts +3 -0
  82. package/dist/esm/models/index.js +3 -0
  83. package/dist/models/ApiKeyResponse.d.ts +65 -0
  84. package/dist/models/ApiKeyResponse.js +64 -0
  85. package/dist/models/CreateApiKeyRequest.d.ts +47 -0
  86. package/dist/models/CreateApiKeyRequest.js +57 -0
  87. package/dist/models/CreateApiKeyResponse.d.ts +71 -0
  88. package/dist/models/CreateApiKeyResponse.js +68 -0
  89. package/dist/models/index.d.ts +3 -0
  90. package/dist/models/index.js +3 -0
  91. package/docs/ApiKeyResponse.md +41 -0
  92. package/docs/ApiKeysApi.md +293 -0
  93. package/docs/AuthApi.md +8 -2
  94. package/docs/ChunkLineagesApi.md +12 -3
  95. package/docs/ChunksApi.md +32 -8
  96. package/docs/CreateApiKeyRequest.md +35 -0
  97. package/docs/CreateApiKeyResponse.md +43 -0
  98. package/docs/DocumentVersionsApi.md +28 -7
  99. package/docs/DocumentsApi.md +28 -7
  100. package/docs/FoldersApi.md +28 -7
  101. package/docs/InvitesApi.md +16 -4
  102. package/docs/PathPartsApi.md +24 -6
  103. package/docs/SectionsApi.md +16 -4
  104. package/docs/TagsApi.md +20 -5
  105. package/docs/TenantsApi.md +32 -8
  106. package/docs/ThreadMessagesApi.md +12 -3
  107. package/docs/ThreadsApi.md +28 -7
  108. package/docs/UserPermissionsApi.md +16 -4
  109. package/docs/UsersApi.md +8 -2
  110. package/docs/WorkflowsApi.md +12 -3
  111. package/package.json +1 -1
  112. package/src/apis/ApiKeysApi.ts +350 -0
  113. package/src/apis/AuthApi.ts +14 -0
  114. package/src/apis/ChunkLineagesApi.ts +21 -0
  115. package/src/apis/ChunksApi.ts +56 -0
  116. package/src/apis/DocumentVersionsApi.ts +49 -0
  117. package/src/apis/DocumentsApi.ts +49 -0
  118. package/src/apis/FoldersApi.ts +49 -0
  119. package/src/apis/InvitesApi.ts +28 -0
  120. package/src/apis/PathPartsApi.ts +42 -0
  121. package/src/apis/SectionsApi.ts +28 -0
  122. package/src/apis/TagsApi.ts +35 -0
  123. package/src/apis/TenantsApi.ts +56 -0
  124. package/src/apis/ThreadMessagesApi.ts +21 -0
  125. package/src/apis/ThreadsApi.ts +49 -0
  126. package/src/apis/UserPermissionsApi.ts +28 -0
  127. package/src/apis/UsersApi.ts +14 -0
  128. package/src/apis/WorkflowsApi.ts +21 -0
  129. package/src/apis/index.ts +1 -0
  130. package/src/models/ApiKeyResponse.ts +110 -0
  131. package/src/models/CreateApiKeyRequest.ts +87 -0
  132. package/src/models/CreateApiKeyResponse.ts +119 -0
  133. package/src/models/index.ts +3 -0
@@ -0,0 +1,47 @@
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
+ * Request to create a new API key.
14
+ * @export
15
+ * @interface CreateApiKeyRequest
16
+ */
17
+ export interface CreateApiKeyRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateApiKeyRequest
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateApiKeyRequest interface.
27
+ */
28
+ export declare function instanceOfCreateApiKeyRequest(value: object): value is CreateApiKeyRequest;
29
+ export declare function CreateApiKeyRequestFromJSON(json: any): CreateApiKeyRequest;
30
+ export declare function CreateApiKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiKeyRequest;
31
+ export declare function CreateApiKeyRequestToJSON(json: any): CreateApiKeyRequest;
32
+ export declare function CreateApiKeyRequestToJSONTyped(value?: CreateApiKeyRequest | null, ignoreDiscriminator?: boolean): any;
33
+ export declare const CreateApiKeyRequestPropertyValidationAttributesMap: {
34
+ [property: string]: {
35
+ maxLength?: number;
36
+ minLength?: number;
37
+ pattern?: string;
38
+ maximum?: number;
39
+ exclusiveMaximum?: boolean;
40
+ minimum?: number;
41
+ exclusiveMinimum?: boolean;
42
+ multipleOf?: number;
43
+ maxItems?: number;
44
+ minItems?: number;
45
+ uniqueItems?: boolean;
46
+ };
47
+ };
@@ -0,0 +1,49 @@
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
+ * Check if a given object implements the CreateApiKeyRequest interface.
16
+ */
17
+ export function instanceOfCreateApiKeyRequest(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CreateApiKeyRequestFromJSON(json) {
23
+ return CreateApiKeyRequestFromJSONTyped(json, false);
24
+ }
25
+ export function CreateApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ };
32
+ }
33
+ export function CreateApiKeyRequestToJSON(json) {
34
+ return CreateApiKeyRequestToJSONTyped(json, false);
35
+ }
36
+ export function CreateApiKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ };
43
+ }
44
+ export const CreateApiKeyRequestPropertyValidationAttributesMap = {
45
+ name: {
46
+ maxLength: 100,
47
+ minLength: 1,
48
+ },
49
+ };
@@ -0,0 +1,71 @@
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
+ * Response after creating an API key. Contains the full key (shown once).
14
+ * @export
15
+ * @interface CreateApiKeyResponse
16
+ */
17
+ export interface CreateApiKeyResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateApiKeyResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateApiKeyResponse
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateApiKeyResponse
34
+ */
35
+ key: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateApiKeyResponse
40
+ */
41
+ keySuffix: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof CreateApiKeyResponse
46
+ */
47
+ createdAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the CreateApiKeyResponse interface.
51
+ */
52
+ export declare function instanceOfCreateApiKeyResponse(value: object): value is CreateApiKeyResponse;
53
+ export declare function CreateApiKeyResponseFromJSON(json: any): CreateApiKeyResponse;
54
+ export declare function CreateApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiKeyResponse;
55
+ export declare function CreateApiKeyResponseToJSON(json: any): CreateApiKeyResponse;
56
+ export declare function CreateApiKeyResponseToJSONTyped(value?: CreateApiKeyResponse | null, ignoreDiscriminator?: boolean): any;
57
+ export declare const CreateApiKeyResponsePropertyValidationAttributesMap: {
58
+ [property: string]: {
59
+ maxLength?: number;
60
+ minLength?: number;
61
+ pattern?: string;
62
+ maximum?: number;
63
+ exclusiveMaximum?: boolean;
64
+ minimum?: number;
65
+ exclusiveMinimum?: boolean;
66
+ multipleOf?: number;
67
+ maxItems?: number;
68
+ minItems?: number;
69
+ uniqueItems?: boolean;
70
+ };
71
+ };
@@ -0,0 +1,60 @@
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
+ * Check if a given object implements the CreateApiKeyResponse interface.
16
+ */
17
+ export function instanceOfCreateApiKeyResponse(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('key' in value) || value['key'] === undefined)
23
+ return false;
24
+ if (!('keySuffix' in value) || value['keySuffix'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function CreateApiKeyResponseFromJSON(json) {
31
+ return CreateApiKeyResponseFromJSONTyped(json, false);
32
+ }
33
+ export function CreateApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'name': json['name'],
40
+ 'key': json['key'],
41
+ 'keySuffix': json['key_suffix'],
42
+ 'createdAt': (new Date(json['created_at'])),
43
+ };
44
+ }
45
+ export function CreateApiKeyResponseToJSON(json) {
46
+ return CreateApiKeyResponseToJSONTyped(json, false);
47
+ }
48
+ export function CreateApiKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'name': value['name'],
55
+ 'key': value['key'],
56
+ 'key_suffix': value['keySuffix'],
57
+ 'created_at': value['createdAt'].toISOString(),
58
+ };
59
+ }
60
+ export const CreateApiKeyResponsePropertyValidationAttributesMap = {};
@@ -1,4 +1,5 @@
1
1
  export * from './AcceptInviteResponse';
2
+ export * from './ApiKeyResponse';
2
3
  export * from './Args';
3
4
  export * from './BulkTagRequest';
4
5
  export * from './ChunkBulkResponse';
@@ -11,6 +12,8 @@ export * from './ChunkSearchRequest';
11
12
  export * from './ChunkType';
12
13
  export * from './Citation';
13
14
  export * from './ClearVersionContentsResponse';
15
+ export * from './CreateApiKeyRequest';
16
+ export * from './CreateApiKeyResponse';
14
17
  export * from './CreateChunkLineageRequest';
15
18
  export * from './CreateChunkRequest';
16
19
  export * from './CreateDocumentRequest';
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AcceptInviteResponse';
4
+ export * from './ApiKeyResponse';
4
5
  export * from './Args';
5
6
  export * from './BulkTagRequest';
6
7
  export * from './ChunkBulkResponse';
@@ -13,6 +14,8 @@ export * from './ChunkSearchRequest';
13
14
  export * from './ChunkType';
14
15
  export * from './Citation';
15
16
  export * from './ClearVersionContentsResponse';
17
+ export * from './CreateApiKeyRequest';
18
+ export * from './CreateApiKeyResponse';
16
19
  export * from './CreateChunkLineageRequest';
17
20
  export * from './CreateChunkRequest';
18
21
  export * from './CreateDocumentRequest';
@@ -0,0 +1,65 @@
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
+ * API key metadata (without the secret key).
14
+ * @export
15
+ * @interface ApiKeyResponse
16
+ */
17
+ export interface ApiKeyResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiKeyResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiKeyResponse
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiKeyResponse
34
+ */
35
+ keySuffix: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof ApiKeyResponse
40
+ */
41
+ createdAt: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ApiKeyResponse interface.
45
+ */
46
+ export declare function instanceOfApiKeyResponse(value: object): value is ApiKeyResponse;
47
+ export declare function ApiKeyResponseFromJSON(json: any): ApiKeyResponse;
48
+ export declare function ApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyResponse;
49
+ export declare function ApiKeyResponseToJSON(json: any): ApiKeyResponse;
50
+ export declare function ApiKeyResponseToJSONTyped(value?: ApiKeyResponse | null, ignoreDiscriminator?: boolean): any;
51
+ export declare const ApiKeyResponsePropertyValidationAttributesMap: {
52
+ [property: string]: {
53
+ maxLength?: number;
54
+ minLength?: number;
55
+ pattern?: string;
56
+ maximum?: number;
57
+ exclusiveMaximum?: boolean;
58
+ minimum?: number;
59
+ exclusiveMinimum?: boolean;
60
+ multipleOf?: number;
61
+ maxItems?: number;
62
+ minItems?: number;
63
+ uniqueItems?: boolean;
64
+ };
65
+ };
@@ -0,0 +1,64 @@
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.ApiKeyResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfApiKeyResponse = instanceOfApiKeyResponse;
18
+ exports.ApiKeyResponseFromJSON = ApiKeyResponseFromJSON;
19
+ exports.ApiKeyResponseFromJSONTyped = ApiKeyResponseFromJSONTyped;
20
+ exports.ApiKeyResponseToJSON = ApiKeyResponseToJSON;
21
+ exports.ApiKeyResponseToJSONTyped = ApiKeyResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the ApiKeyResponse interface.
24
+ */
25
+ function instanceOfApiKeyResponse(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('keySuffix' in value) || value['keySuffix'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ApiKeyResponseFromJSON(json) {
37
+ return ApiKeyResponseFromJSONTyped(json, false);
38
+ }
39
+ function ApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'name': json['name'],
46
+ 'keySuffix': json['key_suffix'],
47
+ 'createdAt': (new Date(json['created_at'])),
48
+ };
49
+ }
50
+ function ApiKeyResponseToJSON(json) {
51
+ return ApiKeyResponseToJSONTyped(json, false);
52
+ }
53
+ function ApiKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'key_suffix': value['keySuffix'],
61
+ 'created_at': value['createdAt'].toISOString(),
62
+ };
63
+ }
64
+ exports.ApiKeyResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,47 @@
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
+ * Request to create a new API key.
14
+ * @export
15
+ * @interface CreateApiKeyRequest
16
+ */
17
+ export interface CreateApiKeyRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateApiKeyRequest
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateApiKeyRequest interface.
27
+ */
28
+ export declare function instanceOfCreateApiKeyRequest(value: object): value is CreateApiKeyRequest;
29
+ export declare function CreateApiKeyRequestFromJSON(json: any): CreateApiKeyRequest;
30
+ export declare function CreateApiKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiKeyRequest;
31
+ export declare function CreateApiKeyRequestToJSON(json: any): CreateApiKeyRequest;
32
+ export declare function CreateApiKeyRequestToJSONTyped(value?: CreateApiKeyRequest | null, ignoreDiscriminator?: boolean): any;
33
+ export declare const CreateApiKeyRequestPropertyValidationAttributesMap: {
34
+ [property: string]: {
35
+ maxLength?: number;
36
+ minLength?: number;
37
+ pattern?: string;
38
+ maximum?: number;
39
+ exclusiveMaximum?: boolean;
40
+ minimum?: number;
41
+ exclusiveMinimum?: boolean;
42
+ multipleOf?: number;
43
+ maxItems?: number;
44
+ minItems?: number;
45
+ uniqueItems?: boolean;
46
+ };
47
+ };
@@ -0,0 +1,57 @@
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.CreateApiKeyRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateApiKeyRequest = instanceOfCreateApiKeyRequest;
18
+ exports.CreateApiKeyRequestFromJSON = CreateApiKeyRequestFromJSON;
19
+ exports.CreateApiKeyRequestFromJSONTyped = CreateApiKeyRequestFromJSONTyped;
20
+ exports.CreateApiKeyRequestToJSON = CreateApiKeyRequestToJSON;
21
+ exports.CreateApiKeyRequestToJSONTyped = CreateApiKeyRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateApiKeyRequest interface.
24
+ */
25
+ function instanceOfCreateApiKeyRequest(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CreateApiKeyRequestFromJSON(json) {
31
+ return CreateApiKeyRequestFromJSONTyped(json, false);
32
+ }
33
+ function CreateApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ function CreateApiKeyRequestToJSON(json) {
42
+ return CreateApiKeyRequestToJSONTyped(json, false);
43
+ }
44
+ function CreateApiKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'name': value['name'],
50
+ };
51
+ }
52
+ exports.CreateApiKeyRequestPropertyValidationAttributesMap = {
53
+ name: {
54
+ maxLength: 100,
55
+ minLength: 1,
56
+ },
57
+ };
@@ -0,0 +1,71 @@
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
+ * Response after creating an API key. Contains the full key (shown once).
14
+ * @export
15
+ * @interface CreateApiKeyResponse
16
+ */
17
+ export interface CreateApiKeyResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateApiKeyResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateApiKeyResponse
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateApiKeyResponse
34
+ */
35
+ key: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateApiKeyResponse
40
+ */
41
+ keySuffix: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof CreateApiKeyResponse
46
+ */
47
+ createdAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the CreateApiKeyResponse interface.
51
+ */
52
+ export declare function instanceOfCreateApiKeyResponse(value: object): value is CreateApiKeyResponse;
53
+ export declare function CreateApiKeyResponseFromJSON(json: any): CreateApiKeyResponse;
54
+ export declare function CreateApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiKeyResponse;
55
+ export declare function CreateApiKeyResponseToJSON(json: any): CreateApiKeyResponse;
56
+ export declare function CreateApiKeyResponseToJSONTyped(value?: CreateApiKeyResponse | null, ignoreDiscriminator?: boolean): any;
57
+ export declare const CreateApiKeyResponsePropertyValidationAttributesMap: {
58
+ [property: string]: {
59
+ maxLength?: number;
60
+ minLength?: number;
61
+ pattern?: string;
62
+ maximum?: number;
63
+ exclusiveMaximum?: boolean;
64
+ minimum?: number;
65
+ exclusiveMinimum?: boolean;
66
+ multipleOf?: number;
67
+ maxItems?: number;
68
+ minItems?: number;
69
+ uniqueItems?: boolean;
70
+ };
71
+ };
@@ -0,0 +1,68 @@
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.CreateApiKeyResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateApiKeyResponse = instanceOfCreateApiKeyResponse;
18
+ exports.CreateApiKeyResponseFromJSON = CreateApiKeyResponseFromJSON;
19
+ exports.CreateApiKeyResponseFromJSONTyped = CreateApiKeyResponseFromJSONTyped;
20
+ exports.CreateApiKeyResponseToJSON = CreateApiKeyResponseToJSON;
21
+ exports.CreateApiKeyResponseToJSONTyped = CreateApiKeyResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateApiKeyResponse interface.
24
+ */
25
+ function instanceOfCreateApiKeyResponse(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('key' in value) || value['key'] === undefined)
31
+ return false;
32
+ if (!('keySuffix' in value) || value['keySuffix'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function CreateApiKeyResponseFromJSON(json) {
39
+ return CreateApiKeyResponseFromJSONTyped(json, false);
40
+ }
41
+ function CreateApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'],
47
+ 'name': json['name'],
48
+ 'key': json['key'],
49
+ 'keySuffix': json['key_suffix'],
50
+ 'createdAt': (new Date(json['created_at'])),
51
+ };
52
+ }
53
+ function CreateApiKeyResponseToJSON(json) {
54
+ return CreateApiKeyResponseToJSONTyped(json, false);
55
+ }
56
+ function CreateApiKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'name': value['name'],
63
+ 'key': value['key'],
64
+ 'key_suffix': value['keySuffix'],
65
+ 'created_at': value['createdAt'].toISOString(),
66
+ };
67
+ }
68
+ exports.CreateApiKeyResponsePropertyValidationAttributesMap = {};
@@ -1,4 +1,5 @@
1
1
  export * from './AcceptInviteResponse';
2
+ export * from './ApiKeyResponse';
2
3
  export * from './Args';
3
4
  export * from './BulkTagRequest';
4
5
  export * from './ChunkBulkResponse';
@@ -11,6 +12,8 @@ export * from './ChunkSearchRequest';
11
12
  export * from './ChunkType';
12
13
  export * from './Citation';
13
14
  export * from './ClearVersionContentsResponse';
15
+ export * from './CreateApiKeyRequest';
16
+ export * from './CreateApiKeyResponse';
14
17
  export * from './CreateChunkLineageRequest';
15
18
  export * from './CreateChunkRequest';
16
19
  export * from './CreateDocumentRequest';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AcceptInviteResponse"), exports);
20
+ __exportStar(require("./ApiKeyResponse"), exports);
20
21
  __exportStar(require("./Args"), exports);
21
22
  __exportStar(require("./BulkTagRequest"), exports);
22
23
  __exportStar(require("./ChunkBulkResponse"), exports);
@@ -29,6 +30,8 @@ __exportStar(require("./ChunkSearchRequest"), exports);
29
30
  __exportStar(require("./ChunkType"), exports);
30
31
  __exportStar(require("./Citation"), exports);
31
32
  __exportStar(require("./ClearVersionContentsResponse"), exports);
33
+ __exportStar(require("./CreateApiKeyRequest"), exports);
34
+ __exportStar(require("./CreateApiKeyResponse"), exports);
32
35
  __exportStar(require("./CreateChunkLineageRequest"), exports);
33
36
  __exportStar(require("./CreateChunkRequest"), exports);
34
37
  __exportStar(require("./CreateDocumentRequest"), exports);