@shipeasy/openapi 2.2.0 → 2.3.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.
Files changed (43) hide show
  1. package/dist/{chunk-643YSMLU.js → chunk-LYNWK55D.js} +23 -1
  2. package/dist/chunk-LYNWK55D.js.map +1 -0
  3. package/dist/{chunk-MRW3DJ57.js → chunk-PRN4AEAM.js} +250 -100
  4. package/dist/chunk-PRN4AEAM.js.map +1 -0
  5. package/dist/{client-K0ShmsC7.d.ts → client-DO5HTb_L.d.ts} +690 -143
  6. package/dist/client.d.ts +1 -1
  7. package/dist/client.js +7 -1
  8. package/dist/custom.js +4 -4
  9. package/dist/custom.js.map +1 -1
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.js +8 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/schemas.d.ts +686 -73
  14. package/dist/schemas.js +41 -5
  15. package/openapi.json +1486 -521
  16. package/openapi.yaml +1016 -350
  17. package/package.json +1 -1
  18. package/spec/components/errors.yaml +30 -1
  19. package/spec/components/schemas/common.yaml +6 -0
  20. package/spec/components/schemas/errors-api.yaml +66 -3
  21. package/spec/components/schemas/experiment-api-row.yaml +293 -0
  22. package/spec/components/schemas/experiments.yaml +54 -299
  23. package/spec/components/schemas/gates.yaml +19 -0
  24. package/spec/components/schemas/keys.yaml +2 -1
  25. package/spec/components/schemas/metrics.yaml +17 -17
  26. package/spec/components/schemas/ops.yaml +101 -0
  27. package/spec/components/schemas/projects.yaml +119 -1
  28. package/spec/components/schemas/universes.yaml +83 -1
  29. package/spec/openapi.yaml +14 -0
  30. package/spec/paths/alert-rules.yaml +1 -0
  31. package/spec/paths/configs.yaml +1 -0
  32. package/spec/paths/errors.yaml +96 -2
  33. package/spec/paths/events.yaml +1 -0
  34. package/spec/paths/experiments.yaml +8 -0
  35. package/spec/paths/gates.yaml +1 -0
  36. package/spec/paths/keys.yaml +1 -0
  37. package/spec/paths/killswitches.yaml +1 -0
  38. package/spec/paths/metrics.yaml +1 -0
  39. package/spec/paths/ops.yaml +111 -0
  40. package/spec/paths/projects.yaml +2 -2
  41. package/spec/paths/universes.yaml +1 -0
  42. package/dist/chunk-643YSMLU.js.map +0 -1
  43. package/dist/chunk-MRW3DJ57.js.map +0 -1
@@ -8,6 +8,7 @@ var zListGatesResponse = z.object({
8
8
  z.boolean(),
9
9
  z.int().gte(0).lte(1)
10
10
  ]),
11
+ type: z.enum(["targeting", "holdout"]).optional(),
11
12
  rolloutPct: z.int().gte(0).lte(1e4),
