@replit/protocol 0.4.32 → 0.5.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.
@@ -13,80 +13,156 @@ export class TransferOrgHomeCellClient {
13
13
  this.options = TransferOrgHomeCell.options;
14
14
  }
15
15
  /**
16
+ * Either success guarantees a fenced, fully drained source, even if absent.
17
+ *
18
+ * @generated from protobuf rpc: SrcStopAndDrain
19
+ */
20
+ srcStopAndDrain(input, options) {
21
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
22
+ return stackIntercept("unary", this._transport, method, opt, input);
23
+ }
24
+ /**
25
+ * Upload the existing opaque payload; return its receipt or explicit absence.
26
+ *
27
+ * @generated from protobuf rpc: SrcTransferOut
28
+ */
29
+ srcTransferOut(input, options) {
30
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
31
+ return stackIntercept("unary", this._transport, method, opt, input);
32
+ }
33
+ /**
34
+ * SUCCESS means import completed behind the arrival fence.
35
+ *
36
+ * @generated from protobuf rpc: DstTransferIn
37
+ */
38
+ dstTransferIn(input, options) {
39
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
40
+ return stackIntercept("unary", this._transport, method, opt, input);
41
+ }
42
+ /**
43
+ * Stop export work while preserving source data and the fence.
44
+ *
45
+ * @generated from protobuf rpc: SrcCancelExport
46
+ */
47
+ srcCancelExport(input, options) {
48
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
49
+ return stackIntercept("unary", this._transport, method, opt, input);
50
+ }
51
+ /**
52
+ * Pre-activation only, after all destination discards and source
53
+ * cancellations.
54
+ *
55
+ * @generated from protobuf rpc: SrcResume
56
+ */
57
+ srcResume(input, options) {
58
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
59
+ return stackIntercept("unary", this._transport, method, opt, input);
60
+ }
61
+ /**
62
+ * Pre-activation only, after import has stopped; preserve unrelated data.
63
+ *
64
+ * @generated from protobuf rpc: DstAbortDiscardImport
65
+ */
66
+ dstAbortDiscardImport(input, options) {
67
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
68
+ return stackIntercept("unary", this._transport, method, opt, input);
69
+ }
70
+ /**
71
+ * One-way activation; after the first attempt Lore recovers forward only.
72
+ *
73
+ * @generated from protobuf rpc: DstActivate
74
+ */
75
+ dstActivate(input, options) {
76
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
77
+ return stackIntercept("unary", this._transport, method, opt, input);
78
+ }
79
+ /**
80
+ * After verified cutover, retire the source without deleting shared backing
81
+ * data.
82
+ *
83
+ * @generated from protobuf rpc: SrcDelete
84
+ */
85
+ srcDelete(input, options) {
86
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
87
+ return stackIntercept("unary", this._transport, method, opt, input);
88
+ }
89
+ /**
90
+ * Legacy methods remain unchanged until all participants migrate.
91
+ *
16
92
  * @generated from protobuf rpc: SourceStopAndDrain
17
93
  */
18
94
  sourceStopAndDrain(input, options) {
19
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
95
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
20
96
  return stackIntercept("unary", this._transport, method, opt, input);
21
97
  }
22
98
  /**
23
99
  * @generated from protobuf rpc: IsSourceFullyDrained
24
100
  */
25
101
  isSourceFullyDrained(input, options) {
26
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
102
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
27
103
  return stackIntercept("unary", this._transport, method, opt, input);
28
104
  }
29
105
  /**
30
106
  * @generated from protobuf rpc: SourceRemoveTombstone
31
107
  */
32
108
  sourceRemoveTombstone(input, options) {
33
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
109
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
34
110
  return stackIntercept("unary", this._transport, method, opt, input);
35
111
  }
36
112
  /**
37
113
  * @generated from protobuf rpc: SourceTransferOut
38
114
  */
39
115
  sourceTransferOut(input, options) {
40
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
116
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
41
117
  return stackIntercept("unary", this._transport, method, opt, input);
42
118
  }
43
119
  /**
44
120
  * @generated from protobuf rpc: DestinationTransferIn
45
121
  */
