@arbidocs/client 0.5.152 → 0.5.154

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
@@ -202,6 +202,31 @@ interface paths$1 {
202
202
  patch?: never;
203
203
  trace?: never;
204
204
  };
205
+ '/v1/user/projects/usage': {
206
+ parameters: {
207
+ query?: never;
208
+ header?: never;
209
+ path?: never;
210
+ cookie?: never;
211
+ };
212
+ /**
213
+ * List Projects Usage
214
+ * @description The AI usage of every project the caller owns, each for its own billing period ``months_back`` periods ago:
215
+ * ``GET /{project_ext_id}/usage`` for all of them in one request (a dashboard of all your projects).
216
+ *
217
+ * Only the caller's own projects are listed, as only a project's owner may read its usage; a project still
218
+ * waiting for its first payment is not one yet. A project whose usage cannot be read is listed with ``usage``
219
+ * null rather than failing the others.
220
+ */
221
+ get: operations['list_projects_usage'];
222
+ put?: never;
223
+ post?: never;
224
+ delete?: never;
225
+ options?: never;
226
+ head?: never;
227
+ patch?: never;
228
+ trace?: never;
229
+ };
205
230
  '/v1/user/projects/{project_ext_id}': {
206
231
  parameters: {
207
232
  query?: never;
@@ -1509,7 +1534,8 @@ interface paths$1 {
1509
1534
  /**
1510
1535
  * Purge Storage Items
1511
1536
  * @description Delete permanently what is in a project's trash now (Empty trash), or only some of it: deleted workspaces
1512
- * and documents, mail in the Trash, orphaned files. It stops counting at once. This cannot be undone. Items not
1537
+ * and documents, mail in the Trash, orphaned files. It stops counting, and is gone from the trash, when this
1538
+ * returns; the files themselves are deleted right after, in the background. This cannot be undone. Items not
1513
1539
  * in the trash are never touched.
1514
1540
  */
1515
1541
  delete: operations['purge_storage_items'];
@@ -2210,6 +2236,32 @@ interface paths$1 {
2210
2236
  patch?: never;
2211
2237
  trace?: never;
2212
2238
  };
2239
+ '/v1/workspace/{workspace_ext_id}/aggregate': {
2240
+ parameters: {
2241
+ query?: never;
2242
+ header?: never;
2243
+ path?: never;
2244
+ cookie?: never;
2245
+ };
2246
+ get?: never;
2247
+ put?: never;
2248
+ /**
2249
+ * Aggregate Workspace
2250
+ * @description Count the workspace's documents, threads, tags, facts, workflows or recent activity, grouped: one result per
2251
+ * query, in order — the numbers a page's charts and metric tiles draw, without downloading the lists.
2252
+ *
2253
+ * Each source counts what its list endpoint would return to the caller (the same RLS session and workspace
2254
+ * scope), so private items of others are never counted. The workspace's key must be on the session, as for the
2255
+ * lists (409 ``workspace_key_required``): encrypted dimensions are decrypted with it, and only those asked for.
2256
+ * A query the source cannot answer (an unknown field, a text filter) is a 422.
2257
+ */
2258
+ post: operations['aggregate_workspace'];
2259
+ delete?: never;
2260
+ options?: never;
2261
+ head?: never;
2262
+ patch?: never;
2263
+ trace?: never;
2264
+ };
2213
2265
  '/v1/workspace/{workspace_ext_id}/archive': {
2214
2266
  parameters: {
2215
2267
  query?: never;
@@ -5191,6 +5243,31 @@ interface paths$1 {
5191
5243
  patch: operations['update_table_view'];
5192
5244
  trace?: never;
5193
5245
  };
5246
+ '/v1/views/{view_id}/rows': {
5247
+ parameters: {
5248
+ query?: never;
5249
+ header?: never;
5250
+ path?: never;
5251
+ cookie?: never;
5252
+ };
5253
+ /**
5254
+ * Get View Rows
5255
+ * @description A view and its rows in one read, for a page's table block: the view (as ``GET /{view_id}``), its database (as
5256
+ * ``GET /v1/databases/{id}``), the view's columns, and the rows with the view's filters and sort applied (as
5257
+ * ``GET /v1/databases/{id}/rows?view=``), each with only the view's columns.
5258
+ *
5259
+ * The caller must be able to see both the view (another person's private view is not found) and its database. A
5260
+ * view of the document table comes back without a database or rows.
5261
+ */
5262
+ get: operations['get_table_view_rows'];
5263
+ put?: never;
5264
+ post?: never;
5265
+ delete?: never;
5266
+ options?: never;
5267
+ head?: never;
5268
+ patch?: never;
5269
+ trace?: never;
5270
+ };
5194
5271
  '/v1/views/{view_id}/share': {
5195
5272
  parameters: {
5196
5273
  query?: never;
@@ -9618,6 +9695,35 @@ interface components$1 {
9618
9695
  */
9619
9696
  initials_image?: string | null;
9620
9697
  };
9698
+ /** AgendaBlock */
9699
+ AgendaBlock: {
9700
+ /** Id */
9701
+ id: string;
9702
+ layout?: components$1['schemas']['BlockLayout'];
9703
+ /**
9704
+ * @description discriminator enum property added by openapi-typescript
9705
+ * @enum {string}
9706
+ */
9707
+ kind: 'agenda';
9708
+ config?: components$1['schemas']['AgendaBlockConfig'];
9709
+ };
9710
+ /**
9711
+ * AgendaBlockConfig
9712
+ * @description The viewer's own next calendar events.
9713
+ */
9714
+ AgendaBlockConfig: {
9715
+ /**
9716
+ * Days
9717
+ * @description How far ahead it looks
9718
+ * @default 7
9719
+ */
9720
+ days: number;
9721
+ /**
9722
+ * Limit
9723
+ * @default 8
9724
+ */
9725
+ limit: number;
9726
+ };
9621
9727
  /** AgentChatResponse */
9622
9728
  AgentChatResponse: {
9623
9729
  /** Conversation Ext Id */
@@ -10398,6 +10504,27 @@ interface components$1 {
10398
10504
  */
10399
10505
  AGENT_TURN_BUDGET_GBP: number;
10400
10506
  };
10507
+ /**
10508
+ * AggregateCell
10509
+ * @description Rows sharing the same value of every dimension (``values[i]`` is ``dimensions[i]``'s).
10510
+ */
10511
+ AggregateCell: {
10512
+ /** Values */
10513
+ values: (string | boolean | number | string[] | null)[];
10514
+ /** Count */
10515
+ count: number;
10516
+ /**
10517
+ * Filled
10518
+ * @default 0
10519
+ */
10520
+ filled: number;
10521
+ /** Sum */
10522
+ sum?: number | null;
10523
+ /** Min */
10524
+ min?: number | null;
10525
+ /** Max */
10526
+ max?: number | null;
10527
+ };
10401
10528
  /** AllConfigs */
10402
10529
  AllConfigs: {
10403
10530
  /**
@@ -12954,6 +13081,35 @@ interface components$1 {
12954
13081
  */
12955
13082
  transcription_available: boolean;
12956
13083
  };
13084
+ /** CarouselBlock */
13085
+ CarouselBlock: {
13086
+ /** Id */
13087
+ id: string;
13088
+ layout?: components$1['schemas']['BlockLayout'];
13089
+ /**
13090
+ * @description discriminator enum property added by openapi-typescript
13091
+ * @enum {string}
13092
+ */
13093
+ kind: 'carousel';
13094
+ config: components$1['schemas']['CarouselBlockConfig'];
13095
+ };
13096
+ /**
13097
+ * CarouselBlockConfig
13098
+ * @description A row of cards the viewer can start or open: their skills (each opens its launcher) or their workflows (each
13099
+ * opens the workflow). It names no item.
13100
+ */
13101
+ CarouselBlockConfig: {
13102
+ /**
13103
+ * Source
13104
+ * @enum {string}
13105
+ */
13106
+ source: 'skills' | 'workflows';
13107
+ /**
13108
+ * Limit
13109
+ * @default 12
13110
+ */
13111
+ limit: number;
13112
+ };
12957
13113
  /**
12958
13114
  * ChangePasswordRequest
12959
13115
  * @description Change the master password: replace the password key and the wrapped identity key, nothing else.
@@ -18062,6 +18218,41 @@ interface components$1 {
18062
18218
  */
18063
18219
  NORMALIZE_TRADITIONAL_TO_SIMPLIFIED: boolean;
18064
18220
  };
18221
+ /** ListBlock */
18222
+ ListBlock: {
18223
+ /** Id */
18224
+ id: string;
18225
+ layout?: components$1['schemas']['BlockLayout'];
18226
+ /**
18227
+ * @description discriminator enum property added by openapi-typescript
18228
+ * @enum {string}
18229
+ */
18230
+ kind: 'list';
18231
+ config: components$1['schemas']['ListBlockConfig'];
18232
+ };
18233
+ /**
18234
+ * ListBlockConfig
18235
+ * @description A live list of the viewer's own recent items of one source, each row opening its item: the latest files, the
18236
+ * latest threads, or the facts (upcoming dated ones, the newest others). It names no item.
18237
+ */
18238
+ ListBlockConfig: {
18239
+ /**
18240
+ * Source
18241
+ * @enum {string}
18242
+ */
18243
+ source: 'documents' | 'conversations' | 'facts';
18244
+ /**
18245
+ * Limit
18246
+ * @description Rows shown (facts: rows per group)
18247
+ * @default 5
18248
+ */
18249
+ limit: number;
18250
+ /**
18251
+ * Facts
18252
+ * @description Facts only: which groups show (default both, upcoming dated first)
18253
+ */
18254
+ facts?: ('upcoming_and_newest' | 'upcoming' | 'newest') | null;
18255
+ };
18065
18256
  /**
18066
18257
  * LoginRequest
18067
18258
  * @description Unified login request for users and agents.
@@ -20081,7 +20272,7 @@ interface components$1 {
20081
20272
  /** Description */
20082
20273
  description?: string | null;
20083
20274
  /** Blocks */
20084
- blocks?: (components$1['schemas']['ChartBlock'] | components$1['schemas']['MetricBlock'] | components$1['schemas']['TextBlock'] | components$1['schemas']['TableBlock'] | components$1['schemas']['DocumentBlock'] | components$1['schemas']['GalleryBlock'])[];
20275
+ blocks?: (components$1['schemas']['ChartBlock'] | components$1['schemas']['MetricBlock'] | components$1['schemas']['TextBlock'] | components$1['schemas']['TableBlock'] | components$1['schemas']['DocumentBlock'] | components$1['schemas']['GalleryBlock'] | components$1['schemas']['ListBlock'] | components$1['schemas']['CarouselBlock'] | components$1['schemas']['AgendaBlock'] | components$1['schemas']['StartBlock'])[];
20085
20276
  };
20086
20277
  /**
20087
20278
  * PageViewRef
@@ -21458,6 +21649,17 @@ interface components$1 {
21458
21649
  /** Daily Cap Per User */
21459
21650
  daily_cap_per_user?: number | null;
21460
21651
  };
21652
+ /**
21653
+ * ProjectUsageEntry
21654
+ * @description One owned project's usage in ``GET /v1/user/projects/usage``; ``usage`` is null when it could not be read.
21655
+ */
21656
+ ProjectUsageEntry: {
21657
+ /** Project Ext Id */
21658
+ project_ext_id: string;
21659
+ /** Name */
21660
+ name: string;
21661
+ usage?: components$1['schemas']['ProjectUsageResponse'] | null;
21662
+ };
21461
21663
  /**
21462
21664
  * ProjectUsageResponse
21463
21665
  * @description Usage breakdown for a project's billing period.
@@ -21524,6 +21726,14 @@ interface components$1 {
21524
21726
  /** Invoice Pdf */
21525
21727
  invoice_pdf?: string | null;
21526
21728
  };
21729
+ /**
21730
+ * ProjectsUsageResponse
21731
+ * @description The usage of every project the caller owns, for one billing period (each its own period).
21732
+ */
21733
+ ProjectsUsageResponse: {
21734
+ /** Projects */
21735
+ projects: components$1['schemas']['ProjectUsageEntry'][];
21736
+ };
21527
21737
  /** PublicBookingPage */
21528
21738
  PublicBookingPage: {
21529
21739
  /** Title */
@@ -24081,6 +24291,23 @@ interface components$1 {
24081
24291
  /** Image */
24082
24292
  image?: string | null;
24083
24293
  };
24294
+ /** StartBlock */
24295
+ StartBlock: {
24296
+ /** Id */
24297
+ id: string;
24298
+ layout?: components$1['schemas']['BlockLayout'];
24299
+ /**
24300
+ * @description discriminator enum property added by openapi-typescript
24301
+ * @enum {string}
24302
+ */
24303
+ kind: 'start';
24304
+ config?: components$1['schemas']['StartBlockConfig'];
24305
+ };
24306
+ /**
24307
+ * StartBlockConfig
24308
+ * @description The workspace home's Start band (what the viewer can start, and adding files): nothing to configure.
24309
+ */
24310
+ StartBlockConfig: Record<string, never>;
24084
24311
  /**
24085
24312
  * StepActionRequest
24086
24313
  * @description A person finishes a step of a workflow run (``POST /v1/conversation/{id}/step``).
@@ -24895,6 +25122,27 @@ interface components$1 {
24895
25122
  */
24896
25123
  updated_at: string;
24897
25124
  };
25125
+ /**
25126
+ * TableViewRows
25127
+ * @description A view with its rows (``GET /v1/views/{id}/rows``): what a page's table block shows, in one read.
25128
+ *
25129
+ * ``database`` is the view's database (``None`` for a view of the document table, which has no rows here);
25130
+ * ``columns`` are the view's columns in its order (every column when it names none; a dropped one is left out);
25131
+ * ``rows`` are the database's rows with the view's filters and sort applied, each holding only those columns.
25132
+ */
25133
+ TableViewRows: {
25134
+ view: components$1['schemas']['TableViewRead'];
25135
+ database?: components$1['schemas']['DatabaseRead'] | null;
25136
+ /** Columns */
25137
+ columns?: components$1['schemas']['DatabaseColumn'][];
25138
+ /** Rows */
25139
+ rows?: components$1['schemas']['DatabaseRowRead'][];
25140
+ /**
25141
+ * Total
25142
+ * @default 0
25143
+ */
25144
+ total: number;
25145
+ };
24898
25146
  /**
24899
25147
  * TableViewSpec
24900
25148
  * @description What a view shows. Columns, filters, ``sort`` and ``group_by`` name a table's columns: a database's column
@@ -27415,6 +27663,83 @@ interface components$1 {
27415
27663
  * @enum {string}
27416
27664
  */
27417
27665
  WorkspaceActivitySource: 'thread' | 'message' | 'document' | 'workflow';
27666
+ /**
27667
+ * WorkspaceAggregateFilter
27668
+ * @description Keep rows whose ``field`` (a number, date or yes/no field of the source) satisfies ``op`` ``value``.
27669
+ *
27670
+ * Dates compare as UTC instants (``2026-06-01`` is its midnight). ``neq`` keeps empty values; ``empty`` /
27671
+ * ``not_empty`` ignore ``value``. Text fields are not filtered here: ask for them as a dimension and keep the
27672
+ * cells wanted.
27673
+ */
27674
+ WorkspaceAggregateFilter: {
27675
+ /** Field */
27676
+ field: string;
27677
+ /**
27678
+ * Op
27679
+ * @default eq
27680
+ * @enum {string}
27681
+ */
27682
+ op: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'empty' | 'not_empty';
27683
+ /** Value */
27684
+ value?: string | boolean | number | null;
27685
+ };
27686
+ /**
27687
+ * WorkspaceAggregateQuery
27688
+ * @description One aggregate: the rows of ``source`` that pass ``filters``, grouped by ``dimensions``.
27689
+ *
27690
+ * A date dimension is grouped by ``time_bucket`` (its value is the bucket's first day; an ISO week starts on a
27691
+ * Monday). With ``measure`` (a number field), each cell also has the sum, smallest and largest of its values and how
27692
+ * many rows have one.
27693
+ */
27694
+ WorkspaceAggregateQuery: {
27695
+ /**
27696
+ * Source
27697
+ * @enum {string}
27698
+ */
27699
+ source: 'documents' | 'conversations' | 'tags' | 'facts' | 'workflows' | 'activity';
27700
+ /** Dimensions */
27701
+ dimensions?: string[];
27702
+ /**
27703
+ * Time Bucket
27704
+ * @default month
27705
+ * @enum {string}
27706
+ */
27707
+ time_bucket: 'day' | 'week' | 'month' | 'quarter' | 'year';
27708
+ /**
27709
+ * Measure
27710
+ * @description A number field of the source
27711
+ */
27712
+ measure?: string | null;
27713
+ /** Filters */
27714
+ filters?: components$1['schemas']['WorkspaceAggregateFilter'][];
27715
+ };
27716
+ /**
27717
+ * WorkspaceAggregateRequest
27718
+ * @description Several aggregates in one request (the charts of a page), answered in order.
27719
+ */
27720
+ WorkspaceAggregateRequest: {
27721
+ /** Queries */
27722
+ queries: components$1['schemas']['WorkspaceAggregateQuery'][];
27723
+ };
27724
+ /** WorkspaceAggregateResponse */
27725
+ WorkspaceAggregateResponse: {
27726
+ /** Results */
27727
+ results: components$1['schemas']['WorkspaceAggregateResult'][];
27728
+ };
27729
+ /** WorkspaceAggregateResult */
27730
+ WorkspaceAggregateResult: {
27731
+ /** Cells */
27732
+ cells: components$1['schemas']['AggregateCell'][];
27733
+ /** Labels */
27734
+ labels?: {
27735
+ [key: string]: string;
27736
+ };
27737
+ /**
27738
+ * Truncated
27739
+ * @default false
27740
+ */
27741
+ truncated: boolean;
27742
+ };
27418
27743
  /**
27419
27744
  * WorkspaceArchiveRead
27420
27745
  * @description A workspace's archive state: ``live`` (open as usual), ``archiving``, ``archived`` or ``restoring``
@@ -27858,6 +28183,38 @@ interface operations {
27858
28183
  };
27859
28184
  };
27860
28185
  };
28186
+ list_projects_usage: {
28187
+ parameters: {
28188
+ query?: {
28189
+ /** @description 0 = current billing period, 1 = previous month, etc. */
28190
+ months_back?: number;
28191
+ };
28192
+ header?: never;
28193
+ path?: never;
28194
+ cookie?: never;
28195
+ };
28196
+ requestBody?: never;
28197
+ responses: {
28198
+ /** @description Successful Response */
28199
+ 200: {
28200
+ headers: {
28201
+ [name: string]: unknown;
28202
+ };
28203
+ content: {
28204
+ 'application/json': components$1['schemas']['ProjectsUsageResponse'];
28205
+ };
28206
+ };
28207
+ /** @description Validation Error */
28208
+ 422: {
28209
+ headers: {
28210
+ [name: string]: unknown;
28211
+ };
28212
+ content: {
28213
+ 'application/json': components$1['schemas']['HTTPValidationError'];
28214
+ };
28215
+ };
28216
+ };
28217
+ };
27861
28218
  get_project: {
27862
28219
  parameters: {
27863
28220
  query?: never;
@@ -30830,6 +31187,41 @@ interface operations {
30830
31187
  };
30831
31188
  };
30832
31189
  };
31190
+ aggregate_workspace: {
31191
+ parameters: {
31192
+ query?: never;
31193
+ header?: never;
31194
+ path: {
31195
+ workspace_ext_id: string;
31196
+ };
31197
+ cookie?: never;
31198
+ };
31199
+ requestBody: {
31200
+ content: {
31201
+ 'application/json': components$1['schemas']['WorkspaceAggregateRequest'];
31202
+ };
31203
+ };
31204
+ responses: {
31205
+ /** @description Successful Response */
31206
+ 200: {
31207
+ headers: {
31208
+ [name: string]: unknown;
31209
+ };
31210
+ content: {
31211
+ 'application/json': components$1['schemas']['WorkspaceAggregateResponse'];
31212
+ };
31213
+ };
31214
+ /** @description Validation Error */
31215
+ 422: {
31216
+ headers: {
31217
+ [name: string]: unknown;
31218
+ };
31219
+ content: {
31220
+ 'application/json': components$1['schemas']['HTTPValidationError'];
31221
+ };
31222
+ };
31223
+ };
31224
+ };
30833
31225
  get_workspace_archive: {
30834
31226
  parameters: {
30835
31227
  query?: never;
@@ -35892,6 +36284,54 @@ interface operations {
35892
36284
  };
35893
36285
  };
35894
36286
  };
36287
+ get_table_view_rows: {
36288
+ parameters: {
36289
+ query?: {
36290
+ offset?: number;
36291
+ limit?: number;
36292
+ };
36293
+ header?: never;
36294
+ path: {
36295
+ view_id: string;
36296
+ };
36297
+ cookie?: never;
36298
+ };
36299
+ requestBody?: never;
36300
+ responses: {
36301
+ /** @description Successful Response */
36302
+ 200: {
36303
+ headers: {
36304
+ [name: string]: unknown;
36305
+ };
36306
+ content: {
36307
+ 'application/json': components$1['schemas']['TableViewRows'];
36308
+ };
36309
+ };
36310
+ /** @description No such view, or another person's private view */
36311
+ 404: {
36312
+ headers: {
36313
+ [name: string]: unknown;
36314
+ };
36315
+ content?: never;
36316
+ };
36317
+ /** @description Shared pages show this view (the detail names them) */
36318
+ 409: {
36319
+ headers: {
36320
+ [name: string]: unknown;
36321
+ };
36322
+ content?: never;
36323
+ };
36324
+ /** @description Validation Error */
36325
+ 422: {
36326
+ headers: {
36327
+ [name: string]: unknown;
36328
+ };
36329
+ content: {
36330
+ 'application/json': components$1['schemas']['HTTPValidationError'];
36331
+ };
36332
+ };
36333
+ };
36334
+ };
35895
36335
  share_table_view: {
35896
36336
  parameters: {
35897
36337
  query?: never;
package/dist/index.d.ts CHANGED
@@ -202,6 +202,31 @@ interface paths$1 {
202
202
  patch?: never;
203
203
  trace?: never;
204
204
  };
205
+ '/v1/user/projects/usage': {
206
+ parameters: {
207
+ query?: never;
208
+ header?: never;
209
+ path?: never;
210
+ cookie?: never;
211
+ };
212
+ /**
213
+ * List Projects Usage
214
+ * @description The AI usage of every project the caller owns, each for its own billing period ``months_back`` periods ago:
215
+ * ``GET /{project_ext_id}/usage`` for all of them in one request (a dashboard of all your projects).
216
+ *
217
+ * Only the caller's own projects are listed, as only a project's owner may read its usage; a project still
218
+ * waiting for its first payment is not one yet. A project whose usage cannot be read is listed with ``usage``
219
+ * null rather than failing the others.
220
+ */
221
+ get: operations['list_projects_usage'];
222
+ put?: never;
223
+ post?: never;
224
+ delete?: never;
225
+ options?: never;
226
+ head?: never;
227
+ patch?: never;
228
+ trace?: never;
229
+ };
205
230
  '/v1/user/projects/{project_ext_id}': {
206
231
  parameters: {
207
232
  query?: never;
@@ -1509,7 +1534,8 @@ interface paths$1 {
1509
1534
  /**
1510
1535
  * Purge Storage Items
1511
1536
  * @description Delete permanently what is in a project's trash now (Empty trash), or only some of it: deleted workspaces
1512
- * and documents, mail in the Trash, orphaned files. It stops counting at once. This cannot be undone. Items not
1537
+ * and documents, mail in the Trash, orphaned files. It stops counting, and is gone from the trash, when this
1538
+ * returns; the files themselves are deleted right after, in the background. This cannot be undone. Items not
1513
1539
  * in the trash are never touched.
1514
1540
  */
1515
1541
  delete: operations['purge_storage_items'];
@@ -2210,6 +2236,32 @@ interface paths$1 {
2210
2236
  patch?: never;
2211
2237
  trace?: never;
2212
2238
  };
2239
+ '/v1/workspace/{workspace_ext_id}/aggregate': {
2240
+ parameters: {
2241
+ query?: never;
2242
+ header?: never;
2243
+ path?: never;
2244
+ cookie?: never;
2245
+ };
2246
+ get?: never;
2247
+ put?: never;
2248
+ /**
2249
+ * Aggregate Workspace
2250
+ * @description Count the workspace's documents, threads, tags, facts, workflows or recent activity, grouped: one result per
2251
+ * query, in order — the numbers a page's charts and metric tiles draw, without downloading the lists.
2252
+ *
2253
+ * Each source counts what its list endpoint would return to the caller (the same RLS session and workspace
2254
+ * scope), so private items of others are never counted. The workspace's key must be on the session, as for the
2255
+ * lists (409 ``workspace_key_required``): encrypted dimensions are decrypted with it, and only those asked for.
2256
+ * A query the source cannot answer (an unknown field, a text filter) is a 422.
2257
+ */
2258
+ post: operations['aggregate_workspace'];
2259
+ delete?: never;
2260
+ options?: never;
2261
+ head?: never;
2262
+ patch?: never;
2263
+ trace?: never;
2264
+ };
2213
2265
  '/v1/workspace/{workspace_ext_id}/archive': {
2214
2266
  parameters: {
2215
2267
  query?: never;
@@ -5191,6 +5243,31 @@ interface paths$1 {
5191
5243
  patch: operations['update_table_view'];
5192
5244
  trace?: never;
5193
5245
  };
5246
+ '/v1/views/{view_id}/rows': {
5247
+ parameters: {
5248
+ query?: never;
5249
+ header?: never;
5250
+ path?: never;
5251
+ cookie?: never;
5252
+ };
5253
+ /**
5254
+ * Get View Rows
5255
+ * @description A view and its rows in one read, for a page's table block: the view (as ``GET /{view_id}``), its database (as
5256
+ * ``GET /v1/databases/{id}``), the view's columns, and the rows with the view's filters and sort applied (as
5257
+ * ``GET /v1/databases/{id}/rows?view=``), each with only the view's columns.
5258
+ *
5259
+ * The caller must be able to see both the view (another person's private view is not found) and its database. A
5260
+ * view of the document table comes back without a database or rows.
5261
+ */
5262
+ get: operations['get_table_view_rows'];
5263
+ put?: never;
5264
+ post?: never;
5265
+ delete?: never;
5266
+ options?: never;
5267
+ head?: never;
5268
+ patch?: never;
5269
+ trace?: never;
5270
+ };
5194
5271
  '/v1/views/{view_id}/share': {
5195
5272
  parameters: {
5196
5273
  query?: never;
@@ -9618,6 +9695,35 @@ interface components$1 {
9618
9695
  */
9619
9696
  initials_image?: string | null;
9620
9697
  };
9698
+ /** AgendaBlock */
9699
+ AgendaBlock: {
9700
+ /** Id */
9701
+ id: string;
9702
+ layout?: components$1['schemas']['BlockLayout'];
9703
+ /**
9704
+ * @description discriminator enum property added by openapi-typescript
9705
+ * @enum {string}
9706
+ */
9707
+ kind: 'agenda';
9708
+ config?: components$1['schemas']['AgendaBlockConfig'];
9709
+ };
9710
+ /**
9711
+ * AgendaBlockConfig
9712
+ * @description The viewer's own next calendar events.
9713
+ */
9714
+ AgendaBlockConfig: {
9715
+ /**
9716
+ * Days
9717
+ * @description How far ahead it looks
9718
+ * @default 7
9719
+ */
9720
+ days: number;
9721
+ /**
9722
+ * Limit
9723
+ * @default 8
9724
+ */
9725
+ limit: number;
9726
+ };
9621
9727
  /** AgentChatResponse */
9622
9728
  AgentChatResponse: {
9623
9729
  /** Conversation Ext Id */
@@ -10398,6 +10504,27 @@ interface components$1 {
10398
10504
  */
10399
10505
  AGENT_TURN_BUDGET_GBP: number;
10400
10506
  };
10507
+ /**
10508
+ * AggregateCell
10509
+ * @description Rows sharing the same value of every dimension (``values[i]`` is ``dimensions[i]``'s).
10510
+ */
10511
+ AggregateCell: {
10512
+ /** Values */
10513
+ values: (string | boolean | number | string[] | null)[];
10514
+ /** Count */
10515
+ count: number;
10516
+ /**
10517
+ * Filled
10518
+ * @default 0
10519
+ */
10520
+ filled: number;
10521
+ /** Sum */
10522
+ sum?: number | null;
10523
+ /** Min */
10524
+ min?: number | null;
10525
+ /** Max */
10526
+ max?: number | null;
10527
+ };
10401
10528
  /** AllConfigs */
10402
10529
  AllConfigs: {
10403
10530
  /**
@@ -12954,6 +13081,35 @@ interface components$1 {
12954
13081
  */
12955
13082
  transcription_available: boolean;
12956
13083
  };
13084
+ /** CarouselBlock */
13085
+ CarouselBlock: {
13086
+ /** Id */
13087
+ id: string;
13088
+ layout?: components$1['schemas']['BlockLayout'];
13089
+ /**
13090
+ * @description discriminator enum property added by openapi-typescript
13091
+ * @enum {string}
13092
+ */
13093
+ kind: 'carousel';
13094
+ config: components$1['schemas']['CarouselBlockConfig'];
13095
+ };
13096
+ /**
13097
+ * CarouselBlockConfig
13098
+ * @description A row of cards the viewer can start or open: their skills (each opens its launcher) or their workflows (each
13099
+ * opens the workflow). It names no item.
13100
+ */
13101
+ CarouselBlockConfig: {
13102
+ /**
13103
+ * Source
13104
+ * @enum {string}
13105
+ */
13106
+ source: 'skills' | 'workflows';
13107
+ /**
13108
+ * Limit
13109
+ * @default 12
13110
+ */
13111
+ limit: number;
13112
+ };
12957
13113
  /**
12958
13114
  * ChangePasswordRequest
12959
13115
  * @description Change the master password: replace the password key and the wrapped identity key, nothing else.
@@ -18062,6 +18218,41 @@ interface components$1 {
18062
18218
  */
18063
18219
  NORMALIZE_TRADITIONAL_TO_SIMPLIFIED: boolean;
18064
18220
  };
18221
+ /** ListBlock */
18222
+ ListBlock: {
18223
+ /** Id */
18224
+ id: string;
18225
+ layout?: components$1['schemas']['BlockLayout'];
18226
+ /**
18227
+ * @description discriminator enum property added by openapi-typescript
18228
+ * @enum {string}
18229
+ */
18230
+ kind: 'list';
18231
+ config: components$1['schemas']['ListBlockConfig'];
18232
+ };
18233
+ /**
18234
+ * ListBlockConfig
18235
+ * @description A live list of the viewer's own recent items of one source, each row opening its item: the latest files, the
18236
+ * latest threads, or the facts (upcoming dated ones, the newest others). It names no item.
18237
+ */
18238
+ ListBlockConfig: {
18239
+ /**
18240
+ * Source
18241
+ * @enum {string}
18242
+ */
18243
+ source: 'documents' | 'conversations' | 'facts';
18244
+ /**
18245
+ * Limit
18246
+ * @description Rows shown (facts: rows per group)
18247
+ * @default 5
18248
+ */
18249
+ limit: number;
18250
+ /**
18251
+ * Facts
18252
+ * @description Facts only: which groups show (default both, upcoming dated first)
18253
+ */
18254
+ facts?: ('upcoming_and_newest' | 'upcoming' | 'newest') | null;
18255
+ };
18065
18256
  /**
18066
18257
  * LoginRequest
18067
18258
  * @description Unified login request for users and agents.
@@ -20081,7 +20272,7 @@ interface components$1 {
20081
20272
  /** Description */
20082
20273
  description?: string | null;
20083
20274
  /** Blocks */
20084
- blocks?: (components$1['schemas']['ChartBlock'] | components$1['schemas']['MetricBlock'] | components$1['schemas']['TextBlock'] | components$1['schemas']['TableBlock'] | components$1['schemas']['DocumentBlock'] | components$1['schemas']['GalleryBlock'])[];
20275
+ blocks?: (components$1['schemas']['ChartBlock'] | components$1['schemas']['MetricBlock'] | components$1['schemas']['TextBlock'] | components$1['schemas']['TableBlock'] | components$1['schemas']['DocumentBlock'] | components$1['schemas']['GalleryBlock'] | components$1['schemas']['ListBlock'] | components$1['schemas']['CarouselBlock'] | components$1['schemas']['AgendaBlock'] | components$1['schemas']['StartBlock'])[];
20085
20276
  };
20086
20277
  /**
20087
20278
  * PageViewRef
@@ -21458,6 +21649,17 @@ interface components$1 {
21458
21649
  /** Daily Cap Per User */
21459
21650
  daily_cap_per_user?: number | null;
21460
21651
  };
21652
+ /**
21653
+ * ProjectUsageEntry
21654
+ * @description One owned project's usage in ``GET /v1/user/projects/usage``; ``usage`` is null when it could not be read.
21655
+ */
21656
+ ProjectUsageEntry: {
21657
+ /** Project Ext Id */
21658
+ project_ext_id: string;
21659
+ /** Name */
21660
+ name: string;
21661
+ usage?: components$1['schemas']['ProjectUsageResponse'] | null;
21662
+ };
21461
21663
  /**
21462
21664
  * ProjectUsageResponse
21463
21665
  * @description Usage breakdown for a project's billing period.
@@ -21524,6 +21726,14 @@ interface components$1 {
21524
21726
  /** Invoice Pdf */
21525
21727
  invoice_pdf?: string | null;
21526
21728
  };
21729
+ /**
21730
+ * ProjectsUsageResponse
21731
+ * @description The usage of every project the caller owns, for one billing period (each its own period).
21732
+ */
21733
+ ProjectsUsageResponse: {
21734
+ /** Projects */
21735
+ projects: components$1['schemas']['ProjectUsageEntry'][];
21736
+ };
21527
21737
  /** PublicBookingPage */
21528
21738
  PublicBookingPage: {
21529
21739
  /** Title */
@@ -24081,6 +24291,23 @@ interface components$1 {
24081
24291
  /** Image */
24082
24292
  image?: string | null;
24083
24293
  };
24294
+ /** StartBlock */
24295
+ StartBlock: {
24296
+ /** Id */
24297
+ id: string;
24298
+ layout?: components$1['schemas']['BlockLayout'];
24299
+ /**
24300
+ * @description discriminator enum property added by openapi-typescript
24301
+ * @enum {string}
24302
+ */
24303
+ kind: 'start';
24304
+ config?: components$1['schemas']['StartBlockConfig'];
24305
+ };
24306
+ /**
24307
+ * StartBlockConfig
24308
+ * @description The workspace home's Start band (what the viewer can start, and adding files): nothing to configure.
24309
+ */
24310
+ StartBlockConfig: Record<string, never>;
24084
24311
  /**
24085
24312
  * StepActionRequest
24086
24313
  * @description A person finishes a step of a workflow run (``POST /v1/conversation/{id}/step``).
@@ -24895,6 +25122,27 @@ interface components$1 {
24895
25122
  */
24896
25123
  updated_at: string;
24897
25124
  };
25125
+ /**
25126
+ * TableViewRows
25127
+ * @description A view with its rows (``GET /v1/views/{id}/rows``): what a page's table block shows, in one read.
25128
+ *
25129
+ * ``database`` is the view's database (``None`` for a view of the document table, which has no rows here);
25130
+ * ``columns`` are the view's columns in its order (every column when it names none; a dropped one is left out);
25131
+ * ``rows`` are the database's rows with the view's filters and sort applied, each holding only those columns.
25132
+ */
25133
+ TableViewRows: {
25134
+ view: components$1['schemas']['TableViewRead'];
25135
+ database?: components$1['schemas']['DatabaseRead'] | null;
25136
+ /** Columns */
25137
+ columns?: components$1['schemas']['DatabaseColumn'][];
25138
+ /** Rows */
25139
+ rows?: components$1['schemas']['DatabaseRowRead'][];
25140
+ /**
25141
+ * Total
25142
+ * @default 0
25143
+ */
25144
+ total: number;
25145
+ };
24898
25146
  /**
24899
25147
  * TableViewSpec
24900
25148
  * @description What a view shows. Columns, filters, ``sort`` and ``group_by`` name a table's columns: a database's column
@@ -27415,6 +27663,83 @@ interface components$1 {
27415
27663
  * @enum {string}
27416
27664
  */
27417
27665
  WorkspaceActivitySource: 'thread' | 'message' | 'document' | 'workflow';
27666
+ /**
27667
+ * WorkspaceAggregateFilter
27668
+ * @description Keep rows whose ``field`` (a number, date or yes/no field of the source) satisfies ``op`` ``value``.
27669
+ *
27670
+ * Dates compare as UTC instants (``2026-06-01`` is its midnight). ``neq`` keeps empty values; ``empty`` /
27671
+ * ``not_empty`` ignore ``value``. Text fields are not filtered here: ask for them as a dimension and keep the
27672
+ * cells wanted.
27673
+ */
27674
+ WorkspaceAggregateFilter: {
27675
+ /** Field */
27676
+ field: string;
27677
+ /**
27678
+ * Op
27679
+ * @default eq
27680
+ * @enum {string}
27681
+ */
27682
+ op: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'empty' | 'not_empty';
27683
+ /** Value */
27684
+ value?: string | boolean | number | null;
27685
+ };
27686
+ /**
27687
+ * WorkspaceAggregateQuery
27688
+ * @description One aggregate: the rows of ``source`` that pass ``filters``, grouped by ``dimensions``.
27689
+ *
27690
+ * A date dimension is grouped by ``time_bucket`` (its value is the bucket's first day; an ISO week starts on a
27691
+ * Monday). With ``measure`` (a number field), each cell also has the sum, smallest and largest of its values and how
27692
+ * many rows have one.
27693
+ */
27694
+ WorkspaceAggregateQuery: {
27695
+ /**
27696
+ * Source
27697
+ * @enum {string}
27698
+ */
27699
+ source: 'documents' | 'conversations' | 'tags' | 'facts' | 'workflows' | 'activity';
27700
+ /** Dimensions */
27701
+ dimensions?: string[];
27702
+ /**
27703
+ * Time Bucket
27704
+ * @default month
27705
+ * @enum {string}
27706
+ */
27707
+ time_bucket: 'day' | 'week' | 'month' | 'quarter' | 'year';
27708
+ /**
27709
+ * Measure
27710
+ * @description A number field of the source
27711
+ */
27712
+ measure?: string | null;
27713
+ /** Filters */
27714
+ filters?: components$1['schemas']['WorkspaceAggregateFilter'][];
27715
+ };
27716
+ /**
27717
+ * WorkspaceAggregateRequest
27718
+ * @description Several aggregates in one request (the charts of a page), answered in order.
27719
+ */
27720
+ WorkspaceAggregateRequest: {
27721
+ /** Queries */
27722
+ queries: components$1['schemas']['WorkspaceAggregateQuery'][];
27723
+ };
27724
+ /** WorkspaceAggregateResponse */
27725
+ WorkspaceAggregateResponse: {
27726
+ /** Results */
27727
+ results: components$1['schemas']['WorkspaceAggregateResult'][];
27728
+ };
27729
+ /** WorkspaceAggregateResult */
27730
+ WorkspaceAggregateResult: {
27731
+ /** Cells */
27732
+ cells: components$1['schemas']['AggregateCell'][];
27733
+ /** Labels */
27734
+ labels?: {
27735
+ [key: string]: string;
27736
+ };
27737
+ /**
27738
+ * Truncated
27739
+ * @default false
27740
+ */
27741
+ truncated: boolean;
27742
+ };
27418
27743
  /**
27419
27744
  * WorkspaceArchiveRead
27420
27745
  * @description A workspace's archive state: ``live`` (open as usual), ``archiving``, ``archived`` or ``restoring``
@@ -27858,6 +28183,38 @@ interface operations {
27858
28183
  };
27859
28184
  };
27860
28185
  };
28186
+ list_projects_usage: {
28187
+ parameters: {
28188
+ query?: {
28189
+ /** @description 0 = current billing period, 1 = previous month, etc. */
28190
+ months_back?: number;
28191
+ };
28192
+ header?: never;
28193
+ path?: never;
28194
+ cookie?: never;
28195
+ };
28196
+ requestBody?: never;
28197
+ responses: {
28198
+ /** @description Successful Response */
28199
+ 200: {
28200
+ headers: {
28201
+ [name: string]: unknown;
28202
+ };
28203
+ content: {
28204
+ 'application/json': components$1['schemas']['ProjectsUsageResponse'];
28205
+ };
28206
+ };
28207
+ /** @description Validation Error */
28208
+ 422: {
28209
+ headers: {
28210
+ [name: string]: unknown;
28211
+ };
28212
+ content: {
28213
+ 'application/json': components$1['schemas']['HTTPValidationError'];
28214
+ };
28215
+ };
28216
+ };
28217
+ };
27861
28218
  get_project: {
27862
28219
  parameters: {
27863
28220
  query?: never;
@@ -30830,6 +31187,41 @@ interface operations {
30830
31187
  };
30831
31188
  };
30832
31189
  };
31190
+ aggregate_workspace: {
31191
+ parameters: {
31192
+ query?: never;
31193
+ header?: never;
31194
+ path: {
31195
+ workspace_ext_id: string;
31196
+ };
31197
+ cookie?: never;
31198
+ };
31199
+ requestBody: {
31200
+ content: {
31201
+ 'application/json': components$1['schemas']['WorkspaceAggregateRequest'];
31202
+ };
31203
+ };
31204
+ responses: {
31205
+ /** @description Successful Response */
31206
+ 200: {
31207
+ headers: {
31208
+ [name: string]: unknown;
31209
+ };
31210
+ content: {
31211
+ 'application/json': components$1['schemas']['WorkspaceAggregateResponse'];
31212
+ };
31213
+ };
31214
+ /** @description Validation Error */
31215
+ 422: {
31216
+ headers: {
31217
+ [name: string]: unknown;
31218
+ };
31219
+ content: {
31220
+ 'application/json': components$1['schemas']['HTTPValidationError'];
31221
+ };
31222
+ };
31223
+ };
31224
+ };
30833
31225
  get_workspace_archive: {
30834
31226
  parameters: {
30835
31227
  query?: never;
@@ -35892,6 +36284,54 @@ interface operations {
35892
36284
  };
35893
36285
  };
35894
36286
  };
36287
+ get_table_view_rows: {
36288
+ parameters: {
36289
+ query?: {
36290
+ offset?: number;
36291
+ limit?: number;
36292
+ };
36293
+ header?: never;
36294
+ path: {
36295
+ view_id: string;
36296
+ };
36297
+ cookie?: never;
36298
+ };
36299
+ requestBody?: never;
36300
+ responses: {
36301
+ /** @description Successful Response */
36302
+ 200: {
36303
+ headers: {
36304
+ [name: string]: unknown;
36305
+ };
36306
+ content: {
36307
+ 'application/json': components$1['schemas']['TableViewRows'];
36308
+ };
36309
+ };
36310
+ /** @description No such view, or another person's private view */
36311
+ 404: {
36312
+ headers: {
36313
+ [name: string]: unknown;
36314
+ };
36315
+ content?: never;
36316
+ };
36317
+ /** @description Shared pages show this view (the detail names them) */
36318
+ 409: {
36319
+ headers: {
36320
+ [name: string]: unknown;
36321
+ };
36322
+ content?: never;
36323
+ };
36324
+ /** @description Validation Error */
36325
+ 422: {
36326
+ headers: {
36327
+ [name: string]: unknown;
36328
+ };
36329
+ content: {
36330
+ 'application/json': components$1['schemas']['HTTPValidationError'];
36331
+ };
36332
+ };
36333
+ };
36334
+ };
35895
36335
  share_table_view: {
35896
36336
  parameters: {
35897
36337
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.5.152",
3
+ "version": "0.5.154",
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,