@arbidocs/client 0.5.192 → 0.5.193

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
@@ -1308,7 +1308,7 @@ interface paths$1 {
1308
1308
  };
1309
1309
  /**
1310
1310
  * Get Products
1311
- * @description The Pro plan (one licence: £10 of AI usage + 5 GB a month) and its monthly / annual prices, with the add-on
1311
+ * @description The Pro plan (one licence: £40 of AI usage + 5 GB a month) and its monthly / annual prices, with the add-on
1312
1312
  * block prices at each interval (+£20 of AI usage or +20 GB a month each). ``pack_prices`` lists only one
1313
1313
  * licence (Pro Plus and multi-pack plans are no longer sold). ``amount`` fields are incl. UK VAT,
1314
1314
  * ``amount_ex_vat`` the ex-VAT price Stripe charges (other countries: ``POST /v1/user/projects/quote``).
@@ -5046,6 +5046,28 @@ interface paths$1 {
5046
5046
  patch?: never;
5047
5047
  trace?: never;
5048
5048
  };
5049
+ '/v1/databases/capabilities': {
5050
+ parameters: {
5051
+ query?: never;
5052
+ header?: never;
5053
+ path?: never;
5054
+ cookie?: never;
5055
+ };
5056
+ /**
5057
+ * Get Database Capabilities
5058
+ * @description What this deployment's databases can do: the column types that can be added (``tag`` and ``source`` only
5059
+ * when the deployment enables them) and the layouts a saved view can store. Needs no database or workspace; a
5060
+ * client reads it once and offers only what is listed.
5061
+ */
5062
+ get: operations['get_database_capabilities'];
5063
+ put?: never;
5064
+ post?: never;
5065
+ delete?: never;
5066
+ options?: never;
5067
+ head?: never;
5068
+ patch?: never;
5069
+ trace?: never;
5070
+ };
5049
5071
  '/v1/databases/links': {
5050
5072
  parameters: {
5051
5073
  query?: never;
@@ -15480,6 +15502,23 @@ interface components$1 {
15480
15502
  */
15481
15503
  truncated: boolean;
15482
15504
  };
15505
+ /**
15506
+ * DatabaseCapabilities
15507
+ * @description What this deployment's databases can do (``GET /v1/databases/capabilities``): a client reads it once and offers
15508
+ * only what is listed.
15509
+ */
15510
+ DatabaseCapabilities: {
15511
+ /**
15512
+ * Column Types
15513
+ * @description The column types that can be added; ``tag`` and ``source`` only when the deployment enables them
15514
+ */
15515
+ column_types: string[];
15516
+ /**
15517
+ * View Layouts
15518
+ * @description The layouts a saved view can store (none yet)
15519
+ */
15520
+ view_layouts?: string[];
15521
+ };
15483
15522
  /**
15484
15523
  * DatabaseColumn
15485
15524
  * @description A column: a typed field (:class:`~src.models.fields.FieldDefinition`), plus what a relation, lookup or
@@ -15494,7 +15533,7 @@ interface components$1 {
15494
15533
  * Type
15495
15534
  * @enum {string}
15496
15535
  */
15497
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
15536
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
15498
15537
  /** Options */
15499
15538
  options?: string[] | null;
15500
15539
  relation?: components$1['schemas']['DatabaseRelation'] | null;
@@ -15521,7 +15560,7 @@ interface components$1 {
15521
15560
  * @default text
15522
15561
  * @enum {string}
15523
15562
  */
15524
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
15563
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
15525
15564
  /** Options */
15526
15565
  options?: string[] | null;
15527
15566
  relation?: components$1['schemas']['DatabaseRelationWrite'] | null;
@@ -15779,8 +15818,9 @@ interface components$1 {
15779
15818
  };
15780
15819
  /**
15781
15820
  * DatabaseRowRead
15782
- * @description A row: cell values keyed by column id. ``document`` and ``relation`` cells are lists of ids, a ``lookup``
15783
- * a list of values, a ``rollup`` a number. ``titles`` names every document and related row it links.
15821
+ * @description A row: cell values keyed by column id. ``document``, ``relation`` and ``tag`` cells are lists of ids, a
15822
+ * ``source`` cell a list of ``{doc_ext_id, version, chunks: [{chunk_id, page}]}``, a ``lookup`` a list of values,
15823
+ * a ``rollup`` a number. ``titles`` names every document, related row and tag it links.
15784
15824
  */
15785
15825
  DatabaseRowRead: {
15786
15826
  /** Id */
@@ -15834,7 +15874,9 @@ interface components$1 {
15834
15874
  * @description Cell values keyed by column id or column name; ``null`` empties a cell.
15835
15875
  *
15836
15876
  * A ``document`` or ``relation`` cell takes an id or a list of them (``doc-…`` / ``dbr-…``), replacing the
15837
- * cell's links; on a two-way relation either side can be written.
15877
+ * cell's links; on a two-way relation either side can be written. A ``tag`` cell takes tag ids (``tag-…``). A
15878
+ * ``source`` cell takes a list of ``{doc_ext_id, version?, chunks?: [{chunk_id, page?}]}`` (a bare ``doc-…`` id
15879
+ * cites the whole document); the version is pinned to the current one when absent.
15838
15880
  */
15839
15881
  DatabaseRowWrite: {
15840
15882
  /** Values */
@@ -17329,7 +17371,7 @@ interface components$1 {
17329
17371
  * Type
17330
17372
  * @enum {string}
17331
17373
  */
17332
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
17374
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
17333
17375
  /** Options */
17334
17376
  options?: string[] | null;
17335
17377
  };
@@ -17347,7 +17389,7 @@ interface components$1 {
17347
17389
  * @default text
17348
17390
  * @enum {string}
17349
17391
  */
17350
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
17392
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
17351
17393
  /** Options */
17352
17394
  options?: string[] | null;
17353
17395
  };
@@ -17365,7 +17407,7 @@ interface components$1 {
17365
17407
  * @default text
17366
17408
  * @enum {string}
17367
17409
  */
17368
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
17410
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
17369
17411
  /** Options */
17370
17412
  options?: string[] | null;
17371
17413
  };
@@ -19910,6 +19952,8 @@ interface components$1 {
19910
19952
  output_cost_per_token?: number | null;
19911
19953
  /** Provider */
19912
19954
  provider?: string | null;
19955
+ /** Current Version */
19956
+ current_version?: string | null;
19913
19957
  /** Mode */
19914
19958
  mode?: string | null;
19915
19959
  /** Supports Vision */
@@ -21123,7 +21167,7 @@ interface components$1 {
21123
21167
  collaborator_daily_limit_step_gbp: number;
21124
21168
  /**
21125
21169
  * Included Ai Gbp
21126
- * @default 10
21170
+ * @default 40
21127
21171
  */
21128
21172
  included_ai_gbp: number;
21129
21173
  /**
@@ -25617,6 +25661,11 @@ interface components$1 {
25617
25661
  * @default 0
25618
25662
  */
25619
25663
  convotag_count: number;
25664
+ /**
25665
+ * Dbrow Count
25666
+ * @default 0
25667
+ */
25668
+ dbrow_count: number;
25620
25669
  /** Field Values */
25621
25670
  field_values?: {
25622
25671
  [key: string]: unknown;
@@ -26148,6 +26197,11 @@ interface components$1 {
26148
26197
  * @description Model used for the LLM call
26149
26198
  */
26150
26199
  model_name?: string | null;
26200
+ /**
26201
+ * Served Model
26202
+ * @description The upstream model that actually answered (LiteLLM's x-litellm-model-name), e.g. the version behind a family name, or the fallback model if the family was unavailable. Absent when LiteLLM did not report it.
26203
+ */
26204
+ served_model?: string | null;
26151
26205
  /** @description Aggregate usage across all LLM calls in the request */
26152
26206
  all_llm_calls?: components$1['schemas']['AllLlmCallsAggregate'] | null;
26153
26207
  };
@@ -35958,6 +36012,26 @@ interface operations {
35958
36012
  };
35959
36013
  };
35960
36014
  };
36015
+ get_database_capabilities: {
36016
+ parameters: {
36017
+ query?: never;
36018
+ header?: never;
36019
+ path?: never;
36020
+ cookie?: never;
36021
+ };
36022
+ requestBody?: never;
36023
+ responses: {
36024
+ /** @description Successful Response */
36025
+ 200: {
36026
+ headers: {
36027
+ [name: string]: unknown;
36028
+ };
36029
+ content: {
36030
+ 'application/json': components$1['schemas']['DatabaseCapabilities'];
36031
+ };
36032
+ };
36033
+ };
36034
+ };
35961
36035
  list_database_document_links: {
35962
36036
  parameters: {
35963
36037
  query: {
package/dist/index.d.ts CHANGED
@@ -1308,7 +1308,7 @@ interface paths$1 {
1308
1308
  };
1309
1309
  /**
1310
1310
  * Get Products
1311
- * @description The Pro plan (one licence: £10 of AI usage + 5 GB a month) and its monthly / annual prices, with the add-on
1311
+ * @description The Pro plan (one licence: £40 of AI usage + 5 GB a month) and its monthly / annual prices, with the add-on
1312
1312
  * block prices at each interval (+£20 of AI usage or +20 GB a month each). ``pack_prices`` lists only one
1313
1313
  * licence (Pro Plus and multi-pack plans are no longer sold). ``amount`` fields are incl. UK VAT,
1314
1314
  * ``amount_ex_vat`` the ex-VAT price Stripe charges (other countries: ``POST /v1/user/projects/quote``).
@@ -5046,6 +5046,28 @@ interface paths$1 {
5046
5046
  patch?: never;
5047
5047
  trace?: never;
5048
5048
  };
5049
+ '/v1/databases/capabilities': {
5050
+ parameters: {
5051
+ query?: never;
5052
+ header?: never;
5053
+ path?: never;
5054
+ cookie?: never;
5055
+ };
5056
+ /**
5057
+ * Get Database Capabilities
5058
+ * @description What this deployment's databases can do: the column types that can be added (``tag`` and ``source`` only
5059
+ * when the deployment enables them) and the layouts a saved view can store. Needs no database or workspace; a
5060
+ * client reads it once and offers only what is listed.
5061
+ */
5062
+ get: operations['get_database_capabilities'];
5063
+ put?: never;
5064
+ post?: never;
5065
+ delete?: never;
5066
+ options?: never;
5067
+ head?: never;
5068
+ patch?: never;
5069
+ trace?: never;
5070
+ };
5049
5071
  '/v1/databases/links': {
5050
5072
  parameters: {
5051
5073
  query?: never;
@@ -15480,6 +15502,23 @@ interface components$1 {
15480
15502
  */
15481
15503
  truncated: boolean;
15482
15504
  };
15505
+ /**
15506
+ * DatabaseCapabilities
15507
+ * @description What this deployment's databases can do (``GET /v1/databases/capabilities``): a client reads it once and offers
15508
+ * only what is listed.
15509
+ */
15510
+ DatabaseCapabilities: {
15511
+ /**
15512
+ * Column Types
15513
+ * @description The column types that can be added; ``tag`` and ``source`` only when the deployment enables them
15514
+ */
15515
+ column_types: string[];
15516
+ /**
15517
+ * View Layouts
15518
+ * @description The layouts a saved view can store (none yet)
15519
+ */
15520
+ view_layouts?: string[];
15521
+ };
15483
15522
  /**
15484
15523
  * DatabaseColumn
15485
15524
  * @description A column: a typed field (:class:`~src.models.fields.FieldDefinition`), plus what a relation, lookup or
@@ -15494,7 +15533,7 @@ interface components$1 {
15494
15533
  * Type
15495
15534
  * @enum {string}
15496
15535
  */
15497
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
15536
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
15498
15537
  /** Options */
15499
15538
  options?: string[] | null;
15500
15539
  relation?: components$1['schemas']['DatabaseRelation'] | null;
@@ -15521,7 +15560,7 @@ interface components$1 {
15521
15560
  * @default text
15522
15561
  * @enum {string}
15523
15562
  */
15524
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
15563
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
15525
15564
  /** Options */
15526
15565
  options?: string[] | null;
15527
15566
  relation?: components$1['schemas']['DatabaseRelationWrite'] | null;
@@ -15779,8 +15818,9 @@ interface components$1 {
15779
15818
  };
15780
15819
  /**
15781
15820
  * DatabaseRowRead
15782
- * @description A row: cell values keyed by column id. ``document`` and ``relation`` cells are lists of ids, a ``lookup``
15783
- * a list of values, a ``rollup`` a number. ``titles`` names every document and related row it links.
15821
+ * @description A row: cell values keyed by column id. ``document``, ``relation`` and ``tag`` cells are lists of ids, a
15822
+ * ``source`` cell a list of ``{doc_ext_id, version, chunks: [{chunk_id, page}]}``, a ``lookup`` a list of values,
15823
+ * a ``rollup`` a number. ``titles`` names every document, related row and tag it links.
15784
15824
  */
15785
15825
  DatabaseRowRead: {
15786
15826
  /** Id */
@@ -15834,7 +15874,9 @@ interface components$1 {
15834
15874
  * @description Cell values keyed by column id or column name; ``null`` empties a cell.
15835
15875
  *
15836
15876
  * A ``document`` or ``relation`` cell takes an id or a list of them (``doc-…`` / ``dbr-…``), replacing the
15837
- * cell's links; on a two-way relation either side can be written.
15877
+ * cell's links; on a two-way relation either side can be written. A ``tag`` cell takes tag ids (``tag-…``). A
15878
+ * ``source`` cell takes a list of ``{doc_ext_id, version?, chunks?: [{chunk_id, page?}]}`` (a bare ``doc-…`` id
15879
+ * cites the whole document); the version is pinned to the current one when absent.
15838
15880
  */
15839
15881
  DatabaseRowWrite: {
15840
15882
  /** Values */
@@ -17329,7 +17371,7 @@ interface components$1 {
17329
17371
  * Type
17330
17372
  * @enum {string}
17331
17373
  */
17332
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
17374
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
17333
17375
  /** Options */
17334
17376
  options?: string[] | null;
17335
17377
  };
@@ -17347,7 +17389,7 @@ interface components$1 {
17347
17389
  * @default text
17348
17390
  * @enum {string}
17349
17391
  */
17350
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
17392
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
17351
17393
  /** Options */
17352
17394
  options?: string[] | null;
17353
17395
  };
@@ -17365,7 +17407,7 @@ interface components$1 {
17365
17407
  * @default text
17366
17408
  * @enum {string}
17367
17409
  */
17368
- type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag';
17410
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'person' | 'document' | 'relation' | 'lookup' | 'rollup' | 'tag' | 'source';
17369
17411
  /** Options */
17370
17412
  options?: string[] | null;
17371
17413
  };
@@ -19910,6 +19952,8 @@ interface components$1 {
19910
19952
  output_cost_per_token?: number | null;
19911
19953
  /** Provider */
19912
19954
  provider?: string | null;
19955
+ /** Current Version */
19956
+ current_version?: string | null;
19913
19957
  /** Mode */
19914
19958
  mode?: string | null;
19915
19959
  /** Supports Vision */
@@ -21123,7 +21167,7 @@ interface components$1 {
21123
21167
  collaborator_daily_limit_step_gbp: number;
21124
21168
  /**
21125
21169
  * Included Ai Gbp
21126
- * @default 10
21170
+ * @default 40
21127
21171
  */
21128
21172
  included_ai_gbp: number;
21129
21173
  /**
@@ -25617,6 +25661,11 @@ interface components$1 {
25617
25661
  * @default 0
25618
25662
  */
25619
25663
  convotag_count: number;
25664
+ /**
25665
+ * Dbrow Count
25666
+ * @default 0
25667
+ */
25668
+ dbrow_count: number;
25620
25669
  /** Field Values */
25621
25670
  field_values?: {
25622
25671
  [key: string]: unknown;
@@ -26148,6 +26197,11 @@ interface components$1 {
26148
26197
  * @description Model used for the LLM call
26149
26198
  */
26150
26199
  model_name?: string | null;
26200
+ /**
26201
+ * Served Model
26202
+ * @description The upstream model that actually answered (LiteLLM's x-litellm-model-name), e.g. the version behind a family name, or the fallback model if the family was unavailable. Absent when LiteLLM did not report it.
26203
+ */
26204
+ served_model?: string | null;
26151
26205
  /** @description Aggregate usage across all LLM calls in the request */
26152
26206
  all_llm_calls?: components$1['schemas']['AllLlmCallsAggregate'] | null;
26153
26207
  };
@@ -35958,6 +36012,26 @@ interface operations {
35958
36012
  };
35959
36013
  };
35960
36014
  };
36015
+ get_database_capabilities: {
36016
+ parameters: {
36017
+ query?: never;
36018
+ header?: never;
36019
+ path?: never;
36020
+ cookie?: never;
36021
+ };
36022
+ requestBody?: never;
36023
+ responses: {
36024
+ /** @description Successful Response */
36025
+ 200: {
36026
+ headers: {
36027
+ [name: string]: unknown;
36028
+ };
36029
+ content: {
36030
+ 'application/json': components$1['schemas']['DatabaseCapabilities'];
36031
+ };
36032
+ };
36033
+ };
36034
+ };
35961
36035
  list_database_document_links: {
35962
36036
  parameters: {
35963
36037
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.5.192",
3
+ "version": "0.5.193",
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
  "sideEffects": false,