diff --git a/app/config/roles.php b/app/config/roles.php index 6a4bba2699..0f0945a2b4 100644 --- a/app/config/roles.php +++ b/app/config/roles.php @@ -16,8 +16,6 @@ $member = [ 'documents.write', 'rows.read', 'rows.write', - 'transactions.read', - 'transactions.write', 'files.read', 'files.write', 'projects.read', @@ -43,8 +41,6 @@ $admins = [ 'documents.write', 'rows.read', 'rows.write', - 'transactions.read', - 'transactions.write', 'files.read', 'files.write', 'buckets.read', diff --git a/app/config/scopes.php b/app/config/scopes.php index 9807c09216..d90ca2eabf 100644 --- a/app/config/scopes.php +++ b/app/config/scopes.php @@ -52,12 +52,6 @@ return [ // List of publicly visible scopes 'indexes.write' => [ 'description' => 'Access to create, update, and delete your project\'s database collection\'s indexes', ], - 'transactions.read' => [ - 'description' => 'Access to read your project\'s database transactions', - ], - 'transactions.write' => [ - 'description' => 'Access to create, update, and delete your project\'s database transactions', - ], 'documents.read' => [ 'description' => 'Access to read your project\'s database documents', ], diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 6d5acf8c86..4fd19f7d6a 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -4903,7 +4903,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5033,7 +5033,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5109,7 +5109,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5173,7 +5173,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -7980,7 +7980,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -8045,7 +8045,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -8113,7 +8113,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -8175,7 +8175,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -8251,7 +8251,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -8315,7 +8315,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 797a7e72e4..fe014dcd4c 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -5302,7 +5302,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5432,7 +5432,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5508,7 +5508,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5572,7 +5572,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -33372,7 +33372,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -33437,7 +33437,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -33505,7 +33505,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -33567,7 +33567,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -33643,7 +33643,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -33707,7 +33707,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 8e8c33ace4..16ae5e57f9 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4842,7 +4842,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -4976,7 +4976,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5054,7 +5054,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5120,7 +5120,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -23888,7 +23888,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -23955,7 +23955,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -24025,7 +24025,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -24089,7 +24089,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -24167,7 +24167,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -24233,7 +24233,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 6d5acf8c86..4fd19f7d6a 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4903,7 +4903,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5033,7 +5033,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5109,7 +5109,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5173,7 +5173,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -7980,7 +7980,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -8045,7 +8045,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -8113,7 +8113,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -8175,7 +8175,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -8251,7 +8251,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -8315,7 +8315,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 797a7e72e4..fe014dcd4c 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -5302,7 +5302,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5432,7 +5432,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5508,7 +5508,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5572,7 +5572,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -33372,7 +33372,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -33437,7 +33437,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -33505,7 +33505,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -33567,7 +33567,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -33643,7 +33643,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -33707,7 +33707,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 8e8c33ace4..16ae5e57f9 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4842,7 +4842,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -4976,7 +4976,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5054,7 +5054,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -5120,7 +5120,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client", @@ -23888,7 +23888,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -23955,7 +23955,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -24025,7 +24025,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client", @@ -24089,7 +24089,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -24167,7 +24167,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", @@ -24233,7 +24233,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client", diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index e87ce88a6c..1aa47cb4fc 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -5045,7 +5045,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5174,7 +5174,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5251,7 +5251,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5314,7 +5314,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -8057,7 +8057,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -8122,7 +8122,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -8190,7 +8190,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -8251,7 +8251,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -8328,7 +8328,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -8391,7 +8391,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 16744679ec..f88b1254cd 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -5464,7 +5464,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5593,7 +5593,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5670,7 +5670,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5733,7 +5733,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -33491,7 +33491,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -33556,7 +33556,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -33624,7 +33624,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -33685,7 +33685,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -33762,7 +33762,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -33825,7 +33825,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index d3f7129c95..40f38c1067 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4992,7 +4992,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5125,7 +5125,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5204,7 +5204,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5269,7 +5269,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -24063,7 +24063,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -24130,7 +24130,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -24200,7 +24200,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -24263,7 +24263,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -24342,7 +24342,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -24407,7 +24407,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index e87ce88a6c..1aa47cb4fc 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -5045,7 +5045,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5174,7 +5174,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5251,7 +5251,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5314,7 +5314,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -8057,7 +8057,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -8122,7 +8122,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -8190,7 +8190,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -8251,7 +8251,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -8328,7 +8328,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -8391,7 +8391,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 16744679ec..f88b1254cd 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -5464,7 +5464,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5593,7 +5593,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5670,7 +5670,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5733,7 +5733,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -33491,7 +33491,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -33556,7 +33556,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -33624,7 +33624,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -33685,7 +33685,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -33762,7 +33762,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -33825,7 +33825,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index d3f7129c95..40f38c1067 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4992,7 +4992,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5125,7 +5125,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5204,7 +5204,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -5269,7 +5269,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "documents.write", "platforms": [ "server", "client" @@ -24063,7 +24063,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -24130,7 +24130,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -24200,7 +24200,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.read", + "scope": "rows.read", "platforms": [ "server", "client" @@ -24263,7 +24263,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -24342,7 +24342,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" @@ -24407,7 +24407,7 @@ "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "transactions.write", + "scope": "rows.write", "platforms": [ "server", "client" diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Create.php index 4a7e95d5ca..a5866ba7d1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Create.php @@ -33,7 +33,7 @@ class Create extends Action ->setHttpPath('/v1/databases/transactions') ->desc('Create transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'documents.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'databases', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Delete.php index da92ce1b4c..a5d2562572 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Delete.php @@ -32,7 +32,7 @@ class Delete extends Action ->setHttpPath('/v1/databases/transactions/:transactionId') ->desc('Delete transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'documents.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'databases', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Operations/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Operations/Create.php index d2e438706a..0aca3e3f7c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Operations/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Operations/Create.php @@ -38,7 +38,7 @@ class Create extends Action ->setHttpPath('/v1/databases/transactions/:transactionId/operations') ->desc('Create operations scoped to a transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'documents.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'databases', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Update.php index 4509114bfc..9f5e5037bf 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Update.php @@ -44,7 +44,7 @@ class Update extends Action ->setHttpPath('/v1/databases/transactions/:transactionId') ->desc('Update transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'documents.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'databases', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Create.php index 6a28d31621..e6c24b3341 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Create.php @@ -30,7 +30,7 @@ class Create extends TransactionsCreate ->setHttpPath('/v1/tablesdb/transactions') ->desc('Create transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'rows.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'tablesDB', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Delete.php index cad11e795a..28f273f566 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Delete.php @@ -30,7 +30,7 @@ class Delete extends TransactionsDelete ->setHttpPath('/v1/tablesdb/transactions/:transactionId') ->desc('Delete transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'rows.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'tablesDB', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Get.php index 39f6754a1e..bc58783a04 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Get.php @@ -30,7 +30,7 @@ class Get extends TransactionsGet ->setHttpPath('/v1/tablesdb/transactions/:transactionId') ->desc('Get transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.read') + ->label('scope', 'rows.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'tablesDB', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Operations/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Operations/Create.php index 2280a6f7e3..eab0fed161 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Operations/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Operations/Create.php @@ -32,7 +32,7 @@ class Create extends OperationsCreate ->setHttpPath('/v1/tablesdb/transactions/:transactionId/operations') ->desc('Create operations scoped to a transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'rows.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'tablesDB', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Update.php index d76de0766d..bcfb2db406 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/Update.php @@ -31,7 +31,7 @@ class Update extends TransactionsUpdate ->setHttpPath('/v1/tablesdb/transactions/:transactionId') ->desc('Update transaction') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.write') + ->label('scope', 'rows.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'tablesDB', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/XList.php index 67a58d7e5f..cfb630e46d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Transactions/XList.php @@ -30,7 +30,7 @@ class XList extends TransactionsList ->setHttpPath('/v1/tablesdb/transactions') ->desc('List transactions') ->groups(['api', 'database', 'transactions']) - ->label('scope', 'transactions.read') + ->label('scope', 'rows.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: 'tablesDB', diff --git a/tests/e2e/Scopes/ProjectCustom.php b/tests/e2e/Scopes/ProjectCustom.php index 49aabaae67..c2b4896814 100644 --- a/tests/e2e/Scopes/ProjectCustom.php +++ b/tests/e2e/Scopes/ProjectCustom.php @@ -70,8 +70,6 @@ trait ProjectCustom 'databases.write', 'collections.read', 'collections.write', - 'transactions.read', - 'transactions.write', 'tables.read', 'tables.write', 'documents.read',