@miradorlabs/web-grpc 4.21.0 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "4.21.0",
3
+ "version": "4.22.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1009,7 +1009,11 @@ export interface CliSession {
1009
1009
  label: string;
1010
1010
  createdAt: Date | undefined;
1011
1011
  lastUsedAt: Date | undefined;
1012
- expiresAt: Date | undefined;
1012
+ expiresAt:
1013
+ | Date
1014
+ | undefined;
1015
+ /** The desktop session that delegated this one ("via the desktop app"); empty for a session from a browser approval. */
1016
+ delegatedFromSessionId: string;
1013
1017
  }
1014
1018
 
1015
1019
  export interface RevokeCliSessionRequest {
@@ -9088,7 +9092,14 @@ export const ListCliSessionsResponse: MessageFns<ListCliSessionsResponse> = {
9088
9092
  };
9089
9093
 
9090
9094
  function createBaseCliSession(): CliSession {
9091
- return { sessionId: "", label: "", createdAt: undefined, lastUsedAt: undefined, expiresAt: undefined };
9095
+ return {
9096
+ sessionId: "",
9097
+ label: "",
9098
+ createdAt: undefined,
9099
+ lastUsedAt: undefined,
9100
+ expiresAt: undefined,
9101
+ delegatedFromSessionId: "",
9102
+ };
9092
9103
  }
9093
9104
 
9094
9105
  export const CliSession: MessageFns<CliSession> = {
@@ -9108,6 +9119,9 @@ export const CliSession: MessageFns<CliSession> = {
9108
9119
  if (message.expiresAt !== undefined) {
9109
9120
  Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(42).fork()).join();
9110
9121
  }
9122
+ if (message.delegatedFromSessionId !== "") {
9123
+ writer.uint32(50).string(message.delegatedFromSessionId);
9124
+ }
9111
9125
  return writer;
9112
9126
  },
9113
9127
 
@@ -9164,6 +9178,14 @@ export const CliSession: MessageFns<CliSession> = {
9164
9178
  message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
9165
9179
  continue;
9166
9180
  }
9181
+ case 6: {
9182
+ if (tag !== 50) {
9183
+ break;
9184
+ }
9185
+
9186
+ message.delegatedFromSessionId = reader.string();
9187
+ continue;
9188
+ }
9167
9189
  }
9168
9190
  if ((tag & 7) === 4 || tag === 0) {
9169
9191
  break;
@@ -9199,6 +9221,11 @@ export const CliSession: MessageFns<CliSession> = {
9199
9221
  : isSet(object.expires_at)
9200
9222
  ? fromJsonTimestamp(object.expires_at)
9201
9223
  : undefined,
9224
+ delegatedFromSessionId: isSet(object.delegatedFromSessionId)
9225
+ ? globalThis.String(object.delegatedFromSessionId)
9226
+ : isSet(object.delegated_from_session_id)
9227
+ ? globalThis.String(object.delegated_from_session_id)
9228
+ : "",
9202
9229
  };
9203
9230
  },
9204
9231
 
@@ -9219,6 +9246,9 @@ export const CliSession: MessageFns<CliSession> = {
9219
9246
  if (message.expiresAt !== undefined) {
9220
9247
  obj.expiresAt = message.expiresAt.toISOString();
9221
9248
  }
9249
+ if (message.delegatedFromSessionId !== "") {
9250
+ obj.delegatedFromSessionId = message.delegatedFromSessionId;
9251
+ }
9222
9252
  return obj;
9223
9253
  },
9224
9254
 
@@ -9232,6 +9262,7 @@ export const CliSession: MessageFns<CliSession> = {
9232
9262
  message.createdAt = object.createdAt ?? undefined;
9233
9263
  message.lastUsedAt = object.lastUsedAt ?? undefined;
9234
9264
  message.expiresAt = object.expiresAt ?? undefined;
9265
+ message.delegatedFromSessionId = object.delegatedFromSessionId ?? "";
9235
9266
  return message;
9236
9267
  },
9237
9268
  };
@@ -17898,7 +17898,8 @@ sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
17898
17898
  label: jspb.Message.getFieldWithDefault(msg, 2, ""),
