@arbidocs/client 0.5.151 → 0.5.153
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 +329 -0
- package/dist/index.d.ts +329 -0
- package/package.json +1 -1
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;
|
|
@@ -2210,6 +2235,32 @@ interface paths$1 {
|
|
|
2210
2235
|
patch?: never;
|
|
2211
2236
|
trace?: never;
|
|
2212
2237
|
};
|
|
2238
|
+
'/v1/workspace/{workspace_ext_id}/aggregate': {
|
|
2239
|
+
parameters: {
|
|
2240
|
+
query?: never;
|
|
2241
|
+
header?: never;
|
|
2242
|
+
path?: never;
|
|
2243
|
+
cookie?: never;
|
|
2244
|
+
};
|
|
2245
|
+
get?: never;
|
|
2246
|
+
put?: never;
|
|
2247
|
+
/**
|
|
2248
|
+
* Aggregate Workspace
|
|
2249
|
+
* @description Count the workspace's documents, threads, tags, facts, workflows or recent activity, grouped: one result per
|
|
2250
|
+
* query, in order — the numbers a page's charts and metric tiles draw, without downloading the lists.
|
|
2251
|
+
*
|
|
2252
|
+
* Each source counts what its list endpoint would return to the caller (the same RLS session and workspace
|
|
2253
|
+
* scope), so private items of others are never counted. The workspace's key must be on the session, as for the
|
|
2254
|
+
* lists (409 ``workspace_key_required``): encrypted dimensions are decrypted with it, and only those asked for.
|
|
2255
|
+
* A query the source cannot answer (an unknown field, a text filter) is a 422.
|
|
2256
|
+
*/
|
|
2257
|
+
post: operations['aggregate_workspace'];
|
|
2258
|
+
delete?: never;
|
|
2259
|
+
options?: never;
|
|
2260
|
+
head?: never;
|
|
2261
|
+
patch?: never;
|
|
2262
|
+
trace?: never;
|
|
2263
|
+
};
|
|
2213
2264
|
'/v1/workspace/{workspace_ext_id}/archive': {
|
|
2214
2265
|
parameters: {
|
|
2215
2266
|
query?: never;
|
|
@@ -5191,6 +5242,31 @@ interface paths$1 {
|
|
|
5191
5242
|
patch: operations['update_table_view'];
|
|
5192
5243
|
trace?: never;
|
|
5193
5244
|
};
|
|
5245
|
+
'/v1/views/{view_id}/rows': {
|
|
5246
|
+
parameters: {
|
|
5247
|
+
query?: never;
|
|
5248
|
+
header?: never;
|
|
5249
|
+
path?: never;
|
|
5250
|
+
cookie?: never;
|
|
5251
|
+
};
|
|
5252
|
+
/**
|
|
5253
|
+
* Get View Rows
|
|
5254
|
+
* @description A view and its rows in one read, for a page's table block: the view (as ``GET /{view_id}``), its database (as
|
|
5255
|
+
* ``GET /v1/databases/{id}``), the view's columns, and the rows with the view's filters and sort applied (as
|
|
5256
|
+
* ``GET /v1/databases/{id}/rows?view=``), each with only the view's columns.
|
|
5257
|
+
*
|
|
5258
|
+
* The caller must be able to see both the view (another person's private view is not found) and its database. A
|
|
5259
|
+
* view of the document table comes back without a database or rows.
|
|
5260
|
+
*/
|
|
5261
|
+
get: operations['get_table_view_rows'];
|
|
5262
|
+
put?: never;
|
|
5263
|
+
post?: never;
|
|
5264
|
+
delete?: never;
|
|
5265
|
+
options?: never;
|
|
5266
|
+
head?: never;
|
|
5267
|
+
patch?: never;
|
|
5268
|
+
trace?: never;
|
|
5269
|
+
};
|
|
5194
5270
|
'/v1/views/{view_id}/share': {
|
|
5195
5271
|
parameters: {
|
|
5196
5272
|
query?: never;
|
|
@@ -10398,6 +10474,27 @@ interface components$1 {
|
|
|
10398
10474
|
*/
|
|
10399
10475
|
AGENT_TURN_BUDGET_GBP: number;
|
|
10400
10476
|
};
|
|
10477
|
+
/**
|
|
10478
|
+
* AggregateCell
|
|
10479
|
+
* @description Rows sharing the same value of every dimension (``values[i]`` is ``dimensions[i]``'s).
|
|
10480
|
+
*/
|
|
10481
|
+
AggregateCell: {
|
|
10482
|
+
/** Values */
|
|
10483
|
+
values: (string | boolean | number | string[] | null)[];
|
|
10484
|
+
/** Count */
|
|
10485
|
+
count: number;
|
|
10486
|
+
/**
|
|
10487
|
+
* Filled
|
|
10488
|
+
* @default 0
|
|
10489
|
+
*/
|
|
10490
|
+
filled: number;
|
|
10491
|
+
/** Sum */
|
|
10492
|
+
sum?: number | null;
|
|
10493
|
+
/** Min */
|
|
10494
|
+
min?: number | null;
|
|
10495
|
+
/** Max */
|
|
10496
|
+
max?: number | null;
|
|
10497
|
+
};
|
|
10401
10498
|
/** AllConfigs */
|
|
10402
10499
|
AllConfigs: {
|
|
10403
10500
|
/**
|
|
@@ -21458,6 +21555,17 @@ interface components$1 {
|
|
|
21458
21555
|
/** Daily Cap Per User */
|
|
21459
21556
|
daily_cap_per_user?: number | null;
|
|
21460
21557
|
};
|
|
21558
|
+
/**
|
|
21559
|
+
* ProjectUsageEntry
|
|
21560
|
+
* @description One owned project's usage in ``GET /v1/user/projects/usage``; ``usage`` is null when it could not be read.
|
|
21561
|
+
*/
|
|
21562
|
+
ProjectUsageEntry: {
|
|
21563
|
+
/** Project Ext Id */
|
|
21564
|
+
project_ext_id: string;
|
|
21565
|
+
/** Name */
|
|
21566
|
+
name: string;
|
|
21567
|
+
usage?: components$1['schemas']['ProjectUsageResponse'] | null;
|
|
21568
|
+
};
|
|
21461
21569
|
/**
|
|
21462
21570
|
* ProjectUsageResponse
|
|
21463
21571
|
* @description Usage breakdown for a project's billing period.
|
|
@@ -21524,6 +21632,14 @@ interface components$1 {
|
|
|
21524
21632
|
/** Invoice Pdf */
|
|
21525
21633
|
invoice_pdf?: string | null;
|
|
21526
21634
|
};
|
|
21635
|
+
/**
|
|
21636
|
+
* ProjectsUsageResponse
|
|
21637
|
+
* @description The usage of every project the caller owns, for one billing period (each its own period).
|
|
21638
|
+
*/
|
|
21639
|
+
ProjectsUsageResponse: {
|
|
21640
|
+
/** Projects */
|
|
21641
|
+
projects: components$1['schemas']['ProjectUsageEntry'][];
|
|
21642
|
+
};
|
|
21527
21643
|
/** PublicBookingPage */
|
|
21528
21644
|
PublicBookingPage: {
|
|
21529
21645
|
/** Title */
|
|
@@ -24895,6 +25011,27 @@ interface components$1 {
|
|
|
24895
25011
|
*/
|
|
24896
25012
|
updated_at: string;
|
|
24897
25013
|
};
|
|
25014
|
+
/**
|
|
25015
|
+
* TableViewRows
|
|
25016
|
+
* @description A view with its rows (``GET /v1/views/{id}/rows``): what a page's table block shows, in one read.
|
|
25017
|
+
*
|
|
25018
|
+
* ``database`` is the view's database (``None`` for a view of the document table, which has no rows here);
|
|
25019
|
+
* ``columns`` are the view's columns in its order (every column when it names none; a dropped one is left out);
|
|
25020
|
+
* ``rows`` are the database's rows with the view's filters and sort applied, each holding only those columns.
|
|
25021
|
+
*/
|
|
25022
|
+
TableViewRows: {
|
|
25023
|
+
view: components$1['schemas']['TableViewRead'];
|
|
25024
|
+
database?: components$1['schemas']['DatabaseRead'] | null;
|
|
25025
|
+
/** Columns */
|
|
25026
|
+
columns?: components$1['schemas']['DatabaseColumn'][];
|
|
25027
|
+
/** Rows */
|
|
25028
|
+
rows?: components$1['schemas']['DatabaseRowRead'][];
|
|
25029
|
+
/**
|
|
25030
|
+
* Total
|
|
25031
|
+
* @default 0
|
|
25032
|
+
*/
|
|
25033
|
+
total: number;
|
|
25034
|
+
};
|
|
24898
25035
|
/**
|
|
24899
25036
|
* TableViewSpec
|
|
24900
25037
|
* @description What a view shows. Columns, filters, ``sort`` and ``group_by`` name a table's columns: a database's column
|
|
@@ -27415,6 +27552,83 @@ interface components$1 {
|
|
|
27415
27552
|
* @enum {string}
|
|
27416
27553
|
*/
|
|
27417
27554
|
WorkspaceActivitySource: 'thread' | 'message' | 'document' | 'workflow';
|
|
27555
|
+
/**
|
|
27556
|
+
* WorkspaceAggregateFilter
|
|
27557
|
+
* @description Keep rows whose ``field`` (a number, date or yes/no field of the source) satisfies ``op`` ``value``.
|
|
27558
|
+
*
|
|
27559
|
+
* Dates compare as UTC instants (``2026-06-01`` is its midnight). ``neq`` keeps empty values; ``empty`` /
|
|
27560
|
+
* ``not_empty`` ignore ``value``. Text fields are not filtered here: ask for them as a dimension and keep the
|
|
27561
|
+
* cells wanted.
|
|
27562
|
+
*/
|
|
27563
|
+
WorkspaceAggregateFilter: {
|
|
27564
|
+
/** Field */
|
|
27565
|
+
field: string;
|
|
27566
|
+
/**
|
|
27567
|
+
* Op
|
|
27568
|
+
* @default eq
|
|
27569
|
+
* @enum {string}
|
|
27570
|
+
*/
|
|
27571
|
+
op: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'empty' | 'not_empty';
|
|
27572
|
+
/** Value */
|
|
27573
|
+
value?: string | boolean | number | null;
|
|
27574
|
+
};
|
|
27575
|
+
/**
|
|
27576
|
+
* WorkspaceAggregateQuery
|
|
27577
|
+
* @description One aggregate: the rows of ``source`` that pass ``filters``, grouped by ``dimensions``.
|
|
27578
|
+
*
|
|
27579
|
+
* A date dimension is grouped by ``time_bucket`` (its value is the bucket's first day; an ISO week starts on a
|
|
27580
|
+
* Monday). With ``measure`` (a number field), each cell also has the sum, smallest and largest of its values and how
|
|
27581
|
+
* many rows have one.
|
|
27582
|
+
*/
|
|
27583
|
+
WorkspaceAggregateQuery: {
|
|
27584
|
+
/**
|
|
27585
|
+
* Source
|
|
27586
|
+
* @enum {string}
|
|
27587
|
+
*/
|
|
27588
|
+
source: 'documents' | 'conversations' | 'tags' | 'facts' | 'workflows' | 'activity';
|
|
27589
|
+
/** Dimensions */
|
|
27590
|
+
dimensions?: string[];
|
|
27591
|
+
/**
|
|
27592
|
+
* Time Bucket
|
|
27593
|
+
* @default month
|
|
27594
|
+
* @enum {string}
|
|
27595
|
+
*/
|
|
27596
|
+
time_bucket: 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
27597
|
+
/**
|
|
27598
|
+
* Measure
|
|
27599
|
+
* @description A number field of the source
|
|
27600
|
+
*/
|
|
27601
|
+
measure?: string | null;
|
|
27602
|
+
/** Filters */
|
|
27603
|
+
filters?: components$1['schemas']['WorkspaceAggregateFilter'][];
|
|
27604
|
+
};
|
|
27605
|
+
/**
|
|
27606
|
+
* WorkspaceAggregateRequest
|
|
27607
|
+
* @description Several aggregates in one request (the charts of a page), answered in order.
|
|
27608
|
+
*/
|
|
27609
|
+
WorkspaceAggregateRequest: {
|
|
27610
|
+
/** Queries */
|
|
27611
|
+
queries: components$1['schemas']['WorkspaceAggregateQuery'][];
|
|
27612
|
+
};
|
|
27613
|
+
/** WorkspaceAggregateResponse */
|
|
27614
|
+
WorkspaceAggregateResponse: {
|
|
27615
|
+
/** Results */
|
|
27616
|
+
results: components$1['schemas']['WorkspaceAggregateResult'][];
|
|
27617
|
+
};
|
|
27618
|
+
/** WorkspaceAggregateResult */
|
|
27619
|
+
WorkspaceAggregateResult: {
|
|
27620
|
+
/** Cells */
|
|
27621
|
+
cells: components$1['schemas']['AggregateCell'][];
|
|
27622
|
+
/** Labels */
|
|
27623
|
+
labels?: {
|
|
27624
|
+
[key: string]: string;
|
|
27625
|
+
};
|
|
27626
|
+
/**
|
|
27627
|
+
* Truncated
|
|
27628
|
+
* @default false
|
|
27629
|
+
*/
|
|
27630
|
+
truncated: boolean;
|
|
27631
|
+
};
|
|
27418
27632
|
/**
|
|
27419
27633
|
* WorkspaceArchiveRead
|
|
27420
27634
|
* @description A workspace's archive state: ``live`` (open as usual), ``archiving``, ``archived`` or ``restoring``
|
|
@@ -27858,6 +28072,38 @@ interface operations {
|
|
|
27858
28072
|
};
|
|
27859
28073
|
};
|
|
27860
28074
|
};
|
|
28075
|
+
list_projects_usage: {
|
|
28076
|
+
parameters: {
|
|
28077
|
+
query?: {
|
|
28078
|
+
/** @description 0 = current billing period, 1 = previous month, etc. */
|
|
28079
|
+
months_back?: number;
|
|
28080
|
+
};
|
|
28081
|
+
header?: never;
|
|
28082
|
+
path?: never;
|
|
28083
|
+
cookie?: never;
|
|
28084
|
+
};
|
|
28085
|
+
requestBody?: never;
|
|
28086
|
+
responses: {
|
|
28087
|
+
/** @description Successful Response */
|
|
28088
|
+
200: {
|
|
28089
|
+
headers: {
|
|
28090
|
+
[name: string]: unknown;
|
|
28091
|
+
};
|
|
28092
|
+
content: {
|
|
28093
|
+
'application/json': components$1['schemas']['ProjectsUsageResponse'];
|
|
28094
|
+
};
|
|
28095
|
+
};
|
|
28096
|
+
/** @description Validation Error */
|
|
28097
|
+
422: {
|
|
28098
|
+
headers: {
|
|
28099
|
+
[name: string]: unknown;
|
|
28100
|
+
};
|
|
28101
|
+
content: {
|
|
28102
|
+
'application/json': components$1['schemas']['HTTPValidationError'];
|
|
28103
|
+
};
|
|
28104
|
+
};
|
|
28105
|
+
};
|
|
28106
|
+
};
|
|
27861
28107
|
get_project: {
|
|
27862
28108
|
parameters: {
|
|
27863
28109
|
query?: never;
|
|
@@ -30830,6 +31076,41 @@ interface operations {
|
|
|
30830
31076
|
};
|
|
30831
31077
|
};
|
|
30832
31078
|
};
|
|
31079
|
+
aggregate_workspace: {
|
|
31080
|
+
parameters: {
|
|
31081
|
+
query?: never;
|
|
31082
|
+
header?: never;
|
|
31083
|
+
path: {
|
|
31084
|
+
workspace_ext_id: string;
|
|
31085
|
+
};
|
|
31086
|
+
cookie?: never;
|
|
31087
|
+
};
|
|
31088
|
+
requestBody: {
|
|
31089
|
+
content: {
|
|
31090
|
+
'application/json': components$1['schemas']['WorkspaceAggregateRequest'];
|
|
31091
|
+
};
|
|
31092
|
+
};
|
|
31093
|
+
responses: {
|
|
31094
|
+
/** @description Successful Response */
|
|
31095
|
+
200: {
|
|
31096
|
+
headers: {
|
|
31097
|
+
[name: string]: unknown;
|
|
31098
|
+
};
|
|
31099
|
+
content: {
|
|
31100
|
+
'application/json': components$1['schemas']['WorkspaceAggregateResponse'];
|
|
31101
|
+
};
|
|
31102
|
+
};
|
|
31103
|
+
/** @description Validation Error */
|
|
31104
|
+
422: {
|
|
31105
|
+
headers: {
|
|
31106
|
+
[name: string]: unknown;
|
|
31107
|
+
};
|
|
31108
|
+
content: {
|
|
31109
|
+
'application/json': components$1['schemas']['HTTPValidationError'];
|
|
31110
|
+
};
|
|
31111
|
+
};
|
|
31112
|
+
};
|
|
31113
|
+
};
|
|
30833
31114
|
get_workspace_archive: {
|
|
30834
31115
|
parameters: {
|
|
30835
31116
|
query?: never;
|
|
@@ -35892,6 +36173,54 @@ interface operations {
|
|
|
35892
36173
|
};
|
|
35893
36174
|
};
|
|
35894
36175
|
};
|
|
36176
|
+
get_table_view_rows: {
|
|
36177
|
+
parameters: {
|
|
36178
|
+
query?: {
|
|
36179
|
+
offset?: number;
|
|
36180
|
+
limit?: number;
|
|
36181
|
+
};
|
|
36182
|
+
header?: never;
|
|
36183
|
+
path: {
|
|
36184
|
+
view_id: string;
|
|
36185
|
+
};
|
|
36186
|
+
cookie?: never;
|
|
36187
|
+
};
|
|
36188
|
+
requestBody?: never;
|
|
36189
|
+
responses: {
|
|
36190
|
+
/** @description Successful Response */
|
|
36191
|
+
200: {
|
|
36192
|
+
headers: {
|
|
36193
|
+
[name: string]: unknown;
|
|
36194
|
+
};
|
|
36195
|
+
content: {
|
|
36196
|
+
'application/json': components$1['schemas']['TableViewRows'];
|
|
36197
|
+
};
|
|
36198
|
+
};
|
|
36199
|
+
/** @description No such view, or another person's private view */
|
|
36200
|
+
404: {
|
|
36201
|
+
headers: {
|
|
36202
|
+
[name: string]: unknown;
|
|
36203
|
+
};
|
|
36204
|
+
content?: never;
|
|
36205
|
+
};
|
|
36206
|
+
/** @description Shared pages show this view (the detail names them) */
|
|
36207
|
+
409: {
|
|
36208
|
+
headers: {
|
|
36209
|
+
[name: string]: unknown;
|
|
36210
|
+
};
|
|
36211
|
+
content?: never;
|
|
36212
|
+
};
|
|
36213
|
+
/** @description Validation Error */
|
|
36214
|
+
422: {
|
|
36215
|
+
headers: {
|
|
36216
|
+
[name: string]: unknown;
|
|
36217
|
+
};
|
|
36218
|
+
content: {
|
|
36219
|
+
'application/json': components$1['schemas']['HTTPValidationError'];
|
|
36220
|
+
};
|
|
36221
|
+
};
|
|
36222
|
+
};
|
|
36223
|
+
};
|
|
35895
36224
|
share_table_view: {
|
|
35896
36225
|
parameters: {
|
|
35897
36226
|
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;
|
|
@@ -2210,6 +2235,32 @@ interface paths$1 {
|
|
|
2210
2235
|
patch?: never;
|
|
2211
2236
|
trace?: never;
|
|
2212
2237
|
};
|
|
2238
|
+
'/v1/workspace/{workspace_ext_id}/aggregate': {
|
|
2239
|
+
parameters: {
|
|
2240
|
+
query?: never;
|
|
2241
|
+
header?: never;
|
|
2242
|
+
path?: never;
|
|
2243
|
+
cookie?: never;
|
|
2244
|
+
};
|
|
2245
|
+
get?: never;
|
|
2246
|
+
put?: never;
|
|
2247
|
+
/**
|
|
2248
|
+
* Aggregate Workspace
|
|
2249
|
+
* @description Count the workspace's documents, threads, tags, facts, workflows or recent activity, grouped: one result per
|
|
2250
|
+
* query, in order — the numbers a page's charts and metric tiles draw, without downloading the lists.
|
|
2251
|
+
*
|
|
2252
|
+
* Each source counts what its list endpoint would return to the caller (the same RLS session and workspace
|
|
2253
|
+
* scope), so private items of others are never counted. The workspace's key must be on the session, as for the
|
|
2254
|
+
* lists (409 ``workspace_key_required``): encrypted dimensions are decrypted with it, and only those asked for.
|
|
2255
|
+
* A query the source cannot answer (an unknown field, a text filter) is a 422.
|
|
2256
|
+
*/
|
|
2257
|
+
post: operations['aggregate_workspace'];
|
|
2258
|
+
delete?: never;
|
|
2259
|
+
options?: never;
|
|
2260
|
+
head?: never;
|
|
2261
|
+
patch?: never;
|
|
2262
|
+
trace?: never;
|
|
2263
|
+
};
|
|
2213
2264
|
'/v1/workspace/{workspace_ext_id}/archive': {
|
|
2214
2265
|
parameters: {
|
|
2215
2266
|
query?: never;
|
|
@@ -5191,6 +5242,31 @@ interface paths$1 {
|
|
|
5191
5242
|
patch: operations['update_table_view'];
|
|
5192
5243
|
trace?: never;
|
|
5193
5244
|
};
|
|
5245
|
+
'/v1/views/{view_id}/rows': {
|
|
5246
|
+
parameters: {
|
|
5247
|
+
query?: never;
|
|
5248
|
+
header?: never;
|
|
5249
|
+
path?: never;
|
|
5250
|
+
cookie?: never;
|
|
5251
|
+
};
|
|
5252
|
+
/**
|
|
5253
|
+
* Get View Rows
|
|
5254
|
+
* @description A view and its rows in one read, for a page's table block: the view (as ``GET /{view_id}``), its database (as
|
|
5255
|
+
* ``GET /v1/databases/{id}``), the view's columns, and the rows with the view's filters and sort applied (as
|
|
5256
|
+
* ``GET /v1/databases/{id}/rows?view=``), each with only the view's columns.
|
|
5257
|
+
*
|
|
5258
|
+
* The caller must be able to see both the view (another person's private view is not found) and its database. A
|
|
5259
|
+
* view of the document table comes back without a database or rows.
|
|
5260
|
+
*/
|
|
5261
|
+
get: operations['get_table_view_rows'];
|
|
5262
|
+
put?: never;
|
|
5263
|
+
post?: never;
|
|
5264
|
+
delete?: never;
|
|
5265
|
+
options?: never;
|
|
5266
|
+
head?: never;
|
|
5267
|
+
patch?: never;
|
|
5268
|
+
trace?: never;
|
|
5269
|
+
};
|
|
5194
5270
|
'/v1/views/{view_id}/share': {
|
|
5195
5271
|
parameters: {
|
|
5196
5272
|
query?: never;
|
|
@@ -10398,6 +10474,27 @@ interface components$1 {
|
|
|
10398
10474
|
*/
|
|
10399
10475
|
AGENT_TURN_BUDGET_GBP: number;
|
|
10400
10476
|
};
|
|
10477
|
+
/**
|
|
10478
|
+
* AggregateCell
|
|
10479
|
+
* @description Rows sharing the same value of every dimension (``values[i]`` is ``dimensions[i]``'s).
|
|
10480
|
+
*/
|
|
10481
|
+
AggregateCell: {
|
|
10482
|
+
/** Values */
|
|
10483
|
+
values: (string | boolean | number | string[] | null)[];
|
|
10484
|
+
/** Count */
|
|
10485
|
+
count: number;
|
|
10486
|
+
/**
|
|
10487
|
+
* Filled
|
|
10488
|
+
* @default 0
|
|
10489
|
+
*/
|
|
10490
|
+
filled: number;
|
|
10491
|
+
/** Sum */
|
|
10492
|
+
sum?: number | null;
|
|
10493
|
+
/** Min */
|
|
10494
|
+
min?: number | null;
|
|
10495
|
+
/** Max */
|
|
10496
|
+
max?: number | null;
|
|
10497
|
+
};
|
|
10401
10498
|
/** AllConfigs */
|
|
10402
10499
|
AllConfigs: {
|
|
10403
10500
|
/**
|
|
@@ -21458,6 +21555,17 @@ interface components$1 {
|
|
|
21458
21555
|
/** Daily Cap Per User */
|
|
21459
21556
|
daily_cap_per_user?: number | null;
|
|
21460
21557
|
};
|
|
21558
|
+
/**
|
|
21559
|
+
* ProjectUsageEntry
|
|
21560
|
+
* @description One owned project's usage in ``GET /v1/user/projects/usage``; ``usage`` is null when it could not be read.
|
|
21561
|
+
*/
|
|
21562
|
+
ProjectUsageEntry: {
|
|
21563
|
+
/** Project Ext Id */
|
|
21564
|
+
project_ext_id: string;
|
|
21565
|
+
/** Name */
|
|
21566
|
+
name: string;
|
|
21567
|
+
usage?: components$1['schemas']['ProjectUsageResponse'] | null;
|
|
21568
|
+
};
|
|
21461
21569
|
/**
|
|
21462
21570
|
* ProjectUsageResponse
|
|
21463
21571
|
* @description Usage breakdown for a project's billing period.
|
|
@@ -21524,6 +21632,14 @@ interface components$1 {
|
|
|
21524
21632
|
/** Invoice Pdf */
|
|
21525
21633
|
invoice_pdf?: string | null;
|
|
21526
21634
|
};
|
|
21635
|
+
/**
|
|
21636
|
+
* ProjectsUsageResponse
|
|
21637
|
+
* @description The usage of every project the caller owns, for one billing period (each its own period).
|
|
21638
|
+
*/
|
|
21639
|
+
ProjectsUsageResponse: {
|
|
21640
|
+
/** Projects */
|
|
21641
|
+
projects: components$1['schemas']['ProjectUsageEntry'][];
|
|
21642
|
+
};
|
|
21527
21643
|
/** PublicBookingPage */
|
|
21528
21644
|
PublicBookingPage: {
|
|
21529
21645
|
/** Title */
|
|
@@ -24895,6 +25011,27 @@ interface components$1 {
|
|
|
24895
25011
|
*/
|
|
24896
25012
|
updated_at: string;
|
|
24897
25013
|
};
|
|
25014
|
+
/**
|
|
25015
|
+
* TableViewRows
|
|
25016
|
+
* @description A view with its rows (``GET /v1/views/{id}/rows``): what a page's table block shows, in one read.
|
|
25017
|
+
*
|
|
25018
|
+
* ``database`` is the view's database (``None`` for a view of the document table, which has no rows here);
|
|
25019
|
+
* ``columns`` are the view's columns in its order (every column when it names none; a dropped one is left out);
|
|
25020
|
+
* ``rows`` are the database's rows with the view's filters and sort applied, each holding only those columns.
|
|
25021
|
+
*/
|
|
25022
|
+
TableViewRows: {
|
|
25023
|
+
view: components$1['schemas']['TableViewRead'];
|
|
25024
|
+
database?: components$1['schemas']['DatabaseRead'] | null;
|
|
25025
|
+
/** Columns */
|
|
25026
|
+
columns?: components$1['schemas']['DatabaseColumn'][];
|
|
25027
|
+
/** Rows */
|
|
25028
|
+
rows?: components$1['schemas']['DatabaseRowRead'][];
|
|
25029
|
+
/**
|
|
25030
|
+
* Total
|
|
25031
|
+
* @default 0
|
|
25032
|
+
*/
|
|
25033
|
+
total: number;
|
|
25034
|
+
};
|
|
24898
25035
|
/**
|
|
24899
25036
|
* TableViewSpec
|
|
24900
25037
|
* @description What a view shows. Columns, filters, ``sort`` and ``group_by`` name a table's columns: a database's column
|
|
@@ -27415,6 +27552,83 @@ interface components$1 {
|
|
|
27415
27552
|
* @enum {string}
|
|
27416
27553
|
*/
|
|
27417
27554
|
WorkspaceActivitySource: 'thread' | 'message' | 'document' | 'workflow';
|
|
27555
|
+
/**
|
|
27556
|
+
* WorkspaceAggregateFilter
|
|
27557
|
+
* @description Keep rows whose ``field`` (a number, date or yes/no field of the source) satisfies ``op`` ``value``.
|
|
27558
|
+
*
|
|
27559
|
+
* Dates compare as UTC instants (``2026-06-01`` is its midnight). ``neq`` keeps empty values; ``empty`` /
|
|
27560
|
+
* ``not_empty`` ignore ``value``. Text fields are not filtered here: ask for them as a dimension and keep the
|
|
27561
|
+
* cells wanted.
|
|
27562
|
+
*/
|
|
27563
|
+
WorkspaceAggregateFilter: {
|
|
27564
|
+
/** Field */
|
|
27565
|
+
field: string;
|
|
27566
|
+
/**
|
|
27567
|
+
* Op
|
|
27568
|
+
* @default eq
|
|
27569
|
+
* @enum {string}
|
|
27570
|
+
*/
|
|
27571
|
+
op: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'empty' | 'not_empty';
|
|
27572
|
+
/** Value */
|
|
27573
|
+
value?: string | boolean | number | null;
|
|
27574
|
+
};
|
|
27575
|
+
/**
|
|
27576
|
+
* WorkspaceAggregateQuery
|
|
27577
|
+
* @description One aggregate: the rows of ``source`` that pass ``filters``, grouped by ``dimensions``.
|
|
27578
|
+
*
|
|
27579
|
+
* A date dimension is grouped by ``time_bucket`` (its value is the bucket's first day; an ISO week starts on a
|
|
27580
|
+
* Monday). With ``measure`` (a number field), each cell also has the sum, smallest and largest of its values and how
|
|
27581
|
+
* many rows have one.
|
|
27582
|
+
*/
|
|
27583
|
+
WorkspaceAggregateQuery: {
|
|
27584
|
+
/**
|
|
27585
|
+
* Source
|
|
27586
|
+
* @enum {string}
|
|
27587
|
+
*/
|
|
27588
|
+
source: 'documents' | 'conversations' | 'tags' | 'facts' | 'workflows' | 'activity';
|
|
27589
|
+
/** Dimensions */
|
|
27590
|
+
dimensions?: string[];
|
|
27591
|
+
/**
|
|
27592
|
+
* Time Bucket
|
|
27593
|
+
* @default month
|
|
27594
|
+
* @enum {string}
|
|
27595
|
+
*/
|
|
27596
|
+
time_bucket: 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
27597
|
+
/**
|
|
27598
|
+
* Measure
|
|
27599
|
+
* @description A number field of the source
|
|
27600
|
+
*/
|
|
27601
|
+
measure?: string | null;
|
|
27602
|
+
/** Filters */
|
|
27603
|
+
filters?: components$1['schemas']['WorkspaceAggregateFilter'][];
|
|
27604
|
+
};
|
|
27605
|
+
/**
|
|
27606
|
+
* WorkspaceAggregateRequest
|
|
27607
|
+
* @description Several aggregates in one request (the charts of a page), answered in order.
|
|
27608
|
+
*/
|
|
27609
|
+
WorkspaceAggregateRequest: {
|
|
27610
|
+
/** Queries */
|
|
27611
|
+
queries: components$1['schemas']['WorkspaceAggregateQuery'][];
|
|
27612
|
+
};
|
|
27613
|
+
/** WorkspaceAggregateResponse */
|
|
27614
|
+
WorkspaceAggregateResponse: {
|
|
27615
|
+
/** Results */
|
|
27616
|
+
results: components$1['schemas']['WorkspaceAggregateResult'][];
|
|
27617
|
+
};
|
|
27618
|
+
/** WorkspaceAggregateResult */
|
|
27619
|
+
WorkspaceAggregateResult: {
|
|
27620
|
+
/** Cells */
|
|
27621
|
+
cells: components$1['schemas']['AggregateCell'][];
|
|
27622
|
+
/** Labels */
|
|
27623
|
+
labels?: {
|
|
27624
|
+
[key: string]: string;
|
|
27625
|
+
};
|
|
27626
|
+
/**
|
|
27627
|
+
* Truncated
|
|
27628
|
+
* @default false
|
|
27629
|
+
*/
|
|
27630
|
+
truncated: boolean;
|
|
27631
|
+
};
|
|
27418
27632
|
/**
|
|
27419
27633
|
* WorkspaceArchiveRead
|
|
27420
27634
|
* @description A workspace's archive state: ``live`` (open as usual), ``archiving``, ``archived`` or ``restoring``
|
|
@@ -27858,6 +28072,38 @@ interface operations {
|
|
|
27858
28072
|
};
|
|
27859
28073
|
};
|
|
27860
28074
|
};
|
|
28075
|
+
list_projects_usage: {
|
|
28076
|
+
parameters: {
|
|
28077
|
+
query?: {
|
|
28078
|
+
/** @description 0 = current billing period, 1 = previous month, etc. */
|
|
28079
|
+
months_back?: number;
|
|
28080
|
+
};
|
|
28081
|
+
header?: never;
|
|
28082
|
+
path?: never;
|
|
28083
|
+
cookie?: never;
|
|
28084
|
+
};
|
|
28085
|
+
requestBody?: never;
|
|
28086
|
+
responses: {
|
|
28087
|
+
/** @description Successful Response */
|
|
28088
|
+
200: {
|
|
28089
|
+
headers: {
|
|
28090
|
+
[name: string]: unknown;
|
|
28091
|
+
};
|
|
28092
|
+
content: {
|
|
28093
|
+
'application/json': components$1['schemas']['ProjectsUsageResponse'];
|
|
28094
|
+
};
|
|
28095
|
+
};
|
|
28096
|
+
/** @description Validation Error */
|
|
28097
|
+
422: {
|
|
28098
|
+
headers: {
|
|
28099
|
+
[name: string]: unknown;
|
|
28100
|
+
};
|
|
28101
|
+
content: {
|
|
28102
|
+
'application/json': components$1['schemas']['HTTPValidationError'];
|
|
28103
|
+
};
|
|
28104
|
+
};
|
|
28105
|
+
};
|
|
28106
|
+
};
|
|
27861
28107
|
get_project: {
|
|
27862
28108
|
parameters: {
|
|
27863
28109
|
query?: never;
|
|
@@ -30830,6 +31076,41 @@ interface operations {
|
|
|
30830
31076
|
};
|
|
30831
31077
|
};
|
|
30832
31078
|
};
|
|
31079
|
+
aggregate_workspace: {
|
|
31080
|
+
parameters: {
|
|
31081
|
+
query?: never;
|
|
31082
|
+
header?: never;
|
|
31083
|
+
path: {
|
|
31084
|
+
workspace_ext_id: string;
|
|
31085
|
+
};
|
|
31086
|
+
cookie?: never;
|
|
31087
|
+
};
|
|
31088
|
+
requestBody: {
|
|
31089
|
+
content: {
|
|
31090
|
+
'application/json': components$1['schemas']['WorkspaceAggregateRequest'];
|
|
31091
|
+
};
|
|
31092
|
+
};
|
|
31093
|
+
responses: {
|
|
31094
|
+
/** @description Successful Response */
|
|
31095
|
+
200: {
|
|
31096
|
+
headers: {
|
|
31097
|
+
[name: string]: unknown;
|
|
31098
|
+
};
|
|
31099
|
+
content: {
|
|
31100
|
+
'application/json': components$1['schemas']['WorkspaceAggregateResponse'];
|
|
31101
|
+
};
|
|
31102
|
+
};
|
|
31103
|
+
/** @description Validation Error */
|
|
31104
|
+
422: {
|
|
31105
|
+
headers: {
|
|
31106
|
+
[name: string]: unknown;
|
|
31107
|
+
};
|
|
31108
|
+
content: {
|
|
31109
|
+
'application/json': components$1['schemas']['HTTPValidationError'];
|
|
31110
|
+
};
|
|
31111
|
+
};
|
|
31112
|
+
};
|
|
31113
|
+
};
|
|
30833
31114
|
get_workspace_archive: {
|
|
30834
31115
|
parameters: {
|
|
30835
31116
|
query?: never;
|
|
@@ -35892,6 +36173,54 @@ interface operations {
|
|
|
35892
36173
|
};
|
|
35893
36174
|
};
|
|
35894
36175
|
};
|
|
36176
|
+
get_table_view_rows: {
|
|
36177
|
+
parameters: {
|
|
36178
|
+
query?: {
|
|
36179
|
+
offset?: number;
|
|
36180
|
+
limit?: number;
|
|
36181
|
+
};
|
|
36182
|
+
header?: never;
|
|
36183
|
+
path: {
|
|
36184
|
+
view_id: string;
|
|
36185
|
+
};
|
|
36186
|
+
cookie?: never;
|
|
36187
|
+
};
|
|
36188
|
+
requestBody?: never;
|
|
36189
|
+
responses: {
|
|
36190
|
+
/** @description Successful Response */
|
|
36191
|
+
200: {
|
|
36192
|
+
headers: {
|
|
36193
|
+
[name: string]: unknown;
|
|
36194
|
+
};
|
|
36195
|
+
content: {
|
|
36196
|
+
'application/json': components$1['schemas']['TableViewRows'];
|
|
36197
|
+
};
|
|
36198
|
+
};
|
|
36199
|
+
/** @description No such view, or another person's private view */
|
|
36200
|
+
404: {
|
|
36201
|
+
headers: {
|
|
36202
|
+
[name: string]: unknown;
|
|
36203
|
+
};
|
|
36204
|
+
content?: never;
|
|
36205
|
+
};
|
|
36206
|
+
/** @description Shared pages show this view (the detail names them) */
|
|
36207
|
+
409: {
|
|
36208
|
+
headers: {
|
|
36209
|
+
[name: string]: unknown;
|
|
36210
|
+
};
|
|
36211
|
+
content?: never;
|
|
36212
|
+
};
|
|
36213
|
+
/** @description Validation Error */
|
|
36214
|
+
422: {
|
|
36215
|
+
headers: {
|
|
36216
|
+
[name: string]: unknown;
|
|
36217
|
+
};
|
|
36218
|
+
content: {
|
|
36219
|
+
'application/json': components$1['schemas']['HTTPValidationError'];
|
|
36220
|
+
};
|
|
36221
|
+
};
|
|
36222
|
+
};
|
|
36223
|
+
};
|
|
35895
36224
|
share_table_view: {
|
|
35896
36225
|
parameters: {
|
|
35897
36226
|
query?: never;
|
package/package.json
CHANGED