Move to row-level scope for txn

This commit is contained in:
Jake Barnby
2025-09-25 17:59:39 +12:00
parent 9fde875904
commit 4a3cbdafca
25 changed files with 130 additions and 142 deletions
@@ -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',
@@ -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',
@@ -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',
@@ -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',
@@ -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',
@@ -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',
@@ -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',
@@ -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',
@@ -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',
@@ -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',