@labelbox/recursion-sdk 0.0.160 → 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.
@@ -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
  */
@@ -4850,6 +4873,10 @@ export type EvaluationDetailResponseDto = {
4850
4873
  * Stable evaluation identifier (UUID). An evaluation is a multi-problem comparison run.
4851
4874
  */
4852
4875
  id: string;
4876
+ /**
4877
+ * Which evaluation shape this is. Defaults to solve-and-grade for pre-kind records.
4878
+ */
4879
+ kind?: 'solve_and_grade' | 'grade_only';
4853
4880
  /**
4854
4881
  * Human-readable display name of the evaluation.
4855
4882
  */
@@ -5249,6 +5276,10 @@ export type EvaluationPageResponseDto = {
5249
5276
  * Stable evaluation identifier (UUID). An evaluation is a multi-problem comparison run.
5250
5277
  */
5251
5278
  id: string;
5279
+ /**
5280
+ * Which evaluation shape this is. Defaults to solve-and-grade for pre-kind records.
5281
+ */
5282
+ kind?: 'solve_and_grade' | 'grade_only';
5252
5283
  /**
5253
5284
  * Human-readable display name of the evaluation.
5254
5285
  */
@@ -7123,6 +7154,38 @@ export type ListWorkspaceEntriesResponseDto = {
7123
7154
  */
7124
7155
  directoryTruncated: boolean;
7125
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
+ };
7126
7189
  /**
7127
7190
  * Optional request body for locking a problem version.
7128
7191
  */
@@ -17538,6 +17601,10 @@ export type RolloutTraceResponseDto = {
17538
17601
  * True when the event stream was trimmed to the most recent window.
17539
17602
  */
17540
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;
17541
17608
  };
17542
17609
  /**
17543
17610
  * Array of rubrics.
@@ -18156,10 +18223,6 @@ export type RunConfigProbeRunDto = {
18156
18223
  */
18157
18224
  runAt: string;
18158
18225
  } | null;
18159
- /**
18160
- * 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.
18161
- */
18162
- liveTranscript: string | null;
18163
18226
  /**
18164
18227
  * Timestamp when the probe-run row was created (ISO-8601, UTC).
18165
18228
  */
@@ -18226,10 +18289,6 @@ export type RunConfigProbeRunListDto = Array<{
18226
18289
  */
18227
18290
  runAt: string;
18228
18291
  } | null;
18229
- /**
18230
- * 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.
18231
- */
18232
- liveTranscript: string | null;
18233
18292
  /**
18234
18293
  * Timestamp when the probe-run row was created (ISO-8601, UTC).
18235
18294
  */
@@ -31721,7 +31780,16 @@ export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveData =
31721
31780
  */
31722
31781
  qaJobId: string;
31723
31782
  };
31724
- query?: never;
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
+ };
31725
31793
  url: '/v1/environments/{environmentId}/qa-jobs/{qaJobId}/transcript/live';
31726
31794
  };
31727
31795
  export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors = {
@@ -31753,7 +31821,7 @@ export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors
31753
31821
  export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveError = GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors[keyof GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveErrors];
31754
31822
  export type GetV1EnvironmentsByEnvironmentIdQaJobsByQaJobIdTranscriptLiveResponses = {
31755
31823
  /**
31756
- * 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
31757
31825
  */
31758
31826
  200: string;
31759
31827
  };
@@ -35202,7 +35270,16 @@ export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdEventLogData = {
35202
35270
  */
35203
35271
  jobV2Id: string;
35204
35272
  };
35205
- query?: never;
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
+ };
35206
35283
  url: '/v1/organizations/{organizationId}/jobs-v2/{jobV2Id}/event-log';
35207
35284
  };
35208
35285
  export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdEventLogErrors = {
@@ -35353,7 +35430,16 @@ export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdRolloutsByRolloutRu
35353
35430
  */
35354
35431
  rolloutRunId: string;
35355
35432
  };
