Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for new relationship expiration fields in the API #266

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion magefiles/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (g Gen) All() error {
const (
ProtoPath = "proto/authzed/api"
BufRepository = "buf.build/authzed/api"
BufTag = "830feede4dd23930f78686fbde652564032fb26f"
BufTag = "0aa4ec48683094d891bc6031de5db6d7576bb709"
)

// Proto runs proto codegen
Expand Down
25 changes: 20 additions & 5 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
"parameters": [
{
"name": "body",
"description": "BulkImportRelationshipsRequest represents one batch of the streaming\nBulkImportRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. Any relationships within the same request are guaranteed to\nbe written in a single transaction. If any of the relationships already\nexist, the transaction will fail and no relationships will be written. (streaming inputs)",
"description": "BulkImportRelationshipsRequest represents one batch of the streaming\nBulkImportRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. When BulkImport is invoked and receives its first request message,\na transaction is opened to import the relationships. All requests sent to the same\ninvocation are executed under this single transaction. If a relationship already\nexists within the datastore, the entire transaction will fail with an error. (streaming inputs)",
"in": "body",
"required": true,
"schema": {
Expand Down Expand Up @@ -680,7 +680,7 @@
"parameters": [
{
"name": "body",
"description": "ImportBulkRelationshipsRequest represents one batch of the streaming\nImportBulkRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. (streaming inputs)",
"description": "ImportBulkRelationshipsRequest represents one batch of the streaming\nImportBulkRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. When ImportBulk is invoked and receives its first request message,\na transaction is opened to import the relationships. All requests sent to the same\ninvocation are executed under this single transaction. If a relationship already\nexists within the datastore, the entire transaction will fail with an error. (streaming inputs)",
"in": "body",
"required": true,
"schema": {
Expand Down Expand Up @@ -1698,7 +1698,7 @@
}
}
},
"description": "BulkImportRelationshipsRequest represents one batch of the streaming\nBulkImportRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. Any relationships within the same request are guaranteed to\nbe written in a single transaction. If any of the relationships already\nexist, the transaction will fail and no relationships will be written."
"description": "BulkImportRelationshipsRequest represents one batch of the streaming\nBulkImportRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. When BulkImport is invoked and receives its first request message,\na transaction is opened to import the relationships. All requests sent to the same\ninvocation are executed under this single transaction. If a relationship already\nexists within the datastore, the entire transaction will fail with an error."
},
"v1BulkImportRelationshipsResponse": {
"type": "object",
Expand Down Expand Up @@ -1847,6 +1847,11 @@
"subProblems": {
"$ref": "#/definitions/CheckDebugTraceSubProblems",
"description": "sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list\nand a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation."
},
"optionalExpiresAt": {
"type": "string",
"format": "date-time",
"description": "optional_expires_at is the time at which at least one of the relationships used to\ncompute this result, expires (if any). This is *not* related to the caching window."
}
},
"description": "CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission\nAPI call."
Expand Down Expand Up @@ -1907,6 +1912,11 @@
"debugTrace": {
"$ref": "#/definitions/v1DebugInformation",
"description": "debug_trace is the debugging trace of this check, if requested."
},
"optionalExpiresAt": {
"type": "string",
"format": "date-time",
"description": "optional_expires_at is the time at which at least one of the relationships used to\ncompute this result, expires (if any). This is *not* related to the caching window."
}
}
},
Expand Down Expand Up @@ -2538,7 +2548,7 @@
}
}
},
"description": "ImportBulkRelationshipsRequest represents one batch of the streaming\nImportBulkRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally."
"description": "ImportBulkRelationshipsRequest represents one batch of the streaming\nImportBulkRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. When ImportBulk is invoked and receives its first request message,\na transaction is opened to import the relationships. All requests sent to the same\ninvocation are executed under this single transaction. If a relationship already\nexists within the datastore, the entire transaction will fail with an error."
},
"v1ImportBulkRelationshipsResponse": {
"type": "object",
Expand Down Expand Up @@ -2841,7 +2851,12 @@
},
"optionalCaveat": {
"$ref": "#/definitions/v1ContextualizedCaveat",
"title": "optional_caveat is a reference to a the caveat that must be enforced over the relationship"
"description": "optional_caveat is a reference to a the caveat that must be enforced over the relationship."
},
"optionalExpiresAt": {
"type": "string",
"format": "date-time",
"description": "optional_expires_at is the time at which the relationship expires, if any."
}
},
"description": "Relationship specifies how a resource relates to a subject. Relationships\nform the data for the graph over which all permissions questions are\nanswered."
Expand Down
2 changes: 1 addition & 1 deletion proto/authzed/api/materialize/v0/watchpermissions.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/materialize/zz_generated.version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package materialize

const (
BufRepository = "buf.build/authzed/api"
BufTag = "830feede4dd23930f78686fbde652564032fb26f"
BufTag = "0aa4ec48683094d891bc6031de5db6d7576bb709"
)
2 changes: 1 addition & 1 deletion proto/authzed/api/v0/core.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/v0/developer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/v0/zz_generated.version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package v0

const (
BufRepository = "buf.build/authzed/api"
BufTag = "830feede4dd23930f78686fbde652564032fb26f"
BufTag = "0aa4ec48683094d891bc6031de5db6d7576bb709"
)
Loading