Skip to content

Commit dda3a49

Browse files
committed
(update JSONSchema)
1 parent 8fb0caf commit dda3a49

File tree

1 file changed

+45
-7
lines changed

1 file changed

+45
-7
lines changed

docs/api/spec.json

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,20 @@
997997
},
998998
"style": "form"
999999
},
1000+
{
1001+
"in": "query",
1002+
"name": "filter[scope]",
1003+
"description": "Retrieve the items with the given scope",
1004+
"schema": {
1005+
"description": "Retrieve the items with the given scope",
1006+
"default": [],
1007+
"type": "array",
1008+
"items": {
1009+
"type": "string"
1010+
}
1011+
},
1012+
"style": "form"
1013+
},
10001014
{
10011015
"in": "query",
10021016
"name": "filter[status]",
@@ -1031,6 +1045,17 @@
10311045
"nullable": true
10321046
},
10331047
"style": "form"
1048+
},
1049+
{
1050+
"in": "query",
1051+
"name": "filter[expires]",
1052+
"description": "Filter by whether the access token has an expiry time",
1053+
"schema": {
1054+
"description": "Filter by whether the access token has an expiry time",
1055+
"type": "boolean",
1056+
"nullable": true
1057+
},
1058+
"style": "form"
10341059
}
10351060
],
10361061
"responses": {
@@ -5138,6 +5163,14 @@
51385163
"$ref": "#/components/schemas/ULID",
51395164
"nullable": true
51405165
},
5166+
"filter[scope]": {
5167+
"description": "Retrieve the items with the given scope",
5168+
"default": [],
5169+
"type": "array",
5170+
"items": {
5171+
"type": "string"
5172+
}
5173+
},
51415174
"filter[status]": {
51425175
"description": "Filter by session status",
51435176
"$ref": "#/components/schemas/PersonalSessionStatus",
@@ -5154,6 +5187,11 @@
51545187
"type": "string",
51555188
"format": "date-time",
51565189
"nullable": true
5190+
},
5191+
"filter[expires]": {
5192+
"description": "Filter by whether the access token has an expiry time",
5193+
"type": "boolean",
5194+
"nullable": true
51575195
}
51585196
}
51595197
},
@@ -5230,8 +5268,6 @@
52305268
"actor_user_id",
52315269
"created_at",
52325270
"human_name",
5233-
"owner_client_id",
5234-
"owner_user_id",
52355271
"scope"
52365272
],
52375273
"properties": {
@@ -5248,11 +5284,13 @@
52485284
},
52495285
"owner_user_id": {
52505286
"description": "The ID of the user who owns this session (if user-owned)",
5251-
"$ref": "#/components/schemas/ULID"
5287+
"$ref": "#/components/schemas/ULID",
5288+
"nullable": true
52525289
},
52535290
"owner_client_id": {
52545291
"description": "The ID of the `OAuth2` client that owns this session (if client-owned)",
5255-
"$ref": "#/components/schemas/ULID"
5292+
"$ref": "#/components/schemas/ULID",
5293+
"nullable": true
52565294
},
52575295
"actor_user_id": {
52585296
"description": "The ID of the user that the session acts on behalf of",
@@ -5315,7 +5353,7 @@
53155353
"expires_in": {
53165354
"description": "Token expiry time in seconds. If not set, the token won't expire.",
53175355
"type": "integer",
5318-
"format": "uint64",
5356+
"format": "uint32",
53195357
"minimum": 0.0,
53205358
"nullable": true
53215359
}
@@ -5342,9 +5380,9 @@
53425380
"type": "object",
53435381
"properties": {
53445382
"expires_in": {
5345-
"description": "Token expiry time in seconds. If not set, the token will default to the same lifetime as when originally issued.",
5383+
"description": "Token expiry time in seconds. If not set, the token won't expire.",
53465384
"type": "integer",
5347-
"format": "uint64",
5385+
"format": "uint32",
53485386
"minimum": 0.0,
53495387
"nullable": true
53505388
}

0 commit comments

Comments
 (0)