35356
- query?: never;
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
+ };
35357
35443
  url: '/v1/organizations/{organizationId}/jobs-v2/{jobV2Id}/rollouts/{rolloutRunId}/events';
35358
35444
  };
35359
35445
  export type GetV1OrganizationsByOrganizationIdJobsV2ByJobV2IdRolloutsByRolloutRunIdEventsErrors = {
@@ -36909,7 +36995,16 @@ export type GetV1ProblemRunsByProblemRunIdTranscriptLiveData = {
36909
36995
  */
36910
36996
  problemRunId: string;
36911
36997
  };
36912
- query?: never;
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
+ };
36913
37008
  url: '/v1/problem-runs/{problemRunId}/transcript/live';
36914
37009
  };
36915
37010
  export type GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors = {
@@ -36941,11 +37036,9 @@ export type GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors = {
36941
37036
  export type GetV1ProblemRunsByProblemRunIdTranscriptLiveError = GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors[keyof GetV1ProblemRunsByProblemRunIdTranscriptLiveErrors];
36942
37037
  export type GetV1ProblemRunsByProblemRunIdTranscriptLiveResponses = {
36943
37038
  /**
36944
- * 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
36945
37040
  */
36946
- 200: Array<{
36947
- [key: string]: unknown;
36948
- }>;
37041
+ 200: AgentRunEventListDto | LiveTranscriptEnvelopeDto;
36949
37042
  };
36950
37043
  export type GetV1ProblemRunsByProblemRunIdTranscriptLiveResponse = GetV1ProblemRunsByProblemRunIdTranscriptLiveResponses[keyof GetV1ProblemRunsByProblemRunIdTranscriptLiveResponses];
36951
37044
  export type GetV1ProblemRunsByProblemRunIdWorkspaceEntriesData = {
@@ -38326,6 +38419,60 @@ export type PostV1RunConfigProbeRunsByRunConfigProbeRunIdCancelResponses = {
38326
38419
  204: void;
38327
38420
  };
38328
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];
38329
38476
  export type DeleteV1RunConfigVersionsByRunConfigVersionIdData = {
38330
38477
  body?: never;
38331
38478
  path: {
@@ -40659,7 +40806,16 @@ export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTran
40659
40806
  */
40660
40807
  synthesizerRunId: string;
40661
40808
  };
40662
- query?: never;
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
+ };
40663
40819
  url: '/v1/versions/{problemVersionId}/synthesizer-runs/{synthesizerRunId}/transcript/live';
40664
40820
  };
40665
40821
  export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveErrors = {
@@ -40691,7 +40847,7 @@ export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTran
40691
40847
  export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveError = GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveErrors[keyof GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveErrors];
40692
40848
  export type GetV1VersionsByProblemVersionIdSynthesizerRunsBySynthesizerRunIdTranscriptLiveResponses = {
40693
40849
  /**
40694
- * 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
40695
40851
  */
40696
40852
  200: string;
40697
40853
  };
@@ -976,6 +976,14 @@ export const RESOURCE_REFERENCE = {
976
976
  description: 'Stable evaluation identifier (UUID). An evaluation is a multi-problem comparison run.',
977
977
  format: 'uuid',
978
978
  },
979
+ {
980
+ name: 'kind',
981
+ required: false,
982
+ type: 'string',
983
+ description: 'Which evaluation shape this is. Defaults to solve-and-grade for pre-kind records.',
984
+ enum: ['solve_and_grade', 'grade_only'],
985
+ default: 'solve_and_grade',
986
+ },
979
987
  {
980
988
  name: 'name',
981
989
  required: true,
@@ -6581,6 +6589,7 @@ export const RESOURCE_REFERENCE = {
6581
6589
  'discardRunConfigVersion',
6582
6590
  'discoverMcpToolsForRunConfigVersion',
6583
6591
  'getInheritedRunConfigDefaultForEnvironment',
6592
+ 'getLiveRunConfigProbeRunTranscript',
6584
6593
  'getRunConfig',
6585
6594
  'getRunConfigProbeRun',
6586
6595
  'getRunConfigVersion',