@evalops/sdk-ts 0.1.125 → 0.1.127
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/dist/agentruntime/v1/runtime_pb.d.ts +12 -0
- package/dist/agentruntime/v1/runtime_pb.js +2 -1
- package/dist/approvals/v1/approvals_pb.d.ts +54 -0
- package/dist/approvals/v1/approvals_pb.js +2 -1
- package/dist/connectors/v1/connectors_pb.d.ts +28 -0
- package/dist/connectors/v1/connectors_pb.js +2 -1
- package/dist/console/v1/console_pb.d.ts +571 -1
- package/dist/console/v1/console_pb.js +188 -103
- package/dist/contextlibrary/v1/context_library_pb.d.ts +1248 -0
- package/dist/contextlibrary/v1/context_library_pb.js +311 -0
- package/dist/objectives/v1/objectives_pb.d.ts +28 -0
- package/dist/objectives/v1/objectives_pb.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,1248 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { SourceOfTruthArea } from "../../connectors/v1/connectors_pb.js";
|
|
3
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file contextlibrary/v1/context_library.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_contextlibrary_v1_context_library: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* ContextLibraryCapability reports the owner-backed capabilities of a workspace.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message contextlibrary.v1.ContextLibraryCapability
|
|
13
|
+
*/
|
|
14
|
+
export type ContextLibraryCapability = Message<"contextlibrary.v1.ContextLibraryCapability"> & {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string workspace_id = 1;
|
|
17
|
+
*/
|
|
18
|
+
workspaceId: string;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: bool source_registration_available = 2;
|
|
21
|
+
*/
|
|
22
|
+
sourceRegistrationAvailable: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: bool ingestion_runs_available = 3;
|
|
25
|
+
*/
|
|
26
|
+
ingestionRunsAvailable: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: bool context_item_reads_available = 4;
|
|
29
|
+
*/
|
|
30
|
+
contextItemReadsAvailable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: bool review_available = 5;
|
|
33
|
+
*/
|
|
34
|
+
reviewAvailable: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string required_owner_service = 6;
|
|
37
|
+
*/
|
|
38
|
+
requiredOwnerService: string;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string sanitizer_contract = 7;
|
|
41
|
+
*/
|
|
42
|
+
sanitizerContract: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: repeated string unavailable_reasons = 8;
|
|
45
|
+
*/
|
|
46
|
+
unavailableReasons: string[];
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string organization_id = 9;
|
|
49
|
+
*/
|
|
50
|
+
organizationId: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message contextlibrary.v1.ContextLibraryCapability.
|
|
54
|
+
* Use `create(ContextLibraryCapabilitySchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export declare const ContextLibraryCapabilitySchema: GenMessage<ContextLibraryCapability>;
|
|
57
|
+
/**
|
|
58
|
+
* ApprovedSourceScope names a customer-approved resource within a source.
|
|
59
|
+
*
|
|
60
|
+
* @generated from message contextlibrary.v1.ApprovedSourceScope
|
|
61
|
+
*/
|
|
62
|
+
export type ApprovedSourceScope = Message<"contextlibrary.v1.ApprovedSourceScope"> & {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: string id = 1;
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: contextlibrary.v1.ApprovedSourceScopeType type = 2;
|
|
69
|
+
*/
|
|
70
|
+
type: ApprovedSourceScopeType;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: string provider_resource_id = 3;
|
|
73
|
+
*/
|
|
74
|
+
providerResourceId: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string path = 4;
|
|
77
|
+
*/
|
|
78
|
+
path: string;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: repeated string include_extensions = 5;
|
|
81
|
+
*/
|
|
82
|
+
includeExtensions: string[];
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: int32 max_bytes_per_file = 6;
|
|
85
|
+
*/
|
|
86
|
+
maxBytesPerFile: number;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Describes the message contextlibrary.v1.ApprovedSourceScope.
|
|
90
|
+
* Use `create(ApprovedSourceScopeSchema)` to create a new message.
|
|
91
|
+
*/
|
|
92
|
+
export declare const ApprovedSourceScopeSchema: GenMessage<ApprovedSourceScope>;
|
|
93
|
+
/**
|
|
94
|
+
* ContextSource is an approved context source bound to a connection.
|
|
95
|
+
*
|
|
96
|
+
* @generated from message contextlibrary.v1.ContextSource
|
|
97
|
+
*/
|
|
98
|
+
export type ContextSource = Message<"contextlibrary.v1.ContextSource"> & {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string id = 1;
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string workspace_id = 2;
|
|
105
|
+
*/
|
|
106
|
+
workspaceId: string;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: string connection_id = 3;
|
|
109
|
+
*/
|
|
110
|
+
connectionId: string;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: string provider_id = 4;
|
|
113
|
+
*/
|
|
114
|
+
providerId: string;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string display_name = 5;
|
|
117
|
+
*/
|
|
118
|
+
displayName: string;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string domain = 6;
|
|
121
|
+
*/
|
|
122
|
+
domain: string;
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: connectors.v1.SourceOfTruthArea source_of_truth_area = 7;
|
|
125
|
+
*/
|
|
126
|
+
sourceOfTruthArea: SourceOfTruthArea;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: repeated contextlibrary.v1.ApprovedSourceScope approved_scopes = 8;
|
|
129
|
+
*/
|
|
130
|
+
approvedScopes: ApprovedSourceScope[];
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: contextlibrary.v1.ContextSourceState state = 9;
|
|
133
|
+
*/
|
|
134
|
+
state: ContextSourceState;
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: string approval_ref = 10;
|
|
137
|
+
*/
|
|
138
|
+
approvalRef: string;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: google.protobuf.Timestamp created_at = 11;
|
|
141
|
+
*/
|
|
142
|
+
createdAt?: Timestamp | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 12;
|
|
145
|
+
*/
|
|
146
|
+
updatedAt?: Timestamp | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: string organization_id = 13;
|
|
149
|
+
*/
|
|
150
|
+
organizationId: string;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message contextlibrary.v1.ContextSource.
|
|
154
|
+
* Use `create(ContextSourceSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
export declare const ContextSourceSchema: GenMessage<ContextSource>;
|
|
157
|
+
/**
|
|
158
|
+
* ContextIngestionRun is the owner-recorded state of an ingestion attempt.
|
|
159
|
+
*
|
|
160
|
+
* @generated from message contextlibrary.v1.ContextIngestionRun
|
|
161
|
+
*/
|
|
162
|
+
export type ContextIngestionRun = Message<"contextlibrary.v1.ContextIngestionRun"> & {
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: string id = 1;
|
|
165
|
+
*/
|
|
166
|
+
id: string;
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: string workspace_id = 2;
|
|
169
|
+
*/
|
|
170
|
+
workspaceId: string;
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: string source_id = 3;
|
|
173
|
+
*/
|
|
174
|
+
sourceId: string;
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string connection_id = 4;
|
|
177
|
+
*/
|
|
178
|
+
connectionId: string;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: contextlibrary.v1.ContextIngestionRunStatus status = 5;
|
|
181
|
+
*/
|
|
182
|
+
status: ContextIngestionRunStatus;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string idempotency_key = 6;
|
|
185
|
+
*/
|
|
186
|
+
idempotencyKey: string;
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: string source_revision = 7;
|
|
189
|
+
*/
|
|
190
|
+
sourceRevision: string;
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: string sanitizer_version = 8;
|
|
193
|
+
*/
|
|
194
|
+
sanitizerVersion: string;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: int32 discovered_items = 9;
|
|
197
|
+
*/
|
|
198
|
+
discoveredItems: number;
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: int32 accepted_items = 10;
|
|
201
|
+
*/
|
|
202
|
+
acceptedItems: number;
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: int32 deduplicated_items = 11;
|
|
205
|
+
*/
|
|
206
|
+
deduplicatedItems: number;
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: int32 failed_items = 12;
|
|
209
|
+
*/
|
|
210
|
+
failedItems: number;
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: string error = 13;
|
|
213
|
+
*/
|
|
214
|
+
error: string;
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: google.protobuf.Timestamp created_at = 14;
|
|
217
|
+
*/
|
|
218
|
+
createdAt?: Timestamp | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: google.protobuf.Timestamp started_at = 15;
|
|
221
|
+
*/
|
|
222
|
+
startedAt?: Timestamp | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: google.protobuf.Timestamp completed_at = 16;
|
|
225
|
+
*/
|
|
226
|
+
completedAt?: Timestamp | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string organization_id = 17;
|
|
229
|
+
*/
|
|
230
|
+
organizationId: string;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Describes the message contextlibrary.v1.ContextIngestionRun.
|
|
234
|
+
* Use `create(ContextIngestionRunSchema)` to create a new message.
|
|
235
|
+
*/
|
|
236
|
+
export declare const ContextIngestionRunSchema: GenMessage<ContextIngestionRun>;
|
|
237
|
+
/**
|
|
238
|
+
* SanitizedContextItem mirrors the exact NDJSON shape emitted by the
|
|
239
|
+
* context-ingest sanitizer. truncated carries the producer marker
|
|
240
|
+
* ("byte-cap" or "secret-bearing") when content was capped or fail-closed.
|
|
241
|
+
*
|
|
242
|
+
* @generated from message contextlibrary.v1.SanitizedContextItem
|
|
243
|
+
*/
|
|
244
|
+
export type SanitizedContextItem = Message<"contextlibrary.v1.SanitizedContextItem"> & {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string id = 1;
|
|
247
|
+
*/
|
|
248
|
+
id: string;
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: string workspace_id = 2;
|
|
251
|
+
*/
|
|
252
|
+
workspaceId: string;
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: string source_id = 3;
|
|
255
|
+
*/
|
|
256
|
+
sourceId: string;
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: string domain = 4;
|
|
259
|
+
*/
|
|
260
|
+
domain: string;
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: string path = 5;
|
|
263
|
+
*/
|
|
264
|
+
path: string;
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: string title = 6;
|
|
267
|
+
*/
|
|
268
|
+
title: string;
|
|
269
|
+
/**
|
|
270
|
+
* @generated from field: string content = 7;
|
|
271
|
+
*/
|
|
272
|
+
content: string;
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: string digest = 8;
|
|
275
|
+
*/
|
|
276
|
+
digest: string;
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: int32 tokens_estimate = 9;
|
|
279
|
+
*/
|
|
280
|
+
tokensEstimate: number;
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: optional string truncated = 10;
|
|
283
|
+
*/
|
|
284
|
+
truncated?: string | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: string organization_id = 11;
|
|
287
|
+
*/
|
|
288
|
+
organizationId: string;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Describes the message contextlibrary.v1.SanitizedContextItem.
|
|
292
|
+
* Use `create(SanitizedContextItemSchema)` to create a new message.
|
|
293
|
+
*/
|
|
294
|
+
export declare const SanitizedContextItemSchema: GenMessage<SanitizedContextItem>;
|
|
295
|
+
/**
|
|
296
|
+
* ContextItem is an owner-enriched, persisted context item with review state.
|
|
297
|
+
*
|
|
298
|
+
* @generated from message contextlibrary.v1.ContextItem
|
|
299
|
+
*/
|
|
300
|
+
export type ContextItem = Message<"contextlibrary.v1.ContextItem"> & {
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: string id = 1;
|
|
303
|
+
*/
|
|
304
|
+
id: string;
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: string workspace_id = 2;
|
|
307
|
+
*/
|
|
308
|
+
workspaceId: string;
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: string source_id = 3;
|
|
311
|
+
*/
|
|
312
|
+
sourceId: string;
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: string domain = 4;
|
|
315
|
+
*/
|
|
316
|
+
domain: string;
|
|
317
|
+
/**
|
|
318
|
+
* @generated from field: string path = 5;
|
|
319
|
+
*/
|
|
320
|
+
path: string;
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: string title = 6;
|
|
323
|
+
*/
|
|
324
|
+
title: string;
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: string content = 7;
|
|
327
|
+
*/
|
|
328
|
+
content: string;
|
|
329
|
+
/**
|
|
330
|
+
* @generated from field: string digest = 8;
|
|
331
|
+
*/
|
|
332
|
+
digest: string;
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: int32 tokens_estimate = 9;
|
|
335
|
+
*/
|
|
336
|
+
tokensEstimate: number;
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: optional string truncated = 10;
|
|
339
|
+
*/
|
|
340
|
+
truncated?: string | undefined;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: contextlibrary.v1.ContextItemReviewState review_state = 11;
|
|
343
|
+
*/
|
|
344
|
+
reviewState: ContextItemReviewState;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: string run_id = 12;
|
|
347
|
+
*/
|
|
348
|
+
runId: string;
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: string connection_id = 13;
|
|
351
|
+
*/
|
|
352
|
+
connectionId: string;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: string provider_id = 14;
|
|
355
|
+
*/
|
|
356
|
+
providerId: string;
|
|
357
|
+
/**
|
|
358
|
+
* @generated from field: google.protobuf.Timestamp created_at = 15;
|
|
359
|
+
*/
|
|
360
|
+
createdAt?: Timestamp | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 16;
|
|
363
|
+
*/
|
|
364
|
+
updatedAt?: Timestamp | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* @generated from field: string organization_id = 17;
|
|
367
|
+
*/
|
|
368
|
+
organizationId: string;
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Describes the message contextlibrary.v1.ContextItem.
|
|
372
|
+
* Use `create(ContextItemSchema)` to create a new message.
|
|
373
|
+
*/
|
|
374
|
+
export declare const ContextItemSchema: GenMessage<ContextItem>;
|
|
375
|
+
/**
|
|
376
|
+
* ContextDomain is an owner-returned domain summary for a workspace.
|
|
377
|
+
*
|
|
378
|
+
* @generated from message contextlibrary.v1.ContextDomain
|
|
379
|
+
*/
|
|
380
|
+
export type ContextDomain = Message<"contextlibrary.v1.ContextDomain"> & {
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: string id = 1;
|
|
383
|
+
*/
|
|
384
|
+
id: string;
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: string workspace_id = 2;
|
|
387
|
+
*/
|
|
388
|
+
workspaceId: string;
|
|
389
|
+
/**
|
|
390
|
+
* @generated from field: string name = 3;
|
|
391
|
+
*/
|
|
392
|
+
name: string;
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: int32 approved_items = 4;
|
|
395
|
+
*/
|
|
396
|
+
approvedItems: number;
|
|
397
|
+
/**
|
|
398
|
+
* @generated from field: int32 pending_items = 5;
|
|
399
|
+
*/
|
|
400
|
+
pendingItems: number;
|
|
401
|
+
/**
|
|
402
|
+
* @generated from field: int32 rejected_items = 6;
|
|
403
|
+
*/
|
|
404
|
+
rejectedItems: number;
|
|
405
|
+
/**
|
|
406
|
+
* @generated from field: int32 source_count = 7;
|
|
407
|
+
*/
|
|
408
|
+
sourceCount: number;
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: string organization_id = 8;
|
|
411
|
+
*/
|
|
412
|
+
organizationId: string;
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Describes the message contextlibrary.v1.ContextDomain.
|
|
416
|
+
* Use `create(ContextDomainSchema)` to create a new message.
|
|
417
|
+
*/
|
|
418
|
+
export declare const ContextDomainSchema: GenMessage<ContextDomain>;
|
|
419
|
+
/**
|
|
420
|
+
* GetContextLibraryCapabilityRequest requests workspace capability state.
|
|
421
|
+
*
|
|
422
|
+
* @generated from message contextlibrary.v1.GetContextLibraryCapabilityRequest
|
|
423
|
+
*/
|
|
424
|
+
export type GetContextLibraryCapabilityRequest = Message<"contextlibrary.v1.GetContextLibraryCapabilityRequest"> & {
|
|
425
|
+
/**
|
|
426
|
+
* @generated from field: string workspace_id = 1;
|
|
427
|
+
*/
|
|
428
|
+
workspaceId: string;
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: string organization_id = 2;
|
|
431
|
+
*/
|
|
432
|
+
organizationId: string;
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Describes the message contextlibrary.v1.GetContextLibraryCapabilityRequest.
|
|
436
|
+
* Use `create(GetContextLibraryCapabilityRequestSchema)` to create a new message.
|
|
437
|
+
*/
|
|
438
|
+
export declare const GetContextLibraryCapabilityRequestSchema: GenMessage<GetContextLibraryCapabilityRequest>;
|
|
439
|
+
/**
|
|
440
|
+
* GetContextLibraryCapabilityResponse returns workspace capability state.
|
|
441
|
+
*
|
|
442
|
+
* @generated from message contextlibrary.v1.GetContextLibraryCapabilityResponse
|
|
443
|
+
*/
|
|
444
|
+
export type GetContextLibraryCapabilityResponse = Message<"contextlibrary.v1.GetContextLibraryCapabilityResponse"> & {
|
|
445
|
+
/**
|
|
446
|
+
* @generated from field: contextlibrary.v1.ContextLibraryCapability capability = 1;
|
|
447
|
+
*/
|
|
448
|
+
capability?: ContextLibraryCapability | undefined;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Describes the message contextlibrary.v1.GetContextLibraryCapabilityResponse.
|
|
452
|
+
* Use `create(GetContextLibraryCapabilityResponseSchema)` to create a new message.
|
|
453
|
+
*/
|
|
454
|
+
export declare const GetContextLibraryCapabilityResponseSchema: GenMessage<GetContextLibraryCapabilityResponse>;
|
|
455
|
+
/**
|
|
456
|
+
* RegisterContextSourceRequest registers an approved source for a connection.
|
|
457
|
+
*
|
|
458
|
+
* @generated from message contextlibrary.v1.RegisterContextSourceRequest
|
|
459
|
+
*/
|
|
460
|
+
export type RegisterContextSourceRequest = Message<"contextlibrary.v1.RegisterContextSourceRequest"> & {
|
|
461
|
+
/**
|
|
462
|
+
* @generated from field: string workspace_id = 1;
|
|
463
|
+
*/
|
|
464
|
+
workspaceId: string;
|
|
465
|
+
/**
|
|
466
|
+
* @generated from field: string connection_id = 2;
|
|
467
|
+
*/
|
|
468
|
+
connectionId: string;
|
|
469
|
+
/**
|
|
470
|
+
* @generated from field: string domain = 3;
|
|
471
|
+
*/
|
|
472
|
+
domain: string;
|
|
473
|
+
/**
|
|
474
|
+
* @generated from field: connectors.v1.SourceOfTruthArea source_of_truth_area = 4;
|
|
475
|
+
*/
|
|
476
|
+
sourceOfTruthArea: SourceOfTruthArea;
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: repeated contextlibrary.v1.ApprovedSourceScope approved_scopes = 5;
|
|
479
|
+
*/
|
|
480
|
+
approvedScopes: ApprovedSourceScope[];
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: string approval_ref = 6;
|
|
483
|
+
*/
|
|
484
|
+
approvalRef: string;
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: string idempotency_key = 7;
|
|
487
|
+
*/
|
|
488
|
+
idempotencyKey: string;
|
|
489
|
+
/**
|
|
490
|
+
* @generated from field: string organization_id = 8;
|
|
491
|
+
*/
|
|
492
|
+
organizationId: string;
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* Describes the message contextlibrary.v1.RegisterContextSourceRequest.
|
|
496
|
+
* Use `create(RegisterContextSourceRequestSchema)` to create a new message.
|
|
497
|
+
*/
|
|
498
|
+
export declare const RegisterContextSourceRequestSchema: GenMessage<RegisterContextSourceRequest>;
|
|
499
|
+
/**
|
|
500
|
+
* RegisterContextSourceResponse returns the registered source.
|
|
501
|
+
*
|
|
502
|
+
* @generated from message contextlibrary.v1.RegisterContextSourceResponse
|
|
503
|
+
*/
|
|
504
|
+
export type RegisterContextSourceResponse = Message<"contextlibrary.v1.RegisterContextSourceResponse"> & {
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: contextlibrary.v1.ContextSource source = 1;
|
|
507
|
+
*/
|
|
508
|
+
source?: ContextSource | undefined;
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: bool idempotency_reused = 2;
|
|
511
|
+
*/
|
|
512
|
+
idempotencyReused: boolean;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* Describes the message contextlibrary.v1.RegisterContextSourceResponse.
|
|
516
|
+
* Use `create(RegisterContextSourceResponseSchema)` to create a new message.
|
|
517
|
+
*/
|
|
518
|
+
export declare const RegisterContextSourceResponseSchema: GenMessage<RegisterContextSourceResponse>;
|
|
519
|
+
/**
|
|
520
|
+
* ListContextSourcesRequest lists sources, optionally filtered by connection.
|
|
521
|
+
*
|
|
522
|
+
* @generated from message contextlibrary.v1.ListContextSourcesRequest
|
|
523
|
+
*/
|
|
524
|
+
export type ListContextSourcesRequest = Message<"contextlibrary.v1.ListContextSourcesRequest"> & {
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: string workspace_id = 1;
|
|
527
|
+
*/
|
|
528
|
+
workspaceId: string;
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: string connection_id = 2;
|
|
531
|
+
*/
|
|
532
|
+
connectionId: string;
|
|
533
|
+
/**
|
|
534
|
+
* @generated from field: int32 limit = 3;
|
|
535
|
+
*/
|
|
536
|
+
limit: number;
|
|
537
|
+
/**
|
|
538
|
+
* @generated from field: string cursor = 4;
|
|
539
|
+
*/
|
|
540
|
+
cursor: string;
|
|
541
|
+
/**
|
|
542
|
+
* @generated from field: string organization_id = 5;
|
|
543
|
+
*/
|
|
544
|
+
organizationId: string;
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Describes the message contextlibrary.v1.ListContextSourcesRequest.
|
|
548
|
+
* Use `create(ListContextSourcesRequestSchema)` to create a new message.
|
|
549
|
+
*/
|
|
550
|
+
export declare const ListContextSourcesRequestSchema: GenMessage<ListContextSourcesRequest>;
|
|
551
|
+
/**
|
|
552
|
+
* ListContextSourcesResponse returns a page of sources.
|
|
553
|
+
*
|
|
554
|
+
* @generated from message contextlibrary.v1.ListContextSourcesResponse
|
|
555
|
+
*/
|
|
556
|
+
export type ListContextSourcesResponse = Message<"contextlibrary.v1.ListContextSourcesResponse"> & {
|
|
557
|
+
/**
|
|
558
|
+
* @generated from field: repeated contextlibrary.v1.ContextSource sources = 1;
|
|
559
|
+
*/
|
|
560
|
+
sources: ContextSource[];
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: string next_cursor = 2;
|
|
563
|
+
*/
|
|
564
|
+
nextCursor: string;
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Describes the message contextlibrary.v1.ListContextSourcesResponse.
|
|
568
|
+
* Use `create(ListContextSourcesResponseSchema)` to create a new message.
|
|
569
|
+
*/
|
|
570
|
+
export declare const ListContextSourcesResponseSchema: GenMessage<ListContextSourcesResponse>;
|
|
571
|
+
/**
|
|
572
|
+
* StartContextIngestionRunRequest starts an idempotent ingestion run.
|
|
573
|
+
*
|
|
574
|
+
* @generated from message contextlibrary.v1.StartContextIngestionRunRequest
|
|
575
|
+
*/
|
|
576
|
+
export type StartContextIngestionRunRequest = Message<"contextlibrary.v1.StartContextIngestionRunRequest"> & {
|
|
577
|
+
/**
|
|
578
|
+
* @generated from field: string workspace_id = 1;
|
|
579
|
+
*/
|
|
580
|
+
workspaceId: string;
|
|
581
|
+
/**
|
|
582
|
+
* @generated from field: string source_id = 2;
|
|
583
|
+
*/
|
|
584
|
+
sourceId: string;
|
|
585
|
+
/**
|
|
586
|
+
* @generated from field: string idempotency_key = 3;
|
|
587
|
+
*/
|
|
588
|
+
idempotencyKey: string;
|
|
589
|
+
/**
|
|
590
|
+
* @generated from field: string organization_id = 4;
|
|
591
|
+
*/
|
|
592
|
+
organizationId: string;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Describes the message contextlibrary.v1.StartContextIngestionRunRequest.
|
|
596
|
+
* Use `create(StartContextIngestionRunRequestSchema)` to create a new message.
|
|
597
|
+
*/
|
|
598
|
+
export declare const StartContextIngestionRunRequestSchema: GenMessage<StartContextIngestionRunRequest>;
|
|
599
|
+
/**
|
|
600
|
+
* StartContextIngestionRunResponse returns the started or reused run.
|
|
601
|
+
*
|
|
602
|
+
* @generated from message contextlibrary.v1.StartContextIngestionRunResponse
|
|
603
|
+
*/
|
|
604
|
+
export type StartContextIngestionRunResponse = Message<"contextlibrary.v1.StartContextIngestionRunResponse"> & {
|
|
605
|
+
/**
|
|
606
|
+
* @generated from field: contextlibrary.v1.ContextIngestionRun run = 1;
|
|
607
|
+
*/
|
|
608
|
+
run?: ContextIngestionRun | undefined;
|
|
609
|
+
/**
|
|
610
|
+
* @generated from field: bool idempotency_reused = 2;
|
|
611
|
+
*/
|
|
612
|
+
idempotencyReused: boolean;
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* Describes the message contextlibrary.v1.StartContextIngestionRunResponse.
|
|
616
|
+
* Use `create(StartContextIngestionRunResponseSchema)` to create a new message.
|
|
617
|
+
*/
|
|
618
|
+
export declare const StartContextIngestionRunResponseSchema: GenMessage<StartContextIngestionRunResponse>;
|
|
619
|
+
/**
|
|
620
|
+
* GetContextIngestionRunRequest requests a run by id.
|
|
621
|
+
*
|
|
622
|
+
* @generated from message contextlibrary.v1.GetContextIngestionRunRequest
|
|
623
|
+
*/
|
|
624
|
+
export type GetContextIngestionRunRequest = Message<"contextlibrary.v1.GetContextIngestionRunRequest"> & {
|
|
625
|
+
/**
|
|
626
|
+
* @generated from field: string workspace_id = 1;
|
|
627
|
+
*/
|
|
628
|
+
workspaceId: string;
|
|
629
|
+
/**
|
|
630
|
+
* @generated from field: string run_id = 2;
|
|
631
|
+
*/
|
|
632
|
+
runId: string;
|
|
633
|
+
/**
|
|
634
|
+
* @generated from field: string organization_id = 3;
|
|
635
|
+
*/
|
|
636
|
+
organizationId: string;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Describes the message contextlibrary.v1.GetContextIngestionRunRequest.
|
|
640
|
+
* Use `create(GetContextIngestionRunRequestSchema)` to create a new message.
|
|
641
|
+
*/
|
|
642
|
+
export declare const GetContextIngestionRunRequestSchema: GenMessage<GetContextIngestionRunRequest>;
|
|
643
|
+
/**
|
|
644
|
+
* GetContextIngestionRunResponse returns the requested run.
|
|
645
|
+
*
|
|
646
|
+
* @generated from message contextlibrary.v1.GetContextIngestionRunResponse
|
|
647
|
+
*/
|
|
648
|
+
export type GetContextIngestionRunResponse = Message<"contextlibrary.v1.GetContextIngestionRunResponse"> & {
|
|
649
|
+
/**
|
|
650
|
+
* @generated from field: contextlibrary.v1.ContextIngestionRun run = 1;
|
|
651
|
+
*/
|
|
652
|
+
run?: ContextIngestionRun | undefined;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Describes the message contextlibrary.v1.GetContextIngestionRunResponse.
|
|
656
|
+
* Use `create(GetContextIngestionRunResponseSchema)` to create a new message.
|
|
657
|
+
*/
|
|
658
|
+
export declare const GetContextIngestionRunResponseSchema: GenMessage<GetContextIngestionRunResponse>;
|
|
659
|
+
/**
|
|
660
|
+
* ListContextIngestionRunsRequest lists runs, optionally filtered by source or
|
|
661
|
+
* connection.
|
|
662
|
+
*
|
|
663
|
+
* @generated from message contextlibrary.v1.ListContextIngestionRunsRequest
|
|
664
|
+
*/
|
|
665
|
+
export type ListContextIngestionRunsRequest = Message<"contextlibrary.v1.ListContextIngestionRunsRequest"> & {
|
|
666
|
+
/**
|
|
667
|
+
* @generated from field: string workspace_id = 1;
|
|
668
|
+
*/
|
|
669
|
+
workspaceId: string;
|
|
670
|
+
/**
|
|
671
|
+
* @generated from field: string source_id = 2;
|
|
672
|
+
*/
|
|
673
|
+
sourceId: string;
|
|
674
|
+
/**
|
|
675
|
+
* @generated from field: string connection_id = 3;
|
|
676
|
+
*/
|
|
677
|
+
connectionId: string;
|
|
678
|
+
/**
|
|
679
|
+
* @generated from field: int32 limit = 4;
|
|
680
|
+
*/
|
|
681
|
+
limit: number;
|
|
682
|
+
/**
|
|
683
|
+
* @generated from field: string cursor = 5;
|
|
684
|
+
*/
|
|
685
|
+
cursor: string;
|
|
686
|
+
/**
|
|
687
|
+
* @generated from field: string organization_id = 6;
|
|
688
|
+
*/
|
|
689
|
+
organizationId: string;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* Describes the message contextlibrary.v1.ListContextIngestionRunsRequest.
|
|
693
|
+
* Use `create(ListContextIngestionRunsRequestSchema)` to create a new message.
|
|
694
|
+
*/
|
|
695
|
+
export declare const ListContextIngestionRunsRequestSchema: GenMessage<ListContextIngestionRunsRequest>;
|
|
696
|
+
/**
|
|
697
|
+
* ListContextIngestionRunsResponse returns a page of runs.
|
|
698
|
+
*
|
|
699
|
+
* @generated from message contextlibrary.v1.ListContextIngestionRunsResponse
|
|
700
|
+
*/
|
|
701
|
+
export type ListContextIngestionRunsResponse = Message<"contextlibrary.v1.ListContextIngestionRunsResponse"> & {
|
|
702
|
+
/**
|
|
703
|
+
* @generated from field: repeated contextlibrary.v1.ContextIngestionRun runs = 1;
|
|
704
|
+
*/
|
|
705
|
+
runs: ContextIngestionRun[];
|
|
706
|
+
/**
|
|
707
|
+
* @generated from field: string next_cursor = 2;
|
|
708
|
+
*/
|
|
709
|
+
nextCursor: string;
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* Describes the message contextlibrary.v1.ListContextIngestionRunsResponse.
|
|
713
|
+
* Use `create(ListContextIngestionRunsResponseSchema)` to create a new message.
|
|
714
|
+
*/
|
|
715
|
+
export declare const ListContextIngestionRunsResponseSchema: GenMessage<ListContextIngestionRunsResponse>;
|
|
716
|
+
/**
|
|
717
|
+
* AppendContextIngestionItemsRequest appends a batch of sanitized items.
|
|
718
|
+
*
|
|
719
|
+
* @generated from message contextlibrary.v1.AppendContextIngestionItemsRequest
|
|
720
|
+
*/
|
|
721
|
+
export type AppendContextIngestionItemsRequest = Message<"contextlibrary.v1.AppendContextIngestionItemsRequest"> & {
|
|
722
|
+
/**
|
|
723
|
+
* @generated from field: string workspace_id = 1;
|
|
724
|
+
*/
|
|
725
|
+
workspaceId: string;
|
|
726
|
+
/**
|
|
727
|
+
* @generated from field: string run_id = 2;
|
|
728
|
+
*/
|
|
729
|
+
runId: string;
|
|
730
|
+
/**
|
|
731
|
+
* @generated from field: int32 sequence = 3;
|
|
732
|
+
*/
|
|
733
|
+
sequence: number;
|
|
734
|
+
/**
|
|
735
|
+
* @generated from field: repeated contextlibrary.v1.SanitizedContextItem items = 4;
|
|
736
|
+
*/
|
|
737
|
+
items: SanitizedContextItem[];
|
|
738
|
+
/**
|
|
739
|
+
* @generated from field: bool complete = 5;
|
|
740
|
+
*/
|
|
741
|
+
complete: boolean;
|
|
742
|
+
/**
|
|
743
|
+
* @generated from field: string sanitizer_version = 6;
|
|
744
|
+
*/
|
|
745
|
+
sanitizerVersion: string;
|
|
746
|
+
/**
|
|
747
|
+
* @generated from field: string organization_id = 7;
|
|
748
|
+
*/
|
|
749
|
+
organizationId: string;
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* Describes the message contextlibrary.v1.AppendContextIngestionItemsRequest.
|
|
753
|
+
* Use `create(AppendContextIngestionItemsRequestSchema)` to create a new message.
|
|
754
|
+
*/
|
|
755
|
+
export declare const AppendContextIngestionItemsRequestSchema: GenMessage<AppendContextIngestionItemsRequest>;
|
|
756
|
+
/**
|
|
757
|
+
* AppendContextIngestionItemsResponse reports append accounting.
|
|
758
|
+
*
|
|
759
|
+
* @generated from message contextlibrary.v1.AppendContextIngestionItemsResponse
|
|
760
|
+
*/
|
|
761
|
+
export type AppendContextIngestionItemsResponse = Message<"contextlibrary.v1.AppendContextIngestionItemsResponse"> & {
|
|
762
|
+
/**
|
|
763
|
+
* @generated from field: contextlibrary.v1.ContextIngestionRun run = 1;
|
|
764
|
+
*/
|
|
765
|
+
run?: ContextIngestionRun | undefined;
|
|
766
|
+
/**
|
|
767
|
+
* @generated from field: int32 accepted_items = 2;
|
|
768
|
+
*/
|
|
769
|
+
acceptedItems: number;
|
|
770
|
+
/**
|
|
771
|
+
* @generated from field: int32 deduplicated_items = 3;
|
|
772
|
+
*/
|
|
773
|
+
deduplicatedItems: number;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* Describes the message contextlibrary.v1.AppendContextIngestionItemsResponse.
|
|
777
|
+
* Use `create(AppendContextIngestionItemsResponseSchema)` to create a new message.
|
|
778
|
+
*/
|
|
779
|
+
export declare const AppendContextIngestionItemsResponseSchema: GenMessage<AppendContextIngestionItemsResponse>;
|
|
780
|
+
/**
|
|
781
|
+
* FailContextIngestionRunRequest marks a run failed with an explicit reason.
|
|
782
|
+
*
|
|
783
|
+
* @generated from message contextlibrary.v1.FailContextIngestionRunRequest
|
|
784
|
+
*/
|
|
785
|
+
export type FailContextIngestionRunRequest = Message<"contextlibrary.v1.FailContextIngestionRunRequest"> & {
|
|
786
|
+
/**
|
|
787
|
+
* @generated from field: string workspace_id = 1;
|
|
788
|
+
*/
|
|
789
|
+
workspaceId: string;
|
|
790
|
+
/**
|
|
791
|
+
* @generated from field: string run_id = 2;
|
|
792
|
+
*/
|
|
793
|
+
runId: string;
|
|
794
|
+
/**
|
|
795
|
+
* @generated from field: string error = 3;
|
|
796
|
+
*/
|
|
797
|
+
error: string;
|
|
798
|
+
/**
|
|
799
|
+
* @generated from field: string organization_id = 4;
|
|
800
|
+
*/
|
|
801
|
+
organizationId: string;
|
|
802
|
+
};
|
|
803
|
+
/**
|
|
804
|
+
* Describes the message contextlibrary.v1.FailContextIngestionRunRequest.
|
|
805
|
+
* Use `create(FailContextIngestionRunRequestSchema)` to create a new message.
|
|
806
|
+
*/
|
|
807
|
+
export declare const FailContextIngestionRunRequestSchema: GenMessage<FailContextIngestionRunRequest>;
|
|
808
|
+
/**
|
|
809
|
+
* FailContextIngestionRunResponse returns the failed run.
|
|
810
|
+
*
|
|
811
|
+
* @generated from message contextlibrary.v1.FailContextIngestionRunResponse
|
|
812
|
+
*/
|
|
813
|
+
export type FailContextIngestionRunResponse = Message<"contextlibrary.v1.FailContextIngestionRunResponse"> & {
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: contextlibrary.v1.ContextIngestionRun run = 1;
|
|
816
|
+
*/
|
|
817
|
+
run?: ContextIngestionRun | undefined;
|
|
818
|
+
};
|
|
819
|
+
/**
|
|
820
|
+
* Describes the message contextlibrary.v1.FailContextIngestionRunResponse.
|
|
821
|
+
* Use `create(FailContextIngestionRunResponseSchema)` to create a new message.
|
|
822
|
+
*/
|
|
823
|
+
export declare const FailContextIngestionRunResponseSchema: GenMessage<FailContextIngestionRunResponse>;
|
|
824
|
+
/**
|
|
825
|
+
* ListContextDomainsRequest lists domain summaries for a workspace.
|
|
826
|
+
*
|
|
827
|
+
* @generated from message contextlibrary.v1.ListContextDomainsRequest
|
|
828
|
+
*/
|
|
829
|
+
export type ListContextDomainsRequest = Message<"contextlibrary.v1.ListContextDomainsRequest"> & {
|
|
830
|
+
/**
|
|
831
|
+
* @generated from field: string workspace_id = 1;
|
|
832
|
+
*/
|
|
833
|
+
workspaceId: string;
|
|
834
|
+
/**
|
|
835
|
+
* @generated from field: string organization_id = 2;
|
|
836
|
+
*/
|
|
837
|
+
organizationId: string;
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Describes the message contextlibrary.v1.ListContextDomainsRequest.
|
|
841
|
+
* Use `create(ListContextDomainsRequestSchema)` to create a new message.
|
|
842
|
+
*/
|
|
843
|
+
export declare const ListContextDomainsRequestSchema: GenMessage<ListContextDomainsRequest>;
|
|
844
|
+
/**
|
|
845
|
+
* ListContextDomainsResponse returns domain summaries.
|
|
846
|
+
*
|
|
847
|
+
* @generated from message contextlibrary.v1.ListContextDomainsResponse
|
|
848
|
+
*/
|
|
849
|
+
export type ListContextDomainsResponse = Message<"contextlibrary.v1.ListContextDomainsResponse"> & {
|
|
850
|
+
/**
|
|
851
|
+
* @generated from field: repeated contextlibrary.v1.ContextDomain domains = 1;
|
|
852
|
+
*/
|
|
853
|
+
domains: ContextDomain[];
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* Describes the message contextlibrary.v1.ListContextDomainsResponse.
|
|
857
|
+
* Use `create(ListContextDomainsResponseSchema)` to create a new message.
|
|
858
|
+
*/
|
|
859
|
+
export declare const ListContextDomainsResponseSchema: GenMessage<ListContextDomainsResponse>;
|
|
860
|
+
/**
|
|
861
|
+
* ListContextItemsRequest lists items with optional filtering.
|
|
862
|
+
*
|
|
863
|
+
* @generated from message contextlibrary.v1.ListContextItemsRequest
|
|
864
|
+
*/
|
|
865
|
+
export type ListContextItemsRequest = Message<"contextlibrary.v1.ListContextItemsRequest"> & {
|
|
866
|
+
/**
|
|
867
|
+
* @generated from field: string workspace_id = 1;
|
|
868
|
+
*/
|
|
869
|
+
workspaceId: string;
|
|
870
|
+
/**
|
|
871
|
+
* @generated from field: string source_id = 2;
|
|
872
|
+
*/
|
|
873
|
+
sourceId: string;
|
|
874
|
+
/**
|
|
875
|
+
* @generated from field: string domain = 3;
|
|
876
|
+
*/
|
|
877
|
+
domain: string;
|
|
878
|
+
/**
|
|
879
|
+
* @generated from field: contextlibrary.v1.ContextItemReviewState review_state = 4;
|
|
880
|
+
*/
|
|
881
|
+
reviewState: ContextItemReviewState;
|
|
882
|
+
/**
|
|
883
|
+
* @generated from field: bool include_content = 5;
|
|
884
|
+
*/
|
|
885
|
+
includeContent: boolean;
|
|
886
|
+
/**
|
|
887
|
+
* @generated from field: int32 limit = 6;
|
|
888
|
+
*/
|
|
889
|
+
limit: number;
|
|
890
|
+
/**
|
|
891
|
+
* @generated from field: string cursor = 7;
|
|
892
|
+
*/
|
|
893
|
+
cursor: string;
|
|
894
|
+
/**
|
|
895
|
+
* @generated from field: string organization_id = 8;
|
|
896
|
+
*/
|
|
897
|
+
organizationId: string;
|
|
898
|
+
};
|
|
899
|
+
/**
|
|
900
|
+
* Describes the message contextlibrary.v1.ListContextItemsRequest.
|
|
901
|
+
* Use `create(ListContextItemsRequestSchema)` to create a new message.
|
|
902
|
+
*/
|
|
903
|
+
export declare const ListContextItemsRequestSchema: GenMessage<ListContextItemsRequest>;
|
|
904
|
+
/**
|
|
905
|
+
* ListContextItemsResponse returns a page of items.
|
|
906
|
+
*
|
|
907
|
+
* @generated from message contextlibrary.v1.ListContextItemsResponse
|
|
908
|
+
*/
|
|
909
|
+
export type ListContextItemsResponse = Message<"contextlibrary.v1.ListContextItemsResponse"> & {
|
|
910
|
+
/**
|
|
911
|
+
* @generated from field: repeated contextlibrary.v1.ContextItem items = 1;
|
|
912
|
+
*/
|
|
913
|
+
items: ContextItem[];
|
|
914
|
+
/**
|
|
915
|
+
* @generated from field: string next_cursor = 2;
|
|
916
|
+
*/
|
|
917
|
+
nextCursor: string;
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* Describes the message contextlibrary.v1.ListContextItemsResponse.
|
|
921
|
+
* Use `create(ListContextItemsResponseSchema)` to create a new message.
|
|
922
|
+
*/
|
|
923
|
+
export declare const ListContextItemsResponseSchema: GenMessage<ListContextItemsResponse>;
|
|
924
|
+
/**
|
|
925
|
+
* ReviewContextItemsRequest records review decisions for items.
|
|
926
|
+
*
|
|
927
|
+
* @generated from message contextlibrary.v1.ReviewContextItemsRequest
|
|
928
|
+
*/
|
|
929
|
+
export type ReviewContextItemsRequest = Message<"contextlibrary.v1.ReviewContextItemsRequest"> & {
|
|
930
|
+
/**
|
|
931
|
+
* @generated from field: string workspace_id = 1;
|
|
932
|
+
*/
|
|
933
|
+
workspaceId: string;
|
|
934
|
+
/**
|
|
935
|
+
* @generated from field: repeated string item_ids = 2;
|
|
936
|
+
*/
|
|
937
|
+
itemIds: string[];
|
|
938
|
+
/**
|
|
939
|
+
* @generated from field: contextlibrary.v1.ContextItemReviewState review_state = 3;
|
|
940
|
+
*/
|
|
941
|
+
reviewState: ContextItemReviewState;
|
|
942
|
+
/**
|
|
943
|
+
* @generated from field: string reviewer_id = 4 [deprecated = true];
|
|
944
|
+
* @deprecated
|
|
945
|
+
*/
|
|
946
|
+
reviewerId: string;
|
|
947
|
+
/**
|
|
948
|
+
* @generated from field: string approval_ref = 5;
|
|
949
|
+
*/
|
|
950
|
+
approvalRef: string;
|
|
951
|
+
/**
|
|
952
|
+
* @generated from field: string note = 6;
|
|
953
|
+
*/
|
|
954
|
+
note: string;
|
|
955
|
+
/**
|
|
956
|
+
* @generated from field: string organization_id = 7;
|
|
957
|
+
*/
|
|
958
|
+
organizationId: string;
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* Describes the message contextlibrary.v1.ReviewContextItemsRequest.
|
|
962
|
+
* Use `create(ReviewContextItemsRequestSchema)` to create a new message.
|
|
963
|
+
*/
|
|
964
|
+
export declare const ReviewContextItemsRequestSchema: GenMessage<ReviewContextItemsRequest>;
|
|
965
|
+
/**
|
|
966
|
+
* ReviewContextItemsResponse returns the reviewed items.
|
|
967
|
+
*
|
|
968
|
+
* @generated from message contextlibrary.v1.ReviewContextItemsResponse
|
|
969
|
+
*/
|
|
970
|
+
export type ReviewContextItemsResponse = Message<"contextlibrary.v1.ReviewContextItemsResponse"> & {
|
|
971
|
+
/**
|
|
972
|
+
* @generated from field: repeated contextlibrary.v1.ContextItem items = 1;
|
|
973
|
+
*/
|
|
974
|
+
items: ContextItem[];
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* Describes the message contextlibrary.v1.ReviewContextItemsResponse.
|
|
978
|
+
* Use `create(ReviewContextItemsResponseSchema)` to create a new message.
|
|
979
|
+
*/
|
|
980
|
+
export declare const ReviewContextItemsResponseSchema: GenMessage<ReviewContextItemsResponse>;
|
|
981
|
+
/**
|
|
982
|
+
* ContextSourceState describes the lifecycle of an approved context source.
|
|
983
|
+
*
|
|
984
|
+
* @generated from enum contextlibrary.v1.ContextSourceState
|
|
985
|
+
*/
|
|
986
|
+
export declare enum ContextSourceState {
|
|
987
|
+
/**
|
|
988
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_UNSPECIFIED = 0;
|
|
989
|
+
*/
|
|
990
|
+
UNSPECIFIED = 0,
|
|
991
|
+
/**
|
|
992
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_APPROVAL_REQUIRED = 1;
|
|
993
|
+
*/
|
|
994
|
+
APPROVAL_REQUIRED = 1,
|
|
995
|
+
/**
|
|
996
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_APPROVED = 2;
|
|
997
|
+
*/
|
|
998
|
+
APPROVED = 2,
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_ACTIVE = 3;
|
|
1001
|
+
*/
|
|
1002
|
+
ACTIVE = 3,
|
|
1003
|
+
/**
|
|
1004
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_PAUSED = 4;
|
|
1005
|
+
*/
|
|
1006
|
+
PAUSED = 4,
|
|
1007
|
+
/**
|
|
1008
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_DEGRADED = 5;
|
|
1009
|
+
*/
|
|
1010
|
+
DEGRADED = 5,
|
|
1011
|
+
/**
|
|
1012
|
+
* @generated from enum value: CONTEXT_SOURCE_STATE_REVOKED = 6;
|
|
1013
|
+
*/
|
|
1014
|
+
REVOKED = 6
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Describes the enum contextlibrary.v1.ContextSourceState.
|
|
1018
|
+
*/
|
|
1019
|
+
export declare const ContextSourceStateSchema: GenEnum<ContextSourceState>;
|
|
1020
|
+
/**
|
|
1021
|
+
* ContextIngestionRunStatus describes the lifecycle of an ingestion run.
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from enum contextlibrary.v1.ContextIngestionRunStatus
|
|
1024
|
+
*/
|
|
1025
|
+
export declare enum ContextIngestionRunStatus {
|
|
1026
|
+
/**
|
|
1027
|
+
* @generated from enum value: CONTEXT_INGESTION_RUN_STATUS_UNSPECIFIED = 0;
|
|
1028
|
+
*/
|
|
1029
|
+
UNSPECIFIED = 0,
|
|
1030
|
+
/**
|
|
1031
|
+
* @generated from enum value: CONTEXT_INGESTION_RUN_STATUS_QUEUED = 1;
|
|
1032
|
+
*/
|
|
1033
|
+
QUEUED = 1,
|
|
1034
|
+
/**
|
|
1035
|
+
* @generated from enum value: CONTEXT_INGESTION_RUN_STATUS_RUNNING = 2;
|
|
1036
|
+
*/
|
|
1037
|
+
RUNNING = 2,
|
|
1038
|
+
/**
|
|
1039
|
+
* @generated from enum value: CONTEXT_INGESTION_RUN_STATUS_SUCCEEDED = 3;
|
|
1040
|
+
*/
|
|
1041
|
+
SUCCEEDED = 3,
|
|
1042
|
+
/**
|
|
1043
|
+
* @generated from enum value: CONTEXT_INGESTION_RUN_STATUS_FAILED = 4;
|
|
1044
|
+
*/
|
|
1045
|
+
FAILED = 4,
|
|
1046
|
+
/**
|
|
1047
|
+
* @generated from enum value: CONTEXT_INGESTION_RUN_STATUS_CANCELLED = 5;
|
|
1048
|
+
*/
|
|
1049
|
+
CANCELLED = 5
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Describes the enum contextlibrary.v1.ContextIngestionRunStatus.
|
|
1053
|
+
*/
|
|
1054
|
+
export declare const ContextIngestionRunStatusSchema: GenEnum<ContextIngestionRunStatus>;
|
|
1055
|
+
/**
|
|
1056
|
+
* ContextItemReviewState describes whether an item may be used by agents.
|
|
1057
|
+
*
|
|
1058
|
+
* @generated from enum contextlibrary.v1.ContextItemReviewState
|
|
1059
|
+
*/
|
|
1060
|
+
export declare enum ContextItemReviewState {
|
|
1061
|
+
/**
|
|
1062
|
+
* @generated from enum value: CONTEXT_ITEM_REVIEW_STATE_UNSPECIFIED = 0;
|
|
1063
|
+
*/
|
|
1064
|
+
UNSPECIFIED = 0,
|
|
1065
|
+
/**
|
|
1066
|
+
* @generated from enum value: CONTEXT_ITEM_REVIEW_STATE_PENDING_REVIEW = 1;
|
|
1067
|
+
*/
|
|
1068
|
+
PENDING_REVIEW = 1,
|
|
1069
|
+
/**
|
|
1070
|
+
* @generated from enum value: CONTEXT_ITEM_REVIEW_STATE_APPROVED = 2;
|
|
1071
|
+
*/
|
|
1072
|
+
APPROVED = 2,
|
|
1073
|
+
/**
|
|
1074
|
+
* @generated from enum value: CONTEXT_ITEM_REVIEW_STATE_REJECTED = 3;
|
|
1075
|
+
*/
|
|
1076
|
+
REJECTED = 3,
|
|
1077
|
+
/**
|
|
1078
|
+
* @generated from enum value: CONTEXT_ITEM_REVIEW_STATE_SUPERSEDED = 4;
|
|
1079
|
+
*/
|
|
1080
|
+
SUPERSEDED = 4
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Describes the enum contextlibrary.v1.ContextItemReviewState.
|
|
1084
|
+
*/
|
|
1085
|
+
export declare const ContextItemReviewStateSchema: GenEnum<ContextItemReviewState>;
|
|
1086
|
+
/**
|
|
1087
|
+
* ApprovedSourceScopeType describes the kind of approved resource a scope names.
|
|
1088
|
+
*
|
|
1089
|
+
* @generated from enum contextlibrary.v1.ApprovedSourceScopeType
|
|
1090
|
+
*/
|
|
1091
|
+
export declare enum ApprovedSourceScopeType {
|
|
1092
|
+
/**
|
|
1093
|
+
* @generated from enum value: APPROVED_SOURCE_SCOPE_TYPE_UNSPECIFIED = 0;
|
|
1094
|
+
*/
|
|
1095
|
+
UNSPECIFIED = 0,
|
|
1096
|
+
/**
|
|
1097
|
+
* @generated from enum value: APPROVED_SOURCE_SCOPE_TYPE_FILE = 1;
|
|
1098
|
+
*/
|
|
1099
|
+
FILE = 1,
|
|
1100
|
+
/**
|
|
1101
|
+
* @generated from enum value: APPROVED_SOURCE_SCOPE_TYPE_DIRECTORY = 2;
|
|
1102
|
+
*/
|
|
1103
|
+
DIRECTORY = 2,
|
|
1104
|
+
/**
|
|
1105
|
+
* @generated from enum value: APPROVED_SOURCE_SCOPE_TYPE_REPOSITORY = 3;
|
|
1106
|
+
*/
|
|
1107
|
+
REPOSITORY = 3,
|
|
1108
|
+
/**
|
|
1109
|
+
* @generated from enum value: APPROVED_SOURCE_SCOPE_TYPE_FOLDER = 4;
|
|
1110
|
+
*/
|
|
1111
|
+
FOLDER = 4,
|
|
1112
|
+
/**
|
|
1113
|
+
* @generated from enum value: APPROVED_SOURCE_SCOPE_TYPE_CHANNEL = 5;
|
|
1114
|
+
*/
|
|
1115
|
+
CHANNEL = 5
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Describes the enum contextlibrary.v1.ApprovedSourceScopeType.
|
|
1119
|
+
*/
|
|
1120
|
+
export declare const ApprovedSourceScopeTypeSchema: GenEnum<ApprovedSourceScopeType>;
|
|
1121
|
+
/**
|
|
1122
|
+
* ContextLibraryService owns the customer-approved context sources, ingestion
|
|
1123
|
+
* runs, sanitized context items, and review decisions that teach agents how a
|
|
1124
|
+
* business works. It is the authoritative owner for context-document ingestion;
|
|
1125
|
+
* the context-ingest sanitizer is the producer and Console renders only what
|
|
1126
|
+
* this service returns.
|
|
1127
|
+
*
|
|
1128
|
+
* @generated from service contextlibrary.v1.ContextLibraryService
|
|
1129
|
+
*/
|
|
1130
|
+
export declare const ContextLibraryService: GenService<{
|
|
1131
|
+
/**
|
|
1132
|
+
* GetContextLibraryCapability reports which Context Library capabilities the
|
|
1133
|
+
* workspace can use so callers can render explicit unavailable states instead
|
|
1134
|
+
* of inventing context.
|
|
1135
|
+
*
|
|
1136
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.GetContextLibraryCapability
|
|
1137
|
+
*/
|
|
1138
|
+
getContextLibraryCapability: {
|
|
1139
|
+
methodKind: "unary";
|
|
1140
|
+
input: typeof GetContextLibraryCapabilityRequestSchema;
|
|
1141
|
+
output: typeof GetContextLibraryCapabilityResponseSchema;
|
|
1142
|
+
};
|
|
1143
|
+
/**
|
|
1144
|
+
* RegisterContextSource registers an approved context source for an existing
|
|
1145
|
+
* ConnectorService connection.
|
|
1146
|
+
*
|
|
1147
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.RegisterContextSource
|
|
1148
|
+
*/
|
|
1149
|
+
registerContextSource: {
|
|
1150
|
+
methodKind: "unary";
|
|
1151
|
+
input: typeof RegisterContextSourceRequestSchema;
|
|
1152
|
+
output: typeof RegisterContextSourceResponseSchema;
|
|
1153
|
+
};
|
|
1154
|
+
/**
|
|
1155
|
+
* ListContextSources lists approved context sources owned for a workspace.
|
|
1156
|
+
*
|
|
1157
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.ListContextSources
|
|
1158
|
+
*/
|
|
1159
|
+
listContextSources: {
|
|
1160
|
+
methodKind: "unary";
|
|
1161
|
+
input: typeof ListContextSourcesRequestSchema;
|
|
1162
|
+
output: typeof ListContextSourcesResponseSchema;
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* StartContextIngestionRun starts an idempotent ingestion run for a source.
|
|
1166
|
+
*
|
|
1167
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.StartContextIngestionRun
|
|
1168
|
+
*/
|
|
1169
|
+
startContextIngestionRun: {
|
|
1170
|
+
methodKind: "unary";
|
|
1171
|
+
input: typeof StartContextIngestionRunRequestSchema;
|
|
1172
|
+
output: typeof StartContextIngestionRunResponseSchema;
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* GetContextIngestionRun returns the owner-recorded state of a run.
|
|
1176
|
+
*
|
|
1177
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.GetContextIngestionRun
|
|
1178
|
+
*/
|
|
1179
|
+
getContextIngestionRun: {
|
|
1180
|
+
methodKind: "unary";
|
|
1181
|
+
input: typeof GetContextIngestionRunRequestSchema;
|
|
1182
|
+
output: typeof GetContextIngestionRunResponseSchema;
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* ListContextIngestionRuns lists owner-recorded ingestion runs for a
|
|
1186
|
+
* workspace, optionally filtered by source or connection.
|
|
1187
|
+
*
|
|
1188
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.ListContextIngestionRuns
|
|
1189
|
+
*/
|
|
1190
|
+
listContextIngestionRuns: {
|
|
1191
|
+
methodKind: "unary";
|
|
1192
|
+
input: typeof ListContextIngestionRunsRequestSchema;
|
|
1193
|
+
output: typeof ListContextIngestionRunsResponseSchema;
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* AppendContextIngestionItems appends sanitized items emitted by the
|
|
1197
|
+
* context-ingest sanitizer into the owner store for review.
|
|
1198
|
+
*
|
|
1199
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.AppendContextIngestionItems
|
|
1200
|
+
*/
|
|
1201
|
+
appendContextIngestionItems: {
|
|
1202
|
+
methodKind: "unary";
|
|
1203
|
+
input: typeof AppendContextIngestionItemsRequestSchema;
|
|
1204
|
+
output: typeof AppendContextIngestionItemsResponseSchema;
|
|
1205
|
+
};
|
|
1206
|
+
/**
|
|
1207
|
+
* FailContextIngestionRun marks a run failed when the worker cannot complete
|
|
1208
|
+
* ingestion, so partial or failed ingests are never recorded as success.
|
|
1209
|
+
*
|
|
1210
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.FailContextIngestionRun
|
|
1211
|
+
*/
|
|
1212
|
+
failContextIngestionRun: {
|
|
1213
|
+
methodKind: "unary";
|
|
1214
|
+
input: typeof FailContextIngestionRunRequestSchema;
|
|
1215
|
+
output: typeof FailContextIngestionRunResponseSchema;
|
|
1216
|
+
};
|
|
1217
|
+
/**
|
|
1218
|
+
* ListContextDomains lists domain summaries returned by the owner store.
|
|
1219
|
+
*
|
|
1220
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.ListContextDomains
|
|
1221
|
+
*/
|
|
1222
|
+
listContextDomains: {
|
|
1223
|
+
methodKind: "unary";
|
|
1224
|
+
input: typeof ListContextDomainsRequestSchema;
|
|
1225
|
+
output: typeof ListContextDomainsResponseSchema;
|
|
1226
|
+
};
|
|
1227
|
+
/**
|
|
1228
|
+
* ListContextItems lists context items returned by the owner store with
|
|
1229
|
+
* review-state filtering.
|
|
1230
|
+
*
|
|
1231
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.ListContextItems
|
|
1232
|
+
*/
|
|
1233
|
+
listContextItems: {
|
|
1234
|
+
methodKind: "unary";
|
|
1235
|
+
input: typeof ListContextItemsRequestSchema;
|
|
1236
|
+
output: typeof ListContextItemsResponseSchema;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* ReviewContextItems records review decisions before agents rely on items.
|
|
1240
|
+
*
|
|
1241
|
+
* @generated from rpc contextlibrary.v1.ContextLibraryService.ReviewContextItems
|
|
1242
|
+
*/
|
|
1243
|
+
reviewContextItems: {
|
|
1244
|
+
methodKind: "unary";
|
|
1245
|
+
input: typeof ReviewContextItemsRequestSchema;
|
|
1246
|
+
output: typeof ReviewContextItemsResponseSchema;
|
|
1247
|
+
};
|
|
1248
|
+
}>;
|