@labelbox/recursion-sdk 0.0.174 → 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',
|
|
@@ -8410,7 +8410,7 @@ export type ManagedAgentsCreateTriggerBindingRequest = {
|
|
|
8410
8410
|
*/
|
|
8411
8411
|
vault_ids?: Array<string>;
|
|
8412
8412
|
/**
|
|
8413
|
-
* Slack
|
|
8413
|
+
* Slack selector: app_mention (exact channel or internal-only fallback), message (exact channel required), or app_mention_ext_shared (empty channel required; opt-in shared-only fallback). Existing exact app_mention bindings take precedence.
|
|
8414
8414
|
*/
|
|
8415
8415
|
wake_event?: string;
|
|
8416
8416
|
};
|
|
@@ -11008,11 +11008,15 @@ export type ManagedAgentsSessionFailure = {
|
|
|
11008
11008
|
retryable?: boolean;
|
|
11009
11009
|
};
|
|
11010
11010
|
/**
|
|
11011
|
-
* Response body of GET /v1/sessions.
|
|
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
|
-
*
|
|
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
|
};
|
|
@@ -11726,7 +11730,7 @@ export type ManagedAgentsTriggerBinding = {
|
|
|
11726
11730
|
*/
|
|
11727
11731
|
capture_patch?: boolean;
|
|
11728
11732
|
/**
|
|
11729
|
-
* Slack channel
|
|
11733
|
+
* Slack channel scope. app_mention may be exact or an internal-only fallback; app_mention_ext_shared requires empty scope and is a separate shared-only fallback. Always empty on a GitHub binding.
|
|
11730
11734
|
*/
|
|
11731
11735
|
channel_id?: string;
|
|
11732
11736
|
/**
|
|
@@ -11770,7 +11774,7 @@ export type ManagedAgentsTriggerBinding = {
|
|
|
11770
11774
|
*/
|
|
11771
11775
|
vault_ids?: Array<string>;
|
|
11772
11776
|
/**
|
|
11773
|
-
*
|
|
11777
|
+
* Slack selector: app_mention, message, or app_mention_ext_shared (explicit shared-only fallback with independent vault grants). Exact app_mention bindings take precedence over either fallback. Retired GitHub values remain readable.
|
|
11774
11778
|
*/
|
|
11775
11779
|
wake_event?: string;
|
|
11776
11780
|
};
|
|
@@ -11903,7 +11907,7 @@ export type ManagedAgentsUpdateTriggerBindingRequest = {
|
|
|
11903
11907
|
*/
|
|
11904
11908
|
agent_id?: unknown;
|
|
11905
11909
|
/**
|
|
11906
|
-
* Replacement Slack channel scope.
|
|
11910
|
+
* Replacement Slack channel scope. Empty makes app_mention an internal-only fallback; app_mention_ext_shared requires empty scope and independently opts into shared channels.
|
|
11907
11911
|
*/
|
|
11908
11912
|
channel_id?: unknown;
|
|
11909
11913
|
/**
|
|
@@ -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.
|
|
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.
|
|
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,
|
|
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
|
},
|
|
@@ -57705,7 +57719,7 @@ export const SDK_REFERENCE = {
|
|
|
57705
57719
|
in: 'body',
|
|
57706
57720
|
required: false,
|
|
57707
57721
|
type: 'unknown',
|
|
57708
|
-
description: 'Replacement Slack channel scope.
|
|
57722
|
+
description: 'Replacement Slack channel scope. Empty makes app_mention an internal-only fallback; app_mention_ext_shared requires empty scope and independently opts into shared channels.',
|
|
57709
57723
|
},
|
|
57710
57724
|
{
|
|
57711
57725
|
name: 'connection_id',
|
|
@@ -57775,7 +57789,7 @@ export const SDK_REFERENCE = {
|
|
|
57775
57789
|
name: 'channel_id',
|
|
57776
57790
|
required: false,
|
|
57777
57791
|
type: 'string',
|
|
57778
|
-
description: 'Slack channel
|
|
57792
|
+
description: 'Slack channel scope. app_mention may be exact or an internal-only fallback; app_mention_ext_shared requires empty scope and is a separate shared-only fallback. Always empty on a GitHub binding.',
|
|
57779
57793
|
},
|
|
57780
57794
|
{
|
|
57781
57795
|
name: 'connection_id',
|
|
@@ -57842,7 +57856,7 @@ export const SDK_REFERENCE = {
|
|
|
57842
57856
|
name: 'wake_event',
|
|
57843
57857
|
required: false,
|
|
57844
57858
|
type: 'string',
|
|
57845
|
-
description: '
|
|
57859
|
+
description: 'Slack selector: app_mention, message, or app_mention_ext_shared (explicit shared-only fallback with independent vault grants). Exact app_mention bindings take precedence over either fallback. Retired GitHub values remain readable.',
|
|
57846
57860
|
},
|
|
57847
57861
|
],
|
|
57848
57862
|
},
|
|
@@ -58835,7 +58849,7 @@ export const SDK_REFERENCE = {
|
|
|
58835
58849
|
in: 'body',
|
|
58836
58850
|
required: false,
|
|
58837
58851
|
type: 'string',
|
|
58838
|
-
description: 'Slack
|
|
58852
|
+
description: 'Slack selector: app_mention (exact channel or internal-only fallback), message (exact channel required), or app_mention_ext_shared (empty channel required; opt-in shared-only fallback). Existing exact app_mention bindings take precedence.',
|
|
58839
58853
|
},
|
|
58840
58854
|
],
|
|
58841
58855
|
response: {
|
|
@@ -58870,7 +58884,7 @@ export const SDK_REFERENCE = {
|
|
|
58870
58884
|
name: 'channel_id',
|
|
58871
58885
|
required: false,
|
|
58872
58886
|
type: 'string',
|
|
58873
|
-
description: 'Slack channel
|
|
58887
|
+
description: 'Slack channel scope. app_mention may be exact or an internal-only fallback; app_mention_ext_shared requires empty scope and is a separate shared-only fallback. Always empty on a GitHub binding.',
|
|
58874
58888
|
},
|
|
58875
58889
|
{
|
|
58876
58890
|
name: 'connection_id',
|
|
@@ -58937,7 +58951,7 @@ export const SDK_REFERENCE = {
|
|
|
58937
58951
|
name: 'wake_event',
|
|
58938
58952
|
required: false,
|
|
58939
58953
|
type: 'string',
|
|
58940
|
-
description: '
|
|
58954
|
+
description: 'Slack selector: app_mention, message, or app_mention_ext_shared (explicit shared-only fallback with independent vault grants). Exact app_mention bindings take precedence over either fallback. Retired GitHub values remain readable.',
|
|
58941
58955
|
},
|
|
58942
58956
|
],
|
|
58943
58957
|
},
|