diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index b57aea9ddc..3d51c714f7 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -14422,27 +14422,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -14458,25 +14469,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -14807,27 +14827,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -14843,25 +14874,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -15214,27 +15254,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -15250,25 +15301,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -24560,7 +24620,7 @@ "parameters": [ { "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, resourceId, resourceType, statusCounters, resourceData, errors", "required": false, "schema": { "type": "array", @@ -24671,7 +24731,10 @@ "file", "function", "deployment", - "environment-variable" + "environment-variable", + "site", + "site-deployment", + "site-variable" ], "x-enum-name": null, "x-enum-keys": [] @@ -24778,7 +24841,10 @@ "file", "function", "deployment", - "environment-variable" + "environment-variable", + "site", + "site-deployment", + "site-variable" ], "x-enum-name": null, "x-enum-keys": [] @@ -30460,12 +30526,12 @@ "x-example": "verification", "enum": [ "verification", - "magicsession", + "magicSession", "recovery", "invitation", - "mfachallenge", - "sessionalert", - "otpsession" + "mfaChallenge", + "sessionAlert", + "otpSession" ], "x-enum-name": "EmailTemplateType", "x-enum-keys": [] @@ -30685,12 +30751,12 @@ "x-example": "verification", "enum": [ "verification", - "magicsession", + "magicSession", "recovery", "invitation", - "mfachallenge", - "sessionalert", - "otpsession" + "mfaChallenge", + "sessionAlert", + "otpSession" ], "x-enum-name": "EmailTemplateType", "x-enum-keys": [] @@ -30952,12 +31018,12 @@ "x-example": "verification", "enum": [ "verification", - "magicsession", + "magicSession", "recovery", "invitation", - "mfachallenge", - "sessionalert", - "otpsession" + "mfaChallenge", + "sessionAlert", + "otpSession" ], "x-enum-name": "EmailTemplateType", "x-enum-keys": [] @@ -31245,7 +31311,7 @@ "verification", "login", "invitation", - "mfachallenge" + "mfaChallenge" ], "x-enum-name": "SmsTemplateType", "x-enum-keys": [] @@ -31535,7 +31601,7 @@ "verification", "login", "invitation", - "mfachallenge" + "mfaChallenge" ], "x-enum-name": "SmsTemplateType", "x-enum-keys": [] @@ -31840,7 +31906,7 @@ "verification", "login", "invitation", - "mfachallenge" + "mfaChallenge" ], "x-enum-name": "SmsTemplateType", "x-enum-keys": [] @@ -33318,27 +33384,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -33354,25 +33431,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -34005,27 +34091,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -34041,25 +34138,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -52962,6 +53068,18 @@ { "$ref": "#\/components\/schemas\/attributePolygon" }, + { + "$ref": "#\/components\/schemas\/attributeVarchar" + }, + { + "$ref": "#\/components\/schemas\/attributeText" + }, + { + "$ref": "#\/components\/schemas\/attributeMediumtext" + }, + { + "$ref": "#\/components\/schemas\/attributeLongtext" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -53072,6 +53190,18 @@ { "$ref": "#\/components\/schemas\/attributePolygon" }, + { + "$ref": "#\/components\/schemas\/attributeVarchar" + }, + { + "$ref": "#\/components\/schemas\/attributeText" + }, + { + "$ref": "#\/components\/schemas\/attributeMediumtext" + }, + { + "$ref": "#\/components\/schemas\/attributeLongtext" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -60494,6 +60624,11 @@ "vip" ] }, + "status": { + "type": "string", + "description": "Project status.", + "x-example": "active" + }, "authEmailPassword": { "type": "boolean", "description": "Email\/Password auth method status", @@ -60639,6 +60774,7 @@ "pingCount", "pingedAt", "labels", + "status", "authEmailPassword", "authUsersAuthMagicURL", "authEmailOtp", @@ -60710,6 +60846,7 @@ "labels": [ "vip" ], + "status": "active", "authEmailPassword": true, "authUsersAuthMagicURL": true, "authEmailOtp": true, diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 016d44fbc4..b15f065444 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -13458,27 +13458,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -13494,25 +13505,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -13927,27 +13947,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -13963,25 +13994,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -23491,27 +23531,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -23527,25 +23578,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -23918,27 +23978,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -23954,25 +24025,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -41008,6 +41088,18 @@ { "$ref": "#\/components\/schemas\/attributePolygon" }, + { + "$ref": "#\/components\/schemas\/attributeVarchar" + }, + { + "$ref": "#\/components\/schemas\/attributeText" + }, + { + "$ref": "#\/components\/schemas\/attributeMediumtext" + }, + { + "$ref": "#\/components\/schemas\/attributeLongtext" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -41118,6 +41210,18 @@ { "$ref": "#\/components\/schemas\/attributePolygon" }, + { + "$ref": "#\/components\/schemas\/attributeVarchar" + }, + { + "$ref": "#\/components\/schemas\/attributeText" + }, + { + "$ref": "#\/components\/schemas\/attributeMediumtext" + }, + { + "$ref": "#\/components\/schemas\/attributeLongtext" + }, { "$ref": "#\/components\/schemas\/attributeString" } diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 06673c7ad9..ce936d75b3 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -14361,27 +14361,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -14397,25 +14408,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -14760,27 +14780,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -14796,25 +14827,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -15154,27 +15194,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -15190,25 +15241,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -24662,7 +24722,7 @@ "parameters": [ { "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, resourceId, resourceType, statusCounters, resourceData, errors", "required": false, "type": "array", "collectionFormat": "multi", @@ -24772,7 +24832,10 @@ "file", "function", "deployment", - "environment-variable" + "environment-variable", + "site", + "site-deployment", + "site-variable" ], "x-enum-name": null, "x-enum-keys": [] @@ -24881,7 +24944,10 @@ "file", "function", "deployment", - "environment-variable" + "environment-variable", + "site", + "site-deployment", + "site-variable" ], "x-enum-name": null, "x-enum-keys": [] @@ -30563,12 +30629,12 @@ "x-example": "verification", "enum": [ "verification", - "magicsession", + "magicSession", "recovery", "invitation", - "mfachallenge", - "sessionalert", - "otpsession" + "mfaChallenge", + "sessionAlert", + "otpSession" ], "x-enum-name": "EmailTemplateType", "x-enum-keys": [], @@ -30784,12 +30850,12 @@ "x-example": "verification", "enum": [ "verification", - "magicsession", + "magicSession", "recovery", "invitation", - "mfachallenge", - "sessionalert", - "otpsession" + "mfaChallenge", + "sessionAlert", + "otpSession" ], "x-enum-name": "EmailTemplateType", "x-enum-keys": [], @@ -31050,12 +31116,12 @@ "x-example": "verification", "enum": [ "verification", - "magicsession", + "magicSession", "recovery", "invitation", - "mfachallenge", - "sessionalert", - "otpsession" + "mfaChallenge", + "sessionAlert", + "otpSession" ], "x-enum-name": "EmailTemplateType", "x-enum-keys": [], @@ -31337,7 +31403,7 @@ "verification", "login", "invitation", - "mfachallenge" + "mfaChallenge" ], "x-enum-name": "SmsTemplateType", "x-enum-keys": [], @@ -31623,7 +31689,7 @@ "verification", "login", "invitation", - "mfachallenge" + "mfaChallenge" ], "x-enum-name": "SmsTemplateType", "x-enum-keys": [], @@ -31923,7 +31989,7 @@ "verification", "login", "invitation", - "mfachallenge" + "mfaChallenge" ], "x-enum-name": "SmsTemplateType", "x-enum-keys": [], @@ -33419,27 +33485,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -33455,25 +33532,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -34109,27 +34195,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -34145,25 +34242,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -52773,6 +52879,18 @@ { "$ref": "#\/definitions\/attributePolygon" }, + { + "$ref": "#\/definitions\/attributeVarchar" + }, + { + "$ref": "#\/definitions\/attributeText" + }, + { + "$ref": "#\/definitions\/attributeMediumtext" + }, + { + "$ref": "#\/definitions\/attributeLongtext" + }, { "$ref": "#\/definitions\/attributeString" } @@ -52884,6 +53002,18 @@ { "$ref": "#\/definitions\/attributePolygon" }, + { + "$ref": "#\/definitions\/attributeVarchar" + }, + { + "$ref": "#\/definitions\/attributeText" + }, + { + "$ref": "#\/definitions\/attributeMediumtext" + }, + { + "$ref": "#\/definitions\/attributeLongtext" + }, { "$ref": "#\/definitions\/attributeString" } @@ -60327,6 +60457,11 @@ "vip" ] }, + "status": { + "type": "string", + "description": "Project status.", + "x-example": "active" + }, "authEmailPassword": { "type": "boolean", "description": "Email\/Password auth method status", @@ -60472,6 +60607,7 @@ "pingCount", "pingedAt", "labels", + "status", "authEmailPassword", "authUsersAuthMagicURL", "authEmailOtp", @@ -60543,6 +60679,7 @@ "labels": [ "vip" ], + "status": "active", "authEmailPassword": true, "authUsersAuthMagicURL": true, "authEmailOtp": true, diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index d61880e9b8..a99a82d13d 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -13406,27 +13406,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -13442,25 +13453,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -13888,27 +13908,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -13924,25 +13955,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -23626,27 +23666,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -23662,25 +23713,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -24066,27 +24126,38 @@ "node-20.0", "node-21.0", "node-22", + "node-23", + "node-24", + "node-25", "php-8.0", "php-8.1", "php-8.2", "php-8.3", + "php-8.4", "ruby-3.0", "ruby-3.1", "ruby-3.2", "ruby-3.3", + "ruby-3.4", + "ruby-4.0", "python-3.8", "python-3.9", "python-3.10", "python-3.11", "python-3.12", + "python-3.13", + "python-3.14", "python-ml-3.11", "python-ml-3.12", + "python-ml-3.13", "deno-1.21", "deno-1.24", "deno-1.35", "deno-1.40", "deno-1.46", "deno-2.0", + "deno-2.5", + "deno-2.6", "dart-2.15", "dart-2.16", "dart-2.17", @@ -24102,25 +24173,34 @@ "dotnet-6.0", "dotnet-7.0", "dotnet-8.0", + "dotnet-10", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", "java-22", + "java-25", "swift-5.5", "swift-5.8", "swift-5.9", "swift-5.10", + "swift-6.2", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", "kotlin-2.0", + "kotlin-2.3", "cpp-17", "cpp-20", "bun-1.0", "bun-1.1", + "bun-1.2", + "bun-1.3", "go-1.23", + "go-1.24", + "go-1.25", + "go-1.26", "static-1", "flutter-3.24", "flutter-3.27", @@ -40916,6 +40996,18 @@ { "$ref": "#\/definitions\/attributePolygon" }, + { + "$ref": "#\/definitions\/attributeVarchar" + }, + { + "$ref": "#\/definitions\/attributeText" + }, + { + "$ref": "#\/definitions\/attributeMediumtext" + }, + { + "$ref": "#\/definitions\/attributeLongtext" + }, { "$ref": "#\/definitions\/attributeString" } @@ -41027,6 +41119,18 @@ { "$ref": "#\/definitions\/attributePolygon" }, + { + "$ref": "#\/definitions\/attributeVarchar" + }, + { + "$ref": "#\/definitions\/attributeText" + }, + { + "$ref": "#\/definitions\/attributeMediumtext" + }, + { + "$ref": "#\/definitions\/attributeLongtext" + }, { "$ref": "#\/definitions\/attributeString" } diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 7fec3bfab1..6bb0a8a99c 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1920,8 +1920,13 @@ Http::get('/v1/projects/:projectId/templates/sms/:type/:locale') ] ) ]) +<<<<<<< feat-mongodb ->param('projectId', '', fn (Database $dbForPlatform) => new UID($dbForPlatform->getAdapter()->getMaxUIDLength()), 'Project unique ID.', false, ['dbForPlatform']) ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type') +======= + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? [], true), 'Template type') +>>>>>>> 1.8.x ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') ->inject('dbForPlatform') @@ -1968,8 +1973,13 @@ Http::get('/v1/projects/:projectId/templates/email/:type/:locale') ) ] )) +<<<<<<< feat-mongodb ->param('projectId', '', fn (Database $dbForPlatform) => new UID($dbForPlatform->getAdapter()->getMaxUIDLength()), 'Project unique ID.', false, ['dbForPlatform']) ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type') +======= + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? [], true), 'Template type') +>>>>>>> 1.8.x ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') ->inject('dbForPlatform') @@ -2087,8 +2097,13 @@ Http::patch('/v1/projects/:projectId/templates/sms/:type/:locale') ] ) ]) +<<<<<<< feat-mongodb ->param('projectId', '', fn (Database $dbForPlatform) => new UID($dbForPlatform->getAdapter()->getMaxUIDLength()), 'Project unique ID.', false, ['dbForPlatform']) ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type') +======= + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? [], true), 'Template type') +>>>>>>> 1.8.x ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->param('message', '', new Text(0), 'Template message') ->inject('response') @@ -2134,8 +2149,13 @@ Http::patch('/v1/projects/:projectId/templates/email/:type/:locale') ) ] )) +<<<<<<< feat-mongodb ->param('projectId', '', fn (Database $dbForPlatform) => new UID($dbForPlatform->getAdapter()->getMaxUIDLength()), 'Project unique ID.', false, ['dbForPlatform']) ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type') +======= + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? [], true), 'Template type') +>>>>>>> 1.8.x ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->param('subject', '', new Text(255), 'Email Subject') ->param('message', '', new Text(0), 'Template message') @@ -2213,8 +2233,13 @@ Http::delete('/v1/projects/:projectId/templates/sms/:type/:locale') contentType: ContentType::JSON ) ]) +<<<<<<< feat-mongodb ->param('projectId', '', fn (Database $dbForPlatform) => new UID($dbForPlatform->getAdapter()->getMaxUIDLength()), 'Project unique ID.', false, ['dbForPlatform']) ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type') +======= + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? [], true), 'Template type') +>>>>>>> 1.8.x ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') ->inject('dbForPlatform') @@ -2264,8 +2289,13 @@ Http::delete('/v1/projects/:projectId/templates/email/:type/:locale') ], contentType: ContentType::JSON )) +<<<<<<< feat-mongodb ->param('projectId', '', fn (Database $dbForPlatform) => new UID($dbForPlatform->getAdapter()->getMaxUIDLength()), 'Project unique ID.', false, ['dbForPlatform']) ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type') +======= + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? [], true), 'Template type') +>>>>>>> 1.8.x ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') ->inject('dbForPlatform') diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index adc00d83df..8ebf2ae7cc 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -79,6 +79,33 @@ class Specs extends Action ]; } + /** + * Platforms to include in PR creation. + * Override in a subclass to exclude specific platforms. + * + * @return array + */ + public static function getPlatformsForPR(): array + { + return static::getPlatforms(); + } + + /** + * Build the CLI command used to regenerate SDK examples. + * Override in a subclass to customise flags (platform, sdk, mode, etc.). + * + * @param string $version Spec version being generated + * @return string Shell command string (including 2>&1 redirect) + */ + protected function getSdksCommand(string $version): string + { + $cli = \realpath(__DIR__ . '/../../../../app') . '/cli.php'; + + return 'php ' . \escapeshellarg($cli) + . ' sdks --platform=* --sdk=* --version=' . \escapeshellarg($version) + . ' --git=no --mode=examples 2>&1'; + } + /** * Number of authentication methods supported by each platform * client: 1 (Session or JWT), server: 2 (Key and JWT), console: 1 (Admin) @@ -432,9 +459,19 @@ class Specs extends Action '); // Copy generated spec files into specs/{version}/ subdirectory + $prPlatforms = static::getPlatformsForPR(); + $prFiles = \array_filter( + $generatedFiles, + fn (string $file) => \in_array( + \substr(\basename($file, '.json'), \strrpos(\basename($file, '.json'), '-') + 1), + $prPlatforms, + true + ) + ); + $specsSubDir = $mocks ? 'mocks' : $version; \exec('mkdir -p ' . \escapeshellarg("{$target}/specs/{$specsSubDir}")); - foreach ($generatedFiles as $file) { + foreach ($prFiles as $file) { $fileName = \basename($file); \exec('cp ' . \escapeshellarg($file) . ' ' . \escapeshellarg("{$target}/specs/{$specsSubDir}/{$fileName}")); Console::success("Copied spec file to repo: specs/{$specsSubDir}/{$fileName}"); @@ -442,9 +479,7 @@ class Specs extends Action // Regenerate SDK examples for this version Console::info("Regenerating SDK examples for version {$version}..."); - $sdksCommand = 'php ' . \escapeshellarg(\realpath(__DIR__ . '/../../../../app') . '/cli.php') - . ' sdks --platform=* --sdk=* --version=' . \escapeshellarg($version) - . ' --git=no --mode=examples 2>&1'; + $sdksCommand = $this->getSdksCommand($version); \exec($sdksCommand, $sdksOutput, $sdksReturnCode); if ($sdksReturnCode !== 0) { @@ -454,11 +489,20 @@ class Specs extends Action Console::success("Regenerated SDK examples for version {$version}"); } - // Copy SDK examples for this version + // Copy SDK examples for this version, filtered by PR platforms if (\is_dir($examplesDir)) { - \exec('mkdir -p ' . \escapeshellarg("{$target}/examples/{$version}") . ' && \ - cp -r ' . \escapeshellarg($examplesDir) . '/. ' . \escapeshellarg("{$target}/examples/{$version}/")); - Console::success("Copied SDK examples for version {$version} to repo: examples/{$version}/"); + \exec('mkdir -p ' . \escapeshellarg("{$target}/examples/{$version}")); + $exampleFolders = \glob($examplesDir . '/*', GLOB_ONLYDIR) ?: []; + foreach ($exampleFolders as $folder) { + $folderName = \basename($folder); + $platform = \strstr($folderName, '-', true) ?: $folderName; + if (!\in_array($platform, $prPlatforms, true)) { + Console::info("Skipping SDK examples for platform '{$platform}': examples/{$version}/{$folderName}"); + continue; + } + \exec('cp -r ' . \escapeshellarg($folder) . ' ' . \escapeshellarg("{$target}/examples/{$version}/")); + Console::success("Copied SDK examples to repo: examples/{$version}/{$folderName}"); + } } else { Console::warning("No SDK examples found at: {$examplesDir}. Skipping examples copy."); }