@shipeasy/openapi 1.6.0 → 2.2.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.
Files changed (151) hide show
  1. package/README.md +37 -0
  2. package/dist/chunk-643YSMLU.js +1616 -0
  3. package/dist/chunk-643YSMLU.js.map +1 -0
  4. package/dist/chunk-MRW3DJ57.js +3385 -0
  5. package/dist/chunk-MRW3DJ57.js.map +1 -0
  6. package/dist/client-K0ShmsC7.d.ts +11284 -0
  7. package/dist/client.d.ts +1 -0
  8. package/dist/client.js +215 -0
  9. package/dist/client.js.map +1 -0
  10. package/dist/custom.d.ts +86 -0
  11. package/dist/custom.js +300 -0
  12. package/dist/custom.js.map +1 -0
  13. package/dist/index.d.ts +29 -41
  14. package/dist/index.js +258 -4375
  15. package/dist/index.js.map +1 -0
  16. package/dist/node-context.d.ts +81 -33
  17. package/dist/node-context.js +98 -44
  18. package/dist/node-context.js.map +1 -0
  19. package/dist/schemas.d.ts +7973 -0
  20. package/dist/schemas.js +1099 -0
  21. package/dist/schemas.js.map +1 -0
  22. package/openapi.json +15922 -3232
  23. package/openapi.yaml +14277 -0
  24. package/package.json +33 -26
  25. package/spec/components/errors.yaml +53 -0
  26. package/spec/components/parameters.yaml +32 -0
  27. package/spec/components/responses.yaml +122 -0
  28. package/spec/components/schemas/alert-rules.yaml +175 -0
  29. package/spec/components/schemas/attributes.yaml +157 -0
  30. package/spec/components/schemas/common.yaml +92 -0
  31. package/spec/components/schemas/configs.yaml +371 -0
  32. package/spec/components/schemas/connectors.yaml +587 -0
  33. package/spec/components/schemas/errors-api.yaml +209 -0
  34. package/spec/components/schemas/events.yaml +321 -0
  35. package/spec/components/schemas/experiments.yaml +865 -0
  36. package/spec/components/schemas/gate-templates.yaml +237 -0
  37. package/spec/components/schemas/gates.yaml +890 -0
  38. package/spec/components/schemas/i18n.yaml +478 -0
  39. package/spec/components/schemas/keys.yaml +186 -0
  40. package/spec/components/schemas/killswitches.yaml +309 -0
  41. package/spec/components/schemas/metrics.yaml +547 -0
  42. package/spec/components/schemas/ops.yaml +1013 -0
  43. package/spec/components/schemas/projects.yaml +222 -0
  44. package/spec/components/schemas/search.yaml +46 -0
  45. package/spec/components/schemas/universes.yaml +127 -0
  46. package/spec/openapi.yaml +367 -0
  47. package/spec/paths/alert-rules.yaml +258 -0
  48. package/spec/paths/attributes.yaml +272 -0
  49. package/spec/paths/configs.yaml +758 -0
  50. package/spec/paths/connectors.yaml +782 -0
  51. package/spec/paths/errors.yaml +382 -0
  52. package/spec/paths/events.yaml +380 -0
  53. package/spec/paths/experiments.yaml +803 -0
  54. package/spec/paths/gate-templates.yaml +267 -0
  55. package/spec/paths/gates.yaml +465 -0
  56. package/spec/paths/i18n.yaml +557 -0
  57. package/spec/paths/keys.yaml +182 -0
  58. package/spec/paths/killswitches.yaml +574 -0
  59. package/spec/paths/metrics.yaml +313 -0
  60. package/spec/paths/ops.yaml +446 -0
  61. package/spec/paths/projects.yaml +210 -0
  62. package/spec/paths/search.yaml +62 -0
  63. package/spec/paths/universes.yaml +255 -0
  64. package/dist/operations/attributes.d.ts +0 -33
  65. package/dist/operations/attributes.js +0 -16
  66. package/dist/operations/cli-adapter.d.ts +0 -35
  67. package/dist/operations/cli-adapter.js +0 -91
  68. package/dist/operations/coerce.d.ts +0 -32
  69. package/dist/operations/coerce.js +0 -53
  70. package/dist/operations/configs.d.ts +0 -28
  71. package/dist/operations/configs.js +0 -119
  72. package/dist/operations/docs.d.ts +0 -37
  73. package/dist/operations/docs.js +0 -39
  74. package/dist/operations/events.d.ts +0 -28
  75. package/dist/operations/events.js +0 -121
  76. package/dist/operations/experiments.d.ts +0 -28
  77. package/dist/operations/experiments.js +0 -280
  78. package/dist/operations/gates.d.ts +0 -28
  79. package/dist/operations/gates.js +0 -132
  80. package/dist/operations/i18n.d.ts +0 -28
  81. package/dist/operations/i18n.js +0 -121
  82. package/dist/operations/index.d.ts +0 -63
  83. package/dist/operations/index.js +0 -1751
  84. package/dist/operations/killswitches.d.ts +0 -28
  85. package/dist/operations/killswitches.js +0 -126
  86. package/dist/operations/mcp-adapter.d.ts +0 -35
  87. package/dist/operations/mcp-adapter.js +0 -94
  88. package/dist/operations/metrics.d.ts +0 -30
  89. package/dist/operations/metrics.js +0 -114
  90. package/dist/operations/ops.d.ts +0 -28
  91. package/dist/operations/ops.js +0 -313
  92. package/dist/operations/projects.d.ts +0 -28
  93. package/dist/operations/projects.js +0 -36
  94. package/dist/operations/sdk-docs.d.ts +0 -28
  95. package/dist/operations/sdk-docs.js +0 -160
  96. package/dist/operations/types.d.ts +0 -138
  97. package/dist/operations/types.js +0 -9
  98. package/dist/operations/universes.d.ts +0 -28
  99. package/dist/operations/universes.js +0 -93
  100. package/dist/operations/util.d.ts +0 -33
  101. package/dist/operations/util.js +0 -9
  102. package/dist/resources/alert-rules.d.ts +0 -50
  103. package/dist/resources/alert-rules.js +0 -75
  104. package/dist/resources/attributes.d.ts +0 -19
  105. package/dist/resources/attributes.js +0 -10
  106. package/dist/resources/configs.d.ts +0 -681
  107. package/dist/resources/configs.js +0 -509
  108. package/dist/resources/events.d.ts +0 -61
  109. package/dist/resources/events.js +0 -42
  110. package/dist/resources/experiments.d.ts +0 -849
  111. package/dist/resources/experiments.js +0 -707
  112. package/dist/resources/gates.d.ts +0 -808
  113. package/dist/resources/gates.js +0 -522
  114. package/dist/resources/i18n.d.ts +0 -84
  115. package/dist/resources/i18n.js +0 -60
  116. package/dist/resources/index.d.ts +0 -2767
  117. package/dist/resources/index.js +0 -2563
  118. package/dist/resources/killswitches.d.ts +0 -436
  119. package/dist/resources/killswitches.js +0 -514
  120. package/dist/resources/metrics.d.ts +0 -54
  121. package/dist/resources/metrics.js +0 -40
  122. package/dist/resources/ops.d.ts +0 -88
  123. package/dist/resources/ops.js +0 -36
  124. package/dist/resources/projects.d.ts +0 -54
  125. package/dist/resources/projects.js +0 -14
  126. package/dist/resources/universes.d.ts +0 -185
  127. package/dist/resources/universes.js +0 -234
  128. package/dist/schemas/alert-rules.d.ts +0 -65
  129. package/dist/schemas/alert-rules.js +0 -37
  130. package/dist/schemas/configs.d.ts +0 -154
  131. package/dist/schemas/configs.js +0 -134
  132. package/dist/schemas/constants.d.ts +0 -6
  133. package/dist/schemas/constants.js +0 -7
  134. package/dist/schemas/experiments.d.ts +0 -229
  135. package/dist/schemas/experiments.js +0 -221
  136. package/dist/schemas/folder.d.ts +0 -10
  137. package/dist/schemas/folder.js +0 -8
  138. package/dist/schemas/gates.d.ts +0 -386
  139. package/dist/schemas/gates.js +0 -190
  140. package/dist/schemas/index.d.ts +0 -11
  141. package/dist/schemas/index.js +0 -762
  142. package/dist/schemas/killswitches.d.ts +0 -110
  143. package/dist/schemas/killswitches.js +0 -226
  144. package/dist/schemas/metric-name.d.ts +0 -5
  145. package/dist/schemas/metric-name.js +0 -6
  146. package/dist/schemas/pagination.d.ts +0 -37
  147. package/dist/schemas/pagination.js +0 -44
  148. package/dist/schemas/universes.d.ts +0 -35
  149. package/dist/schemas/universes.js +0 -55
  150. package/dist/transport.d.ts +0 -30
  151. 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