usecortex-ai 0.2.2__py3-none-any.whl → 0.3.1__py3-none-any.whl

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.
@@ -38,6 +38,7 @@ class RawUploadClient:
38
38
  tenant_id: str,
39
39
  files: typing.List[core.File],
40
40
  sub_tenant_id: typing.Optional[str] = None,
41
+ file_ids: typing.Optional[str] = OMIT,
41
42
  tenant_metadata: typing.Optional[str] = OMIT,
42
43
  document_metadata: typing.Optional[str] = OMIT,
43
44
  request_options: typing.Optional[RequestOptions] = None,
@@ -58,7 +59,10 @@ class RawUploadClient:
58
59
  See core.File for more documentation
59
60
 
60
61
  sub_tenant_id : typing.Optional[str]
61
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
62
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
63
+
64
+ file_ids : typing.Optional[str]
65
+ Optional JSON string array of file IDs for the uploaded content. If not provided or empty, will be generated automatically.
62
66
 
63
67
  tenant_metadata : typing.Optional[str]
64
68
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -89,6 +93,7 @@ class RawUploadClient:
89
93
  "sub_tenant_id": sub_tenant_id,
90
94
  },
91
95
  data={
96
+ "file_ids": file_ids,
92
97
  "tenant_metadata": tenant_metadata,
93
98
  "document_metadata": document_metadata,
94
99
  },
@@ -218,7 +223,7 @@ class RawUploadClient:
218
223
  See core.File for more documentation
219
224
 
220
225
  sub_tenant_id : typing.Optional[str]
221
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
226
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
222
227
 
223
228
  source_ids : typing.Optional[typing.List[str]]
224
229
  List of source IDs corresponding to the files being updated
@@ -361,6 +366,7 @@ class RawUploadClient:
361
366
  tenant_id: str,
362
367
  file: core.File,
363
368
  sub_tenant_id: typing.Optional[str] = None,
369
+ file_id: typing.Optional[str] = OMIT,
364
370
  tenant_metadata: typing.Optional[str] = OMIT,
365
371
  document_metadata: typing.Optional[str] = OMIT,
366
372
  request_options: typing.Optional[RequestOptions] = None,
@@ -381,7 +387,10 @@ class RawUploadClient:
381
387
  See core.File for more documentation
382
388
 
383
389
  sub_tenant_id : typing.Optional[str]
384
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
390
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
391
+
392
+ file_id : typing.Optional[str]
393
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
385
394
 
386
395
  tenant_metadata : typing.Optional[str]
387
396
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -412,6 +421,7 @@ class RawUploadClient:
412
421
  "sub_tenant_id": sub_tenant_id,
413
422
  },
414
423
  data={
424
+ "file_id": file_id,
415
425
  "tenant_metadata": tenant_metadata,
416
426
  "document_metadata": document_metadata,
417
427
  },
@@ -544,7 +554,7 @@ class RawUploadClient:
544
554
  See core.File for more documentation
545
555
 
546
556
  sub_tenant_id : typing.Optional[str]
547
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
557
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
548
558
 
549
559
  tenant_metadata : typing.Optional[str]
550
560
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -701,7 +711,7 @@ class RawUploadClient:
701
711
  request : typing.Sequence[SourceModel]
702
712
 
703
713
  sub_tenant_id : typing.Optional[str]
704
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
714
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
705
715
 
706
716
  request_options : typing.Optional[RequestOptions]
707
717
  Request-specific configuration.
@@ -825,6 +835,7 @@ class RawUploadClient:
825
835
  tenant_id: str,
826
836
  content: str,
827
837
  sub_tenant_id: typing.Optional[str] = None,
838
+ file_id: typing.Optional[str] = OMIT,
828
839
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
829
840
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
830
841
  request_options: typing.Optional[RequestOptions] = None,
@@ -845,7 +856,10 @@ class RawUploadClient:
845
856
  The text or markdown content to upload
846
857
 
847
858
  sub_tenant_id : typing.Optional[str]
848
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
859
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
860
+
861
+ file_id : typing.Optional[str]
862
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
849
863
 
850
864
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
851
865
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -875,6 +889,7 @@ class RawUploadClient:
875
889
  },
