@replit/protocol 0.6.2 → 0.6.3
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/api/jetplane/repl/repl.d.ts +2 -1
- package/dist/api/lore/service.d.ts +129 -0
- package/dist/api/lore/service.js +237 -22
- package/dist/api/lore/transfer/org_transfer.client.d.ts +44 -5
- package/dist/api/lore/transfer/org_transfer.client.js +32 -10
- package/dist/api/lore/transfer/org_transfer.d.ts +39 -1
- package/dist/api/lore/transfer/org_transfer.js +64 -2
- package/dist/api/lore/transfer/transfer.client.d.ts +6 -6
- package/dist/api/lore/transfer/transfer.client.js +3 -3
- package/dist/api/repl/repl.d.ts +6 -0
- package/dist/api/repl/repl.js +9 -1
- package/dist/api/types.d.ts +44 -0
- package/dist/api/types.js +87 -1
- package/dist/google/protobuf/any.d.ts +52 -108
- package/dist/google/protobuf/field_mask.d.ts +16 -18
- package/dist/google/protobuf/struct.d.ts +33 -22
- package/dist/google/protobuf/struct.js +8 -3
- package/dist/google/protobuf/timestamp.d.ts +9 -8
- package/iotester/index.d.ts +425 -0
- package/iotester/index.js +1347 -5
- package/main/index.d.ts +425 -0
- package/main/index.js +1347 -5
- package/package.json +1 -1
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
2
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
3
|
import type { OrgDstAbortDiscardImportRequest } from "./org_transfer.js";
|
|
4
|
-
import type { OrgTransferRequest } from "./org_transfer.js";
|
|
5
4
|
import type { OrgDstTransferInRequest } from "./org_transfer.js";
|
|
6
5
|
import type { OrgSrcTransferOutResponse } from "./org_transfer.js";
|
|
7
6
|
import type { OrgSrcTransferOutRequest } from "./org_transfer.js";
|
|
8
7
|
import type { PhaseResponse } from "./transfer.js";
|
|
9
8
|
import type { OrgSrcStopAndDrainRequest } from "./org_transfer.js";
|
|
9
|
+
import type { OrgDstPrepareResponse } from "./org_transfer.js";
|
|
10
|
+
import type { OrgTransferRequest } from "./org_transfer.js";
|
|
10
11
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
11
12
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
12
13
|
/**
|
|
13
14
|
* TransferOrgHomeCell defines the phased cell transfer for an org home cell.
|
|
15
|
+
* Lore drives every participant through DstPrepare, SrcStopAndDrain,
|
|
16
|
+
* SrcTransferOut, DstTransferIn and DstActivate, moves the placement and calls
|
|
17
|
+
* SrcDelete; after the first DstActivate attempt it recovers forward only.
|
|
14
18
|
*
|
|
15
19
|
* @generated from protobuf service replit.goval.api.lore.transfer.TransferOrgHomeCell
|
|
16
20
|
*/
|
|
17
21
|
export interface ITransferOrgHomeCellClient {
|
|
22
|
+
/**
|
|
23
|
+
* Optional, before any source is frozen. Unimplemented means no prepare
|
|
24
|
+
* step; otherwise the payload goes unchanged to this participant's
|
|
25
|
+
* SrcTransferOut. STATUS_IN_PROGRESS is polled, and every success for one
|
|
26
|
+
* transfer carries the same payload. Prepared state stays inert until a
|
|
27
|
+
* later call for the transfer arrives; the participant may reclaim it once
|
|
28
|
+
* no transfer can still be running against it (Lore sends no TTL).
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf rpc: DstPrepare
|
|
31
|
+
*/
|
|
32
|
+
dstPrepare(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, OrgDstPrepareResponse>;
|
|
18
33
|
/**
|
|
19
34
|
* Either success guarantees a fenced, fully drained source, even if absent.
|
|
20
35
|
*
|
|
@@ -40,14 +55,19 @@ export interface ITransferOrgHomeCellClient {
|
|
|
40
55
|
*/
|
|
41
56
|
srcCancelExport(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
|
|
42
57
|
/**
|
|
43
|
-
*
|
|
58
|
+
* Before DstActivate, after all destination discards and source
|
|
44
59
|
* cancellations.
|
|
45
60
|
*
|
|
46
61
|
* @generated from protobuf rpc: SrcResume
|
|
47
62
|
*/
|
|
48
63
|
srcResume(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
|
|
49
64
|
/**
|
|
50
|
-
*
|
|
65
|
+
* Before DstActivate, after import stops; also discards a prepared
|
|
66
|
+
* destination that imported nothing. It may be the first call a destination
|
|
67
|
+
* sees when its prepare request never arrived; answer STATUS_SUCCESS for a
|
|
68
|
+
* transfer never seen. It may also arrive while this transfer's DstPrepare
|
|
69
|
+
* is still in progress; stop that work before answering. Preserve unrelated
|
|
70
|
+
* data.
|
|
51
71
|
*
|
|
52
72
|
* @generated from protobuf rpc: DstAbortDiscardImport
|
|
53
73
|
*/
|
|
@@ -68,6 +88,9 @@ export interface ITransferOrgHomeCellClient {
|
|
|
68
88
|
}
|
|
69
89
|
/**
|
|
70
90
|
* TransferOrgHomeCell defines the phased cell transfer for an org home cell.
|
|
91
|
+
* Lore drives every participant through DstPrepare, SrcStopAndDrain,
|
|
92
|
+
* SrcTransferOut, DstTransferIn and DstActivate, moves the placement and calls
|
|
93
|
+
* SrcDelete; after the first DstActivate attempt it recovers forward only.
|
|
71
94
|
*
|
|
72
95
|
* @generated from protobuf service replit.goval.api.lore.transfer.TransferOrgHomeCell
|
|
73
96
|
*/
|
|
@@ -79,6 +102,17 @@ export declare class TransferOrgHomeCellClient implements ITransferOrgHomeCellCl
|
|
|
79
102
|
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
80
103
|
};
|
|
81
104
|
constructor(_transport: RpcTransport);
|
|
105
|
+
/**
|
|
106
|
+
* Optional, before any source is frozen. Unimplemented means no prepare
|
|
107
|
+
* step; otherwise the payload goes unchanged to this participant's
|
|
108
|
+
* SrcTransferOut. STATUS_IN_PROGRESS is polled, and every success for one
|
|
109
|
+
* transfer carries the same payload. Prepared state stays inert until a
|
|
110
|
+
* later call for the transfer arrives; the participant may reclaim it once
|
|
111
|
+
* no transfer can still be running against it (Lore sends no TTL).
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf rpc: DstPrepare
|
|
114
|
+
*/
|
|
115
|
+
dstPrepare(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, OrgDstPrepareResponse>;
|
|
82
116
|
/**
|
|
83
117
|
* Either success guarantees a fenced, fully drained source, even if absent.
|
|
84
118
|
*
|
|
@@ -104,14 +138,19 @@ export declare class TransferOrgHomeCellClient implements ITransferOrgHomeCellCl
|
|
|
104
138
|
*/
|
|
105
139
|
srcCancelExport(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
|
|
106
140
|
/**
|
|
107
|
-
*
|
|
141
|
+
* Before DstActivate, after all destination discards and source
|
|
108
142
|
* cancellations.
|
|
109
143
|
*
|
|
110
144
|
* @generated from protobuf rpc: SrcResume
|
|
111
145
|
*/
|
|
112
146
|
srcResume(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
|
|
113
147
|
/**
|
|
114
|
-
*
|
|
148
|
+
* Before DstActivate, after import stops; also discards a prepared
|
|
149
|
+
* destination that imported nothing. It may be the first call a destination
|
|
150
|
+
* sees when its prepare request never arrived; answer STATUS_SUCCESS for a
|
|
151
|
+
* transfer never seen. It may also arrive while this transfer's DstPrepare
|
|
152
|
+
* is still in progress; stop that work before answering. Preserve unrelated
|
|
153
|
+
* data.
|
|
115
154
|
*
|
|
116
155
|
* @generated from protobuf rpc: DstAbortDiscardImport
|
|
117
156
|
*/
|
|
@@ -2,6 +2,9 @@ import { TransferOrgHomeCell } from "./org_transfer.js";
|
|
|
2
2
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
3
|
/**
|
|
4
4
|
* TransferOrgHomeCell defines the phased cell transfer for an org home cell.
|
|
5
|
+
* Lore drives every participant through DstPrepare, SrcStopAndDrain,
|
|
6
|
+
* SrcTransferOut, DstTransferIn and DstActivate, moves the placement and calls
|
|
7
|
+
* SrcDelete; after the first DstActivate attempt it recovers forward only.
|
|
5
8
|
*
|
|
6
9
|
* @generated from protobuf service replit.goval.api.lore.transfer.TransferOrgHomeCell
|
|
7
10
|
*/
|
|
@@ -12,13 +15,27 @@ export class TransferOrgHomeCellClient {
|
|
|
12
15
|
this.methods = TransferOrgHomeCell.methods;
|
|
13
16
|
this.options = TransferOrgHomeCell.options;
|
|
14
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Optional, before any source is frozen. Unimplemented means no prepare
|
|
20
|
+
* step; otherwise the payload goes unchanged to this participant's
|
|
21
|
+
* SrcTransferOut. STATUS_IN_PROGRESS is polled, and every success for one
|
|
22
|
+
* transfer carries the same payload. Prepared state stays inert until a
|
|
23
|
+
* later call for the transfer arrives; the participant may reclaim it once
|
|
24
|
+
* no transfer can still be running against it (Lore sends no TTL).
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf rpc: DstPrepare
|
|
27
|
+
*/
|
|
28
|
+
dstPrepare(input, options) {
|
|
29
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
30
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
31
|
+
}
|
|
15
32
|
/**
|
|
16
33
|
* Either success guarantees a fenced, fully drained source, even if absent.
|
|
17
34
|
*
|
|
18
35
|
* @generated from protobuf rpc: SrcStopAndDrain
|
|
19
36
|
*/
|
|
20
37
|
srcStopAndDrain(input, options) {
|
|
21
|
-
const method = this.methods[
|
|
38
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
22
39
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
23
40
|
}
|
|
24
41
|
/**
|
|
@@ -27,7 +44,7 @@ export class TransferOrgHomeCellClient {
|
|
|
27
44
|
* @generated from protobuf rpc: SrcTransferOut
|
|
28
45
|
*/
|
|
29
46
|
srcTransferOut(input, options) {
|
|
30
|
-
const method = this.methods[
|
|
47
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
31
48
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
32
49
|
}
|
|
33
50
|
/**
|
|
@@ -36,7 +53,7 @@ export class TransferOrgHomeCellClient {
|
|
|
36
53
|
* @generated from protobuf rpc: DstTransferIn
|
|
37
54
|
*/
|
|
38
55
|
dstTransferIn(input, options) {
|
|
39
|
-
const method = this.methods[
|
|
56
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
40
57
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
41
58
|
}
|
|
42
59
|
/**
|
|
@@ -45,26 +62,31 @@ export class TransferOrgHomeCellClient {
|
|
|
45
62
|
* @generated from protobuf rpc: SrcCancelExport
|
|
46
63
|
*/
|
|
47
64
|
srcCancelExport(input, options) {
|
|
48
|
-
const method = this.methods[
|
|
65
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
49
66
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
50
67
|
}
|
|
51
68
|
/**
|
|
52
|
-
*
|
|
69
|
+
* Before DstActivate, after all destination discards and source
|
|
53
70
|
* cancellations.
|
|
54
71
|
*
|
|
55
72
|
* @generated from protobuf rpc: SrcResume
|
|
56
73
|
*/
|
|
57
74
|
srcResume(input, options) {
|
|
58
|
-
const method = this.methods[
|
|
75
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
59
76
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
60
77
|
}
|
|
61
78
|
/**
|
|
62
|
-
*
|
|
79
|
+
* Before DstActivate, after import stops; also discards a prepared
|
|
80
|
+
* destination that imported nothing. It may be the first call a destination
|
|
81
|
+
* sees when its prepare request never arrived; answer STATUS_SUCCESS for a
|
|
82
|
+
* transfer never seen. It may also arrive while this transfer's DstPrepare
|
|
83
|
+
* is still in progress; stop that work before answering. Preserve unrelated
|
|
84
|
+
* data.
|
|
63
85
|
*
|
|
64
86
|
* @generated from protobuf rpc: DstAbortDiscardImport
|
|
65
87
|
*/
|
|
66
88
|
dstAbortDiscardImport(input, options) {
|
|
67
|
-
const method = this.methods[
|
|
89
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
68
90
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
69
91
|
}
|
|
70
92
|
/**
|
|
@@ -73,7 +95,7 @@ export class TransferOrgHomeCellClient {
|
|
|
73
95
|
* @generated from protobuf rpc: DstActivate
|
|
74
96
|
*/
|
|
75
97
|
dstActivate(input, options) {
|
|
76
|
-
const method = this.methods[
|
|
98
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
77
99
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
78
100
|
}
|
|
79
101
|
/**
|
|
@@ -83,7 +105,7 @@ export class TransferOrgHomeCellClient {
|
|
|
83
105
|
* @generated from protobuf rpc: SrcDelete
|
|
84
106
|
*/
|
|
85
107
|
srcDelete(input, options) {
|
|
86
|
-
const method = this.methods[
|
|
108
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
87
109
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
88
110
|
}
|
|
89
111
|
}
|
|
@@ -6,9 +6,10 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
8
|
import { ExportMetadata } from "./transfer.js";
|
|
9
|
-
import { PhaseResponse } from "./transfer.js";
|
|
10
9
|
import { SignedUrl } from "./transfer.js";
|
|
11
10
|
import { Duration } from "../../../google/protobuf/duration.js";
|
|
11
|
+
import { Any } from "../../../google/protobuf/any.js";
|
|
12
|
+
import { PhaseResponse } from "./transfer.js";
|
|
12
13
|
/**
|
|
13
14
|
* Src*\/Dst* uses the resource-group signed-URL contract and phase outcomes.
|
|
14
15
|
* Calls are at least once and services deduplicate by transfer and phase.
|
|
@@ -30,6 +31,26 @@ export interface OrgTransferRequest {
|
|
|
30
31
|
*/
|
|
31
32
|
principal?: OrgTransferPrincipal;
|
|
32
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf message replit.goval.api.lore.transfer.OrgDstPrepareResponse
|
|
36
|
+
*/
|
|
37
|
+
export interface OrgDstPrepareResponse {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: replit.goval.api.lore.transfer.PhaseResponse status = 1
|
|
40
|
+
*/
|
|
41
|
+
status?: PhaseResponse;
|
|
42
|
+
/**
|
|
43
|
+
* STATUS_SUCCESS must set it with a type_url (google.protobuf.Empty when
|
|
44
|
+
* there is nothing to forward); every other status leaves it unset. At most
|
|
45
|
+
* 64 KiB serialized (the Any, including type_url). The service defines its
|
|
46
|
+
* schema; Lore keeps it unencrypted in its workflow history and forwards it
|
|
47
|
+
* unchanged to the same participant's SrcTransferOut, so it must carry no
|
|
48
|
+
* secret or capability.
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf field: google.protobuf.Any prepare_payload = 2
|
|
51
|
+
*/
|
|
52
|
+
preparePayload?: Any;
|
|
53
|
+
}
|
|
33
54
|
/**
|
|
34
55
|
* @generated from protobuf message replit.goval.api.lore.transfer.OrgSrcStopAndDrainRequest
|
|
35
56
|
*/
|
|
@@ -75,6 +96,13 @@ export interface OrgSrcTransferOutRequest {
|
|
|
75
96
|
* @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4
|
|
76
97
|
*/
|
|
77
98
|
principal?: OrgTransferPrincipal;
|
|
99
|
+
/**
|
|
100
|
+
* The destination's DstPrepare payload, unchanged; unset when the
|
|
101
|
+
* destination has no prepare step.
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf field: google.protobuf.Any prepare_payload = 5
|
|
104
|
+
*/
|
|
105
|
+
preparePayload?: Any;
|
|
78
106
|
}
|
|
79
107
|
/**
|
|
80
108
|
* @generated from protobuf message replit.goval.api.lore.transfer.OrgSrcTransferOutResponse
|
|
@@ -187,6 +215,16 @@ declare class OrgTransferRequest$Type extends MessageType<OrgTransferRequest> {
|
|
|
187
215
|
* @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgTransferRequest
|
|
188
216
|
*/
|
|
189
217
|
export declare const OrgTransferRequest: OrgTransferRequest$Type;
|
|
218
|
+
declare class OrgDstPrepareResponse$Type extends MessageType<OrgDstPrepareResponse> {
|
|
219
|
+
constructor();
|
|
220
|
+
create(value?: PartialMessage<OrgDstPrepareResponse>): OrgDstPrepareResponse;
|
|
221
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgDstPrepareResponse): OrgDstPrepareResponse;
|
|
222
|
+
internalBinaryWrite(message: OrgDstPrepareResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgDstPrepareResponse
|
|
226
|
+
*/
|
|
227
|
+
export declare const OrgDstPrepareResponse: OrgDstPrepareResponse$Type;
|
|
190
228
|
declare class OrgSrcStopAndDrainRequest$Type extends MessageType<OrgSrcStopAndDrainRequest> {
|
|
191
229
|
constructor();
|
|
192
230
|
create(value?: PartialMessage<OrgSrcStopAndDrainRequest>): OrgSrcStopAndDrainRequest;
|
|
@@ -7,9 +7,10 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
7
7
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
8
8
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
9
9
|
import { ExportMetadata } from "./transfer.js";
|
|
10
|
-
import { PhaseResponse } from "./transfer.js";
|
|
11
10
|
import { SignedUrl } from "./transfer.js";
|
|
12
11
|
import { Duration } from "../../../google/protobuf/duration.js";
|
|
12
|
+
import { Any } from "../../../google/protobuf/any.js";
|
|
13
|
+
import { PhaseResponse } from "./transfer.js";
|
|
13
14
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
14
15
|
class OrgTransferRequest$Type extends MessageType {
|
|
15
16
|
constructor() {
|
|
@@ -73,6 +74,59 @@ class OrgTransferRequest$Type extends MessageType {
|
|
|
73
74
|
*/
|
|
74
75
|
export const OrgTransferRequest = new OrgTransferRequest$Type();
|
|
75
76
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
77
|
+
class OrgDstPrepareResponse$Type extends MessageType {
|
|
78
|
+
constructor() {
|
|
79
|
+
super("replit.goval.api.lore.transfer.OrgDstPrepareResponse", [
|
|
80
|
+
{ no: 1, name: "status", kind: "message", T: () => PhaseResponse },
|
|
81
|
+
{ no: 2, name: "prepare_payload", kind: "message", T: () => Any }
|
|
82
|
+
]);
|
|
83
|
+
}
|
|
84
|
+
create(value) {
|
|
85
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
86
|
+
if (value !== undefined)
|
|
87
|
+
reflectionMergePartial(this, message, value);
|
|
88
|
+
return message;
|
|
89
|
+
}
|
|
90
|
+
internalBinaryRead(reader, length, options, target) {
|
|
91
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
92
|
+
while (reader.pos < end) {
|
|
93
|
+
let [fieldNo, wireType] = reader.tag();
|
|
94
|
+
switch (fieldNo) {
|
|
95
|
+
case /* replit.goval.api.lore.transfer.PhaseResponse status */ 1:
|
|
96
|
+
message.status = PhaseResponse.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
97
|
+
break;
|
|
98
|
+
case /* google.protobuf.Any prepare_payload */ 2:
|
|
99
|
+
message.preparePayload = Any.internalBinaryRead(reader, reader.uint32(), options, message.preparePayload);
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
let u = options.readUnknownField;
|
|
103
|
+
if (u === "throw")
|
|
104
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
105
|
+
let d = reader.skip(wireType);
|
|
106
|
+
if (u !== false)
|
|
107
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
}
|
|
112
|
+
internalBinaryWrite(message, writer, options) {
|
|
113
|
+
/* replit.goval.api.lore.transfer.PhaseResponse status = 1; */
|
|
114
|
+
if (message.status)
|
|
115
|
+
PhaseResponse.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
116
|
+
/* google.protobuf.Any prepare_payload = 2; */
|
|
117
|
+
if (message.preparePayload)
|
|
118
|
+
Any.internalBinaryWrite(message.preparePayload, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
119
|
+
let u = options.writeUnknownFields;
|
|
120
|
+
if (u !== false)
|
|
121
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
122
|
+
return writer;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgDstPrepareResponse
|
|
127
|
+
*/
|
|
128
|
+
export const OrgDstPrepareResponse = new OrgDstPrepareResponse$Type();
|
|
129
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
76
130
|
class OrgSrcStopAndDrainRequest$Type extends MessageType {
|
|
77
131
|
constructor() {
|
|
78
132
|
super("replit.goval.api.lore.transfer.OrgSrcStopAndDrainRequest", [
|
|
@@ -148,7 +202,8 @@ class OrgSrcTransferOutRequest$Type extends MessageType {
|
|
|
148
202
|
{ no: 1, name: "org_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
149
203
|
{ no: 2, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
150
204
|
{ no: 3, name: "signed_url", kind: "message", T: () => SignedUrl },
|
|
151
|
-
{ no: 4, name: "principal", kind: "message", T: () => OrgTransferPrincipal }
|
|
205
|
+
{ no: 4, name: "principal", kind: "message", T: () => OrgTransferPrincipal },
|
|
206
|
+
{ no: 5, name: "prepare_payload", kind: "message", T: () => Any }
|
|
152
207
|
]);
|
|
153
208
|
}
|
|
154
209
|
create(value) {
|
|
@@ -176,6 +231,9 @@ class OrgSrcTransferOutRequest$Type extends MessageType {
|
|
|
176
231
|
case /* replit.goval.api.lore.transfer.OrgTransferPrincipal principal */ 4:
|
|
177
232
|
message.principal = OrgTransferPrincipal.internalBinaryRead(reader, reader.uint32(), options, message.principal);
|
|
178
233
|
break;
|
|
234
|
+
case /* google.protobuf.Any prepare_payload */ 5:
|
|
235
|
+
message.preparePayload = Any.internalBinaryRead(reader, reader.uint32(), options, message.preparePayload);
|
|
236
|
+
break;
|
|
179
237
|
default:
|
|
180
238
|
let u = options.readUnknownField;
|
|
181
239
|
if (u === "throw")
|
|
@@ -200,6 +258,9 @@ class OrgSrcTransferOutRequest$Type extends MessageType {
|
|
|
200
258
|
/* replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4; */
|
|
201
259
|
if (message.principal)
|
|
202
260
|
OrgTransferPrincipal.internalBinaryWrite(message.principal, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
261
|
+
/* google.protobuf.Any prepare_payload = 5; */
|
|
262
|
+
if (message.preparePayload)
|
|
263
|
+
Any.internalBinaryWrite(message.preparePayload, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
203
264
|
let u = options.writeUnknownFields;
|
|
204
265
|
if (u !== false)
|
|
205
266
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -472,6 +533,7 @@ export const OrgTransferPrincipal = new OrgTransferPrincipal$Type();
|
|
|
472
533
|
* @generated ServiceType for protobuf service replit.goval.api.lore.transfer.TransferOrgHomeCell
|
|
473
534
|
*/
|
|
474
535
|
export const TransferOrgHomeCell = new ServiceType("replit.goval.api.lore.transfer.TransferOrgHomeCell", [
|
|
536
|
+
{ name: "DstPrepare", options: {}, I: OrgTransferRequest, O: OrgDstPrepareResponse },
|
|
475
537
|
{ name: "SrcStopAndDrain", options: {}, I: OrgSrcStopAndDrainRequest, O: PhaseResponse },
|
|
476
538
|
{ name: "SrcTransferOut", options: {}, I: OrgSrcTransferOutRequest, O: OrgSrcTransferOutResponse },
|
|
477
539
|
{ name: "DstTransferIn", options: {}, I: OrgDstTransferInRequest, O: PhaseResponse },
|
|
@@ -46,9 +46,9 @@ export interface ITransferResourceGroupClient {
|
|
|
46
46
|
*/
|
|
47
47
|
srcCancelExport(input: TransferRequest, options?: RpcOptions): UnaryCall<TransferRequest, PhaseResponse>;
|
|
48
48
|
/**
|
|
49
|
-
* Pre-activation only
|
|
50
|
-
*
|
|
51
|
-
* superseded transfer.
|
|
49
|
+
* Pre-activation only. Lore attempts destination discard and export
|
|
50
|
+
* cancellation first, but resumes sources even if cleanup fails.
|
|
51
|
+
* Never revive a retired or superseded transfer.
|
|
52
52
|
*
|
|
53
53
|
* @generated from protobuf rpc: SrcResume
|
|
54
54
|
*/
|
|
@@ -121,9 +121,9 @@ export declare class TransferResourceGroupClient implements ITransferResourceGro
|
|
|
121
121
|
*/
|
|
122
122
|
srcCancelExport(input: TransferRequest, options?: RpcOptions): UnaryCall<TransferRequest, PhaseResponse>;
|
|
123
123
|
/**
|
|
124
|
-
* Pre-activation only
|
|
125
|
-
*
|
|
126
|
-
* superseded transfer.
|
|
124
|
+
* Pre-activation only. Lore attempts destination discard and export
|
|
125
|
+
* cancellation first, but resumes sources even if cleanup fails.
|
|
126
|
+
* Never revive a retired or superseded transfer.
|
|
127
127
|
*
|
|
128
128
|
* @generated from protobuf rpc: SrcResume
|
|
129
129
|
*/
|
|
@@ -55,9 +55,9 @@ export class TransferResourceGroupClient {
|
|
|
55
55
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Pre-activation only
|
|
59
|
-
*
|
|
60
|
-
* superseded transfer.
|
|
58
|
+
* Pre-activation only. Lore attempts destination discard and export
|
|
59
|
+
* cancellation first, but resumes sources even if cleanup fails.
|
|
60
|
+
* Never revive a retired or superseded transfer.
|
|
61
61
|
*
|
|
62
62
|
* @generated from protobuf rpc: SrcResume
|
|
63
63
|
*/
|
package/dist/api/repl/repl.d.ts
CHANGED
|
@@ -477,6 +477,12 @@ export interface BuildInfo {
|
|
|
477
477
|
* @generated from protobuf field: string origin_repl_id = 5
|
|
478
478
|
*/
|
|
479
479
|
originReplId: string;
|
|
480
|
+
/**
|
|
481
|
+
* Requires dormant startup without workspace secrets or app execution.
|
|
482
|
+
*
|
|
483
|
+
* @generated from protobuf field: bool isolated_environment = 6
|
|
484
|
+
*/
|
|
485
|
+
isolatedEnvironment: boolean;
|
|
480
486
|
}
|
|
481
487
|
/**
|
|
482
488
|
* Pid2 includes information about the pid2 payload we want to use for this
|
package/dist/api/repl/repl.js
CHANGED
|
@@ -778,7 +778,8 @@ class BuildInfo$Type extends MessageType {
|
|
|
778
778
|
{ no: 2, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
779
779
|
{ no: 3, name: "build_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
780
780
|
{ no: 4, name: "machine_tier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
781
|
-
{ no: 5, name: "origin_repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
781
|
+
{ no: 5, name: "origin_repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
782
|
+
{ no: 6, name: "isolated_environment", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
782
783
|
]);
|
|
783
784
|
}
|
|
784
785
|
create(value) {
|
|
@@ -788,6 +789,7 @@ class BuildInfo$Type extends MessageType {
|
|
|
788
789
|
message.buildId = "";
|
|
789
790
|
message.machineTier = "";
|
|
790
791
|
message.originReplId = "";
|
|
792
|
+
message.isolatedEnvironment = false;
|
|
791
793
|
if (value !== undefined)
|
|
792
794
|
reflectionMergePartial(this, message, value);
|
|
793
795
|
return message;
|
|
@@ -812,6 +814,9 @@ class BuildInfo$Type extends MessageType {
|
|
|
812
814
|
case /* string origin_repl_id */ 5:
|
|
813
815
|
message.originReplId = reader.string();
|
|
814
816
|
break;
|
|
817
|
+
case /* bool isolated_environment */ 6:
|
|
818
|
+
message.isolatedEnvironment = reader.bool();
|
|
819
|
+
break;
|
|
815
820
|
default:
|
|
816
821
|
let u = options.readUnknownField;
|
|
817
822
|
if (u === "throw")
|
|
@@ -839,6 +844,9 @@ class BuildInfo$Type extends MessageType {
|
|
|
839
844
|
/* string origin_repl_id = 5; */
|
|
840
845
|
if (message.originReplId !== "")
|
|
841
846
|
writer.tag(5, WireType.LengthDelimited).string(message.originReplId);
|
|
847
|
+
/* bool isolated_environment = 6; */
|
|
848
|
+
if (message.isolatedEnvironment !== false)
|
|
849
|
+
writer.tag(6, WireType.Varint).bool(message.isolatedEnvironment);
|
|
842
850
|
let u = options.writeUnknownFields;
|
|
843
851
|
if (u !== false)
|
|
844
852
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/dist/api/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
6
6
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
7
|
import { Struct } from "../google/protobuf/struct.js";
|
|
8
8
|
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
9
|
+
import { BuildInfo } from "./repl/repl.js";
|
|
9
10
|
import { OciRuntimeProfile } from "./oci/runtime_profile.js";
|
|
10
11
|
import { Pid2Binary } from "./repl/repl.js";
|
|
11
12
|
import { Empty } from "../google/protobuf/empty.js";
|
|
@@ -1836,6 +1837,22 @@ export interface Pid1Config {
|
|
|
1836
1837
|
* @generated from protobuf field: replit.goval.api.oci.OciRuntimeProfile oci_runtime_profile = 8
|
|
1837
1838
|
*/
|
|
1838
1839
|
ociRuntimeProfile?: OciRuntimeProfile;
|
|
1840
|
+
/**
|
|
1841
|
+
* Host-authored identity for a single-use, initially dormant build.
|
|
1842
|
+
*
|
|
1843
|
+
* @generated from protobuf field: replit.goval.api.repl.BuildInfo isolated_build = 9
|
|
1844
|
+
*/
|
|
1845
|
+
isolatedBuild?: BuildInfo;
|
|
1846
|
+
/**
|
|
1847
|
+
* @generated from protobuf field: replit.goval.api.IsolatedBuildSourceMount isolated_build_source_mount = 10
|
|
1848
|
+
*/
|
|
1849
|
+
isolatedBuildSourceMount?: IsolatedBuildSourceMount;
|
|
1850
|
+
/**
|
|
1851
|
+
* Host-selected, digest-pinned Nix store image mounted for this build.
|
|
1852
|
+
*
|
|
1853
|
+
* @generated from protobuf field: string isolated_build_nix_image = 11
|
|
1854
|
+
*/
|
|
1855
|
+
isolatedBuildNixImage: string;
|
|
1839
1856
|
}
|
|
1840
1857
|
/**
|
|
1841
1858
|
* @generated from protobuf message replit.goval.api.FSLock
|
|
@@ -6107,6 +6124,23 @@ export interface ReplResourcesUpdateNotification {
|
|
|
6107
6124
|
*/
|
|
6108
6125
|
contents: string;
|
|
6109
6126
|
}
|
|
6127
|
+
/**
|
|
6128
|
+
* @generated from protobuf message replit.goval.api.IsolatedBuildSourceMount
|
|
6129
|
+
*/
|
|
6130
|
+
export interface IsolatedBuildSourceMount {
|
|
6131
|
+
/**
|
|
6132
|
+
* @generated from protobuf field: string owner_repl_id = 1
|
|
6133
|
+
*/
|
|
6134
|
+
ownerReplId: string;
|
|
6135
|
+
/**
|
|
6136
|
+
* @generated from protobuf field: string disk_id = 2
|
|
6137
|
+
*/
|
|
6138
|
+
diskId: string;
|
|
6139
|
+
/**
|
|
6140
|
+
* @generated from protobuf field: string path = 3
|
|
6141
|
+
*/
|
|
6142
|
+
path: string;
|
|
6143
|
+
}
|
|
6110
6144
|
/**
|
|
6111
6145
|
* @generated from protobuf enum replit.goval.api.State
|
|
6112
6146
|
*/
|
|
@@ -8584,4 +8618,14 @@ declare class ReplResourcesUpdateNotification$Type extends MessageType<ReplResou
|
|
|
8584
8618
|
* @generated MessageType for protobuf message replit.goval.api.ReplResourcesUpdateNotification
|
|
8585
8619
|
*/
|
|
8586
8620
|
export declare const ReplResourcesUpdateNotification: ReplResourcesUpdateNotification$Type;
|
|
8621
|
+
declare class IsolatedBuildSourceMount$Type extends MessageType<IsolatedBuildSourceMount> {
|
|
8622
|
+
constructor();
|
|
8623
|
+
create(value?: PartialMessage<IsolatedBuildSourceMount>): IsolatedBuildSourceMount;
|
|
8624
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IsolatedBuildSourceMount): IsolatedBuildSourceMount;
|
|
8625
|
+
internalBinaryWrite(message: IsolatedBuildSourceMount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
8626
|
+
}
|
|
8627
|
+
/**
|
|
8628
|
+
* @generated MessageType for protobuf message replit.goval.api.IsolatedBuildSourceMount
|
|
8629
|
+
*/
|
|
8630
|
+
export declare const IsolatedBuildSourceMount: IsolatedBuildSourceMount$Type;
|
|
8587
8631
|
export {};
|