@miradorlabs/web-grpc 3.43.0 → 3.45.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": "3.43.0",
3
+ "version": "3.45.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",
@@ -21,6 +21,12 @@ export enum ClaudeEnterpriseCapability {
21
21
  CLAUDE_ENTERPRISE_CAPABILITY_USAGE_REPORTS = 1,
22
22
  /** CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY - The member directory. Anthropic: read:members or read:org_audit. */
23
23
  CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY = 2,
24
+ /** CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED - The compliance activity feed. Anthropic: read:compliance_activities. */
25
+ CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED = 3,
26
+ /** CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA - Organizations, roles, groups and settings. Anthropic: read:compliance_org_data. */
27
+ CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA = 4,
28
+ /** CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT - Chats, files, projects, session transcripts and organization users. Anthropic: read:compliance_user_data. */
29
+ CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT = 5,
24
30
  UNRECOGNIZED = -1,
25
31
  }
26
32
 
@@ -35,6 +41,15 @@ export function claudeEnterpriseCapabilityFromJSON(object: any): ClaudeEnterpris
35
41
  case 2:
36
42
  case "CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY":
37
43
  return ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY;
44
+ case 3:
45
+ case "CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED":
46
+ return ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED;
47
+ case 4:
48
+ case "CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA":
49
+ return ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA;
50
+ case 5:
51
+ case "CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT":
52
+ return ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT;
38
53
  case -1:
39
54
  case "UNRECOGNIZED":
40
55
  default:
@@ -50,6 +65,12 @@ export function claudeEnterpriseCapabilityToJSON(object: ClaudeEnterpriseCapabil
50
65
  return "CLAUDE_ENTERPRISE_CAPABILITY_USAGE_REPORTS";
51
66
  case ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY:
52
67
  return "CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY";
68
+ case ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED:
69
+ return "CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED";
70
+ case ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA:
71
+ return "CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA";
72
+ case ClaudeEnterpriseCapability.CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT:
73
+ return "CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT";
53
74
  case ClaudeEnterpriseCapability.UNRECOGNIZED:
54
75
  default:
55
76
  return "UNRECOGNIZED";
@@ -353,6 +374,13 @@ export interface ClaudeEnterpriseConnection {
353
374
  capabilities: ClaudeEnterpriseCapability[];
354
375
  /** Newest first. */
355
376
  keys: ClaudeEnterpriseKey[];
377
+ /**
378
+ * The team imported activity goes to; empty when nothing is imported (deleting that team clears it). Claude.ai
379
+ * chats and Compliance API sessions (except Claude Code and Cowork) are imported there when a key reads user
380
+ * content; a chat or session stays in the team it was first imported into, so a change applies only to activity
381
+ * that starts after it.
382
+ */
383
+ importProjectId: string;
356
384
  }
357
385
 
358
386
  /** A key is never changed: what it read when it was saved holds until it is deleted. */
@@ -402,9 +430,19 @@ export interface ClaudeEnterpriseSync {
402
430
 
403
431
  export interface CreateClaudeEnterpriseKeyRequest {
404
432
  organizationId: string;
405
- /** An Analytics API key created in claude.ai > Organization settings > API by the primary owner (read:analytics). */
433
+ /**
434
+ * Created in claude.ai > Organization settings > API: an Analytics API key (by the primary owner,
435
+ * read:analytics) or a Compliance Access Key (read:compliance_* scopes).
436
+ */
406
437
  apiKey: string;
407
438
  billingModel: ClaudeEnterpriseBillingModel;
439
+ /**
440
+ * The Terma team imported activity goes to: an active team of the organization, never the demo, with a capture
441
+ * policy that covers every repository. Required when this key creates the connection; on a later key, set changes
442
+ * the team and empty keeps it. Saved even when the key cannot read user content: nothing is imported until a key
443
+ * that can is added.
444
+ */
445
+ importProjectId: string;
408
446
  }
409
447
 
410
448
  export interface CreateClaudeEnterpriseKeyResponse {
@@ -569,6 +607,20 @@ export interface ClaudeEnterpriseMember {
569
607
  lastActivityDate: string;
570
608
  }
571
609
 
610
+ export interface SetClaudeEnterpriseActivityImportRequest {
611
+ organizationId: string;
612
+ /**
613
+ * The team imported activity goes to, held to the same rules as CreateClaudeEnterpriseKey's import_project_id;
614
+ * empty stops importing.
615
+ */
616
+ projectId: string;
617
+ }
618
+
619
+ export interface SetClaudeEnterpriseActivityImportResponse {
620
+ status: ResponseStatus | undefined;
621
+ connection: ClaudeEnterpriseConnection | undefined;
622
+ }
623
+
572
624
  function createBaseGetClaudeEnterpriseConnectorRequest(): GetClaudeEnterpriseConnectorRequest {
573
625
  return { organizationId: "" };
574
626
  }
@@ -798,7 +850,7 @@ export const GetClaudeEnterpriseConnectorResponse: MessageFns<GetClaudeEnterpris
798
850
  };
799
851
 
800
852
  function createBaseClaudeEnterpriseConnection(): ClaudeEnterpriseConnection {
801
- return { billingModel: 0, capabilities: [], keys: [] };
853
+ return { billingModel: 0, capabilities: [], keys: [], importProjectId: "" };
802
854
  }
803
855
 
804
856
  export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection> = {
@@ -816,6 +868,9 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
816
868
  for (const v of message.keys) {
817
869
  ClaudeEnterpriseKey.encode(v!, writer.uint32(26).fork()).join();
818
870
  }
871
+ if (message.importProjectId !== "") {
872
+ writer.uint32(34).string(message.importProjectId);
873
+ }
819
874
  return writer;
820
875
  },
821
876
 
@@ -866,6 +921,14 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
866
921
  message.keys.push(ClaudeEnterpriseKey.decode(reader, reader.uint32()));
867
922
  continue;
868
923
  }
924
+ case 4: {
925
+ if (tag !== 34) {
926
+ break;
927
+ }
928
+
929
+ message.importProjectId = reader.string();
930
+ continue;
931
+ }
869
932
  }