876
890
  json={
877
891
  "content": content,
892
+ "file_id": file_id,
878
893
  "tenant_metadata": tenant_metadata,
879
894
  "document_metadata": document_metadata,
880
895
  },
@@ -982,6 +997,7 @@ class RawUploadClient:
982
997
  tenant_id: str,
983
998
  content: str,
984
999
  sub_tenant_id: typing.Optional[str] = None,
1000
+ file_id: typing.Optional[str] = OMIT,
985
1001
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
986
1002
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
987
1003
  request_options: typing.Optional[RequestOptions] = None,
@@ -1002,7 +1018,10 @@ class RawUploadClient:
1002
1018
  The text or markdown content to upload
1003
1019
 
1004
1020
  sub_tenant_id : typing.Optional[str]
1005
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1021
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1022
+
1023
+ file_id : typing.Optional[str]
1024
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
1006
1025
 
1007
1026
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1008
1027
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -1032,6 +1051,7 @@ class RawUploadClient:
1032
1051
  },
1033
1052
  json={
1034
1053
  "content": content,
1054
+ "file_id": file_id,
1035
1055
  "tenant_metadata": tenant_metadata,
1036
1056
  "document_metadata": document_metadata,
1037
1057
  },
@@ -1140,6 +1160,7 @@ class RawUploadClient:
1140
1160
  tenant_id: str,
1141
1161
  content: str,
1142
1162
  sub_tenant_id: typing.Optional[str] = None,
1163
+ file_id: typing.Optional[str] = OMIT,
1143
1164
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1144
1165
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1145
1166
  request_options: typing.Optional[RequestOptions] = None,
@@ -1163,7 +1184,10 @@ class RawUploadClient:
1163
1184
  The text or markdown content to upload
1164
1185
 
1165
1186
  sub_tenant_id : typing.Optional[str]
1166
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1187
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1188
+
1189
+ file_id : typing.Optional[str]
1190
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
1167
1191
 
1168
1192
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1169
1193
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -1194,6 +1218,7 @@ class RawUploadClient:
1194
1218
  },
1195
1219
  json={
1196
1220
  "content": content,
1221
+ "file_id": file_id,
1197
1222
  "tenant_metadata": tenant_metadata,
1198
1223
  "document_metadata": document_metadata,
1199
1224
  },
@@ -1302,6 +1327,7 @@ class RawUploadClient:
1302
1327
  tenant_id: str,
1303
1328
  content: str,
1304
1329
  sub_tenant_id: typing.Optional[str] = None,
1330
+ file_id: typing.Optional[str] = OMIT,
1305
1331
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1306
1332
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1307
1333
  request_options: typing.Optional[RequestOptions] = None,
@@ -1325,7 +1351,10 @@ class RawUploadClient:
1325
1351
  The text or markdown content to upload
1326
1352
 
1327
1353
  sub_tenant_id : typing.Optional[str]
1328
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1354
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1355
+
1356
+ file_id : typing.Optional[str]
1357
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
1329
1358
 
1330
1359
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1331
1360
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -1356,6 +1385,7 @@ class RawUploadClient:
1356
1385
  },
1357
1386
  json={
1358
1387
  "content": content,
1388
+ "file_id": file_id,
1359
1389
  "tenant_metadata": tenant_metadata,
1360
1390
  "document_metadata": document_metadata,
1361
1391
  },
@@ -1482,7 +1512,7 @@ class RawUploadClient:
1482
1512
  The embeddings of source you want to index
1483
1513
 
1484
1514
  sub_tenant_id : typing.Optional[str]
1485
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1515
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1486
1516
 
1487
1517
  file_id : typing.Optional[str]
1488
1518
  The Source ID of the target source you want to index
@@ -1625,7 +1655,7 @@ class RawUploadClient:
1625
1655
  Unique identifier for the tenant/organization
1626
1656
 
1627
1657
  sub_tenant_id : typing.Optional[str]
1628
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1658
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1629
1659
 
1630
1660
  embeddings : typing.Optional[typing.Dict[str, typing.Sequence[float]]]
1631
1661
  The embeddings of source you want to index
@@ -1771,7 +1801,7 @@ class RawUploadClient:
1771
1801
  Unique identifier for the tenant/organization
1772
1802
 
1773
1803
  sub_tenant_id : typing.Optional[str]
1774
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1804
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1775
1805
 
