@replit/protocol 0.4.12 → 0.4.14

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# ADDED
@@ -0,0 +1,36 @@
1
+ # Developing
2
+ * Change goval/api/types.proto
3
+ * In this directory:
4
+ * `npm run build`
5
+ * Change repl-it-web/package.json:
6
+ ```
7
+ "@replit/protocol": "^0.4.9",
8
+ ```
9
+ to
10
+ ```
11
+ "@replit/protocol": "file:../goval/api/npm",
12
+ ```
13
+ * Also change repl-it-web/shared/package.json:
14
+ ```
15
+ "@replit/protocol": "^0.4.9",
16
+ ```
17
+ to
18
+ ```
19
+ "@replit/protocol": "file:../../goval/api/npm",
20
+ ```
21
+
22
+ # Publishing
23
+
24
+ After your `.proto` changes are merged:
25
+ - create a new branch
26
+ - cd into `api/npm`
27
+ - `npm --no-git-tag-version version <new-version>`
28
+ - submit a pull request
29
+ - merged
30
+ - pull latest `main`
31
+ - cd into `api/npm`
32
+ - `npm login` if you're not authed (will need to be in our npm org)
33
+ - `npm publish`
34
+ - it will run a build
35
+ - you be asked for 2fa
36
+ - package will be published
package/main/index.d.ts CHANGED
@@ -23606,6 +23606,9 @@ export namespace replit {
23606
23606
 
23607
23607
  /** ReplspaceApiSSHTokenGetRequest replid */
23608
23608
  replid?: (string|null);
23609
+
23610
+ /** ReplspaceApiSSHTokenGetRequest before */
23611
+ before?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
23609
23612
  }
23610
23613
 
23611
23614
  /** Represents a ReplspaceApiSSHTokenGetRequest. */
@@ -23623,6 +23626,9 @@ export namespace replit {
23623
23626
  /** ReplspaceApiSSHTokenGetRequest replid. */
23624
23627
  public replid: string;
23625
23628
 
23629
+ /** ReplspaceApiSSHTokenGetRequest before. */
23630
+ public before?: (google.protobuf.Timestamp|null);
23631
+
23626
23632
  /**
23627
23633
  * Creates a new ReplspaceApiSSHTokenGetRequest instance using the specified properties.
23628
23634
  * @param [properties] Properties to set
@@ -29135,6 +29141,9 @@ export namespace replit {
29135
29141
 
29136
29142
  /** ReplToken before */
29137
29143
  before?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
29144
+
29145
+ /** ReplToken chamberSecrets */
29146
+ chamberSecrets?: ((replit.goval.api.chamber.ChamberSecretName|replit.goval.api.chamber.IChamberSecretName)[]|null);
29138
29147
  }
29139
29148
 
29140
29149
  /** Represents a ReplToken. */
