@labelbox/recursion-sdk 0.0.175 → 0.0.176

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.
@@ -484,6 +484,7 @@ export declare class ManagedAgents extends HeyApiClient {
484
484
  metadata_key?: Array<string>;
485
485
  root_only?: boolean;
486
486
  limit?: number;
487
+ page_token?: string;
487
488
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetManagedAgentsV1SessionsResponses, GetManagedAgentsV1SessionsErrors, ThrowOnError, "data">;
488
489
  /**
489
490
  * Start a managed session
@@ -916,7 +916,8 @@ export class ManagedAgents extends HeyApiClient {
916
916
  { in: 'query', key: 'metadata' },
917
917
  { in: 'query', key: 'metadata_key' },
918
918
  { in: 'query', key: 'root_only' },
919
- { in: 'query', key: 'limit' }
919
+ { in: 'query', key: 'limit' },
920
+ { in: 'query', key: 'page_token' }
920
921
  ] }]);
921
922
  return (options?.client ?? this.client).get({
922
923
  responseStyle: 'data',
@@ -11008,11 +11008,15 @@ export type ManagedAgentsSessionFailure = {
11008
11008
  retryable?: boolean;
11009
11009
  };
11010
11010
  /**
11011
- * Response body of GET /v1/sessions. This list is limit-truncated rather than cursored: it carries no continuation token, so a caller that hits the limit must narrow the filters (status, kind, agent_id, external_source_*) rather than page onward. Token and cost totals are not included; fetch them for a batch of ids via GET /v1/sessions/usage.
11011
+ * Response body of GET /v1/sessions. Keyset-paginated over (updated_at, id): a page is a stable window at the moment it is read, but a session updated between two page reads moves to the front of the list, so a live list may show it twice or skip it once. Each row is a summary without the start-time snapshots; read one session for those. Token and cost totals are not included; fetch them for a batch of ids via GET /v1/sessions/usage and GET /v1/sessions/costs.
11012
11012
  */
11013
11013
  export type ManagedAgentsSessionListResponse = {
11014
11014
  /**
11015
- * Sessions matching the query filters, newest first, capped by limit (default 100). May be null or an empty array; both mean nothing matched. Rows the caller's access policy does not permit are dropped silently rather than reported.
11015
+ * Present when more sessions match. Pass it as page_token with the same filters and limit to read the next page. Absent on the last page.
11016
+ */
11017
+ next_page_token?: string;
11018
+ /**
11019
+ * Sessions matching the query filters, most recently updated first, at most limit (default 100) per page. May be null or an empty array; both mean nothing matched. Rows the caller's access policy does not permit are dropped silently rather than reported. Rows are summaries: agent_snapshot and model_snapshot are omitted and config is an empty object; GET /v1/sessions/{session_id} returns them.
11016
11020
  */
11017
11021
  sessions?: unknown;
11018
11022
  };
@@ -26336,7 +26340,14 @@ export type GetManagedAgentsV1SessionsData = {
26336
26340
  * Return only root sessions. Use this for model-cost list rows so children cannot consume the bounded page before their tree root.
26337
26341
  */
26338
26342
  root_only?: boolean;
26343
+ /**
26344
+ * Page size. When more rows match, the response carries next_page_token; pass it back as page_token with the same filters and limit to read the next page.
26345
+ */
26339
26346
  limit?: number;
26347
+ /**
26348
+ * Signed continuation token from a previous page's next_page_token. Bound to the organization and to the exact filters and limit it was issued for; valid for one hour.
26349
+ */
26350
+ page_token?: string;
26340
26351
  };
26341
26352
  url: '/managed-agents/v1/sessions';
26342
26353
  };
