From 6dbeff01113a75879ea007d181b01de159c0b17c Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 1 May 2025 13:20:29 +0530 Subject: [PATCH] update: specs for console sdk. --- app/config/specs/open-api3-latest-client.json | 27 +++++++++++++------ .../specs/open-api3-latest-console.json | 27 +++++++++++++------ app/config/specs/open-api3-latest-server.json | 27 +++++++++++++------ app/config/specs/swagger2-latest-client.json | 27 +++++++++++++------ app/config/specs/swagger2-latest-console.json | 27 +++++++++++++------ app/config/specs/swagger2-latest-server.json | 27 +++++++++++++------ 6 files changed, 114 insertions(+), 48 deletions(-) diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index a539e26f03..ed31be27a5 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -9483,34 +9483,45 @@ "description": "Token creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, + "$permissions": { + "type": "array", + "description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "items": { + "type": "string" + }, + "x-example": [ + "read(\"any\")" + ] + }, "resourceId": { "type": "string", "description": "Resource ID.", "x-example": "5e5ea5c168bb8:5e5ea5c168bb8" }, - "resourceInternalId": { - "type": "string", - "description": "File ID.", - "x-example": "1:1" - }, "resourceType": { "type": "string", "description": "Resource type.", - "x-example": "file" + "x-example": "files" }, "expire": { "type": "string", "description": "Token expiration date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "accessedAt": { + "type": "string", + "description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ "$id", "$createdAt", + "$permissions", "resourceId", - "resourceInternalId", "resourceType", - "expire" + "expire", + "accessedAt" ] }, "team": { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 4b9334cd68..5354c2f9de 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -38045,34 +38045,45 @@ "description": "Token creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, + "$permissions": { + "type": "array", + "description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "items": { + "type": "string" + }, + "x-example": [ + "read(\"any\")" + ] + }, "resourceId": { "type": "string", "description": "Resource ID.", "x-example": "5e5ea5c168bb8:5e5ea5c168bb8" }, - "resourceInternalId": { - "type": "string", - "description": "File ID.", - "x-example": "1:1" - }, "resourceType": { "type": "string", "description": "Resource type.", - "x-example": "file" + "x-example": "files" }, "expire": { "type": "string", "description": "Token expiration date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "accessedAt": { + "type": "string", + "description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ "$id", "$createdAt", + "$permissions", "resourceId", - "resourceInternalId", "resourceType", - "expire" + "expire", + "accessedAt" ] }, "team": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index c5e83e4c0b..19b94378c2 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -28004,34 +28004,45 @@ "description": "Token creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, + "$permissions": { + "type": "array", + "description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "items": { + "type": "string" + }, + "x-example": [ + "read(\"any\")" + ] + }, "resourceId": { "type": "string", "description": "Resource ID.", "x-example": "5e5ea5c168bb8:5e5ea5c168bb8" }, - "resourceInternalId": { - "type": "string", - "description": "File ID.", - "x-example": "1:1" - }, "resourceType": { "type": "string", "description": "Resource type.", - "x-example": "file" + "x-example": "files" }, "expire": { "type": "string", "description": "Token expiration date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "accessedAt": { + "type": "string", + "description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ "$id", "$createdAt", + "$permissions", "resourceId", - "resourceInternalId", "resourceType", - "expire" + "expire", + "accessedAt" ] }, "team": { diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index dfe5820976..e24eb83999 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -9586,34 +9586,45 @@ "description": "Token creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, + "$permissions": { + "type": "array", + "description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "items": { + "type": "string" + }, + "x-example": [ + "read(\"any\")" + ] + }, "resourceId": { "type": "string", "description": "Resource ID.", "x-example": "5e5ea5c168bb8:5e5ea5c168bb8" }, - "resourceInternalId": { - "type": "string", - "description": "File ID.", - "x-example": "1:1" - }, "resourceType": { "type": "string", "description": "Resource type.", - "x-example": "file" + "x-example": "files" }, "expire": { "type": "string", "description": "Token expiration date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "accessedAt": { + "type": "string", + "description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ "$id", "$createdAt", + "$permissions", "resourceId", - "resourceInternalId", "resourceType", - "expire" + "expire", + "accessedAt" ] }, "team": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 33e12bbef5..3fd625b154 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -38290,34 +38290,45 @@ "description": "Token creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, + "$permissions": { + "type": "array", + "description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "items": { + "type": "string" + }, + "x-example": [ + "read(\"any\")" + ] + }, "resourceId": { "type": "string", "description": "Resource ID.", "x-example": "5e5ea5c168bb8:5e5ea5c168bb8" }, - "resourceInternalId": { - "type": "string", - "description": "File ID.", - "x-example": "1:1" - }, "resourceType": { "type": "string", "description": "Resource type.", - "x-example": "file" + "x-example": "files" }, "expire": { "type": "string", "description": "Token expiration date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "accessedAt": { + "type": "string", + "description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ "$id", "$createdAt", + "$permissions", "resourceId", - "resourceInternalId", "resourceType", - "expire" + "expire", + "accessedAt" ] }, "team": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index dd44d76a76..61a75e3dec 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -28318,34 +28318,45 @@ "description": "Token creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, + "$permissions": { + "type": "array", + "description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "items": { + "type": "string" + }, + "x-example": [ + "read(\"any\")" + ] + }, "resourceId": { "type": "string", "description": "Resource ID.", "x-example": "5e5ea5c168bb8:5e5ea5c168bb8" }, - "resourceInternalId": { - "type": "string", - "description": "File ID.", - "x-example": "1:1" - }, "resourceType": { "type": "string", "description": "Resource type.", - "x-example": "file" + "x-example": "files" }, "expire": { "type": "string", "description": "Token expiration date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "accessedAt": { + "type": "string", + "description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ "$id", "$createdAt", + "$permissions", "resourceId", - "resourceInternalId", "resourceType", - "expire" + "expire", + "accessedAt" ] }, "team": {