@model-match/api 3.109.0 → 3.111.0
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/RELEASE_NOTES.md +11 -0
- package/dist/{index-C9DDKudQ.d.mts → index-BDlga75E.d.mts} +363 -8
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +26 -2
- package/dist/slim/index.mjs +78 -2
- package/dist/{src-bgEYN6JC.mjs → src-CcvbR87G.mjs} +84 -0
- package/openapi.json +1059 -181
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -26533,6 +26533,103 @@
|
|
|
26533
26533
|
],
|
|
26534
26534
|
"type": "object"
|
|
26535
26535
|
},
|
|
26536
|
+
"DatabaseStatement": {
|
|
26537
|
+
"additionalProperties": false,
|
|
26538
|
+
"properties": {
|
|
26539
|
+
"params": {
|
|
26540
|
+
"anyOf": [
|
|
26541
|
+
{
|
|
26542
|
+
"items": {
|
|
26543
|
+
"anyOf": [
|
|
26544
|
+
{
|
|
26545
|
+
"type": "string"
|
|
26546
|
+
},
|
|
26547
|
+
{
|
|
26548
|
+
"type": "number"
|
|
26549
|
+
},
|
|
26550
|
+
{
|
|
26551
|
+
"type": "boolean"
|
|
26552
|
+
},
|
|
26553
|
+
{
|
|
26554
|
+
"nullable": true
|
|
26555
|
+
}
|
|
26556
|
+
]
|
|
26557
|
+
},
|
|
26558
|
+
"maxItems": 999,
|
|
26559
|
+
"type": "array"
|
|
26560
|
+
},
|
|
26561
|
+
{
|
|
26562
|
+
"additionalProperties": {
|
|
26563
|
+
"anyOf": [
|
|
26564
|
+
{
|
|
26565
|
+
"type": "string"
|
|
26566
|
+
},
|
|
26567
|
+
{
|
|
26568
|
+
"type": "number"
|
|
26569
|
+
},
|
|
26570
|
+
{
|
|
26571
|
+
"type": "boolean"
|
|
26572
|
+
},
|
|
26573
|
+
{
|
|
26574
|
+
"nullable": true
|
|
26575
|
+
}
|
|
26576
|
+
]
|
|
26577
|
+
},
|
|
26578
|
+
"type": "object"
|
|
26579
|
+
}
|
|
26580
|
+
],
|
|
26581
|
+
"description": "Values for the statement's parameters: an array for `?`, or an object for named ones (`:name`, `@name`, `$name`; the key includes the prefix). Text, numbers, true/false or null."
|
|
26582
|
+
},
|
|
26583
|
+
"sql": {
|
|
26584
|
+
"description": "ONE statement: CREATE TABLE / INDEX / VIEW / TRIGGER, ALTER TABLE, DROP TABLE / INDEX / VIEW / TRIGGER, INSERT, REPLACE, UPDATE, DELETE, WITH … or SELECT.",
|
|
26585
|
+
"example": "INSERT INTO deals (client, amount) VALUES (?, ?)",
|
|
26586
|
+
"maxLength": 100000,
|
|
26587
|
+
"minLength": 1,
|
|
26588
|
+
"type": "string"
|
|
26589
|
+
}
|
|
26590
|
+
},
|
|
26591
|
+
"required": [
|
|
26592
|
+
"sql"
|
|
26593
|
+
],
|
|
26594
|
+
"type": "object"
|
|
26595
|
+
},
|
|
26596
|
+
"DatabaseStatementResult": {
|
|
26597
|
+
"properties": {
|
|
26598
|
+
"changes": {
|
|
26599
|
+
"description": "For a write: the rows it changed.",
|
|
26600
|
+
"type": "integer"
|
|
26601
|
+
},
|
|
26602
|
+
"columns": {
|
|
26603
|
+
"items": {
|
|
26604
|
+
"type": "string"
|
|
26605
|
+
},
|
|
26606
|
+
"type": "array"
|
|
26607
|
+
},
|
|
26608
|
+
"lastInsertRowid": {
|
|
26609
|
+
"type": "integer"
|
|
26610
|
+
},
|
|
26611
|
+
"rows": {
|
|
26612
|
+
"description": "Each row's values in `columns` order. Text and blobs longer than 10,000 characters are cut; a blob is `{ blob: <base64>, bytes, truncated }`.",
|
|
26613
|
+
"items": {
|
|
26614
|
+
"items": {
|
|
26615
|
+
"nullable": true
|
|
26616
|
+
},
|
|
26617
|
+
"type": "array"
|
|
26618
|
+
},
|
|
26619
|
+
"type": "array"
|
|
26620
|
+
},
|
|
26621
|
+
"truncated": {
|
|
26622
|
+
"description": "True when there were more rows than were returned.",
|
|
26623
|
+
"type": "boolean"
|
|
26624
|
+
}
|
|
26625
|
+
},
|
|
26626
|
+
"required": [
|
|
26627
|
+
"columns",
|
|
26628
|
+
"rows",
|
|
26629
|
+
"truncated"
|
|
26630
|
+
],
|
|
26631
|
+
"type": "object"
|
|
26632
|
+
},
|
|
26536
26633
|
"DatabaseTable": {
|
|
26537
26634
|
"properties": {
|
|
26538
26635
|
"columns": {
|
|
@@ -28199,6 +28296,287 @@
|
|
|
28199
28296
|
],
|
|
28200
28297
|
"type": "object"
|
|
28201
28298
|
},
|
|
28299
|
+
"FileDatabaseConflict": {
|
|
28300
|
+
"properties": {
|
|
28301
|
+
"code": {
|
|
28302
|
+
"type": "string"
|
|
28303
|
+
},
|
|
28304
|
+
"error": {
|
|
28305
|
+
"type": "string"
|
|
28306
|
+
},
|
|
28307
|
+
"latestRevision": {
|
|
28308
|
+
"description": "For `revision_conflict`: the database's latest revision.",
|
|
28309
|
+
"type": "integer"
|
|
28310
|
+
}
|
|
28311
|
+
},
|
|
28312
|
+
"required": [
|
|
28313
|
+
"error",
|
|
28314
|
+
"code"
|
|
28315
|
+
],
|
|
28316
|
+
"type": "object"
|
|
28317
|
+
},
|
|
28318
|
+
"FileDatabaseCreate": {
|
|
28319
|
+
"additionalProperties": false,
|
|
28320
|
+
"properties": {
|
|
28321
|
+
"links": {
|
|
28322
|
+
"items": {
|
|
28323
|
+
"maxLength": 220,
|
|
28324
|
+
"minLength": 3,
|
|
28325
|
+
"type": "string"
|
|
28326
|
+
},
|
|
28327
|
+
"maxItems": 20,
|
|
28328
|
+
"type": "array"
|
|
28329
|
+
},
|
|
28330
|
+
"metadata": {
|
|
28331
|
+
"additionalProperties": {
|
|
28332
|
+
"nullable": true
|
|
28333
|
+
},
|
|
28334
|
+
"type": "object"
|
|
28335
|
+
},
|
|
28336
|
+
"name": {
|
|
28337
|
+
"description": "The file name.",
|
|
28338
|
+
"example": "pipeline.sqlite",
|
|
28339
|
+
"maxLength": 255,
|
|
28340
|
+
"minLength": 1,
|
|
28341
|
+
"type": "string"
|
|
28342
|
+
},
|
|
28343
|
+
"origin": {
|
|
28344
|
+
"description": "Defaults to `app`.",
|
|
28345
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$",
|
|
28346
|
+
"type": "string"
|
|
28347
|
+
},
|
|
28348
|
+
"provenance": {
|
|
28349
|
+
"additionalProperties": {
|
|
28350
|
+
"maxLength": 200,
|
|
28351
|
+
"type": "string"
|
|
28352
|
+
},
|
|
28353
|
+
"type": "object"
|
|
28354
|
+
},
|
|
28355
|
+
"statements": {
|
|
28356
|
+
"description": "The schema (and any rows) to start from, run in order in one transaction. Leave out for an empty database.",
|
|
28357
|
+
"items": {
|
|
28358
|
+
"$ref": "#/components/schemas/DatabaseStatement"
|
|
28359
|
+
},
|
|
28360
|
+
"maxItems": 200,
|
|
28361
|
+
"type": "array"
|
|
28362
|
+
}
|
|
28363
|
+
},
|
|
28364
|
+
"required": [
|
|
28365
|
+
"name"
|
|
28366
|
+
],
|
|
28367
|
+
"type": "object"
|
|
28368
|
+
},
|
|
28369
|
+
"FileDatabaseCreated": {
|
|
28370
|
+
"properties": {
|
|
28371
|
+
"data": {
|
|
28372
|
+
"properties": {
|
|
28373
|
+
"file": {
|
|
28374
|
+
"$ref": "#/components/schemas/File"
|
|
28375
|
+
},
|
|
28376
|
+
"results": {
|
|
28377
|
+
"items": {
|
|
28378
|
+
"$ref": "#/components/schemas/DatabaseStatementResult"
|
|
28379
|
+
},
|
|
28380
|
+
"type": "array"
|
|
28381
|
+
}
|
|
28382
|
+
},
|
|
28383
|
+
"required": [
|
|
28384
|
+
"file",
|
|
28385
|
+
"results"
|
|
28386
|
+
],
|
|
28387
|
+
"type": "object"
|
|
28388
|
+
}
|
|
28389
|
+
},
|
|
28390
|
+
"required": [
|
|
28391
|
+
"data"
|
|
28392
|
+
],
|
|
28393
|
+
"type": "object"
|
|
28394
|
+
},
|
|
28395
|
+
"FileDatabaseQuery": {
|
|
28396
|
+
"additionalProperties": false,
|
|
28397
|
+
"properties": {
|
|
28398
|
+
"maxRows": {
|
|
28399
|
+
"description": "Rows to return (default 500, at most 5,000).",
|
|
28400
|
+
"maximum": 5000,
|
|
28401
|
+
"minimum": 1,
|
|
28402
|
+
"type": "integer"
|
|
28403
|
+
},
|
|
28404
|
+
"params": {
|
|
28405
|
+
"anyOf": [
|
|
28406
|
+
{
|
|
28407
|
+
"items": {
|
|
28408
|
+
"anyOf": [
|
|
28409
|
+
{
|
|
28410
|
+
"type": "string"
|
|
28411
|
+
},
|
|
28412
|
+
{
|
|
28413
|
+
"type": "number"
|
|
28414
|
+
},
|
|
28415
|
+
{
|
|
28416
|
+
"type": "boolean"
|
|
28417
|
+
},
|
|
28418
|
+
{
|
|
28419
|
+
"nullable": true
|
|
28420
|
+
}
|
|
28421
|
+
]
|
|
28422
|
+
},
|
|
28423
|
+
"maxItems": 999,
|
|
28424
|
+
"type": "array"
|
|
28425
|
+
},
|
|
28426
|
+
{
|
|
28427
|
+
"additionalProperties": {
|
|
28428
|
+
"anyOf": [
|
|
28429
|
+
{
|
|
28430
|
+
"type": "string"
|
|
28431
|
+
},
|
|
28432
|
+
{
|
|
28433
|
+
"type": "number"
|
|
28434
|
+
},
|
|
28435
|
+
{
|
|
28436
|
+
"type": "boolean"
|
|
28437
|
+
},
|
|
28438
|
+
{
|
|
28439
|
+
"nullable": true
|
|
28440
|
+
}
|
|
28441
|
+
]
|
|
28442
|
+
},
|
|
28443
|
+
"type": "object"
|
|
28444
|
+
}
|
|
28445
|
+
],
|
|
28446
|
+
"description": "Values for the statement's parameters: an array for `?`, or an object for named ones (`:name`, `@name`, `$name`; the key includes the prefix). Text, numbers, true/false or null."
|
|
28447
|
+
},
|
|
28448
|
+
"sql": {
|
|
28449
|
+
"description": "One read-only statement: `SELECT`, `WITH … SELECT` or `VALUES`.",
|
|
28450
|
+
"example": "SELECT name, closed_on FROM deals ORDER BY closed_on DESC",
|
|
28451
|
+
"maxLength": 100000,
|
|
28452
|
+
"minLength": 1,
|
|
28453
|
+
"type": "string"
|
|
28454
|
+
}
|
|
28455
|
+
},
|
|
28456
|
+
"required": [
|
|
28457
|
+
"sql"
|
|
28458
|
+
],
|
|
28459
|
+
"type": "object"
|
|
28460
|
+
},
|
|
28461
|
+
"FileDatabaseQueryResult": {
|
|
28462
|
+
"properties": {
|
|
28463
|
+
"data": {
|
|
28464
|
+
"allOf": [
|
|
28465
|
+
{
|
|
28466
|
+
"$ref": "#/components/schemas/DatabaseStatementResult"
|
|
28467
|
+
},
|
|
28468
|
+
{
|
|
28469
|
+
"properties": {
|
|
28470
|
+
"revision": {
|
|
28471
|
+
"description": "The revision of the database that answered.",
|
|
28472
|
+
"type": "integer"
|
|
28473
|
+
}
|
|
28474
|
+
},
|
|
28475
|
+
"required": [
|
|
28476
|
+
"revision"
|
|
28477
|
+
],
|
|
28478
|
+
"type": "object"
|
|
28479
|
+
}
|
|
28480
|
+
]
|
|
28481
|
+
}
|
|
28482
|
+
},
|
|
28483
|
+
"required": [
|
|
28484
|
+
"data"
|
|
28485
|
+
],
|
|
28486
|
+
"type": "object"
|
|
28487
|
+
},
|
|
28488
|
+
"FileDatabaseResult": {
|
|
28489
|
+
"properties": {
|
|
28490
|
+
"data": {
|
|
28491
|
+
"properties": {
|
|
28492
|
+
"database": {
|
|
28493
|
+
"allOf": [
|
|
28494
|
+
{
|
|
28495
|
+
"$ref": "#/components/schemas/FileDatabase"
|
|
28496
|
+
},
|
|
28497
|
+
{
|
|
28498
|
+
"description": "A SQLite database's tables, columns and row counts, views, indexes and triggers — for its current revision."
|
|
28499
|
+
}
|
|
28500
|
+
]
|
|
28501
|
+
}
|
|
28502
|
+
},
|
|
28503
|
+
"required": [
|
|
28504
|
+
"database"
|
|
28505
|
+
],
|
|
28506
|
+
"type": "object"
|
|
28507
|
+
}
|
|
28508
|
+
},
|
|
28509
|
+
"required": [
|
|
28510
|
+
"data"
|
|
28511
|
+
],
|
|
28512
|
+
"type": "object"
|
|
28513
|
+
},
|
|
28514
|
+
"FileDatabaseWrite": {
|
|
28515
|
+
"additionalProperties": false,
|
|
28516
|
+
"properties": {
|
|
28517
|
+
"expectRevision": {
|
|
28518
|
+
"description": "The revision you read. When the database has moved on, nothing is written and the answer is `409 revision_conflict` with `latestRevision`.",
|
|
28519
|
+
"minimum": 1,
|
|
28520
|
+
"type": "integer"
|
|
28521
|
+
},
|
|
28522
|
+
"statements": {
|
|
28523
|
+
"description": "Run in order, in ONE transaction: if any fails, none of them is kept.",
|
|
28524
|
+
"items": {
|
|
28525
|
+
"$ref": "#/components/schemas/DatabaseStatement"
|
|
28526
|
+
},
|
|
28527
|
+
"maxItems": 200,
|
|
28528
|
+
"minItems": 1,
|
|
28529
|
+
"type": "array"
|
|
28530
|
+
}
|
|
28531
|
+
},
|
|
28532
|
+
"required": [
|
|
28533
|
+
"statements"
|
|
28534
|
+
],
|
|
28535
|
+
"type": "object"
|
|
28536
|
+
},
|
|
28537
|
+
"FileDatabaseWriteResult": {
|
|
28538
|
+
"properties": {
|
|
28539
|
+
"data": {
|
|
28540
|
+
"properties": {
|
|
28541
|
+
"database": {
|
|
28542
|
+
"allOf": [
|
|
28543
|
+
{
|
|
28544
|
+
"$ref": "#/components/schemas/FileDatabase"
|
|
28545
|
+
},
|
|
28546
|
+
{
|
|
28547
|
+
"description": "A SQLite database's tables, columns and row counts, views, indexes and triggers — for its current revision."
|
|
28548
|
+
}
|
|
28549
|
+
]
|
|
28550
|
+
},
|
|
28551
|
+
"results": {
|
|
28552
|
+
"description": "One per statement, in order: `changes` for a write (including rows the database's own triggers changed, on some versions), rows for a SELECT or RETURNING.",
|
|
28553
|
+
"items": {
|
|
28554
|
+
"$ref": "#/components/schemas/DatabaseStatementResult"
|
|
28555
|
+
},
|
|
28556
|
+
"type": "array"
|
|
28557
|
+
},
|
|
28558
|
+
"revision": {
|
|
28559
|
+
"description": "The new revision the change was saved as.",
|
|
28560
|
+
"type": "integer"
|
|
28561
|
+
},
|
|
28562
|
+
"sizeBytes": {
|
|
28563
|
+
"type": "integer"
|
|
28564
|
+
}
|
|
28565
|
+
},
|
|
28566
|
+
"required": [
|
|
28567
|
+
"revision",
|
|
28568
|
+
"sizeBytes",
|
|
28569
|
+
"results",
|
|
28570
|
+
"database"
|
|
28571
|
+
],
|
|
28572
|
+
"type": "object"
|
|
28573
|
+
}
|
|
28574
|
+
},
|
|
28575
|
+
"required": [
|
|
28576
|
+
"data"
|
|
28577
|
+
],
|
|
28578
|
+
"type": "object"
|
|
28579
|
+
},
|
|
28202
28580
|
"FileError": {
|
|
28203
28581
|
"properties": {
|
|
28204
28582
|
"code": {
|
|
@@ -54124,7 +54502,7 @@
|
|
|
54124
54502
|
"StudioModelError": {
|
|
54125
54503
|
"properties": {
|
|
54126
54504
|
"code": {
|
|
54127
|
-
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `
|
|
54505
|
+
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_disabled` (501: training is turned off here; do not retry), `studio_unavailable`.",
|
|
54128
54506
|
"example": "match_rate_too_low",
|
|
54129
54507
|
"type": "string"
|
|
54130
54508
|
},
|
|
@@ -58608,7 +58986,7 @@
|
|
|
58608
58986
|
"info": {
|
|
58609
58987
|
"description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
|
|
58610
58988
|
"title": "ModelMatch API",
|
|
58611
|
-
"version": "3.
|
|
58989
|
+
"version": "3.215.0"
|
|
58612
58990
|
},
|
|
58613
58991
|
"openapi": "3.1.0",
|
|
58614
58992
|
"paths": {
|
|
@@ -86316,6 +86694,118 @@
|
|
|
86316
86694
|
]
|
|
86317
86695
|
}
|
|
86318
86696
|
},
|
|
86697
|
+
"/v1/files/databases": {
|
|
86698
|
+
"post": {
|
|
86699
|
+
"description": "Create a new SQLite database in your files library, empty or from a schema (`statements`, run in order in one transaction, with the same rules as a write). It is yours, `kind: \"sqlite\"`, revision 1, and ready at once: query it, write to it, share it and load it into Studio like any database file. Free.",
|
|
86700
|
+
"operationId": "createFileDatabase",
|
|
86701
|
+
"requestBody": {
|
|
86702
|
+
"content": {
|
|
86703
|
+
"application/json": {
|
|
86704
|
+
"schema": {
|
|
86705
|
+
"$ref": "#/components/schemas/FileDatabaseCreate"
|
|
86706
|
+
}
|
|
86707
|
+
}
|
|
86708
|
+
},
|
|
86709
|
+
"required": true
|
|
86710
|
+
},
|
|
86711
|
+
"responses": {
|
|
86712
|
+
"201": {
|
|
86713
|
+
"content": {
|
|
86714
|
+
"application/json": {
|
|
86715
|
+
"schema": {
|
|
86716
|
+
"$ref": "#/components/schemas/FileDatabaseCreated"
|
|
86717
|
+
}
|
|
86718
|
+
}
|
|
86719
|
+
},
|
|
86720
|
+
"description": "The new database"
|
|
86721
|
+
},
|
|
86722
|
+
"400": {
|
|
86723
|
+
"content": {
|
|
86724
|
+
"application/json": {
|
|
86725
|
+
"schema": {
|
|
86726
|
+
"$ref": "#/components/schemas/FileError"
|
|
86727
|
+
}
|
|
86728
|
+
}
|
|
86729
|
+
},
|
|
86730
|
+
"description": "Invalid request"
|
|
86731
|
+
},
|
|
86732
|
+
"401": {
|
|
86733
|
+
"content": {
|
|
86734
|
+
"application/json": {
|
|
86735
|
+
"schema": {
|
|
86736
|
+
"$ref": "#/components/schemas/FileError"
|
|
86737
|
+
}
|
|
86738
|
+
}
|
|
86739
|
+
},
|
|
86740
|
+
"description": "Not signed in"
|
|
86741
|
+
},
|
|
86742
|
+
"403": {
|
|
86743
|
+
"content": {
|
|
86744
|
+
"application/json": {
|
|
86745
|
+
"schema": {
|
|
86746
|
+
"$ref": "#/components/schemas/FileError"
|
|
86747
|
+
}
|
|
86748
|
+
}
|
|
86749
|
+
},
|
|
86750
|
+
"description": "Not allowed"
|
|
86751
|
+
},
|
|
86752
|
+
"404": {
|
|
86753
|
+
"content": {
|
|
86754
|
+
"application/json": {
|
|
86755
|
+
"schema": {
|
|
86756
|
+
"$ref": "#/components/schemas/FileError"
|
|
86757
|
+
}
|
|
86758
|
+
}
|
|
86759
|
+
},
|
|
86760
|
+
"description": "No such file"
|
|
86761
|
+
},
|
|
86762
|
+
"409": {
|
|
86763
|
+
"content": {
|
|
86764
|
+
"application/json": {
|
|
86765
|
+
"schema": {
|
|
86766
|
+
"$ref": "#/components/schemas/FileError"
|
|
86767
|
+
}
|
|
86768
|
+
}
|
|
86769
|
+
},
|
|
86770
|
+
"description": "Conflicts with the file's state"
|
|
86771
|
+
},
|
|
86772
|
+
"422": {
|
|
86773
|
+
"content": {
|
|
86774
|
+
"application/json": {
|
|
86775
|
+
"schema": {
|
|
86776
|
+
"$ref": "#/components/schemas/FileError"
|
|
86777
|
+
}
|
|
86778
|
+
}
|
|
86779
|
+
},
|
|
86780
|
+
"description": "The upload did not match"
|
|
86781
|
+
},
|
|
86782
|
+
"502": {
|
|
86783
|
+
"content": {
|
|
86784
|
+
"application/json": {
|
|
86785
|
+
"schema": {
|
|
86786
|
+
"$ref": "#/components/schemas/FileError"
|
|
86787
|
+
}
|
|
86788
|
+
}
|
|
86789
|
+
},
|
|
86790
|
+
"description": "Could not check membership"
|
|
86791
|
+
},
|
|
86792
|
+
"503": {
|
|
86793
|
+
"content": {
|
|
86794
|
+
"application/json": {
|
|
86795
|
+
"schema": {
|
|
86796
|
+
"$ref": "#/components/schemas/FileError"
|
|
86797
|
+
}
|
|
86798
|
+
}
|
|
86799
|
+
},
|
|
86800
|
+
"description": "Storage or the access log unavailable"
|
|
86801
|
+
}
|
|
86802
|
+
},
|
|
86803
|
+
"summary": "Create a database file",
|
|
86804
|
+
"tags": [
|
|
86805
|
+
"Files"
|
|
86806
|
+
]
|
|
86807
|
+
}
|
|
86808
|
+
},
|
|
86319
86809
|
"/v1/files/references": {
|
|
86320
86810
|
"post": {
|
|
86321
86811
|
"description": "Adds a library entry for something that stays live in another app (a dashboard, chart or table): its title, kind and where to open it (`ref`), not a copy of it. It is ready at once, has no contents, and is listed, searched, pinned, renamed, shared, linked and deleted like any file. Calling it again for the same `ref.app` and `ref.id` updates your entry (name, kind, URL, and metadata when sent; links sent are added) and answers `200` with the same id. To show a thumbnail, put an image on it with `POST /v1/files/{id}/revisions`; its contents are then that image. Free.",
|
|
@@ -87010,16 +87500,464 @@
|
|
|
87010
87500
|
"description": "Storage or the access log unavailable"
|
|
87011
87501
|
}
|
|
87012
87502
|
},
|
|
87013
|
-
"summary": "Rename a file or edit its metadata",
|
|
87503
|
+
"summary": "Rename a file or edit its metadata",
|
|
87504
|
+
"tags": [
|
|
87505
|
+
"Files"
|
|
87506
|
+
]
|
|
87507
|
+
}
|
|
87508
|
+
},
|
|
87509
|
+
"/v1/files/{id}/access-log": {
|
|
87510
|
+
"get": {
|
|
87511
|
+
"description": "Every access to a protected file, newest first: who opened, downloaded, shared or changed it, from which app, and every refused attempt. The owner and organization admins only. Free.",
|
|
87512
|
+
"operationId": "getFileAccessLog",
|
|
87513
|
+
"parameters": [
|
|
87514
|
+
{
|
|
87515
|
+
"description": "The file's id.",
|
|
87516
|
+
"in": "path",
|
|
87517
|
+
"name": "id",
|
|
87518
|
+
"required": true,
|
|
87519
|
+
"schema": {
|
|
87520
|
+
"description": "The file's id.",
|
|
87521
|
+
"example": "file_3f2a…",
|
|
87522
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
87523
|
+
"type": "string"
|
|
87524
|
+
}
|
|
87525
|
+
},
|
|
87526
|
+
{
|
|
87527
|
+
"in": "query",
|
|
87528
|
+
"name": "limit",
|
|
87529
|
+
"required": false,
|
|
87530
|
+
"schema": {
|
|
87531
|
+
"default": 100,
|
|
87532
|
+
"maximum": 500,
|
|
87533
|
+
"minimum": 1,
|
|
87534
|
+
"type": "integer"
|
|
87535
|
+
}
|
|
87536
|
+
},
|
|
87537
|
+
{
|
|
87538
|
+
"in": "query",
|
|
87539
|
+
"name": "cursor",
|
|
87540
|
+
"required": false,
|
|
87541
|
+
"schema": {
|
|
87542
|
+
"maxLength": 200,
|
|
87543
|
+
"type": "string"
|
|
87544
|
+
}
|
|
87545
|
+
}
|
|
87546
|
+
],
|
|
87547
|
+
"responses": {
|
|
87548
|
+
"200": {
|
|
87549
|
+
"content": {
|
|
87550
|
+
"application/json": {
|
|
87551
|
+
"schema": {
|
|
87552
|
+
"properties": {
|
|
87553
|
+
"data": {
|
|
87554
|
+
"items": {
|
|
87555
|
+
"$ref": "#/components/schemas/FileAccessLogEntry"
|
|
87556
|
+
},
|
|
87557
|
+
"type": "array"
|
|
87558
|
+
},
|
|
87559
|
+
"nextCursor": {
|
|
87560
|
+
"nullable": true,
|
|
87561
|
+
"type": "string"
|
|
87562
|
+
}
|
|
87563
|
+
},
|
|
87564
|
+
"required": [
|
|
87565
|
+
"data",
|
|
87566
|
+
"nextCursor"
|
|
87567
|
+
],
|
|
87568
|
+
"type": "object"
|
|
87569
|
+
}
|
|
87570
|
+
}
|
|
87571
|
+
},
|
|
87572
|
+
"description": "Access log entries"
|
|
87573
|
+
},
|
|
87574
|
+
"400": {
|
|
87575
|
+
"content": {
|
|
87576
|
+
"application/json": {
|
|
87577
|
+
"schema": {
|
|
87578
|
+
"$ref": "#/components/schemas/FileError"
|
|
87579
|
+
}
|
|
87580
|
+
}
|
|
87581
|
+
},
|
|
87582
|
+
"description": "Invalid request"
|
|
87583
|
+
},
|
|
87584
|
+
"401": {
|
|
87585
|
+
"content": {
|
|
87586
|
+
"application/json": {
|
|
87587
|
+
"schema": {
|
|
87588
|
+
"$ref": "#/components/schemas/FileError"
|
|
87589
|
+
}
|
|
87590
|
+
}
|
|
87591
|
+
},
|
|
87592
|
+
"description": "Not signed in"
|
|
87593
|
+
},
|
|
87594
|
+
"403": {
|
|
87595
|
+
"content": {
|
|
87596
|
+
"application/json": {
|
|
87597
|
+
"schema": {
|
|
87598
|
+
"$ref": "#/components/schemas/FileError"
|
|
87599
|
+
}
|
|
87600
|
+
}
|
|
87601
|
+
},
|
|
87602
|
+
"description": "Not allowed"
|
|
87603
|
+
},
|
|
87604
|
+
"404": {
|
|
87605
|
+
"content": {
|
|
87606
|
+
"application/json": {
|
|
87607
|
+
"schema": {
|
|
87608
|
+
"$ref": "#/components/schemas/FileError"
|
|
87609
|
+
}
|
|
87610
|
+
}
|
|
87611
|
+
},
|
|
87612
|
+
"description": "No such file"
|
|
87613
|
+
},
|
|
87614
|
+
"409": {
|
|
87615
|
+
"content": {
|
|
87616
|
+
"application/json": {
|
|
87617
|
+
"schema": {
|
|
87618
|
+
"$ref": "#/components/schemas/FileError"
|
|
87619
|
+
}
|
|
87620
|
+
}
|
|
87621
|
+
},
|
|
87622
|
+
"description": "Conflicts with the file's state"
|
|
87623
|
+
},
|
|
87624
|
+
"422": {
|
|
87625
|
+
"content": {
|
|
87626
|
+
"application/json": {
|
|
87627
|
+
"schema": {
|
|
87628
|
+
"$ref": "#/components/schemas/FileError"
|
|
87629
|
+
}
|
|
87630
|
+
}
|
|
87631
|
+
},
|
|
87632
|
+
"description": "The upload did not match"
|
|
87633
|
+
},
|
|
87634
|
+
"502": {
|
|
87635
|
+
"content": {
|
|
87636
|
+
"application/json": {
|
|
87637
|
+
"schema": {
|
|
87638
|
+
"$ref": "#/components/schemas/FileError"
|
|
87639
|
+
}
|
|
87640
|
+
}
|
|
87641
|
+
},
|
|
87642
|
+
"description": "Could not check membership"
|
|
87643
|
+
},
|
|
87644
|
+
"503": {
|
|
87645
|
+
"content": {
|
|
87646
|
+
"application/json": {
|
|
87647
|
+
"schema": {
|
|
87648
|
+
"$ref": "#/components/schemas/FileError"
|
|
87649
|
+
}
|
|
87650
|
+
}
|
|
87651
|
+
},
|
|
87652
|
+
"description": "Storage or the access log unavailable"
|
|
87653
|
+
}
|
|
87654
|
+
},
|
|
87655
|
+
"summary": "A protected file's access log",
|
|
87656
|
+
"tags": [
|
|
87657
|
+
"Files"
|
|
87658
|
+
]
|
|
87659
|
+
}
|
|
87660
|
+
},
|
|
87661
|
+
"/v1/files/{id}/agent-approvals": {
|
|
87662
|
+
"post": {
|
|
87663
|
+
"description": "You approve an agent to open this protected file in the conversation `chatId`, and nowhere else. Only you can approve, from your own session: an agent cannot approve itself. Each approval is recorded in the file's access log. Free.",
|
|
87664
|
+
"operationId": "approveFileForAgent",
|
|
87665
|
+
"parameters": [
|
|
87666
|
+
{
|
|
87667
|
+
"description": "The file's id.",
|
|
87668
|
+
"in": "path",
|
|
87669
|
+
"name": "id",
|
|
87670
|
+
"required": true,
|
|
87671
|
+
"schema": {
|
|
87672
|
+
"description": "The file's id.",
|
|
87673
|
+
"example": "file_3f2a…",
|
|
87674
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
87675
|
+
"type": "string"
|
|
87676
|
+
}
|
|
87677
|
+
}
|
|
87678
|
+
],
|
|
87679
|
+
"requestBody": {
|
|
87680
|
+
"content": {
|
|
87681
|
+
"application/json": {
|
|
87682
|
+
"schema": {
|
|
87683
|
+
"$ref": "#/components/schemas/FileAgentApprovalCreate"
|
|
87684
|
+
}
|
|
87685
|
+
}
|
|
87686
|
+
},
|
|
87687
|
+
"required": true
|
|
87688
|
+
},
|
|
87689
|
+
"responses": {
|
|
87690
|
+
"201": {
|
|
87691
|
+
"content": {
|
|
87692
|
+
"application/json": {
|
|
87693
|
+
"schema": {
|
|
87694
|
+
"properties": {
|
|
87695
|
+
"data": {
|
|
87696
|
+
"properties": {
|
|
87697
|
+
"approvedAt": {
|
|
87698
|
+
"type": "string"
|
|
87699
|
+
},
|
|
87700
|
+
"chatId": {
|
|
87701
|
+
"type": "string"
|
|
87702
|
+
},
|
|
87703
|
+
"fileId": {
|
|
87704
|
+
"type": "string"
|
|
87705
|
+
},
|
|
87706
|
+
"userId": {
|
|
87707
|
+
"type": "string"
|
|
87708
|
+
}
|
|
87709
|
+
},
|
|
87710
|
+
"required": [
|
|
87711
|
+
"fileId",
|
|
87712
|
+
"chatId",
|
|
87713
|
+
"userId",
|
|
87714
|
+
"approvedAt"
|
|
87715
|
+
],
|
|
87716
|
+
"type": "object"
|
|
87717
|
+
}
|
|
87718
|
+
},
|
|
87719
|
+
"required": [
|
|
87720
|
+
"data"
|
|
87721
|
+
],
|
|
87722
|
+
"type": "object"
|
|
87723
|
+
}
|
|
87724
|
+
}
|
|
87725
|
+
},
|
|
87726
|
+
"description": "Approved"
|
|
87727
|
+
},
|
|
87728
|
+
"400": {
|
|
87729
|
+
"content": {
|
|
87730
|
+
"application/json": {
|
|
87731
|
+
"schema": {
|
|
87732
|
+
"$ref": "#/components/schemas/FileError"
|
|
87733
|
+
}
|
|
87734
|
+
}
|
|
87735
|
+
},
|
|
87736
|
+
"description": "Invalid request"
|
|
87737
|
+
},
|
|
87738
|
+
"401": {
|
|
87739
|
+
"content": {
|
|
87740
|
+
"application/json": {
|
|
87741
|
+
"schema": {
|
|
87742
|
+
"$ref": "#/components/schemas/FileError"
|
|
87743
|
+
}
|
|
87744
|
+
}
|
|
87745
|
+
},
|
|
87746
|
+
"description": "Not signed in"
|
|
87747
|
+
},
|
|
87748
|
+
"403": {
|
|
87749
|
+
"content": {
|
|
87750
|
+
"application/json": {
|
|
87751
|
+
"schema": {
|
|
87752
|
+
"$ref": "#/components/schemas/FileError"
|
|
87753
|
+
}
|
|
87754
|
+
}
|
|
87755
|
+
},
|
|
87756
|
+
"description": "Not allowed"
|
|
87757
|
+
},
|
|
87758
|
+
"404": {
|
|
87759
|
+
"content": {
|
|
87760
|
+
"application/json": {
|
|
87761
|
+
"schema": {
|
|
87762
|
+
"$ref": "#/components/schemas/FileError"
|
|
87763
|
+
}
|
|
87764
|
+
}
|
|
87765
|
+
},
|
|
87766
|
+
"description": "No such file"
|
|
87767
|
+
},
|
|
87768
|
+
"409": {
|
|
87769
|
+
"content": {
|
|
87770
|
+
"application/json": {
|
|
87771
|
+
"schema": {
|
|
87772
|
+
"$ref": "#/components/schemas/FileError"
|
|
87773
|
+
}
|
|
87774
|
+
}
|
|
87775
|
+
},
|
|
87776
|
+
"description": "Conflicts with the file's state"
|
|
87777
|
+
},
|
|
87778
|
+
"422": {
|
|
87779
|
+
"content": {
|
|
87780
|
+
"application/json": {
|
|
87781
|
+
"schema": {
|
|
87782
|
+
"$ref": "#/components/schemas/FileError"
|
|
87783
|
+
}
|
|
87784
|
+
}
|
|
87785
|
+
},
|
|
87786
|
+
"description": "The upload did not match"
|
|
87787
|
+
},
|
|
87788
|
+
"502": {
|
|
87789
|
+
"content": {
|
|
87790
|
+
"application/json": {
|
|
87791
|
+
"schema": {
|
|
87792
|
+
"$ref": "#/components/schemas/FileError"
|
|
87793
|
+
}
|
|
87794
|
+
}
|
|
87795
|
+
},
|
|
87796
|
+
"description": "Could not check membership"
|
|
87797
|
+
},
|
|
87798
|
+
"503": {
|
|
87799
|
+
"content": {
|
|
87800
|
+
"application/json": {
|
|
87801
|
+
"schema": {
|
|
87802
|
+
"$ref": "#/components/schemas/FileError"
|
|
87803
|
+
}
|
|
87804
|
+
}
|
|
87805
|
+
},
|
|
87806
|
+
"description": "Storage or the access log unavailable"
|
|
87807
|
+
}
|
|
87808
|
+
},
|
|
87809
|
+
"summary": "Let an agent open a protected file in one conversation",
|
|
87810
|
+
"tags": [
|
|
87811
|
+
"Files"
|
|
87812
|
+
]
|
|
87813
|
+
}
|
|
87814
|
+
},
|
|
87815
|
+
"/v1/files/{id}/complete": {
|
|
87816
|
+
"post": {
|
|
87817
|
+
"description": "Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked (when no SHA-256 was declared it is computed now); a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.",
|
|
87818
|
+
"operationId": "completeFile",
|
|
87819
|
+
"parameters": [
|
|
87820
|
+
{
|
|
87821
|
+
"description": "The file's id.",
|
|
87822
|
+
"in": "path",
|
|
87823
|
+
"name": "id",
|
|
87824
|
+
"required": true,
|
|
87825
|
+
"schema": {
|
|
87826
|
+
"description": "The file's id.",
|
|
87827
|
+
"example": "file_3f2a…",
|
|
87828
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
87829
|
+
"type": "string"
|
|
87830
|
+
}
|
|
87831
|
+
}
|
|
87832
|
+
],
|
|
87833
|
+
"responses": {
|
|
87834
|
+
"200": {
|
|
87835
|
+
"content": {
|
|
87836
|
+
"application/json": {
|
|
87837
|
+
"schema": {
|
|
87838
|
+
"properties": {
|
|
87839
|
+
"data": {
|
|
87840
|
+
"$ref": "#/components/schemas/File"
|
|
87841
|
+
}
|
|
87842
|
+
},
|
|
87843
|
+
"required": [
|
|
87844
|
+
"data"
|
|
87845
|
+
],
|
|
87846
|
+
"type": "object"
|
|
87847
|
+
}
|
|
87848
|
+
}
|
|
87849
|
+
},
|
|
87850
|
+
"description": "The file is ready"
|
|
87851
|
+
},
|
|
87852
|
+
"202": {
|
|
87853
|
+
"content": {
|
|
87854
|
+
"application/json": {
|
|
87855
|
+
"schema": {
|
|
87856
|
+
"properties": {
|
|
87857
|
+
"data": {
|
|
87858
|
+
"$ref": "#/components/schemas/File"
|
|
87859
|
+
}
|
|
87860
|
+
},
|
|
87861
|
+
"required": [
|
|
87862
|
+
"data"
|
|
87863
|
+
],
|
|
87864
|
+
"type": "object"
|
|
87865
|
+
}
|
|
87866
|
+
}
|
|
87867
|
+
},
|
|
87868
|
+
"description": "The file is being scanned"
|
|
87869
|
+
},
|
|
87870
|
+
"400": {
|
|
87871
|
+
"content": {
|
|
87872
|
+
"application/json": {
|
|
87873
|
+
"schema": {
|
|
87874
|
+
"$ref": "#/components/schemas/FileError"
|
|
87875
|
+
}
|
|
87876
|
+
}
|
|
87877
|
+
},
|
|
87878
|
+
"description": "Invalid request"
|
|
87879
|
+
},
|
|
87880
|
+
"401": {
|
|
87881
|
+
"content": {
|
|
87882
|
+
"application/json": {
|
|
87883
|
+
"schema": {
|
|
87884
|
+
"$ref": "#/components/schemas/FileError"
|
|
87885
|
+
}
|
|
87886
|
+
}
|
|
87887
|
+
},
|
|
87888
|
+
"description": "Not signed in"
|
|
87889
|
+
},
|
|
87890
|
+
"403": {
|
|
87891
|
+
"content": {
|
|
87892
|
+
"application/json": {
|
|
87893
|
+
"schema": {
|
|
87894
|
+
"$ref": "#/components/schemas/FileError"
|
|
87895
|
+
}
|
|
87896
|
+
}
|
|
87897
|
+
},
|
|
87898
|
+
"description": "Not allowed"
|
|
87899
|
+
},
|
|
87900
|
+
"404": {
|
|
87901
|
+
"content": {
|
|
87902
|
+
"application/json": {
|
|
87903
|
+
"schema": {
|
|
87904
|
+
"$ref": "#/components/schemas/FileError"
|
|
87905
|
+
}
|
|
87906
|
+
}
|
|
87907
|
+
},
|
|
87908
|
+
"description": "No such file"
|
|
87909
|
+
},
|
|
87910
|
+
"409": {
|
|
87911
|
+
"content": {
|
|
87912
|
+
"application/json": {
|
|
87913
|
+
"schema": {
|
|
87914
|
+
"$ref": "#/components/schemas/FileError"
|
|
87915
|
+
}
|
|
87916
|
+
}
|
|
87917
|
+
},
|
|
87918
|
+
"description": "Conflicts with the file's state"
|
|
87919
|
+
},
|
|
87920
|
+
"422": {
|
|
87921
|
+
"content": {
|
|
87922
|
+
"application/json": {
|
|
87923
|
+
"schema": {
|
|
87924
|
+
"$ref": "#/components/schemas/FileError"
|
|
87925
|
+
}
|
|
87926
|
+
}
|
|
87927
|
+
},
|
|
87928
|
+
"description": "The upload did not match"
|
|
87929
|
+
},
|
|
87930
|
+
"502": {
|
|
87931
|
+
"content": {
|
|
87932
|
+
"application/json": {
|
|
87933
|
+
"schema": {
|
|
87934
|
+
"$ref": "#/components/schemas/FileError"
|
|
87935
|
+
}
|
|
87936
|
+
}
|
|
87937
|
+
},
|
|
87938
|
+
"description": "Could not check membership"
|
|
87939
|
+
},
|
|
87940
|
+
"503": {
|
|
87941
|
+
"content": {
|
|
87942
|
+
"application/json": {
|
|
87943
|
+
"schema": {
|
|
87944
|
+
"$ref": "#/components/schemas/FileError"
|
|
87945
|
+
}
|
|
87946
|
+
}
|
|
87947
|
+
},
|
|
87948
|
+
"description": "Storage or the access log unavailable"
|
|
87949
|
+
}
|
|
87950
|
+
},
|
|
87951
|
+
"summary": "Finish an upload",
|
|
87014
87952
|
"tags": [
|
|
87015
87953
|
"Files"
|
|
87016
87954
|
]
|
|
87017
87955
|
}
|
|
87018
87956
|
},
|
|
87019
|
-
"/v1/files/{id}/
|
|
87957
|
+
"/v1/files/{id}/content": {
|
|
87020
87958
|
"get": {
|
|
87021
|
-
"description": "
|
|
87022
|
-
"operationId": "
|
|
87959
|
+
"description": "Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.",
|
|
87960
|
+
"operationId": "getFileContent",
|
|
87023
87961
|
"parameters": [
|
|
87024
87962
|
{
|
|
87025
87963
|
"description": "The file's id.",
|
|
@@ -87035,21 +87973,29 @@
|
|
|
87035
87973
|
},
|
|
87036
87974
|
{
|
|
87037
87975
|
"in": "query",
|
|
87038
|
-
"name": "
|
|
87976
|
+
"name": "disposition",
|
|
87039
87977
|
"required": false,
|
|
87040
87978
|
"schema": {
|
|
87041
|
-
"default":
|
|
87042
|
-
"
|
|
87043
|
-
|
|
87044
|
-
|
|
87979
|
+
"default": "attachment",
|
|
87980
|
+
"enum": [
|
|
87981
|
+
"inline",
|
|
87982
|
+
"attachment"
|
|
87983
|
+
],
|
|
87984
|
+
"type": "string"
|
|
87045
87985
|
}
|
|
87046
87986
|
},
|
|
87047
87987
|
{
|
|
87988
|
+
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
87048
87989
|
"in": "query",
|
|
87049
|
-
"name": "
|
|
87990
|
+
"name": "redirect",
|
|
87050
87991
|
"required": false,
|
|
87051
87992
|
"schema": {
|
|
87052
|
-
"
|
|
87993
|
+
"default": "true",
|
|
87994
|
+
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
87995
|
+
"enum": [
|
|
87996
|
+
"true",
|
|
87997
|
+
"false"
|
|
87998
|
+
],
|
|
87053
87999
|
"type": "string"
|
|
87054
88000
|
}
|
|
87055
88001
|
}
|
|
@@ -87061,25 +88007,45 @@
|
|
|
87061
88007
|
"schema": {
|
|
87062
88008
|
"properties": {
|
|
87063
88009
|
"data": {
|
|
87064
|
-
"
|
|
87065
|
-
"
|
|
88010
|
+
"properties": {
|
|
88011
|
+
"expiresAt": {
|
|
88012
|
+
"type": "string"
|
|
88013
|
+
},
|
|
88014
|
+
"oneTime": {
|
|
88015
|
+
"description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
|
|
88016
|
+
"type": "boolean"
|
|
88017
|
+
},
|
|
88018
|
+
"url": {
|
|
88019
|
+
"type": "string"
|
|
88020
|
+
}
|
|
87066
88021
|
},
|
|
87067
|
-
"
|
|
87068
|
-
|
|
87069
|
-
|
|
87070
|
-
|
|
87071
|
-
|
|
88022
|
+
"required": [
|
|
88023
|
+
"url",
|
|
88024
|
+
"expiresAt",
|
|
88025
|
+
"oneTime"
|
|
88026
|
+
],
|
|
88027
|
+
"type": "object"
|
|
87072
88028
|
}
|
|
87073
88029
|
},
|
|
87074
88030
|
"required": [
|
|
87075
|
-
"data"
|
|
87076
|
-
"nextCursor"
|
|
88031
|
+
"data"
|
|
87077
88032
|
],
|
|
87078
88033
|
"type": "object"
|
|
87079
88034
|
}
|
|
87080
88035
|
}
|
|
87081
88036
|
},
|
|
87082
|
-
"description": "
|
|
88037
|
+
"description": "The download link (with `redirect=false`)"
|
|
88038
|
+
},
|
|
88039
|
+
"302": {
|
|
88040
|
+
"description": "Redirect to the download link",
|
|
88041
|
+
"headers": {
|
|
88042
|
+
"location": {
|
|
88043
|
+
"required": true,
|
|
88044
|
+
"schema": {
|
|
88045
|
+
"type": "string"
|
|
88046
|
+
}
|
|
88047
|
+
}
|
|
88048
|
+
}
|
|
87083
88049
|
},
|
|
87084
88050
|
"400": {
|
|
87085
88051
|
"content": {
|
|
@@ -87162,16 +88128,16 @@
|
|
|
87162
88128
|
"description": "Storage or the access log unavailable"
|
|
87163
88129
|
}
|
|
87164
88130
|
},
|
|
87165
|
-
"summary": "
|
|
88131
|
+
"summary": "Open a file",
|
|
87166
88132
|
"tags": [
|
|
87167
88133
|
"Files"
|
|
87168
88134
|
]
|
|
87169
88135
|
}
|
|
87170
88136
|
},
|
|
87171
|
-
"/v1/files/{id}/
|
|
87172
|
-
"
|
|
87173
|
-
"description": "
|
|
87174
|
-
"operationId": "
|
|
88137
|
+
"/v1/files/{id}/database": {
|
|
88138
|
+
"get": {
|
|
88139
|
+
"description": "For a SQLite database in your files library (`kind: \"sqlite\"`): its tables with their columns and row counts, views, indexes and triggers, for its current revision. You need any role on the file. Read now if it has not been yet. A file that is not a database answers `409 not_a_database`; a protected one `403 protected_not_enabled`. Free.",
|
|
88140
|
+
"operationId": "getFileDatabase",
|
|
87175
88141
|
"parameters": [
|
|
87176
88142
|
{
|
|
87177
88143
|
"description": "The file's id.",
|
|
@@ -87186,54 +88152,16 @@
|
|
|
87186
88152
|
}
|
|
87187
88153
|
}
|
|
87188
88154
|
],
|
|
87189
|
-
"requestBody": {
|
|
87190
|
-
"content": {
|
|
87191
|
-
"application/json": {
|
|
87192
|
-
"schema": {
|
|
87193
|
-
"$ref": "#/components/schemas/FileAgentApprovalCreate"
|
|
87194
|
-
}
|
|
87195
|
-
}
|
|
87196
|
-
},
|
|
87197
|
-
"required": true
|
|
87198
|
-
},
|
|
87199
88155
|
"responses": {
|
|
87200
|
-
"
|
|
88156
|
+
"200": {
|
|
87201
88157
|
"content": {
|
|
87202
88158
|
"application/json": {
|
|
87203
88159
|
"schema": {
|
|
87204
|
-
"
|
|
87205
|
-
"data": {
|
|
87206
|
-
"properties": {
|
|
87207
|
-
"approvedAt": {
|
|
87208
|
-
"type": "string"
|
|
87209
|
-
},
|
|
87210
|
-
"chatId": {
|
|
87211
|
-
"type": "string"
|
|
87212
|
-
},
|
|
87213
|
-
"fileId": {
|
|
87214
|
-
"type": "string"
|
|
87215
|
-
},
|
|
87216
|
-
"userId": {
|
|
87217
|
-
"type": "string"
|
|
87218
|
-
}
|
|
87219
|
-
},
|
|
87220
|
-
"required": [
|
|
87221
|
-
"fileId",
|
|
87222
|
-
"chatId",
|
|
87223
|
-
"userId",
|
|
87224
|
-
"approvedAt"
|
|
87225
|
-
],
|
|
87226
|
-
"type": "object"
|
|
87227
|
-
}
|
|
87228
|
-
},
|
|
87229
|
-
"required": [
|
|
87230
|
-
"data"
|
|
87231
|
-
],
|
|
87232
|
-
"type": "object"
|
|
88160
|
+
"$ref": "#/components/schemas/FileDatabaseResult"
|
|
87233
88161
|
}
|
|
87234
88162
|
}
|
|
87235
88163
|
},
|
|
87236
|
-
"description": "
|
|
88164
|
+
"description": "The database"
|
|
87237
88165
|
},
|
|
87238
88166
|
"400": {
|
|
87239
88167
|
"content": {
|
|
@@ -87316,16 +88244,16 @@
|
|
|
87316
88244
|
"description": "Storage or the access log unavailable"
|
|
87317
88245
|
}
|
|
87318
88246
|
},
|
|
87319
|
-
"summary": "
|
|
88247
|
+
"summary": "A database file's tables",
|
|
87320
88248
|
"tags": [
|
|
87321
88249
|
"Files"
|
|
87322
88250
|
]
|
|
87323
88251
|
}
|
|
87324
88252
|
},
|
|
87325
|
-
"/v1/files/{id}/
|
|
88253
|
+
"/v1/files/{id}/database/query": {
|
|
87326
88254
|
"post": {
|
|
87327
|
-
"description": "
|
|
87328
|
-
"operationId": "
|
|
88255
|
+
"description": "Run ONE read-only statement (`SELECT`, `WITH … SELECT` or `VALUES`) on a SQLite database in your files library, with optional `params`. You need any role on the file. The database is opened read-only: nothing can change it, and its triggers never run. At most `maxRows` rows (default 500, up to 5,000; `truncated` says there were more), and 5 seconds. ATTACH, PRAGMA, extension loading and file functions are refused (`400 sql_not_allowed`); an error in the statement is `400 sql_error` with what to fix; a statement that runs too long is `422 timeout`. Free.",
|
|
88256
|
+
"operationId": "queryFileDatabase",
|
|
87329
88257
|
"parameters": [
|
|
87330
88258
|
{
|
|
87331
88259
|
"description": "The file's id.",
|
|
@@ -87340,42 +88268,26 @@
|
|
|
87340
88268
|
}
|
|
87341
88269
|
}
|
|
87342
88270
|
],
|
|
87343
|
-
"
|
|
87344
|
-
"
|
|
87345
|
-
"
|
|
87346
|
-
"
|
|
87347
|
-
"
|
|
87348
|
-
"properties": {
|
|
87349
|
-
"data": {
|
|
87350
|
-
"$ref": "#/components/schemas/File"
|
|
87351
|
-
}
|
|
87352
|
-
},
|
|
87353
|
-
"required": [
|
|
87354
|
-
"data"
|
|
87355
|
-
],
|
|
87356
|
-
"type": "object"
|
|
87357
|
-
}
|
|
88271
|
+
"requestBody": {
|
|
88272
|
+
"content": {
|
|
88273
|
+
"application/json": {
|
|
88274
|
+
"schema": {
|
|
88275
|
+
"$ref": "#/components/schemas/FileDatabaseQuery"
|
|
87358
88276
|
}
|
|
87359
|
-
}
|
|
87360
|
-
"description": "The file is ready"
|
|
88277
|
+
}
|
|
87361
88278
|
},
|
|
87362
|
-
"
|
|
88279
|
+
"required": true
|
|
88280
|
+
},
|
|
88281
|
+
"responses": {
|
|
88282
|
+
"200": {
|
|
87363
88283
|
"content": {
|
|
87364
88284
|
"application/json": {
|
|
87365
88285
|
"schema": {
|
|
87366
|
-
"
|
|
87367
|
-
"data": {
|
|
87368
|
-
"$ref": "#/components/schemas/File"
|
|
87369
|
-
}
|
|
87370
|
-
},
|
|
87371
|
-
"required": [
|
|
87372
|
-
"data"
|
|
87373
|
-
],
|
|
87374
|
-
"type": "object"
|
|
88286
|
+
"$ref": "#/components/schemas/FileDatabaseQueryResult"
|
|
87375
88287
|
}
|
|
87376
88288
|
}
|
|
87377
88289
|
},
|
|
87378
|
-
"description": "The
|
|
88290
|
+
"description": "The rows"
|
|
87379
88291
|
},
|
|
87380
88292
|
"400": {
|
|
87381
88293
|
"content": {
|
|
@@ -87458,16 +88370,16 @@
|
|
|
87458
88370
|
"description": "Storage or the access log unavailable"
|
|
87459
88371
|
}
|
|
87460
88372
|
},
|
|
87461
|
-
"summary": "
|
|
88373
|
+
"summary": "Run a read-only query on a database file",
|
|
87462
88374
|
"tags": [
|
|
87463
88375
|
"Files"
|
|
87464
88376
|
]
|
|
87465
88377
|
}
|
|
87466
88378
|
},
|
|
87467
|
-
"/v1/files/{id}/
|
|
87468
|
-
"
|
|
87469
|
-
"description": "
|
|
87470
|
-
"operationId": "
|
|
88379
|
+
"/v1/files/{id}/database/write": {
|
|
88380
|
+
"post": {
|
|
88381
|
+
"description": "Run a batch of statements on a SQLite database in your files library, in ONE transaction, and save the result as the file's next revision. You need to own the file or be able to edit it. Allowed: CREATE / ALTER / DROP of tables, indexes, views and triggers, and INSERT, REPLACE, UPDATE, DELETE (and SELECT, WITH, RETURNING). Refused, anywhere in a statement or a trigger: ATTACH, DETACH, PRAGMA, VACUUM, transaction statements, virtual and temporary tables, extension loading and file functions (`400 sql_not_allowed`). The database's own triggers run. If any statement fails (`400 sql_error`, or `422 timeout` past 8 seconds, or `422 database_too_large` past 100 MB), nothing is kept. Pass `expectRevision` to write only if nobody saved a newer revision since you read it; whenever someone did, the answer is `409 revision_conflict` with `latestRevision`. Every write is a revision on the file and on its access log. Tables loaded into Studio from the database are read again. Free.",
|
|
88382
|
+
"operationId": "writeFileDatabase",
|
|
87471
88383
|
"parameters": [
|
|
87472
88384
|
{
|
|
87473
88385
|
"description": "The file's id.",
|
|
@@ -87480,82 +88392,28 @@
|
|
|
87480
88392
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
87481
88393
|
"type": "string"
|
|
87482
88394
|
}
|
|
87483
|
-
},
|
|
87484
|
-
{
|
|
87485
|
-
"in": "query",
|
|
87486
|
-
"name": "disposition",
|
|
87487
|
-
"required": false,
|
|
87488
|
-
"schema": {
|
|
87489
|
-
"default": "attachment",
|
|
87490
|
-
"enum": [
|
|
87491
|
-
"inline",
|
|
87492
|
-
"attachment"
|
|
87493
|
-
],
|
|
87494
|
-
"type": "string"
|
|
87495
|
-
}
|
|
87496
|
-
},
|
|
87497
|
-
{
|
|
87498
|
-
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
87499
|
-
"in": "query",
|
|
87500
|
-
"name": "redirect",
|
|
87501
|
-
"required": false,
|
|
87502
|
-
"schema": {
|
|
87503
|
-
"default": "true",
|
|
87504
|
-
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
87505
|
-
"enum": [
|
|
87506
|
-
"true",
|
|
87507
|
-
"false"
|
|
87508
|
-
],
|
|
87509
|
-
"type": "string"
|
|
87510
|
-
}
|
|
87511
88395
|
}
|
|
87512
88396
|
],
|
|
88397
|
+
"requestBody": {
|
|
88398
|
+
"content": {
|
|
88399
|
+
"application/json": {
|
|
88400
|
+
"schema": {
|
|
88401
|
+
"$ref": "#/components/schemas/FileDatabaseWrite"
|
|
88402
|
+
}
|
|
88403
|
+
}
|
|
88404
|
+
},
|
|
88405
|
+
"required": true
|
|
88406
|
+
},
|
|
87513
88407
|
"responses": {
|
|
87514
88408
|
"200": {
|
|
87515
88409
|
"content": {
|
|
87516
88410
|
"application/json": {
|
|
87517
88411
|
"schema": {
|
|
87518
|
-
"
|
|
87519
|
-
"data": {
|
|
87520
|
-
"properties": {
|
|
87521
|
-
"expiresAt": {
|
|
87522
|
-
"type": "string"
|
|
87523
|
-
},
|
|
87524
|
-
"oneTime": {
|
|
87525
|
-
"description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
|
|
87526
|
-
"type": "boolean"
|
|
87527
|
-
},
|
|
87528
|
-
"url": {
|
|
87529
|
-
"type": "string"
|
|
87530
|
-
}
|
|
87531
|
-
},
|
|
87532
|
-
"required": [
|
|
87533
|
-
"url",
|
|
87534
|
-
"expiresAt",
|
|
87535
|
-
"oneTime"
|
|
87536
|
-
],
|
|
87537
|
-
"type": "object"
|
|
87538
|
-
}
|
|
87539
|
-
},
|
|
87540
|
-
"required": [
|
|
87541
|
-
"data"
|
|
87542
|
-
],
|
|
87543
|
-
"type": "object"
|
|
88412
|
+
"$ref": "#/components/schemas/FileDatabaseWriteResult"
|
|
87544
88413
|
}
|
|
87545
88414
|
}
|
|
87546
88415
|
},
|
|
87547
|
-
"description": "
|
|
87548
|
-
},
|
|
87549
|
-
"302": {
|
|
87550
|
-
"description": "Redirect to the download link",
|
|
87551
|
-
"headers": {
|
|
87552
|
-
"location": {
|
|
87553
|
-
"required": true,
|
|
87554
|
-
"schema": {
|
|
87555
|
-
"type": "string"
|
|
87556
|
-
}
|
|
87557
|
-
}
|
|
87558
|
-
}
|
|
88416
|
+
"description": "Saved as the next revision"
|
|
87559
88417
|
},
|
|
87560
88418
|
"400": {
|
|
87561
88419
|
"content": {
|
|
@@ -87601,11 +88459,11 @@
|
|
|
87601
88459
|
"content": {
|
|
87602
88460
|
"application/json": {
|
|
87603
88461
|
"schema": {
|
|
87604
|
-
"$ref": "#/components/schemas/
|
|
88462
|
+
"$ref": "#/components/schemas/FileDatabaseConflict"
|
|
87605
88463
|
}
|
|
87606
88464
|
}
|
|
87607
88465
|
},
|
|
87608
|
-
"description": "
|
|
88466
|
+
"description": "`revision_conflict` (`latestRevision`), `revision_pending`, `not_a_database` or `not_ready`"
|
|
87609
88467
|
},
|
|
87610
88468
|
"422": {
|
|
87611
88469
|
"content": {
|
|
@@ -87638,7 +88496,7 @@
|
|
|
87638
88496
|
"description": "Storage or the access log unavailable"
|
|
87639
88497
|
}
|
|
87640
88498
|
},
|
|
87641
|
-
"summary": "
|
|
88499
|
+
"summary": "Change a database file",
|
|
87642
88500
|
"tags": [
|
|
87643
88501
|
"Files"
|
|
87644
88502
|
]
|
|
@@ -103575,7 +104433,7 @@
|
|
|
103575
104433
|
}
|
|
103576
104434
|
}
|
|
103577
104435
|
},
|
|
103578
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104436
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103579
104437
|
}
|
|
103580
104438
|
},
|
|
103581
104439
|
"summary": "Your organization's models",
|
|
@@ -103677,6 +104535,16 @@
|
|
|
103677
104535
|
},
|
|
103678
104536
|
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
103679
104537
|
},
|
|
104538
|
+
"501": {
|
|
104539
|
+
"content": {
|
|
104540
|
+
"application/json": {
|
|
104541
|
+
"schema": {
|
|
104542
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
104543
|
+
}
|
|
104544
|
+
}
|
|
104545
|
+
},
|
|
104546
|
+
"description": "`models_disabled` — model training is turned off in this environment, so nothing can be trained or refreshed here. A setting, not an outage: do not retry. Reading models and querying their scores still work."
|
|
104547
|
+
},
|
|
103680
104548
|
"503": {
|
|
103681
104549
|
"content": {
|
|
103682
104550
|
"application/json": {
|
|
@@ -103685,7 +104553,7 @@
|
|
|
103685
104553
|
}
|
|
103686
104554
|
}
|
|
103687
104555
|
},
|
|
103688
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104556
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103689
104557
|
}
|
|
103690
104558
|
},
|
|
103691
104559
|
"summary": "Create a prediction model and start training it",
|
|
@@ -103787,7 +104655,7 @@
|
|
|
103787
104655
|
}
|
|
103788
104656
|
}
|
|
103789
104657
|
},
|
|
103790
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104658
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103791
104659
|
}
|
|
103792
104660
|
},
|
|
103793
104661
|
"summary": "What a prediction model can be built from",
|
|
@@ -103999,7 +104867,7 @@
|
|
|
103999
104867
|
}
|
|
104000
104868
|
}
|
|
104001
104869
|
},
|
|
104002
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104870
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
104003
104871
|
}
|
|
104004
104872
|
},
|
|
104005
104873
|
"summary": "Delete a model, its report card and its scores, permanently",
|
|
@@ -104137,7 +105005,7 @@
|
|
|
104137
105005
|
}
|
|
104138
105006
|
}
|
|
104139
105007
|
},
|
|
104140
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
105008
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
104141
105009
|
}
|
|
104142
105010
|
},
|
|
104143
105011
|
"summary": "A model: its status and its report card",
|
|
@@ -104265,6 +105133,16 @@
|
|
|
104265
105133
|
},
|
|
104266
105134
|
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
104267
105135
|
},
|
|
105136
|
+
"501": {
|
|
105137
|
+
"content": {
|
|
105138
|
+
"application/json": {
|
|
105139
|
+
"schema": {
|
|
105140
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
105141
|
+
}
|
|
105142
|
+
}
|
|
105143
|
+
},
|
|
105144
|
+
"description": "`models_disabled` — model training is turned off in this environment, so nothing can be trained or refreshed here. A setting, not an outage: do not retry. Reading models and querying their scores still work."
|
|
105145
|
+
},
|
|
104268
105146
|
"503": {
|
|
104269
105147
|
"content": {
|
|
104270
105148
|
"application/json": {
|
|
@@ -104273,7 +105151,7 @@
|
|
|
104273
105151
|
}
|
|
104274
105152
|
}
|
|
104275
105153
|
},
|
|
104276
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
105154
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
104277
105155
|
}
|
|
104278
105156
|
},
|
|
104279
105157
|
"summary": "Refresh a model's scores with the latest data",
|