@shipeasy/openapi 3.2.0 → 3.4.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 +1 -1
- package/dist/{chunk-RTN572TI.js → chunk-JJA7XEPU.js} +91 -1
- package/dist/chunk-JJA7XEPU.js.map +1 -0
- package/dist/{chunk-DW33MG4B.js → chunk-Z3CY5Y44.js} +514 -126
- package/dist/chunk-Z3CY5Y44.js.map +1 -0
- package/dist/{client-BPVn4hMC.d.ts → client-CkRbr8I2.d.ts} +1544 -212
- package/dist/client.d.ts +1 -1
- package/dist/client.js +23 -1
- package/dist/custom.d.ts +5 -5
- package/dist/custom.js +128 -84
- package/dist/custom.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +1935 -963
- package/dist/schemas.js +141 -1
- package/openapi-sdk.json +31 -9
- package/openapi.json +10449 -8118
- package/openapi.yaml +2274 -634
- package/package.json +1 -1
- package/spec/components/schemas/alert-rules.yaml +434 -10
- package/spec/components/schemas/alerts.yaml +9 -7
- package/spec/components/schemas/common.yaml +2 -2
- package/spec/components/schemas/connectors.yaml +69 -6
- package/spec/components/schemas/events.yaml +20 -9
- package/spec/components/schemas/keys.yaml +39 -0
- package/spec/components/schemas/metrics.yaml +131 -251
- package/spec/components/schemas/ops.yaml +471 -29
- package/spec/components/schemas/projects.yaml +18 -0
- package/spec/components/schemas/search.yaml +1 -0
- package/spec/components/schemas/tags.yaml +91 -0
- package/spec/openapi.yaml +56 -0
- package/spec/paths/alerts.yaml +5 -3
- package/spec/paths/i18n.yaml +2 -1
- package/spec/paths/keys.yaml +79 -0
- package/spec/paths/metrics.yaml +26 -17
- package/spec/paths/ops.yaml +514 -11
- package/spec/paths/tags.yaml +270 -0
- package/dist/chunk-DW33MG4B.js.map +0 -1
- package/dist/chunk-RTN572TI.js.map +0 -1
|
@@ -448,10 +448,7 @@ var zExperimentInlineMetric = z.object({
|
|
|
448
448
|
query: z.string().min(1).max(4096).optional(),
|
|
449
449
|
event: z.string().min(1).max(256).optional(),
|
|
450
450
|
aggregation: z.enum([
|
|
451
|
-
"count_users",
|
|
452
451
|
"count_events",
|
|
453
|
-
"retention_7d",
|
|
454
|
-
"retention_30d",
|
|
455
452
|
"sum",
|
|
456
453
|
"avg"
|
|
457
454
|
]).optional(),
|
|
@@ -1129,92 +1126,24 @@ var zUpdateAttributeRequest = z.object({
|
|
|
1129
1126
|
var zUpdateAttributeResponse = z.object({
|
|
1130
1127
|
id: z.string()
|
|
1131
1128
|
});
|
|
1129
|
+
var zMetricDisplayConfig = z.object({
|
|
1130
|
+
band: z.object({
|
|
1131
|
+
method: z.enum(["seasonal"]),
|
|
1132
|
+
sigma: z.number().gt(0).optional()
|
|
1133
|
+
}).optional(),
|
|
1134
|
+
forecast: z.object({
|
|
1135
|
+
method: z.enum(["linear", "seasonal"]),
|
|
1136
|
+
horizon: z.int().gte(1).lte(500).optional()
|
|
1137
|
+
}).optional()
|
|
1138
|
+
});
|
|
1132
1139
|
var zQueryIr = z.object({
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
kind: z.literal("count_users")
|
|
1136
|
-
}),
|
|
1137
|
-
z.object({
|
|
1138
|
-
kind: z.literal("count_events")
|
|
1139
|
-
}),
|
|
1140
|
-
z.object({
|
|
1141
|
-
kind: z.literal("sum")
|
|
1142
|
-
}),
|
|
1143
|
-
z.object({
|
|
1144
|
-
kind: z.literal("avg")
|
|
1145
|
-
}),
|
|
1146
|
-
z.object({
|
|
1147
|
-
kind: z.literal("min")
|
|
1148
|
-
}),
|
|
1149
|
-
z.object({
|
|
1150
|
-
kind: z.literal("max")
|
|
1151
|
-
}),
|
|
1152
|
-
z.object({
|
|
1153
|
-
kind: z.literal("unique")
|
|
1154
|
-
}),
|
|
1155
|
-
z.object({
|
|
1156
|
-
kind: z.literal("quantile"),
|
|
1157
|
-
p: z.union([
|
|
1158
|
-
z.literal(0.5),
|
|
1159
|
-
z.literal(0.75),
|
|
1160
|
-
z.literal(0.9),
|
|
1161
|
-
z.literal(0.95),
|
|
1162
|
-
z.literal(0.99),
|
|
1163
|
-
z.literal(0.999)
|
|
1164
|
-
])
|
|
1165
|
-
}),
|
|
1166
|
-
z.object({
|
|
1167
|
-
kind: z.literal("retention_Nd"),
|
|
1168
|
-
n: z.int().gte(1).lte(90)
|
|
1169
|
-
}),
|
|
1170
|
-
z.object({
|
|
1171
|
-
kind: z.literal("ratio"),
|
|
1172
|
-
numerator: z.object({
|
|
1173
|
-
agg: z.enum(["count_users", "count_events"]),
|
|
1174
|
-
metric: z.string().min(1).max(128),
|
|
1175
|
-
filters: z.array(z.object({
|
|
1176
|
-
label: z.string().regex(/^[a-z_][a-z0-9_]{0,63}$/),
|
|
1177
|
-
op: z.enum([
|
|
1178
|
-
"=",
|
|
1179
|
-
"!=",
|
|
1180
|
-
"=~",
|
|
1181
|
-
"!~"
|
|
1182
|
-
]),
|
|
1183
|
-
value: z.string().max(512)
|
|
1184
|
-
})).max(16).optional()
|
|
1185
|
-
}),
|
|
1186
|
-
denominator: z.object({
|
|
1187
|
-
agg: z.enum(["count_users", "count_events"]),
|
|
1188
|
-
metric: z.string().min(1).max(128),
|
|
1189
|
-
filters: z.array(z.object({
|
|
1190
|
-
label: z.string().regex(/^[a-z_][a-z0-9_]{0,63}$/),
|
|
1191
|
-
op: z.enum([
|
|
1192
|
-
"=",
|
|
1193
|
-
"!=",
|
|
1194
|
-
"=~",
|
|
1195
|
-
"!~"
|
|
1196
|
-
]),
|
|
1197
|
-
value: z.string().max(512)
|
|
1198
|
-
})).max(16).optional()
|
|
1199
|
-
})
|
|
1200
|
-
})
|
|
1201
|
-
]),
|
|
1202
|
-
metric: z.string().min(1).max(128),
|
|
1203
|
-
valueLabel: z.string().min(1).max(128).optional(),
|
|
1204
|
-
filters: z.array(z.object({
|
|
1205
|
-
label: z.string().regex(/^[a-z_][a-z0-9_]{0,63}$/),
|
|
1206
|
-
op: z.enum([
|
|
1207
|
-
"=",
|
|
1208
|
-
"!=",
|
|
1209
|
-
"=~",
|
|
1210
|
-
"!~"
|
|
1211
|
-
]),
|
|
1212
|
-
value: z.string().max(512)
|
|
1213
|
-
})).max(16).optional().default([]),
|
|
1140
|
+
v: z.literal(2),
|
|
1141
|
+
expr: z.record(z.string(), z.unknown()),
|
|
1214
1142
|
groupBy: z.object({
|
|
1215
1143
|
op: z.enum(["by", "without"]),
|
|
1216
|
-
labels: z.array(z.string().regex(/^[a-z_][a-z0-9_]{0,63}$/)).max(
|
|
1217
|
-
}).optional()
|
|
1144
|
+
labels: z.array(z.string().regex(/^[a-z_][a-z0-9_]{0,63}$/)).max(8)
|
|
1145
|
+
}).optional(),
|
|
1146
|
+
display: zMetricDisplayConfig.optional()
|
|
1218
1147
|
});
|
|
1219
1148
|
var zListMetricsResponse = z.array(z.object({
|
|
1220
1149
|
id: z.string(),
|
|
@@ -1240,6 +1169,7 @@ var zListMetricsResponse = z.array(z.object({
|
|
|
1240
1169
|
createdAt: z.string().nullish(),
|
|
1241
1170
|
updatedAt: z.string().optional()
|
|
1242
1171
|
}));
|
|
1172
|
+
var zMetricDisplayName = z.string().nullable();
|
|
1243
1173
|
var zMetricEventName = z.string().min(1);
|
|
1244
1174
|
var zMetricQueryDsl = z.string().min(1).max(4096);
|
|
1245
1175
|
var zMetricWinsorizePct = z.int().gte(1).lte(99).default(99);
|
|
@@ -1252,23 +1182,27 @@ var zMetricDirection = z.enum([
|
|
|
1252
1182
|
var zMetricDisplayUnit = z.string().nullable();
|
|
1253
1183
|
var zCreateMetricWithQuery = z.object({
|
|
1254
1184
|
name: zMetricName,
|
|
1185
|
+
display_name: zMetricDisplayName.optional(),
|
|
1255
1186
|
folder: zFolder.optional(),
|
|
1256
1187
|
event_name: zMetricEventName,
|
|
1257
1188
|
query: zMetricQueryDsl,
|
|
1258
1189
|
winsorize_pct: zMetricWinsorizePct.optional(),
|
|
1259
1190
|
default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
|
|
1260
1191
|
direction: zMetricDirection.optional(),
|
|
1261
|
-
unit: zMetricDisplayUnit.optional()
|
|
1192
|
+
unit: zMetricDisplayUnit.optional(),
|
|
1193
|
+
display: zMetricDisplayConfig.optional()
|
|
1262
1194
|
});
|
|
1263
1195
|
var zCreateMetricWithQueryIr = z.object({
|
|
1264
1196
|
name: zMetricName,
|
|
1197
|
+
display_name: zMetricDisplayName.optional(),
|
|
1265
1198
|
folder: zFolder.optional(),
|
|
1266
1199
|
event_name: zMetricEventName,
|
|
1267
1200
|
query_ir: zQueryIr,
|
|
1268
1201
|
winsorize_pct: zMetricWinsorizePct.optional(),
|
|
1269
1202
|
default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
|
|
1270
1203
|
direction: zMetricDirection.optional(),
|
|
1271
|
-
unit: zMetricDisplayUnit.optional()
|
|
1204
|
+
unit: zMetricDisplayUnit.optional(),
|
|
1205
|
+
display: zMetricDisplayConfig.optional()
|
|
1272
1206
|
});
|
|
1273
1207
|
var zCreateMetricRequest = z.union([
|
|
1274
1208
|
zCreateMetricWithQuery,
|
|
@@ -1304,30 +1238,36 @@ var zDeleteMetricResponse = z.object({
|
|
|
1304
1238
|
ok: z.literal(true)
|
|
1305
1239
|
});
|
|
1306
1240
|
var zUpdateMetricWithQuery = z.object({
|
|
1241
|
+
display_name: zMetricDisplayName.optional(),
|
|
1307
1242
|
folder: zFolder.optional(),
|
|
1308
1243
|
event_name: zMetricEventName.optional(),
|
|
1309
1244
|
query: zMetricQueryDsl,
|
|
1310
1245
|
winsorize_pct: zMetricWinsorizePct.optional(),
|
|
1311
1246
|
default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
|
|
1312
1247
|
direction: zMetricDirection.optional(),
|
|
1313
|
-
unit: zMetricDisplayUnit.optional()
|
|
1248
|
+
unit: zMetricDisplayUnit.optional(),
|
|
1249
|
+
display: zMetricDisplayConfig.optional()
|
|
1314
1250
|
});
|
|
1315
1251
|
var zUpdateMetricWithQueryIr = z.object({
|
|
1252
|
+
display_name: zMetricDisplayName.optional(),
|
|
1316
1253
|
folder: zFolder.optional(),
|
|
1317
1254
|
event_name: zMetricEventName.optional(),
|
|
1318
1255
|
query_ir: zQueryIr,
|
|
1319
1256
|
winsorize_pct: zMetricWinsorizePct.optional(),
|
|
1320
1257
|
default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
|
|
1321
1258
|
direction: zMetricDirection.optional(),
|
|
1322
|
-
unit: zMetricDisplayUnit.optional()
|
|
1259
|
+
unit: zMetricDisplayUnit.optional(),
|
|
1260
|
+
display: zMetricDisplayConfig.optional()
|
|
1323
1261
|
});
|
|
1324
1262
|
var zUpdateMetricFields = z.object({
|
|
1263
|
+
display_name: zMetricDisplayName.optional(),
|
|
1325
1264
|
folder: zFolder.optional(),
|
|
1326
1265
|
event_name: zMetricEventName.optional(),
|
|
1327
1266
|
winsorize_pct: zMetricWinsorizePct.optional(),
|
|
1328
1267
|
default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
|
|
1329
1268
|
direction: zMetricDirection.optional(),
|
|
1330
|
-
unit: zMetricDisplayUnit.optional()
|
|
1269
|
+
unit: zMetricDisplayUnit.optional(),
|
|
1270
|
+
display: zMetricDisplayConfig.optional()
|
|
1331
1271
|
});
|
|
1332
1272
|
var zUpdateMetricRequest = z.union([
|
|
1333
1273
|
zUpdateMetricWithQuery,
|
|
@@ -1363,7 +1303,9 @@ var zGetMetricSeriesResponse = z.object({
|
|
|
1363
1303
|
sql: z.string(),
|
|
1364
1304
|
rows: z.array(z.object({
|
|
1365
1305
|
t: z.int(),
|
|
1366
|
-
v: z.number()
|
|
1306
|
+
v: z.number(),
|
|
1307
|
+
lo: z.number().optional(),
|
|
1308
|
+
hi: z.number().optional()
|
|
1367
1309
|
}))
|
|
1368
1310
|
});
|
|
1369
1311
|
var zListEventsResponse = z.array(z.object({
|
|
@@ -1372,24 +1314,25 @@ var zListEventsResponse = z.array(z.object({
|
|
|
1372
1314
|
folder: z.string().max(256).regex(/^[a-zA-Z0-9_-]+$/).nullish(),
|
|
1373
1315
|
description: z.string().nullable(),
|
|
1374
1316
|
properties: z.array(z.object({
|
|
1375
|
-
name: z.string().min(1).max(64),
|
|
1317
|
+
name: z.string().min(1).max(64).regex(/^[a-zA-Z_][a-zA-Z_0-9]*$/),
|
|
1376
1318
|
type: z.enum([
|
|
1377
1319
|
"string",
|
|
1378
1320
|
"number",
|
|
1379
1321
|
"boolean"
|
|
1380
1322
|
]),
|
|
1381
1323
|
required: z.boolean().optional().default(false),
|
|
1382
|
-
description: z.string().optional().default("")
|
|
1324
|
+
description: z.string().optional().default(""),
|
|
1325
|
+
pending: z.boolean().optional()
|
|
1383
1326
|
})),
|
|
1384
1327
|
pending: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1385
1328
|
createdAt: z.string()
|
|
1386
1329
|
}));
|
|
1387
1330
|
var zCreateEventRequest = z.object({
|
|
1388
|
-
name: z.string().regex(/^[a-zA-Z0-9_][a-zA-Z0-9_\-.]{0,
|
|
1331
|
+
name: z.string().regex(/^[a-zA-Z0-9_][a-zA-Z0-9_\-.]{0,49}$/),
|
|
1389
1332
|
folder: zFolder.optional(),
|
|
1390
1333
|
description: z.string().optional(),
|
|
1391
1334
|
properties: z.array(z.object({
|
|
1392
|
-
name: z.string().min(1).max(64),
|
|
1335
|
+
name: z.string().min(1).max(64).regex(/^[a-zA-Z_][a-zA-Z_0-9]*$/),
|
|
1393
1336
|
type: z.enum([
|
|
1394
1337
|
"string",
|
|
1395
1338
|
"number",
|
|
@@ -1409,14 +1352,15 @@ var zGetEventResponse = z.object({
|
|
|
1409
1352
|
folder: z.string().max(256).regex(/^[a-zA-Z0-9_-]+$/).nullish(),
|
|
1410
1353
|
description: z.string().nullable(),
|
|
1411
1354
|
properties: z.array(z.object({
|
|
1412
|
-
name: z.string().min(1).max(64),
|
|
1355
|
+
name: z.string().min(1).max(64).regex(/^[a-zA-Z_][a-zA-Z_0-9]*$/),
|
|
1413
1356
|
type: z.enum([
|
|
1414
1357
|
"string",
|
|
1415
1358
|
"number",
|
|
1416
1359
|
"boolean"
|
|
1417
1360
|
]),
|
|
1418
1361
|
required: z.boolean().optional().default(false),
|
|
1419
|
-
description: z.string().optional().default("")
|
|
1362
|
+
description: z.string().optional().default(""),
|
|
1363
|
+
pending: z.boolean().optional()
|
|
1420
1364
|
})),
|
|
1421
1365
|
pending: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1422
1366
|
createdAt: z.string()
|
|
@@ -1428,7 +1372,7 @@ var zUpdateEventRequest = z.object({
|
|
|
1428
1372
|
folder: zFolder.optional(),
|
|
1429
1373
|
description: z.string().optional(),
|
|
1430
1374
|
properties: z.array(z.object({
|
|
1431
|
-
name: z.string().min(1).max(64),
|
|
1375
|
+
name: z.string().min(1).max(64).regex(/^[a-zA-Z_][a-zA-Z_0-9]*$/),
|
|
1432
1376
|
type: z.enum([
|
|
1433
1377
|
"string",
|
|
1434
1378
|
"number",
|
|
@@ -1445,7 +1389,7 @@ var zApproveEventRequest = z.object({
|
|
|
1445
1389
|
folder: zFolder.optional(),
|
|
1446
1390
|
description: z.string().optional(),
|
|
1447
1391
|
properties: z.array(z.object({
|
|
1448
|
-
name: z.string().min(1).max(64),
|
|
1392
|
+
name: z.string().min(1).max(64).regex(/^[a-zA-Z_][a-zA-Z_0-9]*$/),
|
|
1449
1393
|
type: z.enum([
|
|
1450
1394
|
"string",
|
|
1451
1395
|
"number",
|
|
@@ -1477,6 +1421,7 @@ var zOpsItemPriority = z.enum([
|
|
|
1477
1421
|
var zOpsInvestigationState = z.enum([
|
|
1478
1422
|
"pr_ready",
|
|
1479
1423
|
"pr_merged",
|
|
1424
|
+
"pr_closed",
|
|
1480
1425
|
"investigated",
|
|
1481
1426
|
"detected",
|
|
1482
1427
|
"question",
|
|
@@ -1528,16 +1473,19 @@ var zOpsAlertMetricSummary = z.object({
|
|
|
1528
1473
|
var zOpsAlertContext = z.object({
|
|
1529
1474
|
source: z.enum([
|
|
1530
1475
|
"metric_rule",
|
|
1476
|
+
"killswitch_armed",
|
|
1531
1477
|
"experiment_srm",
|
|
1532
1478
|
"experiment_peek",
|
|
1533
1479
|
"guardrail"
|
|
1534
1480
|
]),
|
|
1535
1481
|
dedupeKey: z.string(),
|
|
1482
|
+
detail: z.string().nullish(),
|
|
1483
|
+
ruleId: z.string().nullish(),
|
|
1536
1484
|
severity: z.enum([
|
|
1537
1485
|
"danger",
|
|
1538
1486
|
"warn",
|
|
1539
1487
|
"info"
|
|
1540
|
-
]),
|
|
1488
|
+
]).optional(),
|
|
1541
1489
|
observedValue: z.number().nullish(),
|
|
1542
1490
|
href: z.string().nullish(),
|
|
1543
1491
|
status: z.enum([
|
|
@@ -1592,7 +1540,16 @@ var zGithubPrLink = z.object({
|
|
|
1592
1540
|
url: z.string(),
|
|
1593
1541
|
linkedAt: z.string().optional(),
|
|
1594
1542
|
connectedToIssue: z.boolean().optional(),
|
|
1595
|
-
method: z.enum(["closes", "comment"]).optional()
|
|
1543
|
+
method: z.enum(["closes", "comment"]).optional(),
|
|
1544
|
+
owner: z.string().optional(),
|
|
1545
|
+
repo: z.string().optional(),
|
|
1546
|
+
state: z.enum([
|
|
1547
|
+
"open",
|
|
1548
|
+
"merged",
|
|
1549
|
+
"closed"
|
|
1550
|
+
]).optional(),
|
|
1551
|
+
mergedAt: z.string().optional(),
|
|
1552
|
+
closedAt: z.string().optional()
|
|
1596
1553
|
});
|
|
1597
1554
|
var zGithubConnectorData = z.object({
|
|
1598
1555
|
issue: z.object({
|
|
@@ -1695,6 +1652,7 @@ var zListOpsItemsResponse = z.array(z.object({
|
|
|
1695
1652
|
createdAt: z.string(),
|
|
1696
1653
|
updatedAt: z.string()
|
|
1697
1654
|
}));
|
|
1655
|
+
var zTagName = z.string().min(1).max(64);
|
|
1698
1656
|
var zCreateBugRequest = z.object({
|
|
1699
1657
|
type: z.enum(["bug"]),
|
|
1700
1658
|
title: z.string().min(1).max(200).regex(/^\S(.*\S)?$/),
|
|
@@ -1705,7 +1663,7 @@ var zCreateBugRequest = z.object({
|
|
|
1705
1663
|
status: zOpsItemStatus.optional(),
|
|
1706
1664
|
assigneeId: z.string().nullish(),
|
|
1707
1665
|
subscribers: z.array(z.email()).optional().default([]),
|
|
1708
|
-
tags: z.array(
|
|
1666
|
+
tags: z.array(zTagName).max(50).optional().default([]),
|
|
1709
1667
|
reporterEmail: z.email().nullish(),
|
|
1710
1668
|
pageUrl: z.url().nullish(),
|
|
1711
1669
|
userAgent: z.string().max(500).nullish(),
|
|
@@ -1722,7 +1680,7 @@ var zCreateFeatureRequestRequest = z.object({
|
|
|
1722
1680
|
status: zOpsItemStatus.optional(),
|
|
1723
1681
|
assigneeId: z.string().nullish(),
|
|
1724
1682
|
subscribers: z.array(z.email()).optional().default([]),
|
|
1725
|
-
tags: z.array(
|
|
1683
|
+
tags: z.array(zTagName).max(50).optional().default([]),
|
|
1726
1684
|
reporterEmail: z.email().nullish(),
|
|
1727
1685
|
pageUrl: z.url().nullish(),
|
|
1728
1686
|
userAgent: z.string().max(500).nullish(),
|
|
@@ -1746,18 +1704,20 @@ var zCreatePublicBugRequest = z.object({
|
|
|
1746
1704
|
status: zOpsItemStatus.optional(),
|
|
1747
1705
|
assigneeId: z.string().nullish(),
|
|
1748
1706
|
subscribers: z.array(z.email()).optional().default([]),
|
|
1749
|
-
tags: z.array(
|
|
1707
|
+
tags: z.array(zTagName).max(50).optional().default([]),
|
|
1750
1708
|
reporterEmail: z.email().nullish(),
|
|
1751
1709
|
pageUrl: z.url().nullish(),
|
|
1752
1710
|
userAgent: z.string().max(500).nullish(),
|
|
1753
1711
|
viewport: z.string().max(40).nullish(),
|
|
1754
1712
|
context: z.record(z.string(), z.unknown()).nullish(),
|
|
1713
|
+
dedupKey: z.string().max(200).optional(),
|
|
1755
1714
|
notify: zNotificationTarget.nullish()
|
|
1756
1715
|
});
|
|
1757
1716
|
var zCreatePublicTicketResponse = z.object({
|
|
1758
1717
|
id: z.string().optional(),
|
|
1759
1718
|
number: z.int(),
|
|
1760
|
-
deduped: z.boolean().optional()
|
|
1719
|
+
deduped: z.boolean().optional(),
|
|
1720
|
+
updated: z.boolean().optional()
|
|
1761
1721
|
});
|
|
1762
1722
|
var zCreatePublicFeatureRequestRequest = z.object({
|
|
1763
1723
|
title: z.string().min(1).max(200).regex(/^\S(.*\S)?$/),
|
|
@@ -1767,11 +1727,12 @@ var zCreatePublicFeatureRequestRequest = z.object({
|
|
|
1767
1727
|
status: zOpsItemStatus.optional(),
|
|
1768
1728
|
assigneeId: z.string().nullish(),
|
|
1769
1729
|
subscribers: z.array(z.email()).optional().default([]),
|
|
1770
|
-
tags: z.array(
|
|
1730
|
+
tags: z.array(zTagName).max(50).optional().default([]),
|
|
1771
1731
|
reporterEmail: z.email().nullish(),
|
|
1772
1732
|
pageUrl: z.url().nullish(),
|
|
1773
1733
|
userAgent: z.string().max(500).nullish(),
|
|
1774
1734
|
context: z.record(z.string(), z.unknown()).nullish(),
|
|
1735
|
+
dedupKey: z.string().max(200).optional(),
|
|
1775
1736
|
notify: zNotificationTarget.nullish()
|
|
1776
1737
|
});
|
|
1777
1738
|
var zOpsItemAttachment = z.object({
|
|
@@ -1878,7 +1839,8 @@ var zAckOpsItemRequest = z.object({
|
|
|
1878
1839
|
"gemini",
|
|
1879
1840
|
"jarvis"
|
|
1880
1841
|
]).optional(),
|
|
1881
|
-
sessionId: z.string().max(300).optional()
|
|
1842
|
+
sessionId: z.string().max(300).optional(),
|
|
1843
|
+
launch: z.boolean().optional().default(true)
|
|
1882
1844
|
});
|
|
1883
1845
|
var zAckOpsItemResponse = z.object({
|
|
1884
1846
|
id: z.string(),
|
|
@@ -2012,6 +1974,109 @@ var zUpdateOpsInvestigationRequest = z.object({
|
|
|
2012
1974
|
completedAt: z.string().optional(),
|
|
2013
1975
|
sessionId: z.string().max(300).optional()
|
|
2014
1976
|
});
|
|
1977
|
+
var zOpsQuestionStatus = z.enum([
|
|
1978
|
+
"open",
|
|
1979
|
+
"completed",
|
|
1980
|
+
"cancelled"
|
|
1981
|
+
]);
|
|
1982
|
+
var zOpsQuestionAnswer = z.object({
|
|
1983
|
+
selected: z.array(z.string()),
|
|
1984
|
+
other: z.string().nullable()
|
|
1985
|
+
});
|
|
1986
|
+
var zOpsQuestionDelivery = z.enum(["resume", "poll"]);
|
|
1987
|
+
var zOpsQuestion = z.object({
|
|
1988
|
+
id: z.string(),
|
|
1989
|
+
feedbackId: z.string(),
|
|
1990
|
+
header: z.string(),
|
|
1991
|
+
question: z.string(),
|
|
1992
|
+
options: z.array(z.object({
|
|
1993
|
+
label: z.string(),
|
|
1994
|
+
description: z.string().nullable()
|
|
1995
|
+
})),
|
|
1996
|
+
multiSelect: z.boolean(),
|
|
1997
|
+
status: zOpsQuestionStatus,
|
|
1998
|
+
answer: zOpsQuestionAnswer.nullable(),
|
|
1999
|
+
answeredBy: z.string().nullable(),
|
|
2000
|
+
answeredAt: z.string().nullable(),
|
|
2001
|
+
agent: z.enum([
|
|
2002
|
+
"jarvis",
|
|
2003
|
+
"claude",
|
|
2004
|
+
"cursor",
|
|
2005
|
+
"copilot",
|
|
2006
|
+
"jules"
|
|
2007
|
+
]).nullable(),
|
|
2008
|
+
askedBy: z.string().nullable(),
|
|
2009
|
+
runId: z.string().nullable(),
|
|
2010
|
+
delivery: zOpsQuestionDelivery,
|
|
2011
|
+
deliveredAt: z.string().nullable(),
|
|
2012
|
+
deliveryError: z.string().nullable(),
|
|
2013
|
+
createdAt: z.string(),
|
|
2014
|
+
updatedAt: z.string()
|
|
2015
|
+
});
|
|
2016
|
+
var zListOpsQuestionsResponse = z.array(zOpsQuestion);
|
|
2017
|
+
var zOpsQuestionOption = z.object({
|
|
2018
|
+
label: z.string().min(1).max(120),
|
|
2019
|
+
description: z.string().max(500).optional()
|
|
2020
|
+
});
|
|
2021
|
+
var zAskOpsQuestionInput = z.object({
|
|
2022
|
+
header: z.string().min(1).max(24),
|
|
2023
|
+
question: z.string().min(1).max(2e3),
|
|
2024
|
+
options: z.array(zOpsQuestionOption).min(2).max(4),
|
|
2025
|
+
multiSelect: z.boolean().optional().default(false)
|
|
2026
|
+
});
|
|
2027
|
+
var zAskOpsQuestionsRequest = z.object({
|
|
2028
|
+
questions: z.array(zAskOpsQuestionInput).min(1).max(4),
|
|
2029
|
+
runId: z.string().max(200).optional(),
|
|
2030
|
+
agent: z.enum([
|
|
2031
|
+
"jarvis",
|
|
2032
|
+
"claude",
|
|
2033
|
+
"cursor",
|
|
2034
|
+
"copilot",
|
|
2035
|
+
"jules"
|
|
2036
|
+
]).optional(),
|
|
2037
|
+
delivery: zOpsQuestionDelivery.optional()
|
|
2038
|
+
});
|
|
2039
|
+
var zAskOpsQuestionsResponse = z.array(zOpsQuestion);
|
|
2040
|
+
var zAnswerOpsQuestionRequest = z.object({
|
|
2041
|
+
selected: z.array(z.string().max(120)).max(4).optional(),
|
|
2042
|
+
other: z.string().max(1e4).optional()
|
|
2043
|
+
});
|
|
2044
|
+
var zOpsQaNoteKind = z.enum([
|
|
2045
|
+
"narrowing",
|
|
2046
|
+
"clarification",
|
|
2047
|
+
"verification",
|
|
2048
|
+
"correction"
|
|
2049
|
+
]);
|
|
2050
|
+
var zOpsQaNoteVerdict = z.enum(["pass", "fail"]);
|
|
2051
|
+
var zOpsQaNote = z.object({
|
|
2052
|
+
id: z.string(),
|
|
2053
|
+
feedbackId: z.string(),
|
|
2054
|
+
kind: zOpsQaNoteKind,
|
|
2055
|
+
verdict: zOpsQaNoteVerdict.nullable(),
|
|
2056
|
+
body: z.string(),
|
|
2057
|
+
authorEmail: z.string().nullable(),
|
|
2058
|
+
authorAgent: z.enum([
|
|
2059
|
+
"jarvis",
|
|
2060
|
+
"claude",
|
|
2061
|
+
"cursor",
|
|
2062
|
+
"copilot",
|
|
2063
|
+
"jules"
|
|
2064
|
+
]).nullable(),
|
|
2065
|
+
createdAt: z.string()
|
|
2066
|
+
});
|
|
2067
|
+
var zListOpsQaNotesResponse = z.array(zOpsQaNote);
|
|
2068
|
+
var zCreateOpsQaNoteRequest = z.object({
|
|
2069
|
+
kind: zOpsQaNoteKind,
|
|
2070
|
+
body: z.string().min(1).max(1e4),
|
|
2071
|
+
verdict: zOpsQaNoteVerdict.optional(),
|
|
2072
|
+
agent: z.enum([
|
|
2073
|
+
"jarvis",
|
|
2074
|
+
"claude",
|
|
2075
|
+
"cursor",
|
|
2076
|
+
"copilot",
|
|
2077
|
+
"jules"
|
|
2078
|
+
]).optional()
|
|
2079
|
+
});
|
|
2015
2080
|
var zOpsAgentProfile = z.object({
|
|
2016
2081
|
connectorId: z.string(),
|
|
2017
2082
|
provider: z.enum([
|
|
@@ -2064,11 +2129,30 @@ var zListSlackChannelsResponse = z.object({
|
|
|
2064
2129
|
isPrivate: z.boolean().optional()
|
|
2065
2130
|
}))
|
|
2066
2131
|
});
|
|
2132
|
+
var zAlertCompositeSpec = z.object({
|
|
2133
|
+
op: z.enum(["and", "or"]),
|
|
2134
|
+
rules: z.array(z.string().min(1)).min(2)
|
|
2135
|
+
});
|
|
2136
|
+
var zAlertRuleNotify = z.object({
|
|
2137
|
+
slackChannel: z.object({
|
|
2138
|
+
id: z.string().min(1),
|
|
2139
|
+
name: z.string().min(1)
|
|
2140
|
+
}).nullish(),
|
|
2141
|
+
email: z.email().nullish(),
|
|
2142
|
+
inApp: z.boolean().nullish()
|
|
2143
|
+
}).nullable();
|
|
2067
2144
|
var zListAlertRulesResponse = z.array(z.object({
|
|
2068
2145
|
id: z.string(),
|
|
2069
2146
|
name: z.string(),
|
|
2070
2147
|
metricId: z.string(),
|
|
2071
2148
|
metricName: z.string().nullable(),
|
|
2149
|
+
kind: z.enum([
|
|
2150
|
+
"normal",
|
|
2151
|
+
"anomaly",
|
|
2152
|
+
"outliers",
|
|
2153
|
+
"no_data",
|
|
2154
|
+
"composite"
|
|
2155
|
+
]),
|
|
2072
2156
|
comparator: z.enum([
|
|
2073
2157
|
"gt",
|
|
2074
2158
|
"gte",
|
|
@@ -2076,35 +2160,80 @@ var zListAlertRulesResponse = z.array(z.object({
|
|
|
2076
2160
|
"lte"
|
|
2077
2161
|
]),
|
|
2078
2162
|
threshold: z.number(),
|
|
2163
|
+
rangeMin: z.number().nullable(),
|
|
2164
|
+
rangeMax: z.number().nullable(),
|
|
2165
|
+
sigma: z.number().nullable(),
|
|
2166
|
+
direction: z.enum([
|
|
2167
|
+
"above",
|
|
2168
|
+
"below",
|
|
2169
|
+
"either"
|
|
2170
|
+
]).nullable(),
|
|
2171
|
+
sustained: z.boolean(),
|
|
2172
|
+
warnThreshold: z.number().nullable(),
|
|
2173
|
+
recoveryThreshold: z.number().nullable(),
|
|
2174
|
+
groupAlerts: z.boolean(),
|
|
2175
|
+
maxGroups: z.int().nullable(),
|
|
2176
|
+
noDataMinutes: z.int().nullable(),
|
|
2177
|
+
delayMinutes: z.int().nullable(),
|
|
2178
|
+
autoResolveMinutes: z.int().nullable(),
|
|
2179
|
+
composite: zAlertCompositeSpec.nullable(),
|
|
2079
2180
|
windowHours: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2181
|
+
bucketMinutes: z.int().nullable(),
|
|
2182
|
+
requiredBuckets: z.int().nullable(),
|
|
2080
2183
|
severity: z.enum([
|
|
2081
2184
|
"danger",
|
|
2082
2185
|
"warn",
|
|
2083
2186
|
"info"
|
|
2084
2187
|
]),
|
|
2085
2188
|
enabled: z.boolean(),
|
|
2086
|
-
notify:
|
|
2189
|
+
notify: zAlertRuleNotify,
|
|
2087
2190
|
createdAt: z.string(),
|
|
2088
2191
|
updatedAt: z.string()
|
|
2089
2192
|
}));
|
|
2090
2193
|
var zCreateAlertRuleRequest = z.object({
|
|
2091
2194
|
name: z.string().min(1).max(120),
|
|
2092
2195
|
metricId: z.string().min(1),
|
|
2196
|
+
kind: z.enum([
|
|
2197
|
+
"normal",
|
|
2198
|
+
"anomaly",
|
|
2199
|
+
"outliers",
|
|
2200
|
+
"no_data",
|
|
2201
|
+
"composite"
|
|
2202
|
+
]).optional().default("normal"),
|
|
2093
2203
|
comparator: z.enum([
|
|
2094
2204
|
"gt",
|
|
2095
2205
|
"gte",
|
|
2096
2206
|
"lt",
|
|
2097
2207
|
"lte"
|
|
2098
|
-
]),
|
|
2099
|
-
threshold: z.number(),
|
|
2208
|
+
]).optional().default("gt"),
|
|
2209
|
+
threshold: z.number().optional(),
|
|
2210
|
+
rangeMin: z.number().nullish(),
|
|
2211
|
+
rangeMax: z.number().nullish(),
|
|
2212
|
+
sigma: z.number().gt(0).nullish(),
|
|
2213
|
+
direction: z.enum([
|
|
2214
|
+
"above",
|
|
2215
|
+
"below",
|
|
2216
|
+
"either"
|
|
2217
|
+
]).nullish(),
|
|
2218
|
+
sustained: z.boolean().optional().default(false),
|
|
2100
2219
|
windowHours: z.int().gte(1).lte(720).optional().default(24),
|
|
2220
|
+
bucketMinutes: z.int().gte(1).lte(43200).nullish(),
|
|
2221
|
+
requiredBuckets: z.int().gte(1).nullish(),
|
|
2222
|
+
warnThreshold: z.number().nullish(),
|
|
2223
|
+
recoveryThreshold: z.number().nullish(),
|
|
2224
|
+
groupAlerts: z.boolean().optional().default(false),
|
|
2225
|
+
maxGroups: z.int().gte(1).lte(50).nullish(),
|
|
2226
|
+
noDataMinutes: z.int().gte(5).lte(43200).nullish(),
|
|
2227
|
+
delayMinutes: z.int().gte(1).lte(1440).nullish(),
|
|
2228
|
+
autoResolveMinutes: z.int().gte(1).nullish(),
|
|
2229
|
+
composite: zAlertCompositeSpec.optional(),
|
|
2101
2230
|
severity: z.enum([
|
|
2102
2231
|
"danger",
|
|
2103
2232
|
"warn",
|
|
2104
2233
|
"info"
|
|
2105
2234
|
]).optional().default("warn"),
|
|
2106
2235
|
enabled: z.boolean().optional().default(true),
|
|
2107
|
-
notify:
|
|
2236
|
+
notify: zAlertRuleNotify.optional()
|
|
2108
2237
|
});
|
|
2109
2238
|
var zCreateAlertRuleResponse = z.object({
|
|
2110
2239
|
id: z.string()
|
|
@@ -2114,6 +2243,13 @@ var zDeleteAlertRuleResponse = z.object({
|
|
|
2114
2243
|
});
|
|
2115
2244
|
var zUpdateAlertRuleRequest = z.object({
|
|
2116
2245
|
name: z.string().min(1).max(120).optional(),
|
|
2246
|
+
kind: z.enum([
|
|
2247
|
+
"normal",
|
|
2248
|
+
"anomaly",
|
|
2249
|
+
"outliers",
|
|
2250
|
+
"no_data",
|
|
2251
|
+
"composite"
|
|
2252
|
+
]).optional(),
|
|
2117
2253
|
comparator: z.enum([
|
|
2118
2254
|
"gt",
|
|
2119
2255
|
"gte",
|
|
@@ -2121,14 +2257,33 @@ var zUpdateAlertRuleRequest = z.object({
|
|
|
2121
2257
|
"lte"
|
|
2122
2258
|
]).optional(),
|
|
2123
2259
|
threshold: z.number().optional(),
|
|
2260
|
+
rangeMin: z.number().nullish(),
|
|
2261
|
+
rangeMax: z.number().nullish(),
|
|
2262
|
+
sigma: z.number().gt(0).nullish(),
|
|
2263
|
+
direction: z.enum([
|
|
2264
|
+
"above",
|
|
2265
|
+
"below",
|
|
2266
|
+
"either"
|
|
2267
|
+
]).nullish(),
|
|
2268
|
+
sustained: z.boolean().optional(),
|
|
2269
|
+
warnThreshold: z.number().nullish(),
|
|
2270
|
+
recoveryThreshold: z.number().nullish(),
|
|
2271
|
+
groupAlerts: z.boolean().optional(),
|
|
2272
|
+
maxGroups: z.int().gte(1).lte(50).nullish(),
|
|
2273
|
+
noDataMinutes: z.int().gte(5).lte(43200).nullish(),
|
|
2274
|
+
delayMinutes: z.int().gte(1).lte(1440).nullish(),
|
|
2275
|
+
autoResolveMinutes: z.int().gte(1).nullish(),
|
|
2276
|
+
composite: zAlertCompositeSpec.optional(),
|
|
2124
2277
|
windowHours: z.int().gte(1).lte(720).optional(),
|
|
2278
|
+
bucketMinutes: z.int().gte(1).lte(43200).nullish(),
|
|
2279
|
+
requiredBuckets: z.int().gte(1).nullish(),
|
|
2125
2280
|
severity: z.enum([
|
|
2126
2281
|
"danger",
|
|
2127
2282
|
"warn",
|
|
2128
2283
|
"info"
|
|
2129
2284
|
]).optional(),
|
|
2130
2285
|
enabled: z.boolean().optional(),
|
|
2131
|
-
notify:
|
|
2286
|
+
notify: zAlertRuleNotify.optional()
|
|
2132
2287
|
});
|
|
2133
2288
|
var zUpdateAlertRuleResponse = z.object({
|
|
2134
2289
|
id: z.string()
|
|
@@ -2254,6 +2409,8 @@ var zGetCurrentProjectResponse = z.object({
|
|
|
2254
2409
|
z.boolean(),
|
|
2255
2410
|
z.number()
|
|
2256
2411
|
]),
|
|
2412
|
+
errorAutocloseDays: z.int(),
|
|
2413
|
+
errorTicketMinOccurrences: z.int(),
|
|
2257
2414
|
stripeSubscriptionId: z.string().nullable(),
|
|
2258
2415
|
scheduledInterval: z.enum(["monthly", "annual"]).nullable(),
|
|
2259
2416
|
spendLimitEnabled: z.union([
|
|
@@ -2324,7 +2481,9 @@ var zUpdateProjectRequest = z.object({
|
|
|
2324
2481
|
cupedMinBaselineUsers: z.int().gte(10).lte(1e5).optional(),
|
|
2325
2482
|
msprtTauMeiFactor: z.number().gte(0.1).lte(2).optional(),
|
|
2326
2483
|
msprtTauSdFactor: z.number().gte(0.05).lte(1).optional(),
|
|
2327
|
-
srmThreshold: z.number().gte(1e-4).lte(0.05).optional()
|
|
2484
|
+
srmThreshold: z.number().gte(1e-4).lte(0.05).optional(),
|
|
2485
|
+
errorAutocloseDays: z.int().gte(0).lte(365).optional(),
|
|
2486
|
+
errorTicketMinOccurrences: z.int().gte(1).lte(1e4).optional()
|
|
2328
2487
|
});
|
|
2329
2488
|
var zListI18nProfilesResponse = z.array(z.object({
|
|
2330
2489
|
id: z.string(),
|
|
@@ -2602,10 +2761,17 @@ var zCreateClaudeTriggerRequest = z.object({
|
|
|
2602
2761
|
token: z.string().min(1).optional(),
|
|
2603
2762
|
enabled: z.boolean().optional().default(true)
|
|
2604
2763
|
});
|
|
2764
|
+
var zCursorTriggerRepo = z.object({
|
|
2765
|
+
url: z.url(),
|
|
2766
|
+
startingRef: z.string().min(1).optional()
|
|
2767
|
+
});
|
|
2605
2768
|
var zCursorTriggerConfig = z.object({
|
|
2606
2769
|
repoUrl: z.url(),
|
|
2607
2770
|
startingRef: z.string().min(1).optional(),
|
|
2608
|
-
|
|
2771
|
+
repos: z.array(zCursorTriggerRepo).min(1).optional(),
|
|
2772
|
+
projectId: z.string().min(1),
|
|
2773
|
+
agentId: z.string().min(1).optional(),
|
|
2774
|
+
fireText: z.string().min(1).optional()
|
|
2609
2775
|
});
|
|
2610
2776
|
var zCreateCursorTriggerRequest = z.object({
|
|
2611
2777
|
provider: z.enum(["cursor_trigger"]),
|
|
@@ -2616,11 +2782,18 @@ var zCreateCursorTriggerRequest = z.object({
|
|
|
2616
2782
|
opsKey: z.string().min(1),
|
|
2617
2783
|
enabled: z.boolean().optional().default(true)
|
|
2618
2784
|
});
|
|
2785
|
+
var zCopilotTriggerRepo = z.object({
|
|
2786
|
+
owner: z.string().min(1),
|
|
2787
|
+
repo: z.string().min(1),
|
|
2788
|
+
baseRef: z.string().min(1).optional()
|
|
2789
|
+
});
|
|
2619
2790
|
var zCopilotTriggerConfig = z.object({
|
|
2620
2791
|
owner: z.string().min(1),
|
|
2621
2792
|
repo: z.string().min(1),
|
|
2622
2793
|
baseRef: z.string().min(1).optional(),
|
|
2623
|
-
|
|
2794
|
+
repos: z.array(zCopilotTriggerRepo).min(1).optional(),
|
|
2795
|
+
projectId: z.string().min(1),
|
|
2796
|
+
fireText: z.string().min(1).optional()
|
|
2624
2797
|
});
|
|
2625
2798
|
var zCreateCopilotTriggerRequest = z.object({
|
|
2626
2799
|
provider: z.enum(["copilot_trigger"]),
|
|
@@ -2633,7 +2806,8 @@ var zCreateCopilotTriggerRequest = z.object({
|
|
|
2633
2806
|
var zJulesTriggerConfig = z.object({
|
|
2634
2807
|
source: z.string().min(1),
|
|
2635
2808
|
startingBranch: z.string().min(1).optional(),
|
|
2636
|
-
projectId: z.string().min(1)
|
|
2809
|
+
projectId: z.string().min(1),
|
|
2810
|
+
fireText: z.string().min(1).optional()
|
|
2637
2811
|
});
|
|
2638
2812
|
var zCreateJulesTriggerRequest = z.object({
|
|
2639
2813
|
provider: z.enum(["jules_trigger"]),
|
|
@@ -2734,8 +2908,15 @@ var zKeyRecord = z.object({
|
|
|
2734
2908
|
expires_at: z.string().nullable(),
|
|
2735
2909
|
created_by_email: z.string().nullable(),
|
|
2736
2910
|
name: z.string().nullable(),
|
|
2911
|
+
description: z.string().nullable(),
|
|
2737
2912
|
scopes: z.array(z.string()).nullable(),
|
|
2738
|
-
last4: z.string().nullable()
|
|
2913
|
+
last4: z.string().nullable(),
|
|
2914
|
+
origin: z.enum([
|
|
2915
|
+
"cli",
|
|
2916
|
+
"mobile",
|
|
2917
|
+
"dashboard",
|
|
2918
|
+
"api"
|
|
2919
|
+
])
|
|
2739
2920
|
});
|
|
2740
2921
|
var zListKeysResponse = z.object({
|
|
2741
2922
|
data: z.array(zKeyRecord),
|
|
@@ -2780,6 +2961,10 @@ var zCreateKeyResponse = z.object({
|
|
|
2780
2961
|
key: z.string(),
|
|
2781
2962
|
expires_at: z.string().nullable()
|
|
2782
2963
|
});
|
|
2964
|
+
var zUpdateKeyRequest = z.object({
|
|
2965
|
+
name: z.string().min(1).max(160).nullish(),
|
|
2966
|
+
description: z.string().min(1).max(500).nullish()
|
|
2967
|
+
});
|
|
2783
2968
|
var zRevokeKeyResponse = z.object({
|
|
2784
2969
|
id: z.string(),
|
|
2785
2970
|
revoked: z.literal(true)
|
|
@@ -2791,7 +2976,8 @@ var zSearchHit = z.object({
|
|
|
2791
2976
|
"experiment",
|
|
2792
2977
|
"config",
|
|
2793
2978
|
"killswitch",
|
|
2794
|
-
"metric"
|
|
2979
|
+
"metric",
|
|
2980
|
+
"ops"
|
|
2795
2981
|
]),
|
|
2796
2982
|
id: z.string(),
|
|
2797
2983
|
name: z.string(),
|
|
@@ -2801,6 +2987,33 @@ var zSearchHit = z.object({
|
|
|
2801
2987
|
var zSearchResponse = z.object({
|
|
2802
2988
|
hits: z.array(zSearchHit)
|
|
2803
2989
|
});
|
|
2990
|
+
var zTag = z.object({
|
|
2991
|
+
id: z.string(),
|
|
2992
|
+
name: z.string()
|
|
2993
|
+
});
|
|
2994
|
+
var zListTagsResponse = z.array(zTag);
|
|
2995
|
+
var zTaggableEntityType = z.enum([
|
|
2996
|
+
"ops",
|
|
2997
|
+
"flag",
|
|
2998
|
+
"config",
|
|
2999
|
+
"killswitch",
|
|
3000
|
+
"metric",
|
|
3001
|
+
"error",
|
|
3002
|
+
"alert_rule",
|
|
3003
|
+
"experiment"
|
|
3004
|
+
]);
|
|
3005
|
+
var zEntityTagsResponse = z.object({
|
|
3006
|
+
entityType: zTaggableEntityType,
|
|
3007
|
+
entityId: z.string(),
|
|
3008
|
+
tags: z.array(z.string())
|
|
3009
|
+
});
|
|
3010
|
+
var zSetEntityTagsRequest = z.object({
|
|
3011
|
+
tags: z.array(zTagName).max(50)
|
|
3012
|
+
});
|
|
3013
|
+
var zUpdateEntityTagsRequest = z.object({
|
|
3014
|
+
add: z.array(zTagName).max(50).optional().default([]),
|
|
3015
|
+
remove: z.array(zTagName).max(50).optional().default([])
|
|
3016
|
+
});
|
|
2804
3017
|
var zProjectId = z.string();
|
|
2805
3018
|
var zPaginationLimit = z.coerce.number().int().gte(1).lte(500).default(100);
|
|
2806
3019
|
var zPaginationCursor = z.string();
|
|
@@ -3350,15 +3563,23 @@ var zListOpsItemsQuery = z.object({
|
|
|
3350
3563
|
"bug",
|
|
3351
3564
|
"feature_request",
|
|
3352
3565
|
"error",
|
|
3353
|
-
"alert"
|
|
3566
|
+
"alert",
|
|
3567
|
+
"measure_plan"
|
|
3354
3568
|
]),
|
|
3355
3569
|
z.literal("all")
|
|
3356
|
-
]).optional(),
|
|
3570
|
+
]).optional().default("all"),
|
|
3357
3571
|
status: z.union([
|
|
3358
3572
|
zOpsItemStatus,
|
|
3573
|
+
z.literal("unresolved"),
|
|
3359
3574
|
z.literal("all")
|
|
3360
|
-
]).optional(),
|
|
3361
|
-
|
|
3575
|
+
]).optional().default("all"),
|
|
3576
|
+
priority: z.union([
|
|
3577
|
+
zOpsItemPriority,
|
|
3578
|
+
z.literal("all")
|
|
3579
|
+
]).optional().default("all"),
|
|
3580
|
+
scope: z.enum(["all", "ready"]).optional().default("all"),
|
|
3581
|
+
limit: z.coerce.number().int().gte(1).lte(500).optional().default(200),
|
|
3582
|
+
offset: z.coerce.number().int().gte(0).lte(1e5).optional().default(0),
|
|
3362
3583
|
owner: z.string().optional()
|
|
3363
3584
|
});
|
|
3364
3585
|
var zListOpsItemsResponse2 = zListOpsItemsResponse;
|
|
@@ -3433,6 +3654,62 @@ var zUpdateOpsInvestigationPath = z.object({
|
|
|
3433
3654
|
investigationId: zResourceId
|
|
3434
3655
|
});
|
|
3435
3656
|
var zUpdateOpsInvestigationResponse = zOpsInvestigation;
|
|
3657
|
+
var zListOpsQuestionsHeaders = z.object({
|
|
3658
|
+
"X-Project-Id": z.string().optional()
|
|
3659
|
+
});
|
|
3660
|
+
var zListOpsQuestionsPath = z.object({
|
|
3661
|
+
handle: zResourceId
|
|
3662
|
+
});
|
|
3663
|
+
var zListOpsQuestionsQuery = z.object({
|
|
3664
|
+
status: z.union([
|
|
3665
|
+
zOpsQuestionStatus,
|
|
3666
|
+
z.literal("all")
|
|
3667
|
+
]).optional().default("all")
|
|
3668
|
+
});
|
|
3669
|
+
var zListOpsQuestionsResponse2 = zListOpsQuestionsResponse;
|
|
3670
|
+
var zAskOpsQuestionsBody = zAskOpsQuestionsRequest;
|
|
3671
|
+
var zAskOpsQuestionsHeaders = z.object({
|
|
3672
|
+
"X-Project-Id": z.string().optional()
|
|
3673
|
+
});
|
|
3674
|
+
var zAskOpsQuestionsPath = z.object({
|
|
3675
|
+
handle: zResourceId
|
|
3676
|
+
});
|
|
3677
|
+
var zAskOpsQuestionsResponse2 = zAskOpsQuestionsResponse;
|
|
3678
|
+
var zAnswerOpsQuestionBody = zAnswerOpsQuestionRequest;
|
|
3679
|
+
var zAnswerOpsQuestionHeaders = z.object({
|
|
3680
|
+
"X-Project-Id": z.string().optional()
|
|
3681
|
+
});
|
|
3682
|
+
var zAnswerOpsQuestionPath = z.object({
|
|
3683
|
+
handle: zResourceId,
|
|
3684
|
+
questionId: zResourceId
|
|
3685
|
+
});
|
|
3686
|
+
var zAnswerOpsQuestionResponse = zOpsQuestion;
|
|
3687
|
+
var zCancelOpsQuestionHeaders = z.object({
|
|
3688
|
+
"X-Project-Id": z.string().optional()
|
|
3689
|
+
});
|
|
3690
|
+
var zCancelOpsQuestionPath = z.object({
|
|
3691
|
+
handle: zResourceId,
|
|
3692
|
+
questionId: zResourceId
|
|
3693
|
+
});
|
|
3694
|
+
var zCancelOpsQuestionResponse = zOpsQuestion;
|
|
3695
|
+
var zListOpsQaNotesHeaders = z.object({
|
|
3696
|
+
"X-Project-Id": z.string().optional()
|
|
3697
|
+
});
|
|
3698
|
+
var zListOpsQaNotesPath = z.object({
|
|
3699
|
+
handle: zResourceId
|
|
3700
|
+
});
|
|
3701
|
+
var zListOpsQaNotesQuery = z.object({
|
|
3702
|
+
kind: zOpsQaNoteKind.optional()
|
|
3703
|
+
});
|
|
3704
|
+
var zListOpsQaNotesResponse2 = zListOpsQaNotesResponse;
|
|
3705
|
+
var zCreateOpsQaNoteBody = zCreateOpsQaNoteRequest;
|
|
3706
|
+
var zCreateOpsQaNoteHeaders = z.object({
|
|
3707
|
+
"X-Project-Id": z.string().optional()
|
|
3708
|
+
});
|
|
3709
|
+
var zCreateOpsQaNotePath = z.object({
|
|
3710
|
+
handle: zResourceId
|
|
3711
|
+
});
|
|
3712
|
+
var zCreateOpsQaNoteResponse = zOpsQaNote;
|
|
3436
3713
|
var zListOpsAgentsHeaders = z.object({
|
|
3437
3714
|
"X-Project-Id": z.string().optional()
|
|
3438
3715
|
});
|
|
@@ -3548,7 +3825,7 @@ var zListI18nKeysQuery = z.object({
|
|
|
3548
3825
|
profile_id: z.string().optional(),
|
|
3549
3826
|
prefix: z.string().optional(),
|
|
3550
3827
|
q: z.string().max(100).optional(),
|
|
3551
|
-
limit: z.coerce.number().int().gte(1).lte(500).optional(),
|
|
3828
|
+
limit: z.coerce.number().int().gte(1).lte(500).optional().default(200),
|
|
3552
3829
|
offset: z.coerce.number().int().gte(0).optional().default(0)
|
|
3553
3830
|
});
|
|
3554
3831
|
var zListI18nKeysResponse2 = zListI18nKeysResponse;
|
|
@@ -3763,6 +4040,14 @@ var zCreateKeyHeaders = z.object({
|
|
|
3763
4040
|
"X-Project-Id": z.string().optional()
|
|
3764
4041
|
});
|
|
3765
4042
|
var zCreateKeyResponse2 = zCreateKeyResponse;
|
|
4043
|
+
var zUpdateKeyBody = zUpdateKeyRequest;
|
|
4044
|
+
var zUpdateKeyHeaders = z.object({
|
|
4045
|
+
"X-Project-Id": z.string().optional()
|
|
4046
|
+
});
|
|
4047
|
+
var zUpdateKeyPath = z.object({
|
|
4048
|
+
id: zResourceId
|
|
4049
|
+
});
|
|
4050
|
+
var zUpdateKeyResponse = zKeyRecord;
|
|
3766
4051
|
var zRevokeKeyHeaders = z.object({
|
|
3767
4052
|
"X-Project-Id": z.string().optional()
|
|
3768
4053
|
});
|
|
@@ -3777,6 +4062,39 @@ var zSearchResourcesQuery = z.object({
|
|
|
3777
4062
|
q: z.string().optional()
|
|
3778
4063
|
});
|
|
3779
4064
|
var zSearchResourcesResponse = zSearchResponse;
|
|
4065
|
+
var zListTagsHeaders = z.object({
|
|
4066
|
+
"X-Project-Id": z.string().optional()
|
|
4067
|
+
});
|
|
4068
|
+
var zListTagsQuery = z.object({
|
|
4069
|
+
q: z.string().max(64).optional()
|
|
4070
|
+
});
|
|
4071
|
+
var zListTagsResponse2 = zListTagsResponse;
|
|
4072
|
+
var zGetEntityTagsHeaders = z.object({
|
|
4073
|
+
"X-Project-Id": z.string().optional()
|
|
4074
|
+
});
|
|
4075
|
+
var zGetEntityTagsPath = z.object({
|
|
4076
|
+
entityType: zTaggableEntityType,
|
|
4077
|
+
entityId: zResourceId
|
|
4078
|
+
});
|
|
4079
|
+
var zGetEntityTagsResponse = zEntityTagsResponse;
|
|
4080
|
+
var zUpdateEntityTagsBody = zUpdateEntityTagsRequest;
|
|
4081
|
+
var zUpdateEntityTagsHeaders = z.object({
|
|
4082
|
+
"X-Project-Id": z.string().optional()
|
|
4083
|
+
});
|
|
4084
|
+
var zUpdateEntityTagsPath = z.object({
|
|
4085
|
+
entityType: zTaggableEntityType,
|
|
4086
|
+
entityId: zResourceId
|
|
4087
|
+
});
|
|
4088
|
+
var zUpdateEntityTagsResponse = zEntityTagsResponse;
|
|
4089
|
+
var zSetEntityTagsBody = zSetEntityTagsRequest;
|
|
4090
|
+
var zSetEntityTagsHeaders = z.object({
|
|
4091
|
+
"X-Project-Id": z.string().optional()
|
|
4092
|
+
});
|
|
4093
|
+
var zSetEntityTagsPath = z.object({
|
|
4094
|
+
entityType: zTaggableEntityType,
|
|
4095
|
+
entityId: zResourceId
|
|
4096
|
+
});
|
|
4097
|
+
var zSetEntityTagsResponse = zEntityTagsResponse;
|
|
3780
4098
|
|
|
3781
4099
|
export {
|
|
3782
4100
|
zGateApiRow,
|
|
@@ -3880,8 +4198,10 @@ export {
|
|
|
3880
4198
|
zDeleteAttributeResponse,
|
|
3881
4199
|
zUpdateAttributeRequest,
|
|
3882
4200
|
zUpdateAttributeResponse,
|
|
4201
|
+
zMetricDisplayConfig,
|
|
3883
4202
|
zQueryIr,
|
|
3884
4203
|
zListMetricsResponse,
|
|
4204
|
+
zMetricDisplayName,
|
|
3885
4205
|
zMetricEventName,
|
|
3886
4206
|
zMetricQueryDsl,
|
|
3887
4207
|
zMetricWinsorizePct,
|
|
@@ -3933,6 +4253,7 @@ export {
|
|
|
3933
4253
|
zOpsRunActionOrNull,
|
|
3934
4254
|
zOpsRun,
|
|
3935
4255
|
zListOpsItemsResponse,
|
|
4256
|
+
zTagName,
|
|
3936
4257
|
zCreateBugRequest,
|
|
3937
4258
|
zCreateFeatureRequestRequest,
|
|
3938
4259
|
zCreateOpsItemRequest,
|
|
@@ -3959,6 +4280,21 @@ export {
|
|
|
3959
4280
|
zListOpsInvestigationsResponse,
|
|
3960
4281
|
zCreateOpsInvestigationRequest,
|
|
3961
4282
|
zUpdateOpsInvestigationRequest,
|
|
4283
|
+
zOpsQuestionStatus,
|
|
4284
|
+
zOpsQuestionAnswer,
|
|
4285
|
+
zOpsQuestionDelivery,
|
|
4286
|
+
zOpsQuestion,
|
|
4287
|
+
zListOpsQuestionsResponse,
|
|
4288
|
+
zOpsQuestionOption,
|
|
4289
|
+
zAskOpsQuestionInput,
|
|
4290
|
+
zAskOpsQuestionsRequest,
|
|
4291
|
+
zAskOpsQuestionsResponse,
|
|
4292
|
+
zAnswerOpsQuestionRequest,
|
|
4293
|
+
zOpsQaNoteKind,
|
|
4294
|
+
zOpsQaNoteVerdict,
|
|
4295
|
+
zOpsQaNote,
|
|
4296
|
+
zListOpsQaNotesResponse,
|
|
4297
|
+
zCreateOpsQaNoteRequest,
|
|
3962
4298
|
zOpsAgentProfile,
|
|
3963
4299
|
zListOpsAgentsResponse,
|
|
3964
4300
|
zOpsCommentAuthorType,
|
|
@@ -3969,6 +4305,8 @@ export {
|
|
|
3969
4305
|
zNotifyOpsRequest,
|
|
3970
4306
|
zNotifyOpsResponse,
|
|
3971
4307
|
zListSlackChannelsResponse,
|
|
4308
|
+
zAlertCompositeSpec,
|
|
4309
|
+
zAlertRuleNotify,
|
|
3972
4310
|
zListAlertRulesResponse,
|
|
3973
4311
|
zCreateAlertRuleRequest,
|
|
3974
4312
|
zCreateAlertRuleResponse,
|
|
@@ -4018,8 +4356,10 @@ export {
|
|
|
4018
4356
|
zCreateOAuthConnectorRequest,
|
|
4019
4357
|
zClaudeTriggerConfig,
|
|
4020
4358
|
zCreateClaudeTriggerRequest,
|
|
4359
|
+
zCursorTriggerRepo,
|
|
4021
4360
|
zCursorTriggerConfig,
|
|
4022
4361
|
zCreateCursorTriggerRequest,
|
|
4362
|
+
zCopilotTriggerRepo,
|
|
4023
4363
|
zCopilotTriggerConfig,
|
|
4024
4364
|
zCreateCopilotTriggerRequest,
|
|
4025
4365
|
zJulesTriggerConfig,
|
|
@@ -4042,9 +4382,16 @@ export {
|
|
|
4042
4382
|
zListKeysResponse,
|
|
4043
4383
|
zCreateKeyRequest,
|
|
4044
4384
|
zCreateKeyResponse,
|
|
4385
|
+
zUpdateKeyRequest,
|
|
4045
4386
|
zRevokeKeyResponse,
|
|
4046
4387
|
zSearchHit,
|
|
4047
4388
|
zSearchResponse,
|
|
4389
|
+
zTag,
|
|
4390
|
+
zListTagsResponse,
|
|
4391
|
+
zTaggableEntityType,
|
|
4392
|
+
zEntityTagsResponse,
|
|
4393
|
+
zSetEntityTagsRequest,
|
|
4394
|
+
zUpdateEntityTagsRequest,
|
|
4048
4395
|
zProjectId,
|
|
4049
4396
|
zPaginationLimit,
|
|
4050
4397
|
zPaginationCursor,
|
|
@@ -4333,6 +4680,29 @@ export {
|
|
|
4333
4680
|
zUpdateOpsInvestigationHeaders,
|
|
4334
4681
|
zUpdateOpsInvestigationPath,
|
|
4335
4682
|
zUpdateOpsInvestigationResponse,
|
|
4683
|
+
zListOpsQuestionsHeaders,
|
|
4684
|
+
zListOpsQuestionsPath,
|
|
4685
|
+
zListOpsQuestionsQuery,
|
|
4686
|
+
zListOpsQuestionsResponse2,
|
|
4687
|
+
zAskOpsQuestionsBody,
|
|
4688
|
+
zAskOpsQuestionsHeaders,
|
|
4689
|
+
zAskOpsQuestionsPath,
|
|
4690
|
+
zAskOpsQuestionsResponse2,
|
|
4691
|
+
zAnswerOpsQuestionBody,
|
|
4692
|
+
zAnswerOpsQuestionHeaders,
|
|
4693
|
+
zAnswerOpsQuestionPath,
|
|
4694
|
+
zAnswerOpsQuestionResponse,
|
|
4695
|
+
zCancelOpsQuestionHeaders,
|
|
4696
|
+
zCancelOpsQuestionPath,
|
|
4697
|
+
zCancelOpsQuestionResponse,
|
|
4698
|
+
zListOpsQaNotesHeaders,
|
|
4699
|
+
zListOpsQaNotesPath,
|
|
4700
|
+
zListOpsQaNotesQuery,
|
|
4701
|
+
zListOpsQaNotesResponse2,
|
|
4702
|
+
zCreateOpsQaNoteBody,
|
|
4703
|
+
zCreateOpsQaNoteHeaders,
|
|
4704
|
+
zCreateOpsQaNotePath,
|
|
4705
|
+
zCreateOpsQaNoteResponse,
|
|
4336
4706
|
zListOpsAgentsHeaders,
|
|
4337
4707
|
zListOpsAgentsResponse2,
|
|
4338
4708
|
zListOpsCommentsHeaders,
|
|
@@ -4485,11 +4855,29 @@ export {
|
|
|
4485
4855
|
zCreateKeyBody,
|
|
4486
4856
|
zCreateKeyHeaders,
|
|
4487
4857
|
zCreateKeyResponse2,
|
|
4858
|
+
zUpdateKeyBody,
|
|
4859
|
+
zUpdateKeyHeaders,
|
|
4860
|
+
zUpdateKeyPath,
|
|
4861
|
+
zUpdateKeyResponse,
|
|
4488
4862
|
zRevokeKeyHeaders,
|
|
4489
4863
|
zRevokeKeyPath,
|
|
4490
4864
|
zRevokeKeyResponse2,
|
|
4491
4865
|
zSearchResourcesHeaders,
|
|
4492
4866
|
zSearchResourcesQuery,
|
|
4493
|
-
zSearchResourcesResponse
|
|
4867
|
+
zSearchResourcesResponse,
|
|
4868
|
+
zListTagsHeaders,
|
|
4869
|
+
zListTagsQuery,
|
|
4870
|
+
zListTagsResponse2,
|
|
4871
|
+
zGetEntityTagsHeaders,
|
|
4872
|
+
zGetEntityTagsPath,
|
|
4873
|
+
zGetEntityTagsResponse,
|
|
4874
|
+
zUpdateEntityTagsBody,
|
|
4875
|
+
zUpdateEntityTagsHeaders,
|
|
4876
|
+
zUpdateEntityTagsPath,
|
|
4877
|
+
zUpdateEntityTagsResponse,
|
|
4878
|
+
zSetEntityTagsBody,
|
|
4879
|
+
zSetEntityTagsHeaders,
|
|
4880
|
+
zSetEntityTagsPath,
|
|
4881
|
+
zSetEntityTagsResponse
|
|
4494
4882
|
};
|
|
4495
|
-
//# sourceMappingURL=chunk-
|
|
4883
|
+
//# sourceMappingURL=chunk-Z3CY5Y44.js.map
|