From 4758823e8c4df558a6c36020edfdbf46fed1f853 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 14:05:47 +0000 Subject: [PATCH 1/2] Update from https://github.com/glideapps/glide/commit/bd4d69b168edf1781fcef9cb5e4e45052838b114 --- openapi/swagger.json | 176 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) diff --git a/openapi/swagger.json b/openapi/swagger.json index 4bf91f6..4110b18 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -1602,6 +1602,182 @@ } }, "/tables/{tableID}/rows/{rowID}": { + "get": { + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {}, + "description": "A row object conforming to the schema of the table, where keys are the column IDs and values are the column values:\n\n```json\n{\n\t\"fullName\": \"Alex Bard\",\n\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\"totalAmount\": 34.50,\n\t\"amountPaid\": 0\n}\n```", + "example": { + "fullName": "Alex Bard", + "invoiceDate": "2024-07-29T14:04:15.561Z", + "totalAmount": 34.5, + "amountPaid": 0 + } + }, + "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", + "example": [ + { + "fullName": "Alex Bard", + "invoiceDate": "2024-07-29T14:04:15.561Z", + "totalAmount": 34.5, + "amountPaid": 0 + }, + { + "fullName": "Alicia Hines", + "invoiceDate": "2023-06-15T10:30:00.000Z", + "totalAmount": 50.75, + "amountPaid": 20 + } + ] + } + }, + "required": [ + "data" + ], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + }, + "402": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "payment_required" + ] + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "table_not_found", + "table_not_big_table", + "row_not_found" + ] + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + } + }, + "parameters": [ + { + "name": "tableID", + "in": "path", + "schema": { + "type": "string", + "description": "ID of the table, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`", + "example": "2a1bad8b-cf7c-44437-b8c1-e3782df6" + }, + "required": true + }, + { + "name": "rowID", + "in": "path", + "schema": { + "type": "string", + "description": "ID of the row, e.g., `zcJWnyI8Tbam21V34K8MNA`", + "example": "zcJWnyI8Tbam21V34K8MNA" + }, + "required": true + } + ], + "description": "Gets a single row from a Big Table by row ID" + }, "patch": { "responses": { "200": { From 84a0269bf30ca12ce61c86c7a0c3e4afc515961f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 23:19:41 +0000 Subject: [PATCH 2/2] Update from https://github.com/glideapps/glide/commit/f9cd62a449dba7aba87edfc47f68f2283f356e20 --- openapi/swagger.json | 236 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 236 insertions(+) diff --git a/openapi/swagger.json b/openapi/swagger.json index 4110b18..35a740d 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -561,6 +561,242 @@ "description": "Creates a new Big Table" } }, + "/tables/import": { + "post": { + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "tableID": { + "type": "string", + "description": "ID of the table, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`", + "example": "2a1bad8b-cf7c-44437-b8c1-e3782df6" + }, + "rowIDs": { + "type": "array", + "items": { + "type": "string", + "description": "ID of the row, e.g., `zcJWnyI8Tbam21V34K8MNA`", + "example": "zcJWnyI8Tbam21V34K8MNA" + }, + "description": "Row IDs of added rows, returned in the same order as the input rows, e.g., \n\n```json\n[\n\t\"zcJWnyI8Tbam21V34K8MNA\",\n\t\"93a19-cf7c-44437-b8c1-e9acbbb\"\n]\n```", + "example": [ + "zcJWnyI8Tbam21V34K8MNA", + "93a19-cf7c-44437-b8c1-e9acbbb" + ] + }, + "linkedAppIDs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of appIDs which were successfully linked." + } + }, + "required": [ + "tableID", + "rowIDs" + ], + "additionalProperties": false + } + } + }, + "required": [ + "data" + ], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + }, + "402": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "payment_required" + ] + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + }, + "422": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "column_id_reserved", + "column_id_not_unique", + "column_has_invalid_value", + "column_id_not_found" + ] + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + } + }, + "parameters": [ + { + "name": "appsToLink", + "in": "query", + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of app IDs to link the new table to." + }, + "required": false + }, + { + "name": "onSchemaError", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "abort", + "dropColumns", + "updateSchema" + ], + "description": "The action to take when the passed data does not match the table schema:\n\n- `abort`: Abort the entire operation and return an error.\n- `dropColumns`: Ignore the data that caused the error, and do not import those columns in the affected rows.\n- `updateSchema`: Update the schema as needed to add any missing columns or widen the data types of existing columns, and then import the data from them.", + "example": "updateSchema" + }, + "required": false + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "fromUrl": { + "type": "string", + "format": "uri", + "description": "The url of the table to fetch from. Required when the name is not passed in the request body. It is an error to pass a name in both this query parameter and the request body." + }, + "appsToLink": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of app IDs to link the new table to." + } + }, + "required": [ + "fromUrl" + ], + "additionalProperties": false + } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" + } + } + } + }, + "description": "Creates a new Big Table from a URL" + } + }, "/tables/{tableID}": { "put": { "responses": {