870
933
  if ((tag & 7) === 4 || tag === 0) {
871
934
  break;
@@ -889,6 +952,11 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
889
952
  ? object.capabilities.map((e: any) => claudeEnterpriseCapabilityFromJSON(e))
890
953
  : [],
891
954
  keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e: any) => ClaudeEnterpriseKey.fromJSON(e)) : [],
955
+ importProjectId: isSet(object.importProjectId)
956
+ ? globalThis.String(object.importProjectId)
957
+ : isSet(object.import_project_id)
958
+ ? globalThis.String(object.import_project_id)
959
+ : "",
892
960
  };
893
961
  },
894
962
 
@@ -903,6 +971,9 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
903
971
  if (message.keys?.length) {
904
972
  obj.keys = message.keys.map((e) => ClaudeEnterpriseKey.toJSON(e));
905
973
  }
974
+ if (message.importProjectId !== "") {
975
+ obj.importProjectId = message.importProjectId;
976
+ }
906
977
  return obj;
907
978
  },
908
979
 
@@ -914,6 +985,7 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
914
985
  message.billingModel = object.billingModel ?? 0;
915
986
  message.capabilities = object.capabilities?.map((e) => e) || [];
916
987
  message.keys = object.keys?.map((e) => ClaudeEnterpriseKey.fromPartial(e)) || [];
988
+ message.importProjectId = object.importProjectId ?? "";
917
989
  return message;
918
990
  },
919
991
  };
@@ -1307,7 +1379,7 @@ export const ClaudeEnterpriseSync: MessageFns<ClaudeEnterpriseSync> = {
1307
1379
  };
1308
1380
 
1309
1381
  function createBaseCreateClaudeEnterpriseKeyRequest(): CreateClaudeEnterpriseKeyRequest {
1310
- return { organizationId: "", apiKey: "", billingModel: 0 };
1382
+ return { organizationId: "", apiKey: "", billingModel: 0, importProjectId: "" };
1311
1383
  }
1312
1384
 
1313
1385
  export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterpriseKeyRequest> = {
@@ -1321,6 +1393,9 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
1321
1393
  if (message.billingModel !== 0) {
1322
1394
  writer.uint32(24).int32(message.billingModel);
1323
1395
  }
1396
+ if (message.importProjectId !== "") {
1397
+ writer.uint32(34).string(message.importProjectId);
1398
+ }
1324
1399
  return writer;
1325
1400
  },
1326
1401
 
@@ -1361,6 +1436,14 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
1361
1436
  message.billingModel = reader.int32() as any;
1362
1437
  continue;
1363
1438
  }
1439
+ case 4: {
1440
+ if (tag !== 34) {
1441
+ break;
1442
+ }
1443
+
1444
+ message.importProjectId = reader.string();
1445
+ continue;
1446
+ }
1364
1447
  }
1365
1448
  if ((tag & 7) === 4 || tag === 0) {
1366
1449
  break;
@@ -1390,6 +1473,11 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
1390
1473
  : isSet(object.billing_model)
1391
1474
  ? claudeEnterpriseBillingModelFromJSON(object.billing_model)
1392
1475
  : 0,
1476
+ importProjectId: isSet(object.importProjectId)
1477
+ ? globalThis.String(object.importProjectId)
1478
+ : isSet(object.import_project_id)
1479
+ ? globalThis.String(object.import_project_id)
1480
+ : "",
1393
1481
  };
1394
1482
  },
1395
1483
 
@@ -1404,6 +1492,9 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
1404
1492
  if (message.billingModel !== 0) {
1405
1493
  obj.billingModel = claudeEnterpriseBillingModelToJSON(message.billingModel);
1406
1494
  }
1495
+ if (message.importProjectId !== "") {
1496
+ obj.importProjectId = message.importProjectId;
1497
+ }
1407
1498
  return obj;
1408
1499
  },
1409
1500
 
@@ -1419,6 +1510,7 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
1419
1510
  message.organizationId = object.organizationId ?? "";
1420
1511
  message.apiKey = object.apiKey ?? "";
1421
1512
  message.billingModel = object.billingModel ?? 0;
1513
+ message.importProjectId = object.importProjectId ?? "";
1422
1514
  return message;
1423
1515
  },
1424
1516
  };
@@ -3507,6 +3599,196 @@ export const ClaudeEnterpriseMember: MessageFns<ClaudeEnterpriseMember> = {
3507
3599
  },
3508
3600
  };
3509
3601
 
