@replit/protocol 0.2.87 → 0.2.89

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.
@@ -127,6 +127,8 @@ declare var npm$namespace$replit$goval$api: {|
127
127
  IFileOpened: Class<replit$goval$api$IFileOpened>,
128
128
  IReplspaceApiOpenFile: Class<replit$goval$api$IReplspaceApiOpenFile>,
129
129
  IReplspaceApiCloseFile: Class<replit$goval$api$IReplspaceApiCloseFile>,
130
+ IReplspaceApiGetGitHubToken: Class<replit$goval$api$IReplspaceApiGetGitHubToken>,
131
+ IReplspaceApiGitHubToken: Class<replit$goval$api$IReplspaceApiGitHubToken>,
130
132
  IUpdateSessionTimestamp: Class<replit$goval$api$IUpdateSessionTimestamp>,
131
133
  ISessionTimestampUpdated: Class<replit$goval$api$ISessionTimestampUpdated>,
132
134
  IFollowUser: Class<replit$goval$api$IFollowUser>,
@@ -325,6 +327,8 @@ declare var npm$namespace$replit$goval$api: {|
325
327
  FileOpened: typeof replit$goval$api$FileOpened,
326
328
  ReplspaceApiOpenFile: typeof replit$goval$api$ReplspaceApiOpenFile,
327
329
  ReplspaceApiCloseFile: typeof replit$goval$api$ReplspaceApiCloseFile,
330
+ ReplspaceApiGetGitHubToken: typeof replit$goval$api$ReplspaceApiGetGitHubToken,
331
+ ReplspaceApiGitHubToken: typeof replit$goval$api$ReplspaceApiGitHubToken,
328
332
  UpdateSessionTimestamp: typeof replit$goval$api$UpdateSessionTimestamp,
329
333
  SessionTimestampUpdated: typeof replit$goval$api$SessionTimestampUpdated,
330
334
  FollowUser: typeof replit$goval$api$FollowUser,
@@ -1542,6 +1546,22 @@ declare type replit$goval$api$ICommand = {|
1542
1546
  | replit$goval$api$IReplspaceApiCloseFile
1543
1547
  | null,
1544
1548
 
1549
+ /**
1550
+ * Command replspaceApiGetGitHubToken
1551
+ */
1552
+ replspaceApiGetGitHubToken?:
1553
+ | replit$goval$api$ReplspaceApiGetGitHubToken
1554
+ | replit$goval$api$IReplspaceApiGetGitHubToken
1555
+ | null,
1556
+
1557
+ /**
1558
+ * Command replspaceApiGitHubToken
1559
+ */
1560
+ replspaceApiGitHubToken?:
1561
+ | replit$goval$api$ReplspaceApiGitHubToken
1562
+ | replit$goval$api$IReplspaceApiGitHubToken
1563
+ | null,
1564
+
1545
1565
  /**
1546
1566
  * Command ref
1547
1567
  */
@@ -2400,6 +2420,16 @@ declare class replit$goval$api$Command {
2400
2420
  */
2401
2421
  replspaceApiCloseFile?: replit$goval$api$ReplspaceApiCloseFile | null;
2402
2422
 
2423
+ /**
2424
+ * Command replspaceApiGetGitHubToken.
2425
+ */
2426
+ replspaceApiGetGitHubToken?: replit$goval$api$ReplspaceApiGetGitHubToken | null;
2427
+
2428
+ /**
2429
+ * Command replspaceApiGitHubToken.
2430
+ */
2431
+ replspaceApiGitHubToken?: replit$goval$api$ReplspaceApiGitHubToken | null;
2432
+
2403
2433
  /**
2404
2434
  * Command ref.
2405
2435
  */
@@ -2580,7 +2610,9 @@ declare class replit$goval$api$Command {
2580
2610
  | "nixPackageSearchResponse"
2581
2611
  | "userEvent"
2582
2612
  | "replspaceApiOpenFile"
2583
- | "replspaceApiCloseFile";
2613
+ | "replspaceApiCloseFile"
2614
+ | "replspaceApiGetGitHubToken"
2615
+ | "replspaceApiGitHubToken";
2584
2616
 
2585
2617
  /**
2586
2618
  * Creates a new Command instance using the specified properties.
@@ -16465,6 +16497,256 @@ declare class replit$goval$api$ReplspaceApiCloseFile {
16465
16497
  |};
16466
16498
  }
16467
16499
 
16500
+ /**
16501
+ * Properties of a ReplspaceApiGetGitHubToken.
16502
+ */
16503
+ declare type replit$goval$api$IReplspaceApiGetGitHubToken = {|
16504
+ /**
16505
+ * ReplspaceApiGetGitHubToken nonce
16506
+ */
16507
+ nonce?: string | null,
16508
+ |};
16509
+
16510
+ /**
16511
+ * Represents a ReplspaceApiGetGitHubToken.
16512
+ */
16513
+ declare class replit$goval$api$ReplspaceApiGetGitHubToken {
16514
+ /**
16515
+ * Constructs a new ReplspaceApiGetGitHubToken.
16516
+ * @param [properties] Properties to set
16517
+ */
16518
+ constructor(properties?: replit$goval$api$IReplspaceApiGetGitHubToken): this;
16519
+
16520
+ /**
16521
+ * ReplspaceApiGetGitHubToken nonce.
16522
+ */
16523
+ nonce: string;
16524
+
16525
+ /**
16526
+ * Creates a new ReplspaceApiGetGitHubToken instance using the specified properties.
16527
+ * @param [properties] Properties to set
16528
+ * @returns ReplspaceApiGetGitHubToken instance
16529
+ */
16530
+ static create(
16531
+ properties?: replit$goval$api$IReplspaceApiGetGitHubToken
16532
+ ): replit$goval$api$ReplspaceApiGetGitHubToken;
16533
+
16534
+ /**
16535
+ * [object Object],[object Object],[object Object]
16536
+ * @param message ReplspaceApiGetGitHubToken message or plain object to encode
16537
+ * @param [writer] Writer to encode to
16538
+ * @returns Writer
16539
+ */
16540
+ static encode(
16541
+ message: replit$goval$api$ReplspaceApiGetGitHubToken,
16542
+ writer?: $protobuf.Writer
16543
+ ): $protobuf.Writer;
16544
+
16545
+ /**
16546
+ * [object Object],[object Object],[object Object]
16547
+ * @param message ReplspaceApiGetGitHubToken message or plain object to encode
16548
+ * @param [writer] Writer to encode to
16549
+ * @returns Writer
16550
+ */
16551
+ static encodeDelimited(
16552
+ message: replit$goval$api$ReplspaceApiGetGitHubToken,
16553
+ writer?: $protobuf.Writer
16554
+ ): $protobuf.Writer;
16555
+
16556
+ /**
16557
+ * Decodes a ReplspaceApiGetGitHubToken message from the specified reader or buffer.
16558
+ * @param reader Reader or buffer to decode from
16559
+ * @param [length] Message length if known beforehand
16560
+ * @returns ReplspaceApiGetGitHubToken
16561
+ * @throws {Error} If the payload is not a reader or valid buffer
16562
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16563
+ */
16564
+ static decode(
16565
+ reader: $protobuf.Reader | Uint8Array,
16566
+ length?: number
16567
+ ): replit$goval$api$ReplspaceApiGetGitHubToken;
16568
+
16569
+ /**
16570
+ * Decodes a ReplspaceApiGetGitHubToken message from the specified reader or buffer, length delimited.
16571
+ * @param reader Reader or buffer to decode from
16572
+ * @returns ReplspaceApiGetGitHubToken
16573
+ * @throws {Error} If the payload is not a reader or valid buffer
16574
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16575
+ */
16576
+ static decodeDelimited(
16577
+ reader: $protobuf.Reader | Uint8Array
16578
+ ): replit$goval$api$ReplspaceApiGetGitHubToken;
16579
+
16580
+ /**
16581
+ * Verifies a ReplspaceApiGetGitHubToken message.
16582
+ * @param message Plain object to verify
16583
+ * @returns `null` if valid, otherwise the reason why it is not
16584
+ */
16585
+ static verify(message: {|
16586
+ [k: string]: any,
16587
+ |}): string | null;
16588
+
16589
+ /**
16590
+ * Creates a ReplspaceApiGetGitHubToken message from a plain object. Also converts values to their respective internal types.
16591
+ * @param object Plain object
16592
+ * @returns ReplspaceApiGetGitHubToken
16593
+ */
16594
+ static fromObject(object: {|
16595
+ [k: string]: any,
16596
+ |}): replit$goval$api$ReplspaceApiGetGitHubToken;
16597
+
16598
+ /**
16599
+ * Creates a plain object from a ReplspaceApiGetGitHubToken message. Also converts values to other types if specified.
16600
+ * @param message ReplspaceApiGetGitHubToken
16601
+ * @param [options] Conversion options
16602
+ * @returns Plain object
16603
+ */
16604
+ static toObject(
16605
+ message: replit$goval$api$ReplspaceApiGetGitHubToken,
16606
+ options?: $protobuf.IConversionOptions
16607
+ ): {|
16608
+ [k: string]: any,
16609
+ |};
16610
+
16611
+ /**
16612
+ * Converts this ReplspaceApiGetGitHubToken to JSON.
16613
+ * @returns JSON object
16614
+ */
16615
+ toJSON(): {|
16616
+ [k: string]: any,
16617
+ |};
16618
+ }
16619
+
16620
+ /**
16621
+ * Properties of a ReplspaceApiGitHubToken.
16622
+ */
16623
+ declare type replit$goval$api$IReplspaceApiGitHubToken = {|
16624
+ /**
16625
+ * ReplspaceApiGitHubToken nonce
16626
+ */
16627
+ nonce?: string | null,
16628
+
16629
+ /**
16630
+ * ReplspaceApiGitHubToken token
16631
+ */
16632
+ token?: string | null,
16633
+ |};
16634
+
16635
+ /**
16636
+ * Represents a ReplspaceApiGitHubToken.
16637
+ */
16638
+ declare class replit$goval$api$ReplspaceApiGitHubToken {
16639
+ /**
16640
+ * Constructs a new ReplspaceApiGitHubToken.
16641
+ * @param [properties] Properties to set
16642
+ */
16643
+ constructor(properties?: replit$goval$api$IReplspaceApiGitHubToken): this;
16644
+
16645
+ /**
16646
+ * ReplspaceApiGitHubToken nonce.
16647
+ */
16648
+ nonce: string;
16649
+
16650
+ /**
16651
+ * ReplspaceApiGitHubToken token.
16652
+ */
16653
+ token: string;
16654
+
16655
+ /**
16656
+ * Creates a new ReplspaceApiGitHubToken instance using the specified properties.
16657
+ * @param [properties] Properties to set
16658
+ * @returns ReplspaceApiGitHubToken instance
16659
+ */
16660
+ static create(
16661
+ properties?: replit$goval$api$IReplspaceApiGitHubToken
16662
+ ): replit$goval$api$ReplspaceApiGitHubToken;
16663
+
16664
+ /**
16665
+ * [object Object],[object Object],[object Object]
16666
+ * @param message ReplspaceApiGitHubToken message or plain object to encode
16667
+ * @param [writer] Writer to encode to
16668
+ * @returns Writer
16669
+ */
16670
+ static encode(
16671
+ message: replit$goval$api$ReplspaceApiGitHubToken,
16672
+ writer?: $protobuf.Writer
16673
+ ): $protobuf.Writer;
16674
+
16675
+ /**
16676
+ * [object Object],[object Object],[object Object]
16677
+ * @param message ReplspaceApiGitHubToken message or plain object to encode
16678
+ * @param [writer] Writer to encode to
16679
+ * @returns Writer
16680
+ */
16681
+ static encodeDelimited(
16682
+ message: replit$goval$api$ReplspaceApiGitHubToken,
16683
+ writer?: $protobuf.Writer
16684
+ ): $protobuf.Writer;
16685
+
16686
+ /**
16687
+ * Decodes a ReplspaceApiGitHubToken message from the specified reader or buffer.
16688
+ * @param reader Reader or buffer to decode from
16689
+ * @param [length] Message length if known beforehand
16690
+ * @returns ReplspaceApiGitHubToken
16691
+ * @throws {Error} If the payload is not a reader or valid buffer
16692
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16693
+ */
16694
+ static decode(
16695
+ reader: $protobuf.Reader | Uint8Array,
16696
+ length?: number
16697
+ ): replit$goval$api$ReplspaceApiGitHubToken;
16698
+
16699
+ /**
16700
+ * Decodes a ReplspaceApiGitHubToken message from the specified reader or buffer, length delimited.
16701
+ * @param reader Reader or buffer to decode from
16702
+ * @returns ReplspaceApiGitHubToken
16703
+ * @throws {Error} If the payload is not a reader or valid buffer
16704
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16705
+ */
16706
+ static decodeDelimited(
16707
+ reader: $protobuf.Reader | Uint8Array
16708
+ ): replit$goval$api$ReplspaceApiGitHubToken;
16709
+
16710
+ /**
16711
+ * Verifies a ReplspaceApiGitHubToken message.
16712
+ * @param message Plain object to verify
16713
+ * @returns `null` if valid, otherwise the reason why it is not
16714
+ */
16715
+ static verify(message: {|
16716
+ [k: string]: any,
16717
+ |}): string | null;
16718
+
16719
+ /**
16720
+ * Creates a ReplspaceApiGitHubToken message from a plain object. Also converts values to their respective internal types.
16721
+ * @param object Plain object
16722
+ * @returns ReplspaceApiGitHubToken
16723
+ */
16724
+ static fromObject(object: {|
16725
+ [k: string]: any,
16726
+ |}): replit$goval$api$ReplspaceApiGitHubToken;
16727
+
16728
+ /**
16729
+ * Creates a plain object from a ReplspaceApiGitHubToken message. Also converts values to other types if specified.
16730
+ * @param message ReplspaceApiGitHubToken
16731
+ * @param [options] Conversion options
16732
+ * @returns Plain object
16733
+ */
16734
+ static toObject(
16735
+ message: replit$goval$api$ReplspaceApiGitHubToken,
16736
+ options?: $protobuf.IConversionOptions
16737
+ ): {|
16738
+ [k: string]: any,
16739
+ |};
16740
+
16741
+ /**
16742
+ * Converts this ReplspaceApiGitHubToken to JSON.
16743
+ * @returns JSON object
16744
+ */
16745
+ toJSON(): {|
16746
+ [k: string]: any,
16747
+ |};
16748
+ }
16749
+
16468
16750
  /**
16469
16751
  * Properties of an UpdateSessionTimestamp.
16470
16752
  */
@@ -28748,6 +29030,11 @@ declare type replit$goval$api$IClusterTransfer = {|
28748
29030
  */
28749
29031
  newClusterId?: string | null,
28750
29032
 
29033
+ /**
29034
+ * ClusterTransfer newContinentId
29035
+ */
29036
+ newContinentId?: string | null,
29037
+
28751
29038
  /**
28752
29039
  * ClusterTransfer transferId
28753
29040
  */
@@ -28777,13 +29064,23 @@ declare class replit$goval$api$ClusterTransfer {
28777
29064
  /**
28778
29065
  * ClusterTransfer newClusterId.
28779
29066
  */
28780
- newClusterId: string;
29067
+ newClusterId?: string | null;
29068
+
29069
+ /**
29070
+ * ClusterTransfer newContinentId.
29071
+ */
29072
+ newContinentId?: string | null;
28781
29073
 
28782
29074
  /**
28783
29075
  * ClusterTransfer transferId.
28784
29076
  */
28785
29077
  transferId: string;
28786
29078
 
29079
+ /**
29080
+ * ClusterTransfer location.
29081
+ */
29082
+ location?: "newClusterId" | "newContinentId";
29083
+
28787
29084
  /**
28788
29085
  * Creates a new ClusterTransfer instance using the specified properties.
28789
29086
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.87",
3
+ "version": "0.2.89",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",