1776
1806
  file_id : typing.Optional[str]
1777
1807
  Optional custom file ID for the scraped content. If not provided, a unique ID will be generated
@@ -1920,7 +1950,7 @@ class RawUploadClient:
1920
1950
  Unique identifier for the tenant/organization
1921
1951
 
1922
1952
  sub_tenant_id : typing.Optional[str]
1923
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
1953
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
1924
1954
 
1925
1955
  request_options : typing.Optional[RequestOptions]
1926
1956
  Request-specific configuration.
@@ -2062,7 +2092,7 @@ class RawUploadClient:
2062
2092
  List of source IDs to delete
2063
2093
 
2064
2094
  sub_tenant_id : typing.Optional[str]
2065
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
2095
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2066
2096
 
2067
2097
  request_options : typing.Optional[RequestOptions]
2068
2098
  Request-specific configuration.
@@ -2138,7 +2168,7 @@ class RawUploadClient:
2138
2168
  List of source IDs to delete
2139
2169
 
2140
2170
  sub_tenant_id : typing.Optional[str]
2141
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
2171
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2142
2172
 
2143
2173
  request_options : typing.Optional[RequestOptions]
2144
2174
  Request-specific configuration.
@@ -2332,6 +2362,7 @@ class AsyncRawUploadClient:
2332
2362
  tenant_id: str,
2333
2363
  files: typing.List[core.File],
2334
2364
  sub_tenant_id: typing.Optional[str] = None,
2365
+ file_ids: typing.Optional[str] = OMIT,
2335
2366
  tenant_metadata: typing.Optional[str] = OMIT,
2336
2367
  document_metadata: typing.Optional[str] = OMIT,
2337
2368
  request_options: typing.Optional[RequestOptions] = None,
@@ -2352,7 +2383,10 @@ class AsyncRawUploadClient:
2352
2383
  See core.File for more documentation
2353
2384
 
2354
2385
  sub_tenant_id : typing.Optional[str]
2355
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
2386
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2387
+
2388
+ file_ids : typing.Optional[str]
2389
+ Optional JSON string array of file IDs for the uploaded content. If not provided or empty, will be generated automatically.
2356
2390
 
2357
2391
  tenant_metadata : typing.Optional[str]
2358
2392
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -2383,6 +2417,7 @@ class AsyncRawUploadClient:
2383
2417
  "sub_tenant_id": sub_tenant_id,
2384
2418
  },
2385
2419
  data={
2420
+ "file_ids": file_ids,
2386
2421
  "tenant_metadata": tenant_metadata,
2387
2422
  "document_metadata": document_metadata,
2388
2423
  },
@@ -2512,7 +2547,7 @@ class AsyncRawUploadClient:
2512
2547
  See core.File for more documentation
2513
2548
 
2514
2549
  sub_tenant_id : typing.Optional[str]
2515
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
2550
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2516
2551
 
2517
2552
  source_ids : typing.Optional[typing.List[str]]
2518
2553
  List of source IDs corresponding to the files being updated
@@ -2655,6 +2690,7 @@ class AsyncRawUploadClient:
2655
2690
  tenant_id: str,
2656
2691
  file: core.File,
2657
2692
  sub_tenant_id: typing.Optional[str] = None,
2693
+ file_id: typing.Optional[str] = OMIT,
2658
2694
  tenant_metadata: typing.Optional[str] = OMIT,
2659
2695
  document_metadata: typing.Optional[str] = OMIT,
2660
2696
  request_options: typing.Optional[RequestOptions] = None,
@@ -2675,7 +2711,10 @@ class AsyncRawUploadClient:
2675
2711
  See core.File for more documentation
2676
2712
 
2677
2713
  sub_tenant_id : typing.Optional[str]
2678
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
2714
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2715
+
2716
+ file_id : typing.Optional[str]
2717
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
2679
2718
 
2680
2719
  tenant_metadata : typing.Optional[str]
2681
2720
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -2706,6 +2745,7 @@ class AsyncRawUploadClient:
2706
2745
  "sub_tenant_id": sub_tenant_id,
2707
2746
  },
2708
2747
  data={
2748
+ "file_id": file_id,
2709
2749
  "tenant_metadata": tenant_metadata,
2710
2750
  "document_metadata": document_metadata,
2711
2751
  },
