@replit/protocol 0.2.86 → 0.2.88

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/gen.sh CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env bash
2
2
 
3
3
  set -e
4
4
 
package/main/index.d.ts CHANGED
@@ -506,6 +506,18 @@ export namespace replit {
506
506
  /** Command userEvent */
507
507
  userEvent?: (replit.goval.api.UserEvent|replit.goval.api.IUserEvent|null);
508
508
 
509
+ /** Command replspaceApiOpenFile */
510
+ replspaceApiOpenFile?: (replit.goval.api.ReplspaceApiOpenFile|replit.goval.api.IReplspaceApiOpenFile|null);
511
+
512
+ /** Command replspaceApiCloseFile */
513
+ replspaceApiCloseFile?: (replit.goval.api.ReplspaceApiCloseFile|replit.goval.api.IReplspaceApiCloseFile|null);
514
+
515
+ /** Command replspaceApiGetGitHubToken */
516
+ replspaceApiGetGitHubToken?: (replit.goval.api.ReplspaceApiGetGitHubToken|replit.goval.api.IReplspaceApiGetGitHubToken|null);
517
+
518
+ /** Command replspaceApiGitHubToken */
519
+ replspaceApiGitHubToken?: (replit.goval.api.ReplspaceApiGitHubToken|replit.goval.api.IReplspaceApiGitHubToken|null);
520
+
509
521
  /** Command ref */
510
522
  ref?: (string|null);
511
523
 
@@ -1017,6 +1029,18 @@ export namespace replit {
1017
1029
  /** Command userEvent. */
1018
1030
  public userEvent?: (replit.goval.api.UserEvent|null);
1019
1031
 
1032
+ /** Command replspaceApiOpenFile. */
1033
+ public replspaceApiOpenFile?: (replit.goval.api.ReplspaceApiOpenFile|null);
1034
+
1035
+ /** Command replspaceApiCloseFile. */
1036
+ public replspaceApiCloseFile?: (replit.goval.api.ReplspaceApiCloseFile|null);
1037
+
1038
+ /** Command replspaceApiGetGitHubToken. */
1039
+ public replspaceApiGetGitHubToken?: (replit.goval.api.ReplspaceApiGetGitHubToken|null);
1040
+
1041
+ /** Command replspaceApiGitHubToken. */
1042
+ public replspaceApiGitHubToken?: (replit.goval.api.ReplspaceApiGitHubToken|null);
1043
+
1020
1044
  /** Command ref. */
1021
1045
  public ref: string;
1022
1046
 
@@ -1024,7 +1048,7 @@ export namespace replit {
1024
1048
  public traceInfo: { [k: string]: string };
1025
1049
 
1026
1050
  /** Command body. */
1027
- public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"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"|"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");
1051
+ public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"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"|"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");
1028
1052
 
1029
1053
  /**
1030
1054
  * Creates a new Command instance using the specified properties.
@@ -11115,6 +11139,390 @@ export namespace replit {
11115
11139
  public toJSON(): { [k: string]: any };
11116
11140
  }
11117
11141
 
11142
+ /** Properties of a ReplspaceApiOpenFile. */
11143
+ interface IReplspaceApiOpenFile {
11144
+
11145
+ /** ReplspaceApiOpenFile file */
11146
+ file?: (string|null);
11147
+
11148
+ /** ReplspaceApiOpenFile waitForClose */
11149
+ waitForClose?: (boolean|null);
11150
+
11151
+ /** ReplspaceApiOpenFile nonce */
11152
+ nonce?: (string|null);
11153
+ }
11154
+
11155
+ /** Represents a ReplspaceApiOpenFile. */
11156
+ class ReplspaceApiOpenFile {
11157
+
11158
+ /**
11159
+ * Constructs a new ReplspaceApiOpenFile.
11160
+ * @param [properties] Properties to set
11161
+ */
11162
+ private constructor(properties?: replit.goval.api.IReplspaceApiOpenFile);
11163
+
11164
+ /** ReplspaceApiOpenFile file. */
11165
+ public file: string;
11166
+
11167
+ /** ReplspaceApiOpenFile waitForClose. */
11168
+ public waitForClose: boolean;
11169
+
11170
+ /** ReplspaceApiOpenFile nonce. */
11171
+ public nonce: string;
11172
+
11173
+ /**
11174
+ * Creates a new ReplspaceApiOpenFile instance using the specified properties.
11175
+ * @param [properties] Properties to set
11176
+ * @returns ReplspaceApiOpenFile instance
11177
+ */
11178
+ public static create(properties?: replit.goval.api.IReplspaceApiOpenFile): replit.goval.api.ReplspaceApiOpenFile;
11179
+
11180
+ /**
11181
+ * Encodes the specified ReplspaceApiOpenFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
11182
+ * @param message ReplspaceApiOpenFile message or plain object to encode
11183
+ * @param [writer] Writer to encode to
11184
+ * @returns Writer
11185
+ */
11186
+ public static encode(message: replit.goval.api.ReplspaceApiOpenFile, writer?: $protobuf.Writer): $protobuf.Writer;
11187
+
11188
+ /**
11189
+ * Encodes the specified ReplspaceApiOpenFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
11190
+ * @param message ReplspaceApiOpenFile message or plain object to encode
11191
+ * @param [writer] Writer to encode to
11192
+ * @returns Writer
11193
+ */
11194
+ public static encodeDelimited(message: replit.goval.api.ReplspaceApiOpenFile, writer?: $protobuf.Writer): $protobuf.Writer;
11195
+
11196
+ /**
11197
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer.
11198
+ * @param reader Reader or buffer to decode from
11199
+ * @param [length] Message length if known beforehand
11200
+ * @returns ReplspaceApiOpenFile
11201
+ * @throws {Error} If the payload is not a reader or valid buffer
11202
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11203
+ */
11204
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplspaceApiOpenFile;
11205
+
11206
+ /**
11207
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer, length delimited.
11208
+ * @param reader Reader or buffer to decode from
11209
+ * @returns ReplspaceApiOpenFile
11210
+ * @throws {Error} If the payload is not a reader or valid buffer
11211
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11212
+ */
11213
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplspaceApiOpenFile;
11214
+
11215
+ /**
11216
+ * Verifies a ReplspaceApiOpenFile message.
11217
+ * @param message Plain object to verify
11218
+ * @returns `null` if valid, otherwise the reason why it is not
11219
+ */
11220
+ public static verify(message: { [k: string]: any }): (string|null);
11221
+
11222
+ /**
11223
+ * Creates a ReplspaceApiOpenFile message from a plain object. Also converts values to their respective internal types.
11224
+ * @param object Plain object
11225
+ * @returns ReplspaceApiOpenFile
11226
+ */
11227
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplspaceApiOpenFile;
11228
+
11229
+ /**
11230
+ * Creates a plain object from a ReplspaceApiOpenFile message. Also converts values to other types if specified.
11231
+ * @param message ReplspaceApiOpenFile
11232
+ * @param [options] Conversion options
11233
+ * @returns Plain object
11234
+ */
11235
+ public static toObject(message: replit.goval.api.ReplspaceApiOpenFile, options?: $protobuf.IConversionOptions): { [k: string]: any };
11236
+
11237
+ /**
11238
+ * Converts this ReplspaceApiOpenFile to JSON.
11239
+ * @returns JSON object
11240
+ */
11241
+ public toJSON(): { [k: string]: any };
11242
+ }
11243
+
11244
+ /** Properties of a ReplspaceApiCloseFile. */
11245
+ interface IReplspaceApiCloseFile {
11246
+
11247
+ /** ReplspaceApiCloseFile file */
11248
+ file?: (string|null);
11249
+
11250
+ /** ReplspaceApiCloseFile nonce */
11251
+ nonce?: (string|null);
11252
+ }
11253
+
11254
+ /** Represents a ReplspaceApiCloseFile. */
11255
+ class ReplspaceApiCloseFile {
11256
+
11257
+ /**
11258
+ * Constructs a new ReplspaceApiCloseFile.
11259
+ * @param [properties] Properties to set
11260
+ */
11261
+ private constructor(properties?: replit.goval.api.IReplspaceApiCloseFile);
11262
+
11263
+ /** ReplspaceApiCloseFile file. */
11264
+ public file: string;
11265
+
11266
+ /** ReplspaceApiCloseFile nonce. */
11267
+ public nonce: string;
11268
+
11269
+ /**
11270
+ * Creates a new ReplspaceApiCloseFile instance using the specified properties.
11271
+ * @param [properties] Properties to set
11272
+ * @returns ReplspaceApiCloseFile instance
11273
+ */
11274
+ public static create(properties?: replit.goval.api.IReplspaceApiCloseFile): replit.goval.api.ReplspaceApiCloseFile;
11275
+
11276
+ /**
11277
+ * Encodes the specified ReplspaceApiCloseFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
11278
+ * @param message ReplspaceApiCloseFile message or plain object to encode
11279
+ * @param [writer] Writer to encode to
11280
+ * @returns Writer
11281
+ */
11282
+ public static encode(message: replit.goval.api.ReplspaceApiCloseFile, writer?: $protobuf.Writer): $protobuf.Writer;
11283
+
11284
+ /**
11285
+ * Encodes the specified ReplspaceApiCloseFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
11286
+ * @param message ReplspaceApiCloseFile message or plain object to encode
11287
+ * @param [writer] Writer to encode to
11288
+ * @returns Writer
11289
+ */
11290
+ public static encodeDelimited(message: replit.goval.api.ReplspaceApiCloseFile, writer?: $protobuf.Writer): $protobuf.Writer;
11291
+
11292
+ /**
11293
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer.
11294
+ * @param reader Reader or buffer to decode from
11295
+ * @param [length] Message length if known beforehand
11296
+ * @returns ReplspaceApiCloseFile
11297
+ * @throws {Error} If the payload is not a reader or valid buffer
11298
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11299
+ */
11300
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplspaceApiCloseFile;
11301
+
11302
+ /**
11303
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer, length delimited.
11304
+ * @param reader Reader or buffer to decode from
11305
+ * @returns ReplspaceApiCloseFile
11306
+ * @throws {Error} If the payload is not a reader or valid buffer
11307
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11308
+ */
11309
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplspaceApiCloseFile;
11310
+
11311
+ /**
11312
+ * Verifies a ReplspaceApiCloseFile message.
11313
+ * @param message Plain object to verify
11314
+ * @returns `null` if valid, otherwise the reason why it is not
11315
+ */
11316
+ public static verify(message: { [k: string]: any }): (string|null);
11317
+
11318
+ /**
11319
+ * Creates a ReplspaceApiCloseFile message from a plain object. Also converts values to their respective internal types.
11320
+ * @param object Plain object
11321
+ * @returns ReplspaceApiCloseFile
11322
+ */
11323
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplspaceApiCloseFile;
11324
+
11325
+ /**
11326
+ * Creates a plain object from a ReplspaceApiCloseFile message. Also converts values to other types if specified.
11327
+ * @param message ReplspaceApiCloseFile
11328
+ * @param [options] Conversion options
11329
+ * @returns Plain object
11330
+ */
11331
+ public static toObject(message: replit.goval.api.ReplspaceApiCloseFile, options?: $protobuf.IConversionOptions): { [k: string]: any };
11332
+
11333
+ /**
11334
+ * Converts this ReplspaceApiCloseFile to JSON.
11335
+ * @returns JSON object
11336
+ */
11337
+ public toJSON(): { [k: string]: any };
11338
+ }
11339
+
11340
+ /** Properties of a ReplspaceApiGetGitHubToken. */
11341
+ interface IReplspaceApiGetGitHubToken {
11342
+
11343
+ /** ReplspaceApiGetGitHubToken nonce */
11344
+ nonce?: (string|null);
11345
+ }
11346
+
11347
+ /** Represents a ReplspaceApiGetGitHubToken. */
11348
+ class ReplspaceApiGetGitHubToken {
11349
+
11350
+ /**
11351
+ * Constructs a new ReplspaceApiGetGitHubToken.
11352
+ * @param [properties] Properties to set
11353
+ */
11354
+ private constructor(properties?: replit.goval.api.IReplspaceApiGetGitHubToken);
11355
+
11356
+ /** ReplspaceApiGetGitHubToken nonce. */
11357
+ public nonce: string;
11358
+
11359
+ /**
11360
+ * Creates a new ReplspaceApiGetGitHubToken instance using the specified properties.
11361
+ * @param [properties] Properties to set
11362
+ * @returns ReplspaceApiGetGitHubToken instance
11363
+ */
11364
+ public static create(properties?: replit.goval.api.IReplspaceApiGetGitHubToken): replit.goval.api.ReplspaceApiGetGitHubToken;
11365
+
11366
+ /**
11367
+ * Encodes the specified ReplspaceApiGetGitHubToken message. Does not implicitly {@link replit.goval.api.ReplspaceApiGetGitHubToken.verify|verify} messages.
11368
+ * @param message ReplspaceApiGetGitHubToken message or plain object to encode
11369
+ * @param [writer] Writer to encode to
11370
+ * @returns Writer
11371
+ */
11372
+ public static encode(message: replit.goval.api.ReplspaceApiGetGitHubToken, writer?: $protobuf.Writer): $protobuf.Writer;
11373
+
11374
+ /**
11375
+ * Encodes the specified ReplspaceApiGetGitHubToken message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiGetGitHubToken.verify|verify} messages.
11376
+ * @param message ReplspaceApiGetGitHubToken message or plain object to encode
11377
+ * @param [writer] Writer to encode to
11378
+ * @returns Writer
11379
+ */
11380
+ public static encodeDelimited(message: replit.goval.api.ReplspaceApiGetGitHubToken, writer?: $protobuf.Writer): $protobuf.Writer;
11381
+
11382
+ /**
11383
+ * Decodes a ReplspaceApiGetGitHubToken message from the specified reader or buffer.
11384
+ * @param reader Reader or buffer to decode from
11385
+ * @param [length] Message length if known beforehand
11386
+ * @returns ReplspaceApiGetGitHubToken
11387
+ * @throws {Error} If the payload is not a reader or valid buffer
11388
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11389
+ */
11390
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplspaceApiGetGitHubToken;
11391
+
11392
+ /**
11393
+ * Decodes a ReplspaceApiGetGitHubToken message from the specified reader or buffer, length delimited.
11394
+ * @param reader Reader or buffer to decode from
11395
+ * @returns ReplspaceApiGetGitHubToken
11396
+ * @throws {Error} If the payload is not a reader or valid buffer
11397
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11398
+ */
11399
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplspaceApiGetGitHubToken;
11400
+
11401
+ /**
11402
+ * Verifies a ReplspaceApiGetGitHubToken message.
11403
+ * @param message Plain object to verify
11404
+ * @returns `null` if valid, otherwise the reason why it is not
11405
+ */
11406
+ public static verify(message: { [k: string]: any }): (string|null);
11407
+
11408
+ /**
11409
+ * Creates a ReplspaceApiGetGitHubToken message from a plain object. Also converts values to their respective internal types.
11410
+ * @param object Plain object
11411
+ * @returns ReplspaceApiGetGitHubToken
11412
+ */
11413
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplspaceApiGetGitHubToken;
11414
+
11415
+ /**
11416
+ * Creates a plain object from a ReplspaceApiGetGitHubToken message. Also converts values to other types if specified.
11417
+ * @param message ReplspaceApiGetGitHubToken
11418
+ * @param [options] Conversion options
11419
+ * @returns Plain object
11420
+ */
11421
+ public static toObject(message: replit.goval.api.ReplspaceApiGetGitHubToken, options?: $protobuf.IConversionOptions): { [k: string]: any };
11422
+
11423
+ /**
11424
+ * Converts this ReplspaceApiGetGitHubToken to JSON.
11425
+ * @returns JSON object
11426
+ */
11427
+ public toJSON(): { [k: string]: any };
11428
+ }
11429
+
11430
+ /** Properties of a ReplspaceApiGitHubToken. */
11431
+ interface IReplspaceApiGitHubToken {
11432
+
11433
+ /** ReplspaceApiGitHubToken nonce */
11434
+ nonce?: (string|null);
11435
+
11436
+ /** ReplspaceApiGitHubToken token */
11437
+ token?: (string|null);
11438
+ }
11439
+
11440
+ /** Represents a ReplspaceApiGitHubToken. */
11441
+ class ReplspaceApiGitHubToken {
11442
+
11443
+ /**
11444
+ * Constructs a new ReplspaceApiGitHubToken.
11445
+ * @param [properties] Properties to set
11446
+ */
11447
+ private constructor(properties?: replit.goval.api.IReplspaceApiGitHubToken);
11448
+
11449
+ /** ReplspaceApiGitHubToken nonce. */
11450
+ public nonce: string;
11451
+
11452
+ /** ReplspaceApiGitHubToken token. */
11453
+ public token: string;
11454
+
11455
+ /**
11456
+ * Creates a new ReplspaceApiGitHubToken instance using the specified properties.
11457
+ * @param [properties] Properties to set
11458
+ * @returns ReplspaceApiGitHubToken instance
11459
+ */
11460
+ public static create(properties?: replit.goval.api.IReplspaceApiGitHubToken): replit.goval.api.ReplspaceApiGitHubToken;
11461
+
11462
+ /**
11463
+ * Encodes the specified ReplspaceApiGitHubToken message. Does not implicitly {@link replit.goval.api.ReplspaceApiGitHubToken.verify|verify} messages.
11464
+ * @param message ReplspaceApiGitHubToken message or plain object to encode
11465
+ * @param [writer] Writer to encode to
11466
+ * @returns Writer
11467
+ */
11468
+ public static encode(message: replit.goval.api.ReplspaceApiGitHubToken, writer?: $protobuf.Writer): $protobuf.Writer;
11469
+
11470
+ /**
11471
+ * Encodes the specified ReplspaceApiGitHubToken message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiGitHubToken.verify|verify} messages.
11472
+ * @param message ReplspaceApiGitHubToken message or plain object to encode
11473
+ * @param [writer] Writer to encode to
11474
+ * @returns Writer
11475
+ */
11476
+ public static encodeDelimited(message: replit.goval.api.ReplspaceApiGitHubToken, writer?: $protobuf.Writer): $protobuf.Writer;
11477
+
11478
+ /**
11479
+ * Decodes a ReplspaceApiGitHubToken message from the specified reader or buffer.
11480
+ * @param reader Reader or buffer to decode from
11481
+ * @param [length] Message length if known beforehand
11482
+ * @returns ReplspaceApiGitHubToken
11483
+ * @throws {Error} If the payload is not a reader or valid buffer
11484
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11485
+ */
11486
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplspaceApiGitHubToken;
11487
+
11488
+ /**
11489
+ * Decodes a ReplspaceApiGitHubToken message from the specified reader or buffer, length delimited.
11490
+ * @param reader Reader or buffer to decode from
11491
+ * @returns ReplspaceApiGitHubToken
11492
+ * @throws {Error} If the payload is not a reader or valid buffer
11493
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11494
+ */
11495
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplspaceApiGitHubToken;
11496
+
11497
+ /**
11498
+ * Verifies a ReplspaceApiGitHubToken message.
11499
+ * @param message Plain object to verify
11500
+ * @returns `null` if valid, otherwise the reason why it is not
11501
+ */
11502
+ public static verify(message: { [k: string]: any }): (string|null);
11503
+
11504
+ /**
11505
+ * Creates a ReplspaceApiGitHubToken message from a plain object. Also converts values to their respective internal types.
11506
+ * @param object Plain object
11507
+ * @returns ReplspaceApiGitHubToken
11508
+ */
11509
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplspaceApiGitHubToken;
11510
+
11511
+ /**
11512
+ * Creates a plain object from a ReplspaceApiGitHubToken message. Also converts values to other types if specified.
11513
+ * @param message ReplspaceApiGitHubToken
11514
+ * @param [options] Conversion options
11515
+ * @returns Plain object
11516
+ */
11517
+ public static toObject(message: replit.goval.api.ReplspaceApiGitHubToken, options?: $protobuf.IConversionOptions): { [k: string]: any };
11518
+
11519
+ /**
11520
+ * Converts this ReplspaceApiGitHubToken to JSON.
11521
+ * @returns JSON object
11522
+ */
11523
+ public toJSON(): { [k: string]: any };
11524
+ }
11525
+
11118
11526
  /** Properties of an UpdateSessionTimestamp. */
11119
11527
  interface IUpdateSessionTimestamp {
11120
11528
  }