@replit/protocol 0.3.52 → 0.3.53
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/main/index.d.ts +240 -0
- package/main/index.js +677 -2
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -21804,6 +21804,9 @@ export namespace replit {
|
|
|
21804
21804
|
|
|
21805
21805
|
/** NixModulesChanged buildOutput */
|
|
21806
21806
|
buildOutput?: (string|null);
|
|
21807
|
+
|
|
21808
|
+
/** NixModulesChanged modulesV2 */
|
|
21809
|
+
modulesV2?: ((replit.goval.api.NixModuleConfigModuleEntry|replit.goval.api.INixModuleConfigModuleEntry)[]|null);
|
|
21807
21810
|
}
|
|
21808
21811
|
|
|
21809
21812
|
/** Represents a NixModulesChanged. */
|
|
@@ -21824,6 +21827,9 @@ export namespace replit {
|
|
|
21824
21827
|
/** NixModulesChanged buildOutput. */
|
|
21825
21828
|
public buildOutput: string;
|
|
21826
21829
|
|
|
21830
|
+
/** NixModulesChanged modulesV2. */
|
|
21831
|
+
public modulesV2: replit.goval.api.NixModuleConfigModuleEntry[];
|
|
21832
|
+
|
|
21827
21833
|
/**
|
|
21828
21834
|
* Creates a new NixModulesChanged instance using the specified properties.
|
|
21829
21835
|
* @param [properties] Properties to set
|
|
@@ -23303,6 +23309,9 @@ export namespace replit {
|
|
|
23303
23309
|
|
|
23304
23310
|
/** NixModuleConfigGetResponse values */
|
|
23305
23311
|
values?: ((replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue)[]|null);
|
|
23312
|
+
|
|
23313
|
+
/** NixModuleConfigGetResponse modules */
|
|
23314
|
+
modules?: ((replit.goval.api.NixModuleConfigModuleEntry|replit.goval.api.INixModuleConfigModuleEntry)[]|null);
|
|
23306
23315
|
}
|
|
23307
23316
|
|
|
23308
23317
|
/** Represents a NixModuleConfigGetResponse. */
|
|
@@ -23317,6 +23326,9 @@ export namespace replit {
|
|
|
23317
23326
|
/** NixModuleConfigGetResponse values. */
|
|
23318
23327
|
public values: replit.goval.api.NixModuleConfigValue[];
|
|
23319
23328
|
|
|
23329
|
+
/** NixModuleConfigGetResponse modules. */
|
|
23330
|
+
public modules: replit.goval.api.NixModuleConfigModuleEntry[];
|
|
23331
|
+
|
|
23320
23332
|
/**
|
|
23321
23333
|
* Creates a new NixModuleConfigGetResponse instance using the specified properties.
|
|
23322
23334
|
* @param [properties] Properties to set
|
|
@@ -23400,6 +23412,9 @@ export namespace replit {
|
|
|
23400
23412
|
|
|
23401
23413
|
/** NixModuleConfigSetRequest values */
|
|
23402
23414
|
values?: ((replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue)[]|null);
|
|
23415
|
+
|
|
23416
|
+
/** NixModuleConfigSetRequest modules */
|
|
23417
|
+
modules?: ((replit.goval.api.NixModuleConfigModuleEntry|replit.goval.api.INixModuleConfigModuleEntry)[]|null);
|
|
23403
23418
|
}
|
|
23404
23419
|
|
|
23405
23420
|
/** Represents a NixModuleConfigSetRequest. */
|
|
@@ -23414,6 +23429,9 @@ export namespace replit {
|
|
|
23414
23429
|
/** NixModuleConfigSetRequest values. */
|
|
23415
23430
|
public values: replit.goval.api.NixModuleConfigValue[];
|
|
23416
23431
|
|
|
23432
|
+
/** NixModuleConfigSetRequest modules. */
|
|
23433
|
+
public modules: replit.goval.api.NixModuleConfigModuleEntry[];
|
|
23434
|
+
|
|
23417
23435
|
/**
|
|
23418
23436
|
* Creates a new NixModuleConfigSetRequest instance using the specified properties.
|
|
23419
23437
|
* @param [properties] Properties to set
|
|
@@ -23604,6 +23622,109 @@ export namespace replit {
|
|
|
23604
23622
|
}
|
|
23605
23623
|
}
|
|
23606
23624
|
|
|
23625
|
+
/** Properties of a NixModuleConfigModuleEntry. */
|
|
23626
|
+
interface INixModuleConfigModuleEntry {
|
|
23627
|
+
|
|
23628
|
+
/** NixModuleConfigModuleEntry id */
|
|
23629
|
+
id?: (string|null);
|
|
23630
|
+
|
|
23631
|
+
/** NixModuleConfigModuleEntry values */
|
|
23632
|
+
values?: ((replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue)[]|null);
|
|
23633
|
+
}
|
|
23634
|
+
|
|
23635
|
+
/** Represents a NixModuleConfigModuleEntry. */
|
|
23636
|
+
class NixModuleConfigModuleEntry {
|
|
23637
|
+
|
|
23638
|
+
/**
|
|
23639
|
+
* Constructs a new NixModuleConfigModuleEntry.
|
|
23640
|
+
* @param [properties] Properties to set
|
|
23641
|
+
*/
|
|
23642
|
+
private constructor(properties?: replit.goval.api.INixModuleConfigModuleEntry);
|
|
23643
|
+
|
|
23644
|
+
/** NixModuleConfigModuleEntry id. */
|
|
23645
|
+
public id: string;
|
|
23646
|
+
|
|
23647
|
+
/** NixModuleConfigModuleEntry values. */
|
|
23648
|
+
public values: replit.goval.api.NixModuleConfigValue[];
|
|
23649
|
+
|
|
23650
|
+
/**
|
|
23651
|
+
* Creates a new NixModuleConfigModuleEntry instance using the specified properties.
|
|
23652
|
+
* @param [properties] Properties to set
|
|
23653
|
+
* @returns NixModuleConfigModuleEntry instance
|
|
23654
|
+
*/
|
|
23655
|
+
public static create(properties?: replit.goval.api.INixModuleConfigModuleEntry): replit.goval.api.NixModuleConfigModuleEntry;
|
|
23656
|
+
|
|
23657
|
+
/**
|
|
23658
|
+
* Encodes the specified NixModuleConfigModuleEntry message. Does not implicitly {@link replit.goval.api.NixModuleConfigModuleEntry.verify|verify} messages.
|
|
23659
|
+
* @param message NixModuleConfigModuleEntry message or plain object to encode
|
|
23660
|
+
* @param [writer] Writer to encode to
|
|
23661
|
+
* @returns Writer
|
|
23662
|
+
*/
|
|
23663
|
+
public static encode(message: replit.goval.api.NixModuleConfigModuleEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23664
|
+
|
|
23665
|
+
/**
|
|
23666
|
+
* Encodes the specified NixModuleConfigModuleEntry message, length delimited. Does not implicitly {@link replit.goval.api.NixModuleConfigModuleEntry.verify|verify} messages.
|
|
23667
|
+
* @param message NixModuleConfigModuleEntry message or plain object to encode
|
|
23668
|
+
* @param [writer] Writer to encode to
|
|
23669
|
+
* @returns Writer
|
|
23670
|
+
*/
|
|
23671
|
+
public static encodeDelimited(message: replit.goval.api.NixModuleConfigModuleEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23672
|
+
|
|
23673
|
+
/**
|
|
23674
|
+
* Decodes a NixModuleConfigModuleEntry message from the specified reader or buffer.
|
|
23675
|
+
* @param reader Reader or buffer to decode from
|
|
23676
|
+
* @param [length] Message length if known beforehand
|
|
23677
|
+
* @returns NixModuleConfigModuleEntry
|
|
23678
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23679
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23680
|
+
*/
|
|
23681
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.NixModuleConfigModuleEntry;
|
|
23682
|
+
|
|
23683
|
+
/**
|
|
23684
|
+
* Decodes a NixModuleConfigModuleEntry message from the specified reader or buffer, length delimited.
|
|
23685
|
+
* @param reader Reader or buffer to decode from
|
|
23686
|
+
* @returns NixModuleConfigModuleEntry
|
|
23687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23689
|
+
*/
|
|
23690
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.NixModuleConfigModuleEntry;
|
|
23691
|
+
|
|
23692
|
+
/**
|
|
23693
|
+
* Verifies a NixModuleConfigModuleEntry message.
|
|
23694
|
+
* @param message Plain object to verify
|
|
23695
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
23696
|
+
*/
|
|
23697
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
23698
|
+
|
|
23699
|
+
/**
|
|
23700
|
+
* Creates a NixModuleConfigModuleEntry message from a plain object. Also converts values to their respective internal types.
|
|
23701
|
+
* @param object Plain object
|
|
23702
|
+
* @returns NixModuleConfigModuleEntry
|
|
23703
|
+
*/
|
|
23704
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.NixModuleConfigModuleEntry;
|
|
23705
|
+
|
|
23706
|
+
/**
|
|
23707
|
+
* Creates a plain object from a NixModuleConfigModuleEntry message. Also converts values to other types if specified.
|
|
23708
|
+
* @param message NixModuleConfigModuleEntry
|
|
23709
|
+
* @param [options] Conversion options
|
|
23710
|
+
* @returns Plain object
|
|
23711
|
+
*/
|
|
23712
|
+
public static toObject(message: replit.goval.api.NixModuleConfigModuleEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
23713
|
+
|
|
23714
|
+
/**
|
|
23715
|
+
* Converts this NixModuleConfigModuleEntry to JSON.
|
|
23716
|
+
* @returns JSON object
|
|
23717
|
+
*/
|
|
23718
|
+
public toJSON(): { [k: string]: any };
|
|
23719
|
+
|
|
23720
|
+
/**
|
|
23721
|
+
* Gets the default type url for NixModuleConfigModuleEntry
|
|
23722
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
23723
|
+
* @returns The default type url
|
|
23724
|
+
*/
|
|
23725
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
23726
|
+
}
|
|
23727
|
+
|
|
23607
23728
|
/** Properties of a NixModuleConfigValue. */
|
|
23608
23729
|
interface INixModuleConfigValue {
|
|
23609
23730
|
|
|
@@ -34757,6 +34878,9 @@ export namespace replit {
|
|
|
34757
34878
|
/** Repl user */
|
|
34758
34879
|
user?: (string|null);
|
|
34759
34880
|
|
|
34881
|
+
/** Repl org */
|
|
34882
|
+
org?: (replit.goval.api.repl.Org|replit.goval.api.repl.IOrg|null);
|
|
34883
|
+
|
|
34760
34884
|
/** Repl sourceRepl */
|
|
34761
34885
|
sourceRepl?: (string|null);
|
|
34762
34886
|
|
|
@@ -34803,6 +34927,9 @@ export namespace replit {
|
|
|
34803
34927
|
/** Repl user. */
|
|
34804
34928
|
public user: string;
|
|
34805
34929
|
|
|
34930
|
+
/** Repl org. */
|
|
34931
|
+
public org?: (replit.goval.api.repl.Org|null);
|
|
34932
|
+
|
|
34806
34933
|
/** Repl sourceRepl. */
|
|
34807
34934
|
public sourceRepl: string;
|
|
34808
34935
|
|
|
@@ -34902,6 +35029,119 @@ export namespace replit {
|
|
|
34902
35029
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
34903
35030
|
}
|
|
34904
35031
|
|
|
35032
|
+
/** Properties of an Org. */
|
|
35033
|
+
interface IOrg {
|
|
35034
|
+
|
|
35035
|
+
/** Org id */
|
|
35036
|
+
id?: (string|null);
|
|
35037
|
+
|
|
35038
|
+
/** Org type */
|
|
35039
|
+
type?: (replit.goval.api.repl.Org.OrgType|null);
|
|
35040
|
+
}
|
|
35041
|
+
|
|
35042
|
+
/** Represents an Org. */
|
|
35043
|
+
class Org {
|
|
35044
|
+
|
|
35045
|
+
/**
|
|
35046
|
+
* Constructs a new Org.
|
|
35047
|
+
* @param [properties] Properties to set
|
|
35048
|
+
*/
|
|
35049
|
+
private constructor(properties?: replit.goval.api.repl.IOrg);
|
|
35050
|
+
|
|
35051
|
+
/** Org id. */
|
|
35052
|
+
public id: string;
|
|
35053
|
+
|
|
35054
|
+
/** Org type. */
|
|
35055
|
+
public type: replit.goval.api.repl.Org.OrgType;
|
|
35056
|
+
|
|
35057
|
+
/**
|
|
35058
|
+
* Creates a new Org instance using the specified properties.
|
|
35059
|
+
* @param [properties] Properties to set
|
|
35060
|
+
* @returns Org instance
|
|
35061
|
+
*/
|
|
35062
|
+
public static create(properties?: replit.goval.api.repl.IOrg): replit.goval.api.repl.Org;
|
|
35063
|
+
|
|
35064
|
+
/**
|
|
35065
|
+
* Encodes the specified Org message. Does not implicitly {@link replit.goval.api.repl.Org.verify|verify} messages.
|
|
35066
|
+
* @param message Org message or plain object to encode
|
|
35067
|
+
* @param [writer] Writer to encode to
|
|
35068
|
+
* @returns Writer
|
|
35069
|
+
*/
|
|
35070
|
+
public static encode(message: replit.goval.api.repl.Org, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
35071
|
+
|
|
35072
|
+
/**
|
|
35073
|
+
* Encodes the specified Org message, length delimited. Does not implicitly {@link replit.goval.api.repl.Org.verify|verify} messages.
|
|
35074
|
+
* @param message Org message or plain object to encode
|
|
35075
|
+
* @param [writer] Writer to encode to
|
|
35076
|
+
* @returns Writer
|
|
35077
|
+
*/
|
|
35078
|
+
public static encodeDelimited(message: replit.goval.api.repl.Org, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
35079
|
+
|
|
35080
|
+
/**
|
|
35081
|
+
* Decodes an Org message from the specified reader or buffer.
|
|
35082
|
+
* @param reader Reader or buffer to decode from
|
|
35083
|
+
* @param [length] Message length if known beforehand
|
|
35084
|
+
* @returns Org
|
|
35085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35087
|
+
*/
|
|
35088
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.repl.Org;
|
|
35089
|
+
|
|
35090
|
+
/**
|
|
35091
|
+
* Decodes an Org message from the specified reader or buffer, length delimited.
|
|
35092
|
+
* @param reader Reader or buffer to decode from
|
|
35093
|
+
* @returns Org
|
|
35094
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35095
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35096
|
+
*/
|
|
35097
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.repl.Org;
|
|
35098
|
+
|
|
35099
|
+
/**
|
|
35100
|
+
* Verifies an Org message.
|
|
35101
|
+
* @param message Plain object to verify
|
|
35102
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
35103
|
+
*/
|
|
35104
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
35105
|
+
|
|
35106
|
+
/**
|
|
35107
|
+
* Creates an Org message from a plain object. Also converts values to their respective internal types.
|
|
35108
|
+
* @param object Plain object
|
|
35109
|
+
* @returns Org
|
|
35110
|
+
*/
|
|
35111
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.repl.Org;
|
|
35112
|
+
|
|
35113
|
+
/**
|
|
35114
|
+
* Creates a plain object from an Org message. Also converts values to other types if specified.
|
|
35115
|
+
* @param message Org
|
|
35116
|
+
* @param [options] Conversion options
|
|
35117
|
+
* @returns Plain object
|
|
35118
|
+
*/
|
|
35119
|
+
public static toObject(message: replit.goval.api.repl.Org, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
35120
|
+
|
|
35121
|
+
/**
|
|
35122
|
+
* Converts this Org to JSON.
|
|
35123
|
+
* @returns JSON object
|
|
35124
|
+
*/
|
|
35125
|
+
public toJSON(): { [k: string]: any };
|
|
35126
|
+
|
|
35127
|
+
/**
|
|
35128
|
+
* Gets the default type url for Org
|
|
35129
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
35130
|
+
* @returns The default type url
|
|
35131
|
+
*/
|
|
35132
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
35133
|
+
}
|
|
35134
|
+
|
|
35135
|
+
namespace Org {
|
|
35136
|
+
|
|
35137
|
+
/** OrgType enum. */
|
|
35138
|
+
enum OrgType {
|
|
35139
|
+
TYPE_UNSPECIFIED = 0,
|
|
35140
|
+
PERSONAL = 1,
|
|
35141
|
+
TEAM = 2
|
|
35142
|
+
}
|
|
35143
|
+
}
|
|
35144
|
+
|
|
34905
35145
|
/** Environment enum. */
|
|
34906
35146
|
enum Environment {
|
|
34907
35147
|
DEVELOPMENT = 0,
|
package/main/index.js
CHANGED
|
@@ -55291,6 +55291,7 @@
|
|
|
55291
55291
|
* @property {Array.<replit.goval.api.NixModule|replit.goval.api.INixModule>|null} [modules] NixModulesChanged modules
|
|
55292
55292
|
* @property {Array.<replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue>|null} [moduleConfigValues] NixModulesChanged moduleConfigValues
|
|
55293
55293
|
* @property {string|null} [buildOutput] NixModulesChanged buildOutput
|
|
55294
|
+
* @property {Array.<replit.goval.api.NixModuleConfigModuleEntry|replit.goval.api.INixModuleConfigModuleEntry>|null} [modulesV2] NixModulesChanged modulesV2
|
|
55294
55295
|
*/
|
|
55295
55296
|
|
|
55296
55297
|
/**
|
|
@@ -55303,6 +55304,7 @@
|
|
|
55303
55304
|
function NixModulesChanged(properties) {
|
|
55304
55305
|
this.modules = [];
|
|
55305
55306
|
this.moduleConfigValues = [];
|
|
55307
|
+
this.modulesV2 = [];
|
|
55306
55308
|
if (properties)
|
|
55307
55309
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55308
55310
|
if (properties[keys[i]] != null)
|
|
@@ -55333,6 +55335,14 @@
|
|
|
55333
55335
|
*/
|
|
55334
55336
|
NixModulesChanged.prototype.buildOutput = "";
|
|
55335
55337
|
|
|
55338
|
+
/**
|
|
55339
|
+
* NixModulesChanged modulesV2.
|
|
55340
|
+
* @member {Array.<replit.goval.api.NixModuleConfigModuleEntry>} modulesV2
|
|
55341
|
+
* @memberof replit.goval.api.NixModulesChanged
|
|
55342
|
+
* @instance
|
|
55343
|
+
*/
|
|
55344
|
+
NixModulesChanged.prototype.modulesV2 = $util.emptyArray;
|
|
55345
|
+
|
|
55336
55346
|
/**
|
|
55337
55347
|
* Creates a new NixModulesChanged instance using the specified properties.
|
|
55338
55348
|
* @function create
|
|
@@ -55365,6 +55375,9 @@
|
|
|
55365
55375
|
$root.replit.goval.api.NixModuleConfigValue.encode(message.moduleConfigValues[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
55366
55376
|
if (message.buildOutput != null && Object.hasOwnProperty.call(message, "buildOutput"))
|
|
55367
55377
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildOutput);
|
|
55378
|
+
if (message.modulesV2 != null && message.modulesV2.length)
|
|
55379
|
+
for (var i = 0; i < message.modulesV2.length; ++i)
|
|
55380
|
+
$root.replit.goval.api.NixModuleConfigModuleEntry.encode(message.modulesV2[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
55368
55381
|
return writer;
|
|
55369
55382
|
};
|
|
55370
55383
|
|
|
@@ -55415,6 +55428,12 @@
|
|
|
55415
55428
|
message.buildOutput = reader.string();
|
|
55416
55429
|
break;
|
|
55417
55430
|
}
|
|
55431
|
+
case 4: {
|
|
55432
|
+
if (!(message.modulesV2 && message.modulesV2.length))
|
|
55433
|
+
message.modulesV2 = [];
|
|
55434
|
+
message.modulesV2.push($root.replit.goval.api.NixModuleConfigModuleEntry.decode(reader, reader.uint32()));
|
|
55435
|
+
break;
|
|
55436
|
+
}
|
|
55418
55437
|
default:
|
|
55419
55438
|
reader.skipType(tag & 7);
|
|
55420
55439
|
break;
|
|
@@ -55471,6 +55490,15 @@
|
|
|
55471
55490
|
if (message.buildOutput != null && message.hasOwnProperty("buildOutput"))
|
|
55472
55491
|
if (!$util.isString(message.buildOutput))
|
|
55473
55492
|
return "buildOutput: string expected";
|
|
55493
|
+
if (message.modulesV2 != null && message.hasOwnProperty("modulesV2")) {
|
|
55494
|
+
if (!Array.isArray(message.modulesV2))
|
|
55495
|
+
return "modulesV2: array expected";
|
|
55496
|
+
for (var i = 0; i < message.modulesV2.length; ++i) {
|
|
55497
|
+
var error = $root.replit.goval.api.NixModuleConfigModuleEntry.verify(message.modulesV2[i]);
|
|
55498
|
+
if (error)
|
|
55499
|
+
return "modulesV2." + error;
|
|
55500
|
+
}
|
|
55501
|
+
}
|
|
55474
55502
|
return null;
|
|
55475
55503
|
};
|
|
55476
55504
|
|
|
@@ -55508,6 +55536,16 @@
|
|
|
55508
55536
|
}
|
|
55509
55537
|
if (object.buildOutput != null)
|
|
55510
55538
|
message.buildOutput = String(object.buildOutput);
|
|
55539
|
+
if (object.modulesV2) {
|
|
55540
|
+
if (!Array.isArray(object.modulesV2))
|
|
55541
|
+
throw TypeError(".replit.goval.api.NixModulesChanged.modulesV2: array expected");
|
|
55542
|
+
message.modulesV2 = [];
|
|
55543
|
+
for (var i = 0; i < object.modulesV2.length; ++i) {
|
|
55544
|
+
if (typeof object.modulesV2[i] !== "object")
|
|
55545
|
+
throw TypeError(".replit.goval.api.NixModulesChanged.modulesV2: object expected");
|
|
55546
|
+
message.modulesV2[i] = $root.replit.goval.api.NixModuleConfigModuleEntry.fromObject(object.modulesV2[i]);
|
|
55547
|
+
}
|
|
55548
|
+
}
|
|
55511
55549
|
return message;
|
|
55512
55550
|
};
|
|
55513
55551
|
|
|
@@ -55527,6 +55565,7 @@
|
|
|
55527
55565
|
if (options.arrays || options.defaults) {
|
|
55528
55566
|
object.modules = [];
|
|
55529
55567
|
object.moduleConfigValues = [];
|
|
55568
|
+
object.modulesV2 = [];
|
|
55530
55569
|
}
|
|
55531
55570
|
if (options.defaults)
|
|
55532
55571
|
object.buildOutput = "";
|
|
@@ -55542,6 +55581,11 @@
|
|
|
55542
55581
|
}
|
|
55543
55582
|
if (message.buildOutput != null && message.hasOwnProperty("buildOutput"))
|
|
55544
55583
|
object.buildOutput = message.buildOutput;
|
|
55584
|
+
if (message.modulesV2 && message.modulesV2.length) {
|
|
55585
|
+
object.modulesV2 = [];
|
|
55586
|
+
for (var j = 0; j < message.modulesV2.length; ++j)
|
|
55587
|
+
object.modulesV2[j] = $root.replit.goval.api.NixModuleConfigModuleEntry.toObject(message.modulesV2[j], options);
|
|
55588
|
+
}
|
|
55545
55589
|
return object;
|
|
55546
55590
|
};
|
|
55547
55591
|
|
|
@@ -59038,6 +59082,7 @@
|
|
|
59038
59082
|
* @memberof replit.goval.api
|
|
59039
59083
|
* @interface INixModuleConfigGetResponse
|
|
59040
59084
|
* @property {Array.<replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue>|null} [values] NixModuleConfigGetResponse values
|
|
59085
|
+
* @property {Array.<replit.goval.api.NixModuleConfigModuleEntry|replit.goval.api.INixModuleConfigModuleEntry>|null} [modules] NixModuleConfigGetResponse modules
|
|
59041
59086
|
*/
|
|
59042
59087
|
|
|
59043
59088
|
/**
|
|
@@ -59049,6 +59094,7 @@
|
|
|
59049
59094
|
*/
|
|
59050
59095
|
function NixModuleConfigGetResponse(properties) {
|
|
59051
59096
|
this.values = [];
|
|
59097
|
+
this.modules = [];
|
|
59052
59098
|
if (properties)
|
|
59053
59099
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59054
59100
|
if (properties[keys[i]] != null)
|
|
@@ -59063,6 +59109,14 @@
|
|
|
59063
59109
|
*/
|
|
59064
59110
|
NixModuleConfigGetResponse.prototype.values = $util.emptyArray;
|
|
59065
59111
|
|
|
59112
|
+
/**
|
|
59113
|
+
* NixModuleConfigGetResponse modules.
|
|
59114
|
+
* @member {Array.<replit.goval.api.NixModuleConfigModuleEntry>} modules
|
|
59115
|
+
* @memberof replit.goval.api.NixModuleConfigGetResponse
|
|
59116
|
+
* @instance
|
|
59117
|
+
*/
|
|
59118
|
+
NixModuleConfigGetResponse.prototype.modules = $util.emptyArray;
|
|
59119
|
+
|
|
59066
59120
|
/**
|
|
59067
59121
|
* Creates a new NixModuleConfigGetResponse instance using the specified properties.
|
|
59068
59122
|
* @function create
|
|
@@ -59090,6 +59144,9 @@
|
|
|
59090
59144
|
if (message.values != null && message.values.length)
|
|
59091
59145
|
for (var i = 0; i < message.values.length; ++i)
|
|
59092
59146
|
$root.replit.goval.api.NixModuleConfigValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59147
|
+
if (message.modules != null && message.modules.length)
|
|
59148
|
+
for (var i = 0; i < message.modules.length; ++i)
|
|
59149
|
+
$root.replit.goval.api.NixModuleConfigModuleEntry.encode(message.modules[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59093
59150
|
return writer;
|
|
59094
59151
|
};
|
|
59095
59152
|
|
|
@@ -59130,6 +59187,12 @@
|
|
|
59130
59187
|
message.values.push($root.replit.goval.api.NixModuleConfigValue.decode(reader, reader.uint32()));
|
|
59131
59188
|
break;
|
|
59132
59189
|
}
|
|
59190
|
+
case 2: {
|
|
59191
|
+
if (!(message.modules && message.modules.length))
|
|
59192
|
+
message.modules = [];
|
|
59193
|
+
message.modules.push($root.replit.goval.api.NixModuleConfigModuleEntry.decode(reader, reader.uint32()));
|
|
59194
|
+
break;
|
|
59195
|
+
}
|
|
59133
59196
|
default:
|
|
59134
59197
|
reader.skipType(tag & 7);
|
|
59135
59198
|
break;
|
|
@@ -59174,6 +59237,15 @@
|
|
|
59174
59237
|
return "values." + error;
|
|
59175
59238
|
}
|
|
59176
59239
|
}
|
|
59240
|
+
if (message.modules != null && message.hasOwnProperty("modules")) {
|
|
59241
|
+
if (!Array.isArray(message.modules))
|
|
59242
|
+
return "modules: array expected";
|
|
59243
|
+
for (var i = 0; i < message.modules.length; ++i) {
|
|
59244
|
+
var error = $root.replit.goval.api.NixModuleConfigModuleEntry.verify(message.modules[i]);
|
|
59245
|
+
if (error)
|
|
59246
|
+
return "modules." + error;
|
|
59247
|
+
}
|
|
59248
|
+
}
|
|
59177
59249
|
return null;
|
|
59178
59250
|
};
|
|
59179
59251
|
|
|
@@ -59199,6 +59271,16 @@
|
|
|
59199
59271
|
message.values[i] = $root.replit.goval.api.NixModuleConfigValue.fromObject(object.values[i]);
|
|
59200
59272
|
}
|
|
59201
59273
|
}
|
|
59274
|
+
if (object.modules) {
|
|
59275
|
+
if (!Array.isArray(object.modules))
|
|
59276
|
+
throw TypeError(".replit.goval.api.NixModuleConfigGetResponse.modules: array expected");
|
|
59277
|
+
message.modules = [];
|
|
59278
|
+
for (var i = 0; i < object.modules.length; ++i) {
|
|
59279
|
+
if (typeof object.modules[i] !== "object")
|
|
59280
|
+
throw TypeError(".replit.goval.api.NixModuleConfigGetResponse.modules: object expected");
|
|
59281
|
+
message.modules[i] = $root.replit.goval.api.NixModuleConfigModuleEntry.fromObject(object.modules[i]);
|
|
59282
|
+
}
|
|
59283
|
+
}
|
|
59202
59284
|
return message;
|
|
59203
59285
|
};
|
|
59204
59286
|
|
|
@@ -59215,13 +59297,20 @@
|
|
|
59215
59297
|
if (!options)
|
|
59216
59298
|
options = {};
|
|
59217
59299
|
var object = {};
|
|
59218
|
-
if (options.arrays || options.defaults)
|
|
59300
|
+
if (options.arrays || options.defaults) {
|
|
59219
59301
|
object.values = [];
|
|
59302
|
+
object.modules = [];
|
|
59303
|
+
}
|
|
59220
59304
|
if (message.values && message.values.length) {
|
|
59221
59305
|
object.values = [];
|
|
59222
59306
|
for (var j = 0; j < message.values.length; ++j)
|
|
59223
59307
|
object.values[j] = $root.replit.goval.api.NixModuleConfigValue.toObject(message.values[j], options);
|
|
59224
59308
|
}
|
|
59309
|
+
if (message.modules && message.modules.length) {
|
|
59310
|
+
object.modules = [];
|
|
59311
|
+
for (var j = 0; j < message.modules.length; ++j)
|
|
59312
|
+
object.modules[j] = $root.replit.goval.api.NixModuleConfigModuleEntry.toObject(message.modules[j], options);
|
|
59313
|
+
}
|
|
59225
59314
|
return object;
|
|
59226
59315
|
};
|
|
59227
59316
|
|
|
@@ -59261,6 +59350,7 @@
|
|
|
59261
59350
|
* @memberof replit.goval.api
|
|
59262
59351
|
* @interface INixModuleConfigSetRequest
|
|
59263
59352
|
* @property {Array.<replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue>|null} [values] NixModuleConfigSetRequest values
|
|
59353
|
+
* @property {Array.<replit.goval.api.NixModuleConfigModuleEntry|replit.goval.api.INixModuleConfigModuleEntry>|null} [modules] NixModuleConfigSetRequest modules
|
|
59264
59354
|
*/
|
|
59265
59355
|
|
|
59266
59356
|
/**
|
|
@@ -59272,6 +59362,7 @@
|
|
|
59272
59362
|
*/
|
|
59273
59363
|
function NixModuleConfigSetRequest(properties) {
|
|
59274
59364
|
this.values = [];
|
|
59365
|
+
this.modules = [];
|
|
59275
59366
|
if (properties)
|
|
59276
59367
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59277
59368
|
if (properties[keys[i]] != null)
|
|
@@ -59286,6 +59377,14 @@
|
|
|
59286
59377
|
*/
|
|
59287
59378
|
NixModuleConfigSetRequest.prototype.values = $util.emptyArray;
|
|
59288
59379
|
|
|
59380
|
+
/**
|
|
59381
|
+
* NixModuleConfigSetRequest modules.
|
|
59382
|
+
* @member {Array.<replit.goval.api.NixModuleConfigModuleEntry>} modules
|
|
59383
|
+
* @memberof replit.goval.api.NixModuleConfigSetRequest
|
|
59384
|
+
* @instance
|
|
59385
|
+
*/
|
|
59386
|
+
NixModuleConfigSetRequest.prototype.modules = $util.emptyArray;
|
|
59387
|
+
|
|
59289
59388
|
/**
|
|
59290
59389
|
* Creates a new NixModuleConfigSetRequest instance using the specified properties.
|
|
59291
59390
|
* @function create
|
|
@@ -59313,6 +59412,9 @@
|
|
|
59313
59412
|
if (message.values != null && message.values.length)
|
|
59314
59413
|
for (var i = 0; i < message.values.length; ++i)
|
|
59315
59414
|
$root.replit.goval.api.NixModuleConfigValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59415
|
+
if (message.modules != null && message.modules.length)
|
|
59416
|
+
for (var i = 0; i < message.modules.length; ++i)
|
|
59417
|
+
$root.replit.goval.api.NixModuleConfigModuleEntry.encode(message.modules[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59316
59418
|
return writer;
|
|
59317
59419
|
};
|
|
59318
59420
|
|
|
@@ -59353,6 +59455,12 @@
|
|
|
59353
59455
|
message.values.push($root.replit.goval.api.NixModuleConfigValue.decode(reader, reader.uint32()));
|
|
59354
59456
|
break;
|
|
59355
59457
|
}
|
|
59458
|
+
case 2: {
|
|
59459
|
+
if (!(message.modules && message.modules.length))
|
|
59460
|
+
message.modules = [];
|
|
59461
|
+
message.modules.push($root.replit.goval.api.NixModuleConfigModuleEntry.decode(reader, reader.uint32()));
|
|
59462
|
+
break;
|
|
59463
|
+
}
|
|
59356
59464
|
default:
|
|
59357
59465
|
reader.skipType(tag & 7);
|
|
59358
59466
|
break;
|
|
@@ -59397,6 +59505,15 @@
|
|
|
59397
59505
|
return "values." + error;
|
|
59398
59506
|
}
|
|
59399
59507
|
}
|
|
59508
|
+
if (message.modules != null && message.hasOwnProperty("modules")) {
|
|
59509
|
+
if (!Array.isArray(message.modules))
|
|
59510
|
+
return "modules: array expected";
|
|
59511
|
+
for (var i = 0; i < message.modules.length; ++i) {
|
|
59512
|
+
var error = $root.replit.goval.api.NixModuleConfigModuleEntry.verify(message.modules[i]);
|
|
59513
|
+
if (error)
|
|
59514
|
+
return "modules." + error;
|
|
59515
|
+
}
|
|
59516
|
+
}
|
|
59400
59517
|
return null;
|
|
59401
59518
|
};
|
|
59402
59519
|
|
|
@@ -59422,6 +59539,16 @@
|
|
|
59422
59539
|
message.values[i] = $root.replit.goval.api.NixModuleConfigValue.fromObject(object.values[i]);
|
|
59423
59540
|
}
|
|
59424
59541
|
}
|
|
59542
|
+
if (object.modules) {
|
|
59543
|
+
if (!Array.isArray(object.modules))
|
|
59544
|
+
throw TypeError(".replit.goval.api.NixModuleConfigSetRequest.modules: array expected");
|
|
59545
|
+
message.modules = [];
|
|
59546
|
+
for (var i = 0; i < object.modules.length; ++i) {
|
|
59547
|
+
if (typeof object.modules[i] !== "object")
|
|
59548
|
+
throw TypeError(".replit.goval.api.NixModuleConfigSetRequest.modules: object expected");
|
|
59549
|
+
message.modules[i] = $root.replit.goval.api.NixModuleConfigModuleEntry.fromObject(object.modules[i]);
|
|
59550
|
+
}
|
|
59551
|
+
}
|
|
59425
59552
|
return message;
|
|
59426
59553
|
};
|
|
59427
59554
|
|
|
@@ -59438,13 +59565,20 @@
|
|
|
59438
59565
|
if (!options)
|
|
59439
59566
|
options = {};
|
|
59440
59567
|
var object = {};
|
|
59441
|
-
if (options.arrays || options.defaults)
|
|
59568
|
+
if (options.arrays || options.defaults) {
|
|
59442
59569
|
object.values = [];
|
|
59570
|
+
object.modules = [];
|
|
59571
|
+
}
|
|
59443
59572
|
if (message.values && message.values.length) {
|
|
59444
59573
|
object.values = [];
|
|
59445
59574
|
for (var j = 0; j < message.values.length; ++j)
|
|
59446
59575
|
object.values[j] = $root.replit.goval.api.NixModuleConfigValue.toObject(message.values[j], options);
|
|
59447
59576
|
}
|
|
59577
|
+
if (message.modules && message.modules.length) {
|
|
59578
|
+
object.modules = [];
|
|
59579
|
+
for (var j = 0; j < message.modules.length; ++j)
|
|
59580
|
+
object.modules[j] = $root.replit.goval.api.NixModuleConfigModuleEntry.toObject(message.modules[j], options);
|
|
59581
|
+
}
|
|
59448
59582
|
return object;
|
|
59449
59583
|
};
|
|
59450
59584
|
|
|
@@ -59736,6 +59870,253 @@
|
|
|
59736
59870
|
return NixModuleConfigSetResponse;
|
|
59737
59871
|
})();
|
|
59738
59872
|
|
|
59873
|
+
api.NixModuleConfigModuleEntry = (function() {
|
|
59874
|
+
|
|
59875
|
+
/**
|
|
59876
|
+
* Properties of a NixModuleConfigModuleEntry.
|
|
59877
|
+
* @memberof replit.goval.api
|
|
59878
|
+
* @interface INixModuleConfigModuleEntry
|
|
59879
|
+
* @property {string|null} [id] NixModuleConfigModuleEntry id
|
|
59880
|
+
* @property {Array.<replit.goval.api.NixModuleConfigValue|replit.goval.api.INixModuleConfigValue>|null} [values] NixModuleConfigModuleEntry values
|
|
59881
|
+
*/
|
|
59882
|
+
|
|
59883
|
+
/**
|
|
59884
|
+
* Constructs a new NixModuleConfigModuleEntry.
|
|
59885
|
+
* @memberof replit.goval.api
|
|
59886
|
+
* @classdesc Represents a NixModuleConfigModuleEntry.
|
|
59887
|
+
* @constructor
|
|
59888
|
+
* @param {replit.goval.api.INixModuleConfigModuleEntry=} [properties] Properties to set
|
|
59889
|
+
*/
|
|
59890
|
+
function NixModuleConfigModuleEntry(properties) {
|
|
59891
|
+
this.values = [];
|
|
59892
|
+
if (properties)
|
|
59893
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59894
|
+
if (properties[keys[i]] != null)
|
|
59895
|
+
this[keys[i]] = properties[keys[i]];
|
|
59896
|
+
}
|
|
59897
|
+
|
|
59898
|
+
/**
|
|
59899
|
+
* NixModuleConfigModuleEntry id.
|
|
59900
|
+
* @member {string} id
|
|
59901
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59902
|
+
* @instance
|
|
59903
|
+
*/
|
|
59904
|
+
NixModuleConfigModuleEntry.prototype.id = "";
|
|
59905
|
+
|
|
59906
|
+
/**
|
|
59907
|
+
* NixModuleConfigModuleEntry values.
|
|
59908
|
+
* @member {Array.<replit.goval.api.NixModuleConfigValue>} values
|
|
59909
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59910
|
+
* @instance
|
|
59911
|
+
*/
|
|
59912
|
+
NixModuleConfigModuleEntry.prototype.values = $util.emptyArray;
|
|
59913
|
+
|
|
59914
|
+
/**
|
|
59915
|
+
* Creates a new NixModuleConfigModuleEntry instance using the specified properties.
|
|
59916
|
+
* @function create
|
|
59917
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59918
|
+
* @static
|
|
59919
|
+
* @param {replit.goval.api.INixModuleConfigModuleEntry=} [properties] Properties to set
|
|
59920
|
+
* @returns {replit.goval.api.NixModuleConfigModuleEntry} NixModuleConfigModuleEntry instance
|
|
59921
|
+
*/
|
|
59922
|
+
NixModuleConfigModuleEntry.create = function create(properties) {
|
|
59923
|
+
return NixModuleConfigModuleEntry.fromObject(properties);
|
|
59924
|
+
};
|
|
59925
|
+
|
|
59926
|
+
/**
|
|
59927
|
+
* Encodes the specified NixModuleConfigModuleEntry message. Does not implicitly {@link replit.goval.api.NixModuleConfigModuleEntry.verify|verify} messages.
|
|
59928
|
+
* @function encode
|
|
59929
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59930
|
+
* @static
|
|
59931
|
+
* @param {replit.goval.api.NixModuleConfigModuleEntry} message NixModuleConfigModuleEntry message or plain object to encode
|
|
59932
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59933
|
+
* @returns {$protobuf.Writer} Writer
|
|
59934
|
+
*/
|
|
59935
|
+
NixModuleConfigModuleEntry.encode = function encode(message, writer) {
|
|
59936
|
+
if (!writer)
|
|
59937
|
+
writer = $Writer.create();
|
|
59938
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
59939
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
59940
|
+
if (message.values != null && message.values.length)
|
|
59941
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
59942
|
+
$root.replit.goval.api.NixModuleConfigValue.encode(message.values[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59943
|
+
return writer;
|
|
59944
|
+
};
|
|
59945
|
+
|
|
59946
|
+
/**
|
|
59947
|
+
* Encodes the specified NixModuleConfigModuleEntry message, length delimited. Does not implicitly {@link replit.goval.api.NixModuleConfigModuleEntry.verify|verify} messages.
|
|
59948
|
+
* @function encodeDelimited
|
|
59949
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59950
|
+
* @static
|
|
59951
|
+
* @param {replit.goval.api.NixModuleConfigModuleEntry} message NixModuleConfigModuleEntry message or plain object to encode
|
|
59952
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59953
|
+
* @returns {$protobuf.Writer} Writer
|
|
59954
|
+
*/
|
|
59955
|
+
NixModuleConfigModuleEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59956
|
+
return this.encode(message, writer).ldelim();
|
|
59957
|
+
};
|
|
59958
|
+
|
|
59959
|
+
/**
|
|
59960
|
+
* Decodes a NixModuleConfigModuleEntry message from the specified reader or buffer.
|
|
59961
|
+
* @function decode
|
|
59962
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59963
|
+
* @static
|
|
59964
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59965
|
+
* @param {number} [length] Message length if known beforehand
|
|
59966
|
+
* @returns {replit.goval.api.NixModuleConfigModuleEntry} NixModuleConfigModuleEntry
|
|
59967
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59968
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59969
|
+
*/
|
|
59970
|
+
NixModuleConfigModuleEntry.decode = function decode(reader, length) {
|
|
59971
|
+
if (!(reader instanceof $Reader))
|
|
59972
|
+
reader = $Reader.create(reader);
|
|
59973
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.NixModuleConfigModuleEntry();
|
|
59974
|
+
while (reader.pos < end) {
|
|
59975
|
+
var tag = reader.uint32();
|
|
59976
|
+
switch (tag >>> 3) {
|
|
59977
|
+
case 1: {
|
|
59978
|
+
message.id = reader.string();
|
|
59979
|
+
break;
|
|
59980
|
+
}
|
|
59981
|
+
case 2: {
|
|
59982
|
+
if (!(message.values && message.values.length))
|
|
59983
|
+
message.values = [];
|
|
59984
|
+
message.values.push($root.replit.goval.api.NixModuleConfigValue.decode(reader, reader.uint32()));
|
|
59985
|
+
break;
|
|
59986
|
+
}
|
|
59987
|
+
default:
|
|
59988
|
+
reader.skipType(tag & 7);
|
|
59989
|
+
break;
|
|
59990
|
+
}
|
|
59991
|
+
}
|
|
59992
|
+
return message;
|
|
59993
|
+
};
|
|
59994
|
+
|
|
59995
|
+
/**
|
|
59996
|
+
* Decodes a NixModuleConfigModuleEntry message from the specified reader or buffer, length delimited.
|
|
59997
|
+
* @function decodeDelimited
|
|
59998
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
59999
|
+
* @static
|
|
60000
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60001
|
+
* @returns {replit.goval.api.NixModuleConfigModuleEntry} NixModuleConfigModuleEntry
|
|
60002
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60003
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60004
|
+
*/
|
|
60005
|
+
NixModuleConfigModuleEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
60006
|
+
if (!(reader instanceof $Reader))
|
|
60007
|
+
reader = new $Reader(reader);
|
|
60008
|
+
return this.decode(reader, reader.uint32());
|
|
60009
|
+
};
|
|
60010
|
+
|
|
60011
|
+
/**
|
|
60012
|
+
* Verifies a NixModuleConfigModuleEntry message.
|
|
60013
|
+
* @function verify
|
|
60014
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
60015
|
+
* @static
|
|
60016
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60017
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60018
|
+
*/
|
|
60019
|
+
NixModuleConfigModuleEntry.verify = function verify(message) {
|
|
60020
|
+
if (typeof message !== "object" || message === null)
|
|
60021
|
+
return "object expected";
|
|
60022
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
60023
|
+
if (!$util.isString(message.id))
|
|
60024
|
+
return "id: string expected";
|
|
60025
|
+
if (message.values != null && message.hasOwnProperty("values")) {
|
|
60026
|
+
if (!Array.isArray(message.values))
|
|
60027
|
+
return "values: array expected";
|
|
60028
|
+
for (var i = 0; i < message.values.length; ++i) {
|
|
60029
|
+
var error = $root.replit.goval.api.NixModuleConfigValue.verify(message.values[i]);
|
|
60030
|
+
if (error)
|
|
60031
|
+
return "values." + error;
|
|
60032
|
+
}
|
|
60033
|
+
}
|
|
60034
|
+
return null;
|
|
60035
|
+
};
|
|
60036
|
+
|
|
60037
|
+
/**
|
|
60038
|
+
* Creates a NixModuleConfigModuleEntry message from a plain object. Also converts values to their respective internal types.
|
|
60039
|
+
* @function fromObject
|
|
60040
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
60041
|
+
* @static
|
|
60042
|
+
* @param {Object.<string,*>} object Plain object
|
|
60043
|
+
* @returns {replit.goval.api.NixModuleConfigModuleEntry} NixModuleConfigModuleEntry
|
|
60044
|
+
*/
|
|
60045
|
+
NixModuleConfigModuleEntry.fromObject = function fromObject(object) {
|
|
60046
|
+
if (object instanceof $root.replit.goval.api.NixModuleConfigModuleEntry)
|
|
60047
|
+
return object;
|
|
60048
|
+
var message = new $root.replit.goval.api.NixModuleConfigModuleEntry();
|
|
60049
|
+
if (object.id != null)
|
|
60050
|
+
message.id = String(object.id);
|
|
60051
|
+
if (object.values) {
|
|
60052
|
+
if (!Array.isArray(object.values))
|
|
60053
|
+
throw TypeError(".replit.goval.api.NixModuleConfigModuleEntry.values: array expected");
|
|
60054
|
+
message.values = [];
|
|
60055
|
+
for (var i = 0; i < object.values.length; ++i) {
|
|
60056
|
+
if (typeof object.values[i] !== "object")
|
|
60057
|
+
throw TypeError(".replit.goval.api.NixModuleConfigModuleEntry.values: object expected");
|
|
60058
|
+
message.values[i] = $root.replit.goval.api.NixModuleConfigValue.fromObject(object.values[i]);
|
|
60059
|
+
}
|
|
60060
|
+
}
|
|
60061
|
+
return message;
|
|
60062
|
+
};
|
|
60063
|
+
|
|
60064
|
+
/**
|
|
60065
|
+
* Creates a plain object from a NixModuleConfigModuleEntry message. Also converts values to other types if specified.
|
|
60066
|
+
* @function toObject
|
|
60067
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
60068
|
+
* @static
|
|
60069
|
+
* @param {replit.goval.api.NixModuleConfigModuleEntry} message NixModuleConfigModuleEntry
|
|
60070
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60071
|
+
* @returns {Object.<string,*>} Plain object
|
|
60072
|
+
*/
|
|
60073
|
+
NixModuleConfigModuleEntry.toObject = function toObject(message, options) {
|
|
60074
|
+
if (!options)
|
|
60075
|
+
options = {};
|
|
60076
|
+
var object = {};
|
|
60077
|
+
if (options.arrays || options.defaults)
|
|
60078
|
+
object.values = [];
|
|
60079
|
+
if (options.defaults)
|
|
60080
|
+
object.id = "";
|
|
60081
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
60082
|
+
object.id = message.id;
|
|
60083
|
+
if (message.values && message.values.length) {
|
|
60084
|
+
object.values = [];
|
|
60085
|
+
for (var j = 0; j < message.values.length; ++j)
|
|
60086
|
+
object.values[j] = $root.replit.goval.api.NixModuleConfigValue.toObject(message.values[j], options);
|
|
60087
|
+
}
|
|
60088
|
+
return object;
|
|
60089
|
+
};
|
|
60090
|
+
|
|
60091
|
+
/**
|
|
60092
|
+
* Converts this NixModuleConfigModuleEntry to JSON.
|
|
60093
|
+
* @function toJSON
|
|
60094
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
60095
|
+
* @instance
|
|
60096
|
+
* @returns {Object.<string,*>} JSON object
|
|
60097
|
+
*/
|
|
60098
|
+
NixModuleConfigModuleEntry.prototype.toJSON = function toJSON() {
|
|
60099
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60100
|
+
};
|
|
60101
|
+
|
|
60102
|
+
/**
|
|
60103
|
+
* Gets the default type url for NixModuleConfigModuleEntry
|
|
60104
|
+
* @function getTypeUrl
|
|
60105
|
+
* @memberof replit.goval.api.NixModuleConfigModuleEntry
|
|
60106
|
+
* @static
|
|
60107
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60108
|
+
* @returns {string} The default type url
|
|
60109
|
+
*/
|
|
60110
|
+
NixModuleConfigModuleEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60111
|
+
if (typeUrlPrefix === undefined) {
|
|
60112
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60113
|
+
}
|
|
60114
|
+
return typeUrlPrefix + "/replit.goval.api.NixModuleConfigModuleEntry";
|
|
60115
|
+
};
|
|
60116
|
+
|
|
60117
|
+
return NixModuleConfigModuleEntry;
|
|
60118
|
+
})();
|
|
60119
|
+
|
|
59739
60120
|
api.NixModuleConfigValue = (function() {
|
|
59740
60121
|
|
|
59741
60122
|
/**
|
|
@@ -86265,6 +86646,7 @@
|
|
|
86265
86646
|
* @property {string|null} [bucket] Repl bucket
|
|
86266
86647
|
* @property {string|null} [slug] Repl slug
|
|
86267
86648
|
* @property {string|null} [user] Repl user
|
|
86649
|
+
* @property {replit.goval.api.repl.Org|replit.goval.api.repl.IOrg|null} [org] Repl org
|
|
86268
86650
|
* @property {string|null} [sourceRepl] Repl sourceRepl
|
|
86269
86651
|
* @property {string|null} [database] Repl database
|
|
86270
86652
|
* @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
|
|
@@ -86329,6 +86711,14 @@
|
|
|
86329
86711
|
*/
|
|
86330
86712
|
Repl.prototype.user = "";
|
|
86331
86713
|
|
|
86714
|
+
/**
|
|
86715
|
+
* Repl org.
|
|
86716
|
+
* @member {replit.goval.api.repl.Org|null|undefined} org
|
|
86717
|
+
* @memberof replit.goval.api.repl.Repl
|
|
86718
|
+
* @instance
|
|
86719
|
+
*/
|
|
86720
|
+
Repl.prototype.org = null;
|
|
86721
|
+
|
|
86332
86722
|
/**
|
|
86333
86723
|
* Repl sourceRepl.
|
|
86334
86724
|
* @member {string} sourceRepl
|
|
@@ -86434,6 +86824,8 @@
|
|
|
86434
86824
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.roles[i]);
|
|
86435
86825
|
if (message.logFields != null && Object.hasOwnProperty.call(message, "logFields"))
|
|
86436
86826
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.logFields);
|
|
86827
|
+
if (message.org != null && Object.hasOwnProperty.call(message, "org"))
|
|
86828
|
+
$root.replit.goval.api.repl.Org.encode(message.org, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
86437
86829
|
return writer;
|
|
86438
86830
|
};
|
|
86439
86831
|
|
|
@@ -86488,6 +86880,10 @@
|
|
|
86488
86880
|
message.user = reader.string();
|
|
86489
86881
|
break;
|
|
86490
86882
|
}
|
|
86883
|
+
case 14: {
|
|
86884
|
+
message.org = $root.replit.goval.api.repl.Org.decode(reader, reader.uint32());
|
|
86885
|
+
break;
|
|
86886
|
+
}
|
|
86491
86887
|
case 6: {
|
|
86492
86888
|
message.sourceRepl = reader.string();
|
|
86493
86889
|
break;
|
|
@@ -86568,6 +86964,11 @@
|
|
|
86568
86964
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
86569
86965
|
if (!$util.isString(message.user))
|
|
86570
86966
|
return "user: string expected";
|
|
86967
|
+
if (message.org != null && message.hasOwnProperty("org")) {
|
|
86968
|
+
var error = $root.replit.goval.api.repl.Org.verify(message.org);
|
|
86969
|
+
if (error)
|
|
86970
|
+
return "org." + error;
|
|
86971
|
+
}
|
|
86571
86972
|
if (message.sourceRepl != null && message.hasOwnProperty("sourceRepl"))
|
|
86572
86973
|
if (!$util.isString(message.sourceRepl))
|
|
86573
86974
|
return "sourceRepl: string expected";
|
|
@@ -86622,6 +87023,11 @@
|
|
|
86622
87023
|
message.slug = String(object.slug);
|
|
86623
87024
|
if (object.user != null)
|
|
86624
87025
|
message.user = String(object.user);
|
|
87026
|
+
if (object.org != null) {
|
|
87027
|
+
if (typeof object.org !== "object")
|
|
87028
|
+
throw TypeError(".replit.goval.api.repl.Repl.org: object expected");
|
|
87029
|
+
message.org = $root.replit.goval.api.repl.Org.fromObject(object.org);
|
|
87030
|
+
}
|
|
86625
87031
|
if (object.sourceRepl != null)
|
|
86626
87032
|
message.sourceRepl = String(object.sourceRepl);
|
|
86627
87033
|
if (object.database != null)
|
|
@@ -86677,6 +87083,7 @@
|
|
|
86677
87083
|
object.userId = null;
|
|
86678
87084
|
object.isTeam = false;
|
|
86679
87085
|
object.logFields = "";
|
|
87086
|
+
object.org = null;
|
|
86680
87087
|
}
|
|
86681
87088
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
86682
87089
|
object.id = message.id;
|
|
@@ -86705,6 +87112,8 @@
|
|
|
86705
87112
|
}
|
|
86706
87113
|
if (message.logFields != null && message.hasOwnProperty("logFields"))
|
|
86707
87114
|
object.logFields = message.logFields;
|
|
87115
|
+
if (message.org != null && message.hasOwnProperty("org"))
|
|
87116
|
+
object.org = $root.replit.goval.api.repl.Org.toObject(message.org, options);
|
|
86708
87117
|
return object;
|
|
86709
87118
|
};
|
|
86710
87119
|
|
|
@@ -86737,6 +87146,272 @@
|
|
|
86737
87146
|
return Repl;
|
|
86738
87147
|
})();
|
|
86739
87148
|
|
|
87149
|
+
repl.Org = (function() {
|
|
87150
|
+
|
|
87151
|
+
/**
|
|
87152
|
+
* Properties of an Org.
|
|
87153
|
+
* @memberof replit.goval.api.repl
|
|
87154
|
+
* @interface IOrg
|
|
87155
|
+
* @property {string|null} [id] Org id
|
|
87156
|
+
* @property {replit.goval.api.repl.Org.OrgType|null} [type] Org type
|
|
87157
|
+
*/
|
|
87158
|
+
|
|
87159
|
+
/**
|
|
87160
|
+
* Constructs a new Org.
|
|
87161
|
+
* @memberof replit.goval.api.repl
|
|
87162
|
+
* @classdesc Represents an Org.
|
|
87163
|
+
* @constructor
|
|
87164
|
+
* @param {replit.goval.api.repl.IOrg=} [properties] Properties to set
|
|
87165
|
+
*/
|
|
87166
|
+
function Org(properties) {
|
|
87167
|
+
if (properties)
|
|
87168
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87169
|
+
if (properties[keys[i]] != null)
|
|
87170
|
+
this[keys[i]] = properties[keys[i]];
|
|
87171
|
+
}
|
|
87172
|
+
|
|
87173
|
+
/**
|
|
87174
|
+
* Org id.
|
|
87175
|
+
* @member {string} id
|
|
87176
|
+
* @memberof replit.goval.api.repl.Org
|
|
87177
|
+
* @instance
|
|
87178
|
+
*/
|
|
87179
|
+
Org.prototype.id = "";
|
|
87180
|
+
|
|
87181
|
+
/**
|
|
87182
|
+
* Org type.
|
|
87183
|
+
* @member {replit.goval.api.repl.Org.OrgType} type
|
|
87184
|
+
* @memberof replit.goval.api.repl.Org
|
|
87185
|
+
* @instance
|
|
87186
|
+
*/
|
|
87187
|
+
Org.prototype.type = 0;
|
|
87188
|
+
|
|
87189
|
+
/**
|
|
87190
|
+
* Creates a new Org instance using the specified properties.
|
|
87191
|
+
* @function create
|
|
87192
|
+
* @memberof replit.goval.api.repl.Org
|
|
87193
|
+
* @static
|
|
87194
|
+
* @param {replit.goval.api.repl.IOrg=} [properties] Properties to set
|
|
87195
|
+
* @returns {replit.goval.api.repl.Org} Org instance
|
|
87196
|
+
*/
|
|
87197
|
+
Org.create = function create(properties) {
|
|
87198
|
+
return Org.fromObject(properties);
|
|
87199
|
+
};
|
|
87200
|
+
|
|
87201
|
+
/**
|
|
87202
|
+
* Encodes the specified Org message. Does not implicitly {@link replit.goval.api.repl.Org.verify|verify} messages.
|
|
87203
|
+
* @function encode
|
|
87204
|
+
* @memberof replit.goval.api.repl.Org
|
|
87205
|
+
* @static
|
|
87206
|
+
* @param {replit.goval.api.repl.Org} message Org message or plain object to encode
|
|
87207
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87208
|
+
* @returns {$protobuf.Writer} Writer
|
|
87209
|
+
*/
|
|
87210
|
+
Org.encode = function encode(message, writer) {
|
|
87211
|
+
if (!writer)
|
|
87212
|
+
writer = $Writer.create();
|
|
87213
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
87214
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
87215
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
87216
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
|
|
87217
|
+
return writer;
|
|
87218
|
+
};
|
|
87219
|
+
|
|
87220
|
+
/**
|
|
87221
|
+
* Encodes the specified Org message, length delimited. Does not implicitly {@link replit.goval.api.repl.Org.verify|verify} messages.
|
|
87222
|
+
* @function encodeDelimited
|
|
87223
|
+
* @memberof replit.goval.api.repl.Org
|
|
87224
|
+
* @static
|
|
87225
|
+
* @param {replit.goval.api.repl.Org} message Org message or plain object to encode
|
|
87226
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87227
|
+
* @returns {$protobuf.Writer} Writer
|
|
87228
|
+
*/
|
|
87229
|
+
Org.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87230
|
+
return this.encode(message, writer).ldelim();
|
|
87231
|
+
};
|
|
87232
|
+
|
|
87233
|
+
/**
|
|
87234
|
+
* Decodes an Org message from the specified reader or buffer.
|
|
87235
|
+
* @function decode
|
|
87236
|
+
* @memberof replit.goval.api.repl.Org
|
|
87237
|
+
* @static
|
|
87238
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87239
|
+
* @param {number} [length] Message length if known beforehand
|
|
87240
|
+
* @returns {replit.goval.api.repl.Org} Org
|
|
87241
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87242
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87243
|
+
*/
|
|
87244
|
+
Org.decode = function decode(reader, length) {
|
|
87245
|
+
if (!(reader instanceof $Reader))
|
|
87246
|
+
reader = $Reader.create(reader);
|
|
87247
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Org();
|
|
87248
|
+
while (reader.pos < end) {
|
|
87249
|
+
var tag = reader.uint32();
|
|
87250
|
+
switch (tag >>> 3) {
|
|
87251
|
+
case 1: {
|
|
87252
|
+
message.id = reader.string();
|
|
87253
|
+
break;
|
|
87254
|
+
}
|
|
87255
|
+
case 2: {
|
|
87256
|
+
message.type = reader.int32();
|
|
87257
|
+
break;
|
|
87258
|
+
}
|
|
87259
|
+
default:
|
|
87260
|
+
reader.skipType(tag & 7);
|
|
87261
|
+
break;
|
|
87262
|
+
}
|
|
87263
|
+
}
|
|
87264
|
+
return message;
|
|
87265
|
+
};
|
|
87266
|
+
|
|
87267
|
+
/**
|
|
87268
|
+
* Decodes an Org message from the specified reader or buffer, length delimited.
|
|
87269
|
+
* @function decodeDelimited
|
|
87270
|
+
* @memberof replit.goval.api.repl.Org
|
|
87271
|
+
* @static
|
|
87272
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87273
|
+
* @returns {replit.goval.api.repl.Org} Org
|
|
87274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87276
|
+
*/
|
|
87277
|
+
Org.decodeDelimited = function decodeDelimited(reader) {
|
|
87278
|
+
if (!(reader instanceof $Reader))
|
|
87279
|
+
reader = new $Reader(reader);
|
|
87280
|
+
return this.decode(reader, reader.uint32());
|
|
87281
|
+
};
|
|
87282
|
+
|
|
87283
|
+
/**
|
|
87284
|
+
* Verifies an Org message.
|
|
87285
|
+
* @function verify
|
|
87286
|
+
* @memberof replit.goval.api.repl.Org
|
|
87287
|
+
* @static
|
|
87288
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87289
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87290
|
+
*/
|
|
87291
|
+
Org.verify = function verify(message) {
|
|
87292
|
+
if (typeof message !== "object" || message === null)
|
|
87293
|
+
return "object expected";
|
|
87294
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
87295
|
+
if (!$util.isString(message.id))
|
|
87296
|
+
return "id: string expected";
|
|
87297
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
87298
|
+
switch (message.type) {
|
|
87299
|
+
default:
|
|
87300
|
+
return "type: enum value expected";
|
|
87301
|
+
case 0:
|
|
87302
|
+
case 1:
|
|
87303
|
+
case 2:
|
|
87304
|
+
break;
|
|
87305
|
+
}
|
|
87306
|
+
return null;
|
|
87307
|
+
};
|
|
87308
|
+
|
|
87309
|
+
/**
|
|
87310
|
+
* Creates an Org message from a plain object. Also converts values to their respective internal types.
|
|
87311
|
+
* @function fromObject
|
|
87312
|
+
* @memberof replit.goval.api.repl.Org
|
|
87313
|
+
* @static
|
|
87314
|
+
* @param {Object.<string,*>} object Plain object
|
|
87315
|
+
* @returns {replit.goval.api.repl.Org} Org
|
|
87316
|
+
*/
|
|
87317
|
+
Org.fromObject = function fromObject(object) {
|
|
87318
|
+
if (object instanceof $root.replit.goval.api.repl.Org)
|
|
87319
|
+
return object;
|
|
87320
|
+
var message = new $root.replit.goval.api.repl.Org();
|
|
87321
|
+
if (object.id != null)
|
|
87322
|
+
message.id = String(object.id);
|
|
87323
|
+
switch (object.type) {
|
|
87324
|
+
default:
|
|
87325
|
+
if (typeof object.type === "number") {
|
|
87326
|
+
message.type = object.type;
|
|
87327
|
+
break;
|
|
87328
|
+
}
|
|
87329
|
+
break;
|
|
87330
|
+
case "TYPE_UNSPECIFIED":
|
|
87331
|
+
case 0:
|
|
87332
|
+
message.type = 0;
|
|
87333
|
+
break;
|
|
87334
|
+
case "PERSONAL":
|
|
87335
|
+
case 1:
|
|
87336
|
+
message.type = 1;
|
|
87337
|
+
break;
|
|
87338
|
+
case "TEAM":
|
|
87339
|
+
case 2:
|
|
87340
|
+
message.type = 2;
|
|
87341
|
+
break;
|
|
87342
|
+
}
|
|
87343
|
+
return message;
|
|
87344
|
+
};
|
|
87345
|
+
|
|
87346
|
+
/**
|
|
87347
|
+
* Creates a plain object from an Org message. Also converts values to other types if specified.
|
|
87348
|
+
* @function toObject
|
|
87349
|
+
* @memberof replit.goval.api.repl.Org
|
|
87350
|
+
* @static
|
|
87351
|
+
* @param {replit.goval.api.repl.Org} message Org
|
|
87352
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87353
|
+
* @returns {Object.<string,*>} Plain object
|
|
87354
|
+
*/
|
|
87355
|
+
Org.toObject = function toObject(message, options) {
|
|
87356
|
+
if (!options)
|
|
87357
|
+
options = {};
|
|
87358
|
+
var object = {};
|
|
87359
|
+
if (options.defaults) {
|
|
87360
|
+
object.id = "";
|
|
87361
|
+
object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
|
|
87362
|
+
}
|
|
87363
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
87364
|
+
object.id = message.id;
|
|
87365
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
87366
|
+
object.type = options.enums === String ? $root.replit.goval.api.repl.Org.OrgType[message.type] === undefined ? message.type : $root.replit.goval.api.repl.Org.OrgType[message.type] : message.type;
|
|
87367
|
+
return object;
|
|
87368
|
+
};
|
|
87369
|
+
|
|
87370
|
+
/**
|
|
87371
|
+
* Converts this Org to JSON.
|
|
87372
|
+
* @function toJSON
|
|
87373
|
+
* @memberof replit.goval.api.repl.Org
|
|
87374
|
+
* @instance
|
|
87375
|
+
* @returns {Object.<string,*>} JSON object
|
|
87376
|
+
*/
|
|
87377
|
+
Org.prototype.toJSON = function toJSON() {
|
|
87378
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87379
|
+
};
|
|
87380
|
+
|
|
87381
|
+
/**
|
|
87382
|
+
* Gets the default type url for Org
|
|
87383
|
+
* @function getTypeUrl
|
|
87384
|
+
* @memberof replit.goval.api.repl.Org
|
|
87385
|
+
* @static
|
|
87386
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87387
|
+
* @returns {string} The default type url
|
|
87388
|
+
*/
|
|
87389
|
+
Org.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87390
|
+
if (typeUrlPrefix === undefined) {
|
|
87391
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87392
|
+
}
|
|
87393
|
+
return typeUrlPrefix + "/replit.goval.api.repl.Org";
|
|
87394
|
+
};
|
|
87395
|
+
|
|
87396
|
+
/**
|
|
87397
|
+
* OrgType enum.
|
|
87398
|
+
* @name replit.goval.api.repl.Org.OrgType
|
|
87399
|
+
* @enum {number}
|
|
87400
|
+
* @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
|
|
87401
|
+
* @property {number} PERSONAL=1 PERSONAL value
|
|
87402
|
+
* @property {number} TEAM=2 TEAM value
|
|
87403
|
+
*/
|
|
87404
|
+
Org.OrgType = (function() {
|
|
87405
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
87406
|
+
values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
|
|
87407
|
+
values[valuesById[1] = "PERSONAL"] = 1;
|
|
87408
|
+
values[valuesById[2] = "TEAM"] = 2;
|
|
87409
|
+
return values;
|
|
87410
|
+
})();
|
|
87411
|
+
|
|
87412
|
+
return Org;
|
|
87413
|
+
})();
|
|
87414
|
+
|
|
86740
87415
|
/**
|
|
86741
87416
|
* Environment enum.
|
|
86742
87417
|
* @name replit.goval.api.repl.Environment
|