weave-typescript 0.51.3 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/google/protobuf/duration.pb.d.ts +99 -0
  2. package/dist/google/protobuf/duration.pb.js +93 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +2 -1
  5. package/dist/weave/authz/v1/index.d.ts +1 -0
  6. package/dist/weave/authz/v1/index.js +38 -0
  7. package/dist/weave/authz/v1/options.pb.d.ts +52 -0
  8. package/dist/weave/authz/v1/options.pb.js +403 -0
  9. package/dist/weave/filter/v1/index.d.ts +1 -0
  10. package/dist/weave/filter/v1/index.js +38 -0
  11. package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
  12. package/dist/weave/filter/v1/options.pb.js +417 -0
  13. package/dist/weave/index.d.ts +2 -0
  14. package/dist/weave/index.js +39 -0
  15. package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
  16. package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
  17. package/dist/weaveapi/agent/v1/index.d.ts +1 -1
  18. package/dist/weaveapi/agent/v1/index.js +2 -2
  19. package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
  20. package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
  21. package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
  22. package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
  23. package/dist/weaveapi/auth/v1/index.d.ts +4 -1
  24. package/dist/weaveapi/auth/v1/index.js +5 -2
  25. package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
  26. package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
  27. package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
  28. package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
  29. package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
  30. package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
  31. package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
  32. package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
  33. package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
  34. package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
  35. package/dist/weaveapi/chat/v1/index.d.ts +0 -1
  36. package/dist/weaveapi/chat/v1/index.js +1 -2
  37. package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
  38. package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
  39. package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
  40. package/dist/weaveapi/consolidation/v1/index.js +1 -2
  41. package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
  42. package/dist/weaveapi/content/v1/content.pb.js +470 -0
  43. package/dist/weaveapi/content/v1/index.d.ts +1 -0
  44. package/dist/weaveapi/content/v1/index.js +38 -0
  45. package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
  46. package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
  47. package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
  48. package/dist/weaveapi/gateway/v1/index.js +1 -2
  49. package/dist/weaveapi/index.d.ts +5 -5
  50. package/dist/weaveapi/index.js +6 -6
  51. package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
  52. package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
  53. package/dist/weaveapi/inference/v1/index.d.ts +4 -0
  54. package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
  55. package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +54 -15
  56. package/dist/weaveapi/{model → inference}/v1/model.pb.js +573 -116
  57. package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +184 -110
  58. package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2240 -1061
  59. package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
  60. package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
  61. package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
  62. package/dist/weaveapi/ingestion/v1/index.js +1 -3
  63. package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
  64. package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
  65. package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
  66. package/dist/weaveapi/initialization/v1/index.js +38 -0
  67. package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
  68. package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
  69. package/dist/weaveapi/organization/v1/index.d.ts +0 -1
  70. package/dist/weaveapi/organization/v1/index.js +1 -2
  71. package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
  72. package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
  73. package/dist/weaveapi/reporting/index.d.ts +1 -0
  74. package/dist/weaveapi/reporting/index.js +38 -0
  75. package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
  76. package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
  77. package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
  78. package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
  79. package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
  80. package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
  81. package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
  82. package/dist/weaveapi/retrieval/v1/index.js +1 -2
  83. package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
  84. package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
  85. package/dist/weaveapi/tool/index.d.ts +1 -0
  86. package/dist/weaveapi/tool/index.js +38 -0
  87. package/dist/weaveapi/tool/v1/index.d.ts +1 -0
  88. package/dist/weaveapi/tool/v1/index.js +38 -0
  89. package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
  90. package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
  91. package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
  92. package/dist/weaveapi/workflow/v1/index.js +2 -2
  93. package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
  94. package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
  95. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
  96. package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
  97. package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
  98. package/dist/weavesql/weavedb/agent_sql.js +281 -758
  99. package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
  100. package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
  101. package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
  102. package/dist/weavesql/weavedb/chat_sql.js +312 -597
  103. package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
  104. package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
  105. package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
  106. package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
  107. package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
  108. package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
  109. package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
  110. package/dist/weavesql/weavedb/document_table_sql.js +12 -12
  111. package/dist/weavesql/weavedb/identity_sql.d.ts +1021 -0
  112. package/dist/weavesql/weavedb/identity_sql.js +1818 -0
  113. package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +167 -0
  114. package/dist/weavesql/weavedb/inference_model_route_sql.js +483 -0
  115. package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
  116. package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
  117. package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
  118. package/dist/weavesql/weavedb/initialization_sql.js +33 -0
  119. package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
  120. package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
  121. package/dist/weavesql/weavedb/organization_sql.d.ts +24 -102
  122. package/dist/weavesql/weavedb/organization_sql.js +56 -262
  123. package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
  124. package/dist/weavesql/weavedb/tool_sql.js +407 -0
  125. package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
  126. package/dist/weavesql/weavedb/usage_sql.js +568 -0
  127. package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
  128. package/dist/weavesql/weavedb/workflow_sql.js +281 -909
  129. package/package.json +1 -1
  130. package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
  131. package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
  132. package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
  133. package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
  134. package/dist/weaveapi/atc/v1/index.d.ts +0 -5
  135. package/dist/weaveapi/atc/v1/index.js +0 -42
  136. package/dist/weaveapi/atc/v1/message.pb.js +0 -287
  137. package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
  138. package/dist/weaveapi/atc/v1/process.pb.js +0 -658
  139. package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
  140. package/dist/weaveapi/atc/v1/run.pb.js +0 -525
  141. package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
  142. package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
  143. package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
  144. package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
  145. package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
  146. package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
  147. package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
  148. package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
  149. package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
  150. package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
  151. package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
  152. package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
  153. package/dist/weaveapi/model/v1/index.d.ts +0 -2
  154. package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
  155. package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
  156. package/dist/weaveapi/project/v1/index.d.ts +0 -2
  157. package/dist/weaveapi/project/v1/index.js +0 -39
  158. package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
  159. package/dist/weaveapi/project/v1/project.pb.js +0 -1004
  160. package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
  161. package/dist/weaveapi/project/v1/service.pb.js +0 -1994
  162. package/dist/weaveapi/provider/v1/index.d.ts +0 -2
  163. package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
  164. package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
  165. package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
  166. package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
  167. package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
  168. package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
  169. package/dist/weaveapi/task/v1/index.js +0 -39
  170. package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
  171. package/dist/weaveapi/task/v1/service.pb.js +0 -1436
  172. package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
  173. package/dist/weaveapi/task/v1/task.pb.js +0 -802
  174. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
  175. package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
  176. /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
  177. /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
  178. /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
  179. /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
  180. /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
  181. /package/dist/weaveapi/{project → content}/index.js +0 -0
  182. /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
  183. /package/dist/weaveapi/{provider → inference}/index.js +0 -0
  184. /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
  185. /package/dist/weaveapi/{task → initialization}/index.js +0 -0
