@voltro/plugin-releases 0.84.0 → 0.85.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/CHANGELOG.md +549 -0
- package/THIRD-PARTY-NOTICES.md +123 -577
- package/dist/errors.d.ts +10 -12
- package/dist/errors.js +5 -1
- package/dist/index.d.ts +18 -20
- package/dist/index.js +209 -190
- package/dist/{rpc-DeEV8l3U.js → rpc-DrfZqJIA.js} +25 -19
- package/dist/rpc.d.ts +130 -132
- package/dist/rpc.js +1 -1
- package/dist/web.js +1 -1
- package/package.json +7 -7
|
@@ -4,16 +4,13 @@ import { defineMutation as r, defineQuery as i } from "@voltro/protocol";
|
|
|
4
4
|
//#region src/names.ts
|
|
5
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
6
|
id: n.String,
|
|
7
|
-
revision: n.Number.pipe(n.
|
|
7
|
+
revision: n.Number.pipe(n.check(n.isInt()), n.check(n.isGreaterThanOrEqualTo(0)))
|
|
8
8
|
})), p = n.Struct({
|
|
9
9
|
app: n.String,
|
|
10
10
|
channel: n.String,
|
|
11
11
|
latestVersion: n.NullOr(n.String),
|
|
12
12
|
minSupportedVersion: n.NullOr(n.String),
|
|
13
|
-
killSwitches: n.Record(
|
|
14
|
-
key: n.String,
|
|
15
|
-
value: n.Array(n.String)
|
|
16
|
-
}),
|
|
13
|
+
killSwitches: n.Record(n.String, n.Array(n.String)),
|
|
17
14
|
rolloutPercent: n.Number,
|
|
18
15
|
rolloutSalt: n.NullOr(n.String),
|
|
19
16
|
cohorts: n.NullOr(n.Array(n.String))
|
|
@@ -46,8 +43,20 @@ var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_rel
|
|
|
46
43
|
name: "releases.registerApp",
|
|
47
44
|
input: n.Struct({
|
|
48
45
|
app: n.String,
|
|
49
|
-
platform: n.
|
|
50
|
-
|
|
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
|
+
]),
|
|
51
60
|
bundleId: n.optional(n.String),
|
|
52
61
|
updaterPublicKey: n.optional(n.String),
|
|
53
62
|
runtimeVersion: n.optional(n.String),
|
|
@@ -71,7 +80,7 @@ var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_rel
|
|
|
71
80
|
cohorts: n.optional(n.Array(n.String))
|
|
72
81
|
}),
|
|
73
82
|
output: n.Struct({ id: n.String }),
|
|
74
|
-
error: n.Union(t, e),
|
|
83
|
+
error: n.Union([t, e]),
|
|
75
84
|
guards: [{ scope: d }]
|
|
76
85
|
}), y = r({
|
|
77
86
|
name: "releases.upload",
|
|
@@ -89,7 +98,7 @@ var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_rel
|
|
|
89
98
|
contentType: n.optional(n.String)
|
|
90
99
|
}),
|
|
91
100
|
output: n.Struct({ id: n.String }),
|
|
92
|
-
error: n.Union(t, e),
|
|
101
|
+
error: n.Union([t, e]),
|
|
93
102
|
guards: [{ scope: d }]
|
|
94
103
|
}), b = r({
|
|
95
104
|
name: "releases.promote",
|
|
@@ -98,28 +107,28 @@ var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_rel
|
|
|
98
107
|
app: n.String,
|
|
99
108
|
version: n.String,
|
|
100
109
|
to: n.String,
|
|
101
|
-
rolloutPercent: n.optional(n.Number.pipe(n.
|
|
110
|
+
rolloutPercent: n.optional(n.Number.pipe(n.check(n.isInt())))
|
|
102
111
|
}),
|
|
103
112
|
output: n.Struct({
|
|
104
113
|
channel: n.String,
|
|
105
114
|
version: n.String,
|
|
106
115
|
rolloutPercent: n.Number
|
|
107
116
|
}),
|
|
108
|
-
error: n.Union(t, e),
|
|
117
|
+
error: n.Union([t, e]),
|
|
109
118
|
guards: [{ scope: d }]
|
|
110
119
|
}), x = r({
|
|
111
120
|
name: "releases.rollout",
|
|
112
121
|
input: n.Struct({
|
|
113
122
|
app: n.String,
|
|
114
123
|
channel: n.String,
|
|
115
|
-
percent: n.Number.pipe(n.
|
|
124
|
+
percent: n.Number.pipe(n.check(n.isInt())),
|
|
116
125
|
expectedTarget: f
|
|
117
126
|
}),
|
|
118
127
|
output: n.Struct({
|
|
119
128
|
version: n.String,
|
|
120
129
|
rolloutPercent: n.Number
|
|
121
130
|
}),
|
|
122
|
-
error: n.Union(t, e),
|
|
131
|
+
error: n.Union([t, e]),
|
|
123
132
|
guards: [{ scope: d }]
|
|
124
133
|
}), S = r({
|
|
125
134
|
name: "releases.rollback",
|
|
@@ -130,7 +139,7 @@ var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_rel
|
|
|
130
139
|
expectedTarget: f
|
|
131
140
|
}),
|
|
132
141
|
output: n.Struct({ version: n.NullOr(n.String) }),
|
|
133
|
-
error: n.Union(t, e),
|
|
142
|
+
error: n.Union([t, e]),
|
|
134
143
|
guards: [{ scope: d }]
|
|
135
144
|
}), C = r({
|
|
136
145
|
name: "releases.setPolicy",
|
|
@@ -139,14 +148,11 @@ var a = "_voltro_release_apps", o = "_voltro_release_channels", s = "_voltro_rel
|
|
|
139
148
|
app: n.String,
|
|
140
149
|
channel: n.String,
|
|
141
150
|
minSupportedVersion: n.optional(n.NullOr(n.String)),
|
|
142
|
-
killSwitches: n.optional(n.Record(
|
|
143
|
-
key: n.String,
|
|
144
|
-
value: n.Array(n.String)
|
|
145
|
-
})),
|
|
151
|
+
killSwitches: n.optional(n.Record(n.String, n.Array(n.String))),
|
|
146
152
|
reason: n.String
|
|
147
153
|
}),
|
|
148
154
|
output: p,
|
|
149
|
-
error: n.Union(t, e),
|
|
155
|
+
error: n.Union([t, e]),
|
|
150
156
|
guards: [{ scope: d }]
|
|
151
157
|
}), w = [
|
|
152
158
|
{
|
package/dist/rpc.d.ts
CHANGED
|
@@ -2,117 +2,115 @@ import { MutationProcedureDescriptor } from '@voltro/protocol';
|
|
|
2
2
|
import { PluginRpcClientDescriptor } from '@voltro/protocol';
|
|
3
3
|
import { QueryProcedureDescriptor } from '@voltro/protocol';
|
|
4
4
|
import { Schema } from 'effect';
|
|
5
|
+
import { YieldableError } from 'effect/Cause';
|
|
5
6
|
|
|
6
7
|
export declare const BASE_NAME = "@voltro/plugin-releases";
|
|
7
8
|
|
|
8
9
|
export declare const createDescriptor: MutationProcedureDescriptor<"releases.create", Schema.Struct<{
|
|
9
|
-
expectedTarget: Schema.optional<Schema.Struct<{
|
|
10
|
-
id:
|
|
11
|
-
revision: Schema.
|
|
10
|
+
readonly expectedTarget: Schema.optional<Schema.Struct<{
|
|
11
|
+
readonly id: Schema.String;
|
|
12
|
+
readonly revision: Schema.Number;
|
|
12
13
|
}>>;
|
|
13
|
-
app:
|
|
14
|
-
channel:
|
|
15
|
-
version:
|
|
16
|
-
buildId: Schema.optional<
|
|
17
|
-
notes: Schema.optional<
|
|
18
|
-
cohorts: Schema.optional<Schema
|
|
14
|
+
readonly app: Schema.String;
|
|
15
|
+
readonly channel: Schema.String;
|
|
16
|
+
readonly version: Schema.String;
|
|
17
|
+
readonly buildId: Schema.optional<Schema.String>;
|
|
18
|
+
readonly notes: Schema.optional<Schema.String>;
|
|
19
|
+
readonly cohorts: Schema.optional<Schema.$Array<Schema.String>>;
|
|
19
20
|
}>, Schema.Struct<{
|
|
20
|
-
id:
|
|
21
|
-
}>, Schema.Union<[typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
21
|
+
readonly id: Schema.String;
|
|
22
|
+
}>, Schema.Union<readonly [typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
22
23
|
|
|
23
24
|
export declare const listDescriptor: QueryProcedureDescriptor<"releases.list", Schema.Struct<{
|
|
24
|
-
app:
|
|
25
|
-
}>, Schema
|
|
26
|
-
id:
|
|
27
|
-
version:
|
|
28
|
-
buildId: Schema.NullOr<
|
|
29
|
-
state:
|
|
30
|
-
rolloutPercent:
|
|
31
|
-
channel:
|
|
32
|
-
createdAt:
|
|
33
|
-
artifacts:
|
|
34
|
-
signed:
|
|
35
|
-
}>>,
|
|
25
|
+
readonly app: Schema.String;
|
|
26
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly id: Schema.String;
|
|
28
|
+
readonly version: Schema.String;
|
|
29
|
+
readonly buildId: Schema.NullOr<Schema.String>;
|
|
30
|
+
readonly state: Schema.String;
|
|
31
|
+
readonly rolloutPercent: Schema.Number;
|
|
32
|
+
readonly channel: Schema.String;
|
|
33
|
+
readonly createdAt: Schema.String;
|
|
34
|
+
readonly artifacts: Schema.Number;
|
|
35
|
+
readonly signed: Schema.Boolean;
|
|
36
|
+
}>>, Schema.Never>;
|
|
36
37
|
|
|
37
38
|
/** The reactive policy every client subscribes to. Table-sourced, so a
|
|
38
39
|
* promote, rollout change or policy edit reaches every live client. */
|
|
39
40
|
export declare const policyDescriptor: QueryProcedureDescriptor<"releases.policy", Schema.Struct<{
|
|
40
|
-
app:
|
|
41
|
-
channel:
|
|
41
|
+
readonly app: Schema.String;
|
|
42
|
+
readonly channel: Schema.String;
|
|
42
43
|
}>, Schema.Struct<{
|
|
43
|
-
app:
|
|
44
|
-
channel:
|
|
45
|
-
latestVersion: Schema.NullOr<
|
|
46
|
-
minSupportedVersion: Schema.NullOr<
|
|
47
|
-
killSwitches: Schema
|
|
48
|
-
rolloutPercent:
|
|
49
|
-
rolloutSalt: Schema.NullOr<
|
|
50
|
-
cohorts: Schema.NullOr<Schema
|
|
51
|
-
}>,
|
|
44
|
+
readonly app: Schema.String;
|
|
45
|
+
readonly channel: Schema.String;
|
|
46
|
+
readonly latestVersion: Schema.NullOr<Schema.String>;
|
|
47
|
+
readonly minSupportedVersion: Schema.NullOr<Schema.String>;
|
|
48
|
+
readonly killSwitches: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
49
|
+
readonly rolloutPercent: Schema.Number;
|
|
50
|
+
readonly rolloutSalt: Schema.NullOr<Schema.String>;
|
|
51
|
+
readonly cohorts: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
52
|
+
}>, Schema.Never>;
|
|
52
53
|
|
|
53
54
|
export declare const PolicySchema: Schema.Struct<{
|
|
54
|
-
app:
|
|
55
|
-
channel:
|
|
56
|
-
latestVersion: Schema.NullOr<
|
|
57
|
-
minSupportedVersion: Schema.NullOr<
|
|
58
|
-
killSwitches: Schema
|
|
59
|
-
rolloutPercent:
|
|
60
|
-
rolloutSalt: Schema.NullOr<
|
|
61
|
-
cohorts: Schema.NullOr<Schema
|
|
55
|
+
readonly app: Schema.String;
|
|
56
|
+
readonly channel: Schema.String;
|
|
57
|
+
readonly latestVersion: Schema.NullOr<Schema.String>;
|
|
58
|
+
readonly minSupportedVersion: Schema.NullOr<Schema.String>;
|
|
59
|
+
readonly killSwitches: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
60
|
+
readonly rolloutPercent: Schema.Number;
|
|
61
|
+
readonly rolloutSalt: Schema.NullOr<Schema.String>;
|
|
62
|
+
readonly cohorts: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
62
63
|
}>;
|
|
63
64
|
|
|
64
65
|
export declare type PolicyWire = typeof PolicySchema.Type;
|
|
65
66
|
|
|
66
67
|
export declare const promoteDescriptor: MutationProcedureDescriptor<"releases.promote", Schema.Struct<{
|
|
67
|
-
expectedTarget: Schema.optional<Schema.Struct<{
|
|
68
|
-
id:
|
|
69
|
-
revision: Schema.
|
|
68
|
+
readonly expectedTarget: Schema.optional<Schema.Struct<{
|
|
69
|
+
readonly id: Schema.String;
|
|
70
|
+
readonly revision: Schema.Number;
|
|
70
71
|
}>>;
|
|
71
|
-
app:
|
|
72
|
-
version:
|
|
73
|
-
to:
|
|
74
|
-
rolloutPercent: Schema.optional<Schema.
|
|
72
|
+
readonly app: Schema.String;
|
|
73
|
+
readonly version: Schema.String;
|
|
74
|
+
readonly to: Schema.String;
|
|
75
|
+
readonly rolloutPercent: Schema.optional<Schema.Number>;
|
|
75
76
|
}>, Schema.Struct<{
|
|
76
|
-
channel:
|
|
77
|
-
version:
|
|
78
|
-
rolloutPercent:
|
|
79
|
-
}>, Schema.Union<[typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
77
|
+
readonly channel: Schema.String;
|
|
78
|
+
readonly version: Schema.String;
|
|
79
|
+
readonly rolloutPercent: Schema.Number;
|
|
80
|
+
}>, Schema.Union<readonly [typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
80
81
|
|
|
81
82
|
/** Register an app target at runtime — what a hosted feed (one api serving
|
|
82
83
|
* many projects' apps) needs, where `apps:` in the plugin's config cannot
|
|
83
84
|
* know them. Idempotent: a target that exists answers with its id. */
|
|
84
85
|
export declare const registerAppDescriptor: MutationProcedureDescriptor<"releases.registerApp", Schema.Struct<{
|
|
85
|
-
app:
|
|
86
|
-
platform: Schema.
|
|
87
|
-
shell: Schema.
|
|
88
|
-
bundleId: Schema.optional<
|
|
89
|
-
updaterPublicKey: Schema.optional<
|
|
90
|
-
runtimeVersion: Schema.optional<
|
|
91
|
-
channels: Schema.optional<Schema
|
|
86
|
+
readonly app: Schema.String;
|
|
87
|
+
readonly platform: Schema.Literals<readonly ["web", "ios", "android", "macos", "windows", "linux"]>;
|
|
88
|
+
readonly shell: Schema.Literals<readonly ["pwa", "expo", "tauri", "electron"]>;
|
|
89
|
+
readonly bundleId: Schema.optional<Schema.String>;
|
|
90
|
+
readonly updaterPublicKey: Schema.optional<Schema.String>;
|
|
91
|
+
readonly runtimeVersion: Schema.optional<Schema.String>;
|
|
92
|
+
readonly channels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
92
93
|
}>, Schema.Struct<{
|
|
93
|
-
id:
|
|
94
|
-
created:
|
|
94
|
+
readonly id: Schema.String;
|
|
95
|
+
readonly created: Schema.Boolean;
|
|
95
96
|
}>, typeof ReleaseRefused>;
|
|
96
97
|
|
|
97
98
|
declare class ReleaseNotFound extends ReleaseNotFound_base {
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
declare const ReleaseNotFound_base: Schema.
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
channel: Schema.optional<typeof Schema.String>;
|
|
106
|
-
}>;
|
|
101
|
+
declare const ReleaseNotFound_base: Schema.Class<ReleaseNotFound, Schema.TaggedStruct<"ReleaseNotFound", {
|
|
102
|
+
readonly app: Schema.String;
|
|
103
|
+
readonly version: Schema.optional<Schema.String>;
|
|
104
|
+
readonly channel: Schema.optional<Schema.String>;
|
|
105
|
+
}>, YieldableError>;
|
|
107
106
|
|
|
108
107
|
declare class ReleaseRefused extends ReleaseRefused_base {
|
|
108
|
+
get message(): string;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
declare const ReleaseRefused_base: Schema.
|
|
112
|
-
readonly
|
|
113
|
-
}
|
|
114
|
-
reason: typeof Schema.String;
|
|
115
|
-
}>;
|
|
111
|
+
declare const ReleaseRefused_base: Schema.Class<ReleaseRefused, Schema.TaggedStruct<"ReleaseRefused", {
|
|
112
|
+
readonly reason: Schema.String;
|
|
113
|
+
}>, YieldableError>;
|
|
116
114
|
|
|
117
115
|
/** The scope that promotes, rolls out, rolls back and changes policy. */
|
|
118
116
|
export declare const RELEASES_MANAGE_SCOPE = "releases:manage";
|
|
@@ -120,80 +118,80 @@ export declare const RELEASES_MANAGE_SCOPE = "releases:manage";
|
|
|
120
118
|
export declare const releasesRpcClientImports: ReadonlyArray<PluginRpcClientDescriptor>;
|
|
121
119
|
|
|
122
120
|
export declare const ReleaseSummarySchema: Schema.Struct<{
|
|
123
|
-
id:
|
|
124
|
-
version:
|
|
125
|
-
buildId: Schema.NullOr<
|
|
126
|
-
state:
|
|
127
|
-
rolloutPercent:
|
|
128
|
-
channel:
|
|
129
|
-
createdAt:
|
|
130
|
-
artifacts:
|
|
131
|
-
signed:
|
|
121
|
+
readonly id: Schema.String;
|
|
122
|
+
readonly version: Schema.String;
|
|
123
|
+
readonly buildId: Schema.NullOr<Schema.String>;
|
|
124
|
+
readonly state: Schema.String;
|
|
125
|
+
readonly rolloutPercent: Schema.Number;
|
|
126
|
+
readonly channel: Schema.String;
|
|
127
|
+
readonly createdAt: Schema.String;
|
|
128
|
+
readonly artifacts: Schema.Number;
|
|
129
|
+
readonly signed: Schema.Boolean;
|
|
132
130
|
}>;
|
|
133
131
|
|
|
134
132
|
export declare const rollbackDescriptor: MutationProcedureDescriptor<"releases.rollback", Schema.Struct<{
|
|
135
|
-
app:
|
|
136
|
-
channel:
|
|
137
|
-
reason:
|
|
138
|
-
expectedTarget: Schema.optional<Schema.Struct<{
|
|
139
|
-
id:
|
|
140
|
-
revision: Schema.
|
|
133
|
+
readonly app: Schema.String;
|
|
134
|
+
readonly channel: Schema.String;
|
|
135
|
+
readonly reason: Schema.String;
|
|
136
|
+
readonly expectedTarget: Schema.optional<Schema.Struct<{
|
|
137
|
+
readonly id: Schema.String;
|
|
138
|
+
readonly revision: Schema.Number;
|
|
141
139
|
}>>;
|
|
142
140
|
}>, Schema.Struct<{
|
|
143
|
-
version: Schema.NullOr<
|
|
144
|
-
}>, Schema.Union<[typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
141
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
142
|
+
}>, Schema.Union<readonly [typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
145
143
|
|
|
146
144
|
export declare const rolloutDescriptor: MutationProcedureDescriptor<"releases.rollout", Schema.Struct<{
|
|
147
|
-
app:
|
|
148
|
-
channel:
|
|
149
|
-
percent: Schema.
|
|
150
|
-
expectedTarget: Schema.optional<Schema.Struct<{
|
|
151
|
-
id:
|
|
152
|
-
revision: Schema.
|
|
145
|
+
readonly app: Schema.String;
|
|
146
|
+
readonly channel: Schema.String;
|
|
147
|
+
readonly percent: Schema.Number;
|
|
148
|
+
readonly expectedTarget: Schema.optional<Schema.Struct<{
|
|
149
|
+
readonly id: Schema.String;
|
|
150
|
+
readonly revision: Schema.Number;
|
|
153
151
|
}>>;
|
|
154
152
|
}>, Schema.Struct<{
|
|
155
|
-
version:
|
|
156
|
-
rolloutPercent:
|
|
157
|
-
}>, Schema.Union<[typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
153
|
+
readonly version: Schema.String;
|
|
154
|
+
readonly rolloutPercent: Schema.Number;
|
|
155
|
+
}>, Schema.Union<readonly [typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
158
156
|
|
|
159
157
|
export declare const setPolicyDescriptor: MutationProcedureDescriptor<"releases.setPolicy", Schema.Struct<{
|
|
160
|
-
expectedTarget: Schema.optional<Schema.Struct<{
|
|
161
|
-
id:
|
|
162
|
-
revision: Schema.
|
|
158
|
+
readonly expectedTarget: Schema.optional<Schema.Struct<{
|
|
159
|
+
readonly id: Schema.String;
|
|
160
|
+
readonly revision: Schema.Number;
|
|
163
161
|
}>>;
|
|
164
|
-
app:
|
|
165
|
-
channel:
|
|
166
|
-
minSupportedVersion: Schema.optional<Schema.NullOr<
|
|
167
|
-
killSwitches: Schema.optional<Schema
|
|
168
|
-
reason:
|
|
162
|
+
readonly app: Schema.String;
|
|
163
|
+
readonly channel: Schema.String;
|
|
164
|
+
readonly minSupportedVersion: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
165
|
+
readonly killSwitches: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
166
|
+
readonly reason: Schema.String;
|
|
169
167
|
}>, Schema.Struct<{
|
|
170
|
-
app:
|
|
171
|
-
channel:
|
|
172
|
-
latestVersion: Schema.NullOr<
|
|
173
|
-
minSupportedVersion: Schema.NullOr<
|
|
174
|
-
killSwitches: Schema
|
|
175
|
-
rolloutPercent:
|
|
176
|
-
rolloutSalt: Schema.NullOr<
|
|
177
|
-
cohorts: Schema.NullOr<Schema
|
|
178
|
-
}>, Schema.Union<[typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
168
|
+
readonly app: Schema.String;
|
|
169
|
+
readonly channel: Schema.String;
|
|
170
|
+
readonly latestVersion: Schema.NullOr<Schema.String>;
|
|
171
|
+
readonly minSupportedVersion: Schema.NullOr<Schema.String>;
|
|
172
|
+
readonly killSwitches: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
173
|
+
readonly rolloutPercent: Schema.Number;
|
|
174
|
+
readonly rolloutSalt: Schema.NullOr<Schema.String>;
|
|
175
|
+
readonly cohorts: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
176
|
+
}>, Schema.Union<readonly [typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
179
177
|
|
|
180
178
|
export declare const uploadDescriptor: MutationProcedureDescriptor<"releases.upload", Schema.Struct<{
|
|
181
|
-
expectedTarget: Schema.optional<Schema.Struct<{
|
|
182
|
-
id:
|
|
183
|
-
revision: Schema.
|
|
179
|
+
readonly expectedTarget: Schema.optional<Schema.Struct<{
|
|
180
|
+
readonly id: Schema.String;
|
|
181
|
+
readonly revision: Schema.Number;
|
|
184
182
|
}>>;
|
|
185
|
-
releaseId:
|
|
186
|
-
kind:
|
|
187
|
-
target: Schema.optional<
|
|
188
|
-
url:
|
|
189
|
-
sha256:
|
|
190
|
-
size:
|
|
191
|
-
signature: Schema.optional<
|
|
192
|
-
notarized: Schema.optional<
|
|
193
|
-
assetKey: Schema.optional<
|
|
194
|
-
contentType: Schema.optional<
|
|
183
|
+
readonly releaseId: Schema.String;
|
|
184
|
+
readonly kind: Schema.String;
|
|
185
|
+
readonly target: Schema.optional<Schema.String>;
|
|
186
|
+
readonly url: Schema.String;
|
|
187
|
+
readonly sha256: Schema.String;
|
|
188
|
+
readonly size: Schema.Number;
|
|
189
|
+
readonly signature: Schema.optional<Schema.String>;
|
|
190
|
+
readonly notarized: Schema.optional<Schema.Boolean>;
|
|
191
|
+
readonly assetKey: Schema.optional<Schema.String>;
|
|
192
|
+
readonly contentType: Schema.optional<Schema.String>;
|
|
195
193
|
}>, Schema.Struct<{
|
|
196
|
-
id:
|
|
197
|
-
}>, Schema.Union<[typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
194
|
+
readonly id: Schema.String;
|
|
195
|
+
}>, Schema.Union<readonly [typeof ReleaseRefused, typeof ReleaseNotFound]>>;
|
|
198
196
|
|
|
199
197
|
export { }
|
package/dist/rpc.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./rpc-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./rpc-DrfZqJIA.js";
|
|
2
2
|
export { f as BASE_NAME, s as PolicySchema, u as RELEASES_MANAGE_SCOPE, i as ReleaseSummarySchema, e as createDescriptor, c as listDescriptor, d as policyDescriptor, t as promoteDescriptor, a as registerAppDescriptor, p as releasesRpcClientImports, n as rollbackDescriptor, r as rolloutDescriptor, l as setPolicyDescriptor, o as uploadDescriptor };
|
package/dist/web.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./rollout-CGRKMTfv.js";
|
|
2
|
-
import { t } from "./rpc-
|
|
2
|
+
import { t } from "./rpc-DrfZqJIA.js";
|
|
3
3
|
import { pluginTag as n } from "@voltro/protocol";
|
|
4
4
|
import { createElement as r, useEffect as i, useRef as a } from "react";
|
|
5
5
|
import { usePlatform as o, useSubscription as s } from "@voltro/client";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/plugin-releases",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "Release channels, artefacts and rollouts for the apps a Voltro api serves — the self-hosted update server behind Tauri, Expo OTA, electron-updater and PWA update feeds, with a reactive release policy every client subscribes to.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"node": ">=24.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@voltro/client": "0.
|
|
52
|
-
"@voltro/database": "0.
|
|
53
|
-
"@voltro/logger": "0.
|
|
54
|
-
"@voltro/protocol": "0.
|
|
55
|
-
"@voltro/runtime": "0.
|
|
51
|
+
"@voltro/client": "0.85.0",
|
|
52
|
+
"@voltro/database": "0.85.0",
|
|
53
|
+
"@voltro/logger": "0.85.0",
|
|
54
|
+
"@voltro/protocol": "0.85.0",
|
|
55
|
+
"@voltro/runtime": "0.85.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"effect": "
|
|
58
|
+
"effect": "4.0.1",
|
|
59
59
|
"react": "^19.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|