@replit/protocol 0.4.13 → 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
@@ -29141,6 +29141,9 @@ export namespace replit {
29141
29141
 
29142
29142
  /** ReplToken before */
29143
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);
29144
29147
  }
29145
29148
 
29146
29149
  /** Represents a ReplToken. */
@@ -29212,6 +29215,9 @@ export namespace replit {
29212
29215
  /** ReplToken before. */
29213
29216
  public before?: (google.protobuf.Timestamp|null);
29214
29217
 
29218
+ /** ReplToken chamberSecrets. */
29219
+ public chamberSecrets: replit.goval.api.chamber.ChamberSecretName[];
29220
+
29215
29221
  /** ReplToken metadata. */
29216
29222
  public metadata?: ("repl"|"id"|"classroom");
29217
29223
 
@@ -31593,12 +31599,6 @@ export namespace replit {
31593
31599
 
31594
31600
  /** CreateReplRequest sourceRepl */
31595
31601
  sourceRepl?: (replit.goval.api.lore.CreateReplRequest.SourceRepl|replit.goval.api.lore.CreateReplRequest.ISourceRepl|null);
31596
-
31597
- /** CreateReplRequest sourceFiles */
31598
- sourceFiles?: (replit.goval.api.lore.CreateReplRequest.SourceFiles|replit.goval.api.lore.CreateReplRequest.ISourceFiles|null);
31599
-
31600
- /** CreateReplRequest overrideFilesBucket */
31601
- overrideFilesBucket?: (string|null);
31602
31602
  }
31603
31603
 
31604
31604
  /** Represents a CreateReplRequest. */
@@ -31625,18 +31625,9 @@ export namespace replit {
31625
31625
  /** CreateReplRequest sourceRepl. */
31626
31626
  public sourceRepl?: (replit.goval.api.lore.CreateReplRequest.SourceRepl|null);
31627
31627
 
31628
- /** CreateReplRequest sourceFiles. */
31629
- public sourceFiles?: (replit.goval.api.lore.CreateReplRequest.SourceFiles|null);
31630
-
31631
- /** CreateReplRequest overrideFilesBucket. */
31632
- public overrideFilesBucket: string;
31633
-
31634
31628
  /** CreateReplRequest location. */
31635
31629
  public location?: ("cluster"|"continent");
31636
31630
 
31637
- /** CreateReplRequest source. */
31638
- public source?: ("sourceRepl"|"sourceFiles");
31639
-
31640
31631
  /**
31641
31632
  * Creates a new CreateReplRequest instance using the specified properties.
31642
31633
  * @param [properties] Properties to set
@@ -31923,103 +31914,6 @@ export namespace replit {
31923
31914
  public static getTypeUrl(typeUrlPrefix?: string): string;
31924
31915
  }
31925
31916
 
31926
- /** Properties of a SourceFiles. */
31927
- interface ISourceFiles {
31928
-
31929
- /** SourceFiles files */
31930
- files?: ((replit.goval.api.lore.CreateReplRequest.File|replit.goval.api.lore.CreateReplRequest.IFile)[]|null);
31931
- }
31932
-
31933
- /** Represents a SourceFiles. */
31934
- class SourceFiles {
31935
-
31936
- /**
31937
- * Constructs a new SourceFiles.
31938
- * @param [properties] Properties to set
31939
- */
31940
- private constructor(properties?: replit.goval.api.lore.CreateReplRequest.ISourceFiles);
31941
-
31942
- /** SourceFiles files. */
31943
- public files: replit.goval.api.lore.CreateReplRequest.File[];
31944
-
31945
- /**
31946
- * Creates a new SourceFiles instance using the specified properties.
31947
- * @param [properties] Properties to set
31948
- * @returns SourceFiles instance
31949
- */
31950
- public static create(properties?: replit.goval.api.lore.CreateReplRequest.ISourceFiles): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31951
-
31952
- /**
31953
- * Encodes the specified SourceFiles message. Does not implicitly {@link replit.goval.api.lore.CreateReplRequest.SourceFiles.verify|verify} messages.
31954
- * @param message SourceFiles message or plain object to encode
31955
- * @param [writer] Writer to encode to
31956
- * @returns Writer
31957
- */
31958
- public static encode(message: replit.goval.api.lore.CreateReplRequest.SourceFiles, writer?: $protobuf.Writer): $protobuf.Writer;
31959
-
31960
- /**
31961
- * Encodes the specified SourceFiles message, length delimited. Does not implicitly {@link replit.goval.api.lore.CreateReplRequest.SourceFiles.verify|verify} messages.
31962
- * @param message SourceFiles message or plain object to encode
31963
- * @param [writer] Writer to encode to
31964
- * @returns Writer
31965
- */
31966
- public static encodeDelimited(message: replit.goval.api.lore.CreateReplRequest.SourceFiles, writer?: $protobuf.Writer): $protobuf.Writer;
31967
-
31968
- /**
31969
- * Decodes a SourceFiles message from the specified reader or buffer.
31970
- * @param reader Reader or buffer to decode from
31971
- * @param [length] Message length if known beforehand
31972
- * @returns SourceFiles
31973
- * @throws {Error} If the payload is not a reader or valid buffer
31974
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
31975
- */
31976
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31977
-
31978
- /**
31979
- * Decodes a SourceFiles message from the specified reader or buffer, length delimited.
31980
- * @param reader Reader or buffer to decode from
31981
- * @returns SourceFiles
31982
- * @throws {Error} If the payload is not a reader or valid buffer
31983
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
31984
- */
31985
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.lore.CreateReplRequest.SourceFiles;
31986
-
31987
- /**
31988
- * Verifies a SourceFiles message.
31989
- * @param message Plain object to verify
31990
- * @returns `null` if valid, otherwise the reason why it is not
31991
- */
31992
- public static verify(message: { [k: string]: any }): (string|null);
31993
-
31994
- /**
31995
- * Creates a SourceFiles message from a plain object. Also converts values to their respective internal types.
31996
- * @param object Plain object
31997
- * @returns SourceFiles
31998
- */
31999
- public static fromObject(object: { [k: string]: any }): replit.goval.api.lore.CreateReplRequest.SourceFiles;
32000
-
32001
- /**
32002
- * Creates a plain object from a SourceFiles message. Also converts values to other types if specified.
32003
- * @param message SourceFiles
32004
- * @param [options] Conversion options
32005
- * @returns Plain object
32006
- */
32007
- public static toObject(message: replit.goval.api.lore.CreateReplRequest.SourceFiles, options?: $protobuf.IConversionOptions): { [k: string]: any };
32008
-
32009
- /**
32010
- * Converts this SourceFiles to JSON.
32011
- * @returns JSON object
32012
- */
32013
- public toJSON(): { [k: string]: any };
32014
-
32015
- /**
32016
- * Gets the default type url for SourceFiles
32017
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
32018
- * @returns The default type url
32019
- */
32020
- public static getTypeUrl(typeUrlPrefix?: string): string;
32021
- }
32022
-
32023
31917
  /** Properties of a Buckets. */
32024
31918
  interface IBuckets {
32025
31919
 
@@ -37742,6 +37636,219 @@ export namespace replit {
37742
37636
  */
37743
37637
  public static getTypeUrl(typeUrlPrefix?: string): string;
37744
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
+ }
37745
37852
  }
37746
37853
  }
37747
37854
  }