@@ -29206,6 +29215,9 @@ export namespace replit {
29206
29215
  /** ReplToken before. */
29207
29216
  public before?: (google.protobuf.Timestamp|null);
29208
29217
 
29218
+ /** ReplToken chamberSecrets. */
29219
+ public chamberSecrets: replit.goval.api.chamber.ChamberSecretName[];
29220
+
29209
29221
  /** ReplToken metadata. */
29210
29222
  public metadata?: ("repl"|"id"|"classroom");
29211
29223
 
@@ -31587,12 +31599,6 @@ export namespace replit {
31587
31599
 
31588
31600
  /** CreateReplRequest sourceRepl */
31589
31601
  sourceRepl?: (replit.goval.api.lore.CreateReplRequest.SourceRepl|replit.goval.api.lore.CreateReplRequest.ISourceRepl|null);
31590
-
31591
- /** CreateReplRequest sourceFiles */
31592
- sourceFiles?: (replit.goval.api.lore.CreateReplRequest.SourceFiles|replit.goval.api.lore.CreateReplRequest.ISourceFiles|null);
31593
-
31594
- /** CreateReplRequest overrideFilesBucket */
31595
- overrideFilesBucket?: (string|null);
31596
31602
  }
31597
31603
 
31598
31604
  /** Represents a CreateReplRequest. */
@@ -31619,18 +31625,9 @@ export namespace replit {
31619
31625
  /** CreateReplRequest sourceRepl. */
31620
31626
  public sourceRepl?: (replit.goval.api.lore.CreateReplRequest.SourceRepl|null);
31621
31627
 
31622
- /** CreateReplRequest sourceFiles. */
31623
- public sourceFiles?: (replit.goval.api.lore.CreateReplRequest.SourceFiles|null);
31624
-
31625
- /** CreateReplRequest overrideFilesBucket. */
31626
- public overrideFilesBucket: string;
31627
-
31628
31628
  /** CreateReplRequest location. */
31629
31629
  public location?: ("cluster"|"continent");
31630
31630
 
31631
- /** CreateReplRequest source. */
31632
- public source?: ("sourceRepl"|"sourceFiles");
31633
-
31634
31631
  /**
31635
31632
  * Creates a new CreateReplRequest instance using the specified properties.
31636
31633
  * @param [properties] Properties to set
@@ -31917,103 +31914,6 @@ export namespace replit {
31917
31914
  public static getTypeUrl(typeUrlPrefix?: string): string;
31918
31915
  }
31919
31916
 
31920
- /** Properties of a SourceFiles. */
31921
- interface ISourceFiles {
31922
-
31923
- /** SourceFiles files */
31924
- files?: ((replit.goval.api.lore.CreateReplRequest.File|replit.goval.api.lore.CreateReplRequest.IFile)[]|null);
31925
- }
31926
-
31927
- /** Represents a SourceFiles. */
31928
- class SourceFiles {
31929
-
31930
- /**
31931
- * Constructs a new SourceFiles.
31932
- * @param [properties] Properties to set
31933
- */
31934
- private constructor(properties?: replit.goval.api.lore.CreateReplRequest.ISourceFiles);
31935
-
31936
- /** SourceFiles files. */
31937
- public files: replit.goval.api.lore.CreateReplRequest.File[];
31938
-
31939
- /**
31940
- * Creates a new SourceFiles instance using the specified properties.
31941
- * @param [properties] Properties to set
31942
- * @returns SourceFiles instance
31943
- */
31944
- public static create(properties?: replit.goval.api.lore.CreateReplRequest.ISourceFiles): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31945
-
31946
- /**
31947
- * Encodes the specified SourceFiles message. Does not implicitly {@link replit.goval.api.lore.CreateReplRequest.SourceFiles.verify|verify} messages.
31948
- * @param message SourceFiles message or plain object to encode
31949
- * @param [writer] Writer to encode to
31950
- * @returns Writer
31951
- */
31952
- public static encode(message: replit.goval.api.lore.CreateReplRequest.SourceFiles, writer?: $protobuf.Writer): $protobuf.Writer;
31953
-
31954
- /**
31955
- * Encodes the specified SourceFiles message, length delimited. Does not implicitly {@link replit.goval.api.lore.CreateReplRequest.SourceFiles.verify|verify} messages.
31956
- * @param message SourceFiles message or plain object to encode
31957
- * @param [writer] Writer to encode to
31958
- * @returns Writer
31959
- */
31960
- public static encodeDelimited(message: replit.goval.api.lore.CreateReplRequest.SourceFiles, writer?: $protobuf.Writer): $protobuf.Writer;
31961
-
31962
- /**
31963
- * Decodes a SourceFiles message from the specified reader or buffer.
31964
- * @param reader Reader or buffer to decode from
31965
- * @param [length] Message length if known beforehand
31966
- * @returns SourceFiles
31967
- * @throws {Error} If the payload is not a reader or valid buffer
31968
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
31969
- */
31970
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31971
-
31972
- /**
31973
- * Decodes a SourceFiles message from the specified reader or buffer, length delimited.
31974
- * @param reader Reader or buffer to decode from
31975
- * @returns SourceFiles
31976
- * @throws {Error} If the payload is not a reader or valid buffer
31977
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
31978
- */
31979
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31980
-
31981
- /**
31982
- * Verifies a SourceFiles message.
31983
- * @param message Plain object to verify
31984
- * @returns `null` if valid, otherwise the reason why it is not
31985
- */
31986
- public static verify(message: { [k: string]: any }): (string|null);
31987
-
31988
- /**
31989
- * Creates a SourceFiles message from a plain object. Also converts values to their respective internal types.
31990
- * @param object Plain object
31991
- * @returns SourceFiles
31992
- */
31993
- public static fromObject(object: { [k: string]: any }): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31994
-
31995
- /**
31996
- * Creates a plain object from a SourceFiles message. Also converts values to other types if specified.
31997
- * @param message SourceFiles
31998
- * @param [options] Conversion options
31999
- * @returns Plain object
32000
- */
32001
- public static toObject(message: replit.goval.api.lore.CreateReplRequest.SourceFiles, options?: $protobuf.IConversionOptions): { [k: string]: any };
32002
-
32003
- /**
32004
- * Converts this SourceFiles to JSON.
32005
- * @returns JSON object
32006
- */
32007
- public toJSON(): { [k: string]: any };
32008
-
32009
- /**
32010
- * Gets the default type url for SourceFiles
32011
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
32012
- * @returns The default type url
32013
- */
32014
- public static getTypeUrl(typeUrlPrefix?: string): string;
32015
- }
32016
-
32017
31917
  /** Properties of a Buckets. */
32018
31918
  interface IBuckets {
32019
31919
 
@@ -37736,6 +37636,219 @@ export namespace replit {
37736
37636
  */
37737
37637
  public static getTypeUrl(typeUrlPrefix?: string): string;
37738
37638
  }
37639
+
37640
+ /** Namespace chamber. */
37641
+ namespace chamber {
37642
+
37643
+ /** Properties of an OrgSecret. */
37644
+ interface IOrgSecret {
37645
+
37646
+ /** OrgSecret orgId */
37647
+ orgId?: (string|null);
37648
+
37649
+ /** OrgSecret name */
37650
+ name?: (string|null);
37651
+
37652
+ /** OrgSecret version */
37653
+ version?: (string|null);
37654
+ }
37655
+
37656
+ /** Represents an OrgSecret. */
37657
+ class OrgSecret {
37658
+
37659
+ /**
37660
+ * Constructs a new OrgSecret.
37661
+ * @param [properties] Properties to set
37662
+ */
37663
+ private constructor(properties?: replit.goval.api.chamber.IOrgSecret);
37664
+
37665
+ /** OrgSecret orgId. */
37666
+ public orgId: string;
37667
+
37668
+ /** OrgSecret name. */
37669
+ public name: string;
37670
+
37671
+ /** OrgSecret version. */
37672
+ public version: string;
37673
+
37674
+ /**
37675
+ * Creates a new OrgSecret instance using the specified properties.
37676
+ * @param [properties] Properties to set
37677
+ * @returns OrgSecret instance
37678
+ */
37679
+ public static create(properties?: replit.goval.api.chamber.IOrgSecret): replit.goval.api.chamber.OrgSecret;
37680
+
37681
+ /**
37682
+ * Encodes the specified OrgSecret message. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
37683
+ * @param message OrgSecret message or plain object to encode
37684
+ * @param [writer] Writer to encode to
37685
+ * @returns Writer
37686
+ */
37687
+ public static encode(message: replit.goval.api.chamber.OrgSecret, writer?: $protobuf.Writer): $protobuf.Writer;
37688
+
37689
+ /**
37690
+ * Encodes the specified OrgSecret message, length delimited. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
37691
+ * @param message OrgSecret message or plain object to encode
37692
+ * @param [writer] Writer to encode to
37693
+ * @returns Writer
37694
+ */
37695
+ public static encodeDelimited(message: replit.goval.api.chamber.OrgSecret, writer?: $protobuf.Writer): $protobuf.Writer;
37696
+
37697
+ /**
37698
+ * Decodes an OrgSecret message from the specified reader or buffer.
37699
+ * @param reader Reader or buffer to decode from
37700
+ * @param [length] Message length if known beforehand
37701
+ * @returns OrgSecret
37702
+ * @throws {Error} If the payload is not a reader or valid buffer
37703
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37704
+ */
37705
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.chamber.OrgSecret;
37706
+
37707
+ /**
37708
+ * Decodes an OrgSecret message from the specified reader or buffer, length delimited.
37709
+ * @param reader Reader or buffer to decode from
37710
+ * @returns OrgSecret
37711
+ * @throws {Error} If the payload is not a reader or valid buffer
37712
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37713
+ */
37714
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.chamber.OrgSecret;
37715
+
37716
+ /**
37717
+ * Verifies an OrgSecret message.
37718
+ * @param message Plain object to verify
37719
+ * @returns `null` if valid, otherwise the reason why it is not
37720
+ */
37721
+ public static verify(message: { [k: string]: any }): (string|null);
37722
+
37723
+ /**
37724
+ * Creates an OrgSecret message from a plain object. Also converts values to their respective internal types.
37725
+ * @param object Plain object
37726
+ * @returns OrgSecret
37727
+ */
37728
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.chamber.OrgSecret;
37729
+
37730
+ /**
37731
+ * Creates a plain object from an OrgSecret message. Also converts values to other types if specified.
37732
+ * @param message OrgSecret
37733
+ * @param [options] Conversion options
37734
+ * @returns Plain object
37735
+ */
37736
+ public static toObject(message: replit.goval.api.chamber.OrgSecret, options?: $protobuf.IConversionOptions): { [k: string]: any };
37737
+
37738
+ /**
37739
+ * Converts this OrgSecret to JSON.
37740
+ * @returns JSON object
37741
+ */
37742
+ public toJSON(): { [k: string]: any };
37743
+
37744
+ /**
37745
+ * Gets the default type url for OrgSecret
37746
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
37747
+ * @returns The default type url
37748
+ */
37749
+ public static getTypeUrl(typeUrlPrefix?: string): string;
37750
+ }
37751
+
37752
+ /** Properties of a ChamberSecretName. */
37753
+ interface IChamberSecretName {
37754
+
37755
+ /** ChamberSecretName orgSecret */
37756
+ orgSecret?: (replit.goval.api.chamber.OrgSecret|replit.goval.api.chamber.IOrgSecret|null);
37757
+ }
37758
+
37759
+ /** Represents a ChamberSecretName. */
37760
+ class ChamberSecretName {
37761
+
37762
+ /**
37763
+ * Constructs a new ChamberSecretName.
37764
+ * @param [properties] Properties to set
37765
+ */
37766
+ private constructor(properties?: replit.goval.api.chamber.IChamberSecretName);
37767
+
37768
+ /** ChamberSecretName orgSecret. */
37769
+ public orgSecret?: (replit.goval.api.chamber.OrgSecret|null);
37770
+
37771
+ /** ChamberSecretName secretType. */
37772
+ public secretType?: "orgSecret";
37773
+
37774
+ /**
37775
+ * Creates a new ChamberSecretName instance using the specified properties.
37776
+ * @param [properties] Properties to set
37777
+ * @returns ChamberSecretName instance
37778
+ */
37779
+ public static create(properties?: replit.goval.api.chamber.IChamberSecretName): replit.goval.api.chamber.ChamberSecretName;
37780
+
37781
+ /**
37782
+ * Encodes the specified ChamberSecretName message. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
37783
+ * @param message ChamberSecretName message or plain object to encode
37784
+ * @param [writer] Writer to encode to
37785
+ * @returns Writer
37786
+ */
37787
+ public static encode(message: replit.goval.api.chamber.ChamberSecretName, writer?: $protobuf.Writer): $protobuf.Writer;
37788
+
37789
+ /**
37790
+ * Encodes the specified ChamberSecretName message, length delimited. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
37791
+ * @param message ChamberSecretName message or plain object to encode
37792
+ * @param [writer] Writer to encode to
37793
+ * @returns Writer
37794
+ */
37795
+ public static encodeDelimited(message: replit.goval.api.chamber.ChamberSecretName, writer?: $protobuf.Writer): $protobuf.Writer;
37796
+
37797
+ /**
37798
+ * Decodes a ChamberSecretName message from the specified reader or buffer.
37799
+ * @param reader Reader or buffer to decode from
37800
+ * @param [length] Message length if known beforehand
37801
+ * @returns ChamberSecretName
37802
+ * @throws {Error} If the payload is not a reader or valid buffer
37803
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37804
+ */
37805
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.chamber.ChamberSecretName;
37806
+
37807
+ /**
37808
+ * Decodes a ChamberSecretName message from the specified reader or buffer, length delimited.
37809
+ * @param reader Reader or buffer to decode from
37810
+ * @returns ChamberSecretName
37811
+ * @throws {Error} If the payload is not a reader or valid buffer
37812
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37813
+ */
37814
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.chamber.ChamberSecretName;
37815
+
37816
+ /**
37817
+ * Verifies a ChamberSecretName message.
37818
+ * @param message Plain object to verify
37819
+ * @returns `null` if valid, otherwise the reason why it is not
37820
+ */
37821
+ public static verify(message: { [k: string]: any }): (string|null);
37822
+
37823
+ /**
37824
+ * Creates a ChamberSecretName message from a plain object. Also converts values to their respective internal types.
37825
+ * @param object Plain object
37826
+ * @returns ChamberSecretName
37827
+ */
37828
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.chamber.ChamberSecretName;
37829
+
37830
+ /**
37831
+ * Creates a plain object from a ChamberSecretName message. Also converts values to other types if specified.
37832
+ * @param message ChamberSecretName
37833
+ * @param [options] Conversion options
37834
+ * @returns Plain object
37835
+ */
37836
+ public static toObject(message: replit.goval.api.chamber.ChamberSecretName, options?: $protobuf.IConversionOptions): { [k: string]: any };
37837
+
37838
+ /**
37839
+ * Converts this ChamberSecretName to JSON.
37840
+ * @returns JSON object
37841
+ */
37842
+ public toJSON(): { [k: string]: any };
37843
+
37844
+ /**
37845
+ * Gets the default type url for ChamberSecretName
37846
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
37847
+ * @returns The default type url
37848
+ */
37849
+ public static getTypeUrl(typeUrlPrefix?: string): string;
37850
+ }
37851
+ }
37739
37852
  }
37740
37853
  }
37741
37854
  }