@@ -2838,7 +2878,7 @@ class AsyncRawUploadClient:
2838
2878
  See core.File for more documentation
2839
2879
 
2840
2880
  sub_tenant_id : typing.Optional[str]
2841
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
2881
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2842
2882
 
2843
2883
  tenant_metadata : typing.Optional[str]
2844
2884
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -2995,7 +3035,7 @@ class AsyncRawUploadClient:
2995
3035
  request : typing.Sequence[SourceModel]
2996
3036
 
2997
3037
  sub_tenant_id : typing.Optional[str]
2998
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3038
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
2999
3039
 
3000
3040
  request_options : typing.Optional[RequestOptions]
3001
3041
  Request-specific configuration.
@@ -3119,6 +3159,7 @@ class AsyncRawUploadClient:
3119
3159
  tenant_id: str,
3120
3160
  content: str,
3121
3161
  sub_tenant_id: typing.Optional[str] = None,
3162
+ file_id: typing.Optional[str] = OMIT,
3122
3163
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3123
3164
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3124
3165
  request_options: typing.Optional[RequestOptions] = None,
@@ -3139,7 +3180,10 @@ class AsyncRawUploadClient:
3139
3180
  The text or markdown content to upload
3140
3181
 
3141
3182
  sub_tenant_id : typing.Optional[str]
3142
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3183
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
3184
+
3185
+ file_id : typing.Optional[str]
3186
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
3143
3187
 
3144
3188
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
3145
3189
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -3169,6 +3213,7 @@ class AsyncRawUploadClient:
3169
3213
  },
3170
3214
  json={
3171
3215
  "content": content,
3216
+ "file_id": file_id,
3172
3217
  "tenant_metadata": tenant_metadata,
3173
3218
  "document_metadata": document_metadata,
3174
3219
  },
@@ -3276,6 +3321,7 @@ class AsyncRawUploadClient:
3276
3321
  tenant_id: str,
3277
3322
  content: str,
3278
3323
  sub_tenant_id: typing.Optional[str] = None,
3324
+ file_id: typing.Optional[str] = OMIT,
3279
3325
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3280
3326
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3281
3327
  request_options: typing.Optional[RequestOptions] = None,
@@ -3296,7 +3342,10 @@ class AsyncRawUploadClient:
3296
3342
  The text or markdown content to upload
3297
3343
 
3298
3344
  sub_tenant_id : typing.Optional[str]
3299
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3345
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
3346
+
3347
+ file_id : typing.Optional[str]
3348
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
3300
3349
 
3301
3350
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
3302
3351
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -3326,6 +3375,7 @@ class AsyncRawUploadClient:
3326
3375
  },
3327
3376
  json={
3328
3377
  "content": content,
3378
+ "file_id": file_id,
3329
3379
  "tenant_metadata": tenant_metadata,
3330
3380
  "document_metadata": document_metadata,
3331
3381
  },
@@ -3434,6 +3484,7 @@ class AsyncRawUploadClient:
3434
3484
  tenant_id: str,
3435
3485
  content: str,
3436
3486
  sub_tenant_id: typing.Optional[str] = None,
3487
+ file_id: typing.Optional[str] = OMIT,
3437
3488
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3438
3489
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3439
3490
  request_options: typing.Optional[RequestOptions] = None,
@@ -3457,7 +3508,10 @@ class AsyncRawUploadClient:
3457
3508
  The text or markdown content to upload
3458
3509
 
3459
3510
  sub_tenant_id : typing.Optional[str]
3460
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3511
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
3512
+
3513
+ file_id : typing.Optional[str]
3514
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
3461
3515
 
3462
3516
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
3463
3517
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -3488,6 +3542,7 @@ class AsyncRawUploadClient:
3488
3542
  },
3489
3543
  json={
3490
3544
  "content": content,
3545
+ "file_id": file_id,
3491
3546
  "tenant_metadata": tenant_metadata,
3492
3547
  "document_metadata": document_metadata,
3493
3548
  },
@@ -3596,6 +3651,7 @@ class AsyncRawUploadClient:
3596
3651
  tenant_id: str,
3597
3652
  content: str,
3598
3653
  sub_tenant_id: typing.Optional[str] = None,
3654
+ file_id: typing.Optional[str] = OMIT,
3599
3655
  tenant_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3600