17899
17899
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
17900
17900
  lastUsedAt: (f = msg.getLastUsedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
17901
- expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
17901
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
17902
+ delegatedFromSessionId: jspb.Message.getFieldWithDefault(msg, 6, "")
17902
17903
  };
17903
17904
 
17904
17905
  if (includeInstance) {
@@ -17958,6 +17959,10 @@ proto.gateway.web.v1.CliSession.deserializeBinaryFromReader = function(msg, read
17958
17959
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
17959
17960
  msg.setExpiresAt(value);
17960
17961
  break;
17962
+ case 6:
17963
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
17964
+ msg.setDelegatedFromSessionId(value);
17965
+ break;
17961
17966
  default:
17962
17967
  reader.skipField();
17963
17968
  break;
@@ -18025,6 +18030,13 @@ proto.gateway.web.v1.CliSession.serializeBinaryToWriter = function(message, writ
18025
18030
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
18026
18031
  );
18027
18032
  }
18033
+ f = message.getDelegatedFromSessionId();
18034
+ if (f.length > 0) {
18035
+ writer.writeString(
18036
+ 6,
18037
+ f
18038
+ );
18039
+ }
18028
18040
  };
18029
18041
 
18030
18042
 
@@ -18175,6 +18187,24 @@ proto.gateway.web.v1.CliSession.prototype.hasExpiresAt = function() {
18175
18187
  };
18176
18188
 
18177
18189
 
18190
+ /**
18191
+ * optional string delegated_from_session_id = 6;
18192
+ * @return {string}
18193
+ */
18194
+ proto.gateway.web.v1.CliSession.prototype.getDelegatedFromSessionId = function() {
18195
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
18196
+ };
18197
+
18198
+
18199
+ /**
18200
+ * @param {string} value
18201
+ * @return {!proto.gateway.web.v1.CliSession} returns this
18202
+ */
18203
+ proto.gateway.web.v1.CliSession.prototype.setDelegatedFromSessionId = function(value) {
18204
+ return jspb.Message.setProto3StringField(this, 6, value);
18205
+ };
18206
+
18207
+
18178
18208
 
18179
18209
 
18180
18210
 
@@ -43,6 +43,15 @@ export interface AuthorizeDesktopFreshSessionResponse {
43
43
  expiresAt: Date | undefined;
44
44
  }
45
45
 
46
+ export interface RevokeCliSessionFamilyRequest {
47
+ organizationId: string;
48
+ sessionId: string;
49
+ }
50
+
51
+ export interface RevokeCliSessionFamilyResponse {
52
+ status: ResponseStatus | undefined;
53
+ }
54
+
46
55
  function createBaseAuthorizeDesktopLoginRequest(): AuthorizeDesktopLoginRequest {
47
56
  return { organizationId: "", codeChallenge: "", redirectPort: 0, label: "" };
48
57
  }
@@ -505,6 +514,172 @@ export const AuthorizeDesktopFreshSessionResponse: MessageFns<AuthorizeDesktopFr
505
514
  },
506
515
  };
507
516
 
517
+ function createBaseRevokeCliSessionFamilyRequest(): RevokeCliSessionFamilyRequest {
518
+ return { organizationId: "", sessionId: "" };
519
+ }
520
+
521
+ export const RevokeCliSessionFamilyRequest: MessageFns<RevokeCliSessionFamilyRequest> = {
522
+ encode(message: RevokeCliSessionFamilyRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
523
+ if (message.organizationId !== "") {
524
+ writer.uint32(10).string(message.organizationId);
525
+ }
526
+ if (message.sessionId !== "") {
527
+ writer.uint32(18).string(message.sessionId);
528
+ }
529
+ return writer;
530
+ },
531
+
532
+ decode(input: BinaryReader | Uint8Array, length?: number): RevokeCliSessionFamilyRequest {
533
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
534
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
535
+ if (previousRecursionDepth >= 100) {
536
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
537
+ }
538
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
539
+ try {
540
+ const end = length === undefined ? reader.len : reader.pos + length;
541
+ const message = createBaseRevokeCliSessionFamilyRequest();
542
+ while (reader.pos < end) {
543
+ const tag = reader.uint32();
544
+ switch (tag >>> 3) {
545
+ case 1: {
546
+ if (tag !== 10) {
547
+ break;
548
+ }
549
+
550
+ message.organizationId = reader.string();
551
+ continue;
552
+ }
553
+ case 2: {
554
+ if (tag !== 18) {
555
+ break;
556
+ }
557
+
558
+ message.sessionId = reader.string();
559
+ continue;
560
+ }
561
+ }
562
+ if ((tag & 7) === 4 || tag === 0) {
563
+ break;
564
+ }
565
+ reader.skip(tag & 7);
566
+ }
567
+ return message;
568
+ } finally {
569
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
570
+ }
571
+ },
572
+
573
+ fromJSON(object: any): RevokeCliSessionFamilyRequest {
574
+ return {
575
+ organizationId: isSet(object.organizationId)
576
+ ? globalThis.String(object.organizationId)
577
+ : isSet(object.organization_id)
578
+ ? globalThis.String(object.organization_id)
579
+ : "",
580
+ sessionId: isSet(object.sessionId)
581
+ ? globalThis.String(object.sessionId)
582
+ : isSet(object.session_id)
583
+ ? globalThis.String(object.session_id)
584
+ : "",
585
+ };
586
+ },
587
+
588
+ toJSON(message: RevokeCliSessionFamilyRequest): unknown {
589
+ const obj: any = {};
590
+ if (message.organizationId !== "") {
591
+ obj.organizationId = message.organizationId;
592
+ }
593
+ if (message.sessionId !== "") {
594
+ obj.sessionId = message.sessionId;
595
+ }
596
+ return obj;
597
+ },
598
+
599
+ create<I extends Exact<DeepPartial<RevokeCliSessionFamilyRequest>, I>>(base?: I): RevokeCliSessionFamilyRequest {
600
+ return RevokeCliSessionFamilyRequest.fromPartial(base ?? ({} as any));
601
+ },
602
+ fromPartial<I extends Exact<DeepPartial<RevokeCliSessionFamilyRequest>, I>>(
603
+ object: I,
604
+ ): RevokeCliSessionFamilyRequest {
605
+ const message = createBaseRevokeCliSessionFamilyRequest();
606
+ message.organizationId = object.organizationId ?? "";
607
+ message.sessionId = object.sessionId ?? "";
608
+ return message;
609
+ },
610
+ };
611
+
612
+ function createBaseRevokeCliSessionFamilyResponse(): RevokeCliSessionFamilyResponse {
613
+ return { status: undefined };
614
+ }
615
+
616
+ export const RevokeCliSessionFamilyResponse: MessageFns<RevokeCliSessionFamilyResponse> = {
617
+ encode(message: RevokeCliSessionFamilyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
618
+ if (message.status !== undefined) {
619
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
620
+ }
621
+ return writer;
622
+ },
623
+
624
+ decode(input: BinaryReader | Uint8Array, length?: number): RevokeCliSessionFamilyResponse {
625
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
626
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
627
+ if (previousRecursionDepth >= 100) {
628
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
629
+ }
630
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
631
+ try {
632
+ const end = length === undefined ? reader.len : reader.pos + length;
633
+ const message = createBaseRevokeCliSessionFamilyResponse();
634
+ while (reader.pos < end) {
635
+ const tag = reader.uint32();
636
+ switch (tag >>> 3) {
637
+ case 1: {
638
+ if (tag !== 10) {
639
+ break;
640
+ }
641
+
642
+ message.status = ResponseStatus.decode(reader, reader.uint32());
643
+ continue;
644
+ }
645
+ }
646
+ if ((tag & 7) === 4 || tag === 0) {
647
+ break;
648
+ }
649
+ reader.skip(tag & 7);
650
+ }
651
+ return message;
652
+ } finally {
653
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
654
+ }
655
+ },
656
+
657
+ fromJSON(object: any): RevokeCliSessionFamilyResponse {
658
+ return { status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined };
659
+ },
660
+
661
+ toJSON(message: RevokeCliSessionFamilyResponse): unknown {
662
+ const obj: any = {};
663
+ if (message.status !== undefined) {
664
+ obj.status = ResponseStatus.toJSON(message.status);
665
+ }
666
+ return obj;
667
+ },
668
+
669
+ create<I extends Exact<DeepPartial<RevokeCliSessionFamilyResponse>, I>>(base?: I): RevokeCliSessionFamilyResponse {
670
+ return RevokeCliSessionFamilyResponse.fromPartial(base ?? ({} as any));
671
+ },
672
+ fromPartial<I extends Exact<DeepPartial<RevokeCliSessionFamilyResponse>, I>>(
673
+ object: I,
674
+ ): RevokeCliSessionFamilyResponse {
675
+ const message = createBaseRevokeCliSessionFamilyResponse();
676
+ message.status = (object.status !== undefined && object.status !== null)
677
+ ? ResponseStatus.fromPartial(object.status)
678
+ : undefined;
679
+ return message;
680
+ },
681
+ };
682
+
508
683
  /**
509
684
  * DesktopAuthGatewayService is the desktop's approval page. A refusal is a non-success status whose reason clients
510
685
  * branch on (status.reason); the message is for people.
@@ -529,6 +704,14 @@ export interface DesktopAuthGatewayService {
529
704
  request: AuthorizeDesktopFreshSessionRequest,
530
705
  metadata?: Metadata,
531
706
  ): Promise<AuthorizeDesktopFreshSessionResponse>;
707
+ /**
708
+ * RevokeCliSessionFamily signs out everywhere from the sessions list: the delegation family the session belongs to
709
+ * (the desktop session that delegated, every CLI session it delegated, and its outstanding codes).
710
+ */
711
+ RevokeCliSessionFamily(
712
+ request: RevokeCliSessionFamilyRequest,
713
+ metadata?: Metadata,
714
+ ): Promise<RevokeCliSessionFamilyResponse>;
532
715
  }
533
716
 
534
717
  export const DesktopAuthGatewayServiceServiceName = "gateway.web.v1.DesktopAuthGatewayService";
@@ -540,6 +723,7 @@ export class DesktopAuthGatewayServiceClientImpl implements DesktopAuthGatewaySe
540
723
  this.rpc = rpc;
541
724
  this.AuthorizeDesktopLogin = this.AuthorizeDesktopLogin.bind(this);
542
725
  this.AuthorizeDesktopFreshSession = this.AuthorizeDesktopFreshSession.bind(this);
726
+ this.RevokeCliSessionFamily = this.RevokeCliSessionFamily.bind(this);
543
727
  }
544
728
  AuthorizeDesktopLogin(
545
729
  request: AuthorizeDesktopLoginRequest,
@@ -558,6 +742,15 @@ export class DesktopAuthGatewayServiceClientImpl implements DesktopAuthGatewaySe
558
742
  const promise = this.rpc.request(this.service, "AuthorizeDesktopFreshSession", data, metadata);
559
743
  return promise.then((data) => AuthorizeDesktopFreshSessionResponse.decode(new BinaryReader(data)));
560
744
  }
745
+
746
+ RevokeCliSessionFamily(
747
+ request: RevokeCliSessionFamilyRequest,
748
+ metadata?: Metadata,
749
+ ): Promise<RevokeCliSessionFamilyResponse> {
750
+ const data = RevokeCliSessionFamilyRequest.encode(request).finish();
751
+ const promise = this.rpc.request(this.service, "RevokeCliSessionFamily", data, metadata);
752
+ return promise.then((data) => RevokeCliSessionFamilyResponse.decode(new BinaryReader(data)));
753
+ }
561
754
  }
562
755
 
