Skip to content

Commit a229846

Browse files
YOYO NEW API SPEC!
1 parent aeca3d1 commit a229846

File tree

1 file changed

+212
-5
lines changed

1 file changed

+212
-5
lines changed

spec.json

Lines changed: 212 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17996,6 +17996,100 @@
1799617996
}
1799717997
}
1799817998
},
17999+
"/user/features": {
18000+
"get": {
18001+
"tags": [
18002+
"users"
18003+
],
18004+
"summary": "List user-visible feature flags enabled for the authenticated user.",
18005+
"description": "Returns only features that are marked as safe for exposure to clients and currently resolved to `true` for the requesting user (including org overrides).",
18006+
"operationId": "user_features_get",
18007+
"responses": {
18008+
"200": {
18009+
"description": "successful operation",
18010+
"headers": {
18011+
"Access-Control-Allow-Credentials": {
18012+
"description": "Access-Control-Allow-Credentials header.",
18013+
"style": "simple",
18014+
"schema": {
18015+
"nullable": true,
18016+
"type": "string"
18017+
}
18018+
},
18019+
"Access-Control-Allow-Headers": {
18020+
"description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.",
18021+
"style": "simple",
18022+
"schema": {
18023+
"nullable": true,
18024+
"type": "string"
18025+
}
18026+
},
18027+
"Access-Control-Allow-Methods": {
18028+
"description": "Access-Control-Allow-Methods header.",
18029+
"style": "simple",
18030+
"schema": {
18031+
"nullable": true,
18032+
"type": "string"
18033+
}
18034+
},
18035+
"Access-Control-Allow-Origin": {
18036+
"description": "Access-Control-Allow-Origin header.",
18037+
"style": "simple",
18038+
"schema": {
18039+
"nullable": true,
18040+
"type": "string"
18041+
}
18042+
},
18043+
"Content-Location": {
18044+
"description": "The Content-Location header for responses that are not the final destination. This is used to indicate where the resource can be found, when it is finished.",
18045+
"style": "simple",
18046+
"schema": {
18047+
"nullable": true,
18048+
"type": "string"
18049+
}
18050+
},
18051+
"Location": {
18052+
"description": "The location header for redirects and letting users know if there is a websocket they can listen to for status updates on their operation.",
18053+
"style": "simple",
18054+
"schema": {
18055+
"nullable": true,
18056+
"type": "string"
18057+
}
18058+
},
18059+
"Set-Cookie": {
18060+
"description": "Set-Cookie header.",
18061+
"style": "simple",
18062+
"schema": {
18063+
"nullable": true,
18064+
"type": "string"
18065+
}
18066+
},
18067+
"X-Api-Call-Id": {
18068+
"description": "ID for this request. We return it so that users can report this to us and help us debug their problems.",
18069+
"style": "simple",
18070+
"required": true,
18071+
"schema": {
18072+
"type": "string"
18073+
}
18074+
}
18075+
},
18076+
"content": {
18077+
"application/json": {
18078+
"schema": {
18079+
"$ref": "#/components/schemas/UserFeatureList"
18080+
}
18081+
}
18082+
}
18083+
},
18084+
"4XX": {
18085+
"$ref": "#/components/responses/Error"
18086+
},
18087+
"5XX": {
18088+
"$ref": "#/components/responses/Error"
18089+
}
18090+
}
18091+
}
18092+
},
1799918093
"/user/form": {
1800018094
"put": {
1800118095
"tags": [
@@ -23323,6 +23417,14 @@
2332323417
"minimum": 0
2332423418
}
2332523419
},
23420+
{
23421+
"in": "query",
23422+
"name": "order_independent_transparency",
23423+
"description": "Enables nicer visuals for transparent surfaces. This slows down rendering, so it's off by default.",
23424+
"schema": {
23425+
"type": "boolean"
23426+
}
23427+
},
2332623428
{
2332723429
"in": "query",
2332823430
"name": "pool",
@@ -26738,11 +26840,6 @@
2673826840
"type": "number",
2673926841
"format": "money-usd"
2674026842
},
26741-
"deleted": {
26742-
"description": "Always true for a deleted object.",
26743-
"default": false,
26744-
"type": "boolean"
26745-
},
2674626843
"id": {
2674726844
"description": "Unique identifier for the object.",
2674826845
"type": "string"
@@ -30320,6 +30417,13 @@
3032030417
"enum": [
3032130418
"void"
3032230419
]
30420+
},
30421+
{
30422+
"description": "Unknown.",
30423+
"type": "string",
30424+
"enum": [
30425+
"unknown"
30426+
]
3032330427
}
3032430428
]
3032530429
},
@@ -31252,6 +31356,13 @@
3125231356
"enum": [
3125331357
"bye"
3125431358
]
31359+
},
31360+
{
31361+
"description": "Interrupt the current prompt that is being processed.",
31362+
"type": "string",
31363+
"enum": [
31364+
"interrupt"
31365+
]
3125531366
}
3125631367
]
3125731368
},
@@ -33740,6 +33851,15 @@
3374033851
"type": "number",
3374133852
"format": "float"
3374233853
},
33854+
"backface_color": {
33855+
"nullable": true,
33856+
"description": "Color of the backface",
33857+
"allOf": [
33858+
{
33859+
"$ref": "#/components/schemas/Color"
33860+
}
33861+
]
33862+
},
3374333863
"color": {
3374433864
"description": "Color of the new material",
3374533865
"allOf": [
@@ -36122,6 +36242,26 @@
3612236242
"required": [
3612336243
"type"
3612436244
]
36245+
},
36246+
{
36247+
"description": "Render transparent surfaces more accurately, but this might make rendering slower. Because it can interfere with runtime performance, it defaults to false.",
36248+
"type": "object",
36249+
"properties": {
36250+
"enabled": {
36251+
"nullable": true,
36252+
"description": "Enables or disables OIT. If not given, toggles it.",
36253+
"type": "boolean"
36254+
},
36255+
"type": {
36256+
"type": "string",
36257+
"enum": [
36258+
"set_order_independent_transparency"
36259+
]
36260+
}
36261+
},
36262+
"required": [
36263+
"type"
36264+
]
3612536265
}
3612636266
]
3612736267
},
@@ -38810,6 +38950,24 @@
3881038950
"data",
3881138951
"type"
3881238952
]
38953+
},
38954+
{
38955+
"type": "object",
38956+
"properties": {
38957+
"data": {
38958+
"$ref": "#/components/schemas/SetOrderIndependentTransparency"
38959+
},
38960+
"type": {
38961+
"type": "string",
38962+
"enum": [
38963+
"set_order_independent_transparency"
38964+
]
38965+
}
38966+
},
38967+
"required": [
38968+
"data",
38969+
"type"
38970+
]
3881338971
}
3881438972
]
3881538973
},
@@ -41034,6 +41192,13 @@
4103441192
"enum": [
4103541193
"year"
4103641194
]
41195+
},
41196+
{
41197+
"description": "Don't use.",
41198+
"type": "string",
41199+
"enum": [
41200+
"unknown"
41201+
]
4103741202
}
4103841203
]
4103941204
},
@@ -42161,6 +42326,19 @@
4216142326
"description": "The response from the `SetObjectTransform` command.",
4216242327
"type": "object"
4216342328
},
42329+
"SetOrderIndependentTransparency": {
42330+
"description": "The response from the 'SetOrderIndependentTransparency'.",
42331+
"type": "object",
42332+
"properties": {
42333+
"enabled": {
42334+
"description": "Is it now enabled, or disabled?",
42335+
"type": "boolean"
42336+
}
42337+
},
42338+
"required": [
42339+
"enabled"
42340+
]
42341+
},
4216442342
"SetSceneUnits": {
4216542343
"description": "The response from the `SetSceneUnits` endpoint.",
4216642344
"type": "object"
@@ -46180,6 +46358,35 @@
4618046358
"payment_methods_summary"
4618146359
]
4618246360
},
46361+
"UserFeatureEntry": {
46362+
"description": "Enabled features surfaced to end users.",
46363+
"type": "object",
46364+
"properties": {
46365+
"id": {
46366+
"description": "Stable identifier for the feature flag (snake_case).",
46367+
"type": "string"
46368+
}
46369+
},
46370+
"required": [
46371+
"id"
46372+
]
46373+
},
46374+
"UserFeatureList": {
46375+
"description": "User features response payload.",
46376+
"type": "object",
46377+
"properties": {
46378+
"features": {
46379+
"description": "Features that are active and safe to expose to the current user.",
46380+
"type": "array",
46381+
"items": {
46382+
"$ref": "#/components/schemas/UserFeatureEntry"
46383+
}
46384+
}
46385+
},
46386+
"required": [
46387+
"features"
46388+
]
46389+
},
4618346390
"UserIdentifier": {
4618446391
"type": "string"
4618546392
},

0 commit comments

Comments
 (0)