@miradorlabs/web-grpc 4.19.0 → 4.21.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.
@@ -69,7 +69,9 @@ goog.exportSymbol('proto.gateway.web.v1.LogonResponse', null, global);
69
69
  goog.exportSymbol('proto.gateway.web.v1.McpClientKind', null, global);
70
70
  goog.exportSymbol('proto.gateway.web.v1.OnboardingStatus', null, global);
71
71
  goog.exportSymbol('proto.gateway.web.v1.Organization', null, global);
72
+ goog.exportSymbol('proto.gateway.web.v1.OrganizationFilter', null, global);
72
73
  goog.exportSymbol('proto.gateway.web.v1.OrganizationStatus', null, global);
74
+ goog.exportSymbol('proto.gateway.web.v1.OrganizationType', null, global);
73
75
  goog.exportSymbol('proto.gateway.web.v1.OrganizationUser', null, global);
74
76
  goog.exportSymbol('proto.gateway.web.v1.ProductFeatures', null, global);
75
77
  goog.exportSymbol('proto.gateway.web.v1.Project', null, global);
@@ -138,6 +140,27 @@ if (goog.DEBUG && !COMPILED) {
138
140
  */
139
141
  proto.gateway.web.v1.LogonRequest.displayName = 'proto.gateway.web.v1.LogonRequest';
140
142
  }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.gateway.web.v1.OrganizationFilter = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.OrganizationFilter.repeatedFields_, null);
155
+ };
156
+ goog.inherits(proto.gateway.web.v1.OrganizationFilter, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.gateway.web.v1.OrganizationFilter.displayName = 'proto.gateway.web.v1.OrganizationFilter';
163
+ }
141
164
  /**
142
165
  * Generated by JsPbCodeGenerator.
143
166
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1955,7 +1978,8 @@ proto.gateway.web.v1.LogonRequest.prototype.toObject = function(opt_includeInsta
1955
1978
  */
