@arbidocs/client 0.4.74 → 0.4.75

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
@@ -2581,8 +2581,9 @@ interface paths {
2581
2581
  * the files, approves a review, or skips a step. The run then goes on to its next agent step, under the
2582
2582
  * caller's session (they are present: no access question).
2583
2583
  *
2584
- * 400 when the step is not this run's, or not ready (what it waits for has not finished); 409 while a turn is
2585
- * running for a step a person does (an agent step can only be skipped once it has failed or not started).
2584
+ * Any unfinished step can be skipped at any time (ahead of the plan too): the plan guides the thread, it
2585
+ * does not hold it. Completing needs the step to be ready. 400 when the step is not this run's, or a step
2586
+ * completed out of order or an agent step completed by hand; 409 while the step's own turn is running.
2586
2587
  */
2587
2588
  post: operations['act_on_step'];
2588
2589
  delete?: never;
@@ -3235,6 +3236,168 @@ interface paths {
3235
3236
  patch?: never;
3236
3237
  trace?: never;
3237
3238
  };
3239
+ '/v1/databases': {
3240
+ parameters: {
3241
+ query?: never;
3242
+ header?: never;
3243
+ path?: never;
3244
+ cookie?: never;
3245
+ };
3246
+ /**
3247
+ * List Databases
3248
+ * @description The databases of the active workspace, then (read-only here) those of public workspaces.
3249
+ */
3250
+ get: operations['list_databases'];
3251
+ put?: never;
3252
+ /** Create Database */
3253
+ post: operations['create_database'];
3254
+ delete?: never;
3255
+ options?: never;
3256
+ head?: never;
3257
+ patch?: never;
3258
+ trace?: never;
3259
+ };
3260
+ '/v1/databases/import': {
3261
+ parameters: {
3262
+ query?: never;
3263
+ header?: never;
3264
+ path?: never;
3265
+ cookie?: never;
3266
+ };
3267
+ get?: never;
3268
+ put?: never;
3269
+ /**
3270
+ * Import Database
3271
+ * @description Create a database from a spreadsheet. Column types (number, date, checkbox, text) are inferred.
3272
+ */
3273
+ post: operations['import_database'];
3274
+ delete?: never;
3275
+ options?: never;
3276
+ head?: never;
3277
+ patch?: never;
3278
+ trace?: never;
3279
+ };
3280
+ '/v1/databases/{database_id}': {
3281
+ parameters: {
3282
+ query?: never;
3283
+ header?: never;
3284
+ path?: never;
3285
+ cookie?: never;
3286
+ };
3287
+ /** Get Database */
3288
+ get: operations['get_database'];
3289
+ put?: never;
3290
+ post?: never;
3291
+ /** Delete Database */
3292
+ delete: operations['delete_database'];
3293
+ options?: never;
3294
+ head?: never;
3295
+ /**
3296
+ * Update Database
3297
+ * @description Rename, describe, or change columns (``columns`` is the full new list: keep by id, add without, drop by
3298
+ * leaving out). A dropped column's values are no longer returned.
3299
+ */
3300
+ patch: operations['update_database'];
3301
+ trace?: never;
3302
+ };
3303
+ '/v1/databases/{database_id}/rows': {
3304
+ parameters: {
3305
+ query?: never;
3306
+ header?: never;
3307
+ path?: never;
3308
+ cookie?: never;
3309
+ };
3310
+ /**
3311
+ * List Rows
3312
+ * @description Rows keyed by column id.
3313
+ */
3314
+ get: operations['list_database_rows'];
3315
+ put?: never;
3316
+ /**
3317
+ * Add Rows
3318
+ * @description Add rows; cell values are keyed by column id or name and checked against the column's type.
3319
+ */
3320
+ post: operations['add_database_rows'];
3321
+ delete?: never;
3322
+ options?: never;
3323
+ head?: never;
3324
+ patch?: never;
3325
+ trace?: never;
3326
+ };
3327
+ '/v1/databases/{database_id}/rows/{row_id}': {
3328
+ parameters: {
3329
+ query?: never;
3330
+ header?: never;
3331
+ path?: never;
3332
+ cookie?: never;
3333
+ };
3334
+ get?: never;
3335
+ put?: never;
3336
+ post?: never;
3337
+ delete?: never;
3338
+ options?: never;
3339
+ head?: never;
3340
+ /**
3341
+ * Update Row
3342
+ * @description Change the given cells (``null`` empties a cell); other cells are kept.
3343
+ */
3344
+ patch: operations['update_database_row'];
3345
+ trace?: never;
3346
+ };
3347
+ '/v1/databases/{database_id}/rows/delete': {
3348
+ parameters: {
3349
+ query?: never;
3350
+ header?: never;
3351
+ path?: never;
3352
+ cookie?: never;
3353
+ };
3354
+ get?: never;
3355
+ put?: never;
3356
+ /** Delete Rows */
3357
+ post: operations['delete_database_rows'];
3358
+ delete?: never;
3359
+ options?: never;
3360
+ head?: never;
3361
+ patch?: never;
3362
+ trace?: never;
3363
+ };
3364
+ '/v1/databases/{database_id}/import': {
3365
+ parameters: {
3366
+ query?: never;
3367
+ header?: never;
3368
+ path?: never;
3369
+ cookie?: never;
3370
+ };
3371
+ get?: never;
3372
+ put?: never;
3373
+ /**
3374
+ * Import Rows
3375
+ * @description Append a spreadsheet's rows; headers are matched to column names. All rows or none.
3376
+ */
3377
+ post: operations['import_database_rows'];
3378
+ delete?: never;
3379
+ options?: never;
3380
+ head?: never;
3381
+ patch?: never;
3382
+ trace?: never;
3383
+ };
3384
+ '/v1/databases/{database_id}/export': {
3385
+ parameters: {
3386
+ query?: never;
3387
+ header?: never;
3388
+ path?: never;
3389
+ cookie?: never;
3390
+ };
3391
+ /** Export Database */
3392
+ get: operations['export_database'];
3393
+ put?: never;
3394
+ post?: never;
3395
+ delete?: never;
3396
+ options?: never;
3397
+ head?: never;
3398
+ patch?: never;
3399
+ trace?: never;
3400
+ };
3238
3401
  '/v1/workflow': {
3239
3402
  parameters: {
3240
3403
  query?: never;
@@ -10230,6 +10393,148 @@ interface components {
10230
10393
  [key: string]: components['schemas']['ModelGroupUsage'];
10231
10394
  };
10232
10395
  };
10396
+ /** DatabaseColumn */
10397
+ DatabaseColumn: {
10398
+ /** Id */
10399
+ id: string;
10400
+ /** Name */
10401
+ name: string;
10402
+ /**
10403
+ * Type
10404
+ * @enum {string}
10405
+ */
10406
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select';
10407
+ /** Options */
10408
+ options?: string[] | null;
10409
+ };
10410
+ /**
10411
+ * DatabaseColumnWrite
10412
+ * @description A column. Give ``id`` to keep an existing column (its type cannot change); omit it to add one.
10413
+ */
10414
+ DatabaseColumnWrite: {
10415
+ /** Id */
10416
+ id?: string | null;
10417
+ /** Name */
10418
+ name: string;
10419
+ /**
10420
+ * Type
10421
+ * @default text
10422
+ * @enum {string}
10423
+ */
10424
+ type: 'text' | 'number' | 'date' | 'checkbox' | 'select';
10425
+ /** Options */
10426
+ options?: string[] | null;
10427
+ };
10428
+ /** DatabaseCreate */
10429
+ DatabaseCreate: {
10430
+ /** Name */
10431
+ name: string;
10432
+ /** Description */
10433
+ description?: string | null;
10434
+ /** Columns */
10435
+ columns?: components['schemas']['DatabaseColumnWrite'][];
10436
+ };
10437
+ /** DatabaseImportResult */
10438
+ DatabaseImportResult: {
10439
+ database: components['schemas']['DatabaseRead'];
10440
+ /** Imported */
10441
+ imported: number;
10442
+ /** Added Columns */
10443
+ added_columns?: string[];
10444
+ };
10445
+ /** DatabaseRead */
10446
+ DatabaseRead: {
10447
+ /** Id */
10448
+ id: string;
10449
+ /** Name */
10450
+ name: string;
10451
+ /** Description */
10452
+ description?: string | null;
10453
+ /** Columns */
10454
+ columns?: components['schemas']['DatabaseColumn'][];
10455
+ /**
10456
+ * Row Count
10457
+ * @default 0
10458
+ */
10459
+ row_count: number;
10460
+ /** Workspace Id */
10461
+ workspace_id: string;
10462
+ /**
10463
+ * Editable
10464
+ * @default true
10465
+ */
10466
+ editable: boolean;
10467
+ /** Created By */
10468
+ created_by?: string | null;
10469
+ /**
10470
+ * Created At
10471
+ * Format: date-time
10472
+ */
10473
+ created_at: string;
10474
+ /**
10475
+ * Updated At
10476
+ * Format: date-time
10477
+ */
10478
+ updated_at: string;
10479
+ };
10480
+ /** DatabaseRowPage */
10481
+ DatabaseRowPage: {
10482
+ /** Rows */
10483
+ rows: components['schemas']['DatabaseRowRead'][];
10484
+ /** Total */
10485
+ total: number;
10486
+ };
10487
+ /** DatabaseRowRead */
10488
+ DatabaseRowRead: {
10489
+ /** Id */
10490
+ id: string;
10491
+ /** Values */
10492
+ values: {
10493
+ [key: string]: unknown;
10494
+ };
10495
+ /**
10496
+ * Created At
10497
+ * Format: date-time
10498
+ */
10499
+ created_at: string;
10500
+ /**
10501
+ * Updated At
10502
+ * Format: date-time
10503
+ */
10504
+ updated_at: string;
10505
+ };
10506
+ /**
10507
+ * DatabaseRowWrite
10508
+ * @description Cell values keyed by column id (``col-…``) or column name.
10509
+ */
10510
+ DatabaseRowWrite: {
10511
+ /** Values */
10512
+ values?: {
10513
+ [key: string]: unknown;
10514
+ };
10515
+ };
10516
+ /** DatabaseRowsCreate */
10517
+ DatabaseRowsCreate: {
10518
+ /** Rows */
10519
+ rows: components['schemas']['DatabaseRowWrite'][];
10520
+ };
10521
+ /** DatabaseRowsDelete */
10522
+ DatabaseRowsDelete: {
10523
+ /** Ids */
10524
+ ids: string[];
10525
+ };
10526
+ /** DatabaseUpdate */
10527
+ DatabaseUpdate: {
10528
+ /** Name */
10529
+ name?: string | null;
10530
+ /** Description */
10531
+ description?: string | null;
10532
+ /**
10533
+ * Columns
10534
+ * @description The full new column list; columns left out are dropped
10535
+ */
10536
+ columns?: components['schemas']['DatabaseColumnWrite'][] | null;
10537
+ };
10233
10538
  /**
10234
10539
  * DateTimeSpec
10235
10540
  * @description A point in time as the user wrote it.
@@ -23715,6 +24020,433 @@ interface operations {
23715
24020
  };
23716
24021
  };
23717
24022
  };
24023
+ list_databases: {
24024
+ parameters: {
24025
+ query?: {
24026
+ /** @description Also list the databases of public workspaces */
24027
+ include_public?: boolean;
24028
+ };
24029
+ header?: never;
24030
+ path?: never;
24031
+ cookie?: never;
24032
+ };
24033
+ requestBody?: never;
24034
+ responses: {
24035
+ /** @description Successful Response */
24036
+ 200: {
24037
+ headers: {
24038
+ [name: string]: unknown;
24039
+ };
24040
+ content: {
24041
+ 'application/json': components['schemas']['DatabaseRead'][];
24042
+ };
24043
+ };
24044
+ /** @description Validation Error */
24045
+ 422: {
24046
+ headers: {
24047
+ [name: string]: unknown;
24048
+ };
24049
+ content: {
24050
+ 'application/json': components['schemas']['HTTPValidationError'];
24051
+ };
24052
+ };
24053
+ };
24054
+ };
24055
+ create_database: {
24056
+ parameters: {
24057
+ query?: never;
24058
+ header?: never;
24059
+ path?: never;
24060
+ cookie?: never;
24061
+ };
24062
+ requestBody: {
24063
+ content: {
24064
+ 'application/json': components['schemas']['DatabaseCreate'];
24065
+ };
24066
+ };
24067
+ responses: {
24068
+ /** @description Successful Response */
24069
+ 200: {
24070
+ headers: {
24071
+ [name: string]: unknown;
24072
+ };
24073
+ content: {
24074
+ 'application/json': components['schemas']['DatabaseRead'];
24075
+ };
24076
+ };
24077
+ /** @description Validation Error */
24078
+ 422: {
24079
+ headers: {
24080
+ [name: string]: unknown;
24081
+ };
24082
+ content: {
24083
+ 'application/json': components['schemas']['HTTPValidationError'];
24084
+ };
24085
+ };
24086
+ };
24087
+ };
24088
+ import_database: {
24089
+ parameters: {
24090
+ query?: {
24091
+ /** @description Defaults to the file name */
24092
+ name?: string | null;
24093
+ /** @description XLSX sheet to read (default: the first) */
24094
+ sheet?: string | null;
24095
+ };
24096
+ header?: never;
24097
+ path?: never;
24098
+ cookie?: never;
24099
+ };
24100
+ requestBody: {
24101
+ content: {
24102
+ 'multipart/form-data': {
24103
+ /**
24104
+ * Format: binary
24105
+ * @description .csv or .xlsx; the first row is the header
24106
+ */
24107
+ file: string;
24108
+ };
24109
+ };
24110
+ };
24111
+ responses: {
24112
+ /** @description Successful Response */
24113
+ 200: {
24114
+ headers: {
24115
+ [name: string]: unknown;
24116
+ };
24117
+ content: {
24118
+ 'application/json': components['schemas']['DatabaseImportResult'];
24119
+ };
24120
+ };
24121
+ /** @description Validation Error */
24122
+ 422: {
24123
+ headers: {
24124
+ [name: string]: unknown;
24125
+ };
24126
+ content: {
24127
+ 'application/json': components['schemas']['HTTPValidationError'];
24128
+ };
24129
+ };
24130
+ };
24131
+ };
24132
+ get_database: {
24133
+ parameters: {
24134
+ query?: never;
24135
+ header?: never;
24136
+ path: {
24137
+ database_id: string;
24138
+ };
24139
+ cookie?: never;
24140
+ };
24141
+ requestBody?: never;
24142
+ responses: {
24143
+ /** @description Successful Response */
24144
+ 200: {
24145
+ headers: {
24146
+ [name: string]: unknown;
24147
+ };
24148
+ content: {
24149
+ 'application/json': components['schemas']['DatabaseRead'];
24150
+ };
24151
+ };
24152
+ /** @description Validation Error */
24153
+ 422: {
24154
+ headers: {
24155
+ [name: string]: unknown;
24156
+ };
24157
+ content: {
24158
+ 'application/json': components['schemas']['HTTPValidationError'];
24159
+ };
24160
+ };
24161
+ };
24162
+ };
24163
+ delete_database: {
24164
+ parameters: {
24165
+ query?: never;
24166
+ header?: never;
24167
+ path: {
24168
+ database_id: string;
24169
+ };
24170
+ cookie?: never;
24171
+ };
24172
+ requestBody?: never;
24173
+ responses: {
24174
+ /** @description Successful Response */
24175
+ 204: {
24176
+ headers: {
24177
+ [name: string]: unknown;
24178
+ };
24179
+ content?: never;
24180
+ };
24181
+ /** @description Validation Error */
24182
+ 422: {
24183
+ headers: {
24184
+ [name: string]: unknown;
24185
+ };
24186
+ content: {
24187
+ 'application/json': components['schemas']['HTTPValidationError'];
24188
+ };
24189
+ };
24190
+ };
24191
+ };
24192
+ update_database: {
24193
+ parameters: {
24194
+ query?: never;
24195
+ header?: never;
24196
+ path: {
24197
+ database_id: string;
24198
+ };
24199
+ cookie?: never;
24200
+ };
24201
+ requestBody: {
24202
+ content: {
24203
+ 'application/json': components['schemas']['DatabaseUpdate'];
24204
+ };
24205
+ };
24206
+ responses: {
24207
+ /** @description Successful Response */
24208
+ 200: {
24209
+ headers: {
24210
+ [name: string]: unknown;
24211
+ };
24212
+ content: {
24213
+ 'application/json': components['schemas']['DatabaseRead'];
24214
+ };
24215
+ };
24216
+ /** @description Validation Error */
24217
+ 422: {
24218
+ headers: {
24219
+ [name: string]: unknown;
24220
+ };
24221
+ content: {
24222
+ 'application/json': components['schemas']['HTTPValidationError'];
24223
+ };
24224
+ };
24225
+ };
24226
+ };
24227
+ list_database_rows: {
24228
+ parameters: {
24229
+ query?: {
24230
+ /** @description Case-insensitive text in any cell */
24231
+ q?: string | null;
24232
+ /** @description Column id or name to sort by */
24233
+ sort?: string | null;
24234
+ descending?: boolean;
24235
+ offset?: number;
24236
+ limit?: number;
24237
+ };
24238
+ header?: never;
24239
+ path: {
24240
+ database_id: string;
24241
+ };
24242
+ cookie?: never;
24243
+ };
24244
+ requestBody?: never;
24245
+ responses: {
24246
+ /** @description Successful Response */
24247
+ 200: {
24248
+ headers: {
24249
+ [name: string]: unknown;
24250
+ };
24251
+ content: {
24252
+ 'application/json': components['schemas']['DatabaseRowPage'];
24253
+ };
24254
+ };
24255
+ /** @description Validation Error */
24256
+ 422: {
24257
+ headers: {
24258
+ [name: string]: unknown;
24259
+ };
24260
+ content: {
24261
+ 'application/json': components['schemas']['HTTPValidationError'];
24262
+ };
24263
+ };
24264
+ };
24265
+ };
24266
+ add_database_rows: {
24267
+ parameters: {
24268
+ query?: never;
24269
+ header?: never;
24270
+ path: {
24271
+ database_id: string;
24272
+ };
24273
+ cookie?: never;
24274
+ };
24275
+ requestBody: {
24276
+ content: {
24277
+ 'application/json': components['schemas']['DatabaseRowsCreate'];
24278
+ };
24279
+ };
24280
+ responses: {
24281
+ /** @description Successful Response */
24282
+ 200: {
24283
+ headers: {
24284
+ [name: string]: unknown;
24285
+ };
24286
+ content: {
24287
+ 'application/json': components['schemas']['DatabaseRowRead'][];
24288
+ };
24289
+ };
24290
+ /** @description Validation Error */
24291
+ 422: {
24292
+ headers: {
24293
+ [name: string]: unknown;
24294
+ };
24295
+ content: {
24296
+ 'application/json': components['schemas']['HTTPValidationError'];
24297
+ };
24298
+ };
24299
+ };
24300
+ };
24301
+ update_database_row: {
24302
+ parameters: {
24303
+ query?: never;
24304
+ header?: never;
24305
+ path: {
24306
+ database_id: string;
24307
+ row_id: string;
24308
+ };
24309
+ cookie?: never;
24310
+ };
24311
+ requestBody: {
24312
+ content: {
24313
+ 'application/json': components['schemas']['DatabaseRowWrite'];
24314
+ };
24315
+ };
24316
+ responses: {
24317
+ /** @description Successful Response */
24318
+ 200: {
24319
+ headers: {
24320
+ [name: string]: unknown;
24321
+ };
24322
+ content: {
24323
+ 'application/json': components['schemas']['DatabaseRowRead'];
24324
+ };
24325
+ };
24326
+ /** @description Validation Error */
24327
+ 422: {
24328
+ headers: {
24329
+ [name: string]: unknown;
24330
+ };
24331
+ content: {
24332
+ 'application/json': components['schemas']['HTTPValidationError'];
24333
+ };
24334
+ };
24335
+ };
24336
+ };
24337
+ delete_database_rows: {
24338
+ parameters: {
24339
+ query?: never;
24340
+ header?: never;
24341
+ path: {
24342
+ database_id: string;
24343
+ };
24344
+ cookie?: never;
24345
+ };
24346
+ requestBody: {
24347
+ content: {
24348
+ 'application/json': components['schemas']['DatabaseRowsDelete'];
24349
+ };
24350
+ };
24351
+ responses: {
24352
+ /** @description Successful Response */
24353
+ 204: {
24354
+ headers: {
24355
+ [name: string]: unknown;
24356
+ };
24357
+ content?: never;
24358
+ };
24359
+ /** @description Validation Error */
24360
+ 422: {
24361
+ headers: {
24362
+ [name: string]: unknown;
24363
+ };
24364
+ content: {
24365
+ 'application/json': components['schemas']['HTTPValidationError'];
24366
+ };
24367
+ };
24368
+ };
24369
+ };
24370
+ import_database_rows: {
24371
+ parameters: {
24372
+ query?: {
24373
+ /** @description XLSX sheet to read (default: the first) */
24374
+ sheet?: string | null;
24375
+ /** @description Add a column for each header that matches none */
24376
+ add_columns?: boolean;
24377
+ };
24378
+ header?: never;
24379
+ path: {
24380
+ database_id: string;
24381
+ };
24382
+ cookie?: never;
24383
+ };
24384
+ requestBody: {
24385
+ content: {
24386
+ 'multipart/form-data': {
24387
+ /**
24388
+ * Format: binary
24389
+ * @description .csv or .xlsx; the first row is the header
24390
+ */
24391
+ file: string;
24392
+ };
24393
+ };
24394
+ };
24395
+ responses: {
24396
+ /** @description Successful Response */
24397
+ 200: {
24398
+ headers: {
24399
+ [name: string]: unknown;
24400
+ };
24401
+ content: {
24402
+ 'application/json': components['schemas']['DatabaseImportResult'];
24403
+ };
24404
+ };
24405
+ /** @description Validation Error */
24406
+ 422: {
24407
+ headers: {
24408
+ [name: string]: unknown;
24409
+ };
24410
+ content: {
24411
+ 'application/json': components['schemas']['HTTPValidationError'];
24412
+ };
24413
+ };
24414
+ };
24415
+ };
24416
+ export_database: {
24417
+ parameters: {
24418
+ query?: {
24419
+ format?: 'csv' | 'xlsx';
24420
+ };
24421
+ header?: never;
24422
+ path: {
24423
+ database_id: string;
24424
+ };
24425
+ cookie?: never;
24426
+ };
24427
+ requestBody?: never;
24428
+ responses: {
24429
+ /** @description Successful Response */
24430
+ 200: {
24431
+ headers: {
24432
+ [name: string]: unknown;
24433
+ };
24434
+ content: {
24435
+ 'text/csv': unknown;
24436
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': unknown;
24437
+ };
24438
+ };
24439
+ /** @description Validation Error */
24440
+ 422: {
24441
+ headers: {
24442
+ [name: string]: unknown;
24443
+ };
24444
+ content: {
24445
+ 'application/json': components['schemas']['HTTPValidationError'];
24446
+ };
24447
+ };
24448
+ };
24449
+ };
23718
24450
  list_workflows: {
23719
24451
  parameters: {
23720
24452
  query?: never;