@tlecommunity/api-spec 1.6.8 → 1.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/spec.json +115 -49
- package/package.json +1 -1
package/build/spec.json
CHANGED
|
@@ -45202,7 +45202,7 @@
|
|
|
45202
45202
|
"description": "Removes sitters from being permitted to sit this account.",
|
|
45203
45203
|
"responses": {
|
|
45204
45204
|
"200": {
|
|
45205
|
-
"description": "Removes sitters from being permitted to sit this account.",
|
|
45205
|
+
"description": "Removes sitters from being permitted to sit this account. Returns the same list as view_authorized_sitters.",
|
|
45206
45206
|
"content": {
|
|
45207
45207
|
"application/json": {
|
|
45208
45208
|
"schema": {
|
|
@@ -45217,9 +45217,32 @@
|
|
|
45217
45217
|
"result": {
|
|
45218
45218
|
"type": "object",
|
|
45219
45219
|
"required": [
|
|
45220
|
+
"sitters",
|
|
45220
45221
|
"status"
|
|
45221
45222
|
],
|
|
45222
45223
|
"properties": {
|
|
45224
|
+
"sitters": {
|
|
45225
|
+
"type": "array",
|
|
45226
|
+
"items": {
|
|
45227
|
+
"type": "object",
|
|
45228
|
+
"required": [
|
|
45229
|
+
"id",
|
|
45230
|
+
"name",
|
|
45231
|
+
"expiry"
|
|
45232
|
+
],
|
|
45233
|
+
"properties": {
|
|
45234
|
+
"id": {
|
|
45235
|
+
"type": "integer"
|
|
45236
|
+
},
|
|
45237
|
+
"name": {
|
|
45238
|
+
"type": "string"
|
|
45239
|
+
},
|
|
45240
|
+
"expiry": {
|
|
45241
|
+
"type": "string"
|
|
45242
|
+
}
|
|
45243
|
+
}
|
|
45244
|
+
}
|
|
45245
|
+
},
|
|
45223
45246
|
"status": {
|
|
45224
45247
|
"type": "object",
|
|
45225
45248
|
"properties": {
|
|
@@ -45260,16 +45283,21 @@
|
|
|
45260
45283
|
"application/json": {
|
|
45261
45284
|
"schema": {
|
|
45262
45285
|
"type": "object",
|
|
45263
|
-
"
|
|
45264
|
-
"empires"
|
|
45265
|
-
],
|
|
45286
|
+
"description": "Either `empires` or `deauthorize_all` must be provided.",
|
|
45266
45287
|
"properties": {
|
|
45267
45288
|
"empires": {
|
|
45268
45289
|
"type": "array",
|
|
45269
45290
|
"items": {
|
|
45270
45291
|
"type": "string"
|
|
45271
45292
|
},
|
|
45272
|
-
"description": "The ids (not names) of specific empires being removed."
|
|
45293
|
+
"description": "The ids (not names) of specific empires being removed. Takes precedence over deauthorize_all."
|
|
45294
|
+
},
|
|
45295
|
+
"deauthorize_all": {
|
|
45296
|
+
"type": "integer",
|
|
45297
|
+
"enum": [
|
|
45298
|
+
1
|
|
45299
|
+
],
|
|
45300
|
+
"description": "Removes every authorized sitter. Ignored if empires is given. Any value (even 0) is treated as true, so omit it rather than sending 0."
|
|
45273
45301
|
}
|
|
45274
45302
|
}
|
|
45275
45303
|
}
|
|
@@ -62694,7 +62722,7 @@
|
|
|
62694
62722
|
}
|
|
62695
62723
|
}
|
|
62696
62724
|
},
|
|
62697
|
-
"
|
|
62725
|
+
"save_ids": {
|
|
62698
62726
|
"type": "boolean",
|
|
62699
62727
|
"description": "When true, the trashed message ids are gathered and returned in `deleted`. Off by default, since gathering them adds server work and response size; `deleted_count` is returned either way."
|
|
62700
62728
|
}
|
|
@@ -62729,7 +62757,7 @@
|
|
|
62729
62757
|
"items": {
|
|
62730
62758
|
"type": "integer"
|
|
62731
62759
|
},
|
|
62732
|
-
"description": "Only present when
|
|
62760
|
+
"description": "Only present when save_ids is true."
|
|
62733
62761
|
},
|
|
62734
62762
|
"deleted_count": {
|
|
62735
62763
|
"type": "integer"
|
|
@@ -161028,54 +161056,41 @@
|
|
|
161028
161056
|
"description": "The bodies known to the empire, grouped by relationship.",
|
|
161029
161057
|
"properties": {
|
|
161030
161058
|
"colonies": {
|
|
161031
|
-
"
|
|
161032
|
-
|
|
161033
|
-
|
|
161059
|
+
"$ref": "#/components/schemas/bodies_list"
|
|
161060
|
+
},
|
|
161061
|
+
"mystations": {
|
|
161062
|
+
"$ref": "#/components/schemas/bodies_list"
|
|
161063
|
+
},
|
|
161064
|
+
"ourstations": {
|
|
161065
|
+
"$ref": "#/components/schemas/bodies_list"
|
|
161066
|
+
},
|
|
161067
|
+
"babies": {
|
|
161068
|
+
"type": "object",
|
|
161069
|
+
"description": "Empires that can be managed by this empire, keyed by id",
|
|
161070
|
+
"additionalProperties": {
|
|
161034
161071
|
"type": "object",
|
|
161072
|
+
"required": [
|
|
161073
|
+
"id",
|
|
161074
|
+
"planets",
|
|
161075
|
+
"sitter_expiry"
|
|
161076
|
+
],
|
|
161035
161077
|
"properties": {
|
|
161036
|
-
"empire_name": {
|
|
161037
|
-
"type": "string"
|
|
161038
|
-
},
|
|
161039
|
-
"x": {
|
|
161040
|
-
"type": "integer"
|
|
161041
|
-
},
|
|
161042
|
-
"name": {
|
|
161043
|
-
"type": "string"
|
|
161044
|
-
},
|
|
161045
|
-
"empire_id": {
|
|
161046
|
-
"type": "integer"
|
|
161047
|
-
},
|
|
161048
|
-
"star_id": {
|
|
161049
|
-
"type": "integer"
|
|
161050
|
-
},
|
|
161051
|
-
"star_name": {
|
|
161052
|
-
"type": "string"
|
|
161053
|
-
},
|
|
161054
|
-
"y": {
|
|
161055
|
-
"type": "integer"
|
|
161056
|
-
},
|
|
161057
161078
|
"id": {
|
|
161058
|
-
"type": "
|
|
161079
|
+
"type": "number",
|
|
161080
|
+
"description": "The id of the baby empire"
|
|
161059
161081
|
},
|
|
161060
|
-
"
|
|
161061
|
-
"type": "
|
|
161082
|
+
"alliance_id": {
|
|
161083
|
+
"type": "number",
|
|
161084
|
+
"description": "The id of the alliance the baby empire is a member of"
|
|
161062
161085
|
},
|
|
161063
|
-
"
|
|
161064
|
-
"type": "string"
|
|
161086
|
+
"sitter_expiry": {
|
|
161087
|
+
"type": "string",
|
|
161088
|
+
"description": "The date whereupon this baby will case to be managed by the empire"
|
|
161089
|
+
},
|
|
161090
|
+
"planets": {
|
|
161091
|
+
"$ref": "#/components/schemas/bodies_list"
|
|
161065
161092
|
}
|
|
161066
|
-
}
|
|
161067
|
-
"required": [
|
|
161068
|
-
"empire_name",
|
|
161069
|
-
"x",
|
|
161070
|
-
"name",
|
|
161071
|
-
"empire_id",
|
|
161072
|
-
"star_id",
|
|
161073
|
-
"star_name",
|
|
161074
|
-
"y",
|
|
161075
|
-
"id",
|
|
161076
|
-
"orbit",
|
|
161077
|
-
"zone"
|
|
161078
|
-
]
|
|
161093
|
+
}
|
|
161079
161094
|
}
|
|
161080
161095
|
}
|
|
161081
161096
|
},
|
|
@@ -161115,6 +161130,57 @@
|
|
|
161115
161130
|
"tech_level"
|
|
161116
161131
|
]
|
|
161117
161132
|
},
|
|
161133
|
+
"bodies_list": {
|
|
161134
|
+
"type": "array",
|
|
161135
|
+
"description": "A list of colonies or stations.",
|
|
161136
|
+
"items": {
|
|
161137
|
+
"type": "object",
|
|
161138
|
+
"properties": {
|
|
161139
|
+
"empire_name": {
|
|
161140
|
+
"type": "string"
|
|
161141
|
+
},
|
|
161142
|
+
"x": {
|
|
161143
|
+
"type": "integer"
|
|
161144
|
+
},
|
|
161145
|
+
"name": {
|
|
161146
|
+
"type": "string"
|
|
161147
|
+
},
|
|
161148
|
+
"empire_id": {
|
|
161149
|
+
"type": "integer"
|
|
161150
|
+
},
|
|
161151
|
+
"star_id": {
|
|
161152
|
+
"type": "integer"
|
|
161153
|
+
},
|
|
161154
|
+
"star_name": {
|
|
161155
|
+
"type": "string"
|
|
161156
|
+
},
|
|
161157
|
+
"y": {
|
|
161158
|
+
"type": "integer"
|
|
161159
|
+
},
|
|
161160
|
+
"id": {
|
|
161161
|
+
"type": "integer"
|
|
161162
|
+
},
|
|
161163
|
+
"orbit": {
|
|
161164
|
+
"type": "integer"
|
|
161165
|
+
},
|
|
161166
|
+
"zone": {
|
|
161167
|
+
"type": "string"
|
|
161168
|
+
}
|
|
161169
|
+
},
|
|
161170
|
+
"required": [
|
|
161171
|
+
"empire_name",
|
|
161172
|
+
"x",
|
|
161173
|
+
"name",
|
|
161174
|
+
"empire_id",
|
|
161175
|
+
"star_id",
|
|
161176
|
+
"star_name",
|
|
161177
|
+
"y",
|
|
161178
|
+
"id",
|
|
161179
|
+
"orbit",
|
|
161180
|
+
"zone"
|
|
161181
|
+
]
|
|
161182
|
+
}
|
|
161183
|
+
},
|
|
161118
161184
|
"building_cost": {
|
|
161119
161185
|
"type": "object",
|
|
161120
161186
|
"description": "The resource and time cost of a build or upgrade.",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tlecommunity/api-spec",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.10",
|
|
5
5
|
"description": "Open API specification for TLE Community",
|
|
6
6
|
"author": "Natalie Rose <natalie@omg.lol> (https://nataliethistime.com)",
|
|
7
7
|
"license": "GPL-3.0-only",
|