@@ -26373,7 +26384,7 @@ export type GetManagedAgentsV1SessionsErrors = {
26373
26384
  export type GetManagedAgentsV1SessionsError = GetManagedAgentsV1SessionsErrors[keyof GetManagedAgentsV1SessionsErrors];
26374
26385
  export type GetManagedAgentsV1SessionsResponses = {
26375
26386
  /**
26376
- * Response body of GET /v1/sessions. This list is limit-truncated rather than cursored: it carries no continuation token, so a caller that hits the limit must narrow the filters (status, kind, agent_id, external_source_*) rather than page onward. Token and cost totals are not included; fetch them for a batch of ids via GET /v1/sessions/usage.
26387
+ * Response body of GET /v1/sessions. Keyset-paginated over (updated_at, id): a page is a stable window at the moment it is read, but a session updated between two page reads moves to the front of the list, so a live list may show it twice or skip it once. Each row is a summary without the start-time snapshots; read one session for those. Token and cost totals are not included; fetch them for a batch of ids via GET /v1/sessions/usage and GET /v1/sessions/costs.
26377
26388
  */
26378
26389
  200: ManagedAgentsSessionListResponse;
26379
26390
  };
@@ -54051,7 +54051,7 @@ export const SDK_REFERENCE = {
54051
54051
  namespace: 'managedAgents',
54052
54052
  method: 'listSessions',
54053
54053
  signature: 'rl.managedAgents.listSessions()',
54054
- example: 'const result = await rl.managedAgents.listSessions({\n // optional: status, kind, agent_id, tag_ids, external_source_type, external_source_id, metadata, metadata_key, root_only, limit\n});',
54054
+ example: 'const result = await rl.managedAgents.listSessions({\n // optional: status, kind, agent_id, tag_ids, external_source_type, external_source_id, metadata, metadata_key, root_only, limit, page_token\n});',
54055
54055
  cliInvocation: 'rl managed-agents list-sessions',
54056
54056
  cliExample: 'rl managed-agents list-sessions',
54057
54057
  curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/sessions' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
@@ -54129,19 +54129,33 @@ export const SDK_REFERENCE = {
54129
54129
  in: 'query',
54130
54130
  required: false,
54131
54131
  type: 'integer',
54132
+ description: 'Page size. When more rows match, the response carries next_page_token; pass it back as page_token with the same filters and limit to read the next page.',
54132
54133
  default: 100,
54133
54134
  maximum: 1000,
54134
54135
  },
54136
+ {
54137
+ name: 'page_token',
54138
+ in: 'query',
54139
+ required: false,
54140
+ type: 'string',
54141
+ description: "Signed continuation token from a previous page's next_page_token. Bound to the organization and to the exact filters and limit it was issued for; valid for one hour.",
54142
+ },
54135
54143
  ],
54136
54144
  response: {
54137
54145
  type: 'ManagedAgentsSessionListResponse',
54138
- description: 'Response body of GET /v1/sessions. This list is limit-truncated rather than cursored: it carries no continuation token, so a caller that hits the limit must narrow the filters (status, kind, agent_id, external_source_*) rather than page onward. Token and cost totals are not included; fetch them for a batch of ids via GET /v1/sessions/usage.',
54146
+ description: 'Response body of GET /v1/sessions. Keyset-paginated over (updated_at, id): a page is a stable window at the moment it is read, but a session updated between two page reads moves to the front of the list, so a live list may show it twice or skip it once. Each row is a summary without the start-time snapshots; read one session for those. Token and cost totals are not included; fetch them for a batch of ids via GET /v1/sessions/usage and GET /v1/sessions/costs.',
54139
54147
  fields: [
54148
+ {
54149
+ name: 'next_page_token',
54150
+ required: false,
54151
+ type: 'string',
54152
+ description: 'Present when more sessions match. Pass it as page_token with the same filters and limit to read the next page. Absent on the last page.',
54153
+ },
54140
54154
  {
54141
54155
  name: 'sessions',
54142
54156
  required: false,
54143
54157
  type: 'unknown',
54144
- description: "Sessions matching the query filters, newest first, capped by limit (default 100). May be null or an empty array; both mean nothing matched. Rows the caller's access policy does not permit are dropped silently rather than reported.",
54158
+ description: "Sessions matching the query filters, most recently updated first, at most limit (default 100) per page. May be null or an empty array; both mean nothing matched. Rows the caller's access policy does not permit are dropped silently rather than reported. Rows are summaries: agent_snapshot and model_snapshot are omitted and config is an empty object; GET /v1/sessions/{session_id} returns them.",
54145
54159
  },
54146
54160
  ],
54147
54161
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@labelbox/recursion-sdk",
3
- "version": "0.0.175",
3
+ "version": "0.0.176",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",