@sellout/models 0.0.421 → 0.0.422

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.
@@ -81135,6 +81135,7 @@ $root.Organization = (function() {
81135
81135
  * @property {boolean|null} [isOrgDeletable] Organization isOrgDeletable
81136
81136
  * @property {boolean|null} [isWeb3Integration] Organization isWeb3Integration
81137
81137
  * @property {string|null} [ticketShareExpiration] Organization ticketShareExpiration
81138
+ * @property {IHiveIntegration|null} [hiveIntegration] Organization hiveIntegration
81138
81139
  */
81139
81140
 
81140
81141
  /**
@@ -81369,6 +81370,14 @@ $root.Organization = (function() {
81369
81370
  */
81370
81371
  Organization.prototype.ticketShareExpiration = "";
81371
81372
 
81373
+ /**
81374
+ * Organization hiveIntegration.
81375
+ * @member {IHiveIntegration|null|undefined} hiveIntegration
81376
+ * @memberof Organization
81377
+ * @instance
81378
+ */
81379
+ Organization.prototype.hiveIntegration = null;
81380
+
81372
81381
  /**
81373
81382
  * Creates a new Organization instance using the specified properties.
81374
81383
  * @function create
@@ -81448,6 +81457,8 @@ $root.Organization = (function() {
81448
81457
  writer.uint32(/* id 25, wireType 0 =*/200).bool(message.isWeb3Integration);
81449
81458
  if (message.ticketShareExpiration != null && Object.hasOwnProperty.call(message, "ticketShareExpiration"))
81450
81459
  writer.uint32(/* id 26, wireType 2 =*/210).string(message.ticketShareExpiration);
81460
+ if (message.hiveIntegration != null && Object.hasOwnProperty.call(message, "hiveIntegration"))
81461
+ $root.HiveIntegration.encode(message.hiveIntegration, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
81451
81462
  return writer;
81452
81463
  };
81453
81464
 
@@ -81565,6 +81576,9 @@ $root.Organization = (function() {
81565
81576
  case 26:
81566
81577
  message.ticketShareExpiration = reader.string();
81567
81578
  break;
81579
+ case 27:
81580
+ message.hiveIntegration = $root.HiveIntegration.decode(reader, reader.uint32());
81581
+ break;
81568
81582
  default:
81569
81583
  reader.skipType(tag & 7);
81570
81584
  break;
@@ -81689,6 +81703,11 @@ $root.Organization = (function() {
81689
81703
  if (message.ticketShareExpiration != null && message.hasOwnProperty("ticketShareExpiration"))
81690
81704
  if (!$util.isString(message.ticketShareExpiration))
81691
81705
  return "ticketShareExpiration: string expected";
81706
+ if (message.hiveIntegration != null && message.hasOwnProperty("hiveIntegration")) {
81707
+ var error = $root.HiveIntegration.verify(message.hiveIntegration);
81708
+ if (error)
81709
+ return "hiveIntegration." + error;
81710
+ }
81692
81711
  return null;
81693
81712
  };
81694
81713
 
@@ -81769,6 +81788,11 @@ $root.Organization = (function() {
81769
81788
  message.isWeb3Integration = Boolean(object.isWeb3Integration);
81770
81789
  if (object.ticketShareExpiration != null)
81771
81790
  message.ticketShareExpiration = String(object.ticketShareExpiration);
81791
+ if (object.hiveIntegration != null) {
81792
+ if (typeof object.hiveIntegration !== "object")
81793
+ throw TypeError(".Organization.hiveIntegration: object expected");
81794
+ message.hiveIntegration = $root.HiveIntegration.fromObject(object.hiveIntegration);
81795
+ }
81772
81796
  return message;
81773
81797
  };
81774
81798
 
@@ -81814,6 +81838,7 @@ $root.Organization = (function() {
81814
81838
  object.isOrgDeletable = false;
81815
81839
  object.isWeb3Integration = false;
81816
81840
  object.ticketShareExpiration = "";
81841
+ object.hiveIntegration = null;
81817
81842
  }
81818
81843
  if (message._id != null && message.hasOwnProperty("_id"))
81819
81844
  object._id = message._id;
@@ -81872,6 +81897,8 @@ $root.Organization = (function() {
81872
81897
  object.isWeb3Integration = message.isWeb3Integration;
81873
81898
  if (message.ticketShareExpiration != null && message.hasOwnProperty("ticketShareExpiration"))
81874
81899
  object.ticketShareExpiration = message.ticketShareExpiration;
81900
+ if (message.hiveIntegration != null && message.hasOwnProperty("hiveIntegration"))
81901
+ object.hiveIntegration = $root.HiveIntegration.toObject(message.hiveIntegration, options);
81875
81902
  return object;
81876
81903
  };
81877
81904
 
@@ -82121,6 +82148,304 @@ $root.OrderIntegration = (function() {
82121
82148
  return OrderIntegration;
82122
82149
  })();
82123
82150
 
82151
+ $root.HiveIntegration = (function() {
82152
+
82153
+ /**
82154
+ * Properties of a HiveIntegration.
82155
+ * @exports IHiveIntegration
82156
+ * @interface IHiveIntegration
82157
+ * @property {boolean|null} [isHiveIntegration] HiveIntegration isHiveIntegration
82158
+ * @property {string|null} [accessToken] HiveIntegration accessToken
82159
+ * @property {string|null} [refreshToken] HiveIntegration refreshToken
82160
+ * @property {number|null} [tokenExpiresAt] HiveIntegration tokenExpiresAt
82161
+ * @property {string|null} [clientId] HiveIntegration clientId
82162
+ * @property {string|null} [clientSecret] HiveIntegration clientSecret
82163
+ */
82164
+
82165
+ /**
82166
+ * Constructs a new HiveIntegration.
82167
+ * @exports HiveIntegration
82168
+ * @classdesc Represents a HiveIntegration.
82169
+ * @implements IHiveIntegration
82170
+ * @constructor
82171
+ * @param {IHiveIntegration=} [properties] Properties to set
82172
+ */
82173
+ function HiveIntegration(properties) {
82174
+ if (properties)
82175
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
82176
+ if (properties[keys[i]] != null)
82177
+ this[keys[i]] = properties[keys[i]];
82178
+ }
82179
+
82180
+ /**
82181
+ * HiveIntegration isHiveIntegration.
82182
+ * @member {boolean} isHiveIntegration
82183
+ * @memberof HiveIntegration
82184
+ * @instance
82185
+ */
82186
+ HiveIntegration.prototype.isHiveIntegration = false;
82187
+
82188
+ /**
82189
+ * HiveIntegration accessToken.
82190
+ * @member {string} accessToken
82191
+ * @memberof HiveIntegration
82192
+ * @instance
82193
+ */
82194
+ HiveIntegration.prototype.accessToken = "";
82195
+
82196
+ /**
82197
+ * HiveIntegration refreshToken.
82198
+ * @member {string} refreshToken
82199
+ * @memberof HiveIntegration
82200
+ * @instance
82201
+ */
82202
+ HiveIntegration.prototype.refreshToken = "";
82203
+
82204
+ /**
82205
+ * HiveIntegration tokenExpiresAt.
82206
+ * @member {number} tokenExpiresAt
82207
+ * @memberof HiveIntegration
82208
+ * @instance
82209
+ */
82210
+ HiveIntegration.prototype.tokenExpiresAt = 0;
82211
+
82212
+ /**
82213
+ * HiveIntegration clientId.
82214
+ * @member {string} clientId
82215
+ * @memberof HiveIntegration
82216
+ * @instance
82217
+ */
82218
+ HiveIntegration.prototype.clientId = "";
82219
+
82220
+ /**
82221
+ * HiveIntegration clientSecret.
82222
+ * @member {string} clientSecret
82223
+ * @memberof HiveIntegration
82224
+ * @instance
82225
+ */
82226
+ HiveIntegration.prototype.clientSecret = "";
82227
+
82228
+ /**
82229
+ * Creates a new HiveIntegration instance using the specified properties.
82230
+ * @function create
82231
+ * @memberof HiveIntegration
82232
+ * @static
82233
+ * @param {IHiveIntegration=} [properties] Properties to set
82234
+ * @returns {HiveIntegration} HiveIntegration instance
82235
+ */
82236
+ HiveIntegration.create = function create(properties) {
82237
+ return new HiveIntegration(properties);
82238
+ };
82239
+
82240
+ /**
82241
+ * Encodes the specified HiveIntegration message. Does not implicitly {@link HiveIntegration.verify|verify} messages.
82242
+ * @function encode
82243
+ * @memberof HiveIntegration
82244
+ * @static
82245
+ * @param {IHiveIntegration} message HiveIntegration message or plain object to encode
82246
+ * @param {$protobuf.Writer} [writer] Writer to encode to
82247
+ * @returns {$protobuf.Writer} Writer
82248
+ */
82249
+ HiveIntegration.encode = function encode(message, writer) {
82250
+ if (!writer)
82251
+ writer = $Writer.create();
82252
+ if (message.isHiveIntegration != null && Object.hasOwnProperty.call(message, "isHiveIntegration"))
82253
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isHiveIntegration);
82254
+ if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken"))
82255
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.accessToken);
82256
+ if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
82257
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.refreshToken);
82258
+ if (message.tokenExpiresAt != null && Object.hasOwnProperty.call(message, "tokenExpiresAt"))
82259
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tokenExpiresAt);
82260
+ if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId"))
82261
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.clientId);
82262
+ if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
82263
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientSecret);
82264
+ return writer;
82265
+ };
82266
+
82267
+ /**
82268
+ * Encodes the specified HiveIntegration message, length delimited. Does not implicitly {@link HiveIntegration.verify|verify} messages.
82269
+ * @function encodeDelimited
82270
+ * @memberof HiveIntegration
82271
+ * @static
82272
+ * @param {IHiveIntegration} message HiveIntegration message or plain object to encode
82273
+ * @param {$protobuf.Writer} [writer] Writer to encode to
82274
+ * @returns {$protobuf.Writer} Writer
82275
+ */
82276
+ HiveIntegration.encodeDelimited = function encodeDelimited(message, writer) {
82277
+ return this.encode(message, writer).ldelim();
82278
+ };
82279
+
82280
+ /**
82281
+ * Decodes a HiveIntegration message from the specified reader or buffer.
82282
+ * @function decode
82283
+ * @memberof HiveIntegration
82284
+ * @static
82285
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
82286
+ * @param {number} [length] Message length if known beforehand
82287
+ * @returns {HiveIntegration} HiveIntegration
82288
+ * @throws {Error} If the payload is not a reader or valid buffer
82289
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
82290
+ */
82291
+ HiveIntegration.decode = function decode(reader, length) {
82292
+ if (!(reader instanceof $Reader))
82293
+ reader = $Reader.create(reader);
82294
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.HiveIntegration();
82295
+ while (reader.pos < end) {
82296
+ var tag = reader.uint32();
82297
+ switch (tag >>> 3) {
82298
+ case 1:
82299
+ message.isHiveIntegration = reader.bool();
82300
+ break;
82301
+ case 2:
82302
+ message.accessToken = reader.string();
82303
+ break;
82304
+ case 3:
82305
+ message.refreshToken = reader.string();
82306
+ break;
82307
+ case 4:
82308
+ message.tokenExpiresAt = reader.int32();
82309
+ break;
82310
+ case 5:
82311
+ message.clientId = reader.string();
82312
+ break;
82313
+ case 6:
82314
+ message.clientSecret = reader.string();
82315
+ break;
82316
+ default:
82317
+ reader.skipType(tag & 7);
82318
+ break;
82319
+ }
82320
+ }
82321
+ return message;
82322
+ };
82323
+
82324
+ /**
82325
+ * Decodes a HiveIntegration message from the specified reader or buffer, length delimited.
82326
+ * @function decodeDelimited
82327
+ * @memberof HiveIntegration
82328
+ * @static
82329
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
82330
+ * @returns {HiveIntegration} HiveIntegration
82331
+ * @throws {Error} If the payload is not a reader or valid buffer
82332
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
82333
+ */
82334
+ HiveIntegration.decodeDelimited = function decodeDelimited(reader) {
82335
+ if (!(reader instanceof $Reader))
82336
+ reader = new $Reader(reader);
82337
+ return this.decode(reader, reader.uint32());
82338
+ };
82339
+
82340
+ /**
82341
+ * Verifies a HiveIntegration message.
82342
+ * @function verify
82343
+ * @memberof HiveIntegration
82344
+ * @static
82345
+ * @param {Object.<string,*>} message Plain object to verify
82346
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
82347
+ */
82348
+ HiveIntegration.verify = function verify(message) {
82349
+ if (typeof message !== "object" || message === null)
82350
+ return "object expected";
82351
+ if (message.isHiveIntegration != null && message.hasOwnProperty("isHiveIntegration"))
82352
+ if (typeof message.isHiveIntegration !== "boolean")
82353
+ return "isHiveIntegration: boolean expected";
82354
+ if (message.accessToken != null && message.hasOwnProperty("accessToken"))
82355
+ if (!$util.isString(message.accessToken))
82356
+ return "accessToken: string expected";
82357
+ if (message.refreshToken != null && message.hasOwnProperty("refreshToken"))
82358
+ if (!$util.isString(message.refreshToken))
82359
+ return "refreshToken: string expected";
82360
+ if (message.tokenExpiresAt != null && message.hasOwnProperty("tokenExpiresAt"))
82361
+ if (!$util.isInteger(message.tokenExpiresAt))
82362
+ return "tokenExpiresAt: integer expected";
82363
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
82364
+ if (!$util.isString(message.clientId))
82365
+ return "clientId: string expected";
82366
+ if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
82367
+ if (!$util.isString(message.clientSecret))
82368
+ return "clientSecret: string expected";
82369
+ return null;
82370
+ };
82371
+
82372
+ /**
82373
+ * Creates a HiveIntegration message from a plain object. Also converts values to their respective internal types.
82374
+ * @function fromObject
82375
+ * @memberof HiveIntegration
82376
+ * @static
82377
+ * @param {Object.<string,*>} object Plain object
82378
+ * @returns {HiveIntegration} HiveIntegration
82379
+ */
82380
+ HiveIntegration.fromObject = function fromObject(object) {
82381
+ if (object instanceof $root.HiveIntegration)
82382
+ return object;
82383
+ var message = new $root.HiveIntegration();
82384
+ if (object.isHiveIntegration != null)
82385
+ message.isHiveIntegration = Boolean(object.isHiveIntegration);
82386
+ if (object.accessToken != null)
82387
+ message.accessToken = String(object.accessToken);
82388
+ if (object.refreshToken != null)
82389
+ message.refreshToken = String(object.refreshToken);
82390
+ if (object.tokenExpiresAt != null)
82391
+ message.tokenExpiresAt = object.tokenExpiresAt | 0;
82392
+ if (object.clientId != null)
82393
+ message.clientId = String(object.clientId);
82394
+ if (object.clientSecret != null)
82395
+ message.clientSecret = String(object.clientSecret);
82396
+ return message;
82397
+ };
82398
+
82399
+ /**
82400
+ * Creates a plain object from a HiveIntegration message. Also converts values to other types if specified.
82401
+ * @function toObject
82402
+ * @memberof HiveIntegration
82403
+ * @static
82404
+ * @param {HiveIntegration} message HiveIntegration
82405
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
82406
+ * @returns {Object.<string,*>} Plain object
82407
+ */
82408
+ HiveIntegration.toObject = function toObject(message, options) {
82409
+ if (!options)
82410
+ options = {};
82411
+ var object = {};
82412
+ if (options.defaults) {
82413
+ object.isHiveIntegration = false;
82414
+ object.accessToken = "";
82415
+ object.refreshToken = "";
82416
+ object.tokenExpiresAt = 0;
82417
+ object.clientId = "";
82418
+ object.clientSecret = "";
82419
+ }
82420
+ if (message.isHiveIntegration != null && message.hasOwnProperty("isHiveIntegration"))
82421
+ object.isHiveIntegration = message.isHiveIntegration;
82422
+ if (message.accessToken != null && message.hasOwnProperty("accessToken"))
82423
+ object.accessToken = message.accessToken;
82424
+ if (message.refreshToken != null && message.hasOwnProperty("refreshToken"))
82425
+ object.refreshToken = message.refreshToken;
82426
+ if (message.tokenExpiresAt != null && message.hasOwnProperty("tokenExpiresAt"))
82427
+ object.tokenExpiresAt = message.tokenExpiresAt;
82428
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
82429
+ object.clientId = message.clientId;
82430
+ if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
82431
+ object.clientSecret = message.clientSecret;
82432
+ return object;
82433
+ };
82434
+
82435
+ /**
82436
+ * Converts this HiveIntegration to JSON.
82437
+ * @function toJSON
82438
+ * @memberof HiveIntegration
82439
+ * @instance
82440
+ * @returns {Object.<string,*>} JSON object
82441
+ */
82442
+ HiveIntegration.prototype.toJSON = function toJSON() {
82443
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
82444
+ };
82445
+
82446
+ return HiveIntegration;
82447
+ })();
82448
+
82124
82449
  $root.CreateOrganizationRequest = (function() {
82125
82450
 
82126
82451
  /**
@@ -86624,107 +86949,712 @@ $root.RemoveOrganizationStripeIdResponse = (function() {
86624
86949
  return RemoveOrganizationStripeIdResponse;
86625
86950
  })();
86626
86951
 
86627
- $root.OrganizationService = (function() {
86952
+ $root.ConnectHiveRequest = (function() {
86628
86953
 
86629
86954
  /**
86630
- * Constructs a new OrganizationService service.
86631
- * @exports OrganizationService
86632
- * @classdesc Represents an OrganizationService
86633
- * @extends $protobuf.rpc.Service
86634
- * @constructor
86635
- * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
86636
- * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
86637
- * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
86955
+ * Properties of a ConnectHiveRequest.
86956
+ * @exports IConnectHiveRequest
86957
+ * @interface IConnectHiveRequest
86958
+ * @property {string|null} [spanContext] ConnectHiveRequest spanContext
86959
+ * @property {string|null} [orgId] ConnectHiveRequest orgId
86960
+ * @property {string|null} [code] ConnectHiveRequest code
86961
+ * @property {string|null} [codeVerifier] ConnectHiveRequest codeVerifier
86962
+ * @property {string|null} [clientId] ConnectHiveRequest clientId
86963
+ * @property {string|null} [clientSecret] ConnectHiveRequest clientSecret
86638
86964
  */
86639
- function OrganizationService(rpcImpl, requestDelimited, responseDelimited) {
86640
- $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
86641
- }
86642
-
86643
- (OrganizationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = OrganizationService;
86644
86965
 
86645
86966
  /**
86646
- * Creates new OrganizationService service using the specified rpc implementation.
86647
- * @function create
86648
- * @memberof OrganizationService
86649
- * @static
86650
- * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
86651
- * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
86652
- * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
86653
- * @returns {OrganizationService} RPC service. Useful where requests and/or responses are streamed.
86967
+ * Constructs a new ConnectHiveRequest.
86968
+ * @exports ConnectHiveRequest
86969
+ * @classdesc Represents a ConnectHiveRequest.
86970
+ * @implements IConnectHiveRequest
86971
+ * @constructor
86972
+ * @param {IConnectHiveRequest=} [properties] Properties to set
86654
86973
  */
86655
- OrganizationService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
86656
- return new this(rpcImpl, requestDelimited, responseDelimited);
86657
- };
86974
+ function ConnectHiveRequest(properties) {
86975
+ if (properties)
86976
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
86977
+ if (properties[keys[i]] != null)
86978
+ this[keys[i]] = properties[keys[i]];
86979
+ }
86658
86980
 
86659
86981
  /**
86660
- * Callback as used by {@link OrganizationService#createOrganization}.
86661
- * @memberof OrganizationService
86662
- * @typedef createOrganizationCallback
86663
- * @type {function}
86664
- * @param {Error|null} error Error, if any
86665
- * @param {CreateOrganizationResponse} [response] CreateOrganizationResponse
86982
+ * ConnectHiveRequest spanContext.
86983
+ * @member {string} spanContext
86984
+ * @memberof ConnectHiveRequest
86985
+ * @instance
86666
86986
  */
86987
+ ConnectHiveRequest.prototype.spanContext = "";
86667
86988
 
86668
86989
  /**
86669
- * Calls createOrganization.
86670
- * @function createOrganization
86671
- * @memberof OrganizationService
86990
+ * ConnectHiveRequest orgId.
86991
+ * @member {string} orgId
86992
+ * @memberof ConnectHiveRequest
86672
86993
  * @instance
86673
- * @param {ICreateOrganizationRequest} request CreateOrganizationRequest message or plain object
86674
- * @param {OrganizationService.createOrganizationCallback} callback Node-style callback called with the error, if any, and CreateOrganizationResponse
86675
- * @returns {undefined}
86676
- * @variation 1
86677
86994
  */
86678
- Object.defineProperty(OrganizationService.prototype.createOrganization = function createOrganization(request, callback) {
86679
- return this.rpcCall(createOrganization, $root.CreateOrganizationRequest, $root.CreateOrganizationResponse, request, callback);
86680
- }, "name", { value: "createOrganization" });
86995
+ ConnectHiveRequest.prototype.orgId = "";
86681
86996
 
86682
86997
  /**
86683
- * Calls createOrganization.
86684
- * @function createOrganization
86685
- * @memberof OrganizationService
86998
+ * ConnectHiveRequest code.
86999
+ * @member {string} code
87000
+ * @memberof ConnectHiveRequest
86686
87001
  * @instance
86687
- * @param {ICreateOrganizationRequest} request CreateOrganizationRequest message or plain object
86688
- * @returns {Promise<CreateOrganizationResponse>} Promise
86689
- * @variation 2
86690
87002
  */
87003
+ ConnectHiveRequest.prototype.code = "";
86691
87004
 
86692
87005
  /**
86693
- * Callback as used by {@link OrganizationService#listOrganizationUrls}.
86694
- * @memberof OrganizationService
86695
- * @typedef listOrganizationUrlsCallback
86696
- * @type {function}
86697
- * @param {Error|null} error Error, if any
86698
- * @param {ListOrganizationUrlsResponse} [response] ListOrganizationUrlsResponse
87006
+ * ConnectHiveRequest codeVerifier.
87007
+ * @member {string} codeVerifier
87008
+ * @memberof ConnectHiveRequest
87009
+ * @instance
86699
87010
  */
87011
+ ConnectHiveRequest.prototype.codeVerifier = "";
86700
87012
 
86701
87013
  /**
86702
- * Calls listOrganizationUrls.
86703
- * @function listOrganizationUrls
86704
- * @memberof OrganizationService
87014
+ * ConnectHiveRequest clientId.
87015
+ * @member {string} clientId
87016
+ * @memberof ConnectHiveRequest
86705
87017
  * @instance
86706
- * @param {IListOrganizationUrlsRequest} request ListOrganizationUrlsRequest message or plain object
86707
- * @param {OrganizationService.listOrganizationUrlsCallback} callback Node-style callback called with the error, if any, and ListOrganizationUrlsResponse
86708
- * @returns {undefined}
86709
- * @variation 1
86710
87018
  */
86711
- Object.defineProperty(OrganizationService.prototype.listOrganizationUrls = function listOrganizationUrls(request, callback) {
86712
- return this.rpcCall(listOrganizationUrls, $root.ListOrganizationUrlsRequest, $root.ListOrganizationUrlsResponse, request, callback);
86713
- }, "name", { value: "listOrganizationUrls" });
87019
+ ConnectHiveRequest.prototype.clientId = "";
86714
87020
 
86715
87021
  /**
86716
- * Calls listOrganizationUrls.
86717
- * @function listOrganizationUrls
86718
- * @memberof OrganizationService
87022
+ * ConnectHiveRequest clientSecret.
87023
+ * @member {string} clientSecret
87024
+ * @memberof ConnectHiveRequest
86719
87025
  * @instance
86720
- * @param {IListOrganizationUrlsRequest} request ListOrganizationUrlsRequest message or plain object
86721
- * @returns {Promise<ListOrganizationUrlsResponse>} Promise
86722
- * @variation 2
86723
87026
  */
87027
+ ConnectHiveRequest.prototype.clientSecret = "";
86724
87028
 
86725
87029
  /**
86726
- * Callback as used by {@link OrganizationService#queryOrganizations}.
86727
- * @memberof OrganizationService
87030
+ * Creates a new ConnectHiveRequest instance using the specified properties.
87031
+ * @function create
87032
+ * @memberof ConnectHiveRequest
87033
+ * @static
87034
+ * @param {IConnectHiveRequest=} [properties] Properties to set
87035
+ * @returns {ConnectHiveRequest} ConnectHiveRequest instance
87036
+ */
87037
+ ConnectHiveRequest.create = function create(properties) {
87038
+ return new ConnectHiveRequest(properties);
87039
+ };
87040
+
87041
+ /**
87042
+ * Encodes the specified ConnectHiveRequest message. Does not implicitly {@link ConnectHiveRequest.verify|verify} messages.
87043
+ * @function encode
87044
+ * @memberof ConnectHiveRequest
87045
+ * @static
87046
+ * @param {IConnectHiveRequest} message ConnectHiveRequest message or plain object to encode
87047
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87048
+ * @returns {$protobuf.Writer} Writer
87049
+ */
87050
+ ConnectHiveRequest.encode = function encode(message, writer) {
87051
+ if (!writer)
87052
+ writer = $Writer.create();
87053
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
87054
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
87055
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
87056
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
87057
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
87058
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.code);
87059
+ if (message.codeVerifier != null && Object.hasOwnProperty.call(message, "codeVerifier"))
87060
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.codeVerifier);
87061
+ if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId"))
87062
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.clientId);
87063
+ if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
87064
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientSecret);
87065
+ return writer;
87066
+ };
87067
+
87068
+ /**
87069
+ * Encodes the specified ConnectHiveRequest message, length delimited. Does not implicitly {@link ConnectHiveRequest.verify|verify} messages.
87070
+ * @function encodeDelimited
87071
+ * @memberof ConnectHiveRequest
87072
+ * @static
87073
+ * @param {IConnectHiveRequest} message ConnectHiveRequest message or plain object to encode
87074
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87075
+ * @returns {$protobuf.Writer} Writer
87076
+ */
87077
+ ConnectHiveRequest.encodeDelimited = function encodeDelimited(message, writer) {
87078
+ return this.encode(message, writer).ldelim();
87079
+ };
87080
+
87081
+ /**
87082
+ * Decodes a ConnectHiveRequest message from the specified reader or buffer.
87083
+ * @function decode
87084
+ * @memberof ConnectHiveRequest
87085
+ * @static
87086
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87087
+ * @param {number} [length] Message length if known beforehand
87088
+ * @returns {ConnectHiveRequest} ConnectHiveRequest
87089
+ * @throws {Error} If the payload is not a reader or valid buffer
87090
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87091
+ */
87092
+ ConnectHiveRequest.decode = function decode(reader, length) {
87093
+ if (!(reader instanceof $Reader))
87094
+ reader = $Reader.create(reader);
87095
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConnectHiveRequest();
87096
+ while (reader.pos < end) {
87097
+ var tag = reader.uint32();
87098
+ switch (tag >>> 3) {
87099
+ case 1:
87100
+ message.spanContext = reader.string();
87101
+ break;
87102
+ case 2:
87103
+ message.orgId = reader.string();
87104
+ break;
87105
+ case 3:
87106
+ message.code = reader.string();
87107
+ break;
87108
+ case 4:
87109
+ message.codeVerifier = reader.string();
87110
+ break;
87111
+ case 5:
87112
+ message.clientId = reader.string();
87113
+ break;
87114
+ case 6:
87115
+ message.clientSecret = reader.string();
87116
+ break;
87117
+ default:
87118
+ reader.skipType(tag & 7);
87119
+ break;
87120
+ }
87121
+ }
87122
+ return message;
87123
+ };
87124
+
87125
+ /**
87126
+ * Decodes a ConnectHiveRequest message from the specified reader or buffer, length delimited.
87127
+ * @function decodeDelimited
87128
+ * @memberof ConnectHiveRequest
87129
+ * @static
87130
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87131
+ * @returns {ConnectHiveRequest} ConnectHiveRequest
87132
+ * @throws {Error} If the payload is not a reader or valid buffer
87133
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87134
+ */
87135
+ ConnectHiveRequest.decodeDelimited = function decodeDelimited(reader) {
87136
+ if (!(reader instanceof $Reader))
87137
+ reader = new $Reader(reader);
87138
+ return this.decode(reader, reader.uint32());
87139
+ };
87140
+
87141
+ /**
87142
+ * Verifies a ConnectHiveRequest message.
87143
+ * @function verify
87144
+ * @memberof ConnectHiveRequest
87145
+ * @static
87146
+ * @param {Object.<string,*>} message Plain object to verify
87147
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87148
+ */
87149
+ ConnectHiveRequest.verify = function verify(message) {
87150
+ if (typeof message !== "object" || message === null)
87151
+ return "object expected";
87152
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
87153
+ if (!$util.isString(message.spanContext))
87154
+ return "spanContext: string expected";
87155
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87156
+ if (!$util.isString(message.orgId))
87157
+ return "orgId: string expected";
87158
+ if (message.code != null && message.hasOwnProperty("code"))
87159
+ if (!$util.isString(message.code))
87160
+ return "code: string expected";
87161
+ if (message.codeVerifier != null && message.hasOwnProperty("codeVerifier"))
87162
+ if (!$util.isString(message.codeVerifier))
87163
+ return "codeVerifier: string expected";
87164
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
87165
+ if (!$util.isString(message.clientId))
87166
+ return "clientId: string expected";
87167
+ if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
87168
+ if (!$util.isString(message.clientSecret))
87169
+ return "clientSecret: string expected";
87170
+ return null;
87171
+ };
87172
+
87173
+ /**
87174
+ * Creates a ConnectHiveRequest message from a plain object. Also converts values to their respective internal types.
87175
+ * @function fromObject
87176
+ * @memberof ConnectHiveRequest
87177
+ * @static
87178
+ * @param {Object.<string,*>} object Plain object
87179
+ * @returns {ConnectHiveRequest} ConnectHiveRequest
87180
+ */
87181
+ ConnectHiveRequest.fromObject = function fromObject(object) {
87182
+ if (object instanceof $root.ConnectHiveRequest)
87183
+ return object;
87184
+ var message = new $root.ConnectHiveRequest();
87185
+ if (object.spanContext != null)
87186
+ message.spanContext = String(object.spanContext);
87187
+ if (object.orgId != null)
87188
+ message.orgId = String(object.orgId);
87189
+ if (object.code != null)
87190
+ message.code = String(object.code);
87191
+ if (object.codeVerifier != null)
87192
+ message.codeVerifier = String(object.codeVerifier);
87193
+ if (object.clientId != null)
87194
+ message.clientId = String(object.clientId);
87195
+ if (object.clientSecret != null)
87196
+ message.clientSecret = String(object.clientSecret);
87197
+ return message;
87198
+ };
87199
+
87200
+ /**
87201
+ * Creates a plain object from a ConnectHiveRequest message. Also converts values to other types if specified.
87202
+ * @function toObject
87203
+ * @memberof ConnectHiveRequest
87204
+ * @static
87205
+ * @param {ConnectHiveRequest} message ConnectHiveRequest
87206
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87207
+ * @returns {Object.<string,*>} Plain object
87208
+ */
87209
+ ConnectHiveRequest.toObject = function toObject(message, options) {
87210
+ if (!options)
87211
+ options = {};
87212
+ var object = {};
87213
+ if (options.defaults) {
87214
+ object.spanContext = "";
87215
+ object.orgId = "";
87216
+ object.code = "";
87217
+ object.codeVerifier = "";
87218
+ object.clientId = "";
87219
+ object.clientSecret = "";
87220
+ }
87221
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
87222
+ object.spanContext = message.spanContext;
87223
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87224
+ object.orgId = message.orgId;
87225
+ if (message.code != null && message.hasOwnProperty("code"))
87226
+ object.code = message.code;
87227
+ if (message.codeVerifier != null && message.hasOwnProperty("codeVerifier"))
87228
+ object.codeVerifier = message.codeVerifier;
87229
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
87230
+ object.clientId = message.clientId;
87231
+ if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
87232
+ object.clientSecret = message.clientSecret;
87233
+ return object;
87234
+ };
87235
+
87236
+ /**
87237
+ * Converts this ConnectHiveRequest to JSON.
87238
+ * @function toJSON
87239
+ * @memberof ConnectHiveRequest
87240
+ * @instance
87241
+ * @returns {Object.<string,*>} JSON object
87242
+ */
87243
+ ConnectHiveRequest.prototype.toJSON = function toJSON() {
87244
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87245
+ };
87246
+
87247
+ return ConnectHiveRequest;
87248
+ })();
87249
+
87250
+ $root.ConnectHiveResponse = (function() {
87251
+
87252
+ /**
87253
+ * Properties of a ConnectHiveResponse.
87254
+ * @exports IConnectHiveResponse
87255
+ * @interface IConnectHiveResponse
87256
+ * @property {StatusCode|null} [status] ConnectHiveResponse status
87257
+ * @property {Array.<IError>|null} [errors] ConnectHiveResponse errors
87258
+ * @property {IOrganization|null} [organization] ConnectHiveResponse organization
87259
+ */
87260
+
87261
+ /**
87262
+ * Constructs a new ConnectHiveResponse.
87263
+ * @exports ConnectHiveResponse
87264
+ * @classdesc Represents a ConnectHiveResponse.
87265
+ * @implements IConnectHiveResponse
87266
+ * @constructor
87267
+ * @param {IConnectHiveResponse=} [properties] Properties to set
87268
+ */
87269
+ function ConnectHiveResponse(properties) {
87270
+ this.errors = [];
87271
+ if (properties)
87272
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87273
+ if (properties[keys[i]] != null)
87274
+ this[keys[i]] = properties[keys[i]];
87275
+ }
87276
+
87277
+ /**
87278
+ * ConnectHiveResponse status.
87279
+ * @member {StatusCode} status
87280
+ * @memberof ConnectHiveResponse
87281
+ * @instance
87282
+ */
87283
+ ConnectHiveResponse.prototype.status = 0;
87284
+
87285
+ /**
87286
+ * ConnectHiveResponse errors.
87287
+ * @member {Array.<IError>} errors
87288
+ * @memberof ConnectHiveResponse
87289
+ * @instance
87290
+ */
87291
+ ConnectHiveResponse.prototype.errors = $util.emptyArray;
87292
+
87293
+ /**
87294
+ * ConnectHiveResponse organization.
87295
+ * @member {IOrganization|null|undefined} organization
87296
+ * @memberof ConnectHiveResponse
87297
+ * @instance
87298
+ */
87299
+ ConnectHiveResponse.prototype.organization = null;
87300
+
87301
+ /**
87302
+ * Creates a new ConnectHiveResponse instance using the specified properties.
87303
+ * @function create
87304
+ * @memberof ConnectHiveResponse
87305
+ * @static
87306
+ * @param {IConnectHiveResponse=} [properties] Properties to set
87307
+ * @returns {ConnectHiveResponse} ConnectHiveResponse instance
87308
+ */
87309
+ ConnectHiveResponse.create = function create(properties) {
87310
+ return new ConnectHiveResponse(properties);
87311
+ };
87312
+
87313
+ /**
87314
+ * Encodes the specified ConnectHiveResponse message. Does not implicitly {@link ConnectHiveResponse.verify|verify} messages.
87315
+ * @function encode
87316
+ * @memberof ConnectHiveResponse
87317
+ * @static
87318
+ * @param {IConnectHiveResponse} message ConnectHiveResponse message or plain object to encode
87319
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87320
+ * @returns {$protobuf.Writer} Writer
87321
+ */
87322
+ ConnectHiveResponse.encode = function encode(message, writer) {
87323
+ if (!writer)
87324
+ writer = $Writer.create();
87325
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
87326
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
87327
+ if (message.errors != null && message.errors.length)
87328
+ for (var i = 0; i < message.errors.length; ++i)
87329
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
87330
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
87331
+ $root.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87332
+ return writer;
87333
+ };
87334
+
87335
+ /**
87336
+ * Encodes the specified ConnectHiveResponse message, length delimited. Does not implicitly {@link ConnectHiveResponse.verify|verify} messages.
87337
+ * @function encodeDelimited
87338
+ * @memberof ConnectHiveResponse
87339
+ * @static
87340
+ * @param {IConnectHiveResponse} message ConnectHiveResponse message or plain object to encode
87341
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87342
+ * @returns {$protobuf.Writer} Writer
87343
+ */
87344
+ ConnectHiveResponse.encodeDelimited = function encodeDelimited(message, writer) {
87345
+ return this.encode(message, writer).ldelim();
87346
+ };
87347
+
87348
+ /**
87349
+ * Decodes a ConnectHiveResponse message from the specified reader or buffer.
87350
+ * @function decode
87351
+ * @memberof ConnectHiveResponse
87352
+ * @static
87353
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87354
+ * @param {number} [length] Message length if known beforehand
87355
+ * @returns {ConnectHiveResponse} ConnectHiveResponse
87356
+ * @throws {Error} If the payload is not a reader or valid buffer
87357
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87358
+ */
87359
+ ConnectHiveResponse.decode = function decode(reader, length) {
87360
+ if (!(reader instanceof $Reader))
87361
+ reader = $Reader.create(reader);
87362
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConnectHiveResponse();
87363
+ while (reader.pos < end) {
87364
+ var tag = reader.uint32();
87365
+ switch (tag >>> 3) {
87366
+ case 1:
87367
+ message.status = reader.int32();
87368
+ break;
87369
+ case 2:
87370
+ if (!(message.errors && message.errors.length))
87371
+ message.errors = [];
87372
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
87373
+ break;
87374
+ case 3:
87375
+ message.organization = $root.Organization.decode(reader, reader.uint32());
87376
+ break;
87377
+ default:
87378
+ reader.skipType(tag & 7);
87379
+ break;
87380
+ }
87381
+ }
87382
+ return message;
87383
+ };
87384
+
87385
+ /**
87386
+ * Decodes a ConnectHiveResponse message from the specified reader or buffer, length delimited.
87387
+ * @function decodeDelimited
87388
+ * @memberof ConnectHiveResponse
87389
+ * @static
87390
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87391
+ * @returns {ConnectHiveResponse} ConnectHiveResponse
87392
+ * @throws {Error} If the payload is not a reader or valid buffer
87393
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87394
+ */
87395
+ ConnectHiveResponse.decodeDelimited = function decodeDelimited(reader) {
87396
+ if (!(reader instanceof $Reader))
87397
+ reader = new $Reader(reader);
87398
+ return this.decode(reader, reader.uint32());
87399
+ };
87400
+
87401
+ /**
87402
+ * Verifies a ConnectHiveResponse message.
87403
+ * @function verify
87404
+ * @memberof ConnectHiveResponse
87405
+ * @static
87406
+ * @param {Object.<string,*>} message Plain object to verify
87407
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87408
+ */
87409
+ ConnectHiveResponse.verify = function verify(message) {
87410
+ if (typeof message !== "object" || message === null)
87411
+ return "object expected";
87412
+ if (message.status != null && message.hasOwnProperty("status"))
87413
+ switch (message.status) {
87414
+ default:
87415
+ return "status: enum value expected";
87416
+ case 0:
87417
+ case 200:
87418
+ case 400:
87419
+ case 401:
87420
+ case 403:
87421
+ case 422:
87422
+ case 404:
87423
+ case 500:
87424
+ case 504:
87425
+ break;
87426
+ }
87427
+ if (message.errors != null && message.hasOwnProperty("errors")) {
87428
+ if (!Array.isArray(message.errors))
87429
+ return "errors: array expected";
87430
+ for (var i = 0; i < message.errors.length; ++i) {
87431
+ var error = $root.Error.verify(message.errors[i]);
87432
+ if (error)
87433
+ return "errors." + error;
87434
+ }
87435
+ }
87436
+ if (message.organization != null && message.hasOwnProperty("organization")) {
87437
+ var error = $root.Organization.verify(message.organization);
87438
+ if (error)
87439
+ return "organization." + error;
87440
+ }
87441
+ return null;
87442
+ };
87443
+
87444
+ /**
87445
+ * Creates a ConnectHiveResponse message from a plain object. Also converts values to their respective internal types.
87446
+ * @function fromObject
87447
+ * @memberof ConnectHiveResponse
87448
+ * @static
87449
+ * @param {Object.<string,*>} object Plain object
87450
+ * @returns {ConnectHiveResponse} ConnectHiveResponse
87451
+ */
87452
+ ConnectHiveResponse.fromObject = function fromObject(object) {
87453
+ if (object instanceof $root.ConnectHiveResponse)
87454
+ return object;
87455
+ var message = new $root.ConnectHiveResponse();
87456
+ switch (object.status) {
87457
+ case "UNKNOWN_CODE":
87458
+ case 0:
87459
+ message.status = 0;
87460
+ break;
87461
+ case "OK":
87462
+ case 200:
87463
+ message.status = 200;
87464
+ break;
87465
+ case "BAD_REQUEST":
87466
+ case 400:
87467
+ message.status = 400;
87468
+ break;
87469
+ case "UNAUTHORIZED":
87470
+ case 401:
87471
+ message.status = 401;
87472
+ break;
87473
+ case "FORBIDDEN":
87474
+ case 403:
87475
+ message.status = 403;
87476
+ break;
87477
+ case "UNPROCESSABLE_ENTITY":
87478
+ case 422:
87479
+ message.status = 422;
87480
+ break;
87481
+ case "NOT_FOUND":
87482
+ case 404:
87483
+ message.status = 404;
87484
+ break;
87485
+ case "INTERNAL_SERVER_ERROR":
87486
+ case 500:
87487
+ message.status = 500;
87488
+ break;
87489
+ case "GATEWAY_TIMEOUT":
87490
+ case 504:
87491
+ message.status = 504;
87492
+ break;
87493
+ }
87494
+ if (object.errors) {
87495
+ if (!Array.isArray(object.errors))
87496
+ throw TypeError(".ConnectHiveResponse.errors: array expected");
87497
+ message.errors = [];
87498
+ for (var i = 0; i < object.errors.length; ++i) {
87499
+ if (typeof object.errors[i] !== "object")
87500
+ throw TypeError(".ConnectHiveResponse.errors: object expected");
87501
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
87502
+ }
87503
+ }
87504
+ if (object.organization != null) {
87505
+ if (typeof object.organization !== "object")
87506
+ throw TypeError(".ConnectHiveResponse.organization: object expected");
87507
+ message.organization = $root.Organization.fromObject(object.organization);
87508
+ }
87509
+ return message;
87510
+ };
87511
+
87512
+ /**
87513
+ * Creates a plain object from a ConnectHiveResponse message. Also converts values to other types if specified.
87514
+ * @function toObject
87515
+ * @memberof ConnectHiveResponse
87516
+ * @static
87517
+ * @param {ConnectHiveResponse} message ConnectHiveResponse
87518
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87519
+ * @returns {Object.<string,*>} Plain object
87520
+ */
87521
+ ConnectHiveResponse.toObject = function toObject(message, options) {
87522
+ if (!options)
87523
+ options = {};
87524
+ var object = {};
87525
+ if (options.arrays || options.defaults)
87526
+ object.errors = [];
87527
+ if (options.defaults) {
87528
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
87529
+ object.organization = null;
87530
+ }
87531
+ if (message.status != null && message.hasOwnProperty("status"))
87532
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
87533
+ if (message.errors && message.errors.length) {
87534
+ object.errors = [];
87535
+ for (var j = 0; j < message.errors.length; ++j)
87536
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
87537
+ }
87538
+ if (message.organization != null && message.hasOwnProperty("organization"))
87539
+ object.organization = $root.Organization.toObject(message.organization, options);
87540
+ return object;
87541
+ };
87542
+
87543
+ /**
87544
+ * Converts this ConnectHiveResponse to JSON.
87545
+ * @function toJSON
87546
+ * @memberof ConnectHiveResponse
87547
+ * @instance
87548
+ * @returns {Object.<string,*>} JSON object
87549
+ */
87550
+ ConnectHiveResponse.prototype.toJSON = function toJSON() {
87551
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87552
+ };
87553
+
87554
+ return ConnectHiveResponse;
87555
+ })();
87556
+
87557
+ $root.OrganizationService = (function() {
87558
+
87559
+ /**
87560
+ * Constructs a new OrganizationService service.
87561
+ * @exports OrganizationService
87562
+ * @classdesc Represents an OrganizationService
87563
+ * @extends $protobuf.rpc.Service
87564
+ * @constructor
87565
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
87566
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
87567
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
87568
+ */
87569
+ function OrganizationService(rpcImpl, requestDelimited, responseDelimited) {
87570
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
87571
+ }
87572
+
87573
+ (OrganizationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = OrganizationService;
87574
+
87575
+ /**
87576
+ * Creates new OrganizationService service using the specified rpc implementation.
87577
+ * @function create
87578
+ * @memberof OrganizationService
87579
+ * @static
87580
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
87581
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
87582
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
87583
+ * @returns {OrganizationService} RPC service. Useful where requests and/or responses are streamed.
87584
+ */
87585
+ OrganizationService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
87586
+ return new this(rpcImpl, requestDelimited, responseDelimited);
87587
+ };
87588
+
87589
+ /**
87590
+ * Callback as used by {@link OrganizationService#createOrganization}.
87591
+ * @memberof OrganizationService
87592
+ * @typedef createOrganizationCallback
87593
+ * @type {function}
87594
+ * @param {Error|null} error Error, if any
87595
+ * @param {CreateOrganizationResponse} [response] CreateOrganizationResponse
87596
+ */
87597
+
87598
+ /**
87599
+ * Calls createOrganization.
87600
+ * @function createOrganization
87601
+ * @memberof OrganizationService
87602
+ * @instance
87603
+ * @param {ICreateOrganizationRequest} request CreateOrganizationRequest message or plain object
87604
+ * @param {OrganizationService.createOrganizationCallback} callback Node-style callback called with the error, if any, and CreateOrganizationResponse
87605
+ * @returns {undefined}
87606
+ * @variation 1
87607
+ */
87608
+ Object.defineProperty(OrganizationService.prototype.createOrganization = function createOrganization(request, callback) {
87609
+ return this.rpcCall(createOrganization, $root.CreateOrganizationRequest, $root.CreateOrganizationResponse, request, callback);
87610
+ }, "name", { value: "createOrganization" });
87611
+
87612
+ /**
87613
+ * Calls createOrganization.
87614
+ * @function createOrganization
87615
+ * @memberof OrganizationService
87616
+ * @instance
87617
+ * @param {ICreateOrganizationRequest} request CreateOrganizationRequest message or plain object
87618
+ * @returns {Promise<CreateOrganizationResponse>} Promise
87619
+ * @variation 2
87620
+ */
87621
+
87622
+ /**
87623
+ * Callback as used by {@link OrganizationService#listOrganizationUrls}.
87624
+ * @memberof OrganizationService
87625
+ * @typedef listOrganizationUrlsCallback
87626
+ * @type {function}
87627
+ * @param {Error|null} error Error, if any
87628
+ * @param {ListOrganizationUrlsResponse} [response] ListOrganizationUrlsResponse
87629
+ */
87630
+
87631
+ /**
87632
+ * Calls listOrganizationUrls.
87633
+ * @function listOrganizationUrls
87634
+ * @memberof OrganizationService
87635
+ * @instance
87636
+ * @param {IListOrganizationUrlsRequest} request ListOrganizationUrlsRequest message or plain object
87637
+ * @param {OrganizationService.listOrganizationUrlsCallback} callback Node-style callback called with the error, if any, and ListOrganizationUrlsResponse
87638
+ * @returns {undefined}
87639
+ * @variation 1
87640
+ */
87641
+ Object.defineProperty(OrganizationService.prototype.listOrganizationUrls = function listOrganizationUrls(request, callback) {
87642
+ return this.rpcCall(listOrganizationUrls, $root.ListOrganizationUrlsRequest, $root.ListOrganizationUrlsResponse, request, callback);
87643
+ }, "name", { value: "listOrganizationUrls" });
87644
+
87645
+ /**
87646
+ * Calls listOrganizationUrls.
87647
+ * @function listOrganizationUrls
87648
+ * @memberof OrganizationService
87649
+ * @instance
87650
+ * @param {IListOrganizationUrlsRequest} request ListOrganizationUrlsRequest message or plain object
87651
+ * @returns {Promise<ListOrganizationUrlsResponse>} Promise
87652
+ * @variation 2
87653
+ */
87654
+
87655
+ /**
87656
+ * Callback as used by {@link OrganizationService#queryOrganizations}.
87657
+ * @memberof OrganizationService
86728
87658
  * @typedef queryOrganizationsCallback
86729
87659
  * @type {function}
86730
87660
  * @param {Error|null} error Error, if any
@@ -86920,6 +87850,39 @@ $root.OrganizationService = (function() {
86920
87850
  * @variation 2
86921
87851
  */
86922
87852
 
87853
+ /**
87854
+ * Callback as used by {@link OrganizationService#connectHive}.
87855
+ * @memberof OrganizationService
87856
+ * @typedef connectHiveCallback
87857
+ * @type {function}
87858
+ * @param {Error|null} error Error, if any
87859
+ * @param {ConnectHiveResponse} [response] ConnectHiveResponse
87860
+ */
87861
+
87862
+ /**
87863
+ * Calls connectHive.
87864
+ * @function connectHive
87865
+ * @memberof OrganizationService
87866
+ * @instance
87867
+ * @param {IConnectHiveRequest} request ConnectHiveRequest message or plain object
87868
+ * @param {OrganizationService.connectHiveCallback} callback Node-style callback called with the error, if any, and ConnectHiveResponse
87869
+ * @returns {undefined}
87870
+ * @variation 1
87871
+ */
87872
+ Object.defineProperty(OrganizationService.prototype.connectHive = function connectHive(request, callback) {
87873
+ return this.rpcCall(connectHive, $root.ConnectHiveRequest, $root.ConnectHiveResponse, request, callback);
87874
+ }, "name", { value: "connectHive" });
87875
+
87876
+ /**
87877
+ * Calls connectHive.
87878
+ * @function connectHive
87879
+ * @memberof OrganizationService
87880
+ * @instance
87881
+ * @param {IConnectHiveRequest} request ConnectHiveRequest message or plain object
87882
+ * @returns {Promise<ConnectHiveResponse>} Promise
87883
+ * @variation 2
87884
+ */
87885
+
86923
87886
  return OrganizationService;
86924
87887
  })();
86925
87888