@miradorlabs/web-grpc 3.44.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
|
@@ -374,6 +374,13 @@ export interface ClaudeEnterpriseConnection {
|
|
|
374
374
|
capabilities: ClaudeEnterpriseCapability[];
|
|
375
375
|
/** Newest first. */
|
|
376
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;
|
|
377
384
|
}
|
|
378
385
|
|
|
379
386
|
/** A key is never changed: what it read when it was saved holds until it is deleted. */
|
|
@@ -429,6 +436,13 @@ export interface CreateClaudeEnterpriseKeyRequest {
|
|
|
429
436
|
*/
|
|
430
437
|
apiKey: string;
|
|
431
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;
|
|
432
446
|
}
|
|
433
447
|
|
|
434
448
|
export interface CreateClaudeEnterpriseKeyResponse {
|
|
@@ -593,6 +607,20 @@ export interface ClaudeEnterpriseMember {
|
|
|
593
607
|
lastActivityDate: string;
|
|
594
608
|
}
|
|
595
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
|
+
|
|
596
624
|
function createBaseGetClaudeEnterpriseConnectorRequest(): GetClaudeEnterpriseConnectorRequest {
|
|
597
625
|
return { organizationId: "" };
|
|
598
626
|
}
|
|
@@ -822,7 +850,7 @@ export const GetClaudeEnterpriseConnectorResponse: MessageFns<GetClaudeEnterpris
|
|
|
822
850
|
};
|
|
823
851
|
|
|
824
852
|
function createBaseClaudeEnterpriseConnection(): ClaudeEnterpriseConnection {
|
|
825
|
-
return { billingModel: 0, capabilities: [], keys: [] };
|
|
853
|
+
return { billingModel: 0, capabilities: [], keys: [], importProjectId: "" };
|
|
826
854
|
}
|
|
827
855
|
|
|
828
856
|
export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection> = {
|
|
@@ -840,6 +868,9 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
|
|
|
840
868
|
for (const v of message.keys) {
|
|
841
869
|
ClaudeEnterpriseKey.encode(v!, writer.uint32(26).fork()).join();
|
|
842
870
|
}
|
|
871
|
+
if (message.importProjectId !== "") {
|
|
872
|
+
writer.uint32(34).string(message.importProjectId);
|
|
873
|
+
}
|
|
843
874
|
return writer;
|
|
844
875
|
},
|
|
845
876
|
|
|
@@ -890,6 +921,14 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
|
|
|
890
921
|
message.keys.push(ClaudeEnterpriseKey.decode(reader, reader.uint32()));
|
|
891
922
|
continue;
|
|
892
923
|
}
|
|
924
|
+
case 4: {
|
|
925
|
+
if (tag !== 34) {
|
|
926
|
+
break;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
message.importProjectId = reader.string();
|
|
930
|
+
continue;
|
|
931
|
+
}
|
|
893
932
|
}
|
|
894
933
|
if ((tag & 7) === 4 || tag === 0) {
|
|
895
934
|
break;
|
|
@@ -913,6 +952,11 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
|
|
|
913
952
|
? object.capabilities.map((e: any) => claudeEnterpriseCapabilityFromJSON(e))
|
|
914
953
|
: [],
|
|
915
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
|
+
: "",
|
|
916
960
|
};
|
|
917
961
|
},
|
|
918
962
|
|
|
@@ -927,6 +971,9 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
|
|
|
927
971
|
if (message.keys?.length) {
|
|
928
972
|
obj.keys = message.keys.map((e) => ClaudeEnterpriseKey.toJSON(e));
|
|
929
973
|
}
|
|
974
|
+
if (message.importProjectId !== "") {
|
|
975
|
+
obj.importProjectId = message.importProjectId;
|
|
976
|
+
}
|
|
930
977
|
return obj;
|
|
931
978
|
},
|
|
932
979
|
|
|
@@ -938,6 +985,7 @@ export const ClaudeEnterpriseConnection: MessageFns<ClaudeEnterpriseConnection>
|
|
|
938
985
|
message.billingModel = object.billingModel ?? 0;
|
|
939
986
|
message.capabilities = object.capabilities?.map((e) => e) || [];
|
|
940
987
|
message.keys = object.keys?.map((e) => ClaudeEnterpriseKey.fromPartial(e)) || [];
|
|
988
|
+
message.importProjectId = object.importProjectId ?? "";
|
|
941
989
|
return message;
|
|
942
990
|
},
|
|
943
991
|
};
|
|
@@ -1331,7 +1379,7 @@ export const ClaudeEnterpriseSync: MessageFns<ClaudeEnterpriseSync> = {
|
|
|
1331
1379
|
};
|
|
1332
1380
|
|
|
1333
1381
|
function createBaseCreateClaudeEnterpriseKeyRequest(): CreateClaudeEnterpriseKeyRequest {
|
|
1334
|
-
return { organizationId: "", apiKey: "", billingModel: 0 };
|
|
1382
|
+
return { organizationId: "", apiKey: "", billingModel: 0, importProjectId: "" };
|
|
1335
1383
|
}
|
|
1336
1384
|
|
|
1337
1385
|
export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterpriseKeyRequest> = {
|
|
@@ -1345,6 +1393,9 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
|
|
|
1345
1393
|
if (message.billingModel !== 0) {
|
|
1346
1394
|
writer.uint32(24).int32(message.billingModel);
|
|
1347
1395
|
}
|
|
1396
|
+
if (message.importProjectId !== "") {
|
|
1397
|
+
writer.uint32(34).string(message.importProjectId);
|
|
1398
|
+
}
|
|
1348
1399
|
return writer;
|
|
1349
1400
|
},
|
|
1350
1401
|
|
|
@@ -1385,6 +1436,14 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
|
|
|
1385
1436
|
message.billingModel = reader.int32() as any;
|
|
1386
1437
|
continue;
|
|
1387
1438
|
}
|
|
1439
|
+
case 4: {
|
|
1440
|
+
if (tag !== 34) {
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
message.importProjectId = reader.string();
|
|
1445
|
+
continue;
|
|
1446
|
+
}
|
|
1388
1447
|
}
|
|
1389
1448
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1390
1449
|
break;
|
|
@@ -1414,6 +1473,11 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
|
|
|
1414
1473
|
: isSet(object.billing_model)
|
|
1415
1474
|
? claudeEnterpriseBillingModelFromJSON(object.billing_model)
|
|
1416
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
|
+
: "",
|
|
1417
1481
|
};
|
|
1418
1482
|
},
|
|
1419
1483
|
|
|
@@ -1428,6 +1492,9 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
|
|
|
1428
1492
|
if (message.billingModel !== 0) {
|
|
1429
1493
|
obj.billingModel = claudeEnterpriseBillingModelToJSON(message.billingModel);
|
|
1430
1494
|
}
|
|
1495
|
+
if (message.importProjectId !== "") {
|
|
1496
|
+
obj.importProjectId = message.importProjectId;
|
|
1497
|
+
}
|
|
1431
1498
|
return obj;
|
|
1432
1499
|
},
|
|
1433
1500
|
|
|
@@ -1443,6 +1510,7 @@ export const CreateClaudeEnterpriseKeyRequest: MessageFns<CreateClaudeEnterprise
|
|
|
1443
1510
|
message.organizationId = object.organizationId ?? "";
|
|
1444
1511
|
message.apiKey = object.apiKey ?? "";
|
|
1445
1512
|
message.billingModel = object.billingModel ?? 0;
|
|
1513
|
+
message.importProjectId = object.importProjectId ?? "";
|
|
1446
1514
|
return message;
|
|
1447
1515
|
},
|
|
1448
1516
|
};
|
|
@@ -3531,6 +3599,196 @@ export const ClaudeEnterpriseMember: MessageFns<ClaudeEnterpriseMember> = {
|
|
|
3531
3599
|
},
|
|
3532
3600
|
};
|
|
3533
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
|
+
|
|
3534
3792
|
/**
|
|
3535
3793
|
* An organization's Claude Enterprise account: an org admin connects read-only Anthropic keys, each checked against
|
|
3536
3794
|
* Anthropic before it is stored, and Terma reads what Anthropic reports for the connected Anthropic organization. An
|
|
@@ -3556,8 +3814,9 @@ export interface ClaudeEnterpriseGatewayService {
|
|
|
3556
3814
|
): Promise<GetClaudeEnterpriseConnectorResponse>;
|
|
3557
3815
|
/**
|
|
3558
3816
|
* Org admin. Anthropic must accept the key for its usage reports or a compliance read, or it is not stored and
|
|
3559
|
-
* the status is STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included
|
|
3560
|
-
*
|
|
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
|
|
3561
3820
|
* reads is replaced.
|
|
3562
3821
|
*/
|
|
3563
3822
|
CreateClaudeEnterpriseKey(
|
|
@@ -3592,6 +3851,15 @@ export interface ClaudeEnterpriseGatewayService {
|
|
|
3592
3851
|
request: ListClaudeEnterpriseMembersRequest,
|
|
3593
3852
|
metadata?: Metadata,
|
|
3594
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>;
|
|
3595
3863
|
}
|
|
3596
3864
|
|
|
3597
3865
|
export const ClaudeEnterpriseGatewayServiceServiceName = "gateway.web.v1.ClaudeEnterpriseGatewayService";
|
|
@@ -3608,6 +3876,7 @@ export class ClaudeEnterpriseGatewayServiceClientImpl implements ClaudeEnterpris
|
|
|
3608
3876
|
this.ListClaudeEnterpriseBilledUsage = this.ListClaudeEnterpriseBilledUsage.bind(this);
|
|
3609
3877
|
this.GetClaudeEnterpriseSeatAdoption = this.GetClaudeEnterpriseSeatAdoption.bind(this);
|
|
3610
3878
|
this.ListClaudeEnterpriseMembers = this.ListClaudeEnterpriseMembers.bind(this);
|
|
3879
|
+
this.SetClaudeEnterpriseActivityImport = this.SetClaudeEnterpriseActivityImport.bind(this);
|
|
3611
3880
|
}
|
|
3612
3881
|
GetClaudeEnterpriseConnector(
|
|
3613
3882
|
request: GetClaudeEnterpriseConnectorRequest,
|
|
@@ -3671,6 +3940,15 @@ export class ClaudeEnterpriseGatewayServiceClientImpl implements ClaudeEnterpris
|
|
|
3671
3940
|
const promise = this.rpc.request(this.service, "ListClaudeEnterpriseMembers", data, metadata);
|
|
3672
3941
|
return promise.then((data) => ListClaudeEnterpriseMembersResponse.decode(new BinaryReader(data)));
|
|
3673
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
|
+
}
|
|
3674
3952
|
}
|
|
3675
3953
|
|
|
3676
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
|
|
@@ -189,8 +211,9 @@ getClaudeEnterpriseConnector: {
|
|
|
189
211
|
responseDeserialize: deserialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse,
|
|
190
212
|
},
|
|
191
213
|
// Org admin. Anthropic must accept the key for its usage reports or a compliance read, or it is not stored and
|
|
192
|
-
// the status is STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included
|
|
193
|
-
//
|
|
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
|
|
194
217
|
// reads is replaced.
|
|
195
218
|
createClaudeEnterpriseKey: {
|
|
196
219
|
path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/CreateClaudeEnterpriseKey',
|
|
@@ -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,6 +6221,368 @@ 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
|
*/
|