@shipeasy/openapi 1.5.0 → 2.1.0
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/README.md +37 -0
- package/dist/chunk-EPLLHLZN.js +1616 -0
- package/dist/chunk-EPLLHLZN.js.map +1 -0
- package/dist/chunk-SPH5HWCD.js +3326 -0
- package/dist/chunk-SPH5HWCD.js.map +1 -0
- package/dist/client-pVkoo3Bf.d.ts +11186 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +215 -0
- package/dist/client.js.map +1 -0
- package/dist/custom.d.ts +64 -0
- package/dist/custom.js +292 -0
- package/dist/custom.js.map +1 -0
- package/dist/index.d.ts +29 -17
- package/dist/index.js +253 -2458
- package/dist/index.js.map +1 -0
- package/dist/node-context.d.ts +85 -0
- package/dist/node-context.js +110 -0
- package/dist/node-context.js.map +1 -0
- package/dist/schemas.d.ts +7920 -0
- package/dist/schemas.js +1083 -0
- package/dist/schemas.js.map +1 -0
- package/openapi.json +15297 -3044
- package/openapi.yaml +13979 -0
- package/package.json +37 -21
- package/spec/components/errors.yaml +53 -0
- package/spec/components/parameters.yaml +24 -0
- package/spec/components/responses.yaml +107 -0
- package/spec/components/schemas/alert-rules.yaml +175 -0
- package/spec/components/schemas/attributes.yaml +157 -0
- package/spec/components/schemas/common.yaml +87 -0
- package/spec/components/schemas/configs.yaml +371 -0
- package/spec/components/schemas/connectors.yaml +593 -0
- package/spec/components/schemas/errors-api.yaml +209 -0
- package/spec/components/schemas/events.yaml +321 -0
- package/spec/components/schemas/experiments.yaml +865 -0
- package/spec/components/schemas/gate-templates.yaml +198 -0
- package/spec/components/schemas/gates.yaml +890 -0
- package/spec/components/schemas/i18n.yaml +478 -0
- package/spec/components/schemas/keys.yaml +186 -0
- package/spec/components/schemas/killswitches.yaml +309 -0
- package/spec/components/schemas/metrics.yaml +547 -0
- package/spec/components/schemas/ops.yaml +1011 -0
- package/spec/components/schemas/projects.yaml +222 -0
- package/spec/components/schemas/search.yaml +46 -0
- package/spec/components/schemas/universes.yaml +127 -0
- package/spec/openapi.yaml +348 -0
- package/spec/paths/alert-rules.yaml +250 -0
- package/spec/paths/attributes.yaml +261 -0
- package/spec/paths/configs.yaml +744 -0
- package/spec/paths/connectors.yaml +748 -0
- package/spec/paths/errors.yaml +382 -0
- package/spec/paths/events.yaml +366 -0
- package/spec/paths/experiments.yaml +777 -0
- package/spec/paths/gate-templates.yaml +263 -0
- package/spec/paths/gates.yaml +451 -0
- package/spec/paths/i18n.yaml +544 -0
- package/spec/paths/keys.yaml +181 -0
- package/spec/paths/killswitches.yaml +557 -0
- package/spec/paths/metrics.yaml +302 -0
- package/spec/paths/ops.yaml +446 -0
- package/spec/paths/projects.yaml +210 -0
- package/spec/paths/search.yaml +62 -0
- package/spec/paths/universes.yaml +247 -0
- package/dist/resources/alert-rules.d.ts +0 -50
- package/dist/resources/alert-rules.js +0 -75
- package/dist/resources/configs.d.ts +0 -681
- package/dist/resources/configs.js +0 -509
- package/dist/resources/experiments.d.ts +0 -849
- package/dist/resources/experiments.js +0 -707
- package/dist/resources/gates.d.ts +0 -808
- package/dist/resources/gates.js +0 -522
- package/dist/resources/index.d.ts +0 -2749
- package/dist/resources/index.js +0 -2391
- package/dist/resources/killswitches.d.ts +0 -436
- package/dist/resources/killswitches.js +0 -514
- package/dist/resources/universes.d.ts +0 -185
- package/dist/resources/universes.js +0 -234
- package/dist/schemas/alert-rules.d.ts +0 -65
- package/dist/schemas/alert-rules.js +0 -37
- package/dist/schemas/configs.d.ts +0 -154
- package/dist/schemas/configs.js +0 -134
- package/dist/schemas/constants.d.ts +0 -6
- package/dist/schemas/constants.js +0 -7
- package/dist/schemas/experiments.d.ts +0 -229
- package/dist/schemas/experiments.js +0 -221
- package/dist/schemas/folder.d.ts +0 -10
- package/dist/schemas/folder.js +0 -8
- package/dist/schemas/gates.d.ts +0 -386
- package/dist/schemas/gates.js +0 -190
- package/dist/schemas/index.d.ts +0 -11
- package/dist/schemas/index.js +0 -762
- package/dist/schemas/killswitches.d.ts +0 -110
- package/dist/schemas/killswitches.js +0 -226
- package/dist/schemas/metric-name.d.ts +0 -5
- package/dist/schemas/metric-name.js +0 -6
- package/dist/schemas/pagination.d.ts +0 -37
- package/dist/schemas/pagination.js +0 -44
- package/dist/schemas/universes.d.ts +0 -35
- package/dist/schemas/universes.js +0 -55
- package/dist/transport.d.ts +0 -30
- package/dist/transport.js +0 -44
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
ListKillswitchesResponse:
|
|
2
|
+
type: object
|
|
3
|
+
properties:
|
|
4
|
+
data:
|
|
5
|
+
type: array
|
|
6
|
+
items:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
id:
|
|
10
|
+
type: string
|
|
11
|
+
description: Stable opaque killswitch id.
|
|
12
|
+
name:
|
|
13
|
+
type: string
|
|
14
|
+
maxLength: 128
|
|
15
|
+
description: Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
|
|
16
|
+
description:
|
|
17
|
+
anyOf:
|
|
18
|
+
- type: string
|
|
19
|
+
- type: "null"
|
|
20
|
+
description: Free-form description or `null`.
|
|
21
|
+
updatedAt:
|
|
22
|
+
type: string
|
|
23
|
+
description: ISO-8601 timestamp of last mutation.
|
|
24
|
+
envs:
|
|
25
|
+
type: object
|
|
26
|
+
additionalProperties:
|
|
27
|
+
type: object
|
|
28
|
+
properties:
|
|
29
|
+
value:
|
|
30
|
+
type: boolean
|
|
31
|
+
description: Flat boolean published for this env.
|
|
32
|
+
switches:
|
|
33
|
+
type: object
|
|
34
|
+
additionalProperties:
|
|
35
|
+
type: boolean
|
|
36
|
+
version:
|
|
37
|
+
type: integer
|
|
38
|
+
minimum: -9007199254740991
|
|
39
|
+
maximum: 9007199254740991
|
|
40
|
+
description: Monotonically increasing version per env.
|
|
41
|
+
publishedAt:
|
|
42
|
+
type: string
|
|
43
|
+
description: ISO-8601 publish timestamp for this version.
|
|
44
|
+
publishedBy:
|
|
45
|
+
anyOf:
|
|
46
|
+
- type: string
|
|
47
|
+
- type: "null"
|
|
48
|
+
description: Email/id of the actor who published this version.
|
|
49
|
+
required:
|
|
50
|
+
- value
|
|
51
|
+
- version
|
|
52
|
+
- publishedAt
|
|
53
|
+
additionalProperties: false
|
|
54
|
+
description: Per-env latest value, switches, version, and publish timestamp.
|
|
55
|
+
required:
|
|
56
|
+
- id
|
|
57
|
+
- name
|
|
58
|
+
- description
|
|
59
|
+
- updatedAt
|
|
60
|
+
- envs
|
|
61
|
+
additionalProperties: false
|
|
62
|
+
next_cursor:
|
|
63
|
+
anyOf:
|
|
64
|
+
- type: string
|
|
65
|
+
- type: "null"
|
|
66
|
+
required:
|
|
67
|
+
- data
|
|
68
|
+
- next_cursor
|
|
69
|
+
additionalProperties: false
|
|
70
|
+
GetKillswitchResponse:
|
|
71
|
+
type: object
|
|
72
|
+
properties:
|
|
73
|
+
id:
|
|
74
|
+
type: string
|
|
75
|
+
description: Stable opaque killswitch id.
|
|
76
|
+
name:
|
|
77
|
+
type: string
|
|
78
|
+
maxLength: 128
|
|
79
|
+
description: Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
|
|
80
|
+
description:
|
|
81
|
+
anyOf:
|
|
82
|
+
- type: string
|
|
83
|
+
- type: "null"
|
|
84
|
+
description: Free-form description or `null`.
|
|
85
|
+
updatedAt:
|
|
86
|
+
type: string
|
|
87
|
+
description: ISO-8601 timestamp of last mutation.
|
|
88
|
+
envs:
|
|
89
|
+
type: object
|
|
90
|
+
additionalProperties:
|
|
91
|
+
type: object
|
|
92
|
+
properties:
|
|
93
|
+
value:
|
|
94
|
+
type: boolean
|
|
95
|
+
description: Flat boolean published for this env.
|
|
96
|
+
switches:
|
|
97
|
+
type: object
|
|
98
|
+
additionalProperties:
|
|
99
|
+
type: boolean
|
|
100
|
+
version:
|
|
101
|
+
type: integer
|
|
102
|
+
minimum: -9007199254740991
|
|
103
|
+
maximum: 9007199254740991
|
|
104
|
+
description: Monotonically increasing version per env.
|
|
105
|
+
publishedAt:
|
|
106
|
+
type: string
|
|
107
|
+
description: ISO-8601 publish timestamp for this version.
|
|
108
|
+
publishedBy:
|
|
109
|
+
anyOf:
|
|
110
|
+
- type: string
|
|
111
|
+
- type: "null"
|
|
112
|
+
description: Email/id of the actor who published this version.
|
|
113
|
+
required:
|
|
114
|
+
- value
|
|
115
|
+
- version
|
|
116
|
+
- publishedAt
|
|
117
|
+
additionalProperties: false
|
|
118
|
+
description: Per-env latest value, switches, version, and publish timestamp.
|
|
119
|
+
required:
|
|
120
|
+
- id
|
|
121
|
+
- name
|
|
122
|
+
- description
|
|
123
|
+
- updatedAt
|
|
124
|
+
- envs
|
|
125
|
+
additionalProperties: false
|
|
126
|
+
CreateKillswitchRequest:
|
|
127
|
+
type: object
|
|
128
|
+
properties:
|
|
129
|
+
name:
|
|
130
|
+
$ref: ./common.yaml#/ConfigName
|
|
131
|
+
description:
|
|
132
|
+
description: Optional free-form description shown in the dashboard. Max 512 chars.
|
|
133
|
+
type: string
|
|
134
|
+
maxLength: 512
|
|
135
|
+
folder:
|
|
136
|
+
$ref: ./common.yaml#/Folder
|
|
137
|
+
value:
|
|
138
|
+
description: Default value applied to every env at creation. Defaults to `false`. Use `true` to ship the killswitch pre-tripped.
|
|
139
|
+
type: boolean
|
|
140
|
+
switches:
|
|
141
|
+
description: Initial per-switch overrides applied to every env. Empty/omitted leaves the killswitch with only the flat `value`.
|
|
142
|
+
type: object
|
|
143
|
+
additionalProperties:
|
|
144
|
+
type: boolean
|
|
145
|
+
required:
|
|
146
|
+
- name
|
|
147
|
+
additionalProperties: false
|
|
148
|
+
description: Body for `POST /api/admin/killswitches`. Only `name` is required.
|
|
149
|
+
CreateKillswitchResponse:
|
|
150
|
+
type: object
|
|
151
|
+
properties:
|
|
152
|
+
id:
|
|
153
|
+
type: string
|
|
154
|
+
description: Newly assigned killswitch id.
|
|
155
|
+
name:
|
|
156
|
+
type: string
|
|
157
|
+
maxLength: 128
|
|
158
|
+
description: Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
|
|
159
|
+
required:
|
|
160
|
+
- id
|
|
161
|
+
- name
|
|
162
|
+
additionalProperties: false
|
|
163
|
+
UpdateKillswitchRequest:
|
|
164
|
+
type: object
|
|
165
|
+
properties:
|
|
166
|
+
description:
|
|
167
|
+
description: New description, or `null` to clear it. Max 512 chars.
|
|
168
|
+
anyOf:
|
|
169
|
+
- type: string
|
|
170
|
+
maxLength: 512
|
|
171
|
+
- type: "null"
|
|
172
|
+
folder:
|
|
173
|
+
$ref: ./common.yaml#/Folder
|
|
174
|
+
value:
|
|
175
|
+
description: Flat value applied to every env. Publishes a new version per env when set. Omit to leave values unchanged.
|
|
176
|
+
type: boolean
|
|
177
|
+
switches:
|
|
178
|
+
description: Replace the switches map wholesale on every env. To edit a single entry on a single env use `PUT /{id}/switch` instead.
|
|
179
|
+
type: object
|
|
180
|
+
additionalProperties:
|
|
181
|
+
type: boolean
|
|
182
|
+
additionalProperties: false
|
|
183
|
+
description: Body for `PATCH /api/admin/killswitches/{id}`. Partial — only supplied fields change. `switches` replaces wholesale (no merge).
|
|
184
|
+
UpdateKillswitchResponse:
|
|
185
|
+
type: object
|
|
186
|
+
properties:
|
|
187
|
+
id:
|
|
188
|
+
type: string
|
|
189
|
+
description: Killswitch id that was updated.
|
|
190
|
+
required:
|
|
191
|
+
- id
|
|
192
|
+
additionalProperties: false
|
|
193
|
+
DeleteKillswitchResponse:
|
|
194
|
+
type: object
|
|
195
|
+
properties:
|
|
196
|
+
ok:
|
|
197
|
+
type: boolean
|
|
198
|
+
const: true
|
|
199
|
+
required:
|
|
200
|
+
- ok
|
|
201
|
+
additionalProperties: false
|
|
202
|
+
SetKillswitchSwitchRequest:
|
|
203
|
+
type: object
|
|
204
|
+
properties:
|
|
205
|
+
env:
|
|
206
|
+
$ref: ./common.yaml#/Env
|
|
207
|
+
switchKey:
|
|
208
|
+
type: string
|
|
209
|
+
maxLength: 64
|
|
210
|
+
pattern: ^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$
|
|
211
|
+
description: Switch key to set.
|
|
212
|
+
value:
|
|
213
|
+
type: boolean
|
|
214
|
+
description: New boolean value for this `switchKey` on this `env`.
|
|
215
|
+
required:
|
|
216
|
+
- env
|
|
217
|
+
- switchKey
|
|
218
|
+
- value
|
|
219
|
+
additionalProperties: false
|
|
220
|
+
description: Body for `PUT /api/admin/killswitches/{id}/switch`. Sets or updates one switch entry on one env.
|
|
221
|
+
SetKillswitchSwitchResponse:
|
|
222
|
+
type: object
|
|
223
|
+
properties:
|
|
224
|
+
id:
|
|
225
|
+
type: string
|
|
226
|
+
env:
|
|
227
|
+
$ref: ./common.yaml#/Env
|
|
228
|
+
switchKey:
|
|
229
|
+
type: string
|
|
230
|
+
maxLength: 64
|
|
231
|
+
pattern: ^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$
|
|
232
|
+
description: Single-segment switch key (lowercase letters, digits, `_`/`-`; no dots). Used as the nested switch entry inside a killswitch's `switches` map.
|
|
233
|
+
value:
|
|
234
|
+
type: boolean
|
|
235
|
+
required:
|
|
236
|
+
- id
|
|
237
|
+
- env
|
|
238
|
+
- switchKey
|
|
239
|
+
- value
|
|
240
|
+
additionalProperties: false
|
|
241
|
+
UnsetKillswitchSwitchRequest:
|
|
242
|
+
type: object
|
|
243
|
+
properties:
|
|
244
|
+
env:
|
|
245
|
+
$ref: ./common.yaml#/Env
|
|
246
|
+
switchKey:
|
|
247
|
+
type: string
|
|
248
|
+
maxLength: 64
|
|
249
|
+
pattern: ^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$
|
|
250
|
+
description: Switch key to remove.
|
|
251
|
+
required:
|
|
252
|
+
- env
|
|
253
|
+
- switchKey
|
|
254
|
+
additionalProperties: false
|
|
255
|
+
description: Body for `DELETE /api/admin/killswitches/{id}/switch`. Removes one switch entry from one env.
|
|
256
|
+
UnsetKillswitchSwitchResponse:
|
|
257
|
+
type: object
|
|
258
|
+
properties:
|
|
259
|
+
id:
|
|
260
|
+
type: string
|
|
261
|
+
env:
|
|
262
|
+
$ref: ./common.yaml#/Env
|
|
263
|
+
switchKey:
|
|
264
|
+
type: string
|
|
265
|
+
maxLength: 64
|
|
266
|
+
pattern: ^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$
|
|
267
|
+
description: Single-segment switch key (lowercase letters, digits, `_`/`-`; no dots). Used as the nested switch entry inside a killswitch's `switches` map.
|
|
268
|
+
removed:
|
|
269
|
+
type: boolean
|
|
270
|
+
description: "`true` if the entry existed and was removed, `false` if no-op."
|
|
271
|
+
required:
|
|
272
|
+
- id
|
|
273
|
+
- env
|
|
274
|
+
- switchKey
|
|
275
|
+
- removed
|
|
276
|
+
additionalProperties: false
|
|
277
|
+
SetKillswitchValueRequest:
|
|
278
|
+
type: object
|
|
279
|
+
properties:
|
|
280
|
+
env:
|
|
281
|
+
$ref: ./common.yaml#/Env
|
|
282
|
+
value:
|
|
283
|
+
type: boolean
|
|
284
|
+
description: Flat boolean to publish on `env`. Publishes a new version on that env only.
|
|
285
|
+
required:
|
|
286
|
+
- env
|
|
287
|
+
- value
|
|
288
|
+
additionalProperties: false
|
|
289
|
+
description: Body for `PUT /api/admin/killswitches/{id}/value`. Sets the flat `value` on one env without touching `switches` or other envs.
|
|
290
|
+
SetKillswitchValueResponse:
|
|
291
|
+
type: object
|
|
292
|
+
properties:
|
|
293
|
+
id:
|
|
294
|
+
type: string
|
|
295
|
+
env:
|
|
296
|
+
$ref: ./common.yaml#/Env
|
|
297
|
+
version:
|
|
298
|
+
type: integer
|
|
299
|
+
minimum: -9007199254740991
|
|
300
|
+
maximum: 9007199254740991
|
|
301
|
+
description: Newly published version on `env`.
|
|
302
|
+
published:
|
|
303
|
+
$ref: ./common.yaml#/KillswitchValue
|
|
304
|
+
required:
|
|
305
|
+
- id
|
|
306
|
+
- env
|
|
307
|
+
- version
|
|
308
|
+
- published
|
|
309
|
+
additionalProperties: false
|