@arbidocs/client 0.3.89 → 0.3.91

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.
package/dist/index.d.cts CHANGED
@@ -1257,6 +1257,55 @@ interface paths {
1257
1257
  patch?: never;
1258
1258
  trace?: never;
1259
1259
  };
1260
+ '/v1/document/{document_ext_id}/thumbnail': {
1261
+ parameters: {
1262
+ query?: never;
1263
+ header?: never;
1264
+ path?: never;
1265
+ cookie?: never;
1266
+ };
1267
+ /**
1268
+ * Get Document Thumbnail
1269
+ * @description Stream the document's first-page thumbnail (small encrypted WebP).
1270
+ *
1271
+ * Returns 404 when the document has no thumbnail — e.g. video/audio files (no
1272
+ * visual artifact) or documents parsed before thumbnails existed. The frontend
1273
+ * falls back to a file-type icon on any non-200.
1274
+ */
1275
+ get: operations['get_document_thumbnail'];
1276
+ put?: never;
1277
+ post?: never;
1278
+ delete?: never;
1279
+ options?: never;
1280
+ head?: never;
1281
+ patch?: never;
1282
+ trace?: never;
1283
+ };
1284
+ '/v1/document/thumbnails': {
1285
+ parameters: {
1286
+ query?: never;
1287
+ header?: never;
1288
+ path?: never;
1289
+ cookie?: never;
1290
+ };
1291
+ get?: never;
1292
+ put?: never;
1293
+ /**
1294
+ * Get Document Thumbnails
1295
+ * @description Batch-fetch first-page thumbnails for many documents in one request.
1296
+ *
1297
+ * Returns a map of document external id → ``data:image/webp;base64`` URI, or
1298
+ * null when a document has no thumbnail (video/audio, not yet generated, or not
1299
+ * accessible). Lets the file-explorer grid load a whole window of tiles in a
1300
+ * single call instead of one request per document.
1301
+ */
1302
+ post: operations['get_document_thumbnails'];
1303
+ delete?: never;
1304
+ options?: never;
1305
+ head?: never;
1306
+ patch?: never;
1307
+ trace?: never;
1308
+ };
1260
1309
  '/v1/document/{document_ext_id}/parsed-{stage}': {
1261
1310
  parameters: {
1262
1311
  query?: never;
@@ -7827,6 +7876,25 @@ interface components {
7827
7876
  /** Threads */
7828
7877
  threads: components['schemas']['Thread'][];
7829
7878
  };
7879
+ /**
7880
+ * ThumbnailsRequest
7881
+ * @description Batch-fetch first-page thumbnails for one or more documents by external ID.
7882
+ */
7883
+ ThumbnailsRequest: {
7884
+ /** Document Ext Ids */
7885
+ document_ext_ids: string[];
7886
+ };
7887
+ /**
7888
+ * ThumbnailsResponse
7889
+ * @description Map of document external ID → ``data:image/webp;base64`` URI (or null when
7890
+ * the document has no thumbnail).
7891
+ */
7892
+ ThumbnailsResponse: {
7893
+ /** Thumbnails */
7894
+ thumbnails: {
7895
+ [key: string]: string | null;
7896
+ };
7897
+ };
7830
7898
  /** TitleLLMConfig */
7831
7899
  TitleLLMConfig: {
7832
7900
  /**
@@ -8446,6 +8514,11 @@ interface components {
8446
8514
  * @default false
8447
8515
  */
8448
8516
  show_mcp_connectors: boolean;
8517
+ /**
8518
+ * Show File Explorer
8519
+ * @default false
8520
+ */
8521
+ show_file_explorer: boolean;
8449
8522
  /**
8450
8523
  * Show Hints
8451
8524
  * @default true
@@ -8519,6 +8592,8 @@ interface components {
8519
8592
  show_agent_sessions?: boolean | null;
8520
8593
  /** Show Mcp Connectors */
8521
8594
  show_mcp_connectors?: boolean | null;
8595
+ /** Show File Explorer */
8596
+ show_file_explorer?: boolean | null;
8522
8597
  /** Show Hints */
8523
8598
  show_hints?: boolean | null;
8524
8599
  /** Dismissed Tips */
@@ -10833,6 +10908,70 @@ interface operations {
10833
10908
  };
10834
10909
  };
10835
10910
  };
10911
+ get_document_thumbnail: {
10912
+ parameters: {
10913
+ query?: never;
10914
+ header?: never;
10915
+ path: {
10916
+ document_ext_id: string;
10917
+ };
10918
+ cookie?: never;
10919
+ };
10920
+ requestBody?: never;
10921
+ responses: {
10922
+ /** @description Successful Response */
10923
+ 200: {
10924
+ headers: {
10925
+ [name: string]: unknown;
10926
+ };
10927
+ content: {
10928
+ 'image/webp': unknown;
10929
+ };
10930
+ };
10931
+ /** @description Validation Error */
10932
+ 422: {
10933
+ headers: {
10934
+ [name: string]: unknown;
10935
+ };
10936
+ content: {
10937
+ 'application/json': components['schemas']['HTTPValidationError'];
10938
+ };
10939
+ };
10940
+ };
10941
+ };
10942
+ get_document_thumbnails: {
10943
+ parameters: {
10944
+ query?: never;
10945
+ header?: never;
10946
+ path?: never;
10947
+ cookie?: never;
10948
+ };
10949
+ requestBody: {
10950
+ content: {
10951
+ 'application/json': components['schemas']['ThumbnailsRequest'];
10952
+ };
10953
+ };
10954
+ responses: {
10955
+ /** @description Successful Response */
10956
+ 200: {
10957
+ headers: {
10958
+ [name: string]: unknown;
10959
+ };
10960
+ content: {
10961
+ 'application/json': components['schemas']['ThumbnailsResponse'];
10962
+ };
10963
+ };
10964
+ /** @description Validation Error */
10965
+ 422: {
10966
+ headers: {
10967
+ [name: string]: unknown;
10968
+ };
10969
+ content: {
10970
+ 'application/json': components['schemas']['HTTPValidationError'];
10971
+ };
10972
+ };
10973
+ };
10974
+ };
10836
10975
  get_parsed_document: {
10837
10976
  parameters: {
10838
10977
  query?: never;
package/dist/index.d.ts CHANGED
@@ -1257,6 +1257,55 @@ interface paths {
1257
1257
  patch?: never;
1258
1258
  trace?: never;
1259
1259
  };
1260
+ '/v1/document/{document_ext_id}/thumbnail': {
1261
+ parameters: {
1262
+ query?: never;
1263
+ header?: never;
1264
+ path?: never;
1265
+ cookie?: never;
1266
+ };
1267
+ /**
1268
+ * Get Document Thumbnail
1269
+ * @description Stream the document's first-page thumbnail (small encrypted WebP).
1270
+ *
1271
+ * Returns 404 when the document has no thumbnail — e.g. video/audio files (no
1272
+ * visual artifact) or documents parsed before thumbnails existed. The frontend
1273
+ * falls back to a file-type icon on any non-200.
1274
+ */
1275
+ get: operations['get_document_thumbnail'];
1276
+ put?: never;
1277
+ post?: never;
1278
+ delete?: never;
1279
+ options?: never;
1280
+ head?: never;
1281
+ patch?: never;
1282
+ trace?: never;
1283
+ };
1284
+ '/v1/document/thumbnails': {
1285
+ parameters: {
1286
+ query?: never;
1287
+ header?: never;
1288
+ path?: never;
1289
+ cookie?: never;
1290
+ };
1291
+ get?: never;
1292
+ put?: never;
1293
+ /**
1294
+ * Get Document Thumbnails
1295
+ * @description Batch-fetch first-page thumbnails for many documents in one request.
1296
+ *
1297
+ * Returns a map of document external id → ``data:image/webp;base64`` URI, or
1298
+ * null when a document has no thumbnail (video/audio, not yet generated, or not
1299
+ * accessible). Lets the file-explorer grid load a whole window of tiles in a
1300
+ * single call instead of one request per document.
1301
+ */
1302
+ post: operations['get_document_thumbnails'];
1303
+ delete?: never;
1304
+ options?: never;
1305
+ head?: never;
1306
+ patch?: never;
1307
+ trace?: never;
1308
+ };
1260
1309
  '/v1/document/{document_ext_id}/parsed-{stage}': {
1261
1310
  parameters: {
1262
1311
  query?: never;
@@ -7827,6 +7876,25 @@ interface components {
7827
7876
  /** Threads */
7828
7877
  threads: components['schemas']['Thread'][];
7829
7878
  };
7879
+ /**
7880
+ * ThumbnailsRequest
7881
+ * @description Batch-fetch first-page thumbnails for one or more documents by external ID.
7882
+ */
7883
+ ThumbnailsRequest: {
7884
+ /** Document Ext Ids */
7885
+ document_ext_ids: string[];
7886
+ };
7887
+ /**
7888
+ * ThumbnailsResponse
7889
+ * @description Map of document external ID → ``data:image/webp;base64`` URI (or null when
7890
+ * the document has no thumbnail).
7891
+ */
7892
+ ThumbnailsResponse: {
7893
+ /** Thumbnails */
7894
+ thumbnails: {
7895
+ [key: string]: string | null;
7896
+ };
7897
+ };
7830
7898
  /** TitleLLMConfig */
7831
7899
  TitleLLMConfig: {
7832
7900
  /**
@@ -8446,6 +8514,11 @@ interface components {
8446
8514
  * @default false
8447
8515
  */
8448
8516
  show_mcp_connectors: boolean;
8517
+ /**
8518
+ * Show File Explorer
8519
+ * @default false
8520
+ */
8521
+ show_file_explorer: boolean;
8449
8522
  /**
8450
8523
  * Show Hints
8451
8524
  * @default true
@@ -8519,6 +8592,8 @@ interface components {
8519
8592
  show_agent_sessions?: boolean | null;
8520
8593
  /** Show Mcp Connectors */
8521
8594
  show_mcp_connectors?: boolean | null;
8595
+ /** Show File Explorer */
8596
+ show_file_explorer?: boolean | null;
8522
8597
  /** Show Hints */
8523
8598
  show_hints?: boolean | null;
8524
8599
  /** Dismissed Tips */
@@ -10833,6 +10908,70 @@ interface operations {
10833
10908
  };
10834
10909
  };
10835
10910
  };
10911
+ get_document_thumbnail: {
10912
+ parameters: {
10913
+ query?: never;
10914
+ header?: never;
10915
+ path: {
10916
+ document_ext_id: string;
10917
+ };
10918
+ cookie?: never;
10919
+ };
10920
+ requestBody?: never;
10921
+ responses: {
10922
+ /** @description Successful Response */
10923
+ 200: {
10924
+ headers: {
10925
+ [name: string]: unknown;
10926
+ };
10927
+ content: {
10928
+ 'image/webp': unknown;
10929
+ };
10930
+ };
10931
+ /** @description Validation Error */
10932
+ 422: {
10933
+ headers: {
10934
+ [name: string]: unknown;
10935
+ };
10936
+ content: {
10937
+ 'application/json': components['schemas']['HTTPValidationError'];
10938
+ };
10939
+ };
10940
+ };
10941
+ };
10942
+ get_document_thumbnails: {
10943
+ parameters: {
10944
+ query?: never;
10945
+ header?: never;
10946
+ path?: never;
10947
+ cookie?: never;
10948
+ };
10949
+ requestBody: {
10950
+ content: {
10951
+ 'application/json': components['schemas']['ThumbnailsRequest'];
10952
+ };
10953
+ };
10954
+ responses: {
10955
+ /** @description Successful Response */
10956
+ 200: {
10957
+ headers: {
10958
+ [name: string]: unknown;
10959
+ };
10960
+ content: {
10961
+ 'application/json': components['schemas']['ThumbnailsResponse'];
10962
+ };
10963
+ };
10964
+ /** @description Validation Error */
10965
+ 422: {
10966
+ headers: {
10967
+ [name: string]: unknown;
10968
+ };
10969
+ content: {
10970
+ 'application/json': components['schemas']['HTTPValidationError'];
10971
+ };
10972
+ };
10973
+ };
10974
+ };
10836
10975
  get_parsed_document: {
10837
10976
  parameters: {
10838
10977
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.89",
3
+ "version": "0.3.91",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",