@replit/protocol 0.3.47 → 0.3.49
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/#README.md# +28 -0
- package/iotester/index.js.flow +2947 -0
- package/main/index.d.ts +121 -8
- package/main/index.js +318 -25
- package/main/index.js.flow +48599 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -129,6 +129,9 @@ export namespace replit {
|
|
|
129
129
|
/** Command stat */
|
|
130
130
|
stat?: (replit.goval.api.File|replit.goval.api.IFile|null);
|
|
131
131
|
|
|
132
|
+
/** Command resetNixFilesystem */
|
|
133
|
+
resetNixFilesystem?: (replit.goval.api.File|replit.goval.api.IFile|null);
|
|
134
|
+
|
|
132
135
|
/** Command statRes */
|
|
133
136
|
statRes?: (replit.goval.api.StatResult|replit.goval.api.IStatResult|null);
|
|
134
137
|
|
|
@@ -715,6 +718,9 @@ export namespace replit {
|
|
|
715
718
|
/** Command stat. */
|
|
716
719
|
public stat?: (replit.goval.api.File|null);
|
|
717
720
|
|
|
721
|
+
/** Command resetNixFilesystem. */
|
|
722
|
+
public resetNixFilesystem?: (replit.goval.api.File|null);
|
|
723
|
+
|
|
718
724
|
/** Command statRes. */
|
|
719
725
|
public statRes?: (replit.goval.api.StatResult|null);
|
|
720
726
|
|
|
@@ -1175,7 +1181,7 @@ export namespace replit {
|
|
|
1175
1181
|
public forceTrace: boolean;
|
|
1176
1182
|
|
|
1177
1183
|
/** Command body. */
|
|
1178
|
-
public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker");
|
|
1184
|
+
public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"resetNixFilesystem"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker");
|
|
1179
1185
|
|
|
1180
1186
|
/**
|
|
1181
1187
|
* Creates a new Command instance using the specified properties.
|
|
@@ -9433,6 +9439,9 @@ export namespace replit {
|
|
|
9433
9439
|
|
|
9434
9440
|
/** RunMain runID */
|
|
9435
9441
|
runID?: (string|null);
|
|
9442
|
+
|
|
9443
|
+
/** RunMain clientSession */
|
|
9444
|
+
clientSession?: (number|null);
|
|
9436
9445
|
}
|
|
9437
9446
|
|
|
9438
9447
|
/** Represents a RunMain. */
|
|
@@ -9462,6 +9471,9 @@ export namespace replit {
|
|
|
9462
9471
|
/** RunMain runID. */
|
|
9463
9472
|
public runID: string;
|
|
9464
9473
|
|
|
9474
|
+
/** RunMain clientSession. */
|
|
9475
|
+
public clientSession: number;
|
|
9476
|
+
|
|
9465
9477
|
/**
|
|
9466
9478
|
* Creates a new RunMain instance using the specified properties.
|
|
9467
9479
|
* @param [properties] Properties to set
|
|
@@ -18043,6 +18055,9 @@ export namespace replit {
|
|
|
18043
18055
|
|
|
18044
18056
|
/** DotReplit objectStorage */
|
|
18045
18057
|
objectStorage?: (replit.goval.api.ObjectStorageConfig|replit.goval.api.IObjectStorageConfig|null);
|
|
18058
|
+
|
|
18059
|
+
/** DotReplit autoSave */
|
|
18060
|
+
autoSave?: (replit.goval.api.AutoSaveConfig|replit.goval.api.IAutoSaveConfig|null);
|
|
18046
18061
|
}
|
|
18047
18062
|
|
|
18048
18063
|
/** Represents a DotReplit. */
|
|
@@ -18135,6 +18150,9 @@ export namespace replit {
|
|
|
18135
18150
|
/** DotReplit objectStorage. */
|
|
18136
18151
|
public objectStorage?: (replit.goval.api.ObjectStorageConfig|null);
|
|
18137
18152
|
|
|
18153
|
+
/** DotReplit autoSave. */
|
|
18154
|
+
public autoSave?: (replit.goval.api.AutoSaveConfig|null);
|
|
18155
|
+
|
|
18138
18156
|
/**
|
|
18139
18157
|
* Creates a new DotReplit instance using the specified properties.
|
|
18140
18158
|
* @param [properties] Properties to set
|
|
@@ -18764,7 +18782,11 @@ export namespace replit {
|
|
|
18764
18782
|
enum Target {
|
|
18765
18783
|
GCE = 0,
|
|
18766
18784
|
CLOUDRUN = 1,
|
|
18767
|
-
STATIC = 2
|
|
18785
|
+
STATIC = 2,
|
|
18786
|
+
VM = 3,
|
|
18787
|
+
AUTOSCALE = 4,
|
|
18788
|
+
SCHEDULED = 5,
|
|
18789
|
+
EXTENSION = 6
|
|
18768
18790
|
}
|
|
18769
18791
|
|
|
18770
18792
|
/** Properties of a RewriteRule. */
|
|
@@ -22280,6 +22302,103 @@ export namespace replit {
|
|
|
22280
22302
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22281
22303
|
}
|
|
22282
22304
|
|
|
22305
|
+
/** Properties of an AutoSaveConfig. */
|
|
22306
|
+
interface IAutoSaveConfig {
|
|
22307
|
+
|
|
22308
|
+
/** AutoSaveConfig disabled */
|
|
22309
|
+
disabled?: (boolean|null);
|
|
22310
|
+
}
|
|
22311
|
+
|
|
22312
|
+
/** Represents an AutoSaveConfig. */
|
|
22313
|
+
class AutoSaveConfig {
|
|
22314
|
+
|
|
22315
|
+
/**
|
|
22316
|
+
* Constructs a new AutoSaveConfig.
|
|
22317
|
+
* @param [properties] Properties to set
|
|
22318
|
+
*/
|
|
22319
|
+
private constructor(properties?: replit.goval.api.IAutoSaveConfig);
|
|
22320
|
+
|
|
22321
|
+
/** AutoSaveConfig disabled. */
|
|
22322
|
+
public disabled: boolean;
|
|
22323
|
+
|
|
22324
|
+
/**
|
|
22325
|
+
* Creates a new AutoSaveConfig instance using the specified properties.
|
|
22326
|
+
* @param [properties] Properties to set
|
|
22327
|
+
* @returns AutoSaveConfig instance
|
|
22328
|
+
*/
|
|
22329
|
+
public static create(properties?: replit.goval.api.IAutoSaveConfig): replit.goval.api.AutoSaveConfig;
|
|
22330
|
+
|
|
22331
|
+
/**
|
|
22332
|
+
* Encodes the specified AutoSaveConfig message. Does not implicitly {@link replit.goval.api.AutoSaveConfig.verify|verify} messages.
|
|
22333
|
+
* @param message AutoSaveConfig message or plain object to encode
|
|
22334
|
+
* @param [writer] Writer to encode to
|
|
22335
|
+
* @returns Writer
|
|
22336
|
+
*/
|
|
22337
|
+
public static encode(message: replit.goval.api.AutoSaveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22338
|
+
|
|
22339
|
+
/**
|
|
22340
|
+
* Encodes the specified AutoSaveConfig message, length delimited. Does not implicitly {@link replit.goval.api.AutoSaveConfig.verify|verify} messages.
|
|
22341
|
+
* @param message AutoSaveConfig message or plain object to encode
|
|
22342
|
+
* @param [writer] Writer to encode to
|
|
22343
|
+
* @returns Writer
|
|
22344
|
+
*/
|
|
22345
|
+
public static encodeDelimited(message: replit.goval.api.AutoSaveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22346
|
+
|
|
22347
|
+
/**
|
|
22348
|
+
* Decodes an AutoSaveConfig message from the specified reader or buffer.
|
|
22349
|
+
* @param reader Reader or buffer to decode from
|
|
22350
|
+
* @param [length] Message length if known beforehand
|
|
22351
|
+
* @returns AutoSaveConfig
|
|
22352
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22353
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22354
|
+
*/
|
|
22355
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.AutoSaveConfig;
|
|
22356
|
+
|
|
22357
|
+
/**
|
|
22358
|
+
* Decodes an AutoSaveConfig message from the specified reader or buffer, length delimited.
|
|
22359
|
+
* @param reader Reader or buffer to decode from
|
|
22360
|
+
* @returns AutoSaveConfig
|
|
22361
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22362
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22363
|
+
*/
|
|
22364
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.AutoSaveConfig;
|
|
22365
|
+
|
|
22366
|
+
/**
|
|
22367
|
+
* Verifies an AutoSaveConfig message.
|
|
22368
|
+
* @param message Plain object to verify
|
|
22369
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22370
|
+
*/
|
|
22371
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22372
|
+
|
|
22373
|
+
/**
|
|
22374
|
+
* Creates an AutoSaveConfig message from a plain object. Also converts values to their respective internal types.
|
|
22375
|
+
* @param object Plain object
|
|
22376
|
+
* @returns AutoSaveConfig
|
|
22377
|
+
*/
|
|
22378
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.AutoSaveConfig;
|
|
22379
|
+
|
|
22380
|
+
/**
|
|
22381
|
+
* Creates a plain object from an AutoSaveConfig message. Also converts values to other types if specified.
|
|
22382
|
+
* @param message AutoSaveConfig
|
|
22383
|
+
* @param [options] Conversion options
|
|
22384
|
+
* @returns Plain object
|
|
22385
|
+
*/
|
|
22386
|
+
public static toObject(message: replit.goval.api.AutoSaveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22387
|
+
|
|
22388
|
+
/**
|
|
22389
|
+
* Converts this AutoSaveConfig to JSON.
|
|
22390
|
+
* @returns JSON object
|
|
22391
|
+
*/
|
|
22392
|
+
public toJSON(): { [k: string]: any };
|
|
22393
|
+
|
|
22394
|
+
/**
|
|
22395
|
+
* Gets the default type url for AutoSaveConfig
|
|
22396
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22397
|
+
* @returns The default type url
|
|
22398
|
+
*/
|
|
22399
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22400
|
+
}
|
|
22401
|
+
|
|
22283
22402
|
/** Properties of a ToolchainGetRequest. */
|
|
22284
22403
|
interface IToolchainGetRequest {
|
|
22285
22404
|
}
|
|
@@ -33410,9 +33529,6 @@ export namespace replit {
|
|
|
33410
33529
|
|
|
33411
33530
|
/** ResourceLimits restrictNetwork */
|
|
33412
33531
|
restrictNetwork?: (boolean|null);
|
|
33413
|
-
|
|
33414
|
-
/** ResourceLimits preventWakeup */
|
|
33415
|
-
preventWakeup?: (boolean|null);
|
|
33416
33532
|
}
|
|
33417
33533
|
|
|
33418
33534
|
/** Represents a ResourceLimits. */
|
|
@@ -33451,9 +33567,6 @@ export namespace replit {
|
|
|
33451
33567
|
/** ResourceLimits restrictNetwork. */
|
|
33452
33568
|
public restrictNetwork: boolean;
|
|
33453
33569
|
|
|
33454
|
-
/** ResourceLimits preventWakeup. */
|
|
33455
|
-
public preventWakeup: boolean;
|
|
33456
|
-
|
|
33457
33570
|
/**
|
|
33458
33571
|
* Creates a new ResourceLimits instance using the specified properties.
|
|
33459
33572
|
* @param [properties] Properties to set
|