@shipeasy/openapi 3.1.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-UV333BIK.js → chunk-DW33MG4B.js} +147 -2
- 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-yqGYju-M.d.ts → client-BPVn4hMC.d.ts} +687 -3
- package/dist/client.d.ts +1 -1
- package/dist/client.js +15 -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 +376 -1
- package/dist/schemas.js +67 -1
- package/openapi-sdk.json +1747 -0
- package/openapi.json +1485 -178
- package/openapi.yaml +922 -2
- 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 +185 -0
- 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 +179 -0
- package/dist/chunk-UV333BIK.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([
|
|
@@ -1705,6 +1737,43 @@ var zCreateOpsItemResponse = z.object({
|
|
|
1705
1737
|
id: z.string(),
|
|
1706
1738
|
number: z.number().nullish()
|
|
1707
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
|
+
});
|
|
1708
1777
|
var zOpsItemAttachment = z.object({
|
|
1709
1778
|
id: z.string(),
|
|
1710
1779
|
kind: z.string(),
|
|
@@ -2679,7 +2748,7 @@ var zCreateKeyRequest = z.object({
|
|
|
2679
2748
|
"admin",
|
|
2680
2749
|
"ops"
|
|
2681
2750
|
]),
|
|
2682
|
-
name: z.string().min(1).max(
|
|
2751
|
+
name: z.string().min(1).max(160).optional(),
|
|
2683
2752
|
scopes: z.array(z.enum([
|
|
2684
2753
|
"experiments:read",
|
|
2685
2754
|
"gates:evaluate",
|
|
@@ -2796,6 +2865,37 @@ var zListGateActivityQuery = z.object({
|
|
|
2796
2865
|
limit: z.coerce.number().int().gte(1).lte(100).optional().default(20)
|
|
2797
2866
|
});
|
|
2798
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;
|
|
2799
2899
|
var zListExperimentsHeaders = z.object({
|
|
2800
2900
|
"X-Project-Id": z.string().optional()
|
|
2801
2901
|
});
|
|
@@ -3037,6 +3137,14 @@ var zSetKillswitchValuePath = z.object({
|
|
|
3037
3137
|
id: zResourceId
|
|
3038
3138
|
});
|
|
3039
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;
|
|
3040
3148
|
var zListUniversesHeaders = z.object({
|
|
3041
3149
|
"X-Project-Id": z.string().optional()
|
|
3042
3150
|
});
|
|
@@ -3259,6 +3367,10 @@ var zCreateOpsItemHeaders = z.object({
|
|
|
3259
3367
|
"X-Project-Id": z.string().optional()
|
|
3260
3368
|
});
|
|
3261
3369
|
var zCreateOpsItemResponse2 = zCreateOpsItemResponse;
|
|
3370
|
+
var zCreatePublicBugBody = zCreatePublicBugRequest;
|
|
3371
|
+
var zCreatePublicBugResponse = zCreatePublicTicketResponse;
|
|
3372
|
+
var zCreatePublicFeatureRequestBody = zCreatePublicFeatureRequestRequest;
|
|
3373
|
+
var zCreatePublicFeatureRequestResponse = zCreatePublicTicketResponse;
|
|
3262
3374
|
var zDeleteOpsItemHeaders = z.object({
|
|
3263
3375
|
"X-Project-Id": z.string().optional()
|
|
3264
3376
|
});
|
|
@@ -3681,6 +3793,11 @@ export {
|
|
|
3681
3793
|
zEnableGateResponse,
|
|
3682
3794
|
zDisableGateResponse,
|
|
3683
3795
|
zListGateActivityResponse,
|
|
3796
|
+
zGateWhitelistAttr,
|
|
3797
|
+
zGateWhitelist,
|
|
3798
|
+
zSetGateWhitelistRequest,
|
|
3799
|
+
zAddToGateWhitelistRequest,
|
|
3800
|
+
zRemoveFromGateWhitelistRequest,
|
|
3684
3801
|
zExperimentApiRow,
|
|
3685
3802
|
zListExperimentsResponse,
|
|
3686
3803
|
zMetricName,
|
|
@@ -3736,6 +3853,8 @@ export {
|
|
|
3736
3853
|
zSetKillswitchValueRequest,
|
|
3737
3854
|
zKillswitchValue,
|
|
3738
3855
|
zSetKillswitchValueResponse,
|
|
3856
|
+
zToggleKillswitchRequest,
|
|
3857
|
+
zToggleKillswitchResponse,
|
|
3739
3858
|
zUniverseParam,
|
|
3740
3859
|
zUniverseParamSchema,
|
|
3741
3860
|
zListUniversesResponse,
|
|
@@ -3818,6 +3937,9 @@ export {
|
|
|
3818
3937
|
zCreateFeatureRequestRequest,
|
|
3819
3938
|
zCreateOpsItemRequest,
|
|
3820
3939
|
zCreateOpsItemResponse,
|
|
3940
|
+
zCreatePublicBugRequest,
|
|
3941
|
+
zCreatePublicTicketResponse,
|
|
3942
|
+
zCreatePublicFeatureRequestRequest,
|
|
3821
3943
|
zOpsItemAttachment,
|
|
3822
3944
|
zOpsItemRelated,
|
|
3823
3945
|
zGetOpsItemResponse,
|
|
@@ -3953,6 +4075,21 @@ export {
|
|
|
3953
4075
|
zListGateActivityPath,
|
|
3954
4076
|
zListGateActivityQuery,
|
|
3955
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,
|
|
3956
4093
|
zListExperimentsHeaders,
|
|
3957
4094
|
zListExperimentsQuery,
|
|
3958
4095
|
zListExperimentsResponse2,
|
|
@@ -4062,6 +4199,10 @@ export {
|
|
|
4062
4199
|
zSetKillswitchValueHeaders,
|
|
4063
4200
|
zSetKillswitchValuePath,
|
|
4064
4201
|
zSetKillswitchValueResponse2,
|
|
4202
|
+
zToggleKillswitchBody,
|
|
4203
|
+
zToggleKillswitchHeaders,
|
|
4204
|
+
zToggleKillswitchPath,
|
|
4205
|
+
zToggleKillswitchResponse2,
|
|
4065
4206
|
zListUniversesHeaders,
|
|
4066
4207
|
zListUniversesQuery,
|
|
4067
4208
|
zListUniversesResponse2,
|
|
@@ -4159,6 +4300,10 @@ export {
|
|
|
4159
4300
|
zCreateOpsItemBody,
|
|
4160
4301
|
zCreateOpsItemHeaders,
|
|
4161
4302
|
zCreateOpsItemResponse2,
|
|
4303
|
+
zCreatePublicBugBody,
|
|
4304
|
+
zCreatePublicBugResponse,
|
|
4305
|
+
zCreatePublicFeatureRequestBody,
|
|
4306
|
+
zCreatePublicFeatureRequestResponse,
|
|
4162
4307
|
zDeleteOpsItemHeaders,
|
|
4163
4308
|
zDeleteOpsItemPath,
|
|
4164
4309
|
zDeleteOpsItemResponse2,
|
|
@@ -4347,4 +4492,4 @@ export {
|
|
|
4347
4492
|
zSearchResourcesQuery,
|
|
4348
4493
|
zSearchResourcesResponse
|
|
4349
4494
|
};
|
|
4350
|
-
//# sourceMappingURL=chunk-
|
|
4495
|
+
//# sourceMappingURL=chunk-DW33MG4B.js.map
|