46
122
  destinationTransferIn(input, options) {
47
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
123
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
48
124
  return stackIntercept("unary", this._transport, method, opt, input);
49
125
  }
50
126
  /**
51
127
  * @generated from protobuf rpc: DestinationAddTombstone
52
128
  */
53
129
  destinationAddTombstone(input, options) {
54
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
130
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
55
131
  return stackIntercept("unary", this._transport, method, opt, input);
56
132
  }
57
133
  /**
58
134
  * @generated from protobuf rpc: DestinationRemoveTombstone
59
135
  */
60
136
  destinationRemoveTombstone(input, options) {
61
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
137
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
62
138
  return stackIntercept("unary", this._transport, method, opt, input);
63
139
  }
64
140
  /**
65
141
  * @generated from protobuf rpc: SourceAbort
66
142
  */
67
143
  sourceAbort(input, options) {
68
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
144
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
69
145
  return stackIntercept("unary", this._transport, method, opt, input);
70
146
  }
71
147
  /**
72
148
  * @generated from protobuf rpc: DestinationAbort
73
149
  */
74
150
  destinationAbort(input, options) {
75
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
151
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
76
152
  return stackIntercept("unary", this._transport, method, opt, input);
77
153
  }
78
154
  /**
79
155
  * @generated from protobuf rpc: SourceCleanUpTransferData
80
156
  */
81
157
  sourceCleanUpTransferData(input, options) {
82
- const method = this.methods[9], opt = this._transport.mergeOptions(options);
158
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
83
159
  return stackIntercept("unary", this._transport, method, opt, input);
84
160
  }
85
161
  /**
86
162
  * @generated from protobuf rpc: SourceDelete
87
163
  */
88
164
  sourceDelete(input, options) {
89
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
165
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
90
166
  return stackIntercept("unary", this._transport, method, opt, input);
91
167
  }
92
168
  }
@@ -6,7 +6,145 @@ 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 { Any } from "../../../google/protobuf/any.js";
9
+ import { ExportMetadata } from "./transfer.js";
10
+ import { PhaseResponse } from "./transfer.js";
11
+ import { SignedUrl } from "./transfer.js";
9
12
  import { Duration } from "../../../google/protobuf/duration.js";
