|
974 | 974 | "parameters": [ |
975 | 975 | { |
976 | 976 | "name": "body", |
977 | | - "description": "WatchRequest specifies what mutations to watch for, and an optional start snapshot for when to start\nwatching.", |
| 977 | + "description": "WatchRequest specifies what mutations to watch for, and an optional start point for when to start\nwatching.", |
978 | 978 | "in": "body", |
979 | 979 | "required": true, |
980 | 980 | "schema": { |
|
1618 | 1618 | }, |
1619 | 1619 | "description": "DirectSubjectSet is a subject set which is simply a collection of subjects." |
1620 | 1620 | }, |
| 1621 | + "DownloadPermissionSetsResponse": { |
| 1622 | + "type": "object", |
| 1623 | + "properties": { |
| 1624 | + "files": { |
| 1625 | + "type": "array", |
| 1626 | + "items": { |
| 1627 | + "type": "object", |
| 1628 | + "$ref": "#/definitions/File" |
| 1629 | + }, |
| 1630 | + "title": "files contains the list of downloadable files with their URLs" |
| 1631 | + } |
| 1632 | + } |
| 1633 | + }, |
1621 | 1634 | "ExpCaveat": { |
1622 | 1635 | "type": "object", |
1623 | 1636 | "properties": { |
|
2119 | 2132 | }, |
2120 | 2133 | "description": "ExportBulkRelationshipsResponse is one page in a stream of relationship\ngroups that meet the criteria specified by the originating request. The\nserver will continue to stream back relationship groups as quickly as it can\nuntil all relationships have been transmitted back." |
2121 | 2134 | }, |
| 2135 | + "File": { |
| 2136 | + "type": "object", |
| 2137 | + "properties": { |
| 2138 | + "name": { |
| 2139 | + "type": "string", |
| 2140 | + "title": "name is the filename of the downloadable file" |
| 2141 | + }, |
| 2142 | + "url": { |
| 2143 | + "type": "string", |
| 2144 | + "title": "url is the download URL for the file (typically a signed S3 URL)" |
| 2145 | + } |
| 2146 | + } |
| 2147 | + }, |
2122 | 2148 | "ImportBulkRelationshipsRequest": { |
2123 | 2149 | "type": "object", |
2124 | 2150 | "properties": { |
|
2264 | 2290 | "optionalConcreteLimit": { |
2265 | 2291 | "type": "integer", |
2266 | 2292 | "format": "int64", |
2267 | | - "description": "optional_concrete_limit, if non-zero, specifies the limit on the number of\n*concrete* (non-wildcard) subjects to return before the stream is closed on the\nserver side. With the default value of zero, the stream will continue resolving\nconcrete subjects until exhausted or the stream is closed due to the client or\na network issue.\n\nNOTE: Wildcard subjects (\"*\") have special treatment when cursors and limits are used. Because\nwildcards can apply to *any* concrete subjects, if a wildcard subject is found within the dataset,\na wildcard subject can be returned for *all* LookupSubjects calls, regardless of the cursor or\nlimit.\n\nFor example, if wildcards are requested, a wildcard subject exists, there is a specified limit\nof 10 concrete subjects, and at least 10 concrete subjects exist, the API will return 11 subjects\nin total: the 10 concrete + the wildcard\n\nFurthermore, if a wildcard has a set of exclusions generated by the dataset,\nthe exclusions *will respect the cursor* and only a *partial* set of exclusions will be returned\nfor each invocation of the API.\n\n***IT IS UP TO THE CALLER IN THIS CASE TO COMBINE THE EXCLUSIONS IF DESIRED***" |
| 2293 | + "description": "optional_concrete_limit is currently unimplemented for LookupSubjects\nand will return an error as of SpiceDB version 1.40.1. This will\nbe implemented in a future version of SpiceDB." |
2268 | 2294 | }, |
2269 | 2295 | "optionalCursor": { |
2270 | 2296 | "$ref": "#/definitions/v1.Cursor", |
2271 | | - "description": "optional_cursor, if specified, indicates the cursor after which results should resume being returned.\nThe cursor can be found on the LookupSubjectsResponse object.\n\nNOTE: See above for notes about how cursors interact with wildcard subjects." |
| 2297 | + "description": "optional_cursor is currently unimplemented for LookupSubjects\nand will be ignored as of SpiceDB version 1.40.1. This will\nbe implemented in a future version of SpiceDB." |
2272 | 2298 | }, |
2273 | 2299 | "wildcardOption": { |
2274 | 2300 | "$ref": "#/definitions/WildcardOption", |
|
3101 | 3127 | }, |
3102 | 3128 | "optionalStartCursor": { |
3103 | 3129 | "$ref": "#/definitions/ZedToken", |
3104 | | - "description": "optional_start_cursor is the ZedToken holding the point-in-time at\nwhich to start watching for changes.\nIf not specified, the watch will begin at the current head revision\nof the datastore, returning any updates that occur after the caller\nmakes the request.\nNote that if this cursor references a point-in-time containing data\nthat has been garbage collected, an error will be returned." |
| 3130 | + "description": "optional_start_cursor is the ZedToken holding the point-in-time at\nwhich to start watching for changes.\nIf not specified, the watch will start from the current SpiceDB revision time of the request (\"head revision\").\nNote that if this cursor references a point-in-time containing data\nthat has been garbage collected, an error will be returned." |
3105 | 3131 | }, |
3106 | 3132 | "optionalRelationshipFilters": { |
3107 | 3133 | "type": "array", |
|
3116 | 3142 | "items": { |
3117 | 3143 | "$ref": "#/definitions/WatchKind" |
3118 | 3144 | }, |
3119 | | - "description": "optional_update_kinds, if specified, indicates what kinds of mutations to include." |
| 3145 | + "description": "optional_update_kinds, if specified, indicates what kinds of mutations to include.\nIf your SpiceDB instance is running behind a proxy that aborts idle connections,\nwe recommend including Checkpoints to keep the stream alive even when there are no changes." |
3120 | 3146 | } |
3121 | 3147 | }, |
3122 | | - "description": "WatchRequest specifies what mutations to watch for, and an optional start snapshot for when to start\nwatching." |
| 3148 | + "description": "WatchRequest specifies what mutations to watch for, and an optional start point for when to start\nwatching." |
3123 | 3149 | }, |
3124 | 3150 | "WatchResponse": { |
3125 | 3151 | "type": "object", |
|
3130 | 3156 | "type": "object", |
3131 | 3157 | "$ref": "#/definitions/RelationshipUpdate" |
3132 | 3158 | }, |
3133 | | - "description": "updates are the RelationshipUpdate events that have occurred since the\nlast watch response." |
| 3159 | + "description": "updates are the RelationshipUpdate events that have occurred since the\ncall was made, or since the point in time specified by changes_through." |
3134 | 3160 | }, |
3135 | 3161 | "changesThrough": { |
3136 | 3162 | "$ref": "#/definitions/ZedToken", |
|
3149 | 3175 | "description": "is_checkpoint, if true, indicates that a checkpoint was reached.\nA checkpoint indicates that the server guarantees that the client\nwill not observe any changes at a revision below or equal to the revision in this response." |
3150 | 3176 | } |
3151 | 3177 | }, |
3152 | | - "description": "WatchResponse contains all mutation events in ascending timestamp order,\nfrom the requested start snapshot to a snapshot\nencoded in the watch response. The client can use the snapshot to resume\nwatching where the previous watch response left off." |
| 3178 | + "description": "WatchResponse contains all mutation events in ascending timestamp order.\nThis excludes relationships that were deleted because they expired.\nThe response includes a field that can be used to resume\nwatching from that point." |
3153 | 3179 | }, |
3154 | 3180 | "WatchedPermission": { |
3155 | 3181 | "type": "object", |
|
3210 | 3236 | "type": "object", |
3211 | 3237 | "properties": { |
3212 | 3238 | "writtenAt": { |
3213 | | - "$ref": "#/definitions/ZedToken" |
| 3239 | + "$ref": "#/definitions/ZedToken", |
| 3240 | + "description": "written_at is the revision at which the relationships were deleted." |
3214 | 3241 | } |
3215 | 3242 | } |
3216 | 3243 | }, |
|
3241 | 3268 | "type": "string" |
3242 | 3269 | } |
3243 | 3270 | }, |
3244 | | - "description": "ZedToken is used to provide causality metadata between Write and Check\nrequests.\n\nSee the authzed.api.v1.Consistency message for more information." |
| 3271 | + "description": "ZedToken represents a point in time, or a \"revision\" in SpiceDB.\nIt is used to provide causality metadata between Write and read requests (Check, Read, LR, LS)\nand can also be used to start watching for changes from a specific point in time.\n\nSee the authzed.api.v1.Consistency message for more information." |
3245 | 3272 | }, |
3246 | 3273 | "v0.Cursor": { |
3247 | 3274 | "type": "object", |
|
0 commit comments