3656
  document_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3601
3657
  request_options: typing.Optional[RequestOptions] = None,
@@ -3619,7 +3675,10 @@ class AsyncRawUploadClient:
3619
3675
  The text or markdown content to upload
3620
3676
 
3621
3677
  sub_tenant_id : typing.Optional[str]
3622
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3678
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
3679
+
3680
+ file_id : typing.Optional[str]
3681
+ Optional file ID for the uploaded content. If not provided, will be generated automatically.
3623
3682
 
3624
3683
  tenant_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
3625
3684
  JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
@@ -3650,6 +3709,7 @@ class AsyncRawUploadClient:
3650
3709
  },
3651
3710
  json={
3652
3711
  "content": content,
3712
+ "file_id": file_id,
3653
3713
  "tenant_metadata": tenant_metadata,
3654
3714
  "document_metadata": document_metadata,
3655
3715
  },
@@ -3776,7 +3836,7 @@ class AsyncRawUploadClient:
3776
3836
  The embeddings of source you want to index
3777
3837
 
3778
3838
  sub_tenant_id : typing.Optional[str]
3779
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3839
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
3780
3840
 
3781
3841
  file_id : typing.Optional[str]
3782
3842
  The Source ID of the target source you want to index
@@ -3919,7 +3979,7 @@ class AsyncRawUploadClient:
3919
3979
  Unique identifier for the tenant/organization
3920
3980
 
3921
3981
  sub_tenant_id : typing.Optional[str]
3922
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
3982
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
3923
3983
 
3924
3984
  embeddings : typing.Optional[typing.Dict[str, typing.Sequence[float]]]
3925
3985
  The embeddings of source you want to index
@@ -4065,7 +4125,7 @@ class AsyncRawUploadClient:
4065
4125
  Unique identifier for the tenant/organization
4066
4126
 
4067
4127
  sub_tenant_id : typing.Optional[str]
4068
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
4128
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
4069
4129
 
4070
4130
  file_id : typing.Optional[str]
4071
4131
  Optional custom file ID for the scraped content. If not provided, a unique ID will be generated
@@ -4214,7 +4274,7 @@ class AsyncRawUploadClient:
4214
4274
  Unique identifier for the tenant/organization
4215
4275
 
4216
4276
  sub_tenant_id : typing.Optional[str]
4217
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
4277
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
4218
4278
 
4219
4279
  request_options : typing.Optional[RequestOptions]
4220
4280
  Request-specific configuration.
@@ -4356,7 +4416,7 @@ class AsyncRawUploadClient:
4356
4416
  List of source IDs to delete
4357
4417
 
4358
4418
  sub_tenant_id : typing.Optional[str]
4359
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
4419
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
4360
4420
 
4361
4421
  request_options : typing.Optional[RequestOptions]
4362
4422
  Request-specific configuration.
@@ -4432,7 +4492,7 @@ class AsyncRawUploadClient:
4432
4492
  List of source IDs to delete
4433
4493
 
4434
4494
  sub_tenant_id : typing.Optional[str]
4435
- Optional sub-tenant identifier for organizing data within a tenant. If not provided, defaults to tenant_id
4495
+ Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
4436
4496
 
4437
4497
  request_options : typing.Optional[RequestOptions]
4438
4498
  Request-specific configuration.
@@ -30,6 +30,7 @@ class UserClient:
30
30
  self,
31
31
  *,
32
32
  tenant_id: typing.Optional[str] = None,
33
+ note: typing.Optional[str] = None,
33
34
  tenant_metadata_schema: typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]] = OMIT,
34
35
  request_options: typing.Optional[RequestOptions] = None,
35
36
  ) -> TenantCreateData:
@@ -47,6 +48,8 @@ class UserClient:
47
48
  tenant_id : typing.Optional[str]
48
49
  Unique identifier for the tenant/organization
49
50
 
51
+ note : typing.Optional[str]
52
+
50
53
  tenant_metadata_schema : typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]]
51
54
 
52
55
  request_options : typing.Optional[RequestOptions]
@@ -62,10 +65,13 @@ class UserClient:
62
65
  from usecortex-ai import CortexAI
63
66
 
64
67
  client = CortexAI(token="YOUR_TOKEN", )
