@usestatemachines/sdk 0.7.1 → 0.8.1
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 +75 -30
- package/agents/SKILL.md +24 -9
- package/agents/index.d.ts +2 -0
- package/agents/index.js +8 -6
- package/agents/llms.txt +25 -5
- package/agents/prompt.md +11 -5
- package/esm/extensions/client.d.ts +11 -7
- package/esm/extensions/client.js +32 -49
- package/esm/extensions/credentials.d.ts +25 -8
- package/esm/extensions/credentials.js +75 -40
- package/esm/extensions/environment.d.ts +1 -1
- package/esm/extensions/errors.js +1 -1
- package/esm/extensions/index.d.ts +2 -2
- package/esm/extensions/yaml.js +14 -12
- package/esm/funcs/environments-creators.d.ts +11 -0
- package/esm/funcs/environments-creators.js +90 -0
- package/esm/funcs/environments-list.js +2 -0
- package/esm/funcs/requests-list.js +5 -1
- package/esm/funcs/requests-stats.js +5 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/app-entry.d.ts +8 -0
- package/esm/models/app-entry.js +11 -0
- package/esm/models/create-environment-app.d.ts +25 -0
- package/esm/models/create-environment-app.js +14 -0
- package/esm/models/create-environment.d.ts +3 -26
- package/esm/models/create-environment.js +2 -19
- package/esm/models/credential.d.ts +50 -0
- package/esm/models/credential.js +60 -0
- package/esm/models/credentials.d.ts +26 -5
- package/esm/models/credentials.js +20 -3
- package/esm/models/environment-failure.d.ts +3 -2
- package/esm/models/environment-failure.js +3 -2
- package/esm/models/environment.d.ts +4 -1
- package/esm/models/environment.js +2 -1
- package/esm/models/error.d.ts +1 -0
- package/esm/models/error.js +1 -0
- package/esm/models/index.d.ts +6 -1
- package/esm/models/index.js +6 -1
- package/esm/models/mcp-server.d.ts +11 -0
- package/esm/models/mcp-server.js +16 -0
- package/esm/models/mcp-tool.d.ts +12 -0
- package/esm/models/mcp-tool.js +16 -0
- package/esm/models/me.d.ts +2 -0
- package/esm/models/me.js +2 -0
- package/esm/models/operations/create-credentials.d.ts +2 -0
- package/esm/models/operations/create-credentials.js +1 -0
- package/esm/models/operations/get-request-stats.d.ts +10 -2
- package/esm/models/operations/get-request-stats.js +5 -1
- package/esm/models/operations/index.d.ts +1 -0
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/list-environment-creators.d.ts +23 -0
- package/esm/models/operations/list-environment-creators.js +20 -0
- package/esm/models/operations/list-environments.d.ts +5 -1
- package/esm/models/operations/list-environments.js +2 -0
- package/esm/models/operations/list-requests.d.ts +10 -2
- package/esm/models/operations/list-requests.js +5 -1
- package/esm/models/request-detail.d.ts +8 -1
- package/esm/models/request-detail.js +5 -1
- package/esm/models/request-stats.d.ts +8 -0
- package/esm/models/request-stats.js +9 -0
- package/esm/models/request.d.ts +8 -1
- package/esm/models/request.js +5 -1
- package/esm/models/service.d.ts +25 -0
- package/esm/models/service.js +28 -0
- package/esm/models/snapshot.d.ts +7 -0
- package/esm/models/snapshot.js +3 -0
- package/esm/models/version.d.ts +2 -2
- package/esm/models/version.js +2 -2
- package/esm/sdk/environments.d.ts +1 -0
- package/esm/sdk/environments.js +4 -0
- package/esm/types/discriminated-union.d.ts +24 -0
- package/esm/types/discriminated-union.js +60 -0
- package/esm/types/smart-union.js +2 -1
- package/openapi.json +596 -116
- package/package.json +1 -1
- package/esm/models/api.d.ts +0 -17
- package/esm/models/api.js +0 -21
package/openapi.json
CHANGED
|
@@ -20,67 +20,6 @@
|
|
|
20
20
|
"required": ["id", "name", "summary"],
|
|
21
21
|
"type": "object"
|
|
22
22
|
},
|
|
23
|
-
"Api": {
|
|
24
|
-
"properties": {
|
|
25
|
-
"actorHeader": {
|
|
26
|
-
"maxLength": 200,
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"actorVariable": {
|
|
30
|
-
"maxLength": 200,
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"apiVersions": {
|
|
34
|
-
"items": {
|
|
35
|
-
"maxLength": 32,
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
"maxItems": 200,
|
|
39
|
-
"type": "array"
|
|
40
|
-
},
|
|
41
|
-
"id": {
|
|
42
|
-
"maxLength": 64,
|
|
43
|
-
"minLength": 1,
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
"interactive": {
|
|
47
|
-
"type": "boolean"
|
|
48
|
-
},
|
|
49
|
-
"limitations": {
|
|
50
|
-
"items": {
|
|
51
|
-
"maxLength": 500,
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"maxItems": 50,
|
|
55
|
-
"type": "array"
|
|
56
|
-
},
|
|
57
|
-
"name": {
|
|
58
|
-
"maxLength": 120,
|
|
59
|
-
"minLength": 1,
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
"pathTemplate": {
|
|
63
|
-
"maxLength": 500,
|
|
64
|
-
"type": "string"
|
|
65
|
-
},
|
|
66
|
-
"requestContentType": {
|
|
67
|
-
"maxLength": 200,
|
|
68
|
-
"type": "string"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"required": [
|
|
72
|
-
"id",
|
|
73
|
-
"name",
|
|
74
|
-
"apiVersions",
|
|
75
|
-
"pathTemplate",
|
|
76
|
-
"requestContentType",
|
|
77
|
-
"actorHeader",
|
|
78
|
-
"actorVariable",
|
|
79
|
-
"limitations",
|
|
80
|
-
"interactive"
|
|
81
|
-
],
|
|
82
|
-
"type": "object"
|
|
83
|
-
},
|
|
84
23
|
"App": {
|
|
85
24
|
"properties": {
|
|
86
25
|
"defaultVersionId": {
|
|
@@ -119,6 +58,17 @@
|
|
|
119
58
|
],
|
|
120
59
|
"type": "object"
|
|
121
60
|
},
|
|
61
|
+
"AppEntry": {
|
|
62
|
+
"anyOf": [
|
|
63
|
+
{
|
|
64
|
+
"pattern": "^[a-z][a-z0-9-]{1,39}$",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"$ref": "#/components/schemas/CreateEnvironmentApp"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
122
72
|
"AuditEvent": {
|
|
123
73
|
"properties": {
|
|
124
74
|
"data": {
|
|
@@ -207,31 +157,7 @@
|
|
|
207
157
|
"properties": {
|
|
208
158
|
"apps": {
|
|
209
159
|
"items": {
|
|
210
|
-
"
|
|
211
|
-
{
|
|
212
|
-
"pattern": "^[a-z][a-z0-9-]{1,39}$",
|
|
213
|
-
"type": "string"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"additionalProperties": false,
|
|
217
|
-
"properties": {
|
|
218
|
-
"app": {
|
|
219
|
-
"pattern": "^[a-z][a-z0-9-]{1,39}$",
|
|
220
|
-
"type": "string"
|
|
221
|
-
},
|
|
222
|
-
"name": {
|
|
223
|
-
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
224
|
-
"type": "string"
|
|
225
|
-
},
|
|
226
|
-
"settings": {
|
|
227
|
-
"additionalProperties": {},
|
|
228
|
-
"type": "object"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"required": ["app"],
|
|
232
|
-
"type": "object"
|
|
233
|
-
}
|
|
234
|
-
]
|
|
160
|
+
"$ref": "#/components/schemas/AppEntry"
|
|
235
161
|
},
|
|
236
162
|
"maxItems": 10,
|
|
237
163
|
"minItems": 1,
|
|
@@ -270,12 +196,140 @@
|
|
|
270
196
|
},
|
|
271
197
|
"type": "object"
|
|
272
198
|
},
|
|
199
|
+
"CreateEnvironmentApp": {
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"properties": {
|
|
202
|
+
"appId": {
|
|
203
|
+
"pattern": "^[a-z][a-z0-9-]{1,39}$",
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"name": {
|
|
207
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"services": {
|
|
211
|
+
"additionalProperties": {},
|
|
212
|
+
"type": "object"
|
|
213
|
+
},
|
|
214
|
+
"setup": {
|
|
215
|
+
"additionalProperties": {},
|
|
216
|
+
"type": "object"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": ["appId"],
|
|
220
|
+
"type": "object"
|
|
221
|
+
},
|
|
222
|
+
"Credential": {
|
|
223
|
+
"oneOf": [
|
|
224
|
+
{
|
|
225
|
+
"properties": {
|
|
226
|
+
"apiKeyKind": {
|
|
227
|
+
"type": "null"
|
|
228
|
+
},
|
|
229
|
+
"expiresAt": {
|
|
230
|
+
"format": "date-time",
|
|
231
|
+
"type": "string"
|
|
232
|
+
},
|
|
233
|
+
"id": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"idleExpiresAt": {
|
|
237
|
+
"type": "null"
|
|
238
|
+
},
|
|
239
|
+
"kind": {
|
|
240
|
+
"enum": ["session"],
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"name": {
|
|
244
|
+
"type": "null"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": [
|
|
248
|
+
"kind",
|
|
249
|
+
"id",
|
|
250
|
+
"name",
|
|
251
|
+
"expiresAt",
|
|
252
|
+
"idleExpiresAt",
|
|
253
|
+
"apiKeyKind"
|
|
254
|
+
],
|
|
255
|
+
"type": "object"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"properties": {
|
|
259
|
+
"apiKeyKind": {
|
|
260
|
+
"type": "null"
|
|
261
|
+
},
|
|
262
|
+
"expiresAt": {
|
|
263
|
+
"format": "date-time",
|
|
264
|
+
"type": "string"
|
|
265
|
+
},
|
|
266
|
+
"id": {
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
"idleExpiresAt": {
|
|
270
|
+
"format": "date-time",
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
"kind": {
|
|
274
|
+
"enum": ["cli_token"],
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
"name": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"kind",
|
|
283
|
+
"id",
|
|
284
|
+
"name",
|
|
285
|
+
"expiresAt",
|
|
286
|
+
"idleExpiresAt",
|
|
287
|
+
"apiKeyKind"
|
|
288
|
+
],
|
|
289
|
+
"type": "object"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"properties": {
|
|
293
|
+
"apiKeyKind": {
|
|
294
|
+
"enum": ["dashboard", "cli_run", "env_pull"],
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
297
|
+
"expiresAt": {
|
|
298
|
+
"format": "date-time",
|
|
299
|
+
"type": ["string", "null"]
|
|
300
|
+
},
|
|
301
|
+
"id": {
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
"idleExpiresAt": {
|
|
305
|
+
"type": "null"
|
|
306
|
+
},
|
|
307
|
+
"kind": {
|
|
308
|
+
"enum": ["api_key"],
|
|
309
|
+
"type": "string"
|
|
310
|
+
},
|
|
311
|
+
"name": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"required": [
|
|
316
|
+
"kind",
|
|
317
|
+
"id",
|
|
318
|
+
"name",
|
|
319
|
+
"expiresAt",
|
|
320
|
+
"idleExpiresAt",
|
|
321
|
+
"apiKeyKind"
|
|
322
|
+
],
|
|
323
|
+
"type": "object"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
273
327
|
"Credentials": {
|
|
274
328
|
"properties": {
|
|
275
329
|
"actorId": {
|
|
276
330
|
"type": "string"
|
|
277
331
|
},
|
|
278
|
-
"
|
|
332
|
+
"appName": {
|
|
279
333
|
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
280
334
|
"type": "string"
|
|
281
335
|
},
|
|
@@ -287,12 +341,6 @@
|
|
|
287
341
|
"format": "date-time",
|
|
288
342
|
"type": "string"
|
|
289
343
|
},
|
|
290
|
-
"headers": {
|
|
291
|
-
"additionalProperties": {
|
|
292
|
-
"type": "string"
|
|
293
|
-
},
|
|
294
|
-
"type": "object"
|
|
295
|
-
},
|
|
296
344
|
"login": {
|
|
297
345
|
"properties": {
|
|
298
346
|
"authentication": {
|
|
@@ -317,20 +365,55 @@
|
|
|
317
365
|
"required": ["authentication", "url", "parameters", "secrets"],
|
|
318
366
|
"type": ["object", "null"]
|
|
319
367
|
},
|
|
320
|
-
"
|
|
321
|
-
"
|
|
368
|
+
"services": {
|
|
369
|
+
"items": {
|
|
370
|
+
"properties": {
|
|
371
|
+
"headers": {
|
|
372
|
+
"additionalProperties": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
"type": "object"
|
|
376
|
+
},
|
|
377
|
+
"id": {
|
|
378
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
"servers": {
|
|
382
|
+
"items": {
|
|
383
|
+
"properties": {
|
|
384
|
+
"name": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
"url": {
|
|
388
|
+
"description": "The MCP server's URL. On an environment created with `tokenInUrl`, a request with no `Authorization` header acts as the actor that this call picks when you send no `actorId`. To act as `actorId`, send the service's headers.",
|
|
389
|
+
"type": "string"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"required": ["name", "url"],
|
|
393
|
+
"type": "object"
|
|
394
|
+
},
|
|
395
|
+
"type": "array"
|
|
396
|
+
},
|
|
397
|
+
"url": {
|
|
398
|
+
"description": "The URL where the service's paths start: the app URL followed by the service's path. The `url` of the service at `/` is the app URL itself. On an environment created with `tokenInUrl`, the app URL is in its token form. A client of a service that serves MCP servers calls the URL of one of its MCP servers instead.",
|
|
399
|
+
"type": "string"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"required": ["id", "url", "headers"],
|
|
403
|
+
"type": "object"
|
|
404
|
+
},
|
|
405
|
+
"type": "array"
|
|
322
406
|
},
|
|
323
|
-
"
|
|
407
|
+
"token": {
|
|
324
408
|
"type": "string"
|
|
325
409
|
}
|
|
326
410
|
},
|
|
327
411
|
"required": [
|
|
328
412
|
"environmentId",
|
|
329
|
-
"
|
|
413
|
+
"appName",
|
|
330
414
|
"actorId",
|
|
331
|
-
"url",
|
|
332
|
-
"headers",
|
|
333
415
|
"token",
|
|
416
|
+
"services",
|
|
334
417
|
"expiresAt",
|
|
335
418
|
"login"
|
|
336
419
|
],
|
|
@@ -348,7 +431,11 @@
|
|
|
348
431
|
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
349
432
|
"type": "string"
|
|
350
433
|
},
|
|
351
|
-
"
|
|
434
|
+
"services": {
|
|
435
|
+
"additionalProperties": {},
|
|
436
|
+
"type": "object"
|
|
437
|
+
},
|
|
438
|
+
"setup": {
|
|
352
439
|
"additionalProperties": {},
|
|
353
440
|
"type": "object"
|
|
354
441
|
},
|
|
@@ -368,7 +455,8 @@
|
|
|
368
455
|
"appId",
|
|
369
456
|
"versionId",
|
|
370
457
|
"version",
|
|
371
|
-
"
|
|
458
|
+
"setup",
|
|
459
|
+
"services",
|
|
372
460
|
"url"
|
|
373
461
|
],
|
|
374
462
|
"type": "object"
|
|
@@ -454,7 +542,7 @@
|
|
|
454
542
|
},
|
|
455
543
|
"EnvironmentFailure": {
|
|
456
544
|
"properties": {
|
|
457
|
-
"
|
|
545
|
+
"appName": {
|
|
458
546
|
"type": "string"
|
|
459
547
|
},
|
|
460
548
|
"code": {
|
|
@@ -462,7 +550,8 @@
|
|
|
462
550
|
"start_failed",
|
|
463
551
|
"pause_removed",
|
|
464
552
|
"version_unavailable",
|
|
465
|
-
"
|
|
553
|
+
"invalid_setup",
|
|
554
|
+
"invalid_services"
|
|
466
555
|
],
|
|
467
556
|
"type": "string"
|
|
468
557
|
},
|
|
@@ -470,7 +559,7 @@
|
|
|
470
559
|
"type": "string"
|
|
471
560
|
}
|
|
472
561
|
},
|
|
473
|
-
"required": ["
|
|
562
|
+
"required": ["appName", "code", "message"],
|
|
474
563
|
"type": ["object", "null"]
|
|
475
564
|
},
|
|
476
565
|
"EnvironmentStatus": {
|
|
@@ -498,6 +587,7 @@
|
|
|
498
587
|
"body_too_large",
|
|
499
588
|
"version_unavailable",
|
|
500
589
|
"environment_limit_reached",
|
|
590
|
+
"rate_limited",
|
|
501
591
|
"internal_error",
|
|
502
592
|
"unavailable"
|
|
503
593
|
],
|
|
@@ -529,8 +619,49 @@
|
|
|
529
619
|
"required": ["error"],
|
|
530
620
|
"type": "object"
|
|
531
621
|
},
|
|
622
|
+
"McpServer": {
|
|
623
|
+
"properties": {
|
|
624
|
+
"name": {
|
|
625
|
+
"pattern": "^[a-z0-9][a-z0-9/_-]{0,199}$",
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"tools": {
|
|
629
|
+
"items": {
|
|
630
|
+
"$ref": "#/components/schemas/McpTool"
|
|
631
|
+
},
|
|
632
|
+
"maxItems": 500,
|
|
633
|
+
"type": "array"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"required": ["name", "tools"],
|
|
637
|
+
"type": "object"
|
|
638
|
+
},
|
|
639
|
+
"McpTool": {
|
|
640
|
+
"properties": {
|
|
641
|
+
"description": {
|
|
642
|
+
"maxLength": 10000,
|
|
643
|
+
"type": "string"
|
|
644
|
+
},
|
|
645
|
+
"name": {
|
|
646
|
+
"pattern": "^[A-Za-z0-9_.-]{1,128}$",
|
|
647
|
+
"type": "string"
|
|
648
|
+
},
|
|
649
|
+
"title": {
|
|
650
|
+
"maxLength": 200,
|
|
651
|
+
"type": "string"
|
|
652
|
+
},
|
|
653
|
+
"writes": {
|
|
654
|
+
"type": "boolean"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"required": ["name", "description", "writes"],
|
|
658
|
+
"type": "object"
|
|
659
|
+
},
|
|
532
660
|
"Me": {
|
|
533
661
|
"properties": {
|
|
662
|
+
"credential": {
|
|
663
|
+
"$ref": "#/components/schemas/Credential"
|
|
664
|
+
},
|
|
534
665
|
"limits": {
|
|
535
666
|
"properties": {
|
|
536
667
|
"concurrentEnvironments": {
|
|
@@ -618,6 +749,7 @@
|
|
|
618
749
|
},
|
|
619
750
|
"required": [
|
|
620
751
|
"principal",
|
|
752
|
+
"credential",
|
|
621
753
|
"user",
|
|
622
754
|
"organization",
|
|
623
755
|
"organizations",
|
|
@@ -675,7 +807,7 @@
|
|
|
675
807
|
},
|
|
676
808
|
"Request": {
|
|
677
809
|
"properties": {
|
|
678
|
-
"
|
|
810
|
+
"appName": {
|
|
679
811
|
"type": "string"
|
|
680
812
|
},
|
|
681
813
|
"completedAt": {
|
|
@@ -696,9 +828,16 @@
|
|
|
696
828
|
"id": {
|
|
697
829
|
"type": "string"
|
|
698
830
|
},
|
|
831
|
+
"mcpServer": {
|
|
832
|
+
"description": "The MCP server that the request called, as the app named it. `null` when the gateway answered, when State Machines refused the request before the app read it, or when the request called no MCP server that the environment serves.",
|
|
833
|
+
"type": ["string", "null"]
|
|
834
|
+
},
|
|
699
835
|
"method": {
|
|
700
836
|
"type": "string"
|
|
701
837
|
},
|
|
838
|
+
"operation": {
|
|
839
|
+
"type": ["string", "null"]
|
|
840
|
+
},
|
|
702
841
|
"path": {
|
|
703
842
|
"type": "string"
|
|
704
843
|
},
|
|
@@ -721,15 +860,25 @@
|
|
|
721
860
|
},
|
|
722
861
|
"responseStatus": {
|
|
723
862
|
"type": "integer"
|
|
863
|
+
},
|
|
864
|
+
"service": {
|
|
865
|
+
"type": ["string", "null"]
|
|
866
|
+
},
|
|
867
|
+
"tool": {
|
|
868
|
+
"type": ["string", "null"]
|
|
724
869
|
}
|
|
725
870
|
},
|
|
726
871
|
"required": [
|
|
727
872
|
"id",
|
|
728
873
|
"environmentId",
|
|
729
|
-
"
|
|
874
|
+
"appName",
|
|
730
875
|
"method",
|
|
731
876
|
"path",
|
|
732
877
|
"query",
|
|
878
|
+
"service",
|
|
879
|
+
"mcpServer",
|
|
880
|
+
"tool",
|
|
881
|
+
"operation",
|
|
733
882
|
"responseStatus",
|
|
734
883
|
"respondedBy",
|
|
735
884
|
"errorCode",
|
|
@@ -828,6 +977,22 @@
|
|
|
828
977
|
"minimum": 0,
|
|
829
978
|
"type": "integer"
|
|
830
979
|
},
|
|
980
|
+
"services": {
|
|
981
|
+
"items": {
|
|
982
|
+
"properties": {
|
|
983
|
+
"count": {
|
|
984
|
+
"exclusiveMinimum": 0,
|
|
985
|
+
"type": "integer"
|
|
986
|
+
},
|
|
987
|
+
"id": {
|
|
988
|
+
"type": "string"
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
"required": ["id", "count"],
|
|
992
|
+
"type": "object"
|
|
993
|
+
},
|
|
994
|
+
"type": "array"
|
|
995
|
+
},
|
|
831
996
|
"successCount": {
|
|
832
997
|
"minimum": 0,
|
|
833
998
|
"type": "integer"
|
|
@@ -846,10 +1011,63 @@
|
|
|
846
1011
|
"serverErrorCount",
|
|
847
1012
|
"p50Ms",
|
|
848
1013
|
"p95Ms",
|
|
1014
|
+
"services",
|
|
849
1015
|
"buckets"
|
|
850
1016
|
],
|
|
851
1017
|
"type": "object"
|
|
852
1018
|
},
|
|
1019
|
+
"Service": {
|
|
1020
|
+
"properties": {
|
|
1021
|
+
"description": {
|
|
1022
|
+
"type": "string"
|
|
1023
|
+
},
|
|
1024
|
+
"id": {
|
|
1025
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
1026
|
+
"type": "string"
|
|
1027
|
+
},
|
|
1028
|
+
"limitations": {
|
|
1029
|
+
"items": {
|
|
1030
|
+
"type": "string"
|
|
1031
|
+
},
|
|
1032
|
+
"type": "array"
|
|
1033
|
+
},
|
|
1034
|
+
"name": {
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
},
|
|
1037
|
+
"path": {
|
|
1038
|
+
"pattern": "^(?=.{1,500}$)(?:\\/|(?:\\/(?!\\.\\.?(?:\\/|$))[^\\s/%?#{}]+)+)$",
|
|
1039
|
+
"type": "string"
|
|
1040
|
+
},
|
|
1041
|
+
"prompt": {
|
|
1042
|
+
"items": {
|
|
1043
|
+
"type": "string"
|
|
1044
|
+
},
|
|
1045
|
+
"type": "array"
|
|
1046
|
+
},
|
|
1047
|
+
"servers": {
|
|
1048
|
+
"items": {
|
|
1049
|
+
"$ref": "#/components/schemas/McpServer"
|
|
1050
|
+
},
|
|
1051
|
+
"maxItems": 50,
|
|
1052
|
+
"minItems": 1,
|
|
1053
|
+
"type": "array"
|
|
1054
|
+
},
|
|
1055
|
+
"visibility": {
|
|
1056
|
+
"enum": ["public", "preview"],
|
|
1057
|
+
"type": "string"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"required": [
|
|
1061
|
+
"id",
|
|
1062
|
+
"path",
|
|
1063
|
+
"name",
|
|
1064
|
+
"description",
|
|
1065
|
+
"limitations",
|
|
1066
|
+
"visibility",
|
|
1067
|
+
"prompt"
|
|
1068
|
+
],
|
|
1069
|
+
"type": "object"
|
|
1070
|
+
},
|
|
853
1071
|
"Snapshot": {
|
|
854
1072
|
"properties": {
|
|
855
1073
|
"apps": {
|
|
@@ -862,6 +1080,14 @@
|
|
|
862
1080
|
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
863
1081
|
"type": "string"
|
|
864
1082
|
},
|
|
1083
|
+
"services": {
|
|
1084
|
+
"additionalProperties": {},
|
|
1085
|
+
"type": "object"
|
|
1086
|
+
},
|
|
1087
|
+
"setup": {
|
|
1088
|
+
"additionalProperties": {},
|
|
1089
|
+
"type": "object"
|
|
1090
|
+
},
|
|
865
1091
|
"sizeBytes": {
|
|
866
1092
|
"type": ["integer", "null"]
|
|
867
1093
|
},
|
|
@@ -878,6 +1104,8 @@
|
|
|
878
1104
|
"appId",
|
|
879
1105
|
"versionId",
|
|
880
1106
|
"version",
|
|
1107
|
+
"setup",
|
|
1108
|
+
"services",
|
|
881
1109
|
"sizeBytes"
|
|
882
1110
|
],
|
|
883
1111
|
"type": "object"
|
|
@@ -899,6 +1127,9 @@
|
|
|
899
1127
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
|
|
900
1128
|
"type": "string"
|
|
901
1129
|
},
|
|
1130
|
+
"environmentName": {
|
|
1131
|
+
"type": ["string", "null"]
|
|
1132
|
+
},
|
|
902
1133
|
"failure": {
|
|
903
1134
|
"properties": {
|
|
904
1135
|
"code": {
|
|
@@ -938,6 +1169,7 @@
|
|
|
938
1169
|
"id",
|
|
939
1170
|
"workspaceId",
|
|
940
1171
|
"environmentId",
|
|
1172
|
+
"environmentName",
|
|
941
1173
|
"name",
|
|
942
1174
|
"status",
|
|
943
1175
|
"failure",
|
|
@@ -962,12 +1194,6 @@
|
|
|
962
1194
|
},
|
|
963
1195
|
"type": "array"
|
|
964
1196
|
},
|
|
965
|
-
"apis": {
|
|
966
|
-
"items": {
|
|
967
|
-
"$ref": "#/components/schemas/Api"
|
|
968
|
-
},
|
|
969
|
-
"type": "array"
|
|
970
|
-
},
|
|
971
1197
|
"appId": {
|
|
972
1198
|
"pattern": "^[a-z][a-z0-9-]{1,39}$",
|
|
973
1199
|
"type": "string"
|
|
@@ -987,6 +1213,12 @@
|
|
|
987
1213
|
"format": "date-time",
|
|
988
1214
|
"type": ["string", "null"]
|
|
989
1215
|
},
|
|
1216
|
+
"services": {
|
|
1217
|
+
"items": {
|
|
1218
|
+
"$ref": "#/components/schemas/Service"
|
|
1219
|
+
},
|
|
1220
|
+
"type": "array"
|
|
1221
|
+
},
|
|
990
1222
|
"status": {
|
|
991
1223
|
"enum": ["published", "retired"],
|
|
992
1224
|
"type": "string"
|
|
@@ -1001,7 +1233,7 @@
|
|
|
1001
1233
|
"version",
|
|
1002
1234
|
"status",
|
|
1003
1235
|
"isDefault",
|
|
1004
|
-
"
|
|
1236
|
+
"services",
|
|
1005
1237
|
"actors",
|
|
1006
1238
|
"publishedAt",
|
|
1007
1239
|
"retiredAt"
|
|
@@ -1587,6 +1819,32 @@
|
|
|
1587
1819
|
"type": "array"
|
|
1588
1820
|
}
|
|
1589
1821
|
},
|
|
1822
|
+
{
|
|
1823
|
+
"in": "query",
|
|
1824
|
+
"name": "appId",
|
|
1825
|
+
"required": false,
|
|
1826
|
+
"schema": {
|
|
1827
|
+
"items": {
|
|
1828
|
+
"pattern": "^[a-z][a-z0-9-]{1,39}$",
|
|
1829
|
+
"type": "string"
|
|
1830
|
+
},
|
|
1831
|
+
"maxItems": 20,
|
|
1832
|
+
"type": "array"
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"in": "query",
|
|
1837
|
+
"name": "createdBy",
|
|
1838
|
+
"required": false,
|
|
1839
|
+
"schema": {
|
|
1840
|
+
"items": {
|
|
1841
|
+
"pattern": "^(user_[0-9A-Za-z]+|key_[0-9a-z]{16})$",
|
|
1842
|
+
"type": "string"
|
|
1843
|
+
},
|
|
1844
|
+
"maxItems": 50,
|
|
1845
|
+
"type": "array"
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1590
1848
|
{
|
|
1591
1849
|
"in": "query",
|
|
1592
1850
|
"name": "snapshotId",
|
|
@@ -1640,7 +1898,7 @@
|
|
|
1640
1898
|
}
|
|
1641
1899
|
}
|
|
1642
1900
|
},
|
|
1643
|
-
"description": "The workspace's environments, newest first"
|
|
1901
|
+
"description": "The workspace's environments, newest created first"
|
|
1644
1902
|
},
|
|
1645
1903
|
"400": {
|
|
1646
1904
|
"content": {
|
|
@@ -1903,6 +2161,148 @@
|
|
|
1903
2161
|
]
|
|
1904
2162
|
}
|
|
1905
2163
|
},
|
|
2164
|
+
"/v1/environments/creators": {
|
|
2165
|
+
"get": {
|
|
2166
|
+
"operationId": "listEnvironmentCreators",
|
|
2167
|
+
"parameters": [
|
|
2168
|
+
{
|
|
2169
|
+
"in": "query",
|
|
2170
|
+
"name": "workspaceId",
|
|
2171
|
+
"required": false,
|
|
2172
|
+
"schema": {
|
|
2173
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
|
|
2174
|
+
"type": "string"
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
"responses": {
|
|
2179
|
+
"200": {
|
|
2180
|
+
"content": {
|
|
2181
|
+
"application/json": {
|
|
2182
|
+
"schema": {
|
|
2183
|
+
"properties": {
|
|
2184
|
+
"data": {
|
|
2185
|
+
"items": {
|
|
2186
|
+
"$ref": "#/components/schemas/Principal"
|
|
2187
|
+
},
|
|
2188
|
+
"type": "array"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
"required": ["data"],
|
|
2192
|
+
"type": "object"
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
"description": "Each principal that created an environment in the workspace, by name"
|
|
2197
|
+
},
|
|
2198
|
+
"400": {
|
|
2199
|
+
"content": {
|
|
2200
|
+
"application/json": {
|
|
2201
|
+
"schema": {
|
|
2202
|
+
"$ref": "#/components/schemas/Error"
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
"description": "Invalid request"
|
|
2207
|
+
},
|
|
2208
|
+
"401": {
|
|
2209
|
+
"content": {
|
|
2210
|
+
"application/json": {
|
|
2211
|
+
"schema": {
|
|
2212
|
+
"$ref": "#/components/schemas/Error"
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
},
|
|
2216
|
+
"description": "Authentication required"
|
|
2217
|
+
},
|
|
2218
|
+
"403": {
|
|
2219
|
+
"content": {
|
|
2220
|
+
"application/json": {
|
|
2221
|
+
"schema": {
|
|
2222
|
+
"$ref": "#/components/schemas/Error"
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
"description": "Permission denied"
|
|
2227
|
+
},
|
|
2228
|
+
"404": {
|
|
2229
|
+
"content": {
|
|
2230
|
+
"application/json": {
|
|
2231
|
+
"schema": {
|
|
2232
|
+
"$ref": "#/components/schemas/Error"
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2236
|
+
"description": "Resource not found"
|
|
2237
|
+
},
|
|
2238
|
+
"409": {
|
|
2239
|
+
"content": {
|
|
2240
|
+
"application/json": {
|
|
2241
|
+
"schema": {
|
|
2242
|
+
"$ref": "#/components/schemas/Error"
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
},
|
|
2246
|
+
"description": "Conflicting request"
|
|
2247
|
+
},
|
|
2248
|
+
"413": {
|
|
2249
|
+
"content": {
|
|
2250
|
+
"application/json": {
|
|
2251
|
+
"schema": {
|
|
2252
|
+
"$ref": "#/components/schemas/Error"
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
},
|
|
2256
|
+
"description": "Request body too large"
|
|
2257
|
+
},
|
|
2258
|
+
"422": {
|
|
2259
|
+
"content": {
|
|
2260
|
+
"application/json": {
|
|
2261
|
+
"schema": {
|
|
2262
|
+
"$ref": "#/components/schemas/Error"
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
"description": "Version unavailable"
|
|
2267
|
+
},
|
|
2268
|
+
"429": {
|
|
2269
|
+
"content": {
|
|
2270
|
+
"application/json": {
|
|
2271
|
+
"schema": {
|
|
2272
|
+
"$ref": "#/components/schemas/Error"
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"description": "Limit reached"
|
|
2277
|
+
},
|
|
2278
|
+
"500": {
|
|
2279
|
+
"content": {
|
|
2280
|
+
"application/json": {
|
|
2281
|
+
"schema": {
|
|
2282
|
+
"$ref": "#/components/schemas/Error"
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
},
|
|
2286
|
+
"description": "Unexpected failure"
|
|
2287
|
+
},
|
|
2288
|
+
"503": {
|
|
2289
|
+
"content": {
|
|
2290
|
+
"application/json": {
|
|
2291
|
+
"schema": {
|
|
2292
|
+
"$ref": "#/components/schemas/Error"
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
},
|
|
2296
|
+
"description": "Dependency unavailable"
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2299
|
+
"security": [
|
|
2300
|
+
{
|
|
2301
|
+
"bearerAuth": []
|
|
2302
|
+
}
|
|
2303
|
+
]
|
|
2304
|
+
}
|
|
2305
|
+
},
|
|
1906
2306
|
"/v1/environments/{environmentId}": {
|
|
1907
2307
|
"delete": {
|
|
1908
2308
|
"operationId": "deleteEnvironment",
|
|
@@ -2365,6 +2765,14 @@
|
|
|
2365
2765
|
"maxLength": 255,
|
|
2366
2766
|
"minLength": 1,
|
|
2367
2767
|
"type": "string"
|
|
2768
|
+
},
|
|
2769
|
+
"services": {
|
|
2770
|
+
"items": {
|
|
2771
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
2772
|
+
"type": "string"
|
|
2773
|
+
},
|
|
2774
|
+
"maxItems": 20,
|
|
2775
|
+
"type": "array"
|
|
2368
2776
|
}
|
|
2369
2777
|
},
|
|
2370
2778
|
"type": "object"
|
|
@@ -2649,7 +3057,7 @@
|
|
|
2649
3057
|
},
|
|
2650
3058
|
{
|
|
2651
3059
|
"in": "query",
|
|
2652
|
-
"name": "
|
|
3060
|
+
"name": "appName",
|
|
2653
3061
|
"required": false,
|
|
2654
3062
|
"schema": {
|
|
2655
3063
|
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
@@ -2702,6 +3110,42 @@
|
|
|
2702
3110
|
"type": "boolean"
|
|
2703
3111
|
}
|
|
2704
3112
|
},
|
|
3113
|
+
{
|
|
3114
|
+
"in": "query",
|
|
3115
|
+
"name": "service",
|
|
3116
|
+
"required": false,
|
|
3117
|
+
"schema": {
|
|
3118
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
3119
|
+
"type": "string"
|
|
3120
|
+
}
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
"in": "query",
|
|
3124
|
+
"name": "mcpServer",
|
|
3125
|
+
"required": false,
|
|
3126
|
+
"schema": {
|
|
3127
|
+
"pattern": "^[a-z0-9][a-z0-9/_-]{0,199}$",
|
|
3128
|
+
"type": "string"
|
|
3129
|
+
}
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"in": "query",
|
|
3133
|
+
"name": "tool",
|
|
3134
|
+
"required": false,
|
|
3135
|
+
"schema": {
|
|
3136
|
+
"pattern": "^[A-Za-z0-9_.-]{1,128}$",
|
|
3137
|
+
"type": "string"
|
|
3138
|
+
}
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
"in": "query",
|
|
3142
|
+
"name": "operation",
|
|
3143
|
+
"required": false,
|
|
3144
|
+
"schema": {
|
|
3145
|
+
"pattern": "^[A-Za-z0-9_.-]{1,128}$",
|
|
3146
|
+
"type": "string"
|
|
3147
|
+
}
|
|
3148
|
+
},
|
|
2705
3149
|
{
|
|
2706
3150
|
"in": "query",
|
|
2707
3151
|
"name": "search",
|
|
@@ -2877,7 +3321,7 @@
|
|
|
2877
3321
|
},
|
|
2878
3322
|
{
|
|
2879
3323
|
"in": "query",
|
|
2880
|
-
"name": "
|
|
3324
|
+
"name": "appName",
|
|
2881
3325
|
"required": false,
|
|
2882
3326
|
"schema": {
|
|
2883
3327
|
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
@@ -2930,6 +3374,42 @@
|
|
|
2930
3374
|
"type": "boolean"
|
|
2931
3375
|
}
|
|
2932
3376
|
},
|
|
3377
|
+
{
|
|
3378
|
+
"in": "query",
|
|
3379
|
+
"name": "service",
|
|
3380
|
+
"required": false,
|
|
3381
|
+
"schema": {
|
|
3382
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$",
|
|
3383
|
+
"type": "string"
|
|
3384
|
+
}
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
"in": "query",
|
|
3388
|
+
"name": "mcpServer",
|
|
3389
|
+
"required": false,
|
|
3390
|
+
"schema": {
|
|
3391
|
+
"pattern": "^[a-z0-9][a-z0-9/_-]{0,199}$",
|
|
3392
|
+
"type": "string"
|
|
3393
|
+
}
|
|
3394
|
+
},
|
|
3395
|
+
{
|
|
3396
|
+
"in": "query",
|
|
3397
|
+
"name": "tool",
|
|
3398
|
+
"required": false,
|
|
3399
|
+
"schema": {
|
|
3400
|
+
"pattern": "^[A-Za-z0-9_.-]{1,128}$",
|
|
3401
|
+
"type": "string"
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
"in": "query",
|
|
3406
|
+
"name": "operation",
|
|
3407
|
+
"required": false,
|
|
3408
|
+
"schema": {
|
|
3409
|
+
"pattern": "^[A-Za-z0-9_.-]{1,128}$",
|
|
3410
|
+
"type": "string"
|
|
3411
|
+
}
|
|
3412
|
+
},
|
|
2933
3413
|
{
|
|
2934
3414
|
"in": "query",
|
|
2935
3415
|
"name": "search",
|