@voltro/plugin-releases 0.85.0 → 0.86.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.
@@ -1,232 +0,0 @@
1
- import { ReleaseNotFound as e, ReleaseRefused as t } from "./errors.js";
2
- import { Schema as n } from "effect";
3
- import { defineMutation as r, defineQuery as i } from "@voltro/protocol";
4
- //#region src/names.ts
5
- var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_releases", c = "_voltro_release_artifacts", l = "_voltro_release_events", u = "@voltro/plugin-releases", d = "releases:manage", f = n.optional(n.Struct({
6
- id: n.String,
7
- revision: n.Number.pipe(n.check(n.isInt()), n.check(n.isGreaterThanOrEqualTo(0)))
8
- })), p = n.Struct({
9
- app: n.String,
10
- channel: n.String,
11
- latestVersion: n.NullOr(n.String),
12
- minSupportedVersion: n.NullOr(n.String),
13
- killSwitches: n.Record(n.String, n.Array(n.String)),
14
- rolloutPercent: n.Number,
15
- rolloutSalt: n.NullOr(n.String),
16
- cohorts: n.NullOr(n.Array(n.String))
17
- }), m = i({
18
- name: "releases.policy",
19
- input: n.Struct({
20
- app: n.String,
21
- channel: n.String
22
- }),
23
- output: p,
24
- source: [o, s],
25
- openAccess: "the release policy of a channel is what every client — signed in or not — must evaluate before it may continue; it carries versions and feature keys, no data"
26
- }), h = n.Struct({
27
- id: n.String,
28
- version: n.String,
29
- buildId: n.NullOr(n.String),
30
- state: n.String,
31
- rolloutPercent: n.Number,
32
- channel: n.String,
33
- createdAt: n.String,
34
- artifacts: n.Number,
35
- signed: n.Boolean
36
- }), g = i({
37
- name: "releases.list",
38
- input: n.Struct({ app: n.String }),
39
- output: n.Array(h),
40
- source: [s],
41
- guards: [{ scope: d }]
42
- }), _ = r({
43
- name: "releases.registerApp",
44
- input: n.Struct({
45
- app: n.String,
46
- platform: n.Literals([
47
- "web",
48
- "ios",
49
- "android",
50
- "macos",
51
- "windows",
52
- "linux"
53
- ]),
54
- shell: n.Literals([
55
- "pwa",
56
- "expo",
57
- "tauri",
58
- "electron"
59
- ]),
60
- bundleId: n.optional(n.String),
61
- updaterPublicKey: n.optional(n.String),
62
- runtimeVersion: n.optional(n.String),
63
- channels: n.optional(n.Array(n.String))
64
- }),
65
- output: n.Struct({
66
- id: n.String,
67
- created: n.Boolean
68
- }),
69
- error: t,
70
- guards: [{ scope: d }]
71
- }), v = r({
72
- name: "releases.create",
73
- input: n.Struct({
74
- expectedTarget: f,
75
- app: n.String,
76
- channel: n.String,
77
- version: n.String,
78
- buildId: n.optional(n.String),
79
- notes: n.optional(n.String),
80
- cohorts: n.optional(n.Array(n.String))
81
- }),
82
- output: n.Struct({ id: n.String }),
83
- error: n.Union([t, e]),
84
- guards: [{ scope: d }]
85
- }), y = r({
86
- name: "releases.upload",
87
- input: n.Struct({
88
- expectedTarget: f,
89
- releaseId: n.String,
90
- kind: n.String,
91
- target: n.optional(n.String),
92
- url: n.String,
93
- sha256: n.String,
94
- size: n.Number,
95
- signature: n.optional(n.String),
96
- notarized: n.optional(n.Boolean),
97
- assetKey: n.optional(n.String),
98
- contentType: n.optional(n.String)
99
- }),
100
- output: n.Struct({ id: n.String }),
101
- error: n.Union([t, e]),
102
- guards: [{ scope: d }]
103
- }), b = r({
104
- name: "releases.promote",
105
- input: n.Struct({
106
- expectedTarget: f,
107
- app: n.String,
108
- version: n.String,
109
- to: n.String,
110
- rolloutPercent: n.optional(n.Number.pipe(n.check(n.isInt())))
111
- }),
112
- output: n.Struct({
113
- channel: n.String,
114
- version: n.String,
115
- rolloutPercent: n.Number
116
- }),
117
- error: n.Union([t, e]),
118
- guards: [{ scope: d }]
119
- }), x = r({
120
- name: "releases.rollout",
121
- input: n.Struct({
122
- app: n.String,
123
- channel: n.String,
124
- percent: n.Number.pipe(n.check(n.isInt())),
125
- expectedTarget: f
126
- }),
127
- output: n.Struct({
128
- version: n.String,
129
- rolloutPercent: n.Number
130
- }),
131
- error: n.Union([t, e]),
132
- guards: [{ scope: d }]
133
- }), S = r({
134
- name: "releases.rollback",
135
- input: n.Struct({
136
- app: n.String,
137
- channel: n.String,
138
- reason: n.String,
139
- expectedTarget: f
140
- }),
141
- output: n.Struct({ version: n.NullOr(n.String) }),
142
- error: n.Union([t, e]),
143
- guards: [{ scope: d }]
144
- }), C = r({
145
- name: "releases.setPolicy",
146
- input: n.Struct({
147
- expectedTarget: f,
148
- app: n.String,
149
- channel: n.String,
150
- minSupportedVersion: n.optional(n.NullOr(n.String)),
151
- killSwitches: n.optional(n.Record(n.String, n.Array(n.String))),
152
- reason: n.String
153
- }),
154
- output: p,
155
- error: n.Union([t, e]),
156
- guards: [{ scope: d }]
157
- }), w = [
158
- {
159
- tag: "releases.policy",
160
- kind: "query",
161
- import: {
162
- module: "@voltro/plugin-releases/rpc",
163
- name: "policyDescriptor"
164
- }
165
- },
166
- {
167
- tag: "releases.list",
168
- kind: "query",
169
- import: {
170
- module: "@voltro/plugin-releases/rpc",
171
- name: "listDescriptor"
172
- }
173
- },
174
- {
175
- tag: "releases.registerApp",
176
- kind: "mutation",
177
- import: {
178
- module: "@voltro/plugin-releases/rpc",
179
- name: "registerAppDescriptor"
180
- }
181
- },
182
- {
183
- tag: "releases.create",
184
- kind: "mutation",
185
- import: {
186
- module: "@voltro/plugin-releases/rpc",
187
- name: "createDescriptor"
188
- }
189
- },
190
- {
191
- tag: "releases.upload",
192
- kind: "mutation",
193
- import: {
194
- module: "@voltro/plugin-releases/rpc",
195
- name: "uploadDescriptor"
196
- }
197
- },
198
- {
199
- tag: "releases.promote",
200
- kind: "mutation",
201
- import: {
202
- module: "@voltro/plugin-releases/rpc",
203
- name: "promoteDescriptor"
204
- }
205
- },
206
- {
207
- tag: "releases.rollout",
208
- kind: "mutation",
209
- import: {
210
- module: "@voltro/plugin-releases/rpc",
211
- name: "rolloutDescriptor"
212
- }
213
- },
214
- {
215
- tag: "releases.rollback",
216
- kind: "mutation",
217
- import: {
218
- module: "@voltro/plugin-releases/rpc",
219
- name: "rollbackDescriptor"
220
- }
221
- },
222
- {
223
- tag: "releases.setPolicy",
224
- kind: "mutation",
225
- import: {
226
- module: "@voltro/plugin-releases/rpc",
227
- name: "setPolicyDescriptor"
228
- }
229
- }
230
- ];
231
- //#endregion
232
- export { c as _, v as a, b as c, S as d, x as f, a as g, s as h, h as i, _ as l, y as m, p as n, g as o, C as p, d as r, m as s, u as t, w as u, o as v, l as y };