65
- client.user.create_tenant()
68
+ client.user.create_tenant(note='<str>', )
66
69
  """
67
70
  _response = self._raw_client.create_tenant(
68
- tenant_id=tenant_id, tenant_metadata_schema=tenant_metadata_schema, request_options=request_options
71
+ tenant_id=tenant_id,
72
+ note=note,
73
+ tenant_metadata_schema=tenant_metadata_schema,
74
+ request_options=request_options,
69
75
  )
70
76
  return _response.data
71
77
 
@@ -89,6 +95,7 @@ class AsyncUserClient:
89
95
  self,
90
96
  *,
91
97
  tenant_id: typing.Optional[str] = None,
98
+ note: typing.Optional[str] = None,
92
99
  tenant_metadata_schema: typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]] = OMIT,
93
100
  request_options: typing.Optional[RequestOptions] = None,
94
101
  ) -> TenantCreateData:
@@ -106,6 +113,8 @@ class AsyncUserClient:
106
113
  tenant_id : typing.Optional[str]
107
114
  Unique identifier for the tenant/organization
108
115
 
116
+ note : typing.Optional[str]
117
+
109
118
  tenant_metadata_schema : typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]]
110
119
 
111
120
  request_options : typing.Optional[RequestOptions]
@@ -124,10 +133,13 @@ class AsyncUserClient:
124
133
 
125
134
  client = AsyncCortexAI(token="YOUR_TOKEN", )
126
135
  async def main() -> None:
127
- await client.user.create_tenant()
136
+ await client.user.create_tenant(note='<str>', )
128
137
  asyncio.run(main())
129
138
  """
130
139
  _response = await self._raw_client.create_tenant(
131
- tenant_id=tenant_id, tenant_metadata_schema=tenant_metadata_schema, request_options=request_options
140
+ tenant_id=tenant_id,
141
+ note=note,
142
+ tenant_metadata_schema=tenant_metadata_schema,
143
+ request_options=request_options,
132
144
  )
133
145
  return _response.data
@@ -30,6 +30,7 @@ class RawUserClient:
30
30
  self,
31
31
  *,
32
32
  tenant_id: typing.Optional[str] = None,
33
+ note: typing.Optional[str] = None,
33
34
  tenant_metadata_schema: typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]] = OMIT,
34
35
  request_options: typing.Optional[RequestOptions] = None,
35
36
  ) -> HttpResponse[TenantCreateData]:
@@ -47,6 +48,8 @@ class RawUserClient:
47
48
  tenant_id : typing.Optional[str]
48
49
  Unique identifier for the tenant/organization
49
50
 
51
+ note : typing.Optional[str]
52
+
50
53
  tenant_metadata_schema : typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]]
51
54
 
52
55
  request_options : typing.Optional[RequestOptions]
@@ -62,6 +65,7 @@ class RawUserClient:
62
65
  method="POST",
63
66
  params={
64
67
  "tenant_id": tenant_id,
68
+ "note": note,
65
69
  },
66
70
  json={
67
71
  "tenant_metadata_schema": tenant_metadata_schema,
@@ -173,6 +177,7 @@ class AsyncRawUserClient:
173
177
  self,
174
178
  *,
175
179
  tenant_id: typing.Optional[str] = None,
180
+ note: typing.Optional[str] = None,
176
181
  tenant_metadata_schema: typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]] = OMIT,
177
182
  request_options: typing.Optional[RequestOptions] = None,
178
183
  ) -> AsyncHttpResponse[TenantCreateData]:
@@ -190,6 +195,8 @@ class AsyncRawUserClient:
190
195
  tenant_id : typing.Optional[str]
191
196
  Unique identifier for the tenant/organization
192
197
 
198
+ note : typing.Optional[str]
199
+
193
200
  tenant_metadata_schema : typing.Optional[typing.Sequence[typing.Dict[str, typing.Optional[typing.Any]]]]
194
201
 
195
202
  request_options : typing.Optional[RequestOptions]
@@ -205,6 +212,7 @@ class AsyncRawUserClient:
205
212
  method="POST",
206
213
  params={
207
214
  "tenant_id": tenant_id,
215
+ "note": note,
208
216
  },
209
217
  json={
210
218
  "tenant_metadata_schema": tenant_metadata_schema,