@labelbox/recursion-sdk 0.0.161 → 0.0.162
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/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +26 -6
- package/dist/generated/sdk.gen.js +50 -10
- package/dist/generated/types.gen.d.ts +167 -19
- package/dist/reference/resources-reference.generated.js +1 -0
- package/dist/reference/sdk-reference.generated.js +389 -28
- package/package.json +1 -1
|
@@ -79,6 +79,29 @@ export type AdminStatsDto = {
|
|
|
79
79
|
runs: number;
|
|
80
80
|
}>;
|
|
81
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Agent-service transcript events, ordered by sequence ascending.
|
|
84
|
+
*/
|
|
85
|
+
export type AgentRunEventListDto = Array<{
|
|
86
|
+
/**
|
|
87
|
+
* Monotonically increasing sequence number assigned by the agent-service.
|
|
88
|
+
*/
|
|
89
|
+
sequence: number;
|
|
90
|
+
/**
|
|
91
|
+
* Category of the event: lifecycle markers (started, launched, done, error), stdio (stdout, stderr), structured event payloads (event), agent observations (observation), and setup/snapshot phases.
|
|
92
|
+
*/
|
|
93
|
+
event_type: 'started' | 'stdout' | 'stderr' | 'event' | 'observation' | 'process_exited' | 'snapshotting' | 'launched' | 'setup_started' | 'setup_completed' | 'input_delivered' | 'done' | 'error';
|
|
94
|
+
/**
|
|
95
|
+
* Payload of the event; shape varies by event_type.
|
|
96
|
+
*/
|
|
97
|
+
data: {
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Timestamp when the agent-service emitted the event (ISO-8601, UTC).
|
|
102
|
+
*/
|
|
103
|
+
created_at: string;
|
|
104
|
+
}>;
|
|
82
105
|
/**
|
|
83
106
|
* Skill detail: catalog metadata plus a signed URL for the current SKILL.md bundle contents.
|
|
84
107
|
*/
|
|
@@ -7131,6 +7154,38 @@ export type ListWorkspaceEntriesResponseDto = {
|
|
|
7131
7154
|
*/
|
|
7132
7155
|
directoryTruncated: boolean;
|
|
7133
7156
|
};
|
|
7157
|
+
/**
|
|
7158
|
+
* Live transcript events together with the generation token of the run they came from.
|
|
7159
|
+
*/
|
|
7160
|
+
export type LiveTranscriptEnvelopeDto = {
|
|
7161
|
+
/**
|
|
7162
|
+
* Live transcript events, ordered by sequence ascending.
|
|
7163
|
+
*/
|
|
7164
|
+
events: Array<{
|
|
7165
|
+
/**
|
|
7166
|
+
* Monotonically increasing sequence number assigned by the agent-service.
|
|
7167
|
+
*/
|
|
7168
|
+
sequence: number;
|
|
7169
|
+
/**
|
|
7170
|
+
* Category of the event: lifecycle markers (started, launched, done, error), stdio (stdout, stderr), structured event payloads (event), agent observations (observation), and setup/snapshot phases.
|
|
7171
|
+
*/
|
|
7172
|
+
event_type: 'started' | 'stdout' | 'stderr' | 'event' | 'observation' | 'process_exited' | 'snapshotting' | 'launched' | 'setup_started' | 'setup_completed' | 'input_delivered' | 'done' | 'error';
|
|
7173
|
+
/**
|
|
7174
|
+
* Payload of the event; shape varies by event_type.
|
|
7175
|
+
*/
|
|
7176
|
+
data: {
|
|
7177
|
+
[key: string]: unknown;
|
|
7178
|
+
};
|
|
7179
|
+
/**
|
|
7180
|
+
* Timestamp when the agent-service emitted the event (ISO-8601, UTC).
|
|
7181
|
+
*/
|
|
7182
|
+
created_at: string;
|
|
7183
|
+
}>;
|
|
7184
|
+
/**
|
|
7185
|
+
* Opaque token identifying the run the events came from. It changes when the run is resubmitted and sequences restart, so a client holding an after cursor should discard what it holds and re-read; null while the job has no run yet.
|
|
7186
|
+
*/
|
|
7187
|
+
generation: string | null;
|
|
7188
|
+
};
|
|
7134
7189
|
/**
|
|
7135
7190
|
* Optional request body for locking a problem version.
|
|
7136
7191
|
*/
|
|
@@ -17546,6 +17601,10 @@ export type RolloutTraceResponseDto = {
|
|
|
17546
17601
|
* True when the event stream was trimmed to the most recent window.
|
|
17547
17602
|
*/
|
|
17548
17603
|
truncated: boolean;
|
|
17604
|
+
/**
|
|
17605
|
+
* Opaque token identifying the run the events came from. It changes when the run is resubmitted and sequences restart, so a client holding an after cursor should discard what it holds and re-read; null while the job has no run yet.
|
|
17606
|
+
*/
|
|
17607
|
+
generation?: string | null;
|
|
17549
17608
|
};
|
|
17550
17609
|
/**
|
|
17551
17610
|
* Array of rubrics.
|
|
@@ -18164,10 +18223,6 @@ export type RunConfigProbeRunDto = {
|
|
|
18164
18223
|
*/
|
|
18165
18224
|
runAt: string;
|
|
18166
18225
|
} | null;
|
|
18167
|
-
/**
|
|
18168
|
-
* JSON-encoded array of agent-service events observed so far while the probe is in flight. Null when no live events are available or the probe is terminal.
|
|
18169
|
-
*/
|
|
18170
|
-
liveTranscript: string | null;
|
|
18171
18226
|
/**
|
|
18172
18227
|
* Timestamp when the probe-run row was created (ISO-8601, UTC).
|
|
18173
18228
|
*/
|
|
@@ -18234,10 +18289,6 @@ export type RunConfigProbeRunListDto = Array<{
|
|
|
18234
18289
|
*/
|
|
18235
18290
|
runAt: string;
|
|
18236
18291
|
} | null;
|
|
18237
|
-
/**
|
|
18238
|
-
* JSON-encoded array of agent-service events observed so far while the probe is in flight. Null when no live events are available or the probe is terminal.
|
|
18239
|
-
*/
|
|
18240
|
-
liveTranscript: string | null;
|
|
18241
18292
|
/**
|
|
18242
18293
|
* Timestamp when the probe-run row was created (ISO-8601, UTC).
|
|
18243
18294
|
*/
|
|
@@ -31729,7 +31780,16 @@ export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveData =
|
|
|
31729
31780
|
*/
|
|
31730
31781
|
qaJobId: string;
|
|
31731
31782
|
};
|
|
31732
|
-
query?:
|
|
31783
|
+
query?: {
|
|
31784
|
+
/**
|
|
31785
|
+
* Return only events whose sequence is greater than this value. Omit to read the whole transcript.
|
|
31786
|
+
*/
|
|
31787
|
+
after?: string;
|
|
31788
|
+
/**
|
|
31789
|
+
* When true, wrap the events in an object that also carries the generation token of the run they came from. Omit for the bare event array.
|
|
31790
|
+
*/
|
|
31791
|
+
envelope?: 'true' | 'false';
|
|
31792
|
+
};
|
|
31733
31793
|
url: '/v1/environments/{environmentId}/qa-jobs/{qaJobId}/transcript/live';
|
|
31734
31794
|
};
|
|
31735
31795
|
export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors = {
|
|
@@ -31761,7 +31821,7 @@ export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors
|
|
|
31761
31821
|
export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveError = GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors[keyof GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors];
|
|
31762
31822
|
export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveResponses = {
|
|
31763
31823
|
/**
|
|
31764
|
-
* Live transcript events as a JSON-encoded array
|
|
31824
|
+
* Live transcript events as a JSON-encoded array, or a JSON-encoded object with the events and the run generation when the envelope flag is set
|
|
31765
31825
|
*/
|
|
31766
31826
|
200: string;
|
|
31767
31827
|
};
|
|
@@ -35210,7 +35270,16 @@ export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdEventLogData = {
|
|
|
35210
35270
|
*/
|
|
35211
35271
|
jobV2Id: string;
|
|
35212
35272
|
};
|
|
35213
|
-
query?:
|
|
35273
|
+
query?: {
|
|
35274
|
+
/**
|
|
35275
|
+
* Return only events whose sequence is greater than this value. Omit to read the whole transcript.
|
|
35276
|
+
*/
|
|
35277
|
+
after?: string;
|
|
35278
|
+
/**
|
|
35279
|
+
* When true, wrap the events in an object that also carries the generation token of the run they came from. Omit for the bare event array.
|
|
35280
|
+
*/
|
|
35281
|
+
envelope?: 'true' | 'false';
|
|
35282
|
+
};
|
|
35214
35283
|
url: '/v1/organizations/{organizationId}/jobs-v2/{jobV2Id}/event-log';
|
|
35215
35284
|
};
|
|
35216
35285
|
export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdEventLogErrors = {
|
|
@@ -35361,7 +35430,16 @@ export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdRolloutsByRolloutRu
|
|
|
35361
35430
|
*/
|
|
35362
35431
|
rolloutRunId: string;
|
|
35363
35432
|
};
|
|
35364
|
-
query?:
|
|
35433
|
+
query?: {
|
|
35434
|
+
/**
|
|
35435
|
+
* Return only events whose sequence is greater than this value. Omit to read the whole transcript.
|
|
35436
|
+
*/
|
|
35437
|
+
after?: string;
|
|
35438
|
+
/**
|
|
35439
|
+
* When true, wrap the events in an object that also carries the generation token of the run they came from. Omit for the bare event array.
|
|
35440
|
+
*/
|
|
35441
|
+
envelope?: 'true' | 'false';
|
|
35442
|
+
};
|
|
35365
35443
|
url: '/v1/organizations/{organizationId}/jobs-v2/{jobV2Id}/rollouts/{rolloutRunId}/events';
|
|
35366
35444
|
};
|
|
35367
35445
|
export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdRolloutsByRolloutRunIdEventsErrors = {
|
|
@@ -36917,7 +36995,16 @@ export type GetV1ProblemRunsByProblemRunIdTranscriptLiveData = {
|
|
|
36917
36995
|
*/
|
|
36918
36996
|
problemRunId: string;
|
|
36919
36997
|
};
|
|
36920
|
-
query?:
|
|
36998
|
+
query?: {
|
|
36999
|
+
/**
|
|
37000
|
+
* Return only events whose sequence is greater than this value. Omit to read the whole transcript.
|
|
37001
|
+
*/
|
|
37002
|
+
after?: string;
|
|
37003
|
+
/**
|
|
37004
|
+
* When true, wrap the events in an object that also carries the generation token of the run they came from. Omit for the bare event array.
|
|
37005
|
+
*/
|
|
37006
|
+
envelope?: 'true' | 'false';
|
|
37007
|
+
};
|
|
36921
37008
|
url: '/v1/problem-runs/{problemRunId}/transcript/live';
|
|
36922
37009
|
};
|
|
36923
37010
|
export type GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors = {
|
|
@@ -36949,11 +37036,9 @@ export type GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors = {
|
|
|
36949
37036
|
export type GetV1ProblemRunsByProblemRunIdTranscriptLiveError = GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors[keyof GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors];
|
|
36950
37037
|
export type GetV1ProblemRunsByProblemRunIdTranscriptLiveResponses = {
|
|
36951
37038
|
/**
|
|
36952
|
-
* Live transcript events as a JSON array
|
|
37039
|
+
* Live transcript events as a JSON array, or wrapped with the run generation when the envelope flag is set
|
|
36953
37040
|
*/
|
|
36954
|
-
200:
|
|
36955
|
-
[key: string]: unknown;
|
|
36956
|
-
}>;
|
|
37041
|
+
200: AgentRunEventListDto | LiveTranscriptEnvelopeDto;
|
|
36957
37042
|
};
|
|
36958
37043
|
export type GetV1ProblemRunsByProblemRunIdTranscriptLiveResponse = GetV1ProblemRunsByProblemRunIdTranscriptLiveResponses[keyof GetV1ProblemRunsByProblemRunIdTranscriptLiveResponses];
|
|
36959
37044
|
export type GetV1ProblemRunsByProblemRunIdWorkspaceEntriesData = {
|
|
@@ -38334,6 +38419,60 @@ export type PostV1RunConfigProbeRunsByRunConfigProbeRunIdCancelResponses = {
|
|
|
38334
38419
|
204: void;
|
|
38335
38420
|
};
|
|
38336
38421
|
export type PostV1RunConfigProbeRunsByRunConfigProbeRunIdCancelResponse = PostV1RunConfigProbeRunsByRunConfigProbeRunIdCancelResponses[keyof PostV1RunConfigProbeRunsByRunConfigProbeRunIdCancelResponses];
|
|
38422
|
+
export type GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveData = {
|
|
38423
|
+
body?: never;
|
|
38424
|
+
path: {
|
|
38425
|
+
/**
|
|
38426
|
+
* Stable probe-run identifier (UUID). Probe runs validate a run-config version before locking.
|
|
38427
|
+
*/
|
|
38428
|
+
runConfigProbeRunId: string;
|
|
38429
|
+
};
|
|
38430
|
+
query?: {
|
|
38431
|
+
/**
|
|
38432
|
+
* Return only events whose sequence is greater than this value. Omit to read the whole transcript.
|
|
38433
|
+
*/
|
|
38434
|
+
after?: string;
|
|
38435
|
+
/**
|
|
38436
|
+
* When true, wrap the events in an object that also carries the generation token of the run they came from. Omit for the bare event array.
|
|
38437
|
+
*/
|
|
38438
|
+
envelope?: 'true' | 'false';
|
|
38439
|
+
};
|
|
38440
|
+
url: '/v1/run-config-probe-runs/{runConfigProbeRunId}/transcript/live';
|
|
38441
|
+
};
|
|
38442
|
+
export type GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveErrors = {
|
|
38443
|
+
/**
|
|
38444
|
+
* Request body, path parameter, or query parameter failed schema validation. The `message` field carries the Zod field-error map.
|
|
38445
|
+
*/
|
|
38446
|
+
400: ApiErrorResponse;
|
|
38447
|
+
/**
|
|
38448
|
+
* Missing, malformed, or unknown `X-User-External-Id` header (when supplied for an end-user call).
|
|
38449
|
+
*/
|
|
38450
|
+
401: ApiErrorResponse | TargetApiErrorAuthHeaderMissing | TargetApiErrorOrgHeaderMissing;
|
|
38451
|
+
/**
|
|
38452
|
+
* Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
|
|
38453
|
+
*/
|
|
38454
|
+
403: ApiErrorResponse;
|
|
38455
|
+
/**
|
|
38456
|
+
* Probe-run not found or not in flight
|
|
38457
|
+
*/
|
|
38458
|
+
404: unknown;
|
|
38459
|
+
/**
|
|
38460
|
+
* Rate limit exceeded for the caller (per-user, per-environment, or per-IP tracker depending on auth context).
|
|
38461
|
+
*/
|
|
38462
|
+
429: ApiErrorResponse;
|
|
38463
|
+
/**
|
|
38464
|
+
* Unexpected server error. The response body is the generic `{ statusCode, message }` shape for an unhandled error, or the target error envelope `{ error: { code, message } }` for a framework-owned invariant violation.
|
|
38465
|
+
*/
|
|
38466
|
+
500: ApiErrorResponse | TargetApiErrorInvariantViolation;
|
|
38467
|
+
};
|
|
38468
|
+
export type GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveError = GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveErrors[keyof GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveErrors];
|
|
38469
|
+
export type GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveResponses = {
|
|
38470
|
+
/**
|
|
38471
|
+
* Live transcript events, or wrapped with the run generation when the envelope flag is set
|
|
38472
|
+
*/
|
|
38473
|
+
200: AgentRunEventListDto | LiveTranscriptEnvelopeDto;
|
|
38474
|
+
};
|
|
38475
|
+
export type GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveResponse = GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveResponses[keyof GetV1RunConfigProbeRunsByRunConfigProbeRunIdTranscriptLiveResponses];
|
|
38337
38476
|
export type DeleteV1RunConfigVersionsByRunConfigVersionIdData = {
|
|
38338
38477
|
body?: never;
|
|
38339
38478
|
path: {
|
|
@@ -40667,7 +40806,16 @@ export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTran
|
|
|
40667
40806
|
*/
|
|
40668
40807
|
synthesizerRunId: string;
|
|
40669
40808
|
};
|
|
40670
|
-
query?:
|
|
40809
|
+
query?: {
|
|
40810
|
+
/**
|
|
40811
|
+
* Return only events whose sequence is greater than this value. Omit to read the whole transcript.
|
|
40812
|
+
*/
|
|
40813
|
+
after?: string;
|
|
40814
|
+
/**
|
|
40815
|
+
* When true, wrap the events in an object that also carries the generation token of the run they came from. Omit for the bare event array.
|
|
40816
|
+
*/
|
|
40817
|
+
envelope?: 'true' | 'false';
|
|
40818
|
+
};
|
|
40671
40819
|
url: '/v1/versions/{problemVersionId}/synthesizer-runs/{synthesizerRunId}/transcript/live';
|
|
40672
40820
|
};
|
|
40673
40821
|
export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveErrors = {
|
|
@@ -40699,7 +40847,7 @@ export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTran
|
|
|
40699
40847
|
export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveError = GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveErrors[keyof GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveErrors];
|
|
40700
40848
|
export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveResponses = {
|
|
40701
40849
|
/**
|
|
40702
|
-
* Live transcript events as a JSON-encoded array
|
|
40850
|
+
* Live transcript events as a JSON-encoded array, or a JSON-encoded object with the events and the run generation when the envelope flag is set
|
|
40703
40851
|
*/
|
|
40704
40852
|
200: string;
|
|
40705
40853
|
};
|
|
@@ -6589,6 +6589,7 @@ export const RESOURCE_REFERENCE = {
|
|
|
6589
6589
|
'discardRunConfigVersion',
|
|
6590
6590
|
'discoverMcpToolsForRunConfigVersion',
|
|
6591
6591
|
'getInheritedRunConfigDefaultForEnvironment',
|
|
6592
|
+
'getLiveRunConfigProbeRunTranscript',
|
|
6592
6593
|
'getRunConfig',
|
|
6593
6594
|
'getRunConfigProbeRun',
|
|
6594
6595
|
'getRunConfigVersion',
|