3602
+ function createBaseSetClaudeEnterpriseActivityImportRequest(): SetClaudeEnterpriseActivityImportRequest {
3603
+ return { organizationId: "", projectId: "" };
3604
+ }
3605
+
3606
+ export const SetClaudeEnterpriseActivityImportRequest: MessageFns<SetClaudeEnterpriseActivityImportRequest> = {
3607
+ encode(message: SetClaudeEnterpriseActivityImportRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3608
+ if (message.organizationId !== "") {
3609
+ writer.uint32(10).string(message.organizationId);
3610
+ }
3611
+ if (message.projectId !== "") {
3612
+ writer.uint32(18).string(message.projectId);
3613
+ }
3614
+ return writer;
3615
+ },
3616
+
3617
+ decode(input: BinaryReader | Uint8Array, length?: number): SetClaudeEnterpriseActivityImportRequest {
3618
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3619
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3620
+ if (previousRecursionDepth >= 100) {
3621
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3622
+ }
3623
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3624
+ try {
3625
+ const end = length === undefined ? reader.len : reader.pos + length;
3626
+ const message = createBaseSetClaudeEnterpriseActivityImportRequest();
3627
+ while (reader.pos < end) {
3628
+ const tag = reader.uint32();
3629
+ switch (tag >>> 3) {
3630
+ case 1: {
3631
+ if (tag !== 10) {
3632
+ break;
3633
+ }
3634
+
3635
+ message.organizationId = reader.string();
3636
+ continue;
3637
+ }
3638
+ case 2: {
3639
+ if (tag !== 18) {
3640
+ break;
3641
+ }
3642
+
3643
+ message.projectId = reader.string();
3644
+ continue;
3645
+ }
3646
+ }
3647
+ if ((tag & 7) === 4 || tag === 0) {
3648
+ break;
3649
+ }
3650
+ reader.skip(tag & 7);
3651
+ }
3652
+ return message;
3653
+ } finally {
3654
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3655
+ }
3656
+ },
3657
+
3658
+ fromJSON(object: any): SetClaudeEnterpriseActivityImportRequest {
3659
+ return {
3660
+ organizationId: isSet(object.organizationId)
3661
+ ? globalThis.String(object.organizationId)
3662
+ : isSet(object.organization_id)
3663
+ ? globalThis.String(object.organization_id)
3664
+ : "",
3665
+ projectId: isSet(object.projectId)
3666
+ ? globalThis.String(object.projectId)
3667
+ : isSet(object.project_id)
3668
+ ? globalThis.String(object.project_id)
3669
+ : "",
3670
+ };
3671
+ },
3672
+
3673
+ toJSON(message: SetClaudeEnterpriseActivityImportRequest): unknown {
3674
+ const obj: any = {};
3675
+ if (message.organizationId !== "") {
3676
+ obj.organizationId = message.organizationId;
3677
+ }
3678
+ if (message.projectId !== "") {
3679
+ obj.projectId = message.projectId;
3680
+ }
3681
+ return obj;
3682
+ },
3683
+
3684
+ create<I extends Exact<DeepPartial<SetClaudeEnterpriseActivityImportRequest>, I>>(
3685
+ base?: I,
3686
+ ): SetClaudeEnterpriseActivityImportRequest {
3687
+ return SetClaudeEnterpriseActivityImportRequest.fromPartial(base ?? ({} as any));
3688
+ },
3689
+ fromPartial<I extends Exact<DeepPartial<SetClaudeEnterpriseActivityImportRequest>, I>>(
3690
+ object: I,
3691
+ ): SetClaudeEnterpriseActivityImportRequest {
3692
+ const message = createBaseSetClaudeEnterpriseActivityImportRequest();
3693
+ message.organizationId = object.organizationId ?? "";
3694
+ message.projectId = object.projectId ?? "";
3695
+ return message;
3696
+ },
3697
+ };
3698
+
3699
+ function createBaseSetClaudeEnterpriseActivityImportResponse(): SetClaudeEnterpriseActivityImportResponse {
3700
+ return { status: undefined, connection: undefined };
3701
+ }
3702
+
3703
+ export const SetClaudeEnterpriseActivityImportResponse: MessageFns<SetClaudeEnterpriseActivityImportResponse> = {
3704
+ encode(message: SetClaudeEnterpriseActivityImportResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3705
+ if (message.status !== undefined) {
3706
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
3707
+ }
3708
+ if (message.connection !== undefined) {
3709
+ ClaudeEnterpriseConnection.encode(message.connection, writer.uint32(18).fork()).join();
3710
+ }
3711
+ return writer;
3712
+ },
3713
+
3714
+ decode(input: BinaryReader | Uint8Array, length?: number): SetClaudeEnterpriseActivityImportResponse {
3715
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3716
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3717
+ if (previousRecursionDepth >= 100) {
3718
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3719
+ }
3720
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3721
+ try {
3722
+ const end = length === undefined ? reader.len : reader.pos + length;
3723
+ const message = createBaseSetClaudeEnterpriseActivityImportResponse();
3724
+ while (reader.pos < end) {
3725
+ const tag = reader.uint32();
3726
+ switch (tag >>> 3) {
3727
+ case 1: {
3728
+ if (tag !== 10) {
3729
+ break;
3730
+ }
3731
+
3732
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3733
+ continue;
3734
+ }
3735
+ case 2: {
3736
+ if (tag !== 18) {
3737
+ break;
3738
+ }
3739
+
3740
+ message.connection = ClaudeEnterpriseConnection.decode(reader, reader.uint32());
3741
+ continue;
3742
+ }
3743
+ }
3744
+ if ((tag & 7) === 4 || tag === 0) {
3745
+ break;
3746
+ }
3747
+ reader.skip(tag & 7);
3748
+ }
3749
+ return message;
3750
+ } finally {
3751
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3752
+ }
3753
+ },
3754
+
3755
+ fromJSON(object: any): SetClaudeEnterpriseActivityImportResponse {
3756
+ return {
3757
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
3758
+ connection: isSet(object.connection) ? ClaudeEnterpriseConnection.fromJSON(object.connection) : undefined,
3759
+ };
3760
+ },
3761
+
3762
+ toJSON(message: SetClaudeEnterpriseActivityImportResponse): unknown {
3763
+ const obj: any = {};
3764
+ if (message.status !== undefined) {
3765
+ obj.status = ResponseStatus.toJSON(message.status);
3766
+ }
3767
+ if (message.connection !== undefined) {
3768
+ obj.connection = ClaudeEnterpriseConnection.toJSON(message.connection);
3769
+ }
3770
+ return obj;
3771
+ },
3772
+
3773
+ create<I extends Exact<DeepPartial<SetClaudeEnterpriseActivityImportResponse>, I>>(
3774
+ base?: I,
3775
+ ): SetClaudeEnterpriseActivityImportResponse {
3776
+ return SetClaudeEnterpriseActivityImportResponse.fromPartial(base ?? ({} as any));
3777
+ },
3778
+ fromPartial<I extends Exact<DeepPartial<SetClaudeEnterpriseActivityImportResponse>, I>>(
3779
+ object: I,
3780
+ ): SetClaudeEnterpriseActivityImportResponse {
3781
+ const message = createBaseSetClaudeEnterpriseActivityImportResponse();
3782
+ message.status = (object.status !== undefined && object.status !== null)
3783
+ ? ResponseStatus.fromPartial(object.status)
3784
+ : undefined;
3785
+ message.connection = (object.connection !== undefined && object.connection !== null)
3786
+ ? ClaudeEnterpriseConnection.fromPartial(object.connection)
3787
+ : undefined;
3788
+ return message;
3789
+ },
3790
+ };
3791
+
3510
3792
  /**
3511
3793
  * An organization's Claude Enterprise account: an org admin connects read-only Anthropic keys, each checked against
3512
3794
  * Anthropic before it is stored, and Terma reads what Anthropic reports for the connected Anthropic organization. An
@@ -3531,10 +3813,11 @@ export interface ClaudeEnterpriseGatewayService {
3531
3813
  metadata?: Metadata,
3532
3814
  ): Promise<GetClaudeEnterpriseConnectorResponse>;
3533
3815
  /**
3534
- * Org admin. Anthropic must accept the key for its usage reports, or it is not stored and the status is
3535
- * STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included. The first key creates the
3536
- * connection, every key sets its billing model, and a stored key whose capabilities the new key all reads is
3537
- * replaced.
3816
+ * Org admin. Anthropic must accept the key for its usage reports or a compliance read, or it is not stored and
3817
+ * the status is STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included; so is an
3818
+ * import_project_id the organization cannot import into. The first key creates the connection and names the team
3819
+ * imported activity goes to, every key sets its billing model, and a stored key whose capabilities the new key all
3820
+ * reads is replaced.
3538
3821
  */
