@sellout/models 0.0.421 → 0.0.423

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,1229 @@ $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.RefreshHiveTokenRequest = (function() {
87558
+
87559
+ /**
87560
+ * Properties of a RefreshHiveTokenRequest.
87561
+ * @exports IRefreshHiveTokenRequest
87562
+ * @interface IRefreshHiveTokenRequest
87563
+ * @property {string|null} [spanContext] RefreshHiveTokenRequest spanContext
87564
+ * @property {string|null} [orgId] RefreshHiveTokenRequest orgId
87565
+ */
87566
+
87567
+ /**
87568
+ * Constructs a new RefreshHiveTokenRequest.
87569
+ * @exports RefreshHiveTokenRequest
87570
+ * @classdesc Represents a RefreshHiveTokenRequest.
87571
+ * @implements IRefreshHiveTokenRequest
87572
+ * @constructor
87573
+ * @param {IRefreshHiveTokenRequest=} [properties] Properties to set
87574
+ */
87575
+ function RefreshHiveTokenRequest(properties) {
87576
+ if (properties)
87577
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87578
+ if (properties[keys[i]] != null)
87579
+ this[keys[i]] = properties[keys[i]];
87580
+ }
87581
+
87582
+ /**
87583
+ * RefreshHiveTokenRequest spanContext.
87584
+ * @member {string} spanContext
87585
+ * @memberof RefreshHiveTokenRequest
87586
+ * @instance
87587
+ */
87588
+ RefreshHiveTokenRequest.prototype.spanContext = "";
87589
+
87590
+ /**
87591
+ * RefreshHiveTokenRequest orgId.
87592
+ * @member {string} orgId
87593
+ * @memberof RefreshHiveTokenRequest
87594
+ * @instance
87595
+ */
87596
+ RefreshHiveTokenRequest.prototype.orgId = "";
87597
+
87598
+ /**
87599
+ * Creates a new RefreshHiveTokenRequest instance using the specified properties.
87600
+ * @function create
87601
+ * @memberof RefreshHiveTokenRequest
87602
+ * @static
87603
+ * @param {IRefreshHiveTokenRequest=} [properties] Properties to set
87604
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest instance
87605
+ */
87606
+ RefreshHiveTokenRequest.create = function create(properties) {
87607
+ return new RefreshHiveTokenRequest(properties);
87608
+ };
87609
+
87610
+ /**
87611
+ * Encodes the specified RefreshHiveTokenRequest message. Does not implicitly {@link RefreshHiveTokenRequest.verify|verify} messages.
87612
+ * @function encode
87613
+ * @memberof RefreshHiveTokenRequest
87614
+ * @static
87615
+ * @param {IRefreshHiveTokenRequest} message RefreshHiveTokenRequest message or plain object to encode
87616
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87617
+ * @returns {$protobuf.Writer} Writer
87618
+ */
87619
+ RefreshHiveTokenRequest.encode = function encode(message, writer) {
87620
+ if (!writer)
87621
+ writer = $Writer.create();
87622
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
87623
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
87624
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
87625
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
87626
+ return writer;
87627
+ };
87628
+
87629
+ /**
87630
+ * Encodes the specified RefreshHiveTokenRequest message, length delimited. Does not implicitly {@link RefreshHiveTokenRequest.verify|verify} messages.
87631
+ * @function encodeDelimited
87632
+ * @memberof RefreshHiveTokenRequest
87633
+ * @static
87634
+ * @param {IRefreshHiveTokenRequest} message RefreshHiveTokenRequest message or plain object to encode
87635
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87636
+ * @returns {$protobuf.Writer} Writer
87637
+ */
87638
+ RefreshHiveTokenRequest.encodeDelimited = function encodeDelimited(message, writer) {
87639
+ return this.encode(message, writer).ldelim();
87640
+ };
87641
+
87642
+ /**
87643
+ * Decodes a RefreshHiveTokenRequest message from the specified reader or buffer.
87644
+ * @function decode
87645
+ * @memberof RefreshHiveTokenRequest
87646
+ * @static
87647
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87648
+ * @param {number} [length] Message length if known beforehand
87649
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
87650
+ * @throws {Error} If the payload is not a reader or valid buffer
87651
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87652
+ */
87653
+ RefreshHiveTokenRequest.decode = function decode(reader, length) {
87654
+ if (!(reader instanceof $Reader))
87655
+ reader = $Reader.create(reader);
87656
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RefreshHiveTokenRequest();
87657
+ while (reader.pos < end) {
87658
+ var tag = reader.uint32();
87659
+ switch (tag >>> 3) {
87660
+ case 1:
87661
+ message.spanContext = reader.string();
87662
+ break;
87663
+ case 2:
87664
+ message.orgId = reader.string();
87665
+ break;
87666
+ default:
87667
+ reader.skipType(tag & 7);
87668
+ break;
87669
+ }
87670
+ }
87671
+ return message;
87672
+ };
87673
+
87674
+ /**
87675
+ * Decodes a RefreshHiveTokenRequest message from the specified reader or buffer, length delimited.
87676
+ * @function decodeDelimited
87677
+ * @memberof RefreshHiveTokenRequest
87678
+ * @static
87679
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87680
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
87681
+ * @throws {Error} If the payload is not a reader or valid buffer
87682
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87683
+ */
87684
+ RefreshHiveTokenRequest.decodeDelimited = function decodeDelimited(reader) {
87685
+ if (!(reader instanceof $Reader))
87686
+ reader = new $Reader(reader);
87687
+ return this.decode(reader, reader.uint32());
87688
+ };
87689
+
87690
+ /**
87691
+ * Verifies a RefreshHiveTokenRequest message.
87692
+ * @function verify
87693
+ * @memberof RefreshHiveTokenRequest
87694
+ * @static
87695
+ * @param {Object.<string,*>} message Plain object to verify
87696
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87697
+ */
87698
+ RefreshHiveTokenRequest.verify = function verify(message) {
87699
+ if (typeof message !== "object" || message === null)
87700
+ return "object expected";
87701
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
87702
+ if (!$util.isString(message.spanContext))
87703
+ return "spanContext: string expected";
87704
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87705
+ if (!$util.isString(message.orgId))
87706
+ return "orgId: string expected";
87707
+ return null;
87708
+ };
87709
+
87710
+ /**
87711
+ * Creates a RefreshHiveTokenRequest message from a plain object. Also converts values to their respective internal types.
87712
+ * @function fromObject
87713
+ * @memberof RefreshHiveTokenRequest
87714
+ * @static
87715
+ * @param {Object.<string,*>} object Plain object
87716
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
87717
+ */
87718
+ RefreshHiveTokenRequest.fromObject = function fromObject(object) {
87719
+ if (object instanceof $root.RefreshHiveTokenRequest)
87720
+ return object;
87721
+ var message = new $root.RefreshHiveTokenRequest();
87722
+ if (object.spanContext != null)
87723
+ message.spanContext = String(object.spanContext);
87724
+ if (object.orgId != null)
87725
+ message.orgId = String(object.orgId);
87726
+ return message;
87727
+ };
87728
+
87729
+ /**
87730
+ * Creates a plain object from a RefreshHiveTokenRequest message. Also converts values to other types if specified.
87731
+ * @function toObject
87732
+ * @memberof RefreshHiveTokenRequest
87733
+ * @static
87734
+ * @param {RefreshHiveTokenRequest} message RefreshHiveTokenRequest
87735
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87736
+ * @returns {Object.<string,*>} Plain object
87737
+ */
87738
+ RefreshHiveTokenRequest.toObject = function toObject(message, options) {
87739
+ if (!options)
87740
+ options = {};
87741
+ var object = {};
87742
+ if (options.defaults) {
87743
+ object.spanContext = "";
87744
+ object.orgId = "";
87745
+ }
87746
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
87747
+ object.spanContext = message.spanContext;
87748
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87749
+ object.orgId = message.orgId;
87750
+ return object;
87751
+ };
87752
+
87753
+ /**
87754
+ * Converts this RefreshHiveTokenRequest to JSON.
87755
+ * @function toJSON
87756
+ * @memberof RefreshHiveTokenRequest
87757
+ * @instance
87758
+ * @returns {Object.<string,*>} JSON object
87759
+ */
87760
+ RefreshHiveTokenRequest.prototype.toJSON = function toJSON() {
87761
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87762
+ };
87763
+
87764
+ return RefreshHiveTokenRequest;
87765
+ })();
87766
+
87767
+ $root.RefreshHiveTokenResponse = (function() {
87768
+
87769
+ /**
87770
+ * Properties of a RefreshHiveTokenResponse.
87771
+ * @exports IRefreshHiveTokenResponse
87772
+ * @interface IRefreshHiveTokenResponse
87773
+ * @property {StatusCode|null} [status] RefreshHiveTokenResponse status
87774
+ * @property {Array.<IError>|null} [errors] RefreshHiveTokenResponse errors
87775
+ * @property {IOrganization|null} [organization] RefreshHiveTokenResponse organization
87776
+ */
87777
+
87778
+ /**
87779
+ * Constructs a new RefreshHiveTokenResponse.
87780
+ * @exports RefreshHiveTokenResponse
87781
+ * @classdesc Represents a RefreshHiveTokenResponse.
87782
+ * @implements IRefreshHiveTokenResponse
87783
+ * @constructor
87784
+ * @param {IRefreshHiveTokenResponse=} [properties] Properties to set
87785
+ */
87786
+ function RefreshHiveTokenResponse(properties) {
87787
+ this.errors = [];
87788
+ if (properties)
87789
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87790
+ if (properties[keys[i]] != null)
87791
+ this[keys[i]] = properties[keys[i]];
87792
+ }
87793
+
87794
+ /**
87795
+ * RefreshHiveTokenResponse status.
87796
+ * @member {StatusCode} status
87797
+ * @memberof RefreshHiveTokenResponse
87798
+ * @instance
87799
+ */
87800
+ RefreshHiveTokenResponse.prototype.status = 0;
87801
+
87802
+ /**
87803
+ * RefreshHiveTokenResponse errors.
87804
+ * @member {Array.<IError>} errors
87805
+ * @memberof RefreshHiveTokenResponse
87806
+ * @instance
87807
+ */
87808
+ RefreshHiveTokenResponse.prototype.errors = $util.emptyArray;
87809
+
87810
+ /**
87811
+ * RefreshHiveTokenResponse organization.
87812
+ * @member {IOrganization|null|undefined} organization
87813
+ * @memberof RefreshHiveTokenResponse
87814
+ * @instance
87815
+ */
87816
+ RefreshHiveTokenResponse.prototype.organization = null;
87817
+
87818
+ /**
87819
+ * Creates a new RefreshHiveTokenResponse instance using the specified properties.
87820
+ * @function create
87821
+ * @memberof RefreshHiveTokenResponse
87822
+ * @static
87823
+ * @param {IRefreshHiveTokenResponse=} [properties] Properties to set
87824
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse instance
87825
+ */
87826
+ RefreshHiveTokenResponse.create = function create(properties) {
87827
+ return new RefreshHiveTokenResponse(properties);
87828
+ };
87829
+
87830
+ /**
87831
+ * Encodes the specified RefreshHiveTokenResponse message. Does not implicitly {@link RefreshHiveTokenResponse.verify|verify} messages.
87832
+ * @function encode
87833
+ * @memberof RefreshHiveTokenResponse
87834
+ * @static
87835
+ * @param {IRefreshHiveTokenResponse} message RefreshHiveTokenResponse message or plain object to encode
87836
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87837
+ * @returns {$protobuf.Writer} Writer
87838
+ */
87839
+ RefreshHiveTokenResponse.encode = function encode(message, writer) {
87840
+ if (!writer)
87841
+ writer = $Writer.create();
87842
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
87843
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
87844
+ if (message.errors != null && message.errors.length)
87845
+ for (var i = 0; i < message.errors.length; ++i)
87846
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
87847
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
87848
+ $root.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87849
+ return writer;
87850
+ };
87851
+
87852
+ /**
87853
+ * Encodes the specified RefreshHiveTokenResponse message, length delimited. Does not implicitly {@link RefreshHiveTokenResponse.verify|verify} messages.
87854
+ * @function encodeDelimited
87855
+ * @memberof RefreshHiveTokenResponse
87856
+ * @static
87857
+ * @param {IRefreshHiveTokenResponse} message RefreshHiveTokenResponse message or plain object to encode
87858
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87859
+ * @returns {$protobuf.Writer} Writer
87860
+ */
87861
+ RefreshHiveTokenResponse.encodeDelimited = function encodeDelimited(message, writer) {
87862
+ return this.encode(message, writer).ldelim();
87863
+ };
87864
+
87865
+ /**
87866
+ * Decodes a RefreshHiveTokenResponse message from the specified reader or buffer.
87867
+ * @function decode
87868
+ * @memberof RefreshHiveTokenResponse
87869
+ * @static
87870
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87871
+ * @param {number} [length] Message length if known beforehand
87872
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
87873
+ * @throws {Error} If the payload is not a reader or valid buffer
87874
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87875
+ */
87876
+ RefreshHiveTokenResponse.decode = function decode(reader, length) {
87877
+ if (!(reader instanceof $Reader))
87878
+ reader = $Reader.create(reader);
87879
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RefreshHiveTokenResponse();
87880
+ while (reader.pos < end) {
87881
+ var tag = reader.uint32();
87882
+ switch (tag >>> 3) {
87883
+ case 1:
87884
+ message.status = reader.int32();
87885
+ break;
87886
+ case 2:
87887
+ if (!(message.errors && message.errors.length))
87888
+ message.errors = [];
87889
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
87890
+ break;
87891
+ case 3:
87892
+ message.organization = $root.Organization.decode(reader, reader.uint32());
87893
+ break;
87894
+ default:
87895
+ reader.skipType(tag & 7);
87896
+ break;
87897
+ }
87898
+ }
87899
+ return message;
87900
+ };
87901
+
87902
+ /**
87903
+ * Decodes a RefreshHiveTokenResponse message from the specified reader or buffer, length delimited.
87904
+ * @function decodeDelimited
87905
+ * @memberof RefreshHiveTokenResponse
87906
+ * @static
87907
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87908
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
87909
+ * @throws {Error} If the payload is not a reader or valid buffer
87910
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87911
+ */
87912
+ RefreshHiveTokenResponse.decodeDelimited = function decodeDelimited(reader) {
87913
+ if (!(reader instanceof $Reader))
87914
+ reader = new $Reader(reader);
87915
+ return this.decode(reader, reader.uint32());
87916
+ };
87917
+
87918
+ /**
87919
+ * Verifies a RefreshHiveTokenResponse message.
87920
+ * @function verify
87921
+ * @memberof RefreshHiveTokenResponse
87922
+ * @static
87923
+ * @param {Object.<string,*>} message Plain object to verify
87924
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87925
+ */
87926
+ RefreshHiveTokenResponse.verify = function verify(message) {
87927
+ if (typeof message !== "object" || message === null)
87928
+ return "object expected";
87929
+ if (message.status != null && message.hasOwnProperty("status"))
87930
+ switch (message.status) {
87931
+ default:
87932
+ return "status: enum value expected";
87933
+ case 0:
87934
+ case 200:
87935
+ case 400:
87936
+ case 401:
87937
+ case 403:
87938
+ case 422:
87939
+ case 404:
87940
+ case 500:
87941
+ case 504:
87942
+ break;
87943
+ }
87944
+ if (message.errors != null && message.hasOwnProperty("errors")) {
87945
+ if (!Array.isArray(message.errors))
87946
+ return "errors: array expected";
87947
+ for (var i = 0; i < message.errors.length; ++i) {
87948
+ var error = $root.Error.verify(message.errors[i]);
87949
+ if (error)
87950
+ return "errors." + error;
87951
+ }
87952
+ }
87953
+ if (message.organization != null && message.hasOwnProperty("organization")) {
87954
+ var error = $root.Organization.verify(message.organization);
87955
+ if (error)
87956
+ return "organization." + error;
87957
+ }
87958
+ return null;
87959
+ };
87960
+
87961
+ /**
87962
+ * Creates a RefreshHiveTokenResponse message from a plain object. Also converts values to their respective internal types.
87963
+ * @function fromObject
87964
+ * @memberof RefreshHiveTokenResponse
87965
+ * @static
87966
+ * @param {Object.<string,*>} object Plain object
87967
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
87968
+ */
87969
+ RefreshHiveTokenResponse.fromObject = function fromObject(object) {
87970
+ if (object instanceof $root.RefreshHiveTokenResponse)
87971
+ return object;
87972
+ var message = new $root.RefreshHiveTokenResponse();
87973
+ switch (object.status) {
87974
+ case "UNKNOWN_CODE":
87975
+ case 0:
87976
+ message.status = 0;
87977
+ break;
87978
+ case "OK":
87979
+ case 200:
87980
+ message.status = 200;
87981
+ break;
87982
+ case "BAD_REQUEST":
87983
+ case 400:
87984
+ message.status = 400;
87985
+ break;
87986
+ case "UNAUTHORIZED":
87987
+ case 401:
87988
+ message.status = 401;
87989
+ break;
87990
+ case "FORBIDDEN":
87991
+ case 403:
87992
+ message.status = 403;
87993
+ break;
87994
+ case "UNPROCESSABLE_ENTITY":
87995
+ case 422:
87996
+ message.status = 422;
87997
+ break;
87998
+ case "NOT_FOUND":
87999
+ case 404:
88000
+ message.status = 404;
88001
+ break;
88002
+ case "INTERNAL_SERVER_ERROR":
88003
+ case 500:
88004
+ message.status = 500;
88005
+ break;
88006
+ case "GATEWAY_TIMEOUT":
88007
+ case 504:
88008
+ message.status = 504;
88009
+ break;
88010
+ }
88011
+ if (object.errors) {
88012
+ if (!Array.isArray(object.errors))
88013
+ throw TypeError(".RefreshHiveTokenResponse.errors: array expected");
88014
+ message.errors = [];
88015
+ for (var i = 0; i < object.errors.length; ++i) {
88016
+ if (typeof object.errors[i] !== "object")
88017
+ throw TypeError(".RefreshHiveTokenResponse.errors: object expected");
88018
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
88019
+ }
88020
+ }
88021
+ if (object.organization != null) {
88022
+ if (typeof object.organization !== "object")
88023
+ throw TypeError(".RefreshHiveTokenResponse.organization: object expected");
88024
+ message.organization = $root.Organization.fromObject(object.organization);
88025
+ }
88026
+ return message;
88027
+ };
88028
+
88029
+ /**
88030
+ * Creates a plain object from a RefreshHiveTokenResponse message. Also converts values to other types if specified.
88031
+ * @function toObject
88032
+ * @memberof RefreshHiveTokenResponse
88033
+ * @static
88034
+ * @param {RefreshHiveTokenResponse} message RefreshHiveTokenResponse
88035
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88036
+ * @returns {Object.<string,*>} Plain object
88037
+ */
88038
+ RefreshHiveTokenResponse.toObject = function toObject(message, options) {
88039
+ if (!options)
88040
+ options = {};
88041
+ var object = {};
88042
+ if (options.arrays || options.defaults)
88043
+ object.errors = [];
88044
+ if (options.defaults) {
88045
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
88046
+ object.organization = null;
88047
+ }
88048
+ if (message.status != null && message.hasOwnProperty("status"))
88049
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
88050
+ if (message.errors && message.errors.length) {
88051
+ object.errors = [];
88052
+ for (var j = 0; j < message.errors.length; ++j)
88053
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
88054
+ }
88055
+ if (message.organization != null && message.hasOwnProperty("organization"))
88056
+ object.organization = $root.Organization.toObject(message.organization, options);
88057
+ return object;
88058
+ };
88059
+
88060
+ /**
88061
+ * Converts this RefreshHiveTokenResponse to JSON.
88062
+ * @function toJSON
88063
+ * @memberof RefreshHiveTokenResponse
88064
+ * @instance
88065
+ * @returns {Object.<string,*>} JSON object
88066
+ */
88067
+ RefreshHiveTokenResponse.prototype.toJSON = function toJSON() {
88068
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88069
+ };
88070
+
88071
+ return RefreshHiveTokenResponse;
88072
+ })();
88073
+
88074
+ $root.OrganizationService = (function() {
88075
+
88076
+ /**
88077
+ * Constructs a new OrganizationService service.
88078
+ * @exports OrganizationService
88079
+ * @classdesc Represents an OrganizationService
88080
+ * @extends $protobuf.rpc.Service
88081
+ * @constructor
88082
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
88083
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
88084
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
88085
+ */
88086
+ function OrganizationService(rpcImpl, requestDelimited, responseDelimited) {
88087
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
88088
+ }
88089
+
88090
+ (OrganizationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = OrganizationService;
88091
+
88092
+ /**
88093
+ * Creates new OrganizationService service using the specified rpc implementation.
88094
+ * @function create
88095
+ * @memberof OrganizationService
88096
+ * @static
88097
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
88098
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
88099
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
88100
+ * @returns {OrganizationService} RPC service. Useful where requests and/or responses are streamed.
88101
+ */
88102
+ OrganizationService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
88103
+ return new this(rpcImpl, requestDelimited, responseDelimited);
88104
+ };
88105
+
88106
+ /**
88107
+ * Callback as used by {@link OrganizationService#createOrganization}.
88108
+ * @memberof OrganizationService
88109
+ * @typedef createOrganizationCallback
88110
+ * @type {function}
88111
+ * @param {Error|null} error Error, if any
88112
+ * @param {CreateOrganizationResponse} [response] CreateOrganizationResponse
88113
+ */
88114
+
88115
+ /**
88116
+ * Calls createOrganization.
88117
+ * @function createOrganization
88118
+ * @memberof OrganizationService
88119
+ * @instance
88120
+ * @param {ICreateOrganizationRequest} request CreateOrganizationRequest message or plain object
88121
+ * @param {OrganizationService.createOrganizationCallback} callback Node-style callback called with the error, if any, and CreateOrganizationResponse
88122
+ * @returns {undefined}
88123
+ * @variation 1
88124
+ */
88125
+ Object.defineProperty(OrganizationService.prototype.createOrganization = function createOrganization(request, callback) {
88126
+ return this.rpcCall(createOrganization, $root.CreateOrganizationRequest, $root.CreateOrganizationResponse, request, callback);
88127
+ }, "name", { value: "createOrganization" });
88128
+
88129
+ /**
88130
+ * Calls createOrganization.
88131
+ * @function createOrganization
88132
+ * @memberof OrganizationService
88133
+ * @instance
88134
+ * @param {ICreateOrganizationRequest} request CreateOrganizationRequest message or plain object
88135
+ * @returns {Promise<CreateOrganizationResponse>} Promise
88136
+ * @variation 2
88137
+ */
88138
+
88139
+ /**
88140
+ * Callback as used by {@link OrganizationService#listOrganizationUrls}.
88141
+ * @memberof OrganizationService
88142
+ * @typedef listOrganizationUrlsCallback
88143
+ * @type {function}
88144
+ * @param {Error|null} error Error, if any
88145
+ * @param {ListOrganizationUrlsResponse} [response] ListOrganizationUrlsResponse
88146
+ */
88147
+
88148
+ /**
88149
+ * Calls listOrganizationUrls.
88150
+ * @function listOrganizationUrls
88151
+ * @memberof OrganizationService
88152
+ * @instance
88153
+ * @param {IListOrganizationUrlsRequest} request ListOrganizationUrlsRequest message or plain object
88154
+ * @param {OrganizationService.listOrganizationUrlsCallback} callback Node-style callback called with the error, if any, and ListOrganizationUrlsResponse
88155
+ * @returns {undefined}
88156
+ * @variation 1
88157
+ */
88158
+ Object.defineProperty(OrganizationService.prototype.listOrganizationUrls = function listOrganizationUrls(request, callback) {
88159
+ return this.rpcCall(listOrganizationUrls, $root.ListOrganizationUrlsRequest, $root.ListOrganizationUrlsResponse, request, callback);
88160
+ }, "name", { value: "listOrganizationUrls" });
88161
+
88162
+ /**
88163
+ * Calls listOrganizationUrls.
88164
+ * @function listOrganizationUrls
88165
+ * @memberof OrganizationService
88166
+ * @instance
88167
+ * @param {IListOrganizationUrlsRequest} request ListOrganizationUrlsRequest message or plain object
88168
+ * @returns {Promise<ListOrganizationUrlsResponse>} Promise
88169
+ * @variation 2
88170
+ */
88171
+
88172
+ /**
88173
+ * Callback as used by {@link OrganizationService#queryOrganizations}.
88174
+ * @memberof OrganizationService
86728
88175
  * @typedef queryOrganizationsCallback
86729
88176
  * @type {function}
86730
88177
  * @param {Error|null} error Error, if any
@@ -86920,6 +88367,72 @@ $root.OrganizationService = (function() {
86920
88367
  * @variation 2
86921
88368
  */
86922
88369
 
88370
+ /**
88371
+ * Callback as used by {@link OrganizationService#connectHive}.
88372
+ * @memberof OrganizationService
88373
+ * @typedef connectHiveCallback
88374
+ * @type {function}
88375
+ * @param {Error|null} error Error, if any
88376
+ * @param {ConnectHiveResponse} [response] ConnectHiveResponse
88377
+ */
88378
+
88379
+ /**
88380
+ * Calls connectHive.
88381
+ * @function connectHive
88382
+ * @memberof OrganizationService
88383
+ * @instance
88384
+ * @param {IConnectHiveRequest} request ConnectHiveRequest message or plain object
88385
+ * @param {OrganizationService.connectHiveCallback} callback Node-style callback called with the error, if any, and ConnectHiveResponse
88386
+ * @returns {undefined}
88387
+ * @variation 1
88388
+ */
88389
+ Object.defineProperty(OrganizationService.prototype.connectHive = function connectHive(request, callback) {
88390
+ return this.rpcCall(connectHive, $root.ConnectHiveRequest, $root.ConnectHiveResponse, request, callback);
88391
+ }, "name", { value: "connectHive" });
88392
+
88393
+ /**
88394
+ * Calls connectHive.
88395
+ * @function connectHive
88396
+ * @memberof OrganizationService
88397
+ * @instance
88398
+ * @param {IConnectHiveRequest} request ConnectHiveRequest message or plain object
88399
+ * @returns {Promise<ConnectHiveResponse>} Promise
88400
+ * @variation 2
88401
+ */
88402
+
88403
+ /**
88404
+ * Callback as used by {@link OrganizationService#refreshHiveToken}.
88405
+ * @memberof OrganizationService
88406
+ * @typedef refreshHiveTokenCallback
88407
+ * @type {function}
88408
+ * @param {Error|null} error Error, if any
88409
+ * @param {RefreshHiveTokenResponse} [response] RefreshHiveTokenResponse
88410
+ */
88411
+
88412
+ /**
88413
+ * Calls refreshHiveToken.
88414
+ * @function refreshHiveToken
88415
+ * @memberof OrganizationService
88416
+ * @instance
88417
+ * @param {IRefreshHiveTokenRequest} request RefreshHiveTokenRequest message or plain object
88418
+ * @param {OrganizationService.refreshHiveTokenCallback} callback Node-style callback called with the error, if any, and RefreshHiveTokenResponse
88419
+ * @returns {undefined}
88420
+ * @variation 1
88421
+ */
88422
+ Object.defineProperty(OrganizationService.prototype.refreshHiveToken = function refreshHiveToken(request, callback) {
88423
+ return this.rpcCall(refreshHiveToken, $root.RefreshHiveTokenRequest, $root.RefreshHiveTokenResponse, request, callback);
88424
+ }, "name", { value: "refreshHiveToken" });
88425
+
88426
+ /**
88427
+ * Calls refreshHiveToken.
88428
+ * @function refreshHiveToken
88429
+ * @memberof OrganizationService
88430
+ * @instance
88431
+ * @param {IRefreshHiveTokenRequest} request RefreshHiveTokenRequest message or plain object
88432
+ * @returns {Promise<RefreshHiveTokenResponse>} Promise
88433
+ * @variation 2
88434
+ */
88435
+
86923
88436
  return OrganizationService;
86924
88437
  })();
86925
88438