@miradorlabs/web-grpc 4.37.0 → 4.38.1
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 +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +6 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +2 -1
- package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
- package/proto/gateway/web/v1/policy_gateway.ts +25 -7
- package/proto/gateway/web/v1/policy_gateway_grpc_pb.js +2 -0
package/package.json
CHANGED
|
@@ -86,6 +86,7 @@ export enum AISessionScoreRubric {
|
|
|
86
86
|
AI_SESSION_SCORE_RUBRIC_SKILLED_USE = 4,
|
|
87
87
|
AI_SESSION_SCORE_RUBRIC_QUALITY = 5,
|
|
88
88
|
AI_SESSION_SCORE_RUBRIC_OWNERSHIP = 6,
|
|
89
|
+
AI_SESSION_SCORE_RUBRIC_SECURITY = 7,
|
|
89
90
|
UNRECOGNIZED = -1,
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -112,6 +113,9 @@ export function aISessionScoreRubricFromJSON(object: any): AISessionScoreRubric
|
|
|
112
113
|
case 6:
|
|
113
114
|
case "AI_SESSION_SCORE_RUBRIC_OWNERSHIP":
|
|
114
115
|
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_OWNERSHIP;
|
|
116
|
+
case 7:
|
|
117
|
+
case "AI_SESSION_SCORE_RUBRIC_SECURITY":
|
|
118
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_SECURITY;
|
|
115
119
|
case -1:
|
|
116
120
|
case "UNRECOGNIZED":
|
|
117
121
|
default:
|
|
@@ -135,6 +139,8 @@ export function aISessionScoreRubricToJSON(object: AISessionScoreRubric): string
|
|
|
135
139
|
return "AI_SESSION_SCORE_RUBRIC_QUALITY";
|
|
136
140
|
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_OWNERSHIP:
|
|
137
141
|
return "AI_SESSION_SCORE_RUBRIC_OWNERSHIP";
|
|
142
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_SECURITY:
|
|
143
|
+
return "AI_SESSION_SCORE_RUBRIC_SECURITY";
|
|
138
144
|
case AISessionScoreRubric.UNRECOGNIZED:
|
|
139
145
|
default:
|
|
140
146
|
return "UNRECOGNIZED";
|
|
@@ -65588,7 +65588,8 @@ proto.gateway.web.v1.AISessionScoreRubric = {
|
|
|
65588
65588
|
AI_SESSION_SCORE_RUBRIC_TOKEN_EFFICIENCY: 3,
|
|
65589
65589
|
AI_SESSION_SCORE_RUBRIC_SKILLED_USE: 4,
|
|
65590
65590
|
AI_SESSION_SCORE_RUBRIC_QUALITY: 5,
|
|
65591
|
-
AI_SESSION_SCORE_RUBRIC_OWNERSHIP: 6
|
|
65591
|
+
AI_SESSION_SCORE_RUBRIC_OWNERSHIP: 6,
|
|
65592
|
+
AI_SESSION_SCORE_RUBRIC_SECURITY: 7
|
|
65592
65593
|
};
|
|
65593
65594
|
|
|
65594
65595
|
/**
|
|
@@ -438,7 +438,7 @@ export interface CreateClaudeEnterpriseKeyRequest {
|
|
|
438
438
|
billingModel: ClaudeEnterpriseBillingModel;
|
|
439
439
|
/**
|
|
440
440
|
* The Terma team imported activity goes to: an active team of the organization, never the demo, with a capture
|
|
441
|
-
* policy
|
|
441
|
+
* policy, global or per-repository. Required when this key creates the connection; on a later key, set changes
|
|
442
442
|
* the team and empty keeps it. Saved even when the key cannot read user content: nothing is imported until a key
|
|
443
443
|
* that can is added.
|
|
444
444
|
*/
|
|
@@ -21,7 +21,7 @@ export interface ProjectPolicy {
|
|
|
21
21
|
|
|
22
22
|
/** TermaPolicy is a Terma team's policy. */
|
|
23
23
|
export interface TermaPolicy {
|
|
24
|
-
/** every member emits from every repository */
|
|
24
|
+
/** every member emits from every repository; PERSONAL organizations only */
|
|
25
25
|
global?:
|
|
26
26
|
| TermaGlobalCoverage
|
|
27
27
|
| undefined;
|
|
@@ -37,7 +37,10 @@ export interface TermaPolicy {
|
|
|
37
37
|
export interface TermaGlobalCoverage {
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* TermaPerRepositoryCoverage admits only the CLI-routed sessions in the repositories it lists.
|
|
42
|
+
* A source sending with the team's key, or imported for it, is kept whole (see TermaPolicy).
|
|
43
|
+
*/
|
|
41
44
|
export interface TermaPerRepositoryCoverage {
|
|
42
45
|
/**
|
|
43
46
|
* Each entry is a repository as `host/owner/name`, e.g.
|
|
@@ -48,10 +51,17 @@ export interface TermaPerRepositoryCoverage {
|
|
|
48
51
|
* from its main repository. A folder outside git, a repository with no `origin`, or an `origin`
|
|
49
52
|
* that is a local path or `file://` URL is never admitted. An entry has a host and at least two
|
|
50
53
|
* path segments, none empty; a longer path matches a longer `origin` path exactly (GitLab
|
|
51
|
-
* subgroups). An empty list admits
|
|
54
|
+
* subgroups). An empty list admits no session the CLI routes; a source sending with the team's key, or
|
|
55
|
+
* imported for it, is kept whole under its capture switches.
|
|
56
|
+
* A wildcard entry ends in a whole last segment `/*` after at least a host and an owner, and
|
|
57
|
+
* admits every repository below that prefix by whole segments: `github.com/acme/*` admits
|
|
58
|
+
* `github.com/acme/api` and `github.com/acme/a/b`, not `github.com/acme`. `*` appears nowhere
|
|
59
|
+
* else, so `github.com/*`, `*`, `github.com/acme/terma-*`, `github.com/acme/* /x`,
|
|
60
|
+
* `github.com/acme/*.git` and `github.com/acme/* /` are refused.
|
|
52
61
|
* Entries are trimmed and unique ignoring case: at most 500 of 200 characters, no whitespace or
|
|
53
|
-
* control characters, no scheme, no trailing `.git`,
|
|
54
|
-
* `localhost`, with
|
|
62
|
+
* control characters, no scheme, no `?`, `#` or `%`, no trailing `.git`, no empty, `.` or `..`
|
|
63
|
+
* segment, and a host that contains a `.` or is `localhost`, of letters (with their marks), digits,
|
|
64
|
+
* `.`, `-` and `_`.
|
|
55
65
|
*/
|
|
56
66
|
repositories: string[];
|
|
57
67
|
}
|
|
@@ -82,7 +92,11 @@ export interface GetProjectPolicyResponse {
|
|
|
82
92
|
policy:
|
|
83
93
|
| ProjectPolicy
|
|
84
94
|
| undefined;
|
|
85
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* The policy's schema version, "major.minor", as stored: a save writes 2.0 when an entry is a
|
|
97
|
+
* wildcard and 1.1 otherwise, and a policy saved earlier keeps its own (a 1.x `/*` entry is a
|
|
98
|
+
* literal that matches nothing). Empty with policy absent.
|
|
99
|
+
*/
|
|
86
100
|
version: string;
|
|
87
101
|
/** bumped on every save, 1 for the first; 0 with policy absent */
|
|
88
102
|
revision: number;
|
|
@@ -1019,7 +1033,11 @@ export const SetProjectPolicyResponse: MessageFns<SetProjectPolicyResponse> = {
|
|
|
1019
1033
|
export interface PolicyGatewayService {
|
|
1020
1034
|
/** GetProjectPolicy returns the project's policy; any member may read it. */
|
|
1021
1035
|
GetProjectPolicy(request: GetProjectPolicyRequest, metadata?: Metadata): Promise<GetProjectPolicyResponse>;
|
|
1022
|
-
/**
|
|
1036
|
+
/**
|
|
1037
|
+
* SetProjectPolicy replaces the project's policy whole; only an organization admin may set it.
|
|
1038
|
+
* Global coverage outside a PERSONAL organization is VALIDATION_ERROR with reason
|
|
1039
|
+
* GLOBAL_COVERAGE_PERSONAL_ONLY.
|
|
1040
|
+
*/
|
|
1023
1041
|
SetProjectPolicy(request: SetProjectPolicyRequest, metadata?: Metadata): Promise<SetProjectPolicyResponse>;
|
|
1024
1042
|
}
|
|
1025
1043
|
|
|
@@ -68,6 +68,8 @@ getProjectPolicy: {
|
|
|
68
68
|
responseDeserialize: deserialize_gateway_web_v1_GetProjectPolicyResponse,
|
|
69
69
|
},
|
|
70
70
|
// SetProjectPolicy replaces the project's policy whole; only an organization admin may set it.
|
|
71
|
+
// Global coverage outside a PERSONAL organization is VALIDATION_ERROR with reason
|
|
72
|
+
// GLOBAL_COVERAGE_PERSONAL_ONLY.
|
|
71
73
|
setProjectPolicy: {
|
|
72
74
|
path: '/gateway.web.v1.PolicyGatewayService/SetProjectPolicy',
|
|
73
75
|
requestStream: false,
|