1956
1979
  proto.gateway.web.v1.LogonRequest.toObject = function(includeInstance, msg) {
1957
1980
  var f, obj = {
1958
- invitationId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
1981
+ invitationId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
1982
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.OrganizationFilter.toObject(includeInstance, f)
1959
1983
  };
1960
1984
 
1961
1985
  if (includeInstance) {
@@ -1996,6 +2020,11 @@ proto.gateway.web.v1.LogonRequest.deserializeBinaryFromReader = function(msg, re
1996
2020
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1997
2021
  msg.setInvitationId(value);
1998
2022
  break;
2023
+ case 2:
2024
+ var value = new proto.gateway.web.v1.OrganizationFilter;
2025
+ reader.readMessage(value,proto.gateway.web.v1.OrganizationFilter.deserializeBinaryFromReader);
2026
+ msg.setFilter(value);
2027
+ break;
1999
2028
  default:
2000
2029
  reader.skipField();
2001
2030
  break;
@@ -2032,6 +2061,14 @@ proto.gateway.web.v1.LogonRequest.serializeBinaryToWriter = function(message, wr
2032
2061
  f
2033
2062
  );
2034
2063
  }
2064
+ f = message.getFilter();
2065
+ if (f != null) {
2066
+ writer.writeMessage(
2067
+ 2,
2068
+ f,
2069
+ proto.gateway.web.v1.OrganizationFilter.serializeBinaryToWriter
2070
+ );
2071
+ }
2035
2072
  };
2036
2073
 
2037
2074
 
@@ -2071,6 +2108,198 @@ proto.gateway.web.v1.LogonRequest.prototype.hasInvitationId = function() {
2071
2108
  };
2072
2109
 
2073
2110
 
2111
+ /**
2112
+ * optional OrganizationFilter filter = 2;
2113
+ * @return {?proto.gateway.web.v1.OrganizationFilter}
2114
+ */
2115
+ proto.gateway.web.v1.LogonRequest.prototype.getFilter = function() {
2116
+ return /** @type{?proto.gateway.web.v1.OrganizationFilter} */ (
2117
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.OrganizationFilter, 2));
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * @param {?proto.gateway.web.v1.OrganizationFilter|undefined} value
2123
+ * @return {!proto.gateway.web.v1.LogonRequest} returns this
2124
+ */
2125
+ proto.gateway.web.v1.LogonRequest.prototype.setFilter = function(value) {
2126
+ return jspb.Message.setWrapperField(this, 2, value);
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * Clears the message field making it undefined.
2132
+ * @return {!proto.gateway.web.v1.LogonRequest} returns this
2133
+ */
2134
+ proto.gateway.web.v1.LogonRequest.prototype.clearFilter = function() {
2135
+ return this.setFilter(undefined);
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * Returns whether this field is set.
2141
+ * @return {boolean}
2142
+ */
2143
+ proto.gateway.web.v1.LogonRequest.prototype.hasFilter = function() {
2144
+ return jspb.Message.getField(this, 2) != null;
2145
+ };
2146
+
2147
+
2148
+
2149
+ /**
2150
+ * List of repeated fields within this message type.
2151
+ * @private {!Array<number>}
2152
+ * @const
2153
+ */
2154
+ proto.gateway.web.v1.OrganizationFilter.repeatedFields_ = [1];
2155
+
2156
+
2157
+
2158
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2159
+ /**
2160
+ * Creates an object representation of this proto.
2161
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2162
+ * Optional fields that are not set will be set to undefined.
2163
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2164
+ * For the list of reserved names please see:
2165
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2166
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2167
+ * JSPB instance for transitional soy proto support:
2168
+ * http://goto/soy-param-migration
2169
+ * @return {!Object}
2170
+ */
2171
+ proto.gateway.web.v1.OrganizationFilter.prototype.toObject = function(opt_includeInstance) {
2172
+ return proto.gateway.web.v1.OrganizationFilter.toObject(opt_includeInstance, this);
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * Static version of the {@see toObject} method.
2178
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2179
+ * the JSPB instance for transitional soy proto support:
2180
+ * http://goto/soy-param-migration
2181
+ * @param {!proto.gateway.web.v1.OrganizationFilter} msg The msg instance to transform.
2182
+ * @return {!Object}
2183
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2184
+ */
2185
+ proto.gateway.web.v1.OrganizationFilter.toObject = function(includeInstance, msg) {
2186
+ var f, obj = {
2187
+ organizationTypesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2188
+ };
2189
+
2190
+ if (includeInstance) {
2191
+ obj.$jspbMessageInstance = msg;
2192
+ }
2193
+ return obj;
2194
+ };
2195
+ }
2196
+
2197
+
2198
+ /**
2199
+ * Deserializes binary data (in protobuf wire format).
2200
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
2201
+ * @return {!proto.gateway.web.v1.OrganizationFilter}
2202
+ */
2203
+ proto.gateway.web.v1.OrganizationFilter.deserializeBinary = function(bytes) {
2204
+ var reader = new jspb.BinaryReader(bytes);
2205
+ var msg = new proto.gateway.web.v1.OrganizationFilter;
2206
+ return proto.gateway.web.v1.OrganizationFilter.deserializeBinaryFromReader(msg, reader);
2207
+ };
2208
+
2209
+
2210
+ /**
2211
+ * Deserializes binary data (in protobuf wire format) from the
2212
+ * given reader into the given message object.
2213
+ * @param {!proto.gateway.web.v1.OrganizationFilter} msg The message object to deserialize into.
2214
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2215
+ * @return {!proto.gateway.web.v1.OrganizationFilter}
2216
+ */
2217
+ proto.gateway.web.v1.OrganizationFilter.deserializeBinaryFromReader = function(msg, reader) {
2218
+ while (reader.nextField()) {
2219
+ if (reader.isEndGroup()) {
2220
+ break;
2221
+ }
2222
+ var field = reader.getFieldNumber();
2223
+ switch (field) {
2224
+ case 1:
2225
+ reader.readPackableEnumInto(msg.getOrganizationTypesList());
2226
+ break;
2227
+ default:
2228
+ reader.skipField();
2229
+ break;
2230
+ }
2231
+ }
2232
+ return msg;
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * Serializes the message to binary data (in protobuf wire format).
2238
+ * @return {!Uint8Array}
2239
+ */
2240
+ proto.gateway.web.v1.OrganizationFilter.prototype.serializeBinary = function() {
2241
+ var writer = new jspb.BinaryWriter();
2242
+ proto.gateway.web.v1.OrganizationFilter.serializeBinaryToWriter(this, writer);
2243
+ return writer.getResultBuffer();
2244
+ };
2245
+
2246
+
2247
+ /**
2248
+ * Serializes the given message to binary data (in protobuf wire
2249
+ * format), writing to the given BinaryWriter.
2250
+ * @param {!proto.gateway.web.v1.OrganizationFilter} message
2251
+ * @param {!jspb.BinaryWriter} writer
2252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2253
+ */
2254
+ proto.gateway.web.v1.OrganizationFilter.serializeBinaryToWriter = function(message, writer) {
2255
+ var f = undefined;
2256
+ f = message.getOrganizationTypesList();
2257
+ if (f.length > 0) {
2258
+ writer.writePackedEnum(
2259
+ 1,
2260
+ f
2261
+ );
2262
+ }
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * repeated OrganizationType organization_types = 1;
2268
+ * @return {!Array<!proto.gateway.web.v1.OrganizationType>}
2269
+ */
2270
+ proto.gateway.web.v1.OrganizationFilter.prototype.getOrganizationTypesList = function() {
2271
+ return /** @type {!Array<!proto.gateway.web.v1.OrganizationType>} */ (jspb.Message.getRepeatedField(this, 1));
2272
+ };
2273
+
2274
+
2275
+ /**
2276
+ * @param {!Array<!proto.gateway.web.v1.OrganizationType>} value
2277
+ * @return {!proto.gateway.web.v1.OrganizationFilter} returns this
2278
+ */
2279
+ proto.gateway.web.v1.OrganizationFilter.prototype.setOrganizationTypesList = function(value) {
2280
+ return jspb.Message.setField(this, 1, value || []);
2281
+ };
2282
+
2283
+
2284
+ /**
2285
+ * @param {!proto.gateway.web.v1.OrganizationType} value
2286
+ * @param {number=} opt_index
2287
+ * @return {!proto.gateway.web.v1.OrganizationFilter} returns this
2288
+ */
2289
+ proto.gateway.web.v1.OrganizationFilter.prototype.addOrganizationTypes = function(value, opt_index) {
2290
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * Clears the list making it empty but non-null.
2296
+ * @return {!proto.gateway.web.v1.OrganizationFilter} returns this
2297
+ */
2298
+ proto.gateway.web.v1.OrganizationFilter.prototype.clearOrganizationTypesList = function() {
2299
+ return this.setOrganizationTypesList([]);
2300
+ };
2301
+
2302
+
2074
2303
 
2075
2304
  /**
2076
2305
  * List of repeated fields within this message type.
@@ -2957,7 +3186,8 @@ organizationStatus: jspb.Message.getFieldWithDefault(msg, 3, 0),
2957
3186
  onboardingStatus: jspb.Message.getFieldWithDefault(msg, 4, 0),
2958
3187
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2959
3188
  updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2960
- timeZone: jspb.Message.getFieldWithDefault(msg, 7, "")
3189
+ timeZone: jspb.Message.getFieldWithDefault(msg, 7, ""),
3190
+ organizationType: jspb.Message.getFieldWithDefault(msg, 8, 0)
2961
3191
  };
2962
3192
 
2963
3193
  if (includeInstance) {
@@ -3024,6 +3254,10 @@ proto.gateway.web.v1.Organization.deserializeBinaryFromReader = function(msg, re
3024
3254
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
3025
3255
  msg.setTimeZone(value);
3026
3256
  break;
3257
+ case 8:
3258
+ var value = /** @type {!proto.gateway.web.v1.OrganizationType} */ (reader.readEnum());
3259
+ msg.setOrganizationType(value);
3260
+ break;
3027
3261
  default:
3028
3262
  reader.skipField();
3029
3263
  break;
@@ -3104,6 +3338,13 @@ proto.gateway.web.v1.Organization.serializeBinaryToWriter = function(message, wr
3104
3338
  f
3105
3339
  );
3106
3340
  }
3341
+ f = message.getOrganizationType();
3342
+ if (f !== 0.0) {
3343
+ writer.writeEnum(
3344
+ 8,
3345
+ f
3346
+ );
3347
+ }
3107
3348
  };
3108
3349
 
3109
3350
 
@@ -3271,6 +3512,24 @@ proto.gateway.web.v1.Organization.prototype.setTimeZone = function(value) {
3271
3512
  };
3272
3513
 
3273
3514
 
3515
+ /**
3516
+ * optional OrganizationType organization_type = 8;
3517
+ * @return {!proto.gateway.web.v1.OrganizationType}
3518
+ */
3519
+ proto.gateway.web.v1.Organization.prototype.getOrganizationType = function() {
3520
+ return /** @type {!proto.gateway.web.v1.OrganizationType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * @param {!proto.gateway.web.v1.OrganizationType} value
3526
+ * @return {!proto.gateway.web.v1.Organization} returns this
3527
+ */
3528
+ proto.gateway.web.v1.Organization.prototype.setOrganizationType = function(value) {
3529
+ return jspb.Message.setProto3EnumField(this, 8, value);
3530
+ };
3531
+
3532
+
3274
3533
 
3275
3534
 
3276
3535
 
@@ -19938,6 +20197,15 @@ proto.gateway.web.v1.OrganizationStatus = {
19938
20197
  ORGANIZATION_STATUS_DEACTIVATED: 2
19939
20198
  };
19940
20199
 
20200
+ /**
20201
+ * @enum {number}
20202
+ */
20203
+ proto.gateway.web.v1.OrganizationType = {
20204
+ ORGANIZATION_TYPE_UNSPECIFIED: 0,
20205
+ ORGANIZATION_TYPE_PERSONAL: 1,
20206
+ ORGANIZATION_TYPE_SHARED: 2
20207
+ };
20208
+
19941
20209
  /**
19942
20210
  * @enum {number}
19943
20211
  */