From dbb44bde396b1201ce6db6e16ea50bb769fd84dc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 02:30:53 +0000 Subject: [PATCH 1/2] Update from https://github.com/glideapps/glide/commit/0f2a92d8c9c41dfc21796c7770aa7af931c84487 --- openapi/swagger.json | 596 ++++++++++++++++++++++++++++++------------- 1 file changed, 415 insertions(+), 181 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index 4bf91f6..2cf4494 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -140,39 +140,79 @@ "type": "object", "properties": { "data": { - "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" + "anyOf": [ + { + "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." + } }, - "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" - ] + "required": [ + "rowIDs" + ], + "additionalProperties": false }, - "linkedAppIDs": { + { "type": "array", "items": { - "type": "string" - }, - "description": "An array of appIDs which were successfully linked." + "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": [ + "rowIDs" + ], + "additionalProperties": false + } } - }, - "required": [ - "tableID", - "rowIDs" - ], - "additionalProperties": false + ] } }, "required": [ @@ -334,92 +374,57 @@ "schema": { "anyOf": [ { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the table, e.g., `Invoices`", - "example": "Invoices" - }, - "schema": { + "anyOf": [ + { "type": "object", "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", - "example": "fullName" - }, - "displayName": { - "type": "string", - "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", - "example": "Full Name" - }, - "type": { - "anyOf": [ - { + "name": { + "type": "string", + "description": "Name of the table, e.g., `Invoices`", + "example": "Invoices" + }, + "schema": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "string", - "enum": [ - "string", - "uri", - "imageURI", - "audioURI", - "markdown", - "phoneNumber", - "emailAddress", - "emoji", - "date", - "time", - "dateTime", - "duration", - "number", - "boolean" - ] + "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", + "example": "fullName" }, - { + "displayName": { + "type": "string", + "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", + "example": "Full Name" + }, + "type": { "anyOf": [ { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "string", - "uri", - "imageURI", - "audioURI", - "markdown", - "phoneNumber", - "emailAddress", - "emoji", - "date", - "time", - "dateTime", - "duration", - "number", - "boolean" - ] - } - }, - "required": [ - "kind" - ], - "additionalProperties": false + "type": "string", + "enum": [ + "string", + "uri", + "imageURI", + "audioURI", + "markdown", + "phoneNumber", + "emailAddress", + "emoji", + "date", + "time", + "dateTime", + "duration", + "number", + "boolean" + ] }, { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "array" - ] - }, - "items": { + "anyOf": [ + { "type": "object", "properties": { "kind": { @@ -446,98 +451,151 @@ "kind" ], "additionalProperties": false + }, + { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "array" + ] + }, + "items": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "string", + "uri", + "imageURI", + "audioURI", + "markdown", + "phoneNumber", + "emailAddress", + "emoji", + "date", + "time", + "dateTime", + "duration", + "number", + "boolean" + ] + } + }, + "required": [ + "kind" + ], + "additionalProperties": false + } + }, + "required": [ + "kind", + "items" + ], + "additionalProperties": false } - }, - "required": [ - "kind", - "items" - ], - "additionalProperties": false + ] } - ] + ], + "description": "The type of the column." } + }, + "required": [ + "id", + "type" ], - "description": "The type of the column." + "additionalProperties": false + }, + "description": "A collection of column definitions, in the order that they are to be displayed in the table." + } + }, + "required": [ + "columns" + ], + "additionalProperties": false, + "description": "The schema of the table as a collection of column definitions. If this is not provided, the schema will be inferred from the data.", + "example": { + "columns": [ + { + "id": "fullName", + "displayName": "Full Name", + "type": "string" + }, + { + "id": "invoiceDate", + "displayName": "Invoice Date", + "type": "dateTime" + }, + { + "id": "totalAmount", + "displayName": "Total", + "type": "number" + }, + { + "id": "amountPaid", + "displayName": "Paid", + "type": "number" } + ] + } + }, + "rows": { + "anyOf": [ + { + "$ref": "#/components/schemas/A_collection_of_row_objects" }, - "required": [ - "id", - "type" - ], - "additionalProperties": false + { + "type": "object", + "properties": { + "$stashID": { + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", + "description": "ID of the stash, e.g., `20240215-job32`", + "example": "20240215-job32" + } + }, + "required": [ + "$stashID" + ], + "additionalProperties": false, + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." + } + ] + }, + "appsToLink": { + "type": "array", + "items": { + "type": "string" }, - "description": "A collection of column definitions, in the order that they are to be displayed in the table." + "description": "An array of app IDs to link the new table to." } }, "required": [ - "columns" + "name", + "rows" ], - "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions. If this is not provided, the schema will be inferred from the data.", - "example": { - "columns": [ - { - "id": "fullName", - "displayName": "Full Name", - "type": "string" - }, - { - "id": "invoiceDate", - "displayName": "Invoice Date", - "type": "dateTime" - }, - { - "id": "totalAmount", - "displayName": "Total", - "type": "number" - }, - { - "id": "amountPaid", - "displayName": "Paid", - "type": "number" - } - ] - } - }, - "rows": { - "anyOf": [ - { - "$ref": "#/components/schemas/A_collection_of_row_objects" - }, - { - "type": "object", - "properties": { - "$stashID": { - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", - "description": "ID of the stash, e.g., `20240215-job32`", - "example": "20240215-job32" - } - }, - "required": [ - "$stashID" - ], - "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." - } - ] + "additionalProperties": false }, - "appsToLink": { - "type": "array", - "items": { - "type": "string" - }, - "description": "An array of app IDs to link the new table to." + { + "$ref": "#/components/schemas/A_collection_of_row_objects" + } + ] + }, + { + "type": "object", + "properties": { + "$url": { + "type": "string", + "description": "URL to a CSV, TSV, or Excel file", + "example": "https://example.com/file.xlsx" } }, "required": [ - "name", - "rows" + "$url" ], "additionalProperties": false - }, - { - "$ref": "#/components/schemas/A_collection_of_row_objects" } ] } @@ -1602,6 +1660,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 20f1792381021b0547d1683921fa3d503ec5549e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 8 Jun 2025 16:53:30 +0000 Subject: [PATCH 2/2] Update from https://github.com/glideapps/glide/commit/dd9547c57ce921d28424442a117511dd3418b50b --- openapi/swagger.json | 420 +++++++++++++++++++------------------------ 1 file changed, 181 insertions(+), 239 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index 2cf4494..4110b18 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -140,79 +140,39 @@ "type": "object", "properties": { "data": { - "anyOf": [ - { - "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." - } + "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" }, - "required": [ - "rowIDs" - ], - "additionalProperties": false + "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": "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": [ - "rowIDs" - ], - "additionalProperties": false - } + "type": "string" + }, + "description": "An array of appIDs which were successfully linked." } - ] + }, + "required": [ + "tableID", + "rowIDs" + ], + "additionalProperties": false } }, "required": [ @@ -374,57 +334,92 @@ "schema": { "anyOf": [ { - "anyOf": [ - { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the table, e.g., `Invoices`", + "example": "Invoices" + }, + "schema": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "Name of the table, e.g., `Invoices`", - "example": "Invoices" - }, - "schema": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", - "example": "fullName" - }, - "displayName": { + "columns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", + "example": "fullName" + }, + "displayName": { + "type": "string", + "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", + "example": "Full Name" + }, + "type": { + "anyOf": [ + { "type": "string", - "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", - "example": "Full Name" + "enum": [ + "string", + "uri", + "imageURI", + "audioURI", + "markdown", + "phoneNumber", + "emailAddress", + "emoji", + "date", + "time", + "dateTime", + "duration", + "number", + "boolean" + ] }, - "type": { + { "anyOf": [ { - "type": "string", - "enum": [ - "string", - "uri", - "imageURI", - "audioURI", - "markdown", - "phoneNumber", - "emailAddress", - "emoji", - "date", - "time", - "dateTime", - "duration", - "number", - "boolean" - ] + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "string", + "uri", + "imageURI", + "audioURI", + "markdown", + "phoneNumber", + "emailAddress", + "emoji", + "date", + "time", + "dateTime", + "duration", + "number", + "boolean" + ] + } + }, + "required": [ + "kind" + ], + "additionalProperties": false }, { - "anyOf": [ - { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "array" + ] + }, + "items": { "type": "object", "properties": { "kind": { @@ -451,151 +446,98 @@ "kind" ], "additionalProperties": false - }, - { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "array" - ] - }, - "items": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "string", - "uri", - "imageURI", - "audioURI", - "markdown", - "phoneNumber", - "emailAddress", - "emoji", - "date", - "time", - "dateTime", - "duration", - "number", - "boolean" - ] - } - }, - "required": [ - "kind" - ], - "additionalProperties": false - } - }, - "required": [ - "kind", - "items" - ], - "additionalProperties": false } - ] + }, + "required": [ + "kind", + "items" + ], + "additionalProperties": false } - ], - "description": "The type of the column." + ] } - }, - "required": [ - "id", - "type" ], - "additionalProperties": false - }, - "description": "A collection of column definitions, in the order that they are to be displayed in the table." - } - }, - "required": [ - "columns" - ], - "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions. If this is not provided, the schema will be inferred from the data.", - "example": { - "columns": [ - { - "id": "fullName", - "displayName": "Full Name", - "type": "string" - }, - { - "id": "invoiceDate", - "displayName": "Invoice Date", - "type": "dateTime" - }, - { - "id": "totalAmount", - "displayName": "Total", - "type": "number" - }, - { - "id": "amountPaid", - "displayName": "Paid", - "type": "number" + "description": "The type of the column." } - ] - } - }, - "rows": { - "anyOf": [ - { - "$ref": "#/components/schemas/A_collection_of_row_objects" }, - { - "type": "object", - "properties": { - "$stashID": { - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", - "description": "ID of the stash, e.g., `20240215-job32`", - "example": "20240215-job32" - } - }, - "required": [ - "$stashID" - ], - "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." - } - ] - }, - "appsToLink": { - "type": "array", - "items": { - "type": "string" + "required": [ + "id", + "type" + ], + "additionalProperties": false }, - "description": "An array of app IDs to link the new table to." + "description": "A collection of column definitions, in the order that they are to be displayed in the table." } }, "required": [ - "name", - "rows" + "columns" ], - "additionalProperties": false + "additionalProperties": false, + "description": "The schema of the table as a collection of column definitions. If this is not provided, the schema will be inferred from the data.", + "example": { + "columns": [ + { + "id": "fullName", + "displayName": "Full Name", + "type": "string" + }, + { + "id": "invoiceDate", + "displayName": "Invoice Date", + "type": "dateTime" + }, + { + "id": "totalAmount", + "displayName": "Total", + "type": "number" + }, + { + "id": "amountPaid", + "displayName": "Paid", + "type": "number" + } + ] + } }, - { - "$ref": "#/components/schemas/A_collection_of_row_objects" - } - ] - }, - { - "type": "object", - "properties": { - "$url": { - "type": "string", - "description": "URL to a CSV, TSV, or Excel file", - "example": "https://example.com/file.xlsx" + "rows": { + "anyOf": [ + { + "$ref": "#/components/schemas/A_collection_of_row_objects" + }, + { + "type": "object", + "properties": { + "$stashID": { + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", + "description": "ID of the stash, e.g., `20240215-job32`", + "example": "20240215-job32" + } + }, + "required": [ + "$stashID" + ], + "additionalProperties": false, + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." + } + ] + }, + "appsToLink": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of app IDs to link the new table to." } }, "required": [ - "$url" + "name", + "rows" ], "additionalProperties": false + }, + { + "$ref": "#/components/schemas/A_collection_of_row_objects" } ] }