@usecortex_ai/node 0.2.1 → 0.3.1

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 (79) hide show
  1. package/README.md +6 -18
  2. package/dist/Client.d.ts +14 -5
  3. package/dist/Client.js +68 -12
  4. package/dist/api/resources/document/client/Client.d.ts +5 -5
  5. package/dist/api/resources/document/client/Client.js +8 -4
  6. package/dist/api/resources/embeddings/client/Client.d.ts +9 -9
  7. package/dist/api/resources/embeddings/client/Client.js +16 -12
  8. package/dist/api/resources/embeddings/client/requests/EmbeddingsCreateCollectionRequest.d.ts +1 -1
  9. package/dist/api/resources/embeddings/client/requests/EmbeddingsDeleteRequest.d.ts +3 -3
  10. package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRequest.d.ts +2 -2
  11. package/dist/api/resources/embeddings/client/requests/GetEmbeddingsBasedOnChunkIdsRequest.d.ts +3 -3
  12. package/dist/api/resources/fetch/client/Client.d.ts +6 -6
  13. package/dist/api/resources/fetch/client/Client.js +9 -5
  14. package/dist/api/resources/fetch/client/requests/FetchContentRequest.d.ts +3 -8
  15. package/dist/api/resources/index.d.ts +1 -1
  16. package/dist/api/resources/index.js +2 -2
  17. package/dist/api/resources/search/client/Client.d.ts +11 -11
  18. package/dist/api/resources/search/client/Client.js +14 -10
  19. package/dist/api/resources/search/client/requests/FullTextSearchRequest.d.ts +3 -3
  20. package/dist/api/resources/search/client/requests/QnARequest.d.ts +3 -3
  21. package/dist/api/resources/search/client/requests/SearchRequest.d.ts +5 -3
  22. package/dist/api/resources/sources/client/Client.d.ts +7 -6
  23. package/dist/api/resources/sources/client/Client.js +10 -5
  24. package/dist/api/resources/sources/client/requests/SourceBodyParams.d.ts +6 -2
  25. package/dist/api/resources/sources/client/requests/SourcesGetAllRequest.d.ts +3 -2
  26. package/dist/api/resources/tenant/client/Client.d.ts +8 -7
  27. package/dist/api/resources/tenant/client/Client.js +11 -6
  28. package/dist/api/resources/tenant/client/requests/TenantDeleteSubTenantRequest.d.ts +2 -2
  29. package/dist/api/resources/tenant/client/requests/TenantGetSubTenantIdsRequest.d.ts +1 -1
  30. package/dist/api/resources/tenant/client/requests/TenantStatsRequest.d.ts +3 -2
  31. package/dist/api/resources/upload/client/Client.d.ts +47 -32
  32. package/dist/api/resources/upload/client/Client.js +56 -31
  33. package/dist/api/resources/upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.d.ts +3 -2
  34. package/dist/api/resources/upload/client/requests/BodyBatchUploadUploadBatchUploadPost.d.ts +5 -2
  35. package/dist/api/resources/upload/client/requests/BodyUpdateFileUploadUpdateDocumentPatch.d.ts +4 -3
  36. package/dist/api/resources/upload/client/requests/BodyUploadFilesUploadUploadDocumentPost.d.ts +5 -2
  37. package/dist/api/resources/upload/client/requests/EmbeddingsUpdateRequest.d.ts +3 -2
  38. package/dist/api/resources/upload/client/requests/EmbeddingsUploadRequest.d.ts +4 -3
  39. package/dist/api/resources/upload/client/requests/UploadScrapeWebpageRequest.d.ts +5 -3
  40. package/dist/api/resources/upload/client/requests/UploadUpdateMarkdownRequest.d.ts +5 -4
  41. package/dist/api/resources/upload/client/requests/UploadUpdateTextRequest.d.ts +5 -4
  42. package/dist/api/resources/upload/client/requests/UploadUpdateWebpageRequest.d.ts +5 -4
  43. package/dist/api/resources/upload/client/requests/UploadUploadAppSourcesRequest.d.ts +3 -2
  44. package/dist/api/resources/upload/client/requests/UploadUploadMarkdownRequest.d.ts +4 -3
  45. package/dist/api/resources/upload/client/requests/UploadUploadTextRequest.d.ts +4 -3
  46. package/dist/api/resources/upload/client/requests/UploadVerifyProcessingRequest.d.ts +2 -1
  47. package/dist/api/resources/user/client/Client.d.ts +6 -4
  48. package/dist/api/resources/user/client/Client.js +13 -4
  49. package/dist/api/resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.d.ts +4 -1
  50. package/dist/api/resources/userMemory/client/Client.d.ts +19 -13
  51. package/dist/api/resources/userMemory/client/Client.js +22 -12
  52. package/dist/api/resources/userMemory/client/requests/AddUserMemoryRequest.d.ts +4 -3
  53. package/dist/api/resources/userMemory/client/requests/GenerateUserMemoryRequest.d.ts +6 -5
  54. package/dist/api/resources/userMemory/client/requests/RetrieveUserMemoryRequest.d.ts +7 -3
  55. package/dist/api/resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.d.ts +4 -3
  56. package/dist/api/resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.d.ts +3 -2
  57. package/dist/api/types/DeleteMemoryRequest.d.ts +1 -1
  58. package/dist/api/types/MarkdownUploadRequest.d.ts +2 -0
  59. package/dist/api/types/SubTenantIdsData.d.ts +2 -0
  60. package/dist/api/types/TenantStats.d.ts +2 -2
  61. package/package.json +1 -1
  62. package/dist/api/resources/sources/client/requests/SourcesGetSubTenantIdsRequest.d.ts +0 -12
  63. package/dist/api/resources/sources/client/requests/SourcesGetSubTenantIdsRequest.js +0 -5
  64. package/dist/api/resources/upload/client/requests/BodyUpdateMarkdownUploadUpdateMarkdownPatch.d.ts +0 -21
  65. package/dist/api/resources/upload/client/requests/BodyUpdateMarkdownUploadUpdateMarkdownPatch.js +0 -5
  66. package/dist/api/resources/upload/client/requests/BodyUpdateMarkdownUploadUpdateTextPatch.d.ts +0 -21
  67. package/dist/api/resources/upload/client/requests/BodyUpdateMarkdownUploadUpdateTextPatch.js +0 -5
  68. package/dist/api/resources/upload/client/requests/BodyUploadMarkdownUploadUploadMarkdownPost.d.ts +0 -19
  69. package/dist/api/resources/upload/client/requests/BodyUploadMarkdownUploadUploadMarkdownPost.js +0 -5
  70. package/dist/api/resources/upload/client/requests/BodyUploadMarkdownUploadUploadTextPost.d.ts +0 -19
  71. package/dist/api/resources/upload/client/requests/BodyUploadMarkdownUploadUploadTextPost.js +0 -5
  72. package/dist/api/resources/userMemory/client/requests/UserMemoryAddUserMemoryRequest.d.ts +0 -16
  73. package/dist/api/resources/userMemory/client/requests/UserMemoryAddUserMemoryRequest.js +0 -5
  74. package/dist/api/resources/userMemory/client/requests/UserMemoryGenerateUserMemoryRequest.d.ts +0 -18
  75. package/dist/api/resources/userMemory/client/requests/UserMemoryGenerateUserMemoryRequest.js +0 -5
  76. package/dist/api/resources/userMemory/client/requests/UserMemoryRetrieveUserMemoryRequest.d.ts +0 -17
  77. package/dist/api/resources/userMemory/client/requests/UserMemoryRetrieveUserMemoryRequest.js +0 -5
  78. package/dist/api/types/SourceContent.d.ts +0 -11
  79. package/dist/api/types/SourceContent.js +0 -5
