@vertesia/common 1.6.0-dev.20260918.090710Z → 1.6.0-dev.20260918.115658Z

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 (42) hide show
  1. package/lib/api-contract/components.generated.json +612 -1
  2. package/lib/api-schemas/app-runtime.d.ts +18 -0
  3. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  4. package/lib/api-schemas/apps.d.ts +5 -0
  5. package/lib/api-schemas/apps.d.ts.map +1 -1
  6. package/lib/api-schemas/apps.js +6 -3
  7. package/lib/api-schemas/apps.js.map +1 -1
  8. package/lib/api-schemas/embeddings.d.ts +250 -0
  9. package/lib/api-schemas/embeddings.d.ts.map +1 -1
  10. package/lib/api-schemas/embeddings.js +163 -0
  11. package/lib/api-schemas/embeddings.js.map +1 -1
  12. package/lib/api-schemas/files.d.ts +1 -0
  13. package/lib/api-schemas/files.d.ts.map +1 -1
  14. package/lib/api-schemas/files.js +1 -0
  15. package/lib/api-schemas/files.js.map +1 -1
  16. package/lib/api-schemas/registry.d.ts +271 -0
  17. package/lib/api-schemas/registry.d.ts.map +1 -1
  18. package/lib/api-schemas/registry.js +20 -1
  19. package/lib/api-schemas/registry.js.map +1 -1
  20. package/lib/embeddings.d.ts +18 -1
  21. package/lib/embeddings.d.ts.map +1 -1
  22. package/lib/index.d.ts +1 -0
  23. package/lib/index.d.ts.map +1 -1
  24. package/lib/index.js +1 -0
  25. package/lib/index.js.map +1 -1
  26. package/lib/store/rendering.d.ts +1 -0
  27. package/lib/store/rendering.d.ts.map +1 -1
  28. package/lib/store/rendering.js +4 -0
  29. package/lib/store/rendering.js.map +1 -1
  30. package/lib/vertesia-common.js +1 -1
  31. package/lib/vertesia-common.js.map +1 -1
  32. package/package.json +2 -2
  33. package/src/api-contract/components.generated.json +612 -1
  34. package/src/api-schemas/apps.ts +6 -3
  35. package/src/api-schemas/embeddings.ts +184 -0
  36. package/src/api-schemas/files.ts +1 -0
  37. package/src/api-schemas/indexing.contract.test.ts +40 -1
  38. package/src/api-schemas/mcp-api-key.contract.test.ts +39 -0
  39. package/src/api-schemas/registry.ts +36 -0
  40. package/src/embeddings.ts +34 -0
  41. package/src/index.ts +1 -0
  42. package/src/store/rendering.ts +9 -0
