@replit/protocol 0.4.32 → 0.6.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/api/jetplane/repl/repl.client.d.ts +122 -0
- package/dist/api/jetplane/repl/repl.client.js +83 -10
- package/dist/api/jetplane/repl/repl.d.ts +393 -0
- package/dist/api/jetplane/repl/repl.js +927 -54
- package/dist/api/lore/service.client.d.ts +52 -0
- package/dist/api/lore/service.client.js +63 -31
- package/dist/api/lore/service.d.ts +233 -33
- package/dist/api/lore/service.js +444 -45
- package/dist/api/lore/transfer/org_transfer.client.d.ts +75 -78
- package/dist/api/lore/transfer/org_transfer.client.js +34 -37
- package/dist/api/lore/transfer/org_transfer.d.ts +116 -498
- package/dist/api/lore/transfer/org_transfer.js +122 -1037
- package/dist/api/lore/transfer/transfer.client.d.ts +477 -0
- package/dist/api/lore/transfer/transfer.client.js +292 -0
- package/dist/api/lore/transfer/transfer.d.ts +1016 -0
- package/dist/api/lore/transfer/transfer.js +1952 -0
- package/dist/api/repl/repl.d.ts +23 -0
- package/dist/api/repl/repl.js +26 -3
- package/dist/api/signing.d.ts +15 -1
- package/dist/api/signing.js +17 -1
- package/dist/api/token/token.d.ts +6 -6
- package/dist/api/token/token.js +2 -2
- package/dist/google/protobuf/struct.d.ts +3 -3
- package/dist/google/protobuf/struct.js +3 -3
- package/iotester/index.d.ts +8426 -3653
- package/iotester/index.js +21093 -9685
- package/main/index.d.ts +8426 -3653
- package/main/index.js +21093 -9685
- package/package.json +1 -1
package/dist/api/repl/repl.d.ts
CHANGED
|
@@ -176,6 +176,13 @@ export interface Repl {
|
|
|
176
176
|
* @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 21
|
|
177
177
|
*/
|
|
178
178
|
replCreatedAt?: Timestamp;
|
|
179
|
+
/**
|
|
180
|
+
* Versions use_repl_shield: the Replit web row snapshot time read with the
|
|
181
|
+
* flag. PatchSandbox uses it to order live CR updates against boot state.
|
|
182
|
+
*
|
|
183
|
+
* @generated from protobuf field: google.protobuf.Timestamp repl_shield_state_as_of = 22
|
|
184
|
+
*/
|
|
185
|
+
replShieldStateAsOf?: Timestamp;
|
|
179
186
|
}
|
|
180
187
|
/**
|
|
181
188
|
* autocontainer needs to know if we are in a teams org
|
|
@@ -213,6 +220,15 @@ export interface Org {
|
|
|
213
220
|
* @generated from protobuf field: string customer_id = 5
|
|
214
221
|
*/
|
|
215
222
|
customerId: string;
|
|
223
|
+
/**
|
|
224
|
+
* Customer VPN domain (e.g. "replit.corp.example.com") when this org's
|
|
225
|
+
* customer forces access through its VPN. Private deployments of the org
|
|
226
|
+
* send ReplShield logins to this host instead of replit.com and only accept
|
|
227
|
+
* ReplShield tokens minted there. Empty when the customer is not forced.
|
|
228
|
+
*
|
|
229
|
+
* @generated from protobuf field: string customer_vpn_domain = 6
|
|
230
|
+
*/
|
|
231
|
+
customerVpnDomain: string;
|
|
216
232
|
}
|
|
217
233
|
/**
|
|
218
234
|
* Organization type. There are legacy types, but we are not
|
|
@@ -308,6 +324,13 @@ export interface ResourceLimits {
|
|
|
308
324
|
* @generated from protobuf field: bool restrictNetwork = 7
|
|
309
325
|
*/
|
|
310
326
|
restrictNetwork: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* The authorized user-facing Helium PostgreSQL quota in bytes. Zero means
|
|
329
|
+
* the legacy standard quota.
|
|
330
|
+
*
|
|
331
|
+
* @generated from protobuf field: uint64 helium_user_quota_bytes = 11
|
|
332
|
+
*/
|
|
333
|
+
heliumUserQuotaBytes: bigint;
|
|
311
334
|
}
|
|
312
335
|
/**
|
|
313
336
|
* Whether these limits are cachable, and if they are, by what facet of the
|
package/dist/api/repl/repl.js
CHANGED
|
@@ -207,7 +207,8 @@ class Repl$Type extends MessageType {
|
|
|
207
207
|
{ no: 18, name: "custom_skills_bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
208
208
|
{ no: 19, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
209
209
|
{ no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
210
|
-
{ no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp }
|
|
210
|
+
{ no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp },
|
|
211
|
+
{ no: 22, name: "repl_shield_state_as_of", kind: "message", T: () => Timestamp }
|
|
211
212
|
]);
|
|
212
213
|
}
|
|
213
214
|
create(value) {
|
|
@@ -297,6 +298,9 @@ class Repl$Type extends MessageType {
|
|
|
297
298
|
case /* google.protobuf.Timestamp repl_created_at */ 21:
|
|
298
299
|
message.replCreatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replCreatedAt);
|
|
299
300
|
break;
|
|
301
|
+
case /* google.protobuf.Timestamp repl_shield_state_as_of */ 22:
|
|
302
|
+
message.replShieldStateAsOf = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replShieldStateAsOf);
|
|
303
|
+
break;
|
|
300
304
|
default:
|
|
301
305
|
let u = options.readUnknownField;
|
|
302
306
|
if (u === "throw")
|
|
@@ -385,6 +389,9 @@ class Repl$Type extends MessageType {
|
|
|
385
389
|
/* google.protobuf.Timestamp repl_created_at = 21; */
|
|
386
390
|
if (message.replCreatedAt)
|
|
387
391
|
Timestamp.internalBinaryWrite(message.replCreatedAt, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
392
|
+
/* google.protobuf.Timestamp repl_shield_state_as_of = 22; */
|
|
393
|
+
if (message.replShieldStateAsOf)
|
|
394
|
+
Timestamp.internalBinaryWrite(message.replShieldStateAsOf, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
|
388
395
|
let u = options.writeUnknownFields;
|
|
389
396
|
if (u !== false)
|
|
390
397
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -403,7 +410,8 @@ class Org$Type extends MessageType {
|
|
|
403
410
|
{ no: 2, name: "type", kind: "enum", T: () => ["replit.goval.api.repl.Org.OrgType", Org_OrgType] },
|
|
404
411
|
{ no: 3, name: "slug", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
405
412
|
{ no: 4, name: "is_enterprise", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
406
|
-
{ no: 5, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
413
|
+
{ no: 5, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
414
|
+
{ no: 6, name: "customer_vpn_domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
407
415
|
]);
|
|
408
416
|
}
|
|
409
417
|
create(value) {
|
|
@@ -413,6 +421,7 @@ class Org$Type extends MessageType {
|
|
|
413
421
|
message.slug = "";
|
|
414
422
|
message.isEnterprise = false;
|
|
415
423
|
message.customerId = "";
|
|
424
|
+
message.customerVpnDomain = "";
|
|
416
425
|
if (value !== undefined)
|
|
417
426
|
reflectionMergePartial(this, message, value);
|
|
418
427
|
return message;
|
|
@@ -437,6 +446,9 @@ class Org$Type extends MessageType {
|
|
|
437
446
|
case /* string customer_id */ 5:
|
|
438
447
|
message.customerId = reader.string();
|
|
439
448
|
break;
|
|
449
|
+
case /* string customer_vpn_domain */ 6:
|
|
450
|
+
message.customerVpnDomain = reader.string();
|
|
451
|
+
break;
|
|
440
452
|
default:
|
|
441
453
|
let u = options.readUnknownField;
|
|
442
454
|
if (u === "throw")
|
|
@@ -464,6 +476,9 @@ class Org$Type extends MessageType {
|
|
|
464
476
|
/* string customer_id = 5; */
|
|
465
477
|
if (message.customerId !== "")
|
|
466
478
|
writer.tag(5, WireType.LengthDelimited).string(message.customerId);
|
|
479
|
+
/* string customer_vpn_domain = 6; */
|
|
480
|
+
if (message.customerVpnDomain !== "")
|
|
481
|
+
writer.tag(6, WireType.LengthDelimited).string(message.customerVpnDomain);
|
|
467
482
|
let u = options.writeUnknownFields;
|
|
468
483
|
if (u !== false)
|
|
469
484
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -541,7 +556,8 @@ class ResourceLimits$Type extends MessageType {
|
|
|
541
556
|
{ no: 10, name: "minimum_disk", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
542
557
|
{ no: 9, name: "scratch_disk", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
543
558
|
{ no: 6, name: "cache", kind: "enum", T: () => ["replit.goval.api.repl.ResourceLimits.Cachability", ResourceLimits_Cachability] },
|
|
544
|
-
{ no: 7, name: "restrictNetwork", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
559
|
+
{ no: 7, name: "restrictNetwork", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
560
|
+
{ no: 11, name: "helium_user_quota_bytes", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
545
561
|
]);
|
|
546
562
|
}
|
|
547
563
|
create(value) {
|
|
@@ -555,6 +571,7 @@ class ResourceLimits$Type extends MessageType {
|
|
|
555
571
|
message.scratchDisk = 0n;
|
|
556
572
|
message.cache = 0;
|
|
557
573
|
message.restrictNetwork = false;
|
|
574
|
+
message.heliumUserQuotaBytes = 0n;
|
|
558
575
|
if (value !== undefined)
|
|
559
576
|
reflectionMergePartial(this, message, value);
|
|
560
577
|
return message;
|
|
@@ -591,6 +608,9 @@ class ResourceLimits$Type extends MessageType {
|
|
|
591
608
|
case /* bool restrictNetwork */ 7:
|
|
592
609
|
message.restrictNetwork = reader.bool();
|
|
593
610
|
break;
|
|
611
|
+
case /* uint64 helium_user_quota_bytes */ 11:
|
|
612
|
+
message.heliumUserQuotaBytes = reader.uint64().toBigInt();
|
|
613
|
+
break;
|
|
594
614
|
default:
|
|
595
615
|
let u = options.readUnknownField;
|
|
596
616
|
if (u === "throw")
|
|
@@ -630,6 +650,9 @@ class ResourceLimits$Type extends MessageType {
|
|
|
630
650
|
/* int64 minimum_disk = 10; */
|
|
631
651
|
if (message.minimumDisk !== 0n)
|
|
632
652
|
writer.tag(10, WireType.Varint).int64(message.minimumDisk);
|
|
653
|
+
/* uint64 helium_user_quota_bytes = 11; */
|
|
654
|
+
if (message.heliumUserQuotaBytes !== 0n)
|
|
655
|
+
writer.tag(11, WireType.Varint).uint64(message.heliumUserQuotaBytes);
|
|
633
656
|
let u = options.writeUnknownFields;
|
|
634
657
|
if (u !== false)
|
|
635
658
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/dist/api/signing.d.ts
CHANGED
|
@@ -147,6 +147,14 @@ export interface CertificateClaim {
|
|
|
147
147
|
* @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 9
|
|
148
148
|
*/
|
|
149
149
|
replCreatedAt: Timestamp;
|
|
150
|
+
} | {
|
|
151
|
+
oneofKind: "originReplid";
|
|
152
|
+
/**
|
|
153
|
+
* This cert has the authority to assert this origin Repl ID.
|
|
154
|
+
*
|
|
155
|
+
* @generated from protobuf field: string origin_replid = 10
|
|
156
|
+
*/
|
|
157
|
+
originReplid: string;
|
|
150
158
|
} | {
|
|
151
159
|
oneofKind: undefined;
|
|
152
160
|
};
|
|
@@ -553,7 +561,13 @@ export declare enum FlagClaim {
|
|
|
553
561
|
*
|
|
554
562
|
* @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
|
|
555
563
|
*/
|
|
556
|
-
ANY_REPL_CREATED_AT = 13
|
|
564
|
+
ANY_REPL_CREATED_AT = 13,
|
|
565
|
+
/**
|
|
566
|
+
* Cert can authorize child certs for any origin Repl ID.
|
|
567
|
+
*
|
|
568
|
+
* @generated from protobuf enum value: ANY_ORIGIN_REPLID = 14;
|
|
569
|
+
*/
|
|
570
|
+
ANY_ORIGIN_REPLID = 14
|
|
557
571
|
}
|
|
558
572
|
declare class GovalSigningAuthority$Type extends MessageType<GovalSigningAuthority> {
|
|
559
573
|
constructor();
|
package/dist/api/signing.js
CHANGED
|
@@ -137,6 +137,12 @@ export var FlagClaim;
|
|
|
137
137
|
* @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
|
|
138
138
|
*/
|
|
139
139
|
FlagClaim[FlagClaim["ANY_REPL_CREATED_AT"] = 13] = "ANY_REPL_CREATED_AT";
|
|
140
|
+
/**
|
|
141
|
+
* Cert can authorize child certs for any origin Repl ID.
|
|
142
|
+
*
|
|
143
|
+
* @generated from protobuf enum value: ANY_ORIGIN_REPLID = 14;
|
|
144
|
+
*/
|
|
145
|
+
FlagClaim[FlagClaim["ANY_ORIGIN_REPLID"] = 14] = "ANY_ORIGIN_REPLID";
|
|
140
146
|
})(FlagClaim || (FlagClaim = {}));
|
|
141
147
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
142
148
|
class GovalSigningAuthority$Type extends MessageType {
|
|
@@ -226,7 +232,8 @@ class CertificateClaim$Type extends MessageType {
|
|
|
226
232
|
{ no: 5, name: "subcluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
|
|
227
233
|
{ no: 6, name: "deployment", kind: "scalar", oneof: "claim", T: 8 /*ScalarType.BOOL*/ },
|
|
228
234
|
{ no: 3, name: "flag", kind: "enum", oneof: "claim", T: () => ["replit.goval.api.FlagClaim", FlagClaim] },
|
|
229
|
-
{ no: 9, name: "repl_created_at", kind: "message", oneof: "claim", T: () => Timestamp }
|
|
235
|
+
{ no: 9, name: "repl_created_at", kind: "message", oneof: "claim", T: () => Timestamp },
|
|
236
|
+
{ no: 10, name: "origin_replid", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ }
|
|
230
237
|
]);
|
|
231
238
|
}
|
|
232
239
|
create(value) {
|
|
@@ -295,6 +302,12 @@ class CertificateClaim$Type extends MessageType {
|
|
|
295
302
|
replCreatedAt: Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.claim.replCreatedAt)
|
|
296
303
|
};
|
|
297
304
|
break;
|
|
305
|
+
case /* string origin_replid */ 10:
|
|
306
|
+
message.claim = {
|
|
307
|
+
oneofKind: "originReplid",
|
|
308
|
+
originReplid: reader.string()
|
|
309
|
+
};
|
|
310
|
+
break;
|
|
298
311
|
default:
|
|
299
312
|
let u = options.readUnknownField;
|
|
300
313
|
if (u === "throw")
|
|
@@ -334,6 +347,9 @@ class CertificateClaim$Type extends MessageType {
|
|
|
334
347
|
/* google.protobuf.Timestamp repl_created_at = 9; */
|
|
335
348
|
if (message.claim.oneofKind === "replCreatedAt")
|
|
336
349
|
Timestamp.internalBinaryWrite(message.claim.replCreatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
350
|
+
/* string origin_replid = 10; */
|
|
351
|
+
if (message.claim.oneofKind === "originReplid")
|
|
352
|
+
writer.tag(10, WireType.LengthDelimited).string(message.claim.originReplid);
|
|
337
353
|
let u = options.writeUnknownFields;
|
|
338
354
|
if (u !== false)
|
|
339
355
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -172,10 +172,10 @@ export interface ReplToken {
|
|
|
172
172
|
*/
|
|
173
173
|
replexec: boolean;
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
176
|
-
* secrets.
|
|
175
|
+
* Deprecated: replvisor fetches external secrets through web RPC.
|
|
177
176
|
*
|
|
178
|
-
* @
|
|
177
|
+
* @deprecated
|
|
178
|
+
* @generated from protobuf field: repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true]
|
|
179
179
|
*/
|
|
180
180
|
externalSecrets: ReplToken_ExternalSecret[];
|
|
181
181
|
/**
|
|
@@ -188,9 +188,9 @@ export interface ReplToken {
|
|
|
188
188
|
before?: Timestamp;
|
|
189
189
|
/**
|
|
190
190
|
* Resource tier selects the Goval 3 resource size. Current values are
|
|
191
|
-
* "small", "medium", and "
|
|
192
|
-
* select a ReplPool tier such as "free-small", "paid-medium", or
|
|
193
|
-
* "paid-
|
|
191
|
+
* "small", "medium", "large", and "xlarge". Goval 3 combines this with `paid`
|
|
192
|
+
* to select a ReplPool tier such as "free-small", "paid-medium", or
|
|
193
|
+
* "paid-xlarge".
|
|
194
194
|
*
|
|
195
195
|
* @generated from protobuf field: string resource_tier = 25
|
|
196
196
|
*/
|
package/dist/api/token/token.js
CHANGED
|
@@ -182,7 +182,7 @@ class ReplToken$Type extends MessageType {
|
|
|
182
182
|
case /* bool replexec */ 21:
|
|
183
183
|
message.replexec = reader.bool();
|
|
184
184
|
break;
|
|
185
|
-
case /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets */ 22:
|
|
185
|
+
case /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true] */ 22:
|
|
186
186
|
message.externalSecrets.push(ReplToken_ExternalSecret.internalBinaryRead(reader, reader.uint32(), options));
|
|
187
187
|
break;
|
|
188
188
|
case /* google.protobuf.Timestamp before */ 23:
|
|
@@ -269,7 +269,7 @@ class ReplToken$Type extends MessageType {
|
|
|
269
269
|
/* bool replexec = 21; */
|
|
270
270
|
if (message.replexec !== false)
|
|
271
271
|
writer.tag(21, WireType.Varint).bool(message.replexec);
|
|
272
|
-
/* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22; */
|
|
272
|
+
/* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true]; */
|
|
273
273
|
for (let i = 0; i < message.externalSecrets.length; i++)
|
|
274
274
|
ReplToken_ExternalSecret.internalBinaryWrite(message.externalSecrets[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
|
275
275
|
/* google.protobuf.Timestamp before = 23; */
|
|
@@ -125,9 +125,9 @@ export interface ListValue {
|
|
|
125
125
|
* the null value for the `Value` type union.
|
|
126
126
|
*
|
|
127
127
|
* A field of type `NullValue` with any value other than `0` is considered
|
|
128
|
-
* invalid. Most ProtoJSON serializers will emit a
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
129
|
+
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
130
|
+
* a `0` value.
|
|
131
131
|
*
|
|
132
132
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
133
133
|
*/
|
|
@@ -11,9 +11,9 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
11
11
|
* the null value for the `Value` type union.
|
|
12
12
|
*
|
|
13
13
|
* A field of type `NullValue` with any value other than `0` is considered
|
|
14
|
-
* invalid. Most ProtoJSON serializers will emit a
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
15
|
+
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
16
|
+
* a `0` value.
|
|
17
17
|
*
|
|
18
18
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
19
19
|
*/
|