13
+ /**
14
+ * Src*\/Dst* uses the resource-group signed-URL contract and phase outcomes.
15
+ * Select one complete method family for both cells before fencing; calls are
16
+ * at least once and services deduplicate by transfer and phase.
17
+ * Every request requires both IDs and the unchanged initiating principal.
18
+ *
19
+ * @generated from protobuf message replit.goval.api.lore.transfer.OrgTransferRequest
20
+ */
21
+ export interface OrgTransferRequest {
22
+ /**
23
+ * @generated from protobuf field: string org_id = 1
24
+ */
25
+ orgId: string;
26
+ /**
27
+ * @generated from protobuf field: string transfer_id = 2
28
+ */
29
+ transferId: string;
30
+ /**
31
+ * @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 3
32
+ */
33
+ principal?: OrgTransferPrincipal;
34
+ }
35
+ /**
36
+ * @generated from protobuf message replit.goval.api.lore.transfer.OrgSrcStopAndDrainRequest
37
+ */
38
+ export interface OrgSrcStopAndDrainRequest {
39
+ /**
40
+ * @generated from protobuf field: string org_id = 1
41
+ */
42
+ orgId: string;
43
+ /**
44
+ * @generated from protobuf field: string transfer_id = 2
45
+ */
46
+ transferId: string;
47
+ /**
48
+ * Source fence lifetime; must cover the transfer and recovery window.
49
+ *
50
+ * @generated from protobuf field: google.protobuf.Duration ttl = 3
51
+ */
52
+ ttl?: Duration;
53
+ /**
54
+ * @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4
55
+ */
56
+ principal?: OrgTransferPrincipal;
57
+ }
58
+ /**
59
+ * @generated from protobuf message replit.goval.api.lore.transfer.OrgSrcTransferOutRequest
60
+ */
61
+ export interface OrgSrcTransferOutRequest {
62
+ /**
63
+ * @generated from protobuf field: string org_id = 1
64
+ */
65
+ orgId: string;
66
+ /**
67
+ * @generated from protobuf field: string transfer_id = 2
68
+ */
69
+ transferId: string;
70
+ /**
71
+ * PUT-only/create-only access; retries must target the same object.
72
+ *
73
+ * @generated from protobuf field: replit.goval.api.lore.transfer.SignedUrl signed_url = 3
74
+ */
75
+ signedUrl?: SignedUrl;
76
+ /**
77
+ * @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4
78
+ */
79
+ principal?: OrgTransferPrincipal;
80
+ }
81
+ /**
82
+ * @generated from protobuf message replit.goval.api.lore.transfer.OrgSrcTransferOutResponse
83
+ */
84
+ export interface OrgSrcTransferOutResponse {
85
+ /**
86
+ * @generated from protobuf field: replit.goval.api.lore.transfer.PhaseResponse status = 1
87
+ */
88
+ status?: PhaseResponse;
89
+ /**
90
+ * Required only on STATUS_SUCCESS; Lore verifies size/checksum before import.
91
+ *
92
+ * @generated from protobuf field: replit.goval.api.lore.transfer.ExportMetadata exported = 2
93
+ */
94
+ exported?: ExportMetadata;
95
+ }
96
+ /**
97
+ * @generated from protobuf message replit.goval.api.lore.transfer.OrgDstTransferInRequest
98
+ */
99
+ export interface OrgDstTransferInRequest {
100
+ /**
101
+ * @generated from protobuf field: string org_id = 1
102
+ */
103
+ orgId: string;
104
+ /**
105
+ * @generated from protobuf field: string transfer_id = 2
106
+ */
107
+ transferId: string;
108
+ /**
109
+ * GET-only access to the exact generation Lore verified.
110
+ *
111
+ * @generated from protobuf field: replit.goval.api.lore.transfer.SignedUrl signed_url = 3
112
+ */
113
+ signedUrl?: SignedUrl;
114
+ /**
115
+ * Arrival fence lifetime, preserving the service's existing import behavior.
116
+ *
117
+ * @generated from protobuf field: google.protobuf.Duration ttl = 4
118
+ */
119
+ ttl?: Duration;
120
+ /**
121
+ * @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 5
122
+ */
123
+ principal?: OrgTransferPrincipal;
124
+ }
125
+ /**
126
+ * @generated from protobuf message replit.goval.api.lore.transfer.OrgDstAbortDiscardImportRequest
127
+ */
128
+ export interface OrgDstAbortDiscardImportRequest {
129
+ /**
130
+ * @generated from protobuf field: string org_id = 1
131
+ */
132
+ orgId: string;
133
+ /**
134
+ * @generated from protobuf field: string transfer_id = 2
135
+ */
136
+ transferId: string;
137
+ /**
138
+ * Original import payload; may be omitted when no import was attempted.
139
+ *
140
+ * @generated from protobuf field: replit.goval.api.lore.transfer.SignedUrl signed_url = 3
141
+ */
142
+ signedUrl?: SignedUrl;
143
+ /**
144
+ * @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4
145
+ */
146
+ principal?: OrgTransferPrincipal;
147
+ }
10
148
  /**
11
149
  * @generated from protobuf message replit.goval.api.lore.transfer.OrgResponseStatus
12
150
  */