3539
3822
  CreateClaudeEnterpriseKey(
3540
3823
  request: CreateClaudeEnterpriseKeyRequest,
@@ -3568,6 +3851,15 @@ export interface ClaudeEnterpriseGatewayService {
3568
3851
  request: ListClaudeEnterpriseMembersRequest,
3569
3852
  metadata?: Metadata,
3570
3853
  ): Promise<ListClaudeEnterpriseMembersResponse>;
3854
+ /**
3855
+ * Org admin. Sets the team imported activity goes to, held to the same rules as CreateClaudeEnterpriseKey's
3856
+ * import_project_id (STATUS_CODE_VALIDATION_ERROR naming the reason); an empty project_id stops importing.
3857
+ * STATUS_CODE_NOT_FOUND when the organization has not connected.
3858
+ */
3859
+ SetClaudeEnterpriseActivityImport(
3860
+ request: SetClaudeEnterpriseActivityImportRequest,
3861
+ metadata?: Metadata,
3862
+ ): Promise<SetClaudeEnterpriseActivityImportResponse>;
3571
3863
  }
3572
3864
 
3573
3865
  export const ClaudeEnterpriseGatewayServiceServiceName = "gateway.web.v1.ClaudeEnterpriseGatewayService";
@@ -3584,6 +3876,7 @@ export class ClaudeEnterpriseGatewayServiceClientImpl implements ClaudeEnterpris
3584
3876
  this.ListClaudeEnterpriseBilledUsage = this.ListClaudeEnterpriseBilledUsage.bind(this);
3585
3877
  this.GetClaudeEnterpriseSeatAdoption = this.GetClaudeEnterpriseSeatAdoption.bind(this);
3586
3878
  this.ListClaudeEnterpriseMembers = this.ListClaudeEnterpriseMembers.bind(this);
3879
+ this.SetClaudeEnterpriseActivityImport = this.SetClaudeEnterpriseActivityImport.bind(this);
3587
3880
  }
3588
3881
  GetClaudeEnterpriseConnector(
3589
3882
  request: GetClaudeEnterpriseConnectorRequest,
@@ -3647,6 +3940,15 @@ export class ClaudeEnterpriseGatewayServiceClientImpl implements ClaudeEnterpris
3647
3940
  const promise = this.rpc.request(this.service, "ListClaudeEnterpriseMembers", data, metadata);
3648
3941
  return promise.then((data) => ListClaudeEnterpriseMembersResponse.decode(new BinaryReader(data)));
3649
3942
  }
3943
+
3944
+ SetClaudeEnterpriseActivityImport(
3945
+ request: SetClaudeEnterpriseActivityImportRequest,
3946
+ metadata?: Metadata,
3947
+ ): Promise<SetClaudeEnterpriseActivityImportResponse> {
3948
+ const data = SetClaudeEnterpriseActivityImportRequest.encode(request).finish();
3949
+ const promise = this.rpc.request(this.service, "SetClaudeEnterpriseActivityImport", data, metadata);
3950
+ return promise.then((data) => SetClaudeEnterpriseActivityImportResponse.decode(new BinaryReader(data)));
3951
+ }
3650
3952
  }
3651
3953
 
3652
3954
  interface Rpc {
@@ -161,6 +161,28 @@ function deserialize_gateway_web_v1_ListClaudeEnterpriseMembersResponse(buffer_a
161
161
  return proto_gateway_web_v1_claude_enterprise_gateway_pb.ListClaudeEnterpriseMembersResponse.deserializeBinary(new Uint8Array(buffer_arg));
162
162
  }
163
163
 
164
+ function serialize_gateway_web_v1_SetClaudeEnterpriseActivityImportRequest(arg) {
165
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.SetClaudeEnterpriseActivityImportRequest)) {
166
+ throw new Error('Expected argument of type gateway.web.v1.SetClaudeEnterpriseActivityImportRequest');
167
+ }
168
+ return Buffer.from(arg.serializeBinary());
169
+ }
170
+
171
+ function deserialize_gateway_web_v1_SetClaudeEnterpriseActivityImportRequest(buffer_arg) {
172
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.SetClaudeEnterpriseActivityImportRequest.deserializeBinary(new Uint8Array(buffer_arg));
173
+ }
174
+
175
+ function serialize_gateway_web_v1_SetClaudeEnterpriseActivityImportResponse(arg) {
176
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.SetClaudeEnterpriseActivityImportResponse)) {
177
+ throw new Error('Expected argument of type gateway.web.v1.SetClaudeEnterpriseActivityImportResponse');
178
+ }
179
+ return Buffer.from(arg.serializeBinary());
180
+ }
181
+
182
+ function deserialize_gateway_web_v1_SetClaudeEnterpriseActivityImportResponse(buffer_arg) {
183
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.SetClaudeEnterpriseActivityImportResponse.deserializeBinary(new Uint8Array(buffer_arg));
184
+ }
185
+
164
186
 