@@ -22354,6 +22354,7 @@ declare const PROJECT_AND_APP_SCHEMAS: {
22354
22354
  url: z.ZodString;
22355
22355
  auth: z.ZodOptional<z.ZodEnum<{
22356
22356
  api_key: "api_key";
22357
+ none: "none";
22357
22358
  oauth: "oauth";
22358
22359
  other: "other";
22359
22360
  }>>;
@@ -22392,6 +22393,7 @@ declare const PROJECT_AND_APP_SCHEMAS: {
22392
22393
  url: z.ZodString;
22393
22394
  auth: z.ZodOptional<z.ZodEnum<{
22394
22395
  api_key: "api_key";
22396
+ none: "none";
22395
22397
  oauth: "oauth";
22396
22398
  other: "other";
22397
22399
  }>>;
@@ -60299,6 +60301,7 @@ declare const FILE_STORAGE_SCHEMAS: {
60299
60301
  }, z.core.$strict>;
60300
60302
  readonly FileBucketResponse: z.ZodObject<{
60301
60303
  bucket: z.ZodString;
60304
+ location: z.ZodOptional<z.ZodString>;
60302
60305
  }, z.core.$strict>;
60303
60306
  readonly FileListResponse: z.ZodObject<{
60304
60307
  files: z.ZodArray<z.ZodString>;
@@ -92611,6 +92614,27 @@ declare const EMBEDDING_ADMIN_SCHEMAS: {
92611
92614
  readonly EmbeddingsStatusResponse: z.ZodObject<{
92612
92615
  status: z.ZodString;
92613
92616
  embeddingRunsInProgress: z.ZodOptional<z.ZodNumber>;
92617
+ latestBatchRun: z.ZodOptional<z.ZodObject<{
92618
+ id: z.ZodString;
92619
+ state: z.ZodEnum<{
92620
+ applying: "applying";
92621
+ cancelled: "cancelled";
92622
+ completed: "completed";
92623
+ completed_with_errors: "completed_with_errors";
92624
+ failed: "failed";
92625
+ preparing: "preparing";
92626
+ running: "running";
92627
+ stale: "stale";
92628
+ submitted: "submitted";
92629
+ }>;
92630
+ model: z.ZodString;
92631
+ created_at: z.ZodString;
92632
+ completed_at: z.ZodOptional<z.ZodString>;
92633
+ applied: z.ZodNumber;
92634
+ skipped: z.ZodNumber;
92635
+ failed: z.ZodNumber;
92636
+ stale: z.ZodNumber;
92637
+ }, z.core.$strict>>;
92614
92638
  totalIndexableObjects: z.ZodOptional<z.ZodNumber>;
92615
92639
  embeddingsModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
92616
92640
  objectsWithEmbeddings: z.ZodOptional<z.ZodNumber>;
@@ -92625,11 +92649,240 @@ declare const EMBEDDING_ADMIN_SCHEMAS: {
92625
92649
  type: z.ZodOptional<z.ZodString>;
92626
92650
  }, z.core.$strict>;
92627
92651
  }, z.core.$strict>;
92652
+ readonly RecalculateEmbeddingsQuery: z.ZodObject<{
92653
+ mode: z.ZodOptional<z.ZodLiteral<"sync">>;
92654
+ force: z.ZodOptional<z.ZodBoolean>;
92655
+ }, z.core.$strict>;
92628
92656
  readonly ProjectConfigurationEmbeddingEnablePayload: z.ZodObject<{
92629
92657
  environment: z.ZodString;
92630
92658
  max_tokens: z.ZodOptional<z.ZodNumber>;
92631
92659
  model: z.ZodOptional<z.ZodString>;
92632
92660
  }, z.core.$strict>;
92661
+ readonly EmbeddingBatchProviderState: z.ZodEnum<{
92662
+ cancelled: "cancelled";
92663
+ failed: "failed";
92664
+ paused: "paused";
92665
+ pending: "pending";
92666
+ running: "running";
92667
+ succeeded: "succeeded";
92668
+ }>;
92669
+ readonly EmbeddingBatchCapabilityRequest: z.ZodObject<{
92670
+ embedding_type: z.ZodEnum<{
92671
+ image: "image";
92672
+ properties: "properties";
92673
+ text: "text";
92674
+ }>;
92675
+ }, z.core.$strict>;
92676
+ readonly EmbeddingBatchCapabilityResponse: z.ZodObject<{
92677
+ eligible: z.ZodBoolean;
92678
+ reason: z.ZodOptional<z.ZodString>;
92679
+ environment: z.ZodOptional<z.ZodString>;
92680
+ provider: z.ZodOptional<z.ZodString>;
92681
+ model: z.ZodOptional<z.ZodString>;
92682
+ dimensions: z.ZodOptional<z.ZodNumber>;
92683
+ max_tokens: z.ZodOptional<z.ZodNumber>;
92684
+ location: z.ZodOptional<z.ZodString>;
92685
+ input_format: z.ZodOptional<z.ZodString>;
92686
+ max_rows: z.ZodOptional<z.ZodNumber>;
92687
+ artifact_uri: z.ZodOptional<z.ZodString>;
92688
+ }, z.core.$strict>;
92689
+ readonly EmbeddingBatchCreateRequest: z.ZodObject<{
92690
+ embedding_type: z.ZodEnum<{
92691
+ image: "image";
92692
+ properties: "properties";
92693
+ text: "text";
92694
+ }>;
92695
+ model: z.ZodString;
92696
+ dimensions: z.ZodNumber;
92697
+ display_name: z.ZodString;
92698
+ input_uri: z.ZodString;
92699
+ output_uri: z.ZodString;
92700
+ }, z.core.$strict>;
92701
+ readonly EmbeddingBatchJobRequest: z.ZodObject<{
92702
+ embedding_type: z.ZodEnum<{
92703
+ image: "image";
92704
+ properties: "properties";
92705
+ text: "text";
92706
+ }>;
92707
+ model: z.ZodString;
92708
+ name: z.ZodString;
92709
+ include_output_artifacts: z.ZodOptional<z.ZodBoolean>;
92710
+ }, z.core.$strict>;
92711
+ readonly EmbeddingBatchJobResponse: z.ZodObject<{
92712
+ name: z.ZodString;
92713
+ display_name: z.ZodOptional<z.ZodString>;
92714
+ state: z.ZodEnum<{
92715
+ cancelled: "cancelled";
92716
+ failed: "failed";
92717
+ paused: "paused";
92718
+ pending: "pending";
92719
+ running: "running";
92720
+ succeeded: "succeeded";
92721
+ }>;
92722
+ model: z.ZodOptional<z.ZodString>;
92723
+ input_uri: z.ZodOptional<z.ZodString>;
92724
+ output_uri: z.ZodOptional<z.ZodString>;
92725
+ output_artifacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
92726
+ error_message: z.ZodOptional<z.ZodString>;
92727
+ }, z.core.$strict>;
92728
+ readonly EmbeddingBatchRunState: z.ZodEnum<{
92729
+ applying: "applying";
92730
+ cancelled: "cancelled";
92731
+ completed: "completed";
92732
+ completed_with_errors: "completed_with_errors";
92733
+ failed: "failed";
92734
+ preparing: "preparing";
92735
+ running: "running";
92736
+ stale: "stale";
92737
+ submitted: "submitted";
92738
+ }>;
92739
+ readonly EmbeddingBatchRunSummary: z.ZodObject<{
92740
+ id: z.ZodString;
92741
+ state: z.ZodEnum<{
92742
+ applying: "applying";
92743
+ cancelled: "cancelled";
92744
+ completed: "completed";
92745
+ completed_with_errors: "completed_with_errors";
92746
+ failed: "failed";
92747
+ preparing: "preparing";
92748
+ running: "running";
92749
+ stale: "stale";
92750
+ submitted: "submitted";
92751
+ }>;
92752
+ model: z.ZodString;
92753
+ created_at: z.ZodString;
92754
+ completed_at: z.ZodOptional<z.ZodString>;
92755
+ applied: z.ZodNumber;
92756
+ skipped: z.ZodNumber;
92757
+ failed: z.ZodNumber;
92758
+ stale: z.ZodNumber;
92759
+ }, z.core.$strict>;
92760
+ readonly EmbeddingBatchSubjob: z.ZodObject<{
92761
+ index: z.ZodNumber;
92762
+ display_name: z.ZodString;
92763
+ input_uri: z.ZodString;
92764
+ output_uri: z.ZodString;
92765
+ row_count: z.ZodNumber;
92766
+ provider_name: z.ZodOptional<z.ZodString>;
92767
+ state: z.ZodOptional<z.ZodEnum<{
92768
+ cancelled: "cancelled";
92769
+ failed: "failed";
92770
+ paused: "paused";
92771
+ pending: "pending";
92772
+ running: "running";
92773
+ succeeded: "succeeded";
92774
+ }>>;
92775
+ }, z.core.$strict>;
92776
+ readonly EmbeddingBatchPrepareRequest: z.ZodObject<{
92777
+ run_id: z.ZodString;
92778
+ embedding_type: z.ZodEnum<{
92779
+ image: "image";
92780
+ properties: "properties";
92781
+ text: "text";
92782
+ }>;
92783
+ capability: z.ZodObject<{
92784
+ eligible: z.ZodBoolean;
92785
+ reason: z.ZodOptional<z.ZodString>;
92786
+ environment: z.ZodOptional<z.ZodString>;
92787
+ provider: z.ZodOptional<z.ZodString>;
92788
+ model: z.ZodOptional<z.ZodString>;
92789
+ dimensions: z.ZodOptional<z.ZodNumber>;
92790
+ max_tokens: z.ZodOptional<z.ZodNumber>;
92791
+ location: z.ZodOptional<z.ZodString>;
92792
+ input_format: z.ZodOptional<z.ZodString>;
92793
+ max_rows: z.ZodOptional<z.ZodNumber>;
92794
+ artifact_uri: z.ZodOptional<z.ZodString>;
92795
+ }, z.core.$strict>;
92796
+ }, z.core.$strict>;
92797
+ readonly EmbeddingBatchPrepareResponse: z.ZodObject<{
92798
+ run_id: z.ZodString;
92799
+ row_count: z.ZodNumber;
92800
+ subjobs: z.ZodArray<z.ZodObject<{
92801
+ index: z.ZodNumber;
92802
+ display_name: z.ZodString;
92803
+ input_uri: z.ZodString;
92804
+ output_uri: z.ZodString;
92805
+ row_count: z.ZodNumber;
92806
+ provider_name: z.ZodOptional<z.ZodString>;
92807
+ state: z.ZodOptional<z.ZodEnum<{
92808
+ cancelled: "cancelled";
92809
+ failed: "failed";
92810
+ paused: "paused";
92811
+ pending: "pending";
92812
+ running: "running";
92813
+ succeeded: "succeeded";
92814
+ }>>;
92815
+ }, z.core.$strict>>;
92816
+ }, z.core.$strict>;
92817
+ readonly EmbeddingBatchRenditionPageRequest: z.ZodObject<{
92818
+ run_id: z.ZodString;
92819
+ }, z.core.$strict>;
92820
+ readonly EmbeddingBatchRenditionPageResponse: z.ZodObject<{
92821
+ status: z.ZodEnum<{
92822
+ completed: "completed";
92823
+ page_completed: "page_completed";
92824
+ running: "running";
92825
+ }>;
92826
+ page_index: z.ZodNumber;
92827
+ page_scanned: z.ZodNumber;
92828
+ page_ready: z.ZodNumber;
92829
+ page_generated: z.ZodNumber;
92830
+ page_failed: z.ZodNumber;
92831
+ running: z.ZodNumber;
92832
+ }, z.core.$strict>;
92833
+ readonly EmbeddingBatchUpdateRequest: z.ZodObject<{
92834
+ run_id: z.ZodString;
92835
+ state: z.ZodEnum<{
92836
+ applying: "applying";
92837
+ cancelled: "cancelled";
92838
+ completed: "completed";
92839
+ completed_with_errors: "completed_with_errors";
92840
+ failed: "failed";
92841
+ preparing: "preparing";
92842
+ running: "running";
92843
+ stale: "stale";
92844
+ submitted: "submitted";
92845
+ }>;
92846
+ subjobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
92847
+ index: z.ZodNumber;
92848
+ display_name: z.ZodString;
92849
+ input_uri: z.ZodString;
92850
+ output_uri: z.ZodString;
92851
+ row_count: z.ZodNumber;
92852
+ provider_name: z.ZodOptional<z.ZodString>;
92853
+ state: z.ZodOptional<z.ZodEnum<{
92854
+ cancelled: "cancelled";
92855
+ failed: "failed";
92856
+ paused: "paused";
92857
+ pending: "pending";
92858
+ running: "running";
92859
+ succeeded: "succeeded";
92860
+ }>>;
92861
+ }, z.core.$strict>>>;
92862
+ error_code: z.ZodOptional<z.ZodString>;
92863
+ error_message: z.ZodOptional<z.ZodString>;
92864
+ }, z.core.$strict>;
92865
+ readonly EmbeddingBatchApplyRequest: z.ZodObject<{
92866
+ run_id: z.ZodString;
92867
+ }, z.core.$strict>;
92868
+ readonly EmbeddingBatchApplyResponse: z.ZodObject<{
92869
+ state: z.ZodEnum<{
92870
+ applying: "applying";
92871
+ cancelled: "cancelled";
92872
+ completed: "completed";
92873
+ completed_with_errors: "completed_with_errors";
92874
+ failed: "failed";
92875
+ preparing: "preparing";
92876
+ running: "running";
92877
+ stale: "stale";
92878
+ submitted: "submitted";
92879
+ }>;
92880
+ succeeded: z.ZodNumber;
92881
+ failed: z.ZodNumber;
92882
+ stale: z.ZodNumber;
92883
+ applied: z.ZodNumber;
92884
+ failure_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
92885
+ }, z.core.$strict>;
92633
92886
  };
92634
92887
  declare const COMMAND_SCHEMAS: {
92635
92888
  readonly GenericCommandResponse: z.ZodObject<{
@@ -129303,6 +129556,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129303
129556
  url: z.ZodString;
129304
129557
  auth: z.ZodOptional<z.ZodEnum<{
129305
129558
  api_key: "api_key";
129559
+ none: "none";
129306
129560
  oauth: "oauth";
129307
129561
  other: "other";
129308
129562
  }>>;
@@ -129341,6 +129595,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129341
129595
  url: z.ZodString;
129342
129596
  auth: z.ZodOptional<z.ZodEnum<{
129343
129597
  api_key: "api_key";
129598
+ none: "none";
129344
129599
  oauth: "oauth";
129345
129600
  other: "other";
129346
129601
  }>>;
@@ -129438,6 +129693,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129438
129693
  url: z.ZodString;
129439
129694
  auth: z.ZodOptional<z.ZodEnum<{
129440
129695
  api_key: "api_key";
129696
+ none: "none";
129441
129697
  oauth: "oauth";
129442
129698
  other: "other";
129443
129699
  }>>;
@@ -129476,6 +129732,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129476
129732
  url: z.ZodString;
129477
129733
  auth: z.ZodOptional<z.ZodEnum<{
129478
129734
  api_key: "api_key";
129735
+ none: "none";
129479
129736
  oauth: "oauth";
129480
129737
  other: "other";
129481
129738
  }>>;
@@ -129575,6 +129832,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129575
129832
  url: z.ZodString;
129576
129833
  auth: z.ZodOptional<z.ZodEnum<{
129577
129834
  api_key: "api_key";
129835
+ none: "none";
129578
129836
  oauth: "oauth";
129579
129837
  other: "other";
129580
129838
  }>>;
@@ -129613,6 +129871,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129613
129871
  url: z.ZodString;
129614
129872
  auth: z.ZodOptional<z.ZodEnum<{
129615
129873
  api_key: "api_key";
129874
+ none: "none";
129616
129875
  oauth: "oauth";
129617
129876
  other: "other";
129618
129877
  }>>;
@@ -129715,6 +129974,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129715
129974
  url: z.ZodString;
129716
129975
  auth: z.ZodOptional<z.ZodEnum<{
129717
129976
  api_key: "api_key";
129977
+ none: "none";
129718
129978
  oauth: "oauth";
129719
129979
  other: "other";
129720
129980
  }>>;
@@ -129753,6 +130013,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129753
130013
  url: z.ZodString;
129754
130014
  auth: z.ZodOptional<z.ZodEnum<{
129755
130015
  api_key: "api_key";
130016
+ none: "none";
129756
130017
  oauth: "oauth";
129757
130018
  other: "other";
129758
130019
  }>>;
@@ -129938,6 +130199,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129938
130199
  url: z.ZodString;
129939
130200
  auth: z.ZodOptional<z.ZodEnum<{
129940
130201
  api_key: "api_key";
130202
+ none: "none";
129941
130203
  oauth: "oauth";
129942
130204
  other: "other";
129943
130205
  }>>;
@@ -129976,6 +130238,7 @@ declare const APP_MANIFEST_SCHEMAS: {
129976
130238
  url: z.ZodString;
129977
130239
  auth: z.ZodOptional<z.ZodEnum<{
129978
130240
  api_key: "api_key";
130241
+ none: "none";
129979
130242
  oauth: "oauth";
129980
130243
  other: "other";
129981
130244
  }>>;
@@ -140235,6 +140498,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140235
140498
  url: z.ZodString;
140236
140499
  auth: z.ZodOptional<z.ZodEnum<{
140237
140500
  api_key: "api_key";
140501
+ none: "none";
140238
140502
  oauth: "oauth";
140239
140503
  other: "other";
140240
140504
  }>>;
@@ -140273,6 +140537,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140273
140537
  url: z.ZodString;
140274
140538
  auth: z.ZodOptional<z.ZodEnum<{
140275
140539
  api_key: "api_key";
140540
+ none: "none";
140276
140541
  oauth: "oauth";
140277
140542
  other: "other";
140278
140543
  }>>;
@@ -140423,6 +140688,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140423
140688
  url: z.ZodString;
140424
140689
  auth: z.ZodOptional<z.ZodEnum<{
140425
140690
  api_key: "api_key";
140691
+ none: "none";
140426
140692
  oauth: "oauth";
140427
140693
  other: "other";
140428
140694
  }>>;
@@ -140461,6 +140727,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140461
140727
  url: z.ZodString;
140462
140728
  auth: z.ZodOptional<z.ZodEnum<{
140463
140729
  api_key: "api_key";
140730
+ none: "none";
140464
140731
  oauth: "oauth";
140465
140732
  other: "other";
140466
140733
  }>>;
@@ -140587,6 +140854,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140587
140854
  url: z.ZodString;
140588
140855
  auth: z.ZodOptional<z.ZodEnum<{
140589
140856
  api_key: "api_key";
140857
+ none: "none";
140590
140858
  oauth: "oauth";
140591
140859
  other: "other";
140592
140860
  }>>;
@@ -140625,6 +140893,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140625
140893
  url: z.ZodString;
140626
140894
  auth: z.ZodOptional<z.ZodEnum<{
140627
140895
  api_key: "api_key";
140896
+ none: "none";
140628
140897
  oauth: "oauth";
140629
140898
  other: "other";
140630
140899
  }>>;
@@ -140751,6 +141020,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140751
141020
  url: z.ZodString;
140752
141021
  auth: z.ZodOptional<z.ZodEnum<{
140753
141022
  api_key: "api_key";
141023
+ none: "none";
140754
141024
  oauth: "oauth";
140755
141025
  other: "other";
140756
141026
  }>>;
@@ -140789,6 +141059,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
140789
141059
  url: z.ZodString;
140790
141060
  auth: z.ZodOptional<z.ZodEnum<{
140791
141061
  api_key: "api_key";
141062
+ none: "none";
140792
141063
  oauth: "oauth";
140793
141064
  other: "other";
140794
141065
  }>>;