@shipeasy/openapi 2.4.0 → 2.5.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.
@@ -74,7 +74,8 @@ var zGateApiRow = z.object({
74
74
  startAt: z.int().gte(0).lte(9007199254740991),
75
75
  durationMs: z.int().gt(0).lte(9007199254740991)
76
76
  }).optional(),
77
- locked: z.boolean().optional()
77
+ locked: z.boolean().optional(),
78
+ whitelist: z.boolean().optional()
78
79
  }), z.object({
79
80
  id: z.string().min(1),
80
81
  type: z.literal("rollout"),
@@ -203,7 +204,8 @@ var zCreateGateRequest = z.object({
203
204
  startAt: z.int().gte(0).lte(9007199254740991),
204
205
  durationMs: z.int().gt(0).lte(9007199254740991)
205
206
  }).optional(),
206
- locked: z.boolean().optional()
207
+ locked: z.boolean().optional(),
208
+ whitelist: z.boolean().optional()
207
209
  }), z.object({
208
210
  id: z.string().min(1),
209
211
  type: z.literal("rollout"),
@@ -298,7 +300,8 @@ var zUpdateGateRequest = z.object({
298
300
  startAt: z.int().gte(0).lte(9007199254740991),
299
301
  durationMs: z.int().gt(0).lte(9007199254740991)
300
302
  }).optional(),
301
- locked: z.boolean().optional()
303
+ locked: z.boolean().optional(),
304
+ whitelist: z.boolean().optional()
302
305
  }), z.object({
303
306
  id: z.string().min(1),
304
307
  type: z.literal("rollout"),
@@ -707,7 +710,10 @@ var zCreateConfigRequest = z.object({
707
710
  description: z.string().max(512).optional(),
708
711
  folder: zFolder.optional(),
709
712
  schema: z.record(z.string(), z.unknown()),
710
- value: z.unknown().optional()
713
+ value: z.record(z.string(), z.unknown()).optional(),
714
+ dev: z.record(z.string(), z.unknown()).optional(),
715
+ staging: z.record(z.string(), z.unknown()).optional(),
716
+ prod: z.record(z.string(), z.unknown()).optional()
711
717
  });
712
718
  var zCreateConfigResponse = z.object({
713
719
  id: z.string(),
@@ -740,7 +746,10 @@ var zDeleteConfigResponse = z.object({
740
746
  });
741
747
  var zUpdateConfigRequest = z.object({
742
748
  schema: z.record(z.string(), z.unknown()).optional(),
743
- value: z.unknown().optional(),
749
+ value: z.record(z.string(), z.unknown()).optional(),
750
+ dev: z.record(z.string(), z.unknown()).optional(),
751
+ staging: z.record(z.string(), z.unknown()).optional(),
752
+ prod: z.record(z.string(), z.unknown()).optional(),
744
753
  folder: zFolder.optional()
745
754
  });
746
755
  var zUpdateConfigResponse = z.object({
@@ -753,7 +762,7 @@ var zEnv = z.enum([
753
762
  ]);
754
763
  var zSaveConfigDraftRequest = z.object({
755
764
  env: zEnv,
756
- value: z.unknown()
765
+ value: z.record(z.string(), z.unknown())
757
766
  });
758
767
  var zSaveConfigDraftResponse = z.object({
759
768
  id: z.string(),
@@ -1208,6 +1217,7 @@ var zMetricDirection = z.enum([
1208
1217
  "lower_better",
1209
1218
  "neutral"
1210
1219
  ]).default("higher_better");
1220
+ var zMetricDisplayUnit = z.string().nullable();
1211
1221
  var zCreateMetricWithQuery = z.object({
1212
1222
  name: zMetricName,
1213
1223
  folder: zFolder.optional(),
@@ -1215,7 +1225,8 @@ var zCreateMetricWithQuery = z.object({
1215
1225
  query: zMetricQueryDsl,
1216
1226
  winsorize_pct: zMetricWinsorizePct.optional(),
1217
1227
  default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1218
- direction: zMetricDirection.optional()
1228
+ direction: zMetricDirection.optional(),
1229
+ unit: zMetricDisplayUnit.optional()
1219
1230
  });
1220
1231
  var zCreateMetricWithQueryIr = z.object({
1221
1232
  name: zMetricName,
@@ -1224,7 +1235,8 @@ var zCreateMetricWithQueryIr = z.object({
1224
1235
  query_ir: zQueryIr,
1225
1236
  winsorize_pct: zMetricWinsorizePct.optional(),
1226
1237
  default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1227
- direction: zMetricDirection.optional()
1238
+ direction: zMetricDirection.optional(),
1239
+ unit: zMetricDisplayUnit.optional()
1228
1240
  });
1229
1241
  var zCreateMetricRequest = z.union([
1230
1242
  zCreateMetricWithQuery,
@@ -1265,7 +1277,8 @@ var zUpdateMetricWithQuery = z.object({
1265
1277
  query: zMetricQueryDsl,
1266
1278
  winsorize_pct: zMetricWinsorizePct.optional(),
1267
1279
  default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1268
- direction: zMetricDirection.optional()
1280
+ direction: zMetricDirection.optional(),
1281
+ unit: zMetricDisplayUnit.optional()
1269
1282
  });
1270
1283
  var zUpdateMetricWithQueryIr = z.object({
1271
1284
  folder: zFolder.optional(),
@@ -1273,14 +1286,16 @@ var zUpdateMetricWithQueryIr = z.object({
1273
1286
  query_ir: zQueryIr,
1274
1287
  winsorize_pct: zMetricWinsorizePct.optional(),
1275
1288
  default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1276
- direction: zMetricDirection.optional()
1289
+ direction: zMetricDirection.optional(),
1290
+ unit: zMetricDisplayUnit.optional()
1277
1291
  });
1278
1292
  var zUpdateMetricFields = z.object({
1279
1293
  folder: zFolder.optional(),
1280
1294
  event_name: zMetricEventName.optional(),
1281
1295
  winsorize_pct: zMetricWinsorizePct.optional(),
1282
1296
  default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1283
- direction: zMetricDirection.optional()
1297
+ direction: zMetricDirection.optional(),
1298
+ unit: zMetricDisplayUnit.optional()
1284
1299
  });
1285
1300
  var zUpdateMetricRequest = z.union([
1286
1301
  zUpdateMetricWithQuery,
@@ -1597,20 +1612,23 @@ var zOpsItemOwner = z.object({
1597
1612
  name: z.string()
1598
1613
  }).nullable()
1599
1614
  });
1615
+ var zOpsRunAction = z.enum([
1616
+ "link_pr",
1617
+ "notify",
1618
+ "status",
1619
+ "superseded"
1620
+ ]);
1621
+ var zOpsRunActionOrNull = zOpsRunAction.nullable();
1600
1622
  var zOpsRun = z.object({
1601
1623
  id: z.string(),
1602
1624
  agent: z.string().nullable(),
1603
1625
  connectorId: z.string().nullable(),
1604
1626
  ackedBy: z.string().nullable(),
1605
1627
  sessionId: z.string().nullable(),
1628
+ sessionUrl: z.string().nullable(),
1606
1629
  startedAt: z.string(),
1607
1630
  completedAt: z.string().nullable(),
1608
- completedAction: z.enum([
1609
- "link_pr",
1610
- "notify",
1611
- "status",
1612
- "superseded"
1613
- ]).nullable(),
1631
+ completedAction: zOpsRunActionOrNull,
1614
1632
  prNumber: z.number().nullable(),
1615
1633
  prUrl: z.string().nullable()
1616
1634
  });
@@ -1655,6 +1673,10 @@ var zCreateBugRequest = z.object({
1655
1673
  actualResult: z.string().max(8e3).optional().default(""),
1656
1674
  expectedResult: z.string().max(8e3).optional().default(""),
1657
1675
  priority: zOpsItemPriority.nullish(),
1676
+ status: zOpsItemStatus.optional(),
1677
+ assigneeId: z.string().nullish(),
1678
+ subscribers: z.array(z.email()).optional().default([]),
1679
+ tags: z.array(z.string()).optional().default([]),
1658
1680
  reporterEmail: z.email().nullish(),
1659
1681
  pageUrl: z.url().nullish(),
1660
1682
  userAgent: z.string().max(500).nullish(),
@@ -1668,6 +1690,10 @@ var zCreateFeatureRequestRequest = z.object({
1668
1690
  description: z.string().max(8e3).optional().default(""),
1669
1691
  useCase: z.string().max(8e3).optional().default(""),
1670
1692
  priority: zOpsItemPriority.nullish(),
1693
+ status: zOpsItemStatus.optional(),
1694
+ assigneeId: z.string().nullish(),
1695
+ subscribers: z.array(z.email()).optional().default([]),
1696
+ tags: z.array(z.string()).optional().default([]),
1671
1697
  reporterEmail: z.email().nullish(),
1672
1698
  pageUrl: z.url().nullish(),
1673
1699
  userAgent: z.string().max(500).nullish(),
@@ -1840,13 +1866,9 @@ var zOpsInvestigation = z.object({
1840
1866
  startedAt: z.string().nullable(),
1841
1867
  completedAt: z.string().nullable(),
1842
1868
  sessionId: z.string().nullable(),
1869
+ sessionUrl: z.string().nullable(),
1843
1870
  ackedBy: z.string().nullable(),
1844
- completedAction: z.enum([
1845
- "link_pr",
1846
- "notify",
1847
- "status",
1848
- "superseded"
1849
- ]).nullable(),
1871
+ completedAction: zOpsRunActionOrNull,
1850
1872
  createdAt: z.string(),
1851
1873
  updatedAt: z.string()
1852
1874
  });
@@ -1892,6 +1914,38 @@ var zCreateOpsInvestigationRequest = z.object({
1892
1914
  completedAt: z.string().optional(),
1893
1915
  sessionId: z.string().max(300).optional()
1894
1916
  });
1917
+ var zUpdateOpsInvestigationRequest = z.object({
1918
+ kind: z.enum([
1919
+ "investigated",
1920
+ "detected",
1921
+ "question",
1922
+ "ready_for_qa",
1923
+ "working",
1924
+ "note"
1925
+ ]).optional(),
1926
+ summary: z.string().max(2e3).optional(),
1927
+ findings: z.string().max(5e4).optional(),
1928
+ question: z.string().max(1e4).optional(),
1929
+ qaNotes: z.string().max(5e4).optional(),
1930
+ model: z.string().max(200).optional(),
1931
+ prNumber: z.int().optional(),
1932
+ prUrl: z.url().max(2e3).optional(),
1933
+ sources: z.array(z.object({
1934
+ path: z.string().optional(),
1935
+ url: z.string().optional(),
1936
+ label: z.string().optional()
1937
+ })).max(200).optional(),
1938
+ confidence: z.enum([
1939
+ "low",
1940
+ "medium",
1941
+ "high"
1942
+ ]).optional(),
1943
+ tokensUsed: z.int().optional(),
1944
+ durationMs: z.int().optional(),
1945
+ visibility: z.enum(["draft", "published"]).optional(),
1946
+ completedAt: z.string().optional(),
1947
+ sessionId: z.string().max(300).optional()
1948
+ });
1895
1949
  var zOpsAgentProfile = z.object({
1896
1950
  connectorId: z.string(),
1897
1951
  provider: z.enum([
@@ -3267,6 +3321,15 @@ var zCreateOpsInvestigationPath = z.object({
3267
3321
  handle: zResourceId
3268
3322
  });
3269
3323
  var zCreateOpsInvestigationResponse = zOpsInvestigation;
3324
+ var zUpdateOpsInvestigationBody = zUpdateOpsInvestigationRequest;
3325
+ var zUpdateOpsInvestigationHeaders = z.object({
3326
+ "X-Project-Id": z.string().optional()
3327
+ });
3328
+ var zUpdateOpsInvestigationPath = z.object({
3329
+ handle: zResourceId,
3330
+ investigationId: zResourceId
3331
+ });
3332
+ var zUpdateOpsInvestigationResponse = zOpsInvestigation;
3270
3333
  var zListOpsAgentsHeaders = z.object({
3271
3334
  "X-Project-Id": z.string().optional()
3272
3335
  });
@@ -3714,6 +3777,7 @@ export {
3714
3777
  zMetricWinsorizePct,
3715
3778
  zMetricDefaultMinEffectOfInterest,
3716
3779
  zMetricDirection,
3780
+ zMetricDisplayUnit,
3717
3781
  zCreateMetricWithQuery,
3718
3782
  zCreateMetricWithQueryIr,
3719
3783
  zCreateMetricRequest,
@@ -3755,6 +3819,8 @@ export {
3755
3819
  zConnectorData,
3756
3820
  zNotificationTarget,
3757
3821
  zOpsItemOwner,
3822
+ zOpsRunAction,
3823
+ zOpsRunActionOrNull,
3758
3824
  zOpsRun,
3759
3825
  zListOpsItemsResponse,
3760
3826
  zCreateBugRequest,
@@ -3779,6 +3845,7 @@ export {
3779
3845
  zOpsInvestigation,
3780
3846
  zListOpsInvestigationsResponse,
3781
3847
  zCreateOpsInvestigationRequest,
3848
+ zUpdateOpsInvestigationRequest,
3782
3849
  zOpsAgentProfile,
3783
3850
  zListOpsAgentsResponse,
3784
3851
  zOpsCommentAuthorType,
@@ -4126,6 +4193,10 @@ export {
4126
4193
  zCreateOpsInvestigationHeaders,
4127
4194
  zCreateOpsInvestigationPath,
4128
4195
  zCreateOpsInvestigationResponse,
4196
+ zUpdateOpsInvestigationBody,
4197
+ zUpdateOpsInvestigationHeaders,
4198
+ zUpdateOpsInvestigationPath,
4199
+ zUpdateOpsInvestigationResponse,
4129
4200
  zListOpsAgentsHeaders,
4130
4201
  zListOpsAgentsResponse2,
4131
4202
  zListOpsCommentsHeaders,
@@ -4285,4 +4356,4 @@ export {
4285
4356
  zSearchResourcesQuery,
4286
4357
  zSearchResourcesResponse
4287
4358
  };
4288
- //# sourceMappingURL=chunk-ZPKHTUVV.js.map
4359
+ //# sourceMappingURL=chunk-DBTSD3W5.js.map