@shipeasy/openapi 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-7T77D5YO.js → chunk-DW33MG4B.js} +148 -6
- package/dist/chunk-DW33MG4B.js.map +1 -0
- package/dist/{chunk-V4ZESAIF.js → chunk-RTN572TI.js} +67 -1
- package/dist/chunk-RTN572TI.js.map +1 -0
- package/dist/{client-DzEqdN5N.d.ts → client-BPVn4hMC.d.ts} +692 -8
- package/dist/client.d.ts +1 -1
- package/dist/client.js +15 -1
- package/dist/custom.js +2 -1
- package/dist/custom.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +383 -55
- package/dist/schemas.js +67 -1
- package/openapi-sdk.json +1747 -0
- package/openapi.json +1489 -185
- package/openapi.yaml +926 -9
- package/package.json +6 -4
- package/spec/components/responses.yaml +39 -0
- package/spec/components/schemas/gates.yaml +87 -0
- package/spec/components/schemas/keys.yaml +2 -2
- package/spec/components/schemas/killswitches.yaml +64 -0
- package/spec/components/schemas/ops.yaml +206 -22
- package/spec/openapi-sdk.yaml +86 -0
- package/spec/openapi.yaml +18 -0
- package/spec/paths/gates.yaml +282 -0
- package/spec/paths/killswitches.yaml +96 -0
- package/spec/paths/ops.yaml +182 -3
- package/dist/chunk-7T77D5YO.js.map +0 -1
- package/dist/chunk-V4ZESAIF.js.map +0 -1
|
@@ -347,6 +347,24 @@ var zListGateActivityResponse = z.array(z.object({
|
|
|
347
347
|
payload: z.unknown(),
|
|
348
348
|
createdAt: z.string()
|
|
349
349
|
}));
|
|
350
|
+
var zGateWhitelistAttr = z.enum(["email", "user_id"]);
|
|
351
|
+
var zGateWhitelist = z.object({
|
|
352
|
+
id: z.string(),
|
|
353
|
+
name: z.string(),
|
|
354
|
+
attr: zGateWhitelistAttr,
|
|
355
|
+
entries: z.array(z.string().min(1))
|
|
356
|
+
});
|
|
357
|
+
var zSetGateWhitelistRequest = z.object({
|
|
358
|
+
attr: zGateWhitelistAttr.optional(),
|
|
359
|
+
entries: z.array(z.string().min(1))
|
|
360
|
+
});
|
|
361
|
+
var zAddToGateWhitelistRequest = z.object({
|
|
362
|
+
attr: zGateWhitelistAttr.optional(),
|
|
363
|
+
entries: z.array(z.string().min(1)).min(1)
|
|
364
|
+
});
|
|
365
|
+
var zRemoveFromGateWhitelistRequest = z.object({
|
|
366
|
+
entries: z.array(z.string().min(1)).min(1)
|
|
367
|
+
});
|
|
350
368
|
var zExperimentApiRow = z.object({
|
|
351
369
|
id: z.string(),
|
|
352
370
|
name: z.string().max(128).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)?$/),
|
|
@@ -901,6 +919,20 @@ var zSetKillswitchValueResponse = z.object({
|
|
|
901
919
|
version: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
902
920
|
published: zKillswitchValue
|
|
903
921
|
});
|
|
922
|
+
var zToggleKillswitchRequest = z.object({
|
|
923
|
+
switchKey: z.string().max(64).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$/).nullish(),
|
|
924
|
+
value: z.boolean().nullish(),
|
|
925
|
+
env: zEnv.optional()
|
|
926
|
+
});
|
|
927
|
+
var zToggleKillswitchResponse = z.object({
|
|
928
|
+
id: z.string(),
|
|
929
|
+
env: zEnv,
|
|
930
|
+
switchKey: z.string().max(64).regex(/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$/).nullable(),
|
|
931
|
+
previous: z.boolean(),
|
|
932
|
+
value: z.boolean(),
|
|
933
|
+
version: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
934
|
+
published: zKillswitchValue
|
|
935
|
+
});
|
|
904
936
|
var zUniverseParam = z.object({
|
|
905
937
|
name: z.string().min(1).max(128).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/),
|
|
906
938
|
type: z.enum([
|
|
@@ -1429,8 +1461,6 @@ var zApproveEventResponse = z.object({
|
|
|
1429
1461
|
var zOpsItemStatus = z.enum([
|
|
1430
1462
|
"open",
|
|
1431
1463
|
"pending_approval",
|
|
1432
|
-
"triage",
|
|
1433
|
-
"triaged",
|
|
1434
1464
|
"investigating_by_ai",
|
|
1435
1465
|
"in_progress",
|
|
1436
1466
|
"blocked",
|
|
@@ -1446,14 +1476,13 @@ var zOpsItemPriority = z.enum([
|
|
|
1446
1476
|
]);
|
|
1447
1477
|
var zOpsInvestigationState = z.enum([
|
|
1448
1478
|
"pr_ready",
|
|
1479
|
+
"pr_merged",
|
|
1449
1480
|
"investigated",
|
|
1450
1481
|
"detected",
|
|
1451
1482
|
"question",
|
|
1452
1483
|
"ready_for_qa",
|
|
1453
1484
|
"pending_approval",
|
|
1454
|
-
"needs_triage",
|
|
1455
1485
|
"working",
|
|
1456
|
-
"triaged_low",
|
|
1457
1486
|
"backlog"
|
|
1458
1487
|
]);
|
|
1459
1488
|
var zOpsBrowserContext = z.object({
|
|
@@ -1708,6 +1737,43 @@ var zCreateOpsItemResponse = z.object({
|
|
|
1708
1737
|
id: z.string(),
|
|
1709
1738
|
number: z.number().nullish()
|
|
1710
1739
|
});
|
|
1740
|
+
var zCreatePublicBugRequest = z.object({
|
|
1741
|
+
title: z.string().min(1).max(200).regex(/^\S(.*\S)?$/),
|
|
1742
|
+
stepsToReproduce: z.string().max(8e3).optional().default(""),
|
|
1743
|
+
actualResult: z.string().max(8e3).optional().default(""),
|
|
1744
|
+
expectedResult: z.string().max(8e3).optional().default(""),
|
|
1745
|
+
priority: zOpsItemPriority.nullish(),
|
|
1746
|
+
status: zOpsItemStatus.optional(),
|
|
1747
|
+
assigneeId: z.string().nullish(),
|
|
1748
|
+
subscribers: z.array(z.email()).optional().default([]),
|
|
1749
|
+
tags: z.array(z.string()).optional().default([]),
|
|
1750
|
+
reporterEmail: z.email().nullish(),
|
|
1751
|
+
pageUrl: z.url().nullish(),
|
|
1752
|
+
userAgent: z.string().max(500).nullish(),
|
|
1753
|
+
viewport: z.string().max(40).nullish(),
|
|
1754
|
+
context: z.record(z.string(), z.unknown()).nullish(),
|
|
1755
|
+
notify: zNotificationTarget.nullish()
|
|
1756
|
+
});
|
|
1757
|
+
var zCreatePublicTicketResponse = z.object({
|
|
1758
|
+
id: z.string().optional(),
|
|
1759
|
+
number: z.int(),
|
|
1760
|
+
deduped: z.boolean().optional()
|
|
1761
|
+
});
|
|
1762
|
+
var zCreatePublicFeatureRequestRequest = z.object({
|
|
1763
|
+
title: z.string().min(1).max(200).regex(/^\S(.*\S)?$/),
|
|
1764
|
+
description: z.string().max(8e3).optional().default(""),
|
|
1765
|
+
useCase: z.string().max(8e3).optional().default(""),
|
|
1766
|
+
priority: zOpsItemPriority.nullish(),
|
|
1767
|
+
status: zOpsItemStatus.optional(),
|
|
1768
|
+
assigneeId: z.string().nullish(),
|
|
1769
|
+
subscribers: z.array(z.email()).optional().default([]),
|
|
1770
|
+
tags: z.array(z.string()).optional().default([]),
|
|
1771
|
+
reporterEmail: z.email().nullish(),
|
|
1772
|
+
pageUrl: z.url().nullish(),
|
|
1773
|
+
userAgent: z.string().max(500).nullish(),
|
|
1774
|
+
context: z.record(z.string(), z.unknown()).nullish(),
|
|
1775
|
+
notify: zNotificationTarget.nullish()
|
|
1776
|
+
});
|
|
1711
1777
|
var zOpsItemAttachment = z.object({
|
|
1712
1778
|
id: z.string(),
|
|
1713
1779
|
kind: z.string(),
|
|
@@ -2682,7 +2748,7 @@ var zCreateKeyRequest = z.object({
|
|
|
2682
2748
|
"admin",
|
|
2683
2749
|
"ops"
|
|
2684
2750
|
]),
|
|
2685
|
-
name: z.string().min(1).max(
|
|
2751
|
+
name: z.string().min(1).max(160).optional(),
|
|
2686
2752
|
scopes: z.array(z.enum([
|
|
2687
2753
|
"experiments:read",
|
|
2688
2754
|
"gates:evaluate",
|
|
@@ -2799,6 +2865,37 @@ var zListGateActivityQuery = z.object({
|
|
|
2799
2865
|
limit: z.coerce.number().int().gte(1).lte(100).optional().default(20)
|
|
2800
2866
|
});
|
|
2801
2867
|
var zListGateActivityResponse2 = zListGateActivityResponse;
|
|
2868
|
+
var zRemoveFromGateWhitelistBody = zRemoveFromGateWhitelistRequest;
|
|
2869
|
+
var zRemoveFromGateWhitelistHeaders = z.object({
|
|
2870
|
+
"X-Project-Id": z.string().optional()
|
|
2871
|
+
});
|
|
2872
|
+
var zRemoveFromGateWhitelistPath = z.object({
|
|
2873
|
+
id: zResourceId
|
|
2874
|
+
});
|
|
2875
|
+
var zRemoveFromGateWhitelistResponse = zGateWhitelist;
|
|
2876
|
+
var zGetGateWhitelistHeaders = z.object({
|
|
2877
|
+
"X-Project-Id": z.string().optional()
|
|
2878
|
+
});
|
|
2879
|
+
var zGetGateWhitelistPath = z.object({
|
|
2880
|
+
id: zResourceId
|
|
2881
|
+
});
|
|
2882
|
+
var zGetGateWhitelistResponse = zGateWhitelist;
|
|
2883
|
+
var zAddToGateWhitelistBody = zAddToGateWhitelistRequest;
|
|
2884
|
+
var zAddToGateWhitelistHeaders = z.object({
|
|
2885
|
+
"X-Project-Id": z.string().optional()
|
|
2886
|
+
});
|
|
2887
|
+
var zAddToGateWhitelistPath = z.object({
|
|
2888
|
+
id: zResourceId
|
|
2889
|
+
});
|
|
2890
|
+
var zAddToGateWhitelistResponse = zGateWhitelist;
|
|
2891
|
+
var zSetGateWhitelistBody = zSetGateWhitelistRequest;
|
|
2892
|
+
var zSetGateWhitelistHeaders = z.object({
|
|
2893
|
+
"X-Project-Id": z.string().optional()
|
|
2894
|
+
});
|
|
2895
|
+
var zSetGateWhitelistPath = z.object({
|
|
2896
|
+
id: zResourceId
|
|
2897
|
+
});
|
|
2898
|
+
var zSetGateWhitelistResponse = zGateWhitelist;
|
|
2802
2899
|
var zListExperimentsHeaders = z.object({
|
|
2803
2900
|
"X-Project-Id": z.string().optional()
|
|
2804
2901
|
});
|
|
@@ -3040,6 +3137,14 @@ var zSetKillswitchValuePath = z.object({
|
|
|
3040
3137
|
id: zResourceId
|
|
3041
3138
|
});
|
|
3042
3139
|
var zSetKillswitchValueResponse2 = zSetKillswitchValueResponse;
|
|
3140
|
+
var zToggleKillswitchBody = zToggleKillswitchRequest;
|
|
3141
|
+
var zToggleKillswitchHeaders = z.object({
|
|
3142
|
+
"X-Project-Id": z.string().optional()
|
|
3143
|
+
});
|
|
3144
|
+
var zToggleKillswitchPath = z.object({
|
|
3145
|
+
id: zResourceId
|
|
3146
|
+
});
|
|
3147
|
+
var zToggleKillswitchResponse2 = zToggleKillswitchResponse;
|
|
3043
3148
|
var zListUniversesHeaders = z.object({
|
|
3044
3149
|
"X-Project-Id": z.string().optional()
|
|
3045
3150
|
});
|
|
@@ -3262,6 +3367,10 @@ var zCreateOpsItemHeaders = z.object({
|
|
|
3262
3367
|
"X-Project-Id": z.string().optional()
|
|
3263
3368
|
});
|
|
3264
3369
|
var zCreateOpsItemResponse2 = zCreateOpsItemResponse;
|
|
3370
|
+
var zCreatePublicBugBody = zCreatePublicBugRequest;
|
|
3371
|
+
var zCreatePublicBugResponse = zCreatePublicTicketResponse;
|
|
3372
|
+
var zCreatePublicFeatureRequestBody = zCreatePublicFeatureRequestRequest;
|
|
3373
|
+
var zCreatePublicFeatureRequestResponse = zCreatePublicTicketResponse;
|
|
3265
3374
|
var zDeleteOpsItemHeaders = z.object({
|
|
3266
3375
|
"X-Project-Id": z.string().optional()
|
|
3267
3376
|
});
|
|
@@ -3684,6 +3793,11 @@ export {
|
|
|
3684
3793
|
zEnableGateResponse,
|
|
3685
3794
|
zDisableGateResponse,
|
|
3686
3795
|
zListGateActivityResponse,
|
|
3796
|
+
zGateWhitelistAttr,
|
|
3797
|
+
zGateWhitelist,
|
|
3798
|
+
zSetGateWhitelistRequest,
|
|
3799
|
+
zAddToGateWhitelistRequest,
|
|
3800
|
+
zRemoveFromGateWhitelistRequest,
|
|
3687
3801
|
zExperimentApiRow,
|
|
3688
3802
|
zListExperimentsResponse,
|
|
3689
3803
|
zMetricName,
|
|
@@ -3739,6 +3853,8 @@ export {
|
|
|
3739
3853
|
zSetKillswitchValueRequest,
|
|
3740
3854
|
zKillswitchValue,
|
|
3741
3855
|
zSetKillswitchValueResponse,
|
|
3856
|
+
zToggleKillswitchRequest,
|
|
3857
|
+
zToggleKillswitchResponse,
|
|
3742
3858
|
zUniverseParam,
|
|
3743
3859
|
zUniverseParamSchema,
|
|
3744
3860
|
zListUniversesResponse,
|
|
@@ -3821,6 +3937,9 @@ export {
|
|
|
3821
3937
|
zCreateFeatureRequestRequest,
|
|
3822
3938
|
zCreateOpsItemRequest,
|
|
3823
3939
|
zCreateOpsItemResponse,
|
|
3940
|
+
zCreatePublicBugRequest,
|
|
3941
|
+
zCreatePublicTicketResponse,
|
|
3942
|
+
zCreatePublicFeatureRequestRequest,
|
|
3824
3943
|
zOpsItemAttachment,
|
|
3825
3944
|
zOpsItemRelated,
|
|
3826
3945
|
zGetOpsItemResponse,
|
|
@@ -3956,6 +4075,21 @@ export {
|
|
|
3956
4075
|
zListGateActivityPath,
|
|
3957
4076
|
zListGateActivityQuery,
|
|
3958
4077
|
zListGateActivityResponse2,
|
|
4078
|
+
zRemoveFromGateWhitelistBody,
|
|
4079
|
+
zRemoveFromGateWhitelistHeaders,
|
|
4080
|
+
zRemoveFromGateWhitelistPath,
|
|
4081
|
+
zRemoveFromGateWhitelistResponse,
|
|
4082
|
+
zGetGateWhitelistHeaders,
|
|
4083
|
+
zGetGateWhitelistPath,
|
|
4084
|
+
zGetGateWhitelistResponse,
|
|
4085
|
+
zAddToGateWhitelistBody,
|
|
4086
|
+
zAddToGateWhitelistHeaders,
|
|
4087
|
+
zAddToGateWhitelistPath,
|
|
4088
|
+
zAddToGateWhitelistResponse,
|
|
4089
|
+
zSetGateWhitelistBody,
|
|
4090
|
+
zSetGateWhitelistHeaders,
|
|
4091
|
+
zSetGateWhitelistPath,
|
|
4092
|
+
zSetGateWhitelistResponse,
|
|
3959
4093
|
zListExperimentsHeaders,
|
|
3960
4094
|
zListExperimentsQuery,
|
|
3961
4095
|
zListExperimentsResponse2,
|
|
@@ -4065,6 +4199,10 @@ export {
|
|
|
4065
4199
|
zSetKillswitchValueHeaders,
|
|
4066
4200
|
zSetKillswitchValuePath,
|
|
4067
4201
|
zSetKillswitchValueResponse2,
|
|
4202
|
+
zToggleKillswitchBody,
|
|
4203
|
+
zToggleKillswitchHeaders,
|
|
4204
|
+
zToggleKillswitchPath,
|
|
4205
|
+
zToggleKillswitchResponse2,
|
|
4068
4206
|
zListUniversesHeaders,
|
|
4069
4207
|
zListUniversesQuery,
|
|
4070
4208
|
zListUniversesResponse2,
|
|
@@ -4162,6 +4300,10 @@ export {
|
|
|
4162
4300
|
zCreateOpsItemBody,
|
|
4163
4301
|
zCreateOpsItemHeaders,
|
|
4164
4302
|
zCreateOpsItemResponse2,
|
|
4303
|
+
zCreatePublicBugBody,
|
|
4304
|
+
zCreatePublicBugResponse,
|
|
4305
|
+
zCreatePublicFeatureRequestBody,
|
|
4306
|
+
zCreatePublicFeatureRequestResponse,
|
|
4165
4307
|
zDeleteOpsItemHeaders,
|
|
4166
4308
|
zDeleteOpsItemPath,
|
|
4167
4309
|
zDeleteOpsItemResponse2,
|
|
@@ -4350,4 +4492,4 @@ export {
|
|
|
4350
4492
|
zSearchResourcesQuery,
|
|
4351
4493
|
zSearchResourcesResponse
|
|
4352
4494
|
};
|
|
4353
|
-
//# sourceMappingURL=chunk-
|
|
4495
|
+
//# sourceMappingURL=chunk-DW33MG4B.js.map
|