165
187
  // An organization's Claude Enterprise account: an org admin connects read-only Anthropic keys, each checked against
166
188
  // Anthropic before it is stored, and Terma reads what Anthropic reports for the connected Anthropic organization. An
@@ -188,10 +210,11 @@ getClaudeEnterpriseConnector: {
188
210
  responseSerialize: serialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse,
189
211
  responseDeserialize: deserialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse,
190
212
  },
191
- // Org admin. Anthropic must accept the key for its usage reports, or it is not stored and the status is
192
- // STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included. The first key creates the
193
- // connection, every key sets its billing model, and a stored key whose capabilities the new key all reads is
194
- // replaced.
213
+ // Org admin. Anthropic must accept the key for its usage reports or a compliance read, or it is not stored and
214
+ // the status is STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included; so is an
215
+ // import_project_id the organization cannot import into. The first key creates the connection and names the team
216
+ // imported activity goes to, every key sets its billing model, and a stored key whose capabilities the new key all
217
+ // reads is replaced.
195
218
  createClaudeEnterpriseKey: {
196
219
  path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/CreateClaudeEnterpriseKey',
197
220
  requestStream: false,
@@ -264,6 +287,20 @@ listClaudeEnterpriseMembers: {
264
287
  responseSerialize: serialize_gateway_web_v1_ListClaudeEnterpriseMembersResponse,
265
288
  responseDeserialize: deserialize_gateway_web_v1_ListClaudeEnterpriseMembersResponse,
266
289
  },
290
+ // Org admin. Sets the team imported activity goes to, held to the same rules as CreateClaudeEnterpriseKey's
291
+ // import_project_id (STATUS_CODE_VALIDATION_ERROR naming the reason); an empty project_id stops importing.
292
+ // STATUS_CODE_NOT_FOUND when the organization has not connected.
293
+ setClaudeEnterpriseActivityImport: {
294
+ path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/SetClaudeEnterpriseActivityImport',
295
+ requestStream: false,
296
+ responseStream: false,
297
+ requestType: proto_gateway_web_v1_claude_enterprise_gateway_pb.SetClaudeEnterpriseActivityImportRequest,
298
+ responseType: proto_gateway_web_v1_claude_enterprise_gateway_pb.SetClaudeEnterpriseActivityImportResponse,
299
+ requestSerialize: serialize_gateway_web_v1_SetClaudeEnterpriseActivityImportRequest,
300
+ requestDeserialize: deserialize_gateway_web_v1_SetClaudeEnterpriseActivityImportRequest,
301
+ responseSerialize: serialize_gateway_web_v1_SetClaudeEnterpriseActivityImportResponse,
302
+ responseDeserialize: deserialize_gateway_web_v1_SetClaudeEnterpriseActivityImportResponse,
303
+ },
267
304
  };
268
305
 
269
306
  exports.ClaudeEnterpriseGatewayServiceClient = grpc.makeGenericClientConstructor(ClaudeEnterpriseGatewayServiceService, 'ClaudeEnterpriseGatewayService');
@@ -49,6 +49,8 @@ goog.exportSymbol('proto.gateway.web.v1.ListClaudeEnterpriseBilledUsageRequest',
49
49
  goog.exportSymbol('proto.gateway.web.v1.ListClaudeEnterpriseBilledUsageResponse', null, global);
50
50
  goog.exportSymbol('proto.gateway.web.v1.ListClaudeEnterpriseMembersRequest', null, global);
51
51
  goog.exportSymbol('proto.gateway.web.v1.ListClaudeEnterpriseMembersResponse', null, global);
52
+ goog.exportSymbol('proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest', null, global);
53
+ goog.exportSymbol('proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse', null, global);
52
54
  /**
53
55
  * Generated by JsPbCodeGenerator.
54
56
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -511,6 +513,48 @@ if (goog.DEBUG && !COMPILED) {
511
513
  */
512
514
  proto.gateway.web.v1.ClaudeEnterpriseMember.displayName = 'proto.gateway.web.v1.ClaudeEnterpriseMember';
513
515
  }
516
+ /**
517
+ * Generated by JsPbCodeGenerator.
518
+ * @param {Array=} opt_data Optional initial data array, typically from a
519
+ * server response, or constructed directly in Javascript. The array is used
520
+ * in place and becomes part of the constructed object. It is not cloned.
521
+ * If no data is provided, the constructed object will be empty, but still
522
+ * valid.
523
+ * @extends {jspb.Message}
524
+ * @constructor
525
+ */
526
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest = function(opt_data) {
527
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
528
+ };
529
+ goog.inherits(proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest, jspb.Message);
530
+ if (goog.DEBUG && !COMPILED) {
531
+ /**
532
+ * @public
533
+ * @override
534
+ */
535
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.displayName = 'proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest';
536
+ }
537
+ /**
538
+ * Generated by JsPbCodeGenerator.
539
+ * @param {Array=} opt_data Optional initial data array, typically from a
540
+ * server response, or constructed directly in Javascript. The array is used
541
+ * in place and becomes part of the constructed object. It is not cloned.
542
+ * If no data is provided, the constructed object will be empty, but still
543
+ * valid.
544
+ * @extends {jspb.Message}
545
+ * @constructor
546
+ */
547
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse = function(opt_data) {
548
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
549
+ };
550
+ goog.inherits(proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse, jspb.Message);
551
+ if (goog.DEBUG && !COMPILED) {
552
+ /**
553
+ * @public
554
+ * @override
555
+ */
556
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.displayName = 'proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse';
557
+ }
514
558
 
