@miradorlabs/web-grpc 4.38.0 → 4.39.0

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.
@@ -29,6 +29,8 @@ goog.exportSymbol('proto.gateway.web.v1.AssignProjectRoleRequest', null, global)
29
29
  goog.exportSymbol('proto.gateway.web.v1.AssignProjectRoleResponse', null, global);
30
30
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeCliLoginRequest', null, global);
31
31
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeCliLoginResponse', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeUserLoginRequest', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeUserLoginResponse', null, global);
32
34
  goog.exportSymbol('proto.gateway.web.v1.CliSession', null, global);
33
35
  goog.exportSymbol('proto.gateway.web.v1.CreateOrganizationRequest', null, global);
34
36
  goog.exportSymbol('proto.gateway.web.v1.CreateOrganizationResponse', null, global);
@@ -1873,6 +1875,48 @@ if (goog.DEBUG && !COMPILED) {
1873
1875
  */
1874
1876
  proto.gateway.web.v1.AuthorizeCliLoginResponse.displayName = 'proto.gateway.web.v1.AuthorizeCliLoginResponse';
1875
1877
  }
1878
+ /**
1879
+ * Generated by JsPbCodeGenerator.
1880
+ * @param {Array=} opt_data Optional initial data array, typically from a
1881
+ * server response, or constructed directly in Javascript. The array is used
1882
+ * in place and becomes part of the constructed object. It is not cloned.
1883
+ * If no data is provided, the constructed object will be empty, but still
1884
+ * valid.
1885
+ * @extends {jspb.Message}
1886
+ * @constructor
1887
+ */
1888
+ proto.gateway.web.v1.AuthorizeUserLoginRequest = function(opt_data) {
1889
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1890
+ };
1891
+ goog.inherits(proto.gateway.web.v1.AuthorizeUserLoginRequest, jspb.Message);
1892
+ if (goog.DEBUG && !COMPILED) {
1893
+ /**
1894
+ * @public
1895
+ * @override
1896
+ */
1897
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.displayName = 'proto.gateway.web.v1.AuthorizeUserLoginRequest';
1898
+ }
1899
+ /**
1900
+ * Generated by JsPbCodeGenerator.
1901
+ * @param {Array=} opt_data Optional initial data array, typically from a
1902
+ * server response, or constructed directly in Javascript. The array is used
1903
+ * in place and becomes part of the constructed object. It is not cloned.
1904
+ * If no data is provided, the constructed object will be empty, but still
1905
+ * valid.
1906
+ * @extends {jspb.Message}
1907
+ * @constructor
1908
+ */
1909
+ proto.gateway.web.v1.AuthorizeUserLoginResponse = function(opt_data) {
1910
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1911
+ };
1912
+ goog.inherits(proto.gateway.web.v1.AuthorizeUserLoginResponse, jspb.Message);
1913
+ if (goog.DEBUG && !COMPILED) {
1914
+ /**
1915
+ * @public
1916
+ * @override
1917
+ */
1918
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.displayName = 'proto.gateway.web.v1.AuthorizeUserLoginResponse';
1919
+ }
1876
1920
  /**
1877
1921
  * Generated by JsPbCodeGenerator.
1878
1922
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -19968,6 +20012,428 @@ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.hasExpiresAt = function
19968
20012
 
19969
20013
 
19970
20014
 
20015
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20016
+ /**
20017
+ * Creates an object representation of this proto.
20018
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20019
+ * Optional fields that are not set will be set to undefined.
20020
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20021
+ * For the list of reserved names please see:
20022
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20023
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20024
+ * JSPB instance for transitional soy proto support:
20025
+ * http://goto/soy-param-migration
20026
+ * @return {!Object}
20027
+ */
20028
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.toObject = function(opt_includeInstance) {
20029
+ return proto.gateway.web.v1.AuthorizeUserLoginRequest.toObject(opt_includeInstance, this);
20030
+ };
20031
+
20032
+
20033
+ /**
20034
+ * Static version of the {@see toObject} method.
20035
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20036
+ * the JSPB instance for transitional soy proto support:
20037
+ * http://goto/soy-param-migration
20038
+ * @param {!proto.gateway.web.v1.AuthorizeUserLoginRequest} msg The msg instance to transform.
20039
+ * @return {!Object}
20040
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20041
+ */
20042
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.toObject = function(includeInstance, msg) {
20043
+ var f, obj = {
20044
+ codeChallenge: jspb.Message.getFieldWithDefault(msg, 1, ""),
20045
+ redirectPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
20046
+ label: jspb.Message.getFieldWithDefault(msg, 3, "")
20047
+ };
20048
+
20049
+ if (includeInstance) {
20050
+ obj.$jspbMessageInstance = msg;
20051
+ }
20052
+ return obj;
20053
+ };
20054
+ }
20055
+
20056
+
20057
+ /**
20058
+ * Deserializes binary data (in protobuf wire format).
20059
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
20060
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginRequest}
20061
+ */
20062
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.deserializeBinary = function(bytes) {
20063
+ var reader = new jspb.BinaryReader(bytes);
20064
+ var msg = new proto.gateway.web.v1.AuthorizeUserLoginRequest;
20065
+ return proto.gateway.web.v1.AuthorizeUserLoginRequest.deserializeBinaryFromReader(msg, reader);
20066
+ };
20067
+
20068
+
20069
+ /**
20070
+ * Deserializes binary data (in protobuf wire format) from the
20071
+ * given reader into the given message object.
20072
+ * @param {!proto.gateway.web.v1.AuthorizeUserLoginRequest} msg The message object to deserialize into.
20073
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20074
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginRequest}
20075
+ */
20076
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
20077
+ while (reader.nextField()) {
20078
+ if (reader.isEndGroup()) {
20079
+ break;
20080
+ }
20081
+ var field = reader.getFieldNumber();
20082
+ switch (field) {
20083
+ case 1:
20084
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
20085
+ msg.setCodeChallenge(value);
20086
+ break;
20087
+ case 2:
20088
+ var value = /** @type {number} */ (reader.readInt32());
20089
+ msg.setRedirectPort(value);
20090
+ break;
20091
+ case 3:
20092
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
20093
+ msg.setLabel(value);
20094
+ break;
20095
+ default:
20096
+ reader.skipField();
20097
+ break;
20098
+ }
20099
+ }
20100
+ return msg;
20101
+ };
20102
+
20103
+
20104
+ /**
20105
+ * Serializes the message to binary data (in protobuf wire format).
20106
+ * @return {!Uint8Array}
20107
+ */
20108
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.serializeBinary = function() {
20109
+ var writer = new jspb.BinaryWriter();
20110
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.serializeBinaryToWriter(this, writer);
20111
+ return writer.getResultBuffer();
20112
+ };
20113
+
20114
+
20115
+ /**
20116
+ * Serializes the given message to binary data (in protobuf wire
20117
+ * format), writing to the given BinaryWriter.
20118
+ * @param {!proto.gateway.web.v1.AuthorizeUserLoginRequest} message
20119
+ * @param {!jspb.BinaryWriter} writer
20120
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20121
+ */
20122
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.serializeBinaryToWriter = function(message, writer) {
20123
+ var f = undefined;
20124
+ f = message.getCodeChallenge();
20125
+ if (f.length > 0) {
20126
+ writer.writeString(
20127
+ 1,
20128
+ f
20129
+ );
20130
+ }
20131
+ f = message.getRedirectPort();
20132
+ if (f !== 0) {
20133
+ writer.writeInt32(
20134
+ 2,
20135
+ f
20136
+ );
20137
+ }
20138
+ f = message.getLabel();
20139
+ if (f.length > 0) {
20140
+ writer.writeString(
20141
+ 3,
20142
+ f
20143
+ );
20144
+ }
20145
+ };
20146
+
20147
+
20148
+ /**
20149
+ * optional string code_challenge = 1;
20150
+ * @return {string}
20151
+ */
20152
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.getCodeChallenge = function() {
20153
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
20154
+ };
20155
+
20156
+
20157
+ /**
20158
+ * @param {string} value
20159
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginRequest} returns this
20160
+ */
20161
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.setCodeChallenge = function(value) {
20162
+ return jspb.Message.setProto3StringField(this, 1, value);
20163
+ };
20164
+
20165
+
20166
+ /**
20167
+ * optional int32 redirect_port = 2;
20168
+ * @return {number}
20169
+ */
20170
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.getRedirectPort = function() {
20171
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20172
+ };
20173
+
20174
+
20175
+ /**
20176
+ * @param {number} value
20177
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginRequest} returns this
20178
+ */
20179
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.setRedirectPort = function(value) {
20180
+ return jspb.Message.setProto3IntField(this, 2, value);
20181
+ };
20182
+
20183
+
20184
+ /**
20185
+ * optional string label = 3;
20186
+ * @return {string}
20187
+ */
20188
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.getLabel = function() {
20189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
20190
+ };
20191
+
20192
+
20193
+ /**
20194
+ * @param {string} value
20195
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginRequest} returns this
20196
+ */
20197
+ proto.gateway.web.v1.AuthorizeUserLoginRequest.prototype.setLabel = function(value) {
20198
+ return jspb.Message.setProto3StringField(this, 3, value);
20199
+ };
20200
+
20201
+
20202
+
20203
+
20204
+
20205
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20206
+ /**
20207
+ * Creates an object representation of this proto.
20208
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20209
+ * Optional fields that are not set will be set to undefined.
20210
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20211
+ * For the list of reserved names please see:
20212
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20213
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20214
+ * JSPB instance for transitional soy proto support:
20215
+ * http://goto/soy-param-migration
20216
+ * @return {!Object}
20217
+ */
20218
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.toObject = function(opt_includeInstance) {
20219
+ return proto.gateway.web.v1.AuthorizeUserLoginResponse.toObject(opt_includeInstance, this);
20220
+ };
20221
+
20222
+
20223
+ /**
20224
+ * Static version of the {@see toObject} method.
20225
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20226
+ * the JSPB instance for transitional soy proto support:
20227
+ * http://goto/soy-param-migration
20228
+ * @param {!proto.gateway.web.v1.AuthorizeUserLoginResponse} msg The msg instance to transform.
20229
+ * @return {!Object}
20230
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20231
+ */
20232
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.toObject = function(includeInstance, msg) {
20233
+ var f, obj = {
20234
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
20235
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
20236
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
20237
+ };
20238
+
20239
+ if (includeInstance) {
20240
+ obj.$jspbMessageInstance = msg;
20241
+ }
20242
+ return obj;
20243
+ };
20244
+ }
20245
+
20246
+
20247
+ /**
20248
+ * Deserializes binary data (in protobuf wire format).
20249
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
20250
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse}
20251
+ */
20252
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.deserializeBinary = function(bytes) {
20253
+ var reader = new jspb.BinaryReader(bytes);
20254
+ var msg = new proto.gateway.web.v1.AuthorizeUserLoginResponse;
20255
+ return proto.gateway.web.v1.AuthorizeUserLoginResponse.deserializeBinaryFromReader(msg, reader);
20256
+ };
20257
+
20258
+
20259
+ /**
20260
+ * Deserializes binary data (in protobuf wire format) from the
20261
+ * given reader into the given message object.
20262
+ * @param {!proto.gateway.web.v1.AuthorizeUserLoginResponse} msg The message object to deserialize into.
20263
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20264
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse}
20265
+ */
20266
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.deserializeBinaryFromReader = function(msg, reader) {
20267
+ while (reader.nextField()) {
20268
+ if (reader.isEndGroup()) {
20269
+ break;
20270
+ }
20271
+ var field = reader.getFieldNumber();
20272
+ switch (field) {
20273
+ case 1:
20274
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
20275
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
20276
+ msg.setStatus(value);
20277
+ break;
20278
+ case 2:
20279
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
20280
+ msg.setCode(value);
20281
+ break;
20282
+ case 3:
20283
+ var value = new google_protobuf_timestamp_pb.Timestamp;
20284
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
20285
+ msg.setExpiresAt(value);
20286
+ break;
20287
+ default:
20288
+ reader.skipField();
20289
+ break;
20290
+ }
20291
+ }
20292
+ return msg;
20293
+ };
20294
+
20295
+
20296
+ /**
20297
+ * Serializes the message to binary data (in protobuf wire format).
20298
+ * @return {!Uint8Array}
20299
+ */
20300
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.serializeBinary = function() {
20301
+ var writer = new jspb.BinaryWriter();
20302
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.serializeBinaryToWriter(this, writer);
20303
+ return writer.getResultBuffer();
20304
+ };
20305
+
20306
+
20307
+ /**
20308
+ * Serializes the given message to binary data (in protobuf wire
20309
+ * format), writing to the given BinaryWriter.
20310
+ * @param {!proto.gateway.web.v1.AuthorizeUserLoginResponse} message
20311
+ * @param {!jspb.BinaryWriter} writer
20312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20313
+ */
20314
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.serializeBinaryToWriter = function(message, writer) {
20315
+ var f = undefined;
20316
+ f = message.getStatus();
20317
+ if (f != null) {
20318
+ writer.writeMessage(
20319
+ 1,
20320
+ f,
20321
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
20322
+ );
20323
+ }
20324
+ f = message.getCode();
20325
+ if (f.length > 0) {
20326
+ writer.writeString(
20327
+ 2,
20328
+ f
20329
+ );
20330
+ }
20331
+ f = message.getExpiresAt();
20332
+ if (f != null) {
20333
+ writer.writeMessage(
20334
+ 3,
20335
+ f,
20336
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
20337
+ );
20338
+ }
20339
+ };
20340
+
20341
+
20342
+ /**
20343
+ * optional gateway.common.v1.ResponseStatus status = 1;
20344
+ * @return {?proto.gateway.common.v1.ResponseStatus}
20345
+ */
20346
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.getStatus = function() {
20347
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
20348
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
20349
+ };
20350
+
20351
+
20352
+ /**
20353
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
20354
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse} returns this
20355
+ */
20356
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.setStatus = function(value) {
20357
+ return jspb.Message.setWrapperField(this, 1, value);
20358
+ };
20359
+
20360
+
20361
+ /**
20362
+ * Clears the message field making it undefined.
20363
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse} returns this
20364
+ */
20365
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.clearStatus = function() {
20366
+ return this.setStatus(undefined);
20367
+ };
20368
+
20369
+
20370
+ /**
20371
+ * Returns whether this field is set.
20372
+ * @return {boolean}
20373
+ */
20374
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.hasStatus = function() {
20375
+ return jspb.Message.getField(this, 1) != null;
20376
+ };
20377
+
20378
+
20379
+ /**
20380
+ * optional string code = 2;
20381
+ * @return {string}
20382
+ */
20383
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.getCode = function() {
20384
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20385
+ };
20386
+
20387
+
20388
+ /**
20389
+ * @param {string} value
20390
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse} returns this
20391
+ */
20392
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.setCode = function(value) {
20393
+ return jspb.Message.setProto3StringField(this, 2, value);
20394
+ };
20395
+
20396
+
20397
+ /**
20398
+ * optional google.protobuf.Timestamp expires_at = 3;
20399
+ * @return {?proto.google.protobuf.Timestamp}
20400
+ */
20401
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.getExpiresAt = function() {
20402
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
20403
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
20404
+ };
20405
+
20406
+
20407
+ /**
20408
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
20409
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse} returns this
20410
+ */
20411
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.setExpiresAt = function(value) {
20412
+ return jspb.Message.setWrapperField(this, 3, value);
20413
+ };
20414
+
20415
+
20416
+ /**
20417
+ * Clears the message field making it undefined.
20418
+ * @return {!proto.gateway.web.v1.AuthorizeUserLoginResponse} returns this
20419
+ */
20420
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.clearExpiresAt = function() {
20421
+ return this.setExpiresAt(undefined);
20422
+ };
20423
+
20424
+
20425
+ /**
20426
+ * Returns whether this field is set.
20427
+ * @return {boolean}
20428
+ */
20429
+ proto.gateway.web.v1.AuthorizeUserLoginResponse.prototype.hasExpiresAt = function() {
20430
+ return jspb.Message.getField(this, 3) != null;
20431
+ };
20432
+
20433
+
20434
+
20435
+
20436
+
19971
20437
  if (jspb.Message.GENERATE_TO_OBJECT) {
19972
20438
  /**
19973
20439
  * Creates an object representation of this proto.
@@ -438,7 +438,7 @@ export interface CreateClaudeEnterpriseKeyRequest {
438
438
  billingModel: ClaudeEnterpriseBillingModel;
439
439
  /**
440
440
  * The Terma team imported activity goes to: an active team of the organization, never the demo, with a capture
441
- * policy that covers every repository. Required when this key creates the connection; on a later key, set changes
441
+ * policy, global or per-repository. Required when this key creates the connection; on a later key, set changes
442
442
  * the team and empty keeps it. Saved even when the key cannot read user content: nothing is imported until a key
443
443
  * that can is added.
444
444
  */