@@ -1,472 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { Observable } from "rxjs";
3
- import { Event, InspectionAction, InspectionActorKind, InspectionEvent, InspectionOutcome, InspectionSubjectKind } from "./event.pb";
4
- import { MailboxMessage } from "./message.pb";
5
- import { Process, ProcessTypeSummary } from "./process.pb";
6
- import { Run, RunConfig, RunStatus } from "./run.pb";
7
- export declare const protobufPackage = "weaveapi.atc.v1";
8
- export interface CreateRunRequest {
9
- /** The prompt or task description for the run. */
10
- prompt: string;
11
- /** Optional configuration for the run. */
12
- config: RunConfig | undefined;
13
- }
14
- export interface CreateRunResponse {
15
- run: Run | undefined;
16
- }
17
- export interface SendMessageRequest {
18
- runId: string;
19
- /** Target process ID within the run. */
20
- toProcessId: string;
21
- /** Message type identifier. */
22
- type: string;
23
- /** Message payload as raw bytes (JSON-encoded). */
24
- payload: Uint8Array;
25
- /** Whether this message is an interrupt. */
26
- interrupt: boolean;
27
- }
28
- export interface SendMessageResponse {
29
- message: MailboxMessage | undefined;
30
- }
31
- export interface CancelRunRequest {
32
- runId: string;
33
- }
34
- export interface CancelRunResponse {
35
- run: Run | undefined;
36
- }
37
- export interface WaitRunRequest {
38
- runId: string;
39
- }
40
- export interface WaitRunResponse {
41
- status: RunStatus;
42
- run: Run | undefined;
43
- }
44
- export interface GetRunStatusRequest {
45
- runId: string;
46
- }
47
- export interface GetRunStatusResponse {
48
- run: Run | undefined;
49
- totalProcesses: number;
50
- runningProcesses: number;
51
- completedProcesses: number;
52
- failedProcesses: number;
53
- }
54
- export interface ListRunsRequest {
55
- pageSize: number;
56
- pageToken: string;
57
- /** Filter by run status. */
58
- statusFilter: RunStatus;
59
- /** Filter by runs created at or after this timestamp. */
60
- createdAfter: Date | undefined;
61
- /** Filter by runs created at or before this timestamp. */
62
- createdBefore: Date | undefined;
63
- }
64
- export interface ListRunsResponse {
65
- runs: Run[];
66
- nextPageToken: string;
67
- totalCount: number;
68
- }
69
- export interface GetRunRequest {
70
- runId: string;
71
- }
72
- export interface GetRunResponse {
73
- run: Run | undefined;
74
- processes: Process[];
75
- }
76
- export interface ListEventsRequest {
77
- runId: string;
78
- pageSize: number;
79
- pageToken: string;
80
- /** Only return events with sequence greater than this value. */
81
- afterSequence: number;
82
- /** Filter by event type. */
83
- eventTypeFilter: string;
84
- }
85
- export interface ListEventsResponse {
86
- events: Event[];
87
- nextPageToken: string;
88
- }
89
- export interface WatchEventsRequest {
90
- runId: string;
91
- /** Only return events with sequence greater than this value. */
92
- afterSequence: number;
93
- /** Filter by event type. */
94
- eventTypeFilter: string;
95
- }
96
- export interface WatchEventsResponse {
97
- event: Event | undefined;
98
- }
99
- export interface ListInspectionEventsRequest {
100
- subjectKind: InspectionSubjectKind;
101
- subjectId: string;
102
- typeFilter: string;
103
- actorKind: InspectionActorKind;
104
- actorId: string;
105
- runId: string;
106
- processId: string;
107
- action: InspectionAction;
108
- outcome: InspectionOutcome;
109
- startTime: Date | undefined;
110
- endTime: Date | undefined;
111
- pageSize: number;
112
- pageToken: string;
113
- }
114
- export interface ListInspectionEventsResponse {
115
- events: InspectionEvent[];
116
- nextPageToken: string;
117
- }
118
- export interface WatchInspectionEventsRequest {
119
- subjectKind: InspectionSubjectKind;
120
- subjectId: string;
121
- typeFilter: string;
122
- actorKind: InspectionActorKind;
123
- actorId: string;
124
- runId: string;
125
- processId: string;
126
- action: InspectionAction;
127
- outcome: InspectionOutcome;
128
- startTime: Date | undefined;
129
- endTime: Date | undefined;
130
- afterSequence: number;
131
- }
132
- export interface WatchInspectionEventsResponse {
133
- event: InspectionEvent | undefined;
134
- }
135
- export interface WatchProcessOutputRequest {
136
- runId: string;
137
- processId: string;
138
- /** Only return output chunks with sequence greater than this value. */
139
- afterSequence: number;
140
- }
141
- export interface ProcessOutputChunk {
142
- sequence: number;
143
- data: Uint8Array;
144
- replay: boolean;
145
- }
146
- export interface WatchProcessOutputResponse {
147
- chunk: ProcessOutputChunk | undefined;
148
- }
149
- export interface ListProcessTypesRequest {
150
- pageSize: number;
151
- pageToken: string;
152
- }
153
- export interface ListProcessTypesResponse {
154
- processTypes: ProcessTypeSummary[];
155
- nextPageToken: string;
156
- }
157
- export declare const CreateRunRequest: MessageFns<CreateRunRequest>;
158
- export declare const CreateRunResponse: MessageFns<CreateRunResponse>;
159
- export declare const SendMessageRequest: MessageFns<SendMessageRequest>;
160
- export declare const SendMessageResponse: MessageFns<SendMessageResponse>;
161
- export declare const CancelRunRequest: MessageFns<CancelRunRequest>;
162
- export declare const CancelRunResponse: MessageFns<CancelRunResponse>;
163
- export declare const WaitRunRequest: MessageFns<WaitRunRequest>;
164
- export declare const WaitRunResponse: MessageFns<WaitRunResponse>;
165
- export declare const GetRunStatusRequest: MessageFns<GetRunStatusRequest>;
166
- export declare const GetRunStatusResponse: MessageFns<GetRunStatusResponse>;
167
- export declare const ListRunsRequest: MessageFns<ListRunsRequest>;
168
- export declare const ListRunsResponse: MessageFns<ListRunsResponse>;
169
- export declare const GetRunRequest: MessageFns<GetRunRequest>;
170
- export declare const GetRunResponse: MessageFns<GetRunResponse>;
171
- export declare const ListEventsRequest: MessageFns<ListEventsRequest>;
172
- export declare const ListEventsResponse: MessageFns<ListEventsResponse>;
173
- export declare const WatchEventsRequest: MessageFns<WatchEventsRequest>;
174
- export declare const WatchEventsResponse: MessageFns<WatchEventsResponse>;
175
- export declare const ListInspectionEventsRequest: MessageFns<ListInspectionEventsRequest>;
176
- export declare const ListInspectionEventsResponse: MessageFns<ListInspectionEventsResponse>;
177
- export declare const WatchInspectionEventsRequest: MessageFns<WatchInspectionEventsRequest>;
178
- export declare const WatchInspectionEventsResponse: MessageFns<WatchInspectionEventsResponse>;
179
- export declare const WatchProcessOutputRequest: MessageFns<WatchProcessOutputRequest>;
180
- export declare const ProcessOutputChunk: MessageFns<ProcessOutputChunk>;
181
- export declare const WatchProcessOutputResponse: MessageFns<WatchProcessOutputResponse>;
182
- export declare const ListProcessTypesRequest: MessageFns<ListProcessTypesRequest>;
183
- export declare const ListProcessTypesResponse: MessageFns<ListProcessTypesResponse>;
184
- /**
185
- * ATCService is the primary API surface for running agents through the
186
- * Agent Traffic Controller runtime.
187
- */
188
- export interface ATCService {
189
- /** CreateRun kicks off a new run by spawning a supervisor with a prompt. */
190
- CreateRun(request: CreateRunRequest): Promise<CreateRunResponse>;
191
- /** SendMessage sends a message to a running process's mailbox. */
192
- SendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
193
- /** CancelRun requests cancellation of a run. */
194
- CancelRun(request: CancelRunRequest): Promise<CancelRunResponse>;
195
- /** WaitRun streams status updates until the run reaches a terminal state. */
196
- WaitRun(request: WaitRunRequest): Observable<WaitRunResponse>;
197
- /** GetRunStatus returns the point-in-time status of a run. */
198
- GetRunStatus(request: GetRunStatusRequest): Promise<GetRunStatusResponse>;
199
- }
200
- export declare const ATCServiceServiceName = "weaveapi.atc.v1.ATCService";
201
- export declare class ATCServiceClientImpl implements ATCService {
202
- private readonly rpc;
203
- private readonly service;
204
- constructor(rpc: Rpc, opts?: {
205
- service?: string;
206
- });
207
- CreateRun(request: CreateRunRequest): Promise<CreateRunResponse>;
208
- SendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
209
- CancelRun(request: CancelRunRequest): Promise<CancelRunResponse>;
210
- WaitRun(request: WaitRunRequest): Observable<WaitRunResponse>;
211
- GetRunStatus(request: GetRunStatusRequest): Promise<GetRunStatusResponse>;
212
- }
213
- /**
214
- * ATCService is the primary API surface for running agents through the
215
- * Agent Traffic Controller runtime.
216
- */
217
- export type ATCServiceDefinition = typeof ATCServiceDefinition;
218
- export declare const ATCServiceDefinition: {
219
- readonly name: "ATCService";
220
- readonly fullName: "weaveapi.atc.v1.ATCService";
221
- readonly methods: {
222
- /** CreateRun kicks off a new run by spawning a supervisor with a prompt. */
223
- readonly createRun: {
224
- readonly name: "CreateRun";
225
- readonly requestType: typeof CreateRunRequest;
226
- readonly requestStream: false;
227
- readonly responseType: typeof CreateRunResponse;
228
- readonly responseStream: false;
229
- readonly options: {
230
- readonly _unknownFields: {
231
- readonly 578365826: readonly [Uint8Array];
232
- };
233
- };
234
- };
235
- /** SendMessage sends a message to a running process's mailbox. */
236
- readonly sendMessage: {
237
- readonly name: "SendMessage";
238
- readonly requestType: typeof SendMessageRequest;
239
- readonly requestStream: false;
240
- readonly responseType: typeof SendMessageResponse;
241
- readonly responseStream: false;
242
- readonly options: {
243
- readonly _unknownFields: {
244
- readonly 578365826: readonly [Uint8Array];
245
- };
246
- };
247
- };
248
- /** CancelRun requests cancellation of a run. */
249
- readonly cancelRun: {
250
- readonly name: "CancelRun";
251
- readonly requestType: typeof CancelRunRequest;
252
- readonly requestStream: false;
253
- readonly responseType: typeof CancelRunResponse;
254
- readonly responseStream: false;
255
- readonly options: {
256
- readonly _unknownFields: {
257
- readonly 578365826: readonly [Uint8Array];
258
- };
259
- };
260
- };
261
- /** WaitRun streams status updates until the run reaches a terminal state. */
262
- readonly waitRun: {
263
- readonly name: "WaitRun";
264
- readonly requestType: typeof WaitRunRequest;
265
- readonly requestStream: false;
266
- readonly responseType: typeof WaitRunResponse;
267
- readonly responseStream: true;
268
- readonly options: {
269
- readonly _unknownFields: {
270
- readonly 578365826: readonly [Uint8Array];
271
- };
272
- };
273
- };
274
- /** GetRunStatus returns the point-in-time status of a run. */
275
- readonly getRunStatus: {
276
- readonly name: "GetRunStatus";
277
- readonly requestType: typeof GetRunStatusRequest;
278
- readonly requestStream: false;
279
- readonly responseType: typeof GetRunStatusResponse;
280
- readonly responseStream: false;
281
- readonly options: {
282
- readonly _unknownFields: {
283
- readonly 578365826: readonly [Uint8Array];
284
- };
285
- };
286
- };
287
- };
288
- };
289
- /**
290
- * InspectionService provides observability and audit capabilities for
291
- * the ATC runtime.
292
- */
293
- export interface InspectionService {
294
- /** ListRuns lists runs with optional filters. */
295
- ListRuns(request: ListRunsRequest): Promise<ListRunsResponse>;
296
- /**
297
- * GetRun returns detailed information about a run including its
298
- * processes, artifacts, and status.
299
- */
300
- GetRun(request: GetRunRequest): Promise<GetRunResponse>;
301
- /** ListEvents queries the event log for a run. */
302
- ListEvents(request: ListEventsRequest): Promise<ListEventsResponse>;
303
- /** WatchEvents streams authorized events for a run after an optional cursor. */
304
- WatchEvents(request: WatchEventsRequest): Observable<WatchEventsResponse>;
305
- /** ListInspectionEvents queries tenant-scoped inspection events. */
306
- ListInspectionEvents(request: ListInspectionEventsRequest): Promise<ListInspectionEventsResponse>;
307
- /**
308
- * WatchInspectionEvents streams tenant-scoped inspection events after an
309
- * optional sequence cursor.
310
- */
311
- WatchInspectionEvents(request: WatchInspectionEventsRequest): Observable<WatchInspectionEventsResponse>;
312
- /**
313
- * WatchProcessOutput streams live subprocess output for one process after an
314
- * optional output chunk cursor.
315
- */
316
- WatchProcessOutput(request: WatchProcessOutputRequest): Observable<WatchProcessOutputResponse>;
317
- /** ListProcessTypes discovers registered process types. */
318
- ListProcessTypes(request: ListProcessTypesRequest): Promise<ListProcessTypesResponse>;
319
- }
320
- export declare const InspectionServiceServiceName = "weaveapi.atc.v1.InspectionService";
321
- export declare class InspectionServiceClientImpl implements InspectionService {
322
- private readonly rpc;
323
- private readonly service;
324
- constructor(rpc: Rpc, opts?: {
325
- service?: string;
326
- });
327
- ListRuns(request: ListRunsRequest): Promise<ListRunsResponse>;
328
- GetRun(request: GetRunRequest): Promise<GetRunResponse>;
329
- ListEvents(request: ListEventsRequest): Promise<ListEventsResponse>;
330
- WatchEvents(request: WatchEventsRequest): Observable<WatchEventsResponse>;
331
- ListInspectionEvents(request: ListInspectionEventsRequest): Promise<ListInspectionEventsResponse>;
332
- WatchInspectionEvents(request: WatchInspectionEventsRequest): Observable<WatchInspectionEventsResponse>;
333
- WatchProcessOutput(request: WatchProcessOutputRequest): Observable<WatchProcessOutputResponse>;
334
- ListProcessTypes(request: ListProcessTypesRequest): Promise<ListProcessTypesResponse>;
335
- }
336
- /**
337
- * InspectionService provides observability and audit capabilities for
338
- * the ATC runtime.
339
- */
340
- export type InspectionServiceDefinition = typeof InspectionServiceDefinition;
341
- export declare const InspectionServiceDefinition: {
342
- readonly name: "InspectionService";
343
- readonly fullName: "weaveapi.atc.v1.InspectionService";
344
- readonly methods: {
345
- /** ListRuns lists runs with optional filters. */
346
- readonly listRuns: {
347
- readonly name: "ListRuns";
348
- readonly requestType: typeof ListRunsRequest;
349
- readonly requestStream: false;
350
- readonly responseType: typeof ListRunsResponse;
351
- readonly responseStream: false;
352
- readonly options: {
353
- readonly _unknownFields: {
354
- readonly 578365826: readonly [Uint8Array];
355
- };
356
- };
357
- };
358
- /**
359
- * GetRun returns detailed information about a run including its
360
- * processes, artifacts, and status.
361
- */
362
- readonly getRun: {
363
- readonly name: "GetRun";
364
- readonly requestType: typeof GetRunRequest;
365
- readonly requestStream: false;
366
- readonly responseType: typeof GetRunResponse;
367
- readonly responseStream: false;
368
- readonly options: {
369
- readonly _unknownFields: {
370
- readonly 578365826: readonly [Uint8Array];
371
- };
372
- };
373
- };
374
- /** ListEvents queries the event log for a run. */
375
- readonly listEvents: {
376
- readonly name: "ListEvents";
377
- readonly requestType: typeof ListEventsRequest;
378
- readonly requestStream: false;
379
- readonly responseType: typeof ListEventsResponse;
380
- readonly responseStream: false;
381
- readonly options: {
382
- readonly _unknownFields: {
383
- readonly 578365826: readonly [Uint8Array];
384
- };
385
- };
386
- };
387
- /** WatchEvents streams authorized events for a run after an optional cursor. */
388
- readonly watchEvents: {
389
- readonly name: "WatchEvents";
390
- readonly requestType: typeof WatchEventsRequest;
391
- readonly requestStream: false;
392
- readonly responseType: typeof WatchEventsResponse;
393
- readonly responseStream: true;
394
- readonly options: {};
395
- };
396
- /** ListInspectionEvents queries tenant-scoped inspection events. */
397
- readonly listInspectionEvents: {
398
- readonly name: "ListInspectionEvents";
399
- readonly requestType: typeof ListInspectionEventsRequest;
400
- readonly requestStream: false;
401
- readonly responseType: typeof ListInspectionEventsResponse;
402
- readonly responseStream: false;
403
- readonly options: {
404
- readonly _unknownFields: {
405
- readonly 578365826: readonly [Uint8Array];
406
- };
407
- };
408
- };
409
- /**
410
- * WatchInspectionEvents streams tenant-scoped inspection events after an
411
- * optional sequence cursor.
412
- */
413
- readonly watchInspectionEvents: {
414
- readonly name: "WatchInspectionEvents";
415
- readonly requestType: typeof WatchInspectionEventsRequest;
416
- readonly requestStream: false;
417
- readonly responseType: typeof WatchInspectionEventsResponse;
418
- readonly responseStream: true;
419
- readonly options: {};
420
- };
421
- /**
422
- * WatchProcessOutput streams live subprocess output for one process after an
423
- * optional output chunk cursor.
424
- */
425
- readonly watchProcessOutput: {
426
- readonly name: "WatchProcessOutput";
427
- readonly requestType: typeof WatchProcessOutputRequest;
428
- readonly requestStream: false;
429
- readonly responseType: typeof WatchProcessOutputResponse;
430
- readonly responseStream: true;
431
- readonly options: {};
432
- };
433
- /** ListProcessTypes discovers registered process types. */
434
- readonly listProcessTypes: {
435
- readonly name: "ListProcessTypes";
436
- readonly requestType: typeof ListProcessTypesRequest;
437
- readonly requestStream: false;
438
- readonly responseType: typeof ListProcessTypesResponse;
439
- readonly responseStream: false;
440
- readonly options: {
441
- readonly _unknownFields: {
442
- readonly 578365826: readonly [Uint8Array];
443
- };
444
- };
445
- };
446
- };
447
- };
448
- interface Rpc {
449
- request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
450
- clientStreamingRequest(service: string, method: string, data: Observable<Uint8Array>): Promise<Uint8Array>;
451
- serverStreamingRequest(service: string, method: string, data: Uint8Array): Observable<Uint8Array>;
452
- bidirectionalStreamingRequest(service: string, method: string, data: Observable<Uint8Array>): Observable<Uint8Array>;
453
- }
454
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
455
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
456
- [K in keyof T]?: DeepPartial<T[K]>;
457
- } : Partial<T>;
458
- type KeysOfUnion<T> = T extends T ? keyof T : never;
459
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
460
- [K in keyof P]: Exact<P[K], I[K]>;
461
- } & {
462
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
463
- };
464
- export interface MessageFns<T> {
465
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
466
- decode(input: BinaryReader | Uint8Array, length?: number): T;
467
- fromJSON(object: any): T;
468
- toJSON(message: T): unknown;
469
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
470
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
471
- }
472
- export {};