515
559
 
516
560
 
@@ -996,7 +1040,8 @@ proto.gateway.web.v1.ClaudeEnterpriseConnection.toObject = function(includeInsta
996
1040
  billingModel: jspb.Message.getFieldWithDefault(msg, 1, 0),
997
1041
  capabilitiesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
998
1042
  keysList: jspb.Message.toObjectList(msg.getKeysList(),
999
- proto.gateway.web.v1.ClaudeEnterpriseKey.toObject, includeInstance)
1043
+ proto.gateway.web.v1.ClaudeEnterpriseKey.toObject, includeInstance),
1044
+ importProjectId: jspb.Message.getFieldWithDefault(msg, 4, "")
1000
1045
  };
1001
1046
 
1002
1047
  if (includeInstance) {
@@ -1045,6 +1090,10 @@ proto.gateway.web.v1.ClaudeEnterpriseConnection.deserializeBinaryFromReader = fu
1045
1090
  reader.readMessage(value,proto.gateway.web.v1.ClaudeEnterpriseKey.deserializeBinaryFromReader);
1046
1091
  msg.addKeys(value);
1047
1092
  break;
1093
+ case 4:
1094
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1095
+ msg.setImportProjectId(value);
1096
+ break;
1048
1097
  default:
1049
1098
  reader.skipField();
1050
1099
  break;
@@ -1096,6 +1145,13 @@ proto.gateway.web.v1.ClaudeEnterpriseConnection.serializeBinaryToWriter = functi
1096
1145
  proto.gateway.web.v1.ClaudeEnterpriseKey.serializeBinaryToWriter
1097
1146
  );
1098
1147
  }
1148
+ f = message.getImportProjectId();
1149
+ if (f.length > 0) {
1150
+ writer.writeString(
1151
+ 4,
1152
+ f
1153
+ );
1154
+ }
1099
1155
  };
1100
1156
 
1101
1157
 
@@ -1192,6 +1248,24 @@ proto.gateway.web.v1.ClaudeEnterpriseConnection.prototype.clearKeysList = functi
1192
1248
  };
1193
1249
 
1194
1250
 
1251
+ /**
1252
+ * optional string import_project_id = 4;
1253
+ * @return {string}
1254
+ */
1255
+ proto.gateway.web.v1.ClaudeEnterpriseConnection.prototype.getImportProjectId = function() {
1256
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1257
+ };
1258
+
1259
+
1260
+ /**
1261
+ * @param {string} value
1262
+ * @return {!proto.gateway.web.v1.ClaudeEnterpriseConnection} returns this
1263
+ */
1264
+ proto.gateway.web.v1.ClaudeEnterpriseConnection.prototype.setImportProjectId = function(value) {
1265
+ return jspb.Message.setProto3StringField(this, 4, value);
1266
+ };
1267
+
1268
+
1195
1269
 
1196
1270
  /**
1197
1271
  * List of repeated fields within this message type.
@@ -1904,7 +1978,8 @@ proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest.toObject = function(includ
1904
1978
  var f, obj = {
1905
1979
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1906
1980
  apiKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
1907
- billingModel: jspb.Message.getFieldWithDefault(msg, 3, 0)
1981
+ billingModel: jspb.Message.getFieldWithDefault(msg, 3, 0),
1982
+ importProjectId: jspb.Message.getFieldWithDefault(msg, 4, "")
1908
1983
  };
1909
1984
 
1910
1985
  if (includeInstance) {
@@ -1953,6 +2028,10 @@ proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest.deserializeBinaryFromReade
1953
2028
  var value = /** @type {!proto.gateway.web.v1.ClaudeEnterpriseBillingModel} */ (reader.readEnum());
1954
2029
  msg.setBillingModel(value);
1955
2030
  break;
2031
+ case 4:
2032
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2033
+ msg.setImportProjectId(value);
2034
+ break;
1956
2035
  default:
1957
2036
  reader.skipField();
1958
2037
  break;
@@ -2003,6 +2082,13 @@ proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest.serializeBinaryToWriter =
2003
2082
  f
2004
2083
  );
2005
2084
  }
2085
+ f = message.getImportProjectId();
2086
+ if (f.length > 0) {
2087
+ writer.writeString(
2088
+ 4,
2089
+ f
2090
+ );
2091
+ }
2006
2092
  };
2007
2093
 
2008
2094
 
@@ -2060,6 +2146,24 @@ proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest.prototype.setBillingModel
2060
2146
  };
2061
2147
 
2062
2148
 
2149
+ /**
2150
+ * optional string import_project_id = 4;
2151
+ * @return {string}
2152
+ */
2153
+ proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest.prototype.getImportProjectId = function() {
2154
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2155
+ };
2156
+
2157
+
2158
+ /**
2159
+ * @param {string} value
2160
+ * @return {!proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest} returns this
2161
+ */
2162
+ proto.gateway.web.v1.CreateClaudeEnterpriseKeyRequest.prototype.setImportProjectId = function(value) {
2163
+ return jspb.Message.setProto3StringField(this, 4, value);
2164
+ };
2165
+
2166
+
2063
2167
 
2064
2168
 
2065
2169
 
@@ -6117,13 +6221,378 @@ proto.gateway.web.v1.ClaudeEnterpriseMember.prototype.setLastActivityDate = func
6117
6221
  };
6118
6222
 
6119
6223
 
