@shipeasy/openapi 2.4.0 → 3.0.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([
@@ -2229,8 +2283,6 @@ var zListI18nKeysResponse = z.object({
2229
2283
  variables: z.array(z.string()).nullable(),
2230
2284
  profileId: z.string(),
2231
2285
  profileName: z.string().nullable(),
2232
- chunkId: z.string(),
2233
- chunkName: z.string().nullable(),
2234
2286
  updatedAt: z.string(),
2235
2287
  updatedBy: z.string()
2236
2288
  })),
@@ -2238,7 +2290,6 @@ var zListI18nKeysResponse = z.object({
2238
2290
  });
2239
2291
  var zUpsertI18nKeysRequest = z.object({
2240
2292
  profile_id: z.uuid(),
2241
- chunk: z.string().min(1).max(64).optional().default("default"),
2242
2293
  keys: z.array(z.object({
2243
2294
  key: z.string().min(1).max(256),
2244
2295
  value: z.string(),
@@ -2247,25 +2298,25 @@ var zUpsertI18nKeysRequest = z.object({
2247
2298
  })).min(1).max(5e3)
2248
2299
  });
2249
2300
  var zUpsertI18nKeysResponse = z.object({
2250
- upserted: z.number(),
2251
- chunk: z.string()
2301
+ upserted: z.number()
2252
2302
  });
2253
2303
  var zPushI18nKeysRequest = z.object({
2254
2304
  profile_id: z.uuid(),
2255
- chunk: z.string().min(1).max(64).optional().default("default"),
2256
2305
  keys: z.array(z.object({
2257
2306
  key: z.string().min(1).max(256),
2258
2307
  value: z.string(),
2259
2308
  description: z.string().optional(),
2260
2309
  variables: z.array(z.string().min(1).max(64)).max(32).optional()
2261
- })).min(1).max(5e3)
2310
+ })).min(1).max(5e3),
2311
+ force: z.boolean().optional().default(false)
2262
2312
  });
2263
2313
  var zPushI18nKeysResponse = z.object({
2264
2314
  added: z.array(z.string()),
2265
2315
  skipped: z.array(z.string()),
2316
+ updated: z.array(z.string()),
2266
2317
  pushed_count: z.number(),
2267
2318
  skipped_count: z.number(),
2268
- chunk: z.string().optional()
2319
+ updated_count: z.number()
2269
2320
  });
2270
2321
  var zUpdateI18nKeyRequest = z.object({
2271
2322
  value: z.string(),
@@ -2320,13 +2371,10 @@ var zUpsertI18nDraftKeyRequest = z.object({
2320
2371
  value: z.string(),
2321
2372
  description: z.string().optional()
2322
2373
  });
2323
- var zPublishI18nProfileRequest = z.object({
2324
- chunk: z.string().optional()
2325
- });
2374
+ var zPublishI18nProfileRequest = z.record(z.string(), z.never());
2326
2375
  var zPublishI18nProfileResponse = z.object({
2327
2376
  ok: z.literal(true),
2328
2377
  profile_id: z.string(),
2329
- chunk: z.string().nullable(),
2330
2378
  published_at: z.string(),
2331
2379
  version: z.string(),
2332
2380
  key_count: z.number(),
@@ -3267,6 +3315,15 @@ var zCreateOpsInvestigationPath = z.object({
3267
3315
  handle: zResourceId
3268
3316
  });
3269
3317
  var zCreateOpsInvestigationResponse = zOpsInvestigation;
3318
+ var zUpdateOpsInvestigationBody = zUpdateOpsInvestigationRequest;
3319
+ var zUpdateOpsInvestigationHeaders = z.object({
3320
+ "X-Project-Id": z.string().optional()
3321
+ });
3322
+ var zUpdateOpsInvestigationPath = z.object({
3323
+ handle: zResourceId,
3324
+ investigationId: zResourceId
3325
+ });
3326
+ var zUpdateOpsInvestigationResponse = zOpsInvestigation;
3270
3327
  var zListOpsAgentsHeaders = z.object({
3271
3328
  "X-Project-Id": z.string().optional()
3272
3329
  });
@@ -3714,6 +3771,7 @@ export {
3714
3771
  zMetricWinsorizePct,
3715
3772
  zMetricDefaultMinEffectOfInterest,
3716
3773
  zMetricDirection,
3774
+ zMetricDisplayUnit,
3717
3775
  zCreateMetricWithQuery,
3718
3776
  zCreateMetricWithQueryIr,
3719
3777
  zCreateMetricRequest,
@@ -3755,6 +3813,8 @@ export {
3755
3813
  zConnectorData,
3756
3814
  zNotificationTarget,
3757
3815
  zOpsItemOwner,
3816
+ zOpsRunAction,
3817
+ zOpsRunActionOrNull,
3758
3818
  zOpsRun,
3759
3819
  zListOpsItemsResponse,
3760
3820
  zCreateBugRequest,
@@ -3779,6 +3839,7 @@ export {
3779
3839
  zOpsInvestigation,
3780
3840
  zListOpsInvestigationsResponse,
3781
3841
  zCreateOpsInvestigationRequest,
3842
+ zUpdateOpsInvestigationRequest,
3782
3843
  zOpsAgentProfile,
3783
3844
  zListOpsAgentsResponse,
3784
3845
  zOpsCommentAuthorType,
@@ -4126,6 +4187,10 @@ export {
4126
4187
  zCreateOpsInvestigationHeaders,
4127
4188
  zCreateOpsInvestigationPath,
4128
4189
  zCreateOpsInvestigationResponse,
4190
+ zUpdateOpsInvestigationBody,
4191
+ zUpdateOpsInvestigationHeaders,
4192
+ zUpdateOpsInvestigationPath,
4193
+ zUpdateOpsInvestigationResponse,
4129
4194
  zListOpsAgentsHeaders,
4130
4195
  zListOpsAgentsResponse2,
4131
4196
  zListOpsCommentsHeaders,
@@ -4285,4 +4350,4 @@ export {
4285
4350
  zSearchResourcesQuery,
4286
4351
  zSearchResourcesResponse
4287
4352
  };
4288
- //# sourceMappingURL=chunk-ZPKHTUVV.js.map
4353
+ //# sourceMappingURL=chunk-7T77D5YO.js.map