@replit/protocol 0.3.40 → 0.3.42
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 +13 -0
- package/iotester/index.js.flow +2947 -0
- package/main/index.d.ts +117 -2
- package/main/index.js +290 -6
- package/main/index.js.flow +48599 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -336,6 +336,9 @@ export namespace replit {
|
|
|
336
336
|
/** Command packageAdd */
|
|
337
337
|
packageAdd?: (replit.goval.api.PackageAdd|replit.goval.api.IPackageAdd|null);
|
|
338
338
|
|
|
339
|
+
/** Command packageAddResponse */
|
|
340
|
+
packageAddResponse?: (replit.goval.api.PackageAddResponse|replit.goval.api.IPackageAddResponse|null);
|
|
341
|
+
|
|
339
342
|
/** Command packageRemove */
|
|
340
343
|
packageRemove?: (replit.goval.api.PackageRemove|replit.goval.api.IPackageRemove|null);
|
|
341
344
|
|
|
@@ -925,6 +928,9 @@ export namespace replit {
|
|
|
925
928
|
/** Command packageAdd. */
|
|
926
929
|
public packageAdd?: (replit.goval.api.PackageAdd|null);
|
|
927
930
|
|
|
931
|
+
/** Command packageAddResponse. */
|
|
932
|
+
public packageAddResponse?: (replit.goval.api.PackageAddResponse|null);
|
|
933
|
+
|
|
928
934
|
/** Command packageRemove. */
|
|
929
935
|
public packageRemove?: (replit.goval.api.PackageRemove|null);
|
|
930
936
|
|
|
@@ -1181,7 +1187,7 @@ export namespace replit {
|
|
|
1181
1187
|
public forceTrace: boolean;
|
|
1182
1188
|
|
|
1183
1189
|
/** Command body. */
|
|
1184
|
-
public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"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"|"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"|"pid2Message"|"replspaceApiShellTracker");
|
|
1190
|
+
public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"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"|"pid2Message"|"replspaceApiShellTracker");
|
|
1185
1191
|
|
|
1186
1192
|
/**
|
|
1187
1193
|
* Creates a new Command instance using the specified properties.
|
|
@@ -4678,7 +4684,7 @@ export namespace replit {
|
|
|
4678
4684
|
|
|
4679
4685
|
/** Consistency enum. */
|
|
4680
4686
|
enum Consistency {
|
|
4681
|
-
|
|
4687
|
+
DiskAndHistory = 0,
|
|
4682
4688
|
Disk = 1
|
|
4683
4689
|
}
|
|
4684
4690
|
}
|
|
@@ -14184,6 +14190,9 @@ export namespace replit {
|
|
|
14184
14190
|
|
|
14185
14191
|
/** PackageAdd pkgs */
|
|
14186
14192
|
pkgs?: ((replit.goval.api.Package|replit.goval.api.IPackage)[]|null);
|
|
14193
|
+
|
|
14194
|
+
/** PackageAdd useNewResponse */
|
|
14195
|
+
useNewResponse?: (boolean|null);
|
|
14187
14196
|
}
|
|
14188
14197
|
|
|
14189
14198
|
/** Represents a PackageAdd. */
|
|
@@ -14198,6 +14207,9 @@ export namespace replit {
|
|
|
14198
14207
|
/** PackageAdd pkgs. */
|
|
14199
14208
|
public pkgs: replit.goval.api.Package[];
|
|
14200
14209
|
|
|
14210
|
+
/** PackageAdd useNewResponse. */
|
|
14211
|
+
public useNewResponse: boolean;
|
|
14212
|
+
|
|
14201
14213
|
/**
|
|
14202
14214
|
* Creates a new PackageAdd instance using the specified properties.
|
|
14203
14215
|
* @param [properties] Properties to set
|
|
@@ -14276,6 +14288,103 @@ export namespace replit {
|
|
|
14276
14288
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14277
14289
|
}
|
|
14278
14290
|
|
|
14291
|
+
/** Properties of a PackageAddResponse. */
|
|
14292
|
+
interface IPackageAddResponse {
|
|
14293
|
+
|
|
14294
|
+
/** PackageAddResponse installedSystemDependencies */
|
|
14295
|
+
installedSystemDependencies?: (boolean|null);
|
|
14296
|
+
}
|
|
14297
|
+
|
|
14298
|
+
/** Represents a PackageAddResponse. */
|
|
14299
|
+
class PackageAddResponse {
|
|
14300
|
+
|
|
14301
|
+
/**
|
|
14302
|
+
* Constructs a new PackageAddResponse.
|
|
14303
|
+
* @param [properties] Properties to set
|
|
14304
|
+
*/
|
|
14305
|
+
private constructor(properties?: replit.goval.api.IPackageAddResponse);
|
|
14306
|
+
|
|
14307
|
+
/** PackageAddResponse installedSystemDependencies. */
|
|
14308
|
+
public installedSystemDependencies: boolean;
|
|
14309
|
+
|
|
14310
|
+
/**
|
|
14311
|
+
* Creates a new PackageAddResponse instance using the specified properties.
|
|
14312
|
+
* @param [properties] Properties to set
|
|
14313
|
+
* @returns PackageAddResponse instance
|
|
14314
|
+
*/
|
|
14315
|
+
public static create(properties?: replit.goval.api.IPackageAddResponse): replit.goval.api.PackageAddResponse;
|
|
14316
|
+
|
|
14317
|
+
/**
|
|
14318
|
+
* Encodes the specified PackageAddResponse message. Does not implicitly {@link replit.goval.api.PackageAddResponse.verify|verify} messages.
|
|
14319
|
+
* @param message PackageAddResponse message or plain object to encode
|
|
14320
|
+
* @param [writer] Writer to encode to
|
|
14321
|
+
* @returns Writer
|
|
14322
|
+
*/
|
|
14323
|
+
public static encode(message: replit.goval.api.PackageAddResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14324
|
+
|
|
14325
|
+
/**
|
|
14326
|
+
* Encodes the specified PackageAddResponse message, length delimited. Does not implicitly {@link replit.goval.api.PackageAddResponse.verify|verify} messages.
|
|
14327
|
+
* @param message PackageAddResponse message or plain object to encode
|
|
14328
|
+
* @param [writer] Writer to encode to
|
|
14329
|
+
* @returns Writer
|
|
14330
|
+
*/
|
|
14331
|
+
public static encodeDelimited(message: replit.goval.api.PackageAddResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14332
|
+
|
|
14333
|
+
/**
|
|
14334
|
+
* Decodes a PackageAddResponse message from the specified reader or buffer.
|
|
14335
|
+
* @param reader Reader or buffer to decode from
|
|
14336
|
+
* @param [length] Message length if known beforehand
|
|
14337
|
+
* @returns PackageAddResponse
|
|
14338
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14339
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14340
|
+
*/
|
|
14341
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.PackageAddResponse;
|
|
14342
|
+
|
|
14343
|
+
/**
|
|
14344
|
+
* Decodes a PackageAddResponse message from the specified reader or buffer, length delimited.
|
|
14345
|
+
* @param reader Reader or buffer to decode from
|
|
14346
|
+
* @returns PackageAddResponse
|
|
14347
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14348
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14349
|
+
*/
|
|
14350
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.PackageAddResponse;
|
|
14351
|
+
|
|
14352
|
+
/**
|
|
14353
|
+
* Verifies a PackageAddResponse message.
|
|
14354
|
+
* @param message Plain object to verify
|
|
14355
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14356
|
+
*/
|
|
14357
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14358
|
+
|
|
14359
|
+
/**
|
|
14360
|
+
* Creates a PackageAddResponse message from a plain object. Also converts values to their respective internal types.
|
|
14361
|
+
* @param object Plain object
|
|
14362
|
+
* @returns PackageAddResponse
|
|
14363
|
+
*/
|
|
14364
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.PackageAddResponse;
|
|
14365
|
+
|
|
14366
|
+
/**
|
|
14367
|
+
* Creates a plain object from a PackageAddResponse message. Also converts values to other types if specified.
|
|
14368
|
+
* @param message PackageAddResponse
|
|
14369
|
+
* @param [options] Conversion options
|
|
14370
|
+
* @returns Plain object
|
|
14371
|
+
*/
|
|
14372
|
+
public static toObject(message: replit.goval.api.PackageAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14373
|
+
|
|
14374
|
+
/**
|
|
14375
|
+
* Converts this PackageAddResponse to JSON.
|
|
14376
|
+
* @returns JSON object
|
|
14377
|
+
*/
|
|
14378
|
+
public toJSON(): { [k: string]: any };
|
|
14379
|
+
|
|
14380
|
+
/**
|
|
14381
|
+
* Gets the default type url for PackageAddResponse
|
|
14382
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14383
|
+
* @returns The default type url
|
|
14384
|
+
*/
|
|
14385
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14386
|
+
}
|
|
14387
|
+
|
|
14279
14388
|
/** Properties of a PackageRemove. */
|
|
14280
14389
|
interface IPackageRemove {
|
|
14281
14390
|
|
|
@@ -14499,6 +14608,9 @@ export namespace replit {
|
|
|
14499
14608
|
|
|
14500
14609
|
/** PackageInstallResponse totalDurationMs */
|
|
14501
14610
|
totalDurationMs?: (number|null);
|
|
14611
|
+
|
|
14612
|
+
/** PackageInstallResponse installedSystemDependencies */
|
|
14613
|
+
installedSystemDependencies?: (boolean|null);
|
|
14502
14614
|
}
|
|
14503
14615
|
|
|
14504
14616
|
/** Represents a PackageInstallResponse. */
|
|
@@ -14525,6 +14637,9 @@ export namespace replit {
|
|
|
14525
14637
|
/** PackageInstallResponse totalDurationMs. */
|
|
14526
14638
|
public totalDurationMs: number;
|
|
14527
14639
|
|
|
14640
|
+
/** PackageInstallResponse installedSystemDependencies. */
|
|
14641
|
+
public installedSystemDependencies: boolean;
|
|
14642
|
+
|
|
14528
14643
|
/**
|
|
14529
14644
|
* Creates a new PackageInstallResponse instance using the specified properties.
|
|
14530
14645
|
* @param [properties] Properties to set
|