@@ -9,7 +9,7 @@ export declare namespace UserMemory {
9
9
  environment?: core.Supplier<environments.CortexAIEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token: core.Supplier<core.BearerToken>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -28,7 +28,7 @@ export declare namespace UserMemory {
28
28
  }
29
29
  export declare class UserMemory {
30
30
  protected readonly _options: UserMemory.Options;
31
- constructor(_options: UserMemory.Options);
31
+ constructor(_options?: UserMemory.Options);
32
32
  /**
33
33
  * Retrieve all stored user memories for your tenant.
34
34
  *
@@ -51,7 +51,8 @@ export declare class UserMemory {
51
51
  *
52
52
  * @example
53
53
  * await client.userMemory.listUserMemories({
54
- * tenant_id: "tenant_id"
54
+ * tenant_id: "tenant_1234",
55
+ * sub_tenant_id: "sub_tenant_4567"
55
56
  * })
56
57
  */
57
58
  listUserMemories(request: CortexAI.UserMemoryListUserMemoriesRequest, requestOptions?: UserMemory.RequestOptions): core.HttpResponsePromise<CortexAI.ListUserMemoriesResponse>;
@@ -78,8 +79,9 @@ export declare class UserMemory {
78
79
  *
79
80
  * @example
80
81
  * await client.userMemory.deleteUserMemory({
81
- * tenant_id: "tenant_id",
82
- * memory_id: "memory_id"
82
+ * tenant_id: "tenant_1234",
83
+ * memory_id: "memory_1234",
84
+ * sub_tenant_id: "sub_tenant_4567"
83
85
  * })
84
86
  */
85
87
  deleteUserMemory(request: CortexAI.UserMemoryDeleteUserMemoryRequest, requestOptions?: UserMemory.RequestOptions): core.HttpResponsePromise<CortexAI.DeleteUserMemoryResponse>;
@@ -107,8 +109,10 @@ export declare class UserMemory {
107
109
  *
108
110
  * @example
109
111
  * await client.userMemory.retrieveUserMemory({
110
- * tenant_id: "tenant_id",
111
- * query: "query"
112
+ * tenant_id: "tenant_1234",
113
+ * sub_tenant_id: "sub_tenant_4567",
114
+ * max_count: 5,
115
+ * query: "Which mode does user prefer"
112
116
  * })
113
117
  */
114
118
  retrieveUserMemory(request: CortexAI.RetrieveUserMemoryRequest, requestOptions?: UserMemory.RequestOptions): core.HttpResponsePromise<CortexAI.RetrieveUserMemoryResponse>;
@@ -136,9 +140,10 @@ export declare class UserMemory {
136
140
  *
137
141
  * @example
138
142
  * await client.userMemory.generateUserMemory({
139
- * tenant_id: "tenant_id",
140
- * user_query: "user_query",
141
- * user_name: "user_name"
143
+ * tenant_id: "tenant_1234",
144
+ * sub_tenant_id: "sub_tenant_4567",
145
+ * user_message: "I prefer detailed technical explanations and works in the Pacific timezone",
146
+ * user_name: "John Doe"
142
147
  * })
143
148
  */
144
149
  generateUserMemory(request: CortexAI.GenerateUserMemoryRequest, requestOptions?: UserMemory.RequestOptions): core.HttpResponsePromise<CortexAI.GenerateUserMemoryResponse>;
@@ -166,11 +171,12 @@ export declare class UserMemory {
166
171
  *
167
172
  * @example
168
173
  * await client.userMemory.addUserMemory({
169
- * tenant_id: "tenant_id",
170
- * user_memory: "user_memory"
174
+ * tenant_id: "tenant_1234",
175
+ * sub_tenant_id: "sub_tenant_4567",
176
+ * user_memory: "I prefer detailed technical explanations and works in the Pacific timezone"
171
177
  * })
172
178
  */
173
179
  addUserMemory(request: CortexAI.AddUserMemoryRequest, requestOptions?: UserMemory.RequestOptions): core.HttpResponsePromise<CortexAI.AddUserMemoryResponse>;
174
180
  private __addUserMemory;
175
- protected _getAuthorizationHeader(): Promise<string>;
181
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
176
182
  }
@@ -44,7 +44,7 @@ const CortexAI = __importStar(require("../../../index.js"));
44
44
  const headers_js_1 = require("../../../../core/headers.js");
45
45
  const errors = __importStar(require("../../../../errors/index.js"));
46
46
  class UserMemory {
47
- constructor(_options) {
47
+ constructor(_options = {}) {
48
48
  this._options = _options;
49
49
  }
50
50
  /**
@@ -69,7 +69,8 @@ class UserMemory {
69
69
  *
70
70
  * @example
71
71
  * await client.userMemory.listUserMemories({
72
- * tenant_id: "tenant_id"
72
+ * tenant_id: "tenant_1234",
73
+ * sub_tenant_id: "sub_tenant_4567"
73
74
  * })
74
75
  */
75
76
  listUserMemories(request, requestOptions) {
@@ -158,8 +159,9 @@ class UserMemory {
158
159
  *
159
160
  * @example
160
161
  * await client.userMemory.deleteUserMemory({
161
- * tenant_id: "tenant_id",
162
- * memory_id: "memory_id"
162
+ * tenant_id: "tenant_1234",
163
+ * memory_id: "memory_1234",
164
+ * sub_tenant_id: "sub_tenant_4567"
163
165
  * })
164
166
  */
165
167
  deleteUserMemory(request, requestOptions) {
@@ -250,8 +252,10 @@ class UserMemory {
250
252
  *
251
253
  * @example
252
254
  * await client.userMemory.retrieveUserMemory({
253
- * tenant_id: "tenant_id",
254
- * query: "query"
255
+ * tenant_id: "tenant_1234",
256
+ * sub_tenant_id: "sub_tenant_4567",
257
+ * max_count: 5,
258
+ * query: "Which mode does user prefer"
255
259
  * })
256
260
  */
257
261
  retrieveUserMemory(request, requestOptions) {
@@ -347,9 +351,10 @@ class UserMemory {
347
351
  *
348
352
  * @example
349
353
  * await client.userMemory.generateUserMemory({
350
- * tenant_id: "tenant_id",
351
- * user_query: "user_query",
352
- * user_name: "user_name"
354
+ * tenant_id: "tenant_1234",
355
+ * sub_tenant_id: "sub_tenant_4567",
356
+ * user_message: "I prefer detailed technical explanations and works in the Pacific timezone",
357
+ * user_name: "John Doe"
353
358
  * })
354
359
  */
355
360
  generateUserMemory(request, requestOptions) {
@@ -442,8 +447,9 @@ class UserMemory {
442
447
  *
443
448
  * @example
444
449
  * await client.userMemory.addUserMemory({
445
- * tenant_id: "tenant_id",
446
- * user_memory: "user_memory"
450
+ * tenant_id: "tenant_1234",
451
+ * sub_tenant_id: "sub_tenant_4567",
452
+ * user_memory: "I prefer detailed technical explanations and works in the Pacific timezone"
447
453
  * })
448
454
  */
449
455
  addUserMemory(request, requestOptions) {
@@ -514,7 +520,11 @@ class UserMemory {
514
520
  }
515
521
  }
516
522
  async _getAuthorizationHeader() {
517
- return `Bearer ${await core.Supplier.get(this._options.token)}`;
523
+ const bearer = await core.Supplier.get(this._options.token);
524
+ if (bearer != null) {
525
+ return `Bearer ${bearer}`;
526
+ }
527
+ return undefined;
518
528
  }
519
529
  }
520
530
  exports.UserMemory = UserMemory;
@@ -4,14 +4,15 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * tenant_id: "tenant_id",
8
- * user_memory: "user_memory"
7
+ * tenant_id: "tenant_1234",
8
+ * sub_tenant_id: "sub_tenant_4567",
9
+ * user_memory: "I prefer detailed technical explanations and works in the Pacific timezone"
9
10
  * }
10
11
  */
11
12
  export interface AddUserMemoryRequest {
12
13
  /** Unique identifier for the tenant/organization */
13
14
  tenant_id: string;
14
- /** Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id */
15
+ /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
15
16
  sub_tenant_id?: string;
16
17
  /** The memory content to store for future reference */
17
18
  user_memory: string;
@@ -4,18 +4,19 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * tenant_id: "tenant_id",
8
- * user_query: "user_query",
9
- * user_name: "user_name"
7
+ * tenant_id: "tenant_1234",
8
+ * sub_tenant_id: "sub_tenant_4567",
9
+ * user_message: "I prefer detailed technical explanations and works in the Pacific timezone",
10
+ * user_name: "John Doe"
10
11
  * }
11
12
  */
12
13
  export interface GenerateUserMemoryRequest {
13
14
  /** Unique identifier for the tenant/organization */
14
15
  tenant_id: string;
15
- /** Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id */
16
+ /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
16
17
  sub_tenant_id?: string;
17
18
  /** Your query or context for AI memory generation */
18
- user_query: string;
19
+ user_message: string;
19
20
  /** Your name to personalize the generated memories */
20
21
  user_name: string;
21
22
  }
@@ -4,17 +4,21 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * tenant_id: "tenant_id",
8
- * query: "query"
7
+ * tenant_id: "tenant_1234",
8
+ * sub_tenant_id: "sub_tenant_4567",
9
+ * max_count: 5,
10
+ * query: "Which mode does user prefer"
9
11
  * }
10
12
  */
11
13
  export interface RetrieveUserMemoryRequest {
12
14
  /** Unique identifier for the tenant/organization */
13
15
  tenant_id: string;
14
- /** Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id */
16
+ /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
15
17
  sub_tenant_id?: string;
16
18
  /** Maximum number of memories to return (default: 5) */
17
19
  max_count?: number;
18
20
  /** Search query to find relevant user memories */
19
21
  query: string;
22
+ /** User's name to enhance personalisation */
23
+ user_name?: string;
20
24
  }
@@ -4,8 +4,9 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * tenant_id: "tenant_id",
8
- * memory_id: "memory_id"
7
+ * tenant_id: "tenant_1234",
8
+ * memory_id: "memory_1234",
9
+ * sub_tenant_id: "sub_tenant_4567"
9
10
  * }
10
11
  */
11
12
  export interface UserMemoryDeleteUserMemoryRequest {
@@ -13,6 +14,6 @@ export interface UserMemoryDeleteUserMemoryRequest {
13
14
  tenant_id: string;
14
15
  /** Unique identifier of the memory to delete */
15
16
  memory_id: string;
16
- /** Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id */
17
+ /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
17
18
  sub_tenant_id?: string;
18
19
  }
@@ -4,12 +4,13 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * tenant_id: "tenant_id"
7
+ * tenant_id: "tenant_1234",
8
+ * sub_tenant_id: "sub_tenant_4567"
8
9
  * }
9
10
  */
10
11
  export interface UserMemoryListUserMemoriesRequest {
11
12
  /** Unique identifier for the tenant/organization */
12
13
  tenant_id: string;
13
- /** Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id */
14
+ /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
14
15
  sub_tenant_id?: string;
15
16
  }
@@ -6,6 +6,6 @@ export interface DeleteMemoryRequest {
6
6
  tenant_id: string;
7
7
  /** List of source IDs to delete */
8
8
  source_ids: string[];
9
- /** Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id */
9
+ /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
10
10
  sub_tenant_id?: string;
11
11
  }
@@ -4,6 +4,8 @@
4
4
  export interface MarkdownUploadRequest {
5
5
  /** The text or markdown content to upload */
6
6
  content: string;
7
+ /** Optional file ID for the uploaded content. If not provided, will be generated automatically. */
8
+ file_id?: string;
7
9
  /**
8
10
  * JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
9
11
  *
@@ -8,6 +8,8 @@ export interface SubTenantIdsData {
8
8
  sub_tenant_ids: string[];
9
9
  /** Total number of sub-tenants found */
10
10
  count: number;
11
+ /** Schema configuration for the tenant collection */
12
+ tenant_schema?: Record<string, unknown>;
11
13
  /** Indicates whether the sub-tenant retrieval was successful */
12
14
  success?: boolean;
13
15
  /** Response message describing the operation result */
@@ -4,8 +4,8 @@
4
4
  export interface TenantStats {
5
5
  /** Total number of objects stored for this tenant */
6
6
  object_count: number;
7
- /** Name identifier for the tenant */
8
- tenant_name: string;
7
+ /** identifier for the tenant */
8
+ tenant_id: string;
9
9
  /** Dimensions of the vector embeddings used for this tenant. Null when the tenant is empty. */
10
10
  vector_dimension?: number;
11
11
  /** Indicates whether the stats retrieval was successful */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usecortex_ai/node",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "The official TypeScript SDK for the Cortex AI platform.",
5
5
  "author": "Nishkarsh Shrivastava <nishkarsh@usecortex.ai>",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * tenant_id: "tenant_id"
8
- * }
9
- */
10
- export interface SourcesGetSubTenantIdsRequest {
11
- tenant_id: string;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CortexAI from "../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * source_id: "source_id",
9
- * tenant_id: "tenant_id",
10
- * request: {
11
- * content: "content"
12
- * }
13
- * }
14
- */
15
- export interface BodyUpdateMarkdownUploadUpdateMarkdownPatch {
16
- source_id: string;
17
- tenant_id: string;
18
- sub_tenant_id?: string;
19
- request: CortexAI.MarkdownUploadRequest;
20
- relations?: CortexAI.Relations;
21
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CortexAI from "../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * source_id: "source_id",
9
- * tenant_id: "tenant_id",
10
- * request: {
11
- * content: "content"
12
- * }
13
- * }
14
- */
15
- export interface BodyUpdateMarkdownUploadUpdateTextPatch {
16
- source_id: string;
17
- tenant_id: string;
18
- sub_tenant_id?: string;
19
- request: CortexAI.MarkdownUploadRequest;
20
- relations?: CortexAI.Relations;
21
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CortexAI from "../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * tenant_id: "tenant_id",
9
- * request: {
10
- * content: "content"
11
- * }
12
- * }
13
- */
14
- export interface BodyUploadMarkdownUploadUploadMarkdownPost {
15
- tenant_id: string;
16
- sub_tenant_id?: string;
17
- request: CortexAI.MarkdownUploadRequest;
18
- relations?: CortexAI.Relations;
19
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CortexAI from "../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * tenant_id: "tenant_id",
9
- * request: {
10
- * content: "content"
11
- * }
12
- * }
13
- */
14
- export interface BodyUploadMarkdownUploadUploadTextPost {
15
- tenant_id: string;
16
- sub_tenant_id?: string;
17
- request: CortexAI.MarkdownUploadRequest;
18
- relations?: CortexAI.Relations;
19
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * tenant_id: "tenant_id",
8
- * user_memory: "user_memory",
9
- * sub_tenant_id: "sub_tenant_id"
10
- * }
11
- */
12
- export interface UserMemoryAddUserMemoryRequest {
13
- tenant_id: string;
14
- user_memory: string;
15
- sub_tenant_id: string;
16
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * tenant_id: "tenant_id",
8
- * user_query: "user_query",
9
- * user_name: "user_name",
10
- * sub_tenant_id: "sub_tenant_id"
11
- * }
12
- */
13
- export interface UserMemoryGenerateUserMemoryRequest {
14
- tenant_id: string;
15
- user_query: string;
16
- user_name: string;
17
- sub_tenant_id: string;
18
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * tenant_id: "tenant_id",
8
- * query: "query",
9
- * sub_tenant_id: "sub_tenant_id"
10
- * }
11
- */
12
- export interface UserMemoryRetrieveUserMemoryRequest {
13
- tenant_id: string;
14
- query: string;
15
- sub_tenant_id: string;
16
- max_count?: number;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SourceContent {
5
- text?: string;
6
- html_base64?: string;
7
- csv_base64?: string;
8
- markdown?: string;
9
- files?: Record<string, unknown>[];
10
- layout?: Record<string, unknown>[];
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });