@miradorlabs/web-grpc 4.21.0 → 4.23.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.
Files changed (36) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +1 -1
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1448 -105
  10. package/proto/gateway/web/v1/account_gateway_grpc_pb.js +137 -0
  11. package/proto/gateway/web/v1/account_gateway_pb.js +2522 -39
  12. package/proto/gateway/web/v1/admin_gateway.ts +1 -1
  13. package/proto/gateway/web/v1/ai_gateway.ts +1 -1
  14. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  15. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  16. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  17. package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
  18. package/proto/gateway/web/v1/common.ts +1 -1
  19. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  20. package/proto/gateway/web/v1/desktop_auth_gateway.ts +194 -1
  21. package/proto/gateway/web/v1/desktop_auth_gateway_grpc_pb.js +35 -0
  22. package/proto/gateway/web/v1/desktop_auth_gateway_pb.js +355 -0
  23. package/proto/gateway/web/v1/github_connector.ts +1 -1
  24. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/notification_gateway.ts +1 -1
  29. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  34. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  35. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  36. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/admin_gateway.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/ai_gateway.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/attribute_value.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/beta_gateway.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/chain_gateway.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/claude_enterprise_gateway.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/common.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/derived_metric_gateway.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.18.4
3
+ // protoc-gen-ts_proto v2.19.0
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/desktop_auth_gateway.proto
6
6
 
@@ -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');