563
756
  interface Rpc {
@@ -51,6 +51,28 @@ function deserialize_gateway_web_v1_AuthorizeDesktopLoginResponse(buffer_arg) {
51
51
  return proto_gateway_web_v1_desktop_auth_gateway_pb.AuthorizeDesktopLoginResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
52
  }
53
53
 
54
+ function serialize_gateway_web_v1_RevokeCliSessionFamilyRequest(arg) {
55
+ if (!(arg instanceof proto_gateway_web_v1_desktop_auth_gateway_pb.RevokeCliSessionFamilyRequest)) {
56
+ throw new Error('Expected argument of type gateway.web.v1.RevokeCliSessionFamilyRequest');
57
+ }
58
+ return Buffer.from(arg.serializeBinary());
59
+ }
60
+
61
+ function deserialize_gateway_web_v1_RevokeCliSessionFamilyRequest(buffer_arg) {
62
+ return proto_gateway_web_v1_desktop_auth_gateway_pb.RevokeCliSessionFamilyRequest.deserializeBinary(new Uint8Array(buffer_arg));
63
+ }
64
+
65
+ function serialize_gateway_web_v1_RevokeCliSessionFamilyResponse(arg) {
66
+ if (!(arg instanceof proto_gateway_web_v1_desktop_auth_gateway_pb.RevokeCliSessionFamilyResponse)) {
67
+ throw new Error('Expected argument of type gateway.web.v1.RevokeCliSessionFamilyResponse');
68
+ }
69
+ return Buffer.from(arg.serializeBinary());
70
+ }
71
+
72
+ function deserialize_gateway_web_v1_RevokeCliSessionFamilyResponse(buffer_arg) {
73
+ return proto_gateway_web_v1_desktop_auth_gateway_pb.RevokeCliSessionFamilyResponse.deserializeBinary(new Uint8Array(buffer_arg));
74
+ }
75
+
54
76
 
55
77
  // DesktopAuthGatewayService is the desktop's approval page. A refusal is a non-success status whose reason clients
56
78
  // branch on (status.reason); the message is for people.
@@ -84,6 +106,19 @@ authorizeDesktopFreshSession: {
84
106
  responseSerialize: serialize_gateway_web_v1_AuthorizeDesktopFreshSessionResponse,
85
107
  responseDeserialize: deserialize_gateway_web_v1_AuthorizeDesktopFreshSessionResponse,
86
108
  },
109
+ // RevokeCliSessionFamily signs out everywhere from the sessions list: the delegation family the session belongs to
110
+ // (the desktop session that delegated, every CLI session it delegated, and its outstanding codes).
111
+ revokeCliSessionFamily: {
112
+ path: '/gateway.web.v1.DesktopAuthGatewayService/RevokeCliSessionFamily',
113
+ requestStream: false,
114
+ responseStream: false,
115
+ requestType: proto_gateway_web_v1_desktop_auth_gateway_pb.RevokeCliSessionFamilyRequest,
116
+ responseType: proto_gateway_web_v1_desktop_auth_gateway_pb.RevokeCliSessionFamilyResponse,
117
+ requestSerialize: serialize_gateway_web_v1_RevokeCliSessionFamilyRequest,
118
+ requestDeserialize: deserialize_gateway_web_v1_RevokeCliSessionFamilyRequest,
119
+ responseSerialize: serialize_gateway_web_v1_RevokeCliSessionFamilyResponse,
120
+ responseDeserialize: deserialize_gateway_web_v1_RevokeCliSessionFamilyResponse,
121
+ },
87
122
  };
88
123
 
89
124
  exports.DesktopAuthGatewayServiceClient = grpc.makeGenericClientConstructor(DesktopAuthGatewayServiceService, 'DesktopAuthGatewayService');
@@ -25,6 +25,8 @@ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest', nu
25
25
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse', null, global);
26
26
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopLoginRequest', null, global);
27
27
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopLoginResponse', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionFamilyRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionFamilyResponse', null, global);
28
30
  /**
29
31
  * Generated by JsPbCodeGenerator.
30
32
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -109,6 +111,48 @@ if (goog.DEBUG && !COMPILED) {
109
111
  */
110
112
  proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.displayName = 'proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse';
111
113
  }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.gateway.web.v1.RevokeCliSessionFamilyRequest, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.displayName = 'proto.gateway.web.v1.RevokeCliSessionFamilyRequest';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
+ };
148
+ goog.inherits(proto.gateway.web.v1.RevokeCliSessionFamilyResponse, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.displayName = 'proto.gateway.web.v1.RevokeCliSessionFamilyResponse';
155
+ }
112
156
 
113
157
 
114
158
 
@@ -983,4 +1027,315 @@ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.hasExpiresAt
983
1027
  };
984
1028
 