6224
+
6225
+
6226
+
6227
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6228
+ /**
6229
+ * Creates an object representation of this proto.
6230
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6231
+ * Optional fields that are not set will be set to undefined.
6232
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6233
+ * For the list of reserved names please see:
6234
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6235
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6236
+ * JSPB instance for transitional soy proto support:
6237
+ * http://goto/soy-param-migration
6238
+ * @return {!Object}
6239
+ */
6240
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.prototype.toObject = function(opt_includeInstance) {
6241
+ return proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.toObject(opt_includeInstance, this);
6242
+ };
6243
+
6244
+
6245
+ /**
6246
+ * Static version of the {@see toObject} method.
6247
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6248
+ * the JSPB instance for transitional soy proto support:
6249
+ * http://goto/soy-param-migration
6250
+ * @param {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest} msg The msg instance to transform.
6251
+ * @return {!Object}
6252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6253
+ */
6254
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.toObject = function(includeInstance, msg) {
6255
+ var f, obj = {
6256
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6257
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
6258
+ };
6259
+
6260
+ if (includeInstance) {
6261
+ obj.$jspbMessageInstance = msg;
6262
+ }
6263
+ return obj;
6264
+ };
6265
+ }
6266
+
6267
+
6268
+ /**
6269
+ * Deserializes binary data (in protobuf wire format).
6270
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6271
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest}
6272
+ */
6273
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.deserializeBinary = function(bytes) {
6274
+ var reader = new jspb.BinaryReader(bytes);
6275
+ var msg = new proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest;
6276
+ return proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.deserializeBinaryFromReader(msg, reader);
6277
+ };
6278
+
6279
+
6280
+ /**
6281
+ * Deserializes binary data (in protobuf wire format) from the
6282
+ * given reader into the given message object.
6283
+ * @param {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest} msg The message object to deserialize into.
6284
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6285
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest}
6286
+ */
6287
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.deserializeBinaryFromReader = function(msg, reader) {
6288
+ while (reader.nextField()) {
6289
+ if (reader.isEndGroup()) {
6290
+ break;
6291
+ }
6292
+ var field = reader.getFieldNumber();
6293
+ switch (field) {
6294
+ case 1:
6295
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6296
+ msg.setOrganizationId(value);
6297
+ break;
6298
+ case 2:
6299
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6300
+ msg.setProjectId(value);
6301
+ break;
6302
+ default:
6303
+ reader.skipField();
6304
+ break;
6305
+ }
6306
+ }
6307
+ return msg;
6308
+ };
6309
+
6310
+
6311
+ /**
6312
+ * Serializes the message to binary data (in protobuf wire format).
6313
+ * @return {!Uint8Array}
6314
+ */
6315
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.prototype.serializeBinary = function() {
6316
+ var writer = new jspb.BinaryWriter();
6317
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.serializeBinaryToWriter(this, writer);
6318
+ return writer.getResultBuffer();
6319
+ };
6320
+
6321
+
6322
+ /**
6323
+ * Serializes the given message to binary data (in protobuf wire
6324
+ * format), writing to the given BinaryWriter.
6325
+ * @param {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest} message
6326
+ * @param {!jspb.BinaryWriter} writer
6327
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6328
+ */
6329
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.serializeBinaryToWriter = function(message, writer) {
6330
+ var f = undefined;
6331
+ f = message.getOrganizationId();
6332
+ if (f.length > 0) {
6333
+ writer.writeString(
6334
+ 1,
6335
+ f
6336
+ );
6337
+ }
6338
+ f = message.getProjectId();
6339
+ if (f.length > 0) {
6340
+ writer.writeString(
6341
+ 2,
6342
+ f
6343
+ );
6344
+ }
6345
+ };
6346
+
6347
+
6348
+ /**
6349
+ * optional string organization_id = 1;
6350
+ * @return {string}
6351
+ */
6352
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.prototype.getOrganizationId = function() {
6353
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6354
+ };
6355
+
6356
+
6357
+ /**
6358
+ * @param {string} value
6359
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest} returns this
6360
+ */
6361
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.prototype.setOrganizationId = function(value) {
6362
+ return jspb.Message.setProto3StringField(this, 1, value);
6363
+ };
6364
+
6365
+
6366
+ /**
6367
+ * optional string project_id = 2;
6368
+ * @return {string}
6369
+ */
6370
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.prototype.getProjectId = function() {
6371
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6372
+ };
6373
+
6374
+
6375
+ /**
6376
+ * @param {string} value
6377
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest} returns this
6378
+ */
6379
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportRequest.prototype.setProjectId = function(value) {
6380
+ return jspb.Message.setProto3StringField(this, 2, value);
6381
+ };
6382
+
6383
+
6384
+
6385
+
6386
+
6387
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6388
+ /**
6389
+ * Creates an object representation of this proto.
6390
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6391
+ * Optional fields that are not set will be set to undefined.
6392
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6393
+ * For the list of reserved names please see:
6394
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6395
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6396
+ * JSPB instance for transitional soy proto support:
6397
+ * http://goto/soy-param-migration
6398
+ * @return {!Object}
6399
+ */
6400
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.toObject = function(opt_includeInstance) {
6401
+ return proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.toObject(opt_includeInstance, this);
6402
+ };
6403
+
6404
+
6405
+ /**
6406
+ * Static version of the {@see toObject} method.
6407
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6408
+ * the JSPB instance for transitional soy proto support:
6409
+ * http://goto/soy-param-migration
6410
+ * @param {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} msg The msg instance to transform.
6411
+ * @return {!Object}
6412
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6413
+ */
6414
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.toObject = function(includeInstance, msg) {
6415
+ var f, obj = {
6416
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6417
+ connection: (f = msg.getConnection()) && proto.gateway.web.v1.ClaudeEnterpriseConnection.toObject(includeInstance, f)
6418
+ };
6419
+
6420
+ if (includeInstance) {
6421
+ obj.$jspbMessageInstance = msg;
6422
+ }
6423
+ return obj;
6424
+ };
6425
+ }
6426
+
6427
+
6428
+ /**
6429
+ * Deserializes binary data (in protobuf wire format).
6430
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6431
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse}
6432
+ */
6433
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.deserializeBinary = function(bytes) {
6434
+ var reader = new jspb.BinaryReader(bytes);
6435
+ var msg = new proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse;
6436
+ return proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.deserializeBinaryFromReader(msg, reader);
6437
+ };
6438
+
6439
+
6440
+ /**
6441
+ * Deserializes binary data (in protobuf wire format) from the
6442
+ * given reader into the given message object.
6443
+ * @param {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} msg The message object to deserialize into.
6444
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6445
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse}
6446
+ */
6447
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.deserializeBinaryFromReader = function(msg, reader) {
6448
+ while (reader.nextField()) {
6449
+ if (reader.isEndGroup()) {
6450
+ break;
6451
+ }
6452
+ var field = reader.getFieldNumber();
6453
+ switch (field) {
6454
+ case 1:
6455
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6456
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6457
+ msg.setStatus(value);
6458
+ break;
6459
+ case 2:
6460
+ var value = new proto.gateway.web.v1.ClaudeEnterpriseConnection;
6461
+ reader.readMessage(value,proto.gateway.web.v1.ClaudeEnterpriseConnection.deserializeBinaryFromReader);
6462
+ msg.setConnection(value);
6463
+ break;
6464
+ default:
6465
+ reader.skipField();
6466
+ break;
6467
+ }
6468
+ }
6469
+ return msg;
6470
+ };
6471
+
6472
+
6473
+ /**
6474
+ * Serializes the message to binary data (in protobuf wire format).
6475
+ * @return {!Uint8Array}
6476
+ */
6477
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.serializeBinary = function() {
6478
+ var writer = new jspb.BinaryWriter();
6479
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.serializeBinaryToWriter(this, writer);
6480
+ return writer.getResultBuffer();
6481
+ };
6482
+
6483
+
6484
+ /**
6485
+ * Serializes the given message to binary data (in protobuf wire
6486
+ * format), writing to the given BinaryWriter.
6487
+ * @param {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} message
6488
+ * @param {!jspb.BinaryWriter} writer
6489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6490
+ */
6491
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.serializeBinaryToWriter = function(message, writer) {
6492
+ var f = undefined;
6493
+ f = message.getStatus();
6494
+ if (f != null) {
6495
+ writer.writeMessage(
6496
+ 1,
6497
+ f,
6498
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
6499
+ );
6500
+ }
6501
+ f = message.getConnection();
6502
+ if (f != null) {
6503
+ writer.writeMessage(
6504
+ 2,
6505
+ f,
6506
+ proto.gateway.web.v1.ClaudeEnterpriseConnection.serializeBinaryToWriter
6507
+ );
6508
+ }
6509
+ };
6510
+
6511
+
6512
+ /**
6513
+ * optional gateway.common.v1.ResponseStatus status = 1;
6514
+ * @return {?proto.gateway.common.v1.ResponseStatus}
6515
+ */
6516
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.getStatus = function() {
6517
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
6518
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
6519
+ };
6520
+
6521
+
6522
+ /**
6523
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
6524
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} returns this
6525
+ */
6526
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.setStatus = function(value) {
6527
+ return jspb.Message.setWrapperField(this, 1, value);
6528
+ };
6529
+
6530
+
6531
+ /**
6532
+ * Clears the message field making it undefined.
6533
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} returns this
6534
+ */
6535
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.clearStatus = function() {
6536
+ return this.setStatus(undefined);
6537
+ };
6538
+
6539
+
6540
+ /**
6541
+ * Returns whether this field is set.
6542
+ * @return {boolean}
6543
+ */
6544
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.hasStatus = function() {
6545
+ return jspb.Message.getField(this, 1) != null;
6546
+ };
6547
+
6548
+
6549
+ /**
6550
+ * optional ClaudeEnterpriseConnection connection = 2;
6551
+ * @return {?proto.gateway.web.v1.ClaudeEnterpriseConnection}
6552
+ */
6553
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.getConnection = function() {
6554
+ return /** @type{?proto.gateway.web.v1.ClaudeEnterpriseConnection} */ (
6555
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ClaudeEnterpriseConnection, 2));
6556
+ };
6557
+
6558
+
6559
+ /**
6560
+ * @param {?proto.gateway.web.v1.ClaudeEnterpriseConnection|undefined} value
6561
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} returns this
6562
+ */
6563
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.setConnection = function(value) {
6564
+ return jspb.Message.setWrapperField(this, 2, value);
6565
+ };
6566
+
6567
+
6568
+ /**
6569
+ * Clears the message field making it undefined.
6570
+ * @return {!proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse} returns this
6571
+ */
6572
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.clearConnection = function() {
6573
+ return this.setConnection(undefined);
6574
+ };
6575
+
6576
+
6577
+ /**
6578
+ * Returns whether this field is set.
6579
+ * @return {boolean}
6580
+ */
6581
+ proto.gateway.web.v1.SetClaudeEnterpriseActivityImportResponse.prototype.hasConnection = function() {
6582
+ return jspb.Message.getField(this, 2) != null;
6583
+ };
6584
+
6585
+
6120
6586
  /**
6121
6587
  * @enum {number}
6122
6588
  */
6123
6589
  proto.gateway.web.v1.ClaudeEnterpriseCapability = {
6124
6590
  CLAUDE_ENTERPRISE_CAPABILITY_UNSPECIFIED: 0,
6125
6591
  CLAUDE_ENTERPRISE_CAPABILITY_USAGE_REPORTS: 1,
6126
- CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY: 2
6592
+ CLAUDE_ENTERPRISE_CAPABILITY_MEMBER_DIRECTORY: 2,
6593
+ CLAUDE_ENTERPRISE_CAPABILITY_ACTIVITY_FEED: 3,
6594
+ CLAUDE_ENTERPRISE_CAPABILITY_ORG_DATA: 4,
6595
+ CLAUDE_ENTERPRISE_CAPABILITY_USER_CONTENT: 5
6127
6596
  };
6128
6597
 
6129
6598
  /**