@replit/protocol 0.2.58 → 0.2.61
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 +96 -0
- package/main/index.js +213 -0
- package/main/index.js.flow +128 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -14366,6 +14366,9 @@ export namespace api {
|
|
|
14366
14366
|
|
|
14367
14367
|
/** DotReplit gitHubImport */
|
|
14368
14368
|
gitHubImport?: (api.GitHubImportConfig|api.IGitHubImportConfig|null);
|
|
14369
|
+
|
|
14370
|
+
/** DotReplit auth */
|
|
14371
|
+
auth?: (api.AuthConfig|api.IAuthConfig|null);
|
|
14369
14372
|
}
|
|
14370
14373
|
|
|
14371
14374
|
/** Represents a DotReplit. */
|
|
@@ -14425,6 +14428,9 @@ export namespace api {
|
|
|
14425
14428
|
/** DotReplit gitHubImport. */
|
|
14426
14429
|
public gitHubImport?: (api.GitHubImportConfig|null);
|
|
14427
14430
|
|
|
14431
|
+
/** DotReplit auth. */
|
|
14432
|
+
public auth?: (api.AuthConfig|null);
|
|
14433
|
+
|
|
14428
14434
|
/**
|
|
14429
14435
|
* Creates a new DotReplit instance using the specified properties.
|
|
14430
14436
|
* @param [properties] Properties to set
|
|
@@ -14772,6 +14778,96 @@ export namespace api {
|
|
|
14772
14778
|
public toJSON(): { [k: string]: any };
|
|
14773
14779
|
}
|
|
14774
14780
|
|
|
14781
|
+
/** Properties of an AuthConfig. */
|
|
14782
|
+
interface IAuthConfig {
|
|
14783
|
+
|
|
14784
|
+
/** AuthConfig enabled */
|
|
14785
|
+
enabled?: (boolean|null);
|
|
14786
|
+
}
|
|
14787
|
+
|
|
14788
|
+
/** Represents an AuthConfig. */
|
|
14789
|
+
class AuthConfig {
|
|
14790
|
+
|
|
14791
|
+
/**
|
|
14792
|
+
* Constructs a new AuthConfig.
|
|
14793
|
+
* @param [properties] Properties to set
|
|
14794
|
+
*/
|
|
14795
|
+
private constructor(properties?: api.IAuthConfig);
|
|
14796
|
+
|
|
14797
|
+
/** AuthConfig enabled. */
|
|
14798
|
+
public enabled: boolean;
|
|
14799
|
+
|
|
14800
|
+
/**
|
|
14801
|
+
* Creates a new AuthConfig instance using the specified properties.
|
|
14802
|
+
* @param [properties] Properties to set
|
|
14803
|
+
* @returns AuthConfig instance
|
|
14804
|
+
*/
|
|
14805
|
+
public static create(properties?: api.IAuthConfig): api.AuthConfig;
|
|
14806
|
+
|
|
14807
|
+
/**
|
|
14808
|
+
* Encodes the specified AuthConfig message. Does not implicitly {@link api.AuthConfig.verify|verify} messages.
|
|
14809
|
+
* @param message AuthConfig message or plain object to encode
|
|
14810
|
+
* @param [writer] Writer to encode to
|
|
14811
|
+
* @returns Writer
|
|
14812
|
+
*/
|
|
14813
|
+
public static encode(message: api.AuthConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14814
|
+
|
|
14815
|
+
/**
|
|
14816
|
+
* Encodes the specified AuthConfig message, length delimited. Does not implicitly {@link api.AuthConfig.verify|verify} messages.
|
|
14817
|
+
* @param message AuthConfig message or plain object to encode
|
|
14818
|
+
* @param [writer] Writer to encode to
|
|
14819
|
+
* @returns Writer
|
|
14820
|
+
*/
|
|
14821
|
+
public static encodeDelimited(message: api.AuthConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14822
|
+
|
|
14823
|
+
/**
|
|
14824
|
+
* Decodes an AuthConfig message from the specified reader or buffer.
|
|
14825
|
+
* @param reader Reader or buffer to decode from
|
|
14826
|
+
* @param [length] Message length if known beforehand
|
|
14827
|
+
* @returns AuthConfig
|
|
14828
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14829
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14830
|
+
*/
|
|
14831
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.AuthConfig;
|
|
14832
|
+
|
|
14833
|
+
/**
|
|
14834
|
+
* Decodes an AuthConfig message from the specified reader or buffer, length delimited.
|
|
14835
|
+
* @param reader Reader or buffer to decode from
|
|
14836
|
+
* @returns AuthConfig
|
|
14837
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14838
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14839
|
+
*/
|
|
14840
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.AuthConfig;
|
|
14841
|
+
|
|
14842
|
+
/**
|
|
14843
|
+
* Verifies an AuthConfig message.
|
|
14844
|
+
* @param message Plain object to verify
|
|
14845
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14846
|
+
*/
|
|
14847
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14848
|
+
|
|
14849
|
+
/**
|
|
14850
|
+
* Creates an AuthConfig message from a plain object. Also converts values to their respective internal types.
|
|
14851
|
+
* @param object Plain object
|
|
14852
|
+
* @returns AuthConfig
|
|
14853
|
+
*/
|
|
14854
|
+
public static fromObject(object: { [k: string]: any }): api.AuthConfig;
|
|
14855
|
+
|
|
14856
|
+
/**
|
|
14857
|
+
* Creates a plain object from an AuthConfig message. Also converts values to other types if specified.
|
|
14858
|
+
* @param message AuthConfig
|
|
14859
|
+
* @param [options] Conversion options
|
|
14860
|
+
* @returns Plain object
|
|
14861
|
+
*/
|
|
14862
|
+
public static toObject(message: api.AuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14863
|
+
|
|
14864
|
+
/**
|
|
14865
|
+
* Converts this AuthConfig to JSON.
|
|
14866
|
+
* @returns JSON object
|
|
14867
|
+
*/
|
|
14868
|
+
public toJSON(): { [k: string]: any };
|
|
14869
|
+
}
|
|
14870
|
+
|
|
14775
14871
|
/** Properties of a DotReplitInterp. */
|
|
14776
14872
|
interface IDotReplitInterp {
|
|
14777
14873
|
|
package/main/index.js
CHANGED
|
@@ -35696,6 +35696,7 @@
|
|
|
35696
35696
|
* @property {api.HostingConfig|api.IHostingConfig|null} [hosting] DotReplit hosting
|
|
35697
35697
|
* @property {Object.<string,string>|null} [env] DotReplit env
|
|
35698
35698
|
* @property {api.GitHubImportConfig|api.IGitHubImportConfig|null} [gitHubImport] DotReplit gitHubImport
|
|
35699
|
+
* @property {api.AuthConfig|api.IAuthConfig|null} [auth] DotReplit auth
|
|
35699
35700
|
*/
|
|
35700
35701
|
|
|
35701
35702
|
/**
|
|
@@ -35843,6 +35844,14 @@
|
|
|
35843
35844
|
*/
|
|
35844
35845
|
DotReplit.prototype.gitHubImport = null;
|
|
35845
35846
|
|
|
35847
|
+
/**
|
|
35848
|
+
* DotReplit auth.
|
|
35849
|
+
* @member {api.AuthConfig|null|undefined} auth
|
|
35850
|
+
* @memberof api.DotReplit
|
|
35851
|
+
* @instance
|
|
35852
|
+
*/
|
|
35853
|
+
DotReplit.prototype.auth = null;
|
|
35854
|
+
|
|
35846
35855
|
/**
|
|
35847
35856
|
* Creates a new DotReplit instance using the specified properties.
|
|
35848
35857
|
* @function create
|
|
@@ -35904,6 +35913,8 @@
|
|
|
35904
35913
|
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim();
|
|
35905
35914
|
if (message.gitHubImport != null && Object.hasOwnProperty.call(message, "gitHubImport"))
|
|
35906
35915
|
$root.api.GitHubImportConfig.encode(message.gitHubImport, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
35916
|
+
if (message.auth != null && Object.hasOwnProperty.call(message, "auth"))
|
|
35917
|
+
$root.api.AuthConfig.encode(message.auth, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
35907
35918
|
return writer;
|
|
35908
35919
|
};
|
|
35909
35920
|
|
|
@@ -36026,6 +36037,9 @@
|
|
|
36026
36037
|
case 16:
|
|
36027
36038
|
message.gitHubImport = $root.api.GitHubImportConfig.decode(reader, reader.uint32());
|
|
36028
36039
|
break;
|
|
36040
|
+
case 17:
|
|
36041
|
+
message.auth = $root.api.AuthConfig.decode(reader, reader.uint32());
|
|
36042
|
+
break;
|
|
36029
36043
|
default:
|
|
36030
36044
|
reader.skipType(tag & 7);
|
|
36031
36045
|
break;
|
|
@@ -36145,6 +36159,11 @@
|
|
|
36145
36159
|
if (error)
|
|
36146
36160
|
return "gitHubImport." + error;
|
|
36147
36161
|
}
|
|
36162
|
+
if (message.auth != null && message.hasOwnProperty("auth")) {
|
|
36163
|
+
var error = $root.api.AuthConfig.verify(message.auth);
|
|
36164
|
+
if (error)
|
|
36165
|
+
return "auth." + error;
|
|
36166
|
+
}
|
|
36148
36167
|
return null;
|
|
36149
36168
|
};
|
|
36150
36169
|
|
|
@@ -36240,6 +36259,11 @@
|
|
|
36240
36259
|
throw TypeError(".api.DotReplit.gitHubImport: object expected");
|
|
36241
36260
|
message.gitHubImport = $root.api.GitHubImportConfig.fromObject(object.gitHubImport);
|
|
36242
36261
|
}
|
|
36262
|
+
if (object.auth != null) {
|
|
36263
|
+
if (typeof object.auth !== "object")
|
|
36264
|
+
throw TypeError(".api.DotReplit.auth: object expected");
|
|
36265
|
+
message.auth = $root.api.AuthConfig.fromObject(object.auth);
|
|
36266
|
+
}
|
|
36243
36267
|
return message;
|
|
36244
36268
|
};
|
|
36245
36269
|
|
|
@@ -36276,6 +36300,7 @@
|
|
|
36276
36300
|
object.audio = false;
|
|
36277
36301
|
object.hosting = null;
|
|
36278
36302
|
object.gitHubImport = null;
|
|
36303
|
+
object.auth = null;
|
|
36279
36304
|
}
|
|
36280
36305
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
36281
36306
|
object.run = $root.api.Exec.toObject(message.run, options);
|
|
@@ -36319,6 +36344,8 @@
|
|
|
36319
36344
|
}
|
|
36320
36345
|
if (message.gitHubImport != null && message.hasOwnProperty("gitHubImport"))
|
|
36321
36346
|
object.gitHubImport = $root.api.GitHubImportConfig.toObject(message.gitHubImport, options);
|
|
36347
|
+
if (message.auth != null && message.hasOwnProperty("auth"))
|
|
36348
|
+
object.auth = $root.api.AuthConfig.toObject(message.auth, options);
|
|
36322
36349
|
return object;
|
|
36323
36350
|
};
|
|
36324
36351
|
|
|
@@ -36933,6 +36960,192 @@
|
|
|
36933
36960
|
return HostingConfig;
|
|
36934
36961
|
})();
|
|
36935
36962
|
|
|
36963
|
+
api.AuthConfig = (function() {
|
|
36964
|
+
|
|
36965
|
+
/**
|
|
36966
|
+
* Properties of an AuthConfig.
|
|
36967
|
+
* @memberof api
|
|
36968
|
+
* @interface IAuthConfig
|
|
36969
|
+
* @property {boolean|null} [enabled] AuthConfig enabled
|
|
36970
|
+
*/
|
|
36971
|
+
|
|
36972
|
+
/**
|
|
36973
|
+
* Constructs a new AuthConfig.
|
|
36974
|
+
* @memberof api
|
|
36975
|
+
* @classdesc Represents an AuthConfig.
|
|
36976
|
+
* @constructor
|
|
36977
|
+
* @param {api.IAuthConfig=} [properties] Properties to set
|
|
36978
|
+
*/
|
|
36979
|
+
function AuthConfig(properties) {
|
|
36980
|
+
if (properties)
|
|
36981
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36982
|
+
if (properties[keys[i]] != null)
|
|
36983
|
+
this[keys[i]] = properties[keys[i]];
|
|
36984
|
+
}
|
|
36985
|
+
|
|
36986
|
+
/**
|
|
36987
|
+
* AuthConfig enabled.
|
|
36988
|
+
* @member {boolean} enabled
|
|
36989
|
+
* @memberof api.AuthConfig
|
|
36990
|
+
* @instance
|
|
36991
|
+
*/
|
|
36992
|
+
AuthConfig.prototype.enabled = false;
|
|
36993
|
+
|
|
36994
|
+
/**
|
|
36995
|
+
* Creates a new AuthConfig instance using the specified properties.
|
|
36996
|
+
* @function create
|
|
36997
|
+
* @memberof api.AuthConfig
|
|
36998
|
+
* @static
|
|
36999
|
+
* @param {api.IAuthConfig=} [properties] Properties to set
|
|
37000
|
+
* @returns {api.AuthConfig} AuthConfig instance
|
|
37001
|
+
*/
|
|
37002
|
+
AuthConfig.create = function create(properties) {
|
|
37003
|
+
return AuthConfig.fromObject(properties);
|
|
37004
|
+
};
|
|
37005
|
+
|
|
37006
|
+
/**
|
|
37007
|
+
* Encodes the specified AuthConfig message. Does not implicitly {@link api.AuthConfig.verify|verify} messages.
|
|
37008
|
+
* @function encode
|
|
37009
|
+
* @memberof api.AuthConfig
|
|
37010
|
+
* @static
|
|
37011
|
+
* @param {api.AuthConfig} message AuthConfig message or plain object to encode
|
|
37012
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
37013
|
+
* @returns {$protobuf.Writer} Writer
|
|
37014
|
+
*/
|
|
37015
|
+
AuthConfig.encode = function encode(message, writer) {
|
|
37016
|
+
if (!writer)
|
|
37017
|
+
writer = $Writer.create();
|
|
37018
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
37019
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
37020
|
+
return writer;
|
|
37021
|
+
};
|
|
37022
|
+
|
|
37023
|
+
/**
|
|
37024
|
+
* Encodes the specified AuthConfig message, length delimited. Does not implicitly {@link api.AuthConfig.verify|verify} messages.
|
|
37025
|
+
* @function encodeDelimited
|
|
37026
|
+
* @memberof api.AuthConfig
|
|
37027
|
+
* @static
|
|
37028
|
+
* @param {api.AuthConfig} message AuthConfig message or plain object to encode
|
|
37029
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
37030
|
+
* @returns {$protobuf.Writer} Writer
|
|
37031
|
+
*/
|
|
37032
|
+
AuthConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
37033
|
+
return this.encode(message, writer).ldelim();
|
|
37034
|
+
};
|
|
37035
|
+
|
|
37036
|
+
/**
|
|
37037
|
+
* Decodes an AuthConfig message from the specified reader or buffer.
|
|
37038
|
+
* @function decode
|
|
37039
|
+
* @memberof api.AuthConfig
|
|
37040
|
+
* @static
|
|
37041
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
37042
|
+
* @param {number} [length] Message length if known beforehand
|
|
37043
|
+
* @returns {api.AuthConfig} AuthConfig
|
|
37044
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37045
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37046
|
+
*/
|
|
37047
|
+
AuthConfig.decode = function decode(reader, length) {
|
|
37048
|
+
if (!(reader instanceof $Reader))
|
|
37049
|
+
reader = $Reader.create(reader);
|
|
37050
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.AuthConfig();
|
|
37051
|
+
while (reader.pos < end) {
|
|
37052
|
+
var tag = reader.uint32();
|
|
37053
|
+
switch (tag >>> 3) {
|
|
37054
|
+
case 1:
|
|
37055
|
+
message.enabled = reader.bool();
|
|
37056
|
+
break;
|
|
37057
|
+
default:
|
|
37058
|
+
reader.skipType(tag & 7);
|
|
37059
|
+
break;
|
|
37060
|
+
}
|
|
37061
|
+
}
|
|
37062
|
+
return message;
|
|
37063
|
+
};
|
|
37064
|
+
|
|
37065
|
+
/**
|
|
37066
|
+
* Decodes an AuthConfig message from the specified reader or buffer, length delimited.
|
|
37067
|
+
* @function decodeDelimited
|
|
37068
|
+
* @memberof api.AuthConfig
|
|
37069
|
+
* @static
|
|
37070
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
37071
|
+
* @returns {api.AuthConfig} AuthConfig
|
|
37072
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37073
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37074
|
+
*/
|
|
37075
|
+
AuthConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
37076
|
+
if (!(reader instanceof $Reader))
|
|
37077
|
+
reader = new $Reader(reader);
|
|
37078
|
+
return this.decode(reader, reader.uint32());
|
|
37079
|
+
};
|
|
37080
|
+
|
|
37081
|
+
/**
|
|
37082
|
+
* Verifies an AuthConfig message.
|
|
37083
|
+
* @function verify
|
|
37084
|
+
* @memberof api.AuthConfig
|
|
37085
|
+
* @static
|
|
37086
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
37087
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
37088
|
+
*/
|
|
37089
|
+
AuthConfig.verify = function verify(message) {
|
|
37090
|
+
if (typeof message !== "object" || message === null)
|
|
37091
|
+
return "object expected";
|
|
37092
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
37093
|
+
if (typeof message.enabled !== "boolean")
|
|
37094
|
+
return "enabled: boolean expected";
|
|
37095
|
+
return null;
|
|
37096
|
+
};
|
|
37097
|
+
|
|
37098
|
+
/**
|
|
37099
|
+
* Creates an AuthConfig message from a plain object. Also converts values to their respective internal types.
|
|
37100
|
+
* @function fromObject
|
|
37101
|
+
* @memberof api.AuthConfig
|
|
37102
|
+
* @static
|
|
37103
|
+
* @param {Object.<string,*>} object Plain object
|
|
37104
|
+
* @returns {api.AuthConfig} AuthConfig
|
|
37105
|
+
*/
|
|
37106
|
+
AuthConfig.fromObject = function fromObject(object) {
|
|
37107
|
+
if (object instanceof $root.api.AuthConfig)
|
|
37108
|
+
return object;
|
|
37109
|
+
var message = new $root.api.AuthConfig();
|
|
37110
|
+
if (object.enabled != null)
|
|
37111
|
+
message.enabled = Boolean(object.enabled);
|
|
37112
|
+
return message;
|
|
37113
|
+
};
|
|
37114
|
+
|
|
37115
|
+
/**
|
|
37116
|
+
* Creates a plain object from an AuthConfig message. Also converts values to other types if specified.
|
|
37117
|
+
* @function toObject
|
|
37118
|
+
* @memberof api.AuthConfig
|
|
37119
|
+
* @static
|
|
37120
|
+
* @param {api.AuthConfig} message AuthConfig
|
|
37121
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
37122
|
+
* @returns {Object.<string,*>} Plain object
|
|
37123
|
+
*/
|
|
37124
|
+
AuthConfig.toObject = function toObject(message, options) {
|
|
37125
|
+
if (!options)
|
|
37126
|
+
options = {};
|
|
37127
|
+
var object = {};
|
|
37128
|
+
if (options.defaults)
|
|
37129
|
+
object.enabled = false;
|
|
37130
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
37131
|
+
object.enabled = message.enabled;
|
|
37132
|
+
return object;
|
|
37133
|
+
};
|
|
37134
|
+
|
|
37135
|
+
/**
|
|
37136
|
+
* Converts this AuthConfig to JSON.
|
|
37137
|
+
* @function toJSON
|
|
37138
|
+
* @memberof api.AuthConfig
|
|
37139
|
+
* @instance
|
|
37140
|
+
* @returns {Object.<string,*>} JSON object
|
|
37141
|
+
*/
|
|
37142
|
+
AuthConfig.prototype.toJSON = function toJSON() {
|
|
37143
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
37144
|
+
};
|
|
37145
|
+
|
|
37146
|
+
return AuthConfig;
|
|
37147
|
+
})();
|
|
37148
|
+
|
|
36936
37149
|
api.DotReplitInterp = (function() {
|
|
36937
37150
|
|
|
36938
37151
|
/**
|
package/main/index.js.flow
CHANGED
|
@@ -154,6 +154,7 @@ declare var npm$namespace$api: {|
|
|
|
154
154
|
IGitHubImportConfig: Class<api$IGitHubImportConfig>,
|
|
155
155
|
INixConfig: Class<api$INixConfig>,
|
|
156
156
|
IHostingConfig: Class<api$IHostingConfig>,
|
|
157
|
+
IAuthConfig: Class<api$IAuthConfig>,
|
|
157
158
|
IDotReplitInterp: Class<api$IDotReplitInterp>,
|
|
158
159
|
IDotReplitLanguage: Class<api$IDotReplitLanguage>,
|
|
159
160
|
ILanguageServerConfig: Class<api$ILanguageServerConfig>,
|
|
@@ -323,6 +324,7 @@ declare var npm$namespace$api: {|
|
|
|
323
324
|
GitHubImportConfig: typeof api$GitHubImportConfig,
|
|
324
325
|
NixConfig: typeof api$NixConfig,
|
|
325
326
|
HostingConfig: typeof api$HostingConfig,
|
|
327
|
+
AuthConfig: typeof api$AuthConfig,
|
|
326
328
|
DotReplitInterp: typeof api$DotReplitInterp,
|
|
327
329
|
DotReplitLanguage: typeof api$DotReplitLanguage,
|
|
328
330
|
LanguageServerConfig: typeof api$LanguageServerConfig,
|
|
@@ -19912,6 +19914,11 @@ declare type api$IDotReplit = {|
|
|
|
19912
19914
|
* DotReplit gitHubImport
|
|
19913
19915
|
*/
|
|
19914
19916
|
gitHubImport?: api$GitHubImportConfig | api$IGitHubImportConfig | null,
|
|
19917
|
+
|
|
19918
|
+
/**
|
|
19919
|
+
* DotReplit auth
|
|
19920
|
+
*/
|
|
19921
|
+
auth?: api$AuthConfig | api$IAuthConfig | null,
|
|
19915
19922
|
|};
|
|
19916
19923
|
|
|
19917
19924
|
/**
|
|
@@ -20008,6 +20015,11 @@ declare class api$DotReplit {
|
|
|
20008
20015
|
*/
|
|
20009
20016
|
gitHubImport?: api$GitHubImportConfig | null;
|
|
20010
20017
|
|
|
20018
|
+
/**
|
|
20019
|
+
* DotReplit auth.
|
|
20020
|
+
*/
|
|
20021
|
+
auth?: api$AuthConfig | null;
|
|
20022
|
+
|
|
20011
20023
|
/**
|
|
20012
20024
|
* Creates a new DotReplit instance using the specified properties.
|
|
20013
20025
|
* @param [properties] Properties to set
|
|
@@ -20461,6 +20473,122 @@ declare class api$HostingConfig {
|
|
|
20461
20473
|
|};
|
|
20462
20474
|
}
|
|
20463
20475
|
|
|
20476
|
+
/**
|
|
20477
|
+
* Properties of an AuthConfig.
|
|
20478
|
+
*/
|
|
20479
|
+
declare type api$IAuthConfig = {|
|
|
20480
|
+
/**
|
|
20481
|
+
* AuthConfig enabled
|
|
20482
|
+
*/
|
|
20483
|
+
enabled?: boolean | null,
|
|
20484
|
+
|};
|
|
20485
|
+
|
|
20486
|
+
/**
|
|
20487
|
+
* Represents an AuthConfig.
|
|
20488
|
+
*/
|
|
20489
|
+
declare class api$AuthConfig {
|
|
20490
|
+
/**
|
|
20491
|
+
* Constructs a new AuthConfig.
|
|
20492
|
+
* @param [properties] Properties to set
|
|
20493
|
+
*/
|
|
20494
|
+
constructor(properties?: api$IAuthConfig): this;
|
|
20495
|
+
|
|
20496
|
+
/**
|
|
20497
|
+
* AuthConfig enabled.
|
|
20498
|
+
*/
|
|
20499
|
+
enabled: boolean;
|
|
20500
|
+
|
|
20501
|
+
/**
|
|
20502
|
+
* Creates a new AuthConfig instance using the specified properties.
|
|
20503
|
+
* @param [properties] Properties to set
|
|
20504
|
+
* @returns AuthConfig instance
|
|
20505
|
+
*/
|
|
20506
|
+
static create(properties?: api$IAuthConfig): api$AuthConfig;
|
|
20507
|
+
|
|
20508
|
+
/**
|
|
20509
|
+
* [object Object],[object Object],[object Object]
|
|
20510
|
+
* @param message AuthConfig message or plain object to encode
|
|
20511
|
+
* @param [writer] Writer to encode to
|
|
20512
|
+
* @returns Writer
|
|
20513
|
+
*/
|
|
20514
|
+
static encode(
|
|
20515
|
+
message: api$AuthConfig,
|
|
20516
|
+
writer?: $protobuf.Writer
|
|
20517
|
+
): $protobuf.Writer;
|
|
20518
|
+
|
|
20519
|
+
/**
|
|
20520
|
+
* [object Object],[object Object],[object Object]
|
|
20521
|
+
* @param message AuthConfig message or plain object to encode
|
|
20522
|
+
* @param [writer] Writer to encode to
|
|
20523
|
+
* @returns Writer
|
|
20524
|
+
*/
|
|
20525
|
+
static encodeDelimited(
|
|
20526
|
+
message: api$AuthConfig,
|
|
20527
|
+
writer?: $protobuf.Writer
|
|
20528
|
+
): $protobuf.Writer;
|
|
20529
|
+
|
|
20530
|
+
/**
|
|
20531
|
+
* Decodes an AuthConfig message from the specified reader or buffer.
|
|
20532
|
+
* @param reader Reader or buffer to decode from
|
|
20533
|
+
* @param [length] Message length if known beforehand
|
|
20534
|
+
* @returns AuthConfig
|
|
20535
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20536
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20537
|
+
*/
|
|
20538
|
+
static decode(
|
|
20539
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
20540
|
+
length?: number
|
|
20541
|
+
): api$AuthConfig;
|
|
20542
|
+
|
|
20543
|
+
/**
|
|
20544
|
+
* Decodes an AuthConfig message from the specified reader or buffer, length delimited.
|
|
20545
|
+
* @param reader Reader or buffer to decode from
|
|
20546
|
+
* @returns AuthConfig
|
|
20547
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20548
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20549
|
+
*/
|
|
20550
|
+
static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$AuthConfig;
|
|
20551
|
+
|
|
20552
|
+
/**
|
|
20553
|
+
* Verifies an AuthConfig message.
|
|
20554
|
+
* @param message Plain object to verify
|
|
20555
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
20556
|
+
*/
|
|
20557
|
+
static verify(message: {|
|
|
20558
|
+
[k: string]: any,
|
|
20559
|
+
|}): string | null;
|
|
20560
|
+
|
|
20561
|
+
/**
|
|
20562
|
+
* Creates an AuthConfig message from a plain object. Also converts values to their respective internal types.
|
|
20563
|
+
* @param object Plain object
|
|
20564
|
+
* @returns AuthConfig
|
|
20565
|
+
*/
|
|
20566
|
+
static fromObject(object: {|
|
|
20567
|
+
[k: string]: any,
|
|
20568
|
+
|}): api$AuthConfig;
|
|
20569
|
+
|
|
20570
|
+
/**
|
|
20571
|
+
* Creates a plain object from an AuthConfig message. Also converts values to other types if specified.
|
|
20572
|
+
* @param message AuthConfig
|
|
20573
|
+
* @param [options] Conversion options
|
|
20574
|
+
* @returns Plain object
|
|
20575
|
+
*/
|
|
20576
|
+
static toObject(
|
|
20577
|
+
message: api$AuthConfig,
|
|
20578
|
+
options?: $protobuf.IConversionOptions
|
|
20579
|
+
): {|
|
|
20580
|
+
[k: string]: any,
|
|
20581
|
+
|};
|
|
20582
|
+
|
|
20583
|
+
/**
|
|
20584
|
+
* Converts this AuthConfig to JSON.
|
|
20585
|
+
* @returns JSON object
|
|
20586
|
+
*/
|
|
20587
|
+
toJSON(): {|
|
|
20588
|
+
[k: string]: any,
|
|
20589
|
+
|};
|
|
20590
|
+
}
|
|
20591
|
+
|
|
20464
20592
|
/**
|
|
20465
20593
|
* Properties of a DotReplitInterp.
|
|
20466
20594
|
*/
|