@standards/schema 1.0.0-alpha.421 → 1.0.0-alpha.426
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/api/index.d.mts +72 -18
- package/dist/api/index.d.ts +72 -18
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/{exceptions-EheEZJ0K.d.ts → exceptions-B29yRRaG.d.ts} +7 -0
- package/dist/{exceptions-DtcTc7fk.d.mts → exceptions-RLmYnywT.d.mts} +7 -0
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-Ba3rZe7X.d.ts → index-DKdl7had.d.ts} +52 -44
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/record-operation-CMCTHaqH.js +2 -0
- package/dist/record-operation-GX6TNLz8.mjs +2 -0
- package/dist/{index-DY7cHmBV.d.mts → record-query-BY66cePE.d.mts} +16070 -16062
- package/dist/{utils-CzDInA43.d.ts → utils-CIqqP6hZ.d.ts} +1 -1
- package/dist/{utils-qZ-SCngX.d.mts → utils-hkE18pLQ.d.mts} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/validation/all.d.mts +1 -1
- package/dist/validation/all.d.ts +1 -1
- package/openapi.json +60 -0
- package/package.json +2 -2
- package/dist/record-operation-BxDtJz4E.js +0 -2
- package/dist/record-operation-Ds20ta2l.mjs +0 -2
package/dist/api/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../
|
|
3
|
-
import { TenantId } from "../utils-
|
|
4
|
-
import { ValidationError, ValidationErrorDetail } from "../exceptions-
|
|
2
|
+
import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionAnswer, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectBuilderLike, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../record-query-BY66cePE.mjs";
|
|
3
|
+
import { TenantId } from "../utils-hkE18pLQ.mjs";
|
|
4
|
+
import { ValidationError, ValidationErrorDetail } from "../exceptions-RLmYnywT.mjs";
|
|
5
5
|
import * as z$2 from "zod";
|
|
6
6
|
/**
|
|
7
7
|
* A timestamp on the wire: an ISO 8601 string (`Date#toISOString()`, UTC),
|
|
@@ -91,17 +91,50 @@ export interface OperationWireRequest {
|
|
|
91
91
|
headers: Record<string, string>;
|
|
92
92
|
uploads?: readonly UploadedPart[];
|
|
93
93
|
}
|
|
94
|
+
/** An actor's id: a UUID, so it never collides with `"system"`. */
|
|
95
|
+
export type ActorId = string;
|
|
96
|
+
/**
|
|
97
|
+
* Who an in-process call acts as, when the caller names it instead of
|
|
98
|
+
* letting the ambient context decide: an actor of the tenant, or the
|
|
99
|
+
* tenant's system actor (the platform acting as itself).
|
|
100
|
+
*/
|
|
101
|
+
export type OperationCaller = {
|
|
102
|
+
readonly actorId: ActorId;
|
|
103
|
+
} | {
|
|
104
|
+
readonly system: true;
|
|
105
|
+
};
|
|
106
|
+
/** `as(actor)`'s argument as the caller it names. */
|
|
107
|
+
export declare function callerOf(actor: ActorId | "system"): OperationCaller;
|
|
94
108
|
/**
|
|
95
109
|
* What runs operations in the caller's own process: the runtime implements
|
|
96
110
|
* it (`createOperationHost`), the client's in-process transport calls it.
|
|
97
|
-
* `execute`
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
111
|
+
* `execute` checks the operation's permissions itself and resolves to the
|
|
112
|
+
* answer as it goes on the wire (the output schema's encoding; a `bytes`
|
|
113
|
+
* operation's `BinaryResponse`). A refusal rejects with an
|
|
114
|
+
* {@link OperationRefused}.
|
|
115
|
+
*
|
|
116
|
+
* Without `caller`, the call acts as the actor the ambient context implies
|
|
117
|
+
* (the request's, the job's, the write's author), or as the system where no
|
|
118
|
+
* request, job or hook runs. With `caller`, it acts as that actor, in the
|
|
119
|
+
* ambient tenant (else the host's default one), the ambient actor recorded as
|
|
120
|
+
* the one who triggered it.
|
|
101
121
|
*/
|
|
102
122
|
export interface OperationHost {
|
|
103
|
-
execute(op: Operation, request: OperationWireRequest): Promise<unknown>;
|
|
123
|
+
execute(op: Operation, request: OperationWireRequest, caller?: OperationCaller): Promise<unknown>;
|
|
124
|
+
}
|
|
125
|
+
/** What a server registers: its host, and the object builders of the bundles it declares. */
|
|
126
|
+
export interface RegisteredOperationHost {
|
|
127
|
+
readonly host: OperationHost;
|
|
128
|
+
readonly objects: readonly ObjectBuilderLike[];
|
|
104
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Register this process's host, so the client's default instance calls it
|
|
132
|
+
* in process. Returns the function that unregisters it (on shutdown). A
|
|
133
|
+
* second registration replaces the first.
|
|
134
|
+
*/
|
|
135
|
+
export declare function registerOperationHost(host: OperationHost, objects?: readonly ObjectBuilderLike[]): () => void;
|
|
136
|
+
/** The host this process registered, if any. */
|
|
137
|
+
export declare function registeredOperationHost(): RegisteredOperationHost | undefined;
|
|
105
138
|
/**
|
|
106
139
|
* A refusal as the HTTP API answers it: its status and its JSON body (the
|
|
107
140
|
* `{ success: false, statusCode, message, code, … }` envelope, redacted as
|
|
@@ -1351,6 +1384,7 @@ export type DecisionListQuery = z$2.output<typeof decisionListQuery> & DecisionL
|
|
|
1351
1384
|
export declare const decisionAnswerInputSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
1352
1385
|
skipped: z$2.ZodBoolean;
|
|
1353
1386
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
1387
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
1354
1388
|
kind: z$2.ZodLiteral<"answers">;
|
|
1355
1389
|
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
1356
1390
|
approved: z$2.ZodBoolean;
|
|
@@ -1455,7 +1489,7 @@ export declare const decisionsOperations: {
|
|
|
1455
1489
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1456
1490
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1457
1491
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1458
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1492
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1459
1493
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1460
1494
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1461
1495
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1639,7 +1673,7 @@ export declare const decisionsOperations: {
|
|
|
1639
1673
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1640
1674
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1641
1675
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1642
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1676
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1643
1677
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1644
1678
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1645
1679
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1792,7 +1826,7 @@ export declare const decisionsOperations: {
|
|
|
1792
1826
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1793
1827
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1794
1828
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1795
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1829
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1796
1830
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1797
1831
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1798
1832
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1955,7 +1989,7 @@ export declare const decisionsOperations: {
|
|
|
1955
1989
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1956
1990
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1957
1991
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1958
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1992
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1959
1993
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1960
1994
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1961
1995
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2125,7 +2159,7 @@ export declare const decisionsOperations: {
|
|
|
2125
2159
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2126
2160
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2127
2161
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2128
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2162
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2129
2163
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2130
2164
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2131
2165
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2264,6 +2298,7 @@ export declare const decisionsOperations: {
|
|
|
2264
2298
|
answer: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2265
2299
|
skipped: z$2.ZodBoolean;
|
|
2266
2300
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
2301
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
2267
2302
|
kind: z$2.ZodLiteral<"answers">;
|
|
2268
2303
|
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2269
2304
|
approved: z$2.ZodBoolean;
|
|
@@ -2310,7 +2345,7 @@ export declare const decisionsOperations: {
|
|
|
2310
2345
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2311
2346
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2312
2347
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2313
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2348
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2314
2349
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2315
2350
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2316
2351
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2480,7 +2515,7 @@ export declare const decisionsOperations: {
|
|
|
2480
2515
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2481
2516
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2482
2517
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2483
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2518
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2484
2519
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2485
2520
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2486
2521
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2546,7 +2581,7 @@ export declare const decisionsOperations: {
|
|
|
2546
2581
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2547
2582
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2548
2583
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2549
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2584
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2550
2585
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2551
2586
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2552
2587
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2634,7 +2669,7 @@ export declare const decisionsOperations: {
|
|
|
2634
2669
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2635
2670
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2636
2671
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2637
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2672
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2638
2673
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2639
2674
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2640
2675
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -6168,7 +6203,12 @@ export declare const environmentEnvVarsOperations: {
|
|
|
6168
6203
|
envVarId: z$2.ZodString;
|
|
6169
6204
|
}, z$2.core.$strip>, OutputType<void>>>;
|
|
6170
6205
|
};
|
|
6171
|
-
/**
|
|
6206
|
+
/**
|
|
6207
|
+
* `GET /machines` (machines and links §6): what the viewer reads, cursor-paged.
|
|
6208
|
+
* `status=running` answers every running machine, unpaged; `status=stopped`
|
|
6209
|
+
* the others, paged, and only it takes `q`, a search of their titles. A host
|
|
6210
|
+
* with no machines answers 503 `CONFIGURATION_REQUIRED`.
|
|
6211
|
+
*/
|
|
6172
6212
|
export declare const listMachinesQuery: z$2.ZodObject<{
|
|
6173
6213
|
environmentId: z$2.ZodOptional<z$2.ZodGUID>;
|
|
6174
6214
|
kind: z$2.ZodOptional<z$2.ZodEnum<{
|
|
@@ -6176,6 +6216,11 @@ export declare const listMachinesQuery: z$2.ZodObject<{
|
|
|
6176
6216
|
conversation: "conversation";
|
|
6177
6217
|
run: "run";
|
|
6178
6218
|
}>>;
|
|
6219
|
+
status: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6220
|
+
running: "running";
|
|
6221
|
+
stopped: "stopped";
|
|
6222
|
+
}>>;
|
|
6223
|
+
q: z$2.ZodOptional<z$2.ZodString>;
|
|
6179
6224
|
cursor: z$2.ZodOptional<z$2.ZodString>;
|
|
6180
6225
|
}, z$2.core.$strict>;
|
|
6181
6226
|
/** `POST /links/:id/duration`: the link expires `durationMs` from now, at most `LINK_MAX_MS`. */
|
|
@@ -6202,6 +6247,11 @@ export declare const machinesOperations: {
|
|
|
6202
6247
|
conversation: "conversation";
|
|
6203
6248
|
run: "run";
|
|
6204
6249
|
}>>;
|
|
6250
|
+
status: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6251
|
+
running: "running";
|
|
6252
|
+
stopped: "stopped";
|
|
6253
|
+
}>>;
|
|
6254
|
+
q: z$2.ZodOptional<z$2.ZodString>;
|
|
6205
6255
|
cursor: z$2.ZodOptional<z$2.ZodString>;
|
|
6206
6256
|
}, z$2.core.$strict>;
|
|
6207
6257
|
readonly output: z$2.ZodObject<{
|
|
@@ -23175,6 +23225,7 @@ export declare const resolveApprovalBody: z$2.ZodObject<{
|
|
|
23175
23225
|
export declare const answerAgentRequestBody: z$2.ZodObject<{
|
|
23176
23226
|
skipped: z$2.ZodBoolean;
|
|
23177
23227
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
23228
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
23178
23229
|
}, z$2.core.$strict>;
|
|
23179
23230
|
/**
|
|
23180
23231
|
* Flipping a session's approval switch (D4's second level). Reading the
|
|
@@ -23480,6 +23531,7 @@ export declare const agentApprovalsOperations: {
|
|
|
23480
23531
|
readonly input: z$2.ZodObject<{
|
|
23481
23532
|
skipped: z$2.ZodBoolean;
|
|
23482
23533
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
23534
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
23483
23535
|
sessionId: z$2.ZodString;
|
|
23484
23536
|
requestId: z$2.ZodString;
|
|
23485
23537
|
}, z$2.core.$strict>;
|
|
@@ -24787,6 +24839,7 @@ export declare const recordsOperations: {
|
|
|
24787
24839
|
readonly STATE_GATE: "SCHEMA_STATE_GATE";
|
|
24788
24840
|
readonly ACTOR_CONTEXT_REQUIRED: "SCHEMA_ACTOR_CONTEXT_REQUIRED";
|
|
24789
24841
|
readonly ACTOR_REQUIRED: "ACTOR_CONTEXT_REQUIRED";
|
|
24842
|
+
readonly ACTOR_CONTEXT_LOST: "ACTOR_CONTEXT_LOST";
|
|
24790
24843
|
readonly TENANT_CONFIRMATION_MISMATCH: "SCHEMA_TENANT_CONFIRMATION_MISMATCH";
|
|
24791
24844
|
readonly SESSION_REQUIRED: "SCHEMA_SESSION_REQUIRED";
|
|
24792
24845
|
readonly API_KEY_OWNER_ROLE_REFUSED: "SCHEMA_API_KEY_OWNER_ROLE_REFUSED";
|
|
@@ -25180,6 +25233,7 @@ export declare const recordsOperations: {
|
|
|
25180
25233
|
readonly STATE_GATE: "SCHEMA_STATE_GATE";
|
|
25181
25234
|
readonly ACTOR_CONTEXT_REQUIRED: "SCHEMA_ACTOR_CONTEXT_REQUIRED";
|
|
25182
25235
|
readonly ACTOR_REQUIRED: "ACTOR_CONTEXT_REQUIRED";
|
|
25236
|
+
readonly ACTOR_CONTEXT_LOST: "ACTOR_CONTEXT_LOST";
|
|
25183
25237
|
readonly TENANT_CONFIRMATION_MISMATCH: "SCHEMA_TENANT_CONFIRMATION_MISMATCH";
|
|
25184
25238
|
readonly SESSION_REQUIRED: "SCHEMA_SESSION_REQUIRED";
|
|
25185
25239
|
readonly API_KEY_OWNER_ROLE_REFUSED: "SCHEMA_API_KEY_OWNER_ROLE_REFUSED";
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../index-
|
|
2
|
+
import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionAnswer, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectBuilderLike, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../index-DKdl7had.js";
|
|
3
3
|
import "../zod-locale.js";
|
|
4
|
-
import { TenantId } from "../utils-
|
|
5
|
-
import { ValidationError, ValidationErrorDetail } from "../exceptions-
|
|
4
|
+
import { TenantId } from "../utils-CIqqP6hZ.js";
|
|
5
|
+
import { ValidationError, ValidationErrorDetail } from "../exceptions-B29yRRaG.js";
|
|
6
6
|
import * as z$2 from "zod";
|
|
7
7
|
/**
|
|
8
8
|
* A timestamp on the wire: an ISO 8601 string (`Date#toISOString()`, UTC),
|
|
@@ -92,17 +92,50 @@ export interface OperationWireRequest {
|
|
|
92
92
|
headers: Record<string, string>;
|
|
93
93
|
uploads?: readonly UploadedPart[];
|
|
94
94
|
}
|
|
95
|
+
/** An actor's id: a UUID, so it never collides with `"system"`. */
|
|
96
|
+
export type ActorId = string;
|
|
97
|
+
/**
|
|
98
|
+
* Who an in-process call acts as, when the caller names it instead of
|
|
99
|
+
* letting the ambient context decide: an actor of the tenant, or the
|
|
100
|
+
* tenant's system actor (the platform acting as itself).
|
|
101
|
+
*/
|
|
102
|
+
export type OperationCaller = {
|
|
103
|
+
readonly actorId: ActorId;
|
|
104
|
+
} | {
|
|
105
|
+
readonly system: true;
|
|
106
|
+
};
|
|
107
|
+
/** `as(actor)`'s argument as the caller it names. */
|
|
108
|
+
export declare function callerOf(actor: ActorId | "system"): OperationCaller;
|
|
95
109
|
/**
|
|
96
110
|
* What runs operations in the caller's own process: the runtime implements
|
|
97
111
|
* it (`createOperationHost`), the client's in-process transport calls it.
|
|
98
|
-
* `execute`
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
112
|
+
* `execute` checks the operation's permissions itself and resolves to the
|
|
113
|
+
* answer as it goes on the wire (the output schema's encoding; a `bytes`
|
|
114
|
+
* operation's `BinaryResponse`). A refusal rejects with an
|
|
115
|
+
* {@link OperationRefused}.
|
|
116
|
+
*
|
|
117
|
+
* Without `caller`, the call acts as the actor the ambient context implies
|
|
118
|
+
* (the request's, the job's, the write's author), or as the system where no
|
|
119
|
+
* request, job or hook runs. With `caller`, it acts as that actor, in the
|
|
120
|
+
* ambient tenant (else the host's default one), the ambient actor recorded as
|
|
121
|
+
* the one who triggered it.
|
|
102
122
|
*/
|
|
103
123
|
export interface OperationHost {
|
|
104
|
-
execute(op: Operation, request: OperationWireRequest): Promise<unknown>;
|
|
124
|
+
execute(op: Operation, request: OperationWireRequest, caller?: OperationCaller): Promise<unknown>;
|
|
125
|
+
}
|
|
126
|
+
/** What a server registers: its host, and the object builders of the bundles it declares. */
|
|
127
|
+
export interface RegisteredOperationHost {
|
|
128
|
+
readonly host: OperationHost;
|
|
129
|
+
readonly objects: readonly ObjectBuilderLike[];
|
|
105
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Register this process's host, so the client's default instance calls it
|
|
133
|
+
* in process. Returns the function that unregisters it (on shutdown). A
|
|
134
|
+
* second registration replaces the first.
|
|
135
|
+
*/
|
|
136
|
+
export declare function registerOperationHost(host: OperationHost, objects?: readonly ObjectBuilderLike[]): () => void;
|
|
137
|
+
/** The host this process registered, if any. */
|
|
138
|
+
export declare function registeredOperationHost(): RegisteredOperationHost | undefined;
|
|
106
139
|
/**
|
|
107
140
|
* A refusal as the HTTP API answers it: its status and its JSON body (the
|
|
108
141
|
* `{ success: false, statusCode, message, code, … }` envelope, redacted as
|
|
@@ -1352,6 +1385,7 @@ export type DecisionListQuery = z$2.output<typeof decisionListQuery> & DecisionL
|
|
|
1352
1385
|
export declare const decisionAnswerInputSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
1353
1386
|
skipped: z$2.ZodBoolean;
|
|
1354
1387
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
1388
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
1355
1389
|
kind: z$2.ZodLiteral<"answers">;
|
|
1356
1390
|
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
1357
1391
|
approved: z$2.ZodBoolean;
|
|
@@ -1456,7 +1490,7 @@ export declare const decisionsOperations: {
|
|
|
1456
1490
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1457
1491
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1458
1492
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1459
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1493
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1460
1494
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1461
1495
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1462
1496
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1640,7 +1674,7 @@ export declare const decisionsOperations: {
|
|
|
1640
1674
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1641
1675
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1642
1676
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1643
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1677
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1644
1678
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1645
1679
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1646
1680
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1793,7 +1827,7 @@ export declare const decisionsOperations: {
|
|
|
1793
1827
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1794
1828
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1795
1829
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1796
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1830
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1797
1831
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1798
1832
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1799
1833
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1956,7 +1990,7 @@ export declare const decisionsOperations: {
|
|
|
1956
1990
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
1957
1991
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
1958
1992
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
1959
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
1993
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
1960
1994
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
1961
1995
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
1962
1996
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2126,7 +2160,7 @@ export declare const decisionsOperations: {
|
|
|
2126
2160
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2127
2161
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2128
2162
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2129
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2163
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2130
2164
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2131
2165
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2132
2166
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2265,6 +2299,7 @@ export declare const decisionsOperations: {
|
|
|
2265
2299
|
answer: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2266
2300
|
skipped: z$2.ZodBoolean;
|
|
2267
2301
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
2302
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
2268
2303
|
kind: z$2.ZodLiteral<"answers">;
|
|
2269
2304
|
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2270
2305
|
approved: z$2.ZodBoolean;
|
|
@@ -2311,7 +2346,7 @@ export declare const decisionsOperations: {
|
|
|
2311
2346
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2312
2347
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2313
2348
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2314
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2349
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2315
2350
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2316
2351
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2317
2352
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2481,7 +2516,7 @@ export declare const decisionsOperations: {
|
|
|
2481
2516
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2482
2517
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2483
2518
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2484
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2519
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2485
2520
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2486
2521
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2487
2522
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2547,7 +2582,7 @@ export declare const decisionsOperations: {
|
|
|
2547
2582
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2548
2583
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2549
2584
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2550
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2585
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2551
2586
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2552
2587
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2553
2588
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2635,7 +2670,7 @@ export declare const decisionsOperations: {
|
|
|
2635
2670
|
why: z$2.ZodOptional<z$2.ZodString>;
|
|
2636
2671
|
change: z$2.ZodOptional<z$2.ZodString>;
|
|
2637
2672
|
questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
|
|
2638
|
-
answer: z$2.ZodOptional<z$2.ZodType<
|
|
2673
|
+
answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
|
|
2639
2674
|
answeredBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2640
2675
|
effect: z$2.ZodOptional<z$2.ZodString>;
|
|
2641
2676
|
links: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -6169,7 +6204,12 @@ export declare const environmentEnvVarsOperations: {
|
|
|
6169
6204
|
envVarId: z$2.ZodString;
|
|
6170
6205
|
}, z$2.core.$strip>, OutputType<void>>>;
|
|
6171
6206
|
};
|
|
6172
|
-
/**
|
|
6207
|
+
/**
|
|
6208
|
+
* `GET /machines` (machines and links §6): what the viewer reads, cursor-paged.
|
|
6209
|
+
* `status=running` answers every running machine, unpaged; `status=stopped`
|
|
6210
|
+
* the others, paged, and only it takes `q`, a search of their titles. A host
|
|
6211
|
+
* with no machines answers 503 `CONFIGURATION_REQUIRED`.
|
|
6212
|
+
*/
|
|
6173
6213
|
export declare const listMachinesQuery: z$2.ZodObject<{
|
|
6174
6214
|
environmentId: z$2.ZodOptional<z$2.ZodGUID>;
|
|
6175
6215
|
kind: z$2.ZodOptional<z$2.ZodEnum<{
|
|
@@ -6177,6 +6217,11 @@ export declare const listMachinesQuery: z$2.ZodObject<{
|
|
|
6177
6217
|
conversation: "conversation";
|
|
6178
6218
|
run: "run";
|
|
6179
6219
|
}>>;
|
|
6220
|
+
status: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6221
|
+
running: "running";
|
|
6222
|
+
stopped: "stopped";
|
|
6223
|
+
}>>;
|
|
6224
|
+
q: z$2.ZodOptional<z$2.ZodString>;
|
|
6180
6225
|
cursor: z$2.ZodOptional<z$2.ZodString>;
|
|
6181
6226
|
}, z$2.core.$strict>;
|
|
6182
6227
|
/** `POST /links/:id/duration`: the link expires `durationMs` from now, at most `LINK_MAX_MS`. */
|
|
@@ -6203,6 +6248,11 @@ export declare const machinesOperations: {
|
|
|
6203
6248
|
conversation: "conversation";
|
|
6204
6249
|
run: "run";
|
|
6205
6250
|
}>>;
|
|
6251
|
+
status: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6252
|
+
running: "running";
|
|
6253
|
+
stopped: "stopped";
|
|
6254
|
+
}>>;
|
|
6255
|
+
q: z$2.ZodOptional<z$2.ZodString>;
|
|
6206
6256
|
cursor: z$2.ZodOptional<z$2.ZodString>;
|
|
6207
6257
|
}, z$2.core.$strict>;
|
|
6208
6258
|
readonly output: z$2.ZodObject<{
|
|
@@ -23176,6 +23226,7 @@ export declare const resolveApprovalBody: z$2.ZodObject<{
|
|
|
23176
23226
|
export declare const answerAgentRequestBody: z$2.ZodObject<{
|
|
23177
23227
|
skipped: z$2.ZodBoolean;
|
|
23178
23228
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
23229
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
23179
23230
|
}, z$2.core.$strict>;
|
|
23180
23231
|
/**
|
|
23181
23232
|
* Flipping a session's approval switch (D4's second level). Reading the
|
|
@@ -23481,6 +23532,7 @@ export declare const agentApprovalsOperations: {
|
|
|
23481
23532
|
readonly input: z$2.ZodObject<{
|
|
23482
23533
|
skipped: z$2.ZodBoolean;
|
|
23483
23534
|
answers: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodString, z$2.ZodArray<z$2.ZodString>]>>;
|
|
23535
|
+
notes: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodRecord<z$2.ZodString, z$2.ZodString>>>;
|
|
23484
23536
|
sessionId: z$2.ZodString;
|
|
23485
23537
|
requestId: z$2.ZodString;
|
|
23486
23538
|
}, z$2.core.$strict>;
|
|
@@ -24788,6 +24840,7 @@ export declare const recordsOperations: {
|
|
|
24788
24840
|
readonly STATE_GATE: "SCHEMA_STATE_GATE";
|
|
24789
24841
|
readonly ACTOR_CONTEXT_REQUIRED: "SCHEMA_ACTOR_CONTEXT_REQUIRED";
|
|
24790
24842
|
readonly ACTOR_REQUIRED: "ACTOR_CONTEXT_REQUIRED";
|
|
24843
|
+
readonly ACTOR_CONTEXT_LOST: "ACTOR_CONTEXT_LOST";
|
|
24791
24844
|
readonly TENANT_CONFIRMATION_MISMATCH: "SCHEMA_TENANT_CONFIRMATION_MISMATCH";
|
|
24792
24845
|
readonly SESSION_REQUIRED: "SCHEMA_SESSION_REQUIRED";
|
|
24793
24846
|
readonly API_KEY_OWNER_ROLE_REFUSED: "SCHEMA_API_KEY_OWNER_ROLE_REFUSED";
|
|
@@ -25181,6 +25234,7 @@ export declare const recordsOperations: {
|
|
|
25181
25234
|
readonly STATE_GATE: "SCHEMA_STATE_GATE";
|
|
25182
25235
|
readonly ACTOR_CONTEXT_REQUIRED: "SCHEMA_ACTOR_CONTEXT_REQUIRED";
|
|
25183
25236
|
readonly ACTOR_REQUIRED: "ACTOR_CONTEXT_REQUIRED";
|
|
25237
|
+
readonly ACTOR_CONTEXT_LOST: "ACTOR_CONTEXT_LOST";
|
|
25184
25238
|
readonly TENANT_CONFIRMATION_MISMATCH: "SCHEMA_TENANT_CONFIRMATION_MISMATCH";
|
|
25185
25239
|
readonly SESSION_REQUIRED: "SCHEMA_SESSION_REQUIRED";
|
|
25186
25240
|
readonly API_KEY_OWNER_ROLE_REFUSED: "SCHEMA_API_KEY_OWNER_ROLE_REFUSED";
|