12
13
  rules: z.array(z.object({
13
14
  attr: z.string().min(1),
@@ -110,17 +111,29 @@ var zErrorCode = z.enum([
110
111
  "REFERENCED_NOT_FOUND",
111
112
  "GROUPS_WEIGHT_SUM",
112
113
  "EVENT_PENDING",
113
- "INTERNAL"
114
+ "INTERNAL",
115
+ "PLAN_LIMIT",
116
+ "EXPERIMENT_NO_GOAL_METRIC",
117
+ "EXPERIMENT_ARCHIVED_RESTART",
118
+ "EXPERIMENT_RESTORE_INVALID",
119
+ "EXPERIMENT_NOT_RUNNING",
120
+ "EXPERIMENT_RUNNING_ARCHIVE",
121
+ "EXPERIMENT_IMMUTABLE_FIELD",
122
+ "METRIC_NOT_FOUND",
123
+ "METRIC_UNKNOWN_ID"
114
124
  ]);
115
125
  var zError = z.object({
116
126
  error: z.string(),
117
127
  code: zErrorCode.optional(),
118
128
  detail: z.string().optional(),
119
- instructions: z.string().optional()
129
+ fields: z.record(z.string(), z.string()).optional(),
130
+ instructions: z.string().optional(),
131
+ schema: z.record(z.string(), z.unknown()).optional()
120
132
  });
121
133
  var zFolder = z.string().max(256).regex(/^[a-zA-Z0-9_-]+$/).nullable();
122
134
  var zCreateGateRequest = z.object({
123
135
  name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
136
+ type: z.enum(["targeting", "holdout"]).optional().default("targeting"),
124
137
  enabled: z.boolean().optional().default(true),
125
138
  rollout_pct: z.int().gte(0).lte(1e4).optional().default(0),
126
139
  rollout_percent: z.number().gte(0).lte(100).optional(),
@@ -216,6 +229,7 @@ var zDeleteGateResponse = z.object({
216
229
  ok: z.literal(true)
217
230
  });
218
231
  var zUpdateGateRequest = z.object({
232
+ type: z.enum(["targeting", "holdout"]).optional(),
219
233
  rollout_pct: z.int().gte(0).lte(1e4).optional(),
220
234
  rollout_percent: z.number().gte(0).lte(100).optional(),
221
235
  rules: z.array(z.object({
@@ -312,45 +326,81 @@ var zDisableGateResponse = z.object({
312
326
  id: z.string(),
313
327
  enabled: z.boolean()
314
328
  });
315
- var zListExperimentsResponse = z.object({
316
- data: z.array(z.object({
317
- id: z.string(),
318
- name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
319
- description: z.string().nullable(),
320
- hypothesis: z.string().nullable(),
321
- tag: z.string().nullable(),
322
- ownerEmail: z.string().nullable(),
323
- audience: z.string().nullable(),
324
- bucketBy: z.string().min(1).max(128).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/).nullable(),
325
- folder: z.string().nullable(),
326
- status: z.enum([
327
- "draft",
328
- "running",
329
- "stopped",
330
- "archived"
331
- ]),
332
- universe: z.string(),
333
- targetingGate: z.string().nullable(),
334
- allocationPct: z.int().gte(-9007199254740991).lte(9007199254740991),
335
- salt: z.string(),
336
- params: z.record(z.string(), z.enum([
337
- "string",
338
- "bool",
339
- "number"
340
- ])),
341
- groups: z.array(z.object({
342
- name: z.string().min(1).max(64),
343
- weight: z.int().gte(0).lte(1e4),
344
- params: z.record(z.string(), z.unknown()).optional().default({})
345
- })),
346
- significanceThreshold: z.number(),
347
- minRuntimeDays: z.int().gte(-9007199254740991).lte(9007199254740991),
348
- minSampleSize: z.int().gte(-9007199254740991).lte(9007199254740991),
349
- sequentialTesting: z.boolean(),
350
- startedAt: z.string().nullable(),
351
- stoppedAt: z.string().nullish(),
352
- updatedAt: z.string()
329
+ var zExperimentApiRow = z.object({
330
+ id: z.string(),
331
+ name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
332
+ description: z.string().nullable(),
333
+ hypothesis: z.string().nullable(),
334
+ tag: z.string().nullable(),
335
+ ownerEmail: z.string().nullable(),
336
+ audience: z.string().nullable(),
337
+ bucketBy: z.string().min(1).max(128).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/).nullable(),
338
+ folder: z.string().nullable(),
339
+ status: z.enum([
340
+ "draft",
341
+ "running",
342
+ "stopped",
343
+ "archived"
344
+ ]),
345
+ universe: z.string(),
346
+ targetingGate: z.string().nullable(),
347
+ holdoutGate: z.string().nullable(),
348
+ allocationPct: z.int().gte(-9007199254740991).lte(9007199254740991),
349
+ reservedHeadroom: z.int().gte(0).lte(1e4),
350
+ hashVersion: z.int().gte(1),
351
+ poolOffsetBp: z.int().gte(0).lte(1e4).nullable(),
352
+ poolSizeBp: z.int().gte(0).lte(1e4).nullable(),
353
+ salt: z.string(),
354
+ params: z.record(z.string(), z.enum([
355
+ "string",
356
+ "bool",
357
+ "number"
358
+ ])),
359
+ groups: z.array(z.object({
360
+ name: z.string().min(1).max(64),
361
+ weight: z.int().gte(0).lte(1e4),
362
+ params: z.record(z.string(), z.unknown()).optional().default({})
353
363
  })),
364
+ significanceThreshold: z.number(),
365
+ minRuntimeDays: z.int().gte(-9007199254740991).lte(9007199254740991),
366
+ minSampleSize: z.int().gte(-9007199254740991).lte(9007199254740991),
367
+ sequentialTesting: z.boolean(),
368
+ startedAt: z.string().nullable(),
369
+ stoppedAt: z.string().nullable(),
370
+ updatedAt: z.string(),
371
+ version: z.int().nullable(),
372
+ creatorEmail: z.string().nullish(),
373
+ updaterEmail: z.string().nullish(),
374
+ verdict: z.enum([
375
+ "ship",
376
+ "hold",
377
+ "wait",
378
+ "invalid",
379
+ "draft"
380
+ ]).optional(),
381
+ verdictTitle: z.string().optional(),
382
+ verdictWhy: z.string().optional(),
383
+ goalMetric: z.object({
384
+ id: z.string(),
385
+ name: z.string()
386
+ }).nullish(),
387
+ guardrails: z.array(z.object({
388
+ id: z.string(),
389
+ name: z.string(),
390
+ eventName: z.string().nullish()
391
+ })).optional(),
392
+ guardrailCount: z.int().gte(0).optional(),
393
+ primaryLiftPct: z.number().nullish(),
394
+ significancePct: z.number().nullish(),
395
+ sampleSize: z.int().nullish(),
396
+ exposure: z.array(z.object({
397
+ ds: z.string(),
398
+ value: z.number()
399
+ })).optional(),
400
+ exposureTotal: z.int().nullish()
401
+ });
402
+ var zListExperimentsResponse = z.object({
403
+ data: z.array(zExperimentApiRow),
354
404
  next_cursor: z.string().nullable()
355
405
  });
356
406
  var zMetricName = z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/);
@@ -366,7 +416,8 @@ var zExperimentInlineMetric = z.object({
366
416
  "sum",
367
417
  "avg"
368
418
  ]).optional(),
369
- value: z.string().min(1).max(256).optional()
419
+ value: z.string().min(1).max(256).optional(),
420
+ min_effect_of_interest: z.number().nullish().default(null)
370
421
  });
371
422
  var zCreateExperimentRequest = z.object({
372
423
  name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
@@ -379,8 +430,10 @@ var zCreateExperimentRequest = z.object({
379
430
  folder: zFolder.optional(),
380
431
  universe: z.string().min(1),
381
432
  targeting_gate: z.string().nullish().default(null),
433
+ holdout_gate: z.string().nullish().default(null),
382
434
  allocation_pct: z.int().gte(0).lte(1e4).optional().default(0),
383
435
  allocation_percent: z.number().gte(0).lte(100).optional(),
436
+ reserved_headroom: z.int().gte(0).lte(1e4).optional(),
384
437
  salt: z.string().min(1).max(64).optional(),
385
438
  params: z.record(z.string(), z.enum([
386
439
  "string",
@@ -403,44 +456,6 @@ var zCreateExperimentResponse = z.object({
403
456
  id: z.string(),
404
457
  name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/)
405
458
  });
406
- var zGetExperimentResponse = z.object({
407
- id: z.string(),
408
- name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
409
- description: z.string().nullable(),
410
- hypothesis: z.string().nullable(),
411
- tag: z.string().nullable(),
412
- ownerEmail: z.string().nullable(),
413
- audience: z.string().nullable(),
414
- bucketBy: z.string().min(1).max(128).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/).nullable(),
415
- folder: z.string().nullable(),
416
- status: z.enum([
417
- "draft",
418
- "running",
419
- "stopped",
420
- "archived"
421
- ]),
422
- universe: z.string(),
423
- targetingGate: z.string().nullable(),
424
- allocationPct: z.int().gte(-9007199254740991).lte(9007199254740991),
425
- salt: z.string(),
426
- params: z.record(z.string(), z.enum([
427
- "string",
428
- "bool",
429
- "number"
430
- ])),
431
- groups: z.array(z.object({
432
- name: z.string().min(1).max(64),
433
- weight: z.int().gte(0).lte(1e4),
434
- params: z.record(z.string(), z.unknown()).optional().default({})
435
- })),
436
- significanceThreshold: z.number(),
437
- minRuntimeDays: z.int().gte(-9007199254740991).lte(9007199254740991),
438
- minSampleSize: z.int().gte(-9007199254740991).lte(9007199254740991),
439
- sequentialTesting: z.boolean(),
440
- startedAt: z.string().nullable(),
441
- stoppedAt: z.string().nullish(),
442
- updatedAt: z.string()
443
- });
444
459
  var zDeleteExperimentResponse = z.object({
445
460
  ok: z.literal(true)
446
461
  });
@@ -454,7 +469,9 @@ var zUpdateExperimentRequest = z.object({
454
469
  bucket_by: z.string().min(1).max(128).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/).nullish(),
455
470
  folder: zFolder.optional(),
456
471
  targeting_gate: z.string().nullish(),
472
+ holdout_gate: z.string().nullish(),
457
473
  allocation_pct: z.int().gte(0).lte(1e4).optional(),
474
+ reserved_headroom: z.int().gte(0).lte(1e4).optional(),
458
475
  allocation_percent: z.number().gte(0).lte(100).optional(),
459
476
  salt: z.string().min(1).max(64).optional(),
460
477
  universe: z.string().optional(),
@@ -502,7 +519,8 @@ var zSetExperimentMetricsRequest = z.object({
502
519
  "goal",
503
520
  "guardrail",
504
521
  "secondary"
505
- ])
522
+ ]),
523
+ min_effect_of_interest: z.number().nullish().default(null)
506
524
  }))
507
525
  });
508
526
  var zSetExperimentMetricsResponse = z.object({
@@ -513,7 +531,8 @@ var zSetExperimentMetricsResponse = z.object({
513
531
  "goal",
514
532
  "guardrail",
515
533
  "secondary"
516
- ])
534
+ ]),
535
+ min_effect_of_interest: z.number().nullable()
517
536
  }))
518
537
  });
519
538
  var zGetExperimentResultsResponse = z.object({
@@ -535,7 +554,8 @@ var zGetExperimentResultsResponse = z.object({
535
554
  mean: z.number().nullable(),
536
555
  delta_pct: z.number().nullable(),
537
556
  p_value: z.number().nullable(),
538
- srm_detected: z.number().nullable()
557
+ srm_detected: z.number().nullable(),
558
+ realized_mde: z.number().nullable()
539
559
  })),
540
560
  verdict: z.enum([
541
561
  "ship",
@@ -769,12 +789,26 @@ var zSetKillswitchValueResponse = z.object({
769
789
  version: z.int().gte(-9007199254740991).lte(9007199254740991),
770
790
  published: zKillswitchValue
771
791
  });
792
+ var zUniverseParam = z.object({
793
+ name: z.string().min(1).max(128).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/),
794
+ type: z.enum([
795
+ "bool",
796
+ "string",
797
+ "int",
798
+ "number"
799
+ ]),
800
+ default: z.unknown()
801
+ });
802
+ var zUniverseParamSchema = z.array(zUniverseParam);
772
803
  var zListUniversesResponse = z.object({
773
804
  data: z.array(z.object({
774
805
  id: z.string(),
775
806
  name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
807
+ description: z.string().nullish(),
776
808
  unitType: z.string(),
777
809
  holdoutRange: z.tuple([z.number(), z.number()]).nullable(),
810
+ recommendedHeadroom: z.int().gte(0).lte(1e4).optional(),
811
+ paramSchema: zUniverseParamSchema.nullish(),
778
812
  createdAt: z.string()
779
813
  })),
780
814
  next_cursor: z.string().nullable()
@@ -782,8 +816,11 @@ var zListUniversesResponse = z.object({
782
816
  var zCreateUniverseRequest = z.object({
783
817
  name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
784
818
  folder: zFolder.optional(),
819
+ description: z.string().max(2e3).nullish().default(null),
785
820
  unit_type: z.string().optional().default("user_id"),
786
- holdout_range: z.tuple([z.int().gte(0).lte(9999), z.int().gte(0).lte(9999)]).nullish().default(null)
821
+ holdout_range: z.tuple([z.int().gte(0).lte(9999), z.int().gte(0).lte(9999)]).nullish().default(null),
822
+ recommended_headroom: z.int().gte(0).lte(1e4).optional().default(0),
823
+ param_schema: zUniverseParamSchema.nullish().default(null)
787
824
  });
788
825
  var zCreateUniverseResponse = z.object({
789
826
  id: z.string(),
@@ -794,7 +831,10 @@ var zDeleteUniverseResponse = z.object({
794
831
  });
795
832
  var zUpdateUniverseRequest = z.object({
796
833
  folder: zFolder.optional(),
797
- holdout_range: z.tuple([z.int().gte(0).lte(9999), z.int().gte(0).lte(9999)]).nullish()
834
+ description: z.string().max(2e3).nullish(),
835
+ holdout_range: z.tuple([z.int().gte(0).lte(9999), z.int().gte(0).lte(9999)]).nullish(),
836
+ recommended_headroom: z.int().gte(0).lte(1e4).optional(),
837
+ param_schema: zUniverseParamSchema.nullish()
798
838
  });
799
839
  var zUpdateUniverseResponse = z.object({
800
840
  id: z.string()
@@ -1036,14 +1076,14 @@ var zListMetricsResponse = z.array(z.object({
1036
1076
  "neutral"
1037
1077
  ]).optional(),
1038
1078
  winsorizePct: z.number().optional(),
1039
- minDetectableEffect: z.number().nullish(),
1079
+ defaultMinEffectOfInterest: z.number().nullish(),
1040
1080
  createdAt: z.string().optional(),
1041
1081
  updatedAt: z.string().optional()
1042
1082
  }));
1043
1083
  var zMetricEventName = z.string().min(1);
1044
1084
  var zMetricQueryDsl = z.string().min(1).max(4096);
1045
1085
  var zMetricWinsorizePct = z.int().gte(1).lte(99).default(99);
1046
- var zMetricMinDetectableEffect = z.number().nullable().default(null);
1086
+ var zMetricDefaultMinEffectOfInterest = z.number().nullable().default(null);
1047
1087
  var zMetricDirection = z.enum([
1048
1088
  "higher_better",
1049
1089
  "lower_better",
@@ -1055,7 +1095,7 @@ var zCreateMetricWithQuery = z.object({
1055
1095
  event_name: zMetricEventName,
1056
1096
  query: zMetricQueryDsl,
1057
1097
  winsorize_pct: zMetricWinsorizePct.optional(),
1058
- min_detectable_effect: zMetricMinDetectableEffect.optional(),
1098
+ default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1059
1099
  direction: zMetricDirection.optional()
1060
1100
  });
1061
1101
  var zCreateMetricWithQueryIr = z.object({
@@ -1064,7 +1104,7 @@ var zCreateMetricWithQueryIr = z.object({
1064
1104
  event_name: zMetricEventName,
1065
1105
  query_ir: zQueryIr,
1066
1106
  winsorize_pct: zMetricWinsorizePct.optional(),
1067
- min_detectable_effect: zMetricMinDetectableEffect.optional(),
1107
+ default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1068
1108
  direction: zMetricDirection.optional()
1069
1109
  });
1070
1110
  var zCreateMetricRequest = z.union([
@@ -1088,7 +1128,7 @@ var zGetMetricResponse = z.object({
1088
1128
  "neutral"
1089
1129
  ]).optional(),
1090
1130
  winsorizePct: z.number().optional(),
1091
- minDetectableEffect: z.number().nullish(),
1131
+ defaultMinEffectOfInterest: z.number().nullish(),
1092
1132
  createdAt: z.string().optional(),
1093
1133
  updatedAt: z.string().optional()
1094
1134
  });
@@ -1100,7 +1140,7 @@ var zUpdateMetricWithQuery = z.object({
1100
1140
  event_name: zMetricEventName.optional(),
1101
1141
  query: zMetricQueryDsl,
1102
1142
  winsorize_pct: zMetricWinsorizePct.optional(),
1103
- min_detectable_effect: zMetricMinDetectableEffect.optional(),
1143
+ default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1104
1144
  direction: zMetricDirection.optional()
1105
1145
  });
1106
1146
  var zUpdateMetricWithQueryIr = z.object({
@@ -1108,14 +1148,14 @@ var zUpdateMetricWithQueryIr = z.object({
1108
1148
  event_name: zMetricEventName.optional(),
1109
1149
  query_ir: zQueryIr,
1110
1150
  winsorize_pct: zMetricWinsorizePct.optional(),
1111
- min_detectable_effect: zMetricMinDetectableEffect.optional(),
1151
+ default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1112
1152
  direction: zMetricDirection.optional()
1113
1153
  });
1114
1154
  var zUpdateMetricFields = z.object({
1115
1155
  folder: zFolder.optional(),
1116
1156
  event_name: zMetricEventName.optional(),
1117
1157
  winsorize_pct: zMetricWinsorizePct.optional(),
1118
- min_detectable_effect: zMetricMinDetectableEffect.optional(),
1158
+ default_min_effect_of_interest: zMetricDefaultMinEffectOfInterest.optional(),
1119
1159
  direction: zMetricDirection.optional()
1120
1160
  });
1121
1161
  var zUpdateMetricRequest = z.union([
@@ -1308,6 +1348,7 @@ var zOpsErrorContext = z.object({
1308
1348
  firstSeenAt: z.string(),
1309
1349
  lastSeenAt: z.string(),
1310
1350
  seenUrls: z.array(z.string()),
1351
+ stackTail: z.string().nullish(),
1311
1352
  sdkVersion: z.string().nullish()
1312
1353
  });
1313
1354
  var zOpsAlertRuleSummary = z.object({
@@ -1370,6 +1411,7 @@ var zMeasurePlanStep = z.object({
1370
1411
  properties: z.array(z.string()).optional()
1371
1412
  });
1372
1413
  var zOpsMeasurePlanContext = z.object({
1414
+ goal: z.string().nullish(),
1373
1415
  created: z.array(zMeasurePlanResource),
1374
1416
  pending: z.array(zMeasurePlanResource).optional(),
1375
1417
  instrumentation: z.array(zMeasurePlanStep)
@@ -1493,6 +1535,27 @@ var zLinkPrToOpsItemRequest = z.object({
1493
1535
  var zLinkPrToOpsItemResponse = z.object({
1494
1536
  id: z.string()
1495
1537
  });
1538
+ var zOpsCommentAuthorType = z.enum(["user", "system"]);
1539
+ var zOpsComment = z.object({
1540
+ id: z.string(),
1541
+ feedbackId: z.string(),
1542
+ parentId: z.string().nullable(),
1543
+ authorType: zOpsCommentAuthorType,
1544
+ authorEmail: z.string().nullable(),
1545
+ body: z.string(),
1546
+ createdAt: z.string(),
1547
+ updatedAt: z.string()
1548
+ });
1549
+ var zListOpsCommentsResponse = z.object({
1550
+ comments: z.array(zOpsComment)
1551
+ });
1552
+ var zCreateOpsCommentRequest = z.object({
1553
+ body: z.string().min(1).max(1e4),
1554
+ parentId: z.string().nullish()
1555
+ });
1556
+ var zCreateOpsCommentResponse = z.object({
1557
+ id: z.string()
1558
+ });
1496
1559
  var zNotifyOpsRequest = z.object({
1497
1560
  title: z.string().min(1).max(200),
1498
1561
  summary: z.string().min(1).max(280),
@@ -1586,7 +1649,12 @@ var zGetCurrentProjectResponse = z.object({
1586
1649
  name: z.string(),
1587
1650
  domain: z.string().nullable(),
1588
1651
  ownerEmail: z.string(),
1589
- plan: z.enum(["free", "paid"]),
1652
+ plan: z.enum([
1653
+ "free",
1654
+ "pro",
1655
+ "business",
1656
+ "enterprise"
1657
+ ]),
1590
1658
  status: z.enum(["active", "inactive"]),
1591
1659
  subscriptionStatus: z.string(),
1592
1660
  billingInterval: z.enum(["monthly", "annual"]),
@@ -1613,6 +1681,20 @@ var zGetCurrentProjectResponse = z.object({
1613
1681
  z.boolean(),
1614
1682
  z.number()
1615
1683
  ]),
1684
+ minSampleSize: z.int().optional(),
1685
+ minRuntimeDays: z.int().optional(),
1686
+ defaultPower: z.number().optional(),
1687
+ ciConfidence: z.number().optional(),
1688
+ defaultAllocationPct: z.int().optional(),
1689
+ defaultHoldout: z.int().optional(),
1690
+ defaultWinsorizePct: z.int().optional(),
1691
+ defaultMei: z.number().nullish(),
1692
+ cupedBaselineDays: z.int().optional(),
1693
+ cupedMinOverlap: z.number().optional(),
1694
+ cupedMinBaselineUsers: z.int().optional(),
1695
+ msprtTauMeiFactor: z.number().optional(),
1696
+ msprtTauSdFactor: z.number().optional(),
1697
+ srmThreshold: z.number().optional(),
1616
1698
  createdAt: z.string(),
1617
1699
  updatedAt: z.string()
1618
1700
  });
@@ -1656,7 +1738,21 @@ var zUpdateProjectRequest = z.object({
1656
1738
  moduleExperiments: z.boolean().optional(),
1657
1739
  moduleFeedback: z.boolean().optional(),
1658
1740
  moduleUser: z.boolean().optional(),
1659
- moduleEvents: z.boolean().optional()
1741
+ moduleEvents: z.boolean().optional(),
1742
+ minSampleSize: z.int().gte(2).lte(1e6).optional(),
1743
+ minRuntimeDays: z.int().gte(0).lte(365).optional(),
1744
+ defaultPower: z.number().gte(0.5).lte(0.99).optional(),
1745
+ ciConfidence: z.number().gte(0.5).lte(0.999).optional(),
1746
+ defaultAllocationPct: z.int().gte(1).lte(1e4).optional(),
1747
+ defaultHoldout: z.int().gte(0).lte(1e4).optional(),
1748
+ defaultWinsorizePct: z.int().gte(1).lte(99).optional(),
1749
+ defaultMei: z.number().gte(0).lte(1).nullish(),
1750
+ cupedBaselineDays: z.int().gte(1).lte(365).optional(),
1751
+ cupedMinOverlap: z.number().gte(0.01).lte(0.99).optional(),
1752
+ cupedMinBaselineUsers: z.int().gte(10).lte(1e5).optional(),
1753
+ msprtTauMeiFactor: z.number().gte(0.1).lte(2).optional(),
1754
+ msprtTauSdFactor: z.number().gte(0.05).lte(1).optional(),
1755
+ srmThreshold: z.number().gte(1e-4).lte(0.05).optional()
1660
1756
  });
1661
1757
  var zListI18nProfilesResponse = z.array(z.object({
1662
1758
  id: z.string(),
@@ -1794,6 +1890,18 @@ var zSetI18nLabelResponse = z.object({
1794
1890
  kv_verified: z.boolean(),
1795
1891
  warning: z.string().optional()
1796
1892
  });
1893
+ var zErrorOccurrence = z.object({
1894
+ id: z.string(),
1895
+ message: z.string(),
1896
+ stack: z.string().nullish(),
1897
+ url: z.string().nullish(),
1898
+ env: z.string().nullish(),
1899
+ side: z.string().nullish(),
1900
+ sdkVersion: z.string().nullish(),
1901
+ extrasJson: z.string().nullish(),
1902
+ sampleRate: z.int().gte(1),
1903
+ seenAt: z.string()
1904
+ });
1797
1905
  var zErrorRecord = z.object({
1798
1906
  id: z.string(),
1799
1907
  projectId: z.string(),
@@ -1819,6 +1927,7 @@ var zErrorRecord = z.object({
1819
1927
  lastExtrasJson: z.string().nullish(),
1820
1928
  sdkVersion: z.string().nullish(),
1821
1929
  count: z.int().gte(1),
1930
+ occurrences: z.array(zErrorOccurrence).optional(),
1822
1931
  status: z.enum([
1823
1932
  "open",
1824
1933
  "resolved",
@@ -2052,7 +2161,8 @@ var zCreateKeyRequest = z.object({
2052
2161
  "gates:evaluate",
2053
2162
  "events:write",
2054
2163
  "configs:write",
2055
- "experiments:write"
2164
+ "experiments:write",
2165
+ "tickets:public_create"
2056
2166
  ])).optional(),
2057
2167
  expiresInDays: z.int().gte(1).lte(3650).nullish(),
2058
2168
  env: z.enum([
@@ -2173,7 +2283,7 @@ var zGetExperimentHeaders = z.object({
2173
2283
  var zGetExperimentPath = z.object({
2174
2284
  id: zResourceId
2175
2285
  });
2176
- var zGetExperimentResponse2 = zGetExperimentResponse;
2286
+ var zGetExperimentResponse = zExperimentApiRow;
2177
2287
  var zUpdateExperimentBody = zUpdateExperimentRequest;
2178
2288
  var zUpdateExperimentHeaders = z.object({
2179
2289
  "X-Project-Id": z.string().optional()
@@ -2582,6 +2692,21 @@ var zLinkPrToOpsItemPath = z.object({
2582
2692
  handle: zResourceId
2583
2693
  });
2584
2694
  var zLinkPrToOpsItemResponse2 = zLinkPrToOpsItemResponse;
2695
+ var zListOpsCommentsHeaders = z.object({
2696
+ "X-Project-Id": z.string().optional()
2697
+ });
2698
+ var zListOpsCommentsPath = z.object({
2699
+ handle: zResourceId
2700
+ });
2701
+ var zListOpsCommentsResponse2 = zListOpsCommentsResponse;
2702
+ var zCreateOpsCommentBody = zCreateOpsCommentRequest;
2703
+ var zCreateOpsCommentHeaders = z.object({
2704
+ "X-Project-Id": z.string().optional()
2705
+ });
2706
+ var zCreateOpsCommentPath = z.object({
2707
+ handle: zResourceId
2708
+ });
2709
+ var zCreateOpsCommentResponse2 = zCreateOpsCommentResponse;
2585
2710
  var zNotifyOpsBody = zNotifyOpsRequest;
2586
2711
  var zNotifyOpsHeaders = z.object({
2587
2712
  "X-Project-Id": z.string().optional()
@@ -2734,6 +2859,13 @@ var zFileErrorTicketPath = z.object({
2734
2859
  id: zResourceId
2735
2860
  });
2736
2861
  var zFileErrorTicketResponse2 = zFileErrorTicketResponse;
2862
+ var zResolveErrorHeaders = z.object({
2863
+ "X-Project-Id": z.string().optional()
2864
+ });
2865
+ var zResolveErrorPath = z.object({
2866
+ id: zResourceId
2867
+ });
2868
+ var zResolveErrorResponse = zErrorRecord;
2737
2869
  var zGetErrorSeriesBody = zErrorSeriesRequest;
2738
2870
  var zGetErrorSeriesHeaders = z.object({
2739
2871
  "X-Project-Id": z.string().optional()
@@ -2846,12 +2978,12 @@ export {
2846
2978
  zUpdateGateResponse,
2847
2979
  zEnableGateResponse,
2848
2980
  zDisableGateResponse,
2981
+ zExperimentApiRow,
2849
2982
  zListExperimentsResponse,
2850
2983
  zMetricName,
2851
2984
  zExperimentInlineMetric,
2852
2985
  zCreateExperimentRequest,
2853
2986
  zCreateExperimentResponse,
2854
- zGetExperimentResponse,
2855
2987
  zDeleteExperimentResponse,
2856
2988
  zUpdateExperimentRequest,
2857
2989
  zUpdateExperimentResponse,
@@ -2894,6 +3026,8 @@ export {
2894
3026
  zSetKillswitchValueRequest,
2895
3027
  zKillswitchValue,
2896
3028
  zSetKillswitchValueResponse,
3029
+ zUniverseParam,
3030
+ zUniverseParamSchema,
2897
3031
  zListUniversesResponse,
2898
3032
  zCreateUniverseRequest,
2899
3033
  zCreateUniverseResponse,
@@ -2922,7 +3056,7 @@ export {
2922
3056
  zMetricEventName,
2923
3057
  zMetricQueryDsl,
2924
3058
  zMetricWinsorizePct,
2925
- zMetricMinDetectableEffect,
3059
+ zMetricDefaultMinEffectOfInterest,
2926
3060
  zMetricDirection,
2927
3061
  zCreateMetricWithQuery,
2928
3062
  zCreateMetricWithQueryIr,
@@ -2975,6 +3109,11 @@ export {
2975
3109
  zUpdateOpsItemResponse,
2976
3110
  zLinkPrToOpsItemRequest,
2977
3111
  zLinkPrToOpsItemResponse,
3112
+ zOpsCommentAuthorType,
3113
+ zOpsComment,
3114
+ zListOpsCommentsResponse,
3115
+ zCreateOpsCommentRequest,
3116
+ zCreateOpsCommentResponse,
2978
3117
  zNotifyOpsRequest,
2979
3118
  zNotifyOpsResponse,
2980
3119
  zListSlackChannelsResponse,
@@ -3005,6 +3144,7 @@ export {
3005
3144
  zPublishI18nProfileResponse,
3006
3145
  zSetI18nLabelRequest,
3007
3146
  zSetI18nLabelResponse,
3147
+ zErrorOccurrence,
3008
3148
  zErrorRecord,
3009
3149
  zListErrorsResponse,
3010
3150
  zUpdateErrorStatusRequest,
@@ -3079,7 +3219,7 @@ export {
3079
3219
  zDeleteExperimentResponse2,
3080
3220
  zGetExperimentHeaders,
3081
3221
  zGetExperimentPath,
3082
- zGetExperimentResponse2,
3222
+ zGetExperimentResponse,
3083
3223
  zUpdateExperimentBody,
3084
3224
  zUpdateExperimentHeaders,
3085
3225
  zUpdateExperimentPath,
@@ -3264,6 +3404,13 @@ export {
3264
3404
  zLinkPrToOpsItemHeaders,
3265
3405
  zLinkPrToOpsItemPath,
3266
3406
  zLinkPrToOpsItemResponse2,
3407
+ zListOpsCommentsHeaders,
3408
+ zListOpsCommentsPath,
3409
+ zListOpsCommentsResponse2,
3410
+ zCreateOpsCommentBody,
3411
+ zCreateOpsCommentHeaders,
3412
+ zCreateOpsCommentPath,
3413
+ zCreateOpsCommentResponse2,
3267
3414
  zNotifyOpsBody,
3268
3415
  zNotifyOpsHeaders,
3269
3416
  zNotifyOpsResponse2,
@@ -3335,6 +3482,9 @@ export {
3335
3482
  zFileErrorTicketHeaders,
3336
3483
  zFileErrorTicketPath,
3337
3484
  zFileErrorTicketResponse2,
3485
+ zResolveErrorHeaders,
3486
+ zResolveErrorPath,
3487
+ zResolveErrorResponse,
3338
3488
  zGetErrorSeriesBody,
3339
3489
  zGetErrorSeriesHeaders,
3340
3490
  zGetErrorSeriesPath,
@@ -3382,4 +3532,4 @@ export {
3382
3532
  zSearchResourcesQuery,
3383
3533
  zSearchResourcesResponse
3384
3534
  };
3385
- //# sourceMappingURL=chunk-MRW3DJ57.js.map
3535
+ //# sourceMappingURL=chunk-PRN4AEAM.js.map