@shipeasy/openapi 1.4.0 → 1.6.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/dist/index.d.ts +24 -0
- package/dist/index.js +1924 -3
- package/dist/node-context.d.ts +37 -0
- package/dist/node-context.js +56 -0
- package/dist/operations/attributes.d.ts +33 -0
- package/dist/operations/attributes.js +16 -0
- package/dist/operations/cli-adapter.d.ts +35 -0
- package/dist/operations/cli-adapter.js +91 -0
- package/dist/operations/coerce.d.ts +32 -0
- package/dist/operations/coerce.js +53 -0
- package/dist/operations/configs.d.ts +28 -0
- package/dist/operations/configs.js +119 -0
- package/dist/operations/docs.d.ts +37 -0
- package/dist/operations/docs.js +39 -0
- package/dist/operations/events.d.ts +28 -0
- package/dist/operations/events.js +121 -0
- package/dist/operations/experiments.d.ts +28 -0
- package/dist/operations/experiments.js +280 -0
- package/dist/operations/gates.d.ts +28 -0
- package/dist/operations/gates.js +132 -0
- package/dist/operations/i18n.d.ts +28 -0
- package/dist/operations/i18n.js +121 -0
- package/dist/operations/index.d.ts +63 -0
- package/dist/operations/index.js +1751 -0
- package/dist/operations/killswitches.d.ts +28 -0
- package/dist/operations/killswitches.js +126 -0
- package/dist/operations/mcp-adapter.d.ts +35 -0
- package/dist/operations/mcp-adapter.js +94 -0
- package/dist/operations/metrics.d.ts +30 -0
- package/dist/operations/metrics.js +114 -0
- package/dist/operations/ops.d.ts +28 -0
- package/dist/operations/ops.js +313 -0
- package/dist/operations/projects.d.ts +28 -0
- package/dist/operations/projects.js +36 -0
- package/dist/operations/sdk-docs.d.ts +28 -0
- package/dist/operations/sdk-docs.js +160 -0
- package/dist/operations/types.d.ts +138 -0
- package/dist/operations/types.js +9 -0
- package/dist/operations/universes.d.ts +28 -0
- package/dist/operations/universes.js +93 -0
- package/dist/operations/util.d.ts +33 -0
- package/dist/operations/util.js +9 -0
- package/dist/resources/alert-rules.d.ts +3 -1
- package/dist/resources/alert-rules.js +11 -2
- package/dist/resources/attributes.d.ts +19 -0
- package/dist/resources/attributes.js +10 -0
- package/dist/resources/events.d.ts +61 -0
- package/dist/resources/events.js +42 -0
- package/dist/resources/i18n.d.ts +84 -0
- package/dist/resources/i18n.js +60 -0
- package/dist/resources/index.d.ts +22 -4
- package/dist/resources/index.js +184 -3
- package/dist/resources/metrics.d.ts +54 -0
- package/dist/resources/metrics.js +40 -0
- package/dist/resources/ops.d.ts +88 -0
- package/dist/resources/ops.js +36 -0
- package/dist/resources/projects.d.ts +54 -0
- package/dist/resources/projects.js +14 -0
- package/dist/schemas/alert-rules.d.ts +23 -1
- package/dist/schemas/alert-rules.js +13 -3
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +12 -2
- package/package.json +10 -1
package/dist/schemas/index.js
CHANGED
|
@@ -648,6 +648,13 @@ var experimentReanalyzeResponseSchema = z8.object({
|
|
|
648
648
|
import { z as z9 } from "zod";
|
|
649
649
|
var ALERT_COMPARATORS = ["gt", "gte", "lt", "lte"];
|
|
650
650
|
var ALERT_SEVERITIES = ["danger", "warn", "info"];
|
|
651
|
+
var notificationTargetSchema = z9.object({
|
|
652
|
+
slackChannel: z9.object({
|
|
653
|
+
id: z9.string().min(1).describe("Slack channel id (e.g. C0123ABCD)."),
|
|
654
|
+
name: z9.string().min(1).describe("Slack channel name (without the leading #).")
|
|
655
|
+
}).nullish().describe("Slack channel to post this rule's alert to. Requires a Slack connector."),
|
|
656
|
+
email: z9.string().email().nullish().describe("Email address to notify for this rule (overrides the default recipient).")
|
|
657
|
+
}).strict();
|
|
651
658
|
var alertRuleCreateSchema = z9.object({
|
|
652
659
|
name: z9.string().min(1).max(120).describe("Human label for the rule, shown on the alert and the rules list."),
|
|
653
660
|
metricId: z9.string().min(1).describe("Id of the metric to evaluate."),
|
|
@@ -655,7 +662,8 @@ var alertRuleCreateSchema = z9.object({
|
|
|
655
662
|
threshold: z9.number().finite().describe("Threshold the metric value is compared against."),
|
|
656
663
|
windowHours: z9.number().int().min(1).max(720).default(24).describe("Lookback window (hours) the metric is aggregated over. 1\u2013720."),
|
|
657
664
|
severity: z9.enum(ALERT_SEVERITIES).default("warn").describe("Severity of the raised alert."),
|
|
658
|
-
enabled: z9.boolean().default(true).describe("Whether the rule is evaluated by the cron.")
|
|
665
|
+
enabled: z9.boolean().default(true).describe("Whether the rule is evaluated by the cron."),
|
|
666
|
+
notify: notificationTargetSchema.nullish().describe("Where to deliver this rule's alert (Slack channel and/or email target).")
|
|
659
667
|
}).strict();
|
|
660
668
|
var alertRuleUpdateSchema = z9.object({
|
|
661
669
|
name: z9.string().min(1).max(120),
|
|
@@ -663,7 +671,8 @@ var alertRuleUpdateSchema = z9.object({
|
|
|
663
671
|
threshold: z9.number().finite(),
|
|
664
672
|
windowHours: z9.number().int().min(1).max(720),
|
|
665
673
|
severity: z9.enum(ALERT_SEVERITIES),
|
|
666
|
-
enabled: z9.boolean()
|
|
674
|
+
enabled: z9.boolean(),
|
|
675
|
+
notify: notificationTargetSchema.nullish()
|
|
667
676
|
}).partial().strict();
|
|
668
677
|
export {
|
|
669
678
|
ALERT_COMPARATORS,
|
|
@@ -737,6 +746,7 @@ export {
|
|
|
737
746
|
killswitchValueSchema,
|
|
738
747
|
killswitchValueSetSchema,
|
|
739
748
|
metricNameSchema,
|
|
749
|
+
notificationTargetSchema,
|
|
740
750
|
pageQuerySchema,
|
|
741
751
|
paramSchemaSchema,
|
|
742
752
|
rampSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipeasy/openapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Shipeasy admin OpenAPI spec + typed client. Single source of truth for endpoint paths, request/response shapes, and the resource registry consumed by @shipeasy/cli and @shipeasy/mcp.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"types": "./dist/schemas/*.d.ts",
|
|
27
27
|
"default": "./dist/schemas/*.js"
|
|
28
28
|
},
|
|
29
|
+
"./operations": {
|
|
30
|
+
"types": "./dist/operations/index.d.ts",
|
|
31
|
+
"default": "./dist/operations/index.js"
|
|
32
|
+
},
|
|
29
33
|
"./transport": {
|
|
30
34
|
"types": "./dist/transport.d.ts",
|
|
31
35
|
"default": "./dist/transport.js"
|
|
@@ -33,6 +37,10 @@
|
|
|
33
37
|
"./pagination": {
|
|
34
38
|
"types": "./dist/pagination.d.ts",
|
|
35
39
|
"default": "./dist/pagination.js"
|
|
40
|
+
},
|
|
41
|
+
"./node-context": {
|
|
42
|
+
"types": "./dist/node-context.d.ts",
|
|
43
|
+
"default": "./dist/node-context.js"
|
|
36
44
|
}
|
|
37
45
|
},
|
|
38
46
|
"files": [
|
|
@@ -49,6 +57,7 @@
|
|
|
49
57
|
"zod": "^4.0.0"
|
|
50
58
|
},
|
|
51
59
|
"devDependencies": {
|
|
60
|
+
"@types/node": "^20.19.39",
|
|
52
61
|
"openapi-types": "^12.1.3",
|
|
53
62
|
"tsup": "^8.3.0",
|
|
54
63
|
"tsx": "^4.21.0",
|