@replit/protocol 0.2.55 → 0.2.56

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.
@@ -95,7 +95,7 @@ declare var npm$namespace$api: {|
95
95
  IOTTransformSelectionRequest: Class<api$IOTTransformSelectionRequest>,
96
96
  IOTTransformSelectionResponse: Class<api$IOTTransformSelectionResponse>,
97
97
  IOTPacket: Class<api$IOTPacket>,
98
- IOTRuneTransformOp: Class<api$IOTRuneTransformOp>,
98
+ IOTOpComponent: Class<api$IOTOpComponent>,
99
99
  IOTStatus: Class<api$IOTStatus>,
100
100
  IOTCursor: Class<api$IOTCursor>,
101
101
  IChatMessage: Class<api$IChatMessage>,
@@ -117,6 +117,7 @@ declare var npm$namespace$api: {|
117
117
  IPackageAdd: Class<api$IPackageAdd>,
118
118
  IPackageRemove: Class<api$IPackageRemove>,
119
119
  IPackageInstall: Class<api$IPackageInstall>,
120
+ IPackageInstallResponse: Class<api$IPackageInstallResponse>,
120
121
  IPackageListSpecfile: Class<api$IPackageListSpecfile>,
121
122
  IPackageListSpecfileResp: Class<api$IPackageListSpecfileResp>,
122
123
  IPackageCacheSave: Class<api$IPackageCacheSave>,
@@ -263,7 +264,7 @@ declare var npm$namespace$api: {|
263
264
  OTTransformSelectionRequest: typeof api$OTTransformSelectionRequest,
264
265
  OTTransformSelectionResponse: typeof api$OTTransformSelectionResponse,
265
266
  OTPacket: typeof api$OTPacket,
266
- OTRuneTransformOp: typeof api$OTRuneTransformOp,
267
+ OTOpComponent: typeof api$OTOpComponent,
267
268
  OTStatus: typeof api$OTStatus,
268
269
  OTCursor: typeof api$OTCursor,
269
270
  ChatMessage: typeof api$ChatMessage,
@@ -285,6 +286,7 @@ declare var npm$namespace$api: {|
285
286
  PackageAdd: typeof api$PackageAdd,
286
287
  PackageRemove: typeof api$PackageRemove,
287
288
  PackageInstall: typeof api$PackageInstall,
289
+ PackageInstallResponse: typeof api$PackageInstallResponse,
288
290
  PackageListSpecfile: typeof api$PackageListSpecfile,
289
291
  PackageListSpecfileResp: typeof api$PackageListSpecfileResp,
290
292
  PackageCacheSave: typeof api$PackageCacheSave,
@@ -887,6 +889,14 @@ declare type api$ICommand = {|
887
889
  */
888
890
  packageInstall?: api$PackageInstall | api$IPackageInstall | null,
889
891
 
892
+ /**
893
+ * Command packageInstallResponse
894
+ */
895
+ packageInstallResponse?:
896
+ | api$PackageInstallResponse
897
+ | api$IPackageInstallResponse
898
+ | null,
899
+
890
900
  /**
891
901
  * Command packageListSpecfile
892
902
  */
@@ -1701,6 +1711,11 @@ declare class api$Command {
1701
1711
  */
1702
1712
  packageInstall?: api$PackageInstall | null;
1703
1713
 
1714
+ /**
1715
+ * Command packageInstallResponse.
1716
+ */
1717
+ packageInstallResponse?: api$PackageInstallResponse | null;
1718
+
1704
1719
  /**
1705
1720
  * Command packageListSpecfile.
1706
1721
  */
@@ -2054,6 +2069,7 @@ declare class api$Command {
2054
2069
  | "packageAdd"
2055
2070
  | "packageRemove"
2056
2071
  | "packageInstall"
2072
+ | "packageInstallResponse"
2057
2073
  | "packageListSpecfile"
2058
2074
  | "packageListSpecfileResp"
2059
2075
  | "packageCacheSave"
@@ -12377,9 +12393,9 @@ declare type api$IOTPacket = {|
12377
12393
  version?: number | null,
12378
12394
 
12379
12395
  /**
12380
- * OTPacket ops
12396
+ * OTPacket op
12381
12397
  */
12382
- ops?: (api$OTRuneTransformOp | api$IOTRuneTransformOp)[] | null,
12398
+ op?: (api$OTOpComponent | api$IOTOpComponent)[] | null,
12383
12399
 
12384
12400
  /**
12385
12401
  * OTPacket crc32
@@ -12423,9 +12439,9 @@ declare class api$OTPacket {
12423
12439
  version: number;
12424
12440
 
12425
12441
  /**
12426
- * OTPacket ops.
12442
+ * OTPacket op.
12427
12443
  */
12428
- ops: api$OTRuneTransformOp[];
12444
+ op: api$OTOpComponent[];
12429
12445
 
12430
12446
  /**
12431
12447
  * OTPacket crc32.
@@ -12539,110 +12555,110 @@ declare class api$OTPacket {
12539
12555
  }
12540
12556
 
12541
12557
  /**
12542
- * Properties of a OTRuneTransformOp.
12558
+ * Properties of a OTOpComponent.
12543
12559
  */
12544
- declare type api$IOTRuneTransformOp = {|
12560
+ declare type api$IOTOpComponent = {|
12545
12561
  /**
12546
- * OTRuneTransformOp skip
12562
+ * OTOpComponent skip
12547
12563
  */
12548
12564
  skip?: number | null,
12549
12565
 
12550
12566
  /**
12551
- * OTRuneTransformOp delete
12567
+ * OTOpComponent delete
12552
12568
  */
12553
12569
  delete?: number | null,
12554
12570
 
12555
12571
  /**
12556
- * OTRuneTransformOp insert
12572
+ * OTOpComponent insert
12557
12573
  */
12558
12574
  insert?: string | null,
12559
12575
  |};
12560
12576
 
12561
12577
  /**
12562
- * Represents a OTRuneTransformOp.
12578
+ * Represents a OTOpComponent.
12563
12579
  */
12564
- declare class api$OTRuneTransformOp {
12580
+ declare class api$OTOpComponent {
12565
12581
  /**
12566
- * Constructs a new OTRuneTransformOp.
12582
+ * Constructs a new OTOpComponent.
12567
12583
  * @param [properties] Properties to set
12568
12584
  */
12569
- constructor(properties?: api$IOTRuneTransformOp): this;
12585
+ constructor(properties?: api$IOTOpComponent): this;
12570
12586
 
12571
12587
  /**
12572
- * OTRuneTransformOp skip.
12588
+ * OTOpComponent skip.
12573
12589
  */
12574
12590
  skip?: number | null;
12575
12591
 
12576
12592
  /**
12577
- * OTRuneTransformOp delete.
12593
+ * OTOpComponent delete.
12578
12594
  */
12579
12595
  delete?: number | null;
12580
12596
 
12581
12597
  /**
12582
- * OTRuneTransformOp insert.
12598
+ * OTOpComponent insert.
12583
12599
  */
12584
12600
  insert?: string | null;
12585
12601
 
12586
12602
  /**
12587
- * OTRuneTransformOp op.
12603
+ * OTOpComponent opComponent.
12588
12604
  */
12589
- op?: "skip" | "delete" | "insert";
12605
+ opComponent?: "skip" | "delete" | "insert";
12590
12606
 
12591
12607
  /**
12592
- * Creates a new OTRuneTransformOp instance using the specified properties.
12608
+ * Creates a new OTOpComponent instance using the specified properties.
12593
12609
  * @param [properties] Properties to set
12594
- * @returns OTRuneTransformOp instance
12610
+ * @returns OTOpComponent instance
12595
12611
  */
12596
- static create(properties?: api$IOTRuneTransformOp): api$OTRuneTransformOp;
12612
+ static create(properties?: api$IOTOpComponent): api$OTOpComponent;
12597
12613
 
12598
12614
  /**
12599
12615
  * [object Object],[object Object],[object Object]
12600
- * @param message OTRuneTransformOp message or plain object to encode
12616
+ * @param message OTOpComponent message or plain object to encode
12601
12617
  * @param [writer] Writer to encode to
12602
12618
  * @returns Writer
12603
12619
  */
12604
12620
  static encode(
12605
- message: api$OTRuneTransformOp,
12621
+ message: api$OTOpComponent,
12606
12622
  writer?: $protobuf.Writer
12607
12623
  ): $protobuf.Writer;
12608
12624
 
12609
12625
  /**
12610
12626
  * [object Object],[object Object],[object Object]
12611
- * @param message OTRuneTransformOp message or plain object to encode
12627
+ * @param message OTOpComponent message or plain object to encode
12612
12628
  * @param [writer] Writer to encode to
12613
12629
  * @returns Writer
12614
12630
  */
12615
12631
  static encodeDelimited(
12616
- message: api$OTRuneTransformOp,
12632
+ message: api$OTOpComponent,
12617
12633
  writer?: $protobuf.Writer
12618
12634
  ): $protobuf.Writer;
12619
12635
 
12620
12636
  /**
12621
- * Decodes a OTRuneTransformOp message from the specified reader or buffer.
12637
+ * Decodes a OTOpComponent message from the specified reader or buffer.
12622
12638
  * @param reader Reader or buffer to decode from
12623
12639
  * @param [length] Message length if known beforehand
12624
- * @returns OTRuneTransformOp
12640
+ * @returns OTOpComponent
12625
12641
  * @throws {Error} If the payload is not a reader or valid buffer
12626
12642
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12627
12643
  */
12628
12644
  static decode(
12629
12645
  reader: $protobuf.Reader | Uint8Array,
12630
12646
  length?: number
12631
- ): api$OTRuneTransformOp;
12647
+ ): api$OTOpComponent;
12632
12648
 
12633
12649
  /**
12634
- * Decodes a OTRuneTransformOp message from the specified reader or buffer, length delimited.
12650
+ * Decodes a OTOpComponent message from the specified reader or buffer, length delimited.
12635
12651
  * @param reader Reader or buffer to decode from
12636
- * @returns OTRuneTransformOp
12652
+ * @returns OTOpComponent
12637
12653
  * @throws {Error} If the payload is not a reader or valid buffer
12638
12654
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12639
12655
  */
12640
12656
  static decodeDelimited(
12641
12657
  reader: $protobuf.Reader | Uint8Array
12642
- ): api$OTRuneTransformOp;
12658
+ ): api$OTOpComponent;
12643
12659
 
12644
12660
  /**
12645
- * Verifies a OTRuneTransformOp message.
12661
+ * Verifies a OTOpComponent message.
12646
12662
  * @param message Plain object to verify
12647
12663
  * @returns `null` if valid, otherwise the reason why it is not
12648
12664
  */
@@ -12651,29 +12667,29 @@ declare class api$OTRuneTransformOp {
12651
12667
  |}): string | null;
12652
12668
 
12653
12669
  /**
12654
- * Creates a OTRuneTransformOp message from a plain object. Also converts values to their respective internal types.
12670
+ * Creates a OTOpComponent message from a plain object. Also converts values to their respective internal types.
12655
12671
  * @param object Plain object
12656
- * @returns OTRuneTransformOp
12672
+ * @returns OTOpComponent
12657
12673
  */
12658
12674
  static fromObject(object: {|
12659
12675
  [k: string]: any,
12660
- |}): api$OTRuneTransformOp;
12676
+ |}): api$OTOpComponent;
12661
12677
 
12662
12678
  /**
12663
- * Creates a plain object from a OTRuneTransformOp message. Also converts values to other types if specified.
12664
- * @param message OTRuneTransformOp
12679
+ * Creates a plain object from a OTOpComponent message. Also converts values to other types if specified.
12680
+ * @param message OTOpComponent
12665
12681
  * @param [options] Conversion options
12666
12682
  * @returns Plain object
12667
12683
  */
12668
12684
  static toObject(
12669
- message: api$OTRuneTransformOp,
12685
+ message: api$OTOpComponent,
12670
12686
  options?: $protobuf.IConversionOptions
12671
12687
  ): {|
12672
12688
  [k: string]: any,
12673
12689
  |};
12674
12690
 
12675
12691
  /**
12676
- * Converts this OTRuneTransformOp to JSON.
12692
+ * Converts this OTOpComponent to JSON.
12677
12693
  * @returns JSON object
12678
12694
  */
12679
12695
  toJSON(): {|
@@ -15360,6 +15376,11 @@ declare type api$IPackageInstall = {|
15360
15376
  * PackageInstall fromHosting
15361
15377
  */
15362
15378
  fromHosting?: boolean | null,
15379
+
15380
+ /**
15381
+ * PackageInstall useNewResponse
15382
+ */
15383
+ useNewResponse?: boolean | null,
15363
15384
  |};
15364
15385
 
15365
15386
  /**
@@ -15377,6 +15398,11 @@ declare class api$PackageInstall {
15377
15398
  */
15378
15399
  fromHosting: boolean;
15379
15400
 
15401
+ /**
15402
+ * PackageInstall useNewResponse.
15403
+ */
15404
+ useNewResponse: boolean;
15405
+
15380
15406
  /**
15381
15407
  * Creates a new PackageInstall instance using the specified properties.
15382
15408
  * @param [properties] Properties to set
@@ -15470,6 +15496,126 @@ declare class api$PackageInstall {
15470
15496
  |};
15471
15497
  }
15472
15498
 
15499
+ /**
15500
+ * Properties of a PackageInstallResponse.
15501
+ */
15502
+ declare type api$IPackageInstallResponse = {|
15503
+ /**
15504
+ * PackageInstallResponse guessedPkgs
15505
+ */
15506
+ guessedPkgs?: string[] | null,
15507
+ |};
15508
+
15509
+ /**
15510
+ * Represents a PackageInstallResponse.
15511
+ */
15512
+ declare class api$PackageInstallResponse {
15513
+ /**
15514
+ * Constructs a new PackageInstallResponse.
15515
+ * @param [properties] Properties to set
15516
+ */
15517
+ constructor(properties?: api$IPackageInstallResponse): this;
15518
+
15519
+ /**
15520
+ * PackageInstallResponse guessedPkgs.
15521
+ */
15522
+ guessedPkgs: string[];
15523
+
15524
+ /**
15525
+ * Creates a new PackageInstallResponse instance using the specified properties.
15526
+ * @param [properties] Properties to set
15527
+ * @returns PackageInstallResponse instance
15528
+ */
15529
+ static create(
15530
+ properties?: api$IPackageInstallResponse
15531
+ ): api$PackageInstallResponse;
15532
+
15533
+ /**
15534
+ * [object Object],[object Object],[object Object]
15535
+ * @param message PackageInstallResponse message or plain object to encode
15536
+ * @param [writer] Writer to encode to
15537
+ * @returns Writer
15538
+ */
15539
+ static encode(
15540
+ message: api$PackageInstallResponse,
15541
+ writer?: $protobuf.Writer
15542
+ ): $protobuf.Writer;
15543
+
15544
+ /**
15545
+ * [object Object],[object Object],[object Object]
15546
+ * @param message PackageInstallResponse message or plain object to encode
15547
+ * @param [writer] Writer to encode to
15548
+ * @returns Writer
15549
+ */
15550
+ static encodeDelimited(
15551
+ message: api$PackageInstallResponse,
15552
+ writer?: $protobuf.Writer
15553
+ ): $protobuf.Writer;
15554
+
15555
+ /**
15556
+ * Decodes a PackageInstallResponse message from the specified reader or buffer.
15557
+ * @param reader Reader or buffer to decode from
15558
+ * @param [length] Message length if known beforehand
15559
+ * @returns PackageInstallResponse
15560
+ * @throws {Error} If the payload is not a reader or valid buffer
15561
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15562
+ */
15563
+ static decode(
15564
+ reader: $protobuf.Reader | Uint8Array,
15565
+ length?: number
15566
+ ): api$PackageInstallResponse;
15567
+
15568
+ /**
15569
+ * Decodes a PackageInstallResponse message from the specified reader or buffer, length delimited.
15570
+ * @param reader Reader or buffer to decode from
15571
+ * @returns PackageInstallResponse
15572
+ * @throws {Error} If the payload is not a reader or valid buffer
15573
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15574
+ */
15575
+ static decodeDelimited(
15576
+ reader: $protobuf.Reader | Uint8Array
15577
+ ): api$PackageInstallResponse;
15578
+
15579
+ /**
15580
+ * Verifies a PackageInstallResponse message.
15581
+ * @param message Plain object to verify
15582
+ * @returns `null` if valid, otherwise the reason why it is not
15583
+ */
15584
+ static verify(message: {|
15585
+ [k: string]: any,
15586
+ |}): string | null;
15587
+
15588
+ /**
15589
+ * Creates a PackageInstallResponse message from a plain object. Also converts values to their respective internal types.
15590
+ * @param object Plain object
15591
+ * @returns PackageInstallResponse
15592
+ */
15593
+ static fromObject(object: {|
15594
+ [k: string]: any,
15595
+ |}): api$PackageInstallResponse;
15596
+
15597
+ /**
15598
+ * Creates a plain object from a PackageInstallResponse message. Also converts values to other types if specified.
15599
+ * @param message PackageInstallResponse
15600
+ * @param [options] Conversion options
15601
+ * @returns Plain object
15602
+ */
15603
+ static toObject(
15604
+ message: api$PackageInstallResponse,
15605
+ options?: $protobuf.IConversionOptions
15606
+ ): {|
15607
+ [k: string]: any,
15608
+ |};
15609
+
15610
+ /**
15611
+ * Converts this PackageInstallResponse to JSON.
15612
+ * @returns JSON object
15613
+ */
15614
+ toJSON(): {|
15615
+ [k: string]: any,
15616
+ |};
15617
+ }
15618
+
15473
15619
  /**
15474
15620
  * Properties of a PackageListSpecfile.
15475
15621
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.55",
3
+ "version": "0.2.56",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",