@@ -387,8 +525,76 @@ export declare enum OrgCallStatus {
387
525
  /**
388
526
  * @generated from protobuf enum value: ORG_CALL_STATUS_NON_RETRYABLE_FAILURE = 4;
389
527
  */
390
- NON_RETRYABLE_FAILURE = 4
528
+ NON_RETRYABLE_FAILURE = 4,
529
+ /**
530
+ * The service is still processing this request. The coordinator retries the
531
+ * same RPC with exponential backoff until it completes or the phase times
532
+ * out.
533
+ *
534
+ * @generated from protobuf enum value: ORG_CALL_STATUS_IN_PROGRESS = 5;
535
+ */
536
+ IN_PROGRESS = 5
537
+ }
538
+ declare class OrgTransferRequest$Type extends MessageType<OrgTransferRequest> {
539
+ constructor();
540
+ create(value?: PartialMessage<OrgTransferRequest>): OrgTransferRequest;
541
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgTransferRequest): OrgTransferRequest;
542
+ internalBinaryWrite(message: OrgTransferRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
543
+ }
544
+ /**
545
+ * @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgTransferRequest
546
+ */
547
+ export declare const OrgTransferRequest: OrgTransferRequest$Type;
548
+ declare class OrgSrcStopAndDrainRequest$Type extends MessageType<OrgSrcStopAndDrainRequest> {
549
+ constructor();
550
+ create(value?: PartialMessage<OrgSrcStopAndDrainRequest>): OrgSrcStopAndDrainRequest;
551
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgSrcStopAndDrainRequest): OrgSrcStopAndDrainRequest;
552
+ internalBinaryWrite(message: OrgSrcStopAndDrainRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
553
+ }
554
+ /**
555
+ * @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgSrcStopAndDrainRequest
556
+ */
557
+ export declare const OrgSrcStopAndDrainRequest: OrgSrcStopAndDrainRequest$Type;
558
+ declare class OrgSrcTransferOutRequest$Type extends MessageType<OrgSrcTransferOutRequest> {
559
+ constructor();
560
+ create(value?: PartialMessage<OrgSrcTransferOutRequest>): OrgSrcTransferOutRequest;
561
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgSrcTransferOutRequest): OrgSrcTransferOutRequest;
562
+ internalBinaryWrite(message: OrgSrcTransferOutRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
563
+ }
564
+ /**
565
+ * @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgSrcTransferOutRequest
566
+ */
567
+ export declare const OrgSrcTransferOutRequest: OrgSrcTransferOutRequest$Type;
568
+ declare class OrgSrcTransferOutResponse$Type extends MessageType<OrgSrcTransferOutResponse> {
569
+ constructor();
570
+ create(value?: PartialMessage<OrgSrcTransferOutResponse>): OrgSrcTransferOutResponse;
571
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgSrcTransferOutResponse): OrgSrcTransferOutResponse;
572
+ internalBinaryWrite(message: OrgSrcTransferOutResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
391
573
  }
574
+ /**
575
+ * @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgSrcTransferOutResponse
576
+ */
577
+ export declare const OrgSrcTransferOutResponse: OrgSrcTransferOutResponse$Type;
578
+ declare class OrgDstTransferInRequest$Type extends MessageType<OrgDstTransferInRequest> {
579
+ constructor();
580
+ create(value?: PartialMessage<OrgDstTransferInRequest>): OrgDstTransferInRequest;
581
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgDstTransferInRequest): OrgDstTransferInRequest;
582
+ internalBinaryWrite(message: OrgDstTransferInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
583
+ }
584
+ /**
585
+ * @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgDstTransferInRequest
586
+ */
587
+ export declare const OrgDstTransferInRequest: OrgDstTransferInRequest$Type;
588
+ declare class OrgDstAbortDiscardImportRequest$Type extends MessageType<OrgDstAbortDiscardImportRequest> {
589
+ constructor();
590
+ create(value?: PartialMessage<OrgDstAbortDiscardImportRequest>): OrgDstAbortDiscardImportRequest;
591
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrgDstAbortDiscardImportRequest): OrgDstAbortDiscardImportRequest;
592
+ internalBinaryWrite(message: OrgDstAbortDiscardImportRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
593
+ }
594
+ /**
595
+ * @generated MessageType for protobuf message replit.goval.api.lore.transfer.OrgDstAbortDiscardImportRequest
596
+ */
597
+ export declare const OrgDstAbortDiscardImportRequest: OrgDstAbortDiscardImportRequest$Type;
392
598
  declare class OrgResponseStatus$Type extends MessageType<OrgResponseStatus> {
393
599
  constructor();
394
600
  create(value?: PartialMessage<OrgResponseStatus>): OrgResponseStatus;