985
1029
 
1030
+
1031
+
1032
+
1033
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1034
+ /**
1035
+ * Creates an object representation of this proto.
1036
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1037
+ * Optional fields that are not set will be set to undefined.
1038
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1039
+ * For the list of reserved names please see:
1040
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1041
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1042
+ * JSPB instance for transitional soy proto support:
1043
+ * http://goto/soy-param-migration
1044
+ * @return {!Object}
1045
+ */
1046
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.toObject = function(opt_includeInstance) {
1047
+ return proto.gateway.web.v1.RevokeCliSessionFamilyRequest.toObject(opt_includeInstance, this);
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Static version of the {@see toObject} method.
1053
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1054
+ * the JSPB instance for transitional soy proto support:
1055
+ * http://goto/soy-param-migration
1056
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} msg The msg instance to transform.
1057
+ * @return {!Object}
1058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1059
+ */
1060
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.toObject = function(includeInstance, msg) {
1061
+ var f, obj = {
1062
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1063
+ sessionId: jspb.Message.getFieldWithDefault(msg, 2, "")
1064
+ };
1065
+
1066
+ if (includeInstance) {
1067
+ obj.$jspbMessageInstance = msg;
1068
+ }
1069
+ return obj;
1070
+ };
1071
+ }
1072
+
1073
+
1074
+ /**
1075
+ * Deserializes binary data (in protobuf wire format).
1076
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1077
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest}
1078
+ */
1079
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.deserializeBinary = function(bytes) {
1080
+ var reader = new jspb.BinaryReader(bytes);
1081
+ var msg = new proto.gateway.web.v1.RevokeCliSessionFamilyRequest;
1082
+ return proto.gateway.web.v1.RevokeCliSessionFamilyRequest.deserializeBinaryFromReader(msg, reader);
1083
+ };
1084
+
1085
+
1086
+ /**
1087
+ * Deserializes binary data (in protobuf wire format) from the
1088
+ * given reader into the given message object.
1089
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} msg The message object to deserialize into.
1090
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1091
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest}
1092
+ */
1093
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.deserializeBinaryFromReader = function(msg, reader) {
1094
+ while (reader.nextField()) {
1095
+ if (reader.isEndGroup()) {
1096
+ break;
1097
+ }
1098
+ var field = reader.getFieldNumber();
1099
+ switch (field) {
1100
+ case 1:
1101
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1102
+ msg.setOrganizationId(value);
1103
+ break;
1104
+ case 2:
1105
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1106
+ msg.setSessionId(value);
1107
+ break;
1108
+ default:
1109
+ reader.skipField();
1110
+ break;
1111
+ }
1112
+ }
1113
+ return msg;
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Serializes the message to binary data (in protobuf wire format).
1119
+ * @return {!Uint8Array}
1120
+ */
1121
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.serializeBinary = function() {
1122
+ var writer = new jspb.BinaryWriter();
1123
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.serializeBinaryToWriter(this, writer);
1124
+ return writer.getResultBuffer();
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Serializes the given message to binary data (in protobuf wire
1130
+ * format), writing to the given BinaryWriter.
1131
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} message
1132
+ * @param {!jspb.BinaryWriter} writer
1133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1134
+ */
1135
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.serializeBinaryToWriter = function(message, writer) {
1136
+ var f = undefined;
1137
+ f = message.getOrganizationId();
1138
+ if (f.length > 0) {
1139
+ writer.writeString(
1140
+ 1,
1141
+ f
1142
+ );
1143
+ }
1144
+ f = message.getSessionId();
1145
+ if (f.length > 0) {
1146
+ writer.writeString(
1147
+ 2,
1148
+ f
1149
+ );
1150
+ }
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * optional string organization_id = 1;
1156
+ * @return {string}
1157
+ */
1158
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.getOrganizationId = function() {
1159
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * @param {string} value
1165
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} returns this
1166
+ */
1167
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.setOrganizationId = function(value) {
1168
+ return jspb.Message.setProto3StringField(this, 1, value);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * optional string session_id = 2;
1174
+ * @return {string}
1175
+ */
1176
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.getSessionId = function() {
1177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * @param {string} value
1183
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} returns this
1184
+ */
1185
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.setSessionId = function(value) {
1186
+ return jspb.Message.setProto3StringField(this, 2, value);
1187
+ };
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1194
+ /**
1195
+ * Creates an object representation of this proto.
1196
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1197
+ * Optional fields that are not set will be set to undefined.
1198
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1199
+ * For the list of reserved names please see:
1200
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1201
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1202
+ * JSPB instance for transitional soy proto support:
1203
+ * http://goto/soy-param-migration
1204
+ * @return {!Object}
1205
+ */
1206
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.toObject = function(opt_includeInstance) {
1207
+ return proto.gateway.web.v1.RevokeCliSessionFamilyResponse.toObject(opt_includeInstance, this);
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Static version of the {@see toObject} method.
1213
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1214
+ * the JSPB instance for transitional soy proto support:
1215
+ * http://goto/soy-param-migration
1216
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} msg The msg instance to transform.
1217
+ * @return {!Object}
1218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1219
+ */
1220
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.toObject = function(includeInstance, msg) {
1221
+ var f, obj = {
1222
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
1223
+ };
1224
+
1225
+ if (includeInstance) {
1226
+ obj.$jspbMessageInstance = msg;
1227
+ }
1228
+ return obj;
1229
+ };
1230
+ }
1231
+
1232
+
1233
+ /**
1234
+ * Deserializes binary data (in protobuf wire format).
1235
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1236
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse}
1237
+ */
1238
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.deserializeBinary = function(bytes) {
1239
+ var reader = new jspb.BinaryReader(bytes);
1240
+ var msg = new proto.gateway.web.v1.RevokeCliSessionFamilyResponse;
1241
+ return proto.gateway.web.v1.RevokeCliSessionFamilyResponse.deserializeBinaryFromReader(msg, reader);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Deserializes binary data (in protobuf wire format) from the
1247
+ * given reader into the given message object.
1248
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} msg The message object to deserialize into.
1249
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1250
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse}
1251
+ */
1252
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.deserializeBinaryFromReader = function(msg, reader) {
1253
+ while (reader.nextField()) {
1254
+ if (reader.isEndGroup()) {
1255
+ break;
1256
+ }
1257
+ var field = reader.getFieldNumber();
1258
+ switch (field) {
1259
+ case 1:
1260
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1261
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1262
+ msg.setStatus(value);
1263
+ break;
1264
+ default:
1265
+ reader.skipField();
1266
+ break;
1267
+ }
1268
+ }
1269
+ return msg;
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Serializes the message to binary data (in protobuf wire format).
1275
+ * @return {!Uint8Array}
1276
+ */
1277
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.serializeBinary = function() {
1278
+ var writer = new jspb.BinaryWriter();
1279
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.serializeBinaryToWriter(this, writer);
1280
+ return writer.getResultBuffer();
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Serializes the given message to binary data (in protobuf wire
1286
+ * format), writing to the given BinaryWriter.
1287
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} message
1288
+ * @param {!jspb.BinaryWriter} writer
1289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1290
+ */
1291
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.serializeBinaryToWriter = function(message, writer) {
1292
+ var f = undefined;
1293
+ f = message.getStatus();
1294
+ if (f != null) {
1295
+ writer.writeMessage(
1296
+ 1,
1297
+ f,
1298
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1299
+ );
1300
+ }
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * optional gateway.common.v1.ResponseStatus status = 1;
1306
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1307
+ */
1308
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.getStatus = function() {
1309
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1310
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1316
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} returns this
1317
+ */
1318
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.setStatus = function(value) {
1319
+ return jspb.Message.setWrapperField(this, 1, value);
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Clears the message field making it undefined.
1325
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} returns this
1326
+ */
1327
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.clearStatus = function() {
1328
+ return this.setStatus(undefined);
1329
+ };
1330
+
1331
+
1332
+ /**
1333
+ * Returns whether this field is set.
1334
+ * @return {boolean}
1335
+ */
1336
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.hasStatus = function() {
1337
+ return jspb.Message.getField(this, 1) != null;
1338
+ };
1339
+
1340
+
986
1341
  goog.object.extend(exports, proto.gateway.web.v1);