@labelbox/rl-sdk 0.0.147 → 0.0.149
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 +74 -5
- package/dist/generated/sdk.gen.js +140 -4
- package/dist/generated/types.gen.d.ts +726 -79
- package/dist/reference/resources-reference.generated.js +82 -0
- package/dist/reference/sdk-reference.generated.js +1035 -50
- package/package.json +1 -1
|
@@ -44128,6 +44128,110 @@ export const SDK_REFERENCE = {
|
|
|
44128
44128
|
],
|
|
44129
44129
|
},
|
|
44130
44130
|
},
|
|
44131
|
+
managedAgentsApplyAgentTag: {
|
|
44132
|
+
operationId: 'managedAgentsApplyAgentTag',
|
|
44133
|
+
tag: 'managed-agents',
|
|
44134
|
+
callPath: ['managedAgents', 'applyAgentTag'],
|
|
44135
|
+
namespace: 'managedAgents',
|
|
44136
|
+
method: 'applyAgentTag',
|
|
44137
|
+
signature: 'rl.managedAgents.applyAgentTag({ agent_id, tag_id })',
|
|
44138
|
+
example: "const result = await rl.managedAgents.applyAgentTag({\n agent_id: '<agent_id>',\n tag_id: '<tag_id>',\n});",
|
|
44139
|
+
cliInvocation: 'rl managed-agents apply-agent-tag',
|
|
44140
|
+
cliExample: 'rl managed-agents apply-agent-tag \\\n --agent_id <agent_id> \\\n --tag_id <tag_id>',
|
|
44141
|
+
curlExample: "curl -X PUT 'https://api.recursion.labelbox.com/managed-agents/v1/agents/<agent_id>/tags/<tag_id>' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
44142
|
+
summary: 'Apply one tag to an agent',
|
|
44143
|
+
description: "Idempotently applies one live organization tag and returns the agent's resulting full tag definitions. The classification write does not update the agent or mint a version.",
|
|
44144
|
+
httpMethod: 'put',
|
|
44145
|
+
path: '/managed-agents/v1/agents/{agent_id}/tags/{tag_id}',
|
|
44146
|
+
requiredPermissions: ['managed-agents:update'],
|
|
44147
|
+
params: [
|
|
44148
|
+
{
|
|
44149
|
+
name: 'agent_id',
|
|
44150
|
+
in: 'path',
|
|
44151
|
+
required: true,
|
|
44152
|
+
type: 'string',
|
|
44153
|
+
description: 'Agent id (UUID) as returned by createAgent or listAgents.',
|
|
44154
|
+
format: 'uuid',
|
|
44155
|
+
},
|
|
44156
|
+
{
|
|
44157
|
+
name: 'tag_id',
|
|
44158
|
+
in: 'path',
|
|
44159
|
+
required: true,
|
|
44160
|
+
type: 'string',
|
|
44161
|
+
description: 'Tag id (UUID) as returned by createTag or listTags.',
|
|
44162
|
+
format: 'uuid',
|
|
44163
|
+
},
|
|
44164
|
+
],
|
|
44165
|
+
response: {
|
|
44166
|
+
type: 'ManagedAgentsTagListResponse',
|
|
44167
|
+
description: "A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.",
|
|
44168
|
+
fields: [
|
|
44169
|
+
{
|
|
44170
|
+
name: 'tags',
|
|
44171
|
+
required: true,
|
|
44172
|
+
type: 'ManagedAgentsTag[]',
|
|
44173
|
+
description: 'The complete live tag set for this response. Always an array; an empty array means no definitions exist or the agent has no classifications.',
|
|
44174
|
+
items: {
|
|
44175
|
+
type: 'ManagedAgentsTag',
|
|
44176
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
44177
|
+
fields: [
|
|
44178
|
+
{
|
|
44179
|
+
name: 'color',
|
|
44180
|
+
required: false,
|
|
44181
|
+
type: 'string',
|
|
44182
|
+
description: 'Display color in #RRGGBB form.',
|
|
44183
|
+
minLength: 7,
|
|
44184
|
+
maxLength: 7,
|
|
44185
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
44186
|
+
},
|
|
44187
|
+
{
|
|
44188
|
+
name: 'created_at',
|
|
44189
|
+
required: false,
|
|
44190
|
+
type: 'string',
|
|
44191
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
44192
|
+
format: 'date-time',
|
|
44193
|
+
},
|
|
44194
|
+
{
|
|
44195
|
+
name: 'description',
|
|
44196
|
+
required: false,
|
|
44197
|
+
type: 'string',
|
|
44198
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
44199
|
+
maxLength: 280,
|
|
44200
|
+
},
|
|
44201
|
+
{
|
|
44202
|
+
name: 'label',
|
|
44203
|
+
required: false,
|
|
44204
|
+
type: 'string',
|
|
44205
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
44206
|
+
minLength: 1,
|
|
44207
|
+
maxLength: 32,
|
|
44208
|
+
},
|
|
44209
|
+
{
|
|
44210
|
+
name: 'organization_id',
|
|
44211
|
+
required: false,
|
|
44212
|
+
type: 'string',
|
|
44213
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
44214
|
+
},
|
|
44215
|
+
{
|
|
44216
|
+
name: 'tag_id',
|
|
44217
|
+
required: false,
|
|
44218
|
+
type: 'string',
|
|
44219
|
+
description: 'Server-assigned tag id (UUID).',
|
|
44220
|
+
format: 'uuid',
|
|
44221
|
+
},
|
|
44222
|
+
{
|
|
44223
|
+
name: 'updated_at',
|
|
44224
|
+
required: false,
|
|
44225
|
+
type: 'string',
|
|
44226
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
44227
|
+
format: 'date-time',
|
|
44228
|
+
},
|
|
44229
|
+
],
|
|
44230
|
+
},
|
|
44231
|
+
},
|
|
44232
|
+
],
|
|
44233
|
+
},
|
|
44234
|
+
},
|
|
44131
44235
|
managedAgentsArchiveMemoryStore: {
|
|
44132
44236
|
operationId: 'managedAgentsArchiveMemoryStore',
|
|
44133
44237
|
tag: 'managed-agents',
|
|
@@ -44477,7 +44581,7 @@ export const SDK_REFERENCE = {
|
|
|
44477
44581
|
],
|
|
44478
44582
|
response: {
|
|
44479
44583
|
type: 'ManagedAgentsAgent',
|
|
44480
|
-
description: 'A configured agent: its
|
|
44584
|
+
description: 'A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.',
|
|
44481
44585
|
fields: [
|
|
44482
44586
|
{
|
|
44483
44587
|
name: 'agent_id',
|
|
@@ -44639,6 +44743,69 @@ export const SDK_REFERENCE = {
|
|
|
44639
44743
|
type: 'string',
|
|
44640
44744
|
description: 'System prompt prepended to every conversation this agent runs.',
|
|
44641
44745
|
},
|
|
44746
|
+
{
|
|
44747
|
+
name: 'tags',
|
|
44748
|
+
required: true,
|
|
44749
|
+
type: 'ManagedAgentsTag[]',
|
|
44750
|
+
description: 'Current organization-scoped classification tags applied to this agent. Always an array. Tags are mutable catalog metadata and are deliberately absent from AgentVersion and session runtime snapshots.',
|
|
44751
|
+
items: {
|
|
44752
|
+
type: 'ManagedAgentsTag',
|
|
44753
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
44754
|
+
fields: [
|
|
44755
|
+
{
|
|
44756
|
+
name: 'color',
|
|
44757
|
+
required: false,
|
|
44758
|
+
type: 'string',
|
|
44759
|
+
description: 'Display color in #RRGGBB form.',
|
|
44760
|
+
minLength: 7,
|
|
44761
|
+
maxLength: 7,
|
|
44762
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
44763
|
+
},
|
|
44764
|
+
{
|
|
44765
|
+
name: 'created_at',
|
|
44766
|
+
required: false,
|
|
44767
|
+
type: 'string',
|
|
44768
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
44769
|
+
format: 'date-time',
|
|
44770
|
+
},
|
|
44771
|
+
{
|
|
44772
|
+
name: 'description',
|
|
44773
|
+
required: false,
|
|
44774
|
+
type: 'string',
|
|
44775
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
44776
|
+
maxLength: 280,
|
|
44777
|
+
},
|
|
44778
|
+
{
|
|
44779
|
+
name: 'label',
|
|
44780
|
+
required: false,
|
|
44781
|
+
type: 'string',
|
|
44782
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
44783
|
+
minLength: 1,
|
|
44784
|
+
maxLength: 32,
|
|
44785
|
+
},
|
|
44786
|
+
{
|
|
44787
|
+
name: 'organization_id',
|
|
44788
|
+
required: false,
|
|
44789
|
+
type: 'string',
|
|
44790
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
44791
|
+
},
|
|
44792
|
+
{
|
|
44793
|
+
name: 'tag_id',
|
|
44794
|
+
required: false,
|
|
44795
|
+
type: 'string',
|
|
44796
|
+
description: 'Server-assigned tag id (UUID).',
|
|
44797
|
+
format: 'uuid',
|
|
44798
|
+
},
|
|
44799
|
+
{
|
|
44800
|
+
name: 'updated_at',
|
|
44801
|
+
required: false,
|
|
44802
|
+
type: 'string',
|
|
44803
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
44804
|
+
format: 'date-time',
|
|
44805
|
+
},
|
|
44806
|
+
],
|
|
44807
|
+
},
|
|
44808
|
+
},
|
|
44642
44809
|
{
|
|
44643
44810
|
name: 'toolsets',
|
|
44644
44811
|
required: false,
|
|
@@ -46069,6 +46236,110 @@ export const SDK_REFERENCE = {
|
|
|
46069
46236
|
],
|
|
46070
46237
|
},
|
|
46071
46238
|
},
|
|
46239
|
+
managedAgentsCreateTag: {
|
|
46240
|
+
operationId: 'managedAgentsCreateTag',
|
|
46241
|
+
tag: 'managed-agents',
|
|
46242
|
+
callPath: ['managedAgents', 'createTag'],
|
|
46243
|
+
namespace: 'managedAgents',
|
|
46244
|
+
method: 'createTag',
|
|
46245
|
+
bodyKey: 'body',
|
|
46246
|
+
signature: 'rl.managedAgents.createTag({ body })',
|
|
46247
|
+
example: 'const result = await rl.managedAgents.createTag({\n body: {\n color: "#14b8a6",\n description: "example",\n label: "example"\n },\n});',
|
|
46248
|
+
cliInvocation: 'rl managed-agents create-tag',
|
|
46249
|
+
cliExample: "rl managed-agents create-tag \\\n --color '#14b8a6' \\\n --label 'example' \\\n --from-json body.json",
|
|
46250
|
+
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/tags\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "color": "#14b8a6",\n "description": "example",\n "label": "example"\n }\'',
|
|
46251
|
+
summary: 'Create an organization tag',
|
|
46252
|
+
description: 'Creates a mutable classification definition in the calling organization. Labels are trimmed and case-insensitively unique among live tags; deleting a tag releases its label.',
|
|
46253
|
+
httpMethod: 'post',
|
|
46254
|
+
path: '/managed-agents/v1/tags',
|
|
46255
|
+
requiredPermissions: ['managed-agents:create'],
|
|
46256
|
+
params: [
|
|
46257
|
+
{
|
|
46258
|
+
name: 'color',
|
|
46259
|
+
in: 'body',
|
|
46260
|
+
required: true,
|
|
46261
|
+
type: 'string',
|
|
46262
|
+
description: 'Display color in #RRGGBB form.',
|
|
46263
|
+
minLength: 7,
|
|
46264
|
+
maxLength: 7,
|
|
46265
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
46266
|
+
},
|
|
46267
|
+
{
|
|
46268
|
+
name: 'description',
|
|
46269
|
+
in: 'body',
|
|
46270
|
+
required: false,
|
|
46271
|
+
type: 'string',
|
|
46272
|
+
description: 'Optional operator-facing explanation of this classification, up to 280 characters.',
|
|
46273
|
+
maxLength: 280,
|
|
46274
|
+
},
|
|
46275
|
+
{
|
|
46276
|
+
name: 'label',
|
|
46277
|
+
in: 'body',
|
|
46278
|
+
required: true,
|
|
46279
|
+
type: 'string',
|
|
46280
|
+
description: 'Display label. Leading and trailing whitespace is removed; the result must contain 1-32 characters and be unique case-insensitively among live tags in the organization.',
|
|
46281
|
+
minLength: 1,
|
|
46282
|
+
maxLength: 32,
|
|
46283
|
+
},
|
|
46284
|
+
],
|
|
46285
|
+
response: {
|
|
46286
|
+
type: 'ManagedAgentsTag',
|
|
46287
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
46288
|
+
fields: [
|
|
46289
|
+
{
|
|
46290
|
+
name: 'color',
|
|
46291
|
+
required: false,
|
|
46292
|
+
type: 'string',
|
|
46293
|
+
description: 'Display color in #RRGGBB form.',
|
|
46294
|
+
minLength: 7,
|
|
46295
|
+
maxLength: 7,
|
|
46296
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
46297
|
+
},
|
|
46298
|
+
{
|
|
46299
|
+
name: 'created_at',
|
|
46300
|
+
required: false,
|
|
46301
|
+
type: 'string',
|
|
46302
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
46303
|
+
format: 'date-time',
|
|
46304
|
+
},
|
|
46305
|
+
{
|
|
46306
|
+
name: 'description',
|
|
46307
|
+
required: false,
|
|
46308
|
+
type: 'string',
|
|
46309
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
46310
|
+
maxLength: 280,
|
|
46311
|
+
},
|
|
46312
|
+
{
|
|
46313
|
+
name: 'label',
|
|
46314
|
+
required: false,
|
|
46315
|
+
type: 'string',
|
|
46316
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
46317
|
+
minLength: 1,
|
|
46318
|
+
maxLength: 32,
|
|
46319
|
+
},
|
|
46320
|
+
{
|
|
46321
|
+
name: 'organization_id',
|
|
46322
|
+
required: false,
|
|
46323
|
+
type: 'string',
|
|
46324
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
46325
|
+
},
|
|
46326
|
+
{
|
|
46327
|
+
name: 'tag_id',
|
|
46328
|
+
required: false,
|
|
46329
|
+
type: 'string',
|
|
46330
|
+
description: 'Server-assigned tag id (UUID).',
|
|
46331
|
+
format: 'uuid',
|
|
46332
|
+
},
|
|
46333
|
+
{
|
|
46334
|
+
name: 'updated_at',
|
|
46335
|
+
required: false,
|
|
46336
|
+
type: 'string',
|
|
46337
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
46338
|
+
format: 'date-time',
|
|
46339
|
+
},
|
|
46340
|
+
],
|
|
46341
|
+
},
|
|
46342
|
+
},
|
|
46072
46343
|
managedAgentsCreateVault: {
|
|
46073
46344
|
operationId: 'managedAgentsCreateVault',
|
|
46074
46345
|
tag: 'managed-agents',
|
|
@@ -46161,10 +46432,10 @@ export const SDK_REFERENCE = {
|
|
|
46161
46432
|
method: 'createVaultCredential',
|
|
46162
46433
|
bodyKey: 'body',
|
|
46163
46434
|
signature: 'rl.managedAgents.createVaultCredential({ vault_id, body })',
|
|
46164
|
-
example: 'const result = await rl.managedAgents.createVaultCredential({\n vault_id: \'<vault_id>\',\n body: {\n allowed_hosts: [\n "example"\n ],\n credential_type: "bearer_token",\n display_name: "example-name",\n injection_locations: [\n "headers"\n ],\n integration_connection_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n integration_permission: "example",\n integration_resources: [\n "example"\n ],\n mcp_server_url: "https://example.com",\n metadata: {\n key: "example"\n },\n network_mode: "limited",\n secret_name: "example",\n secret_ref: "example",\n secret_value: "example"\n },\n});',
|
|
46435
|
+
example: 'const result = await rl.managedAgents.createVaultCredential({\n vault_id: \'<vault_id>\',\n body: {\n allowed_hosts: [\n "example"\n ],\n credential_type: "bearer_token",\n display_name: "example-name",\n injection_locations: [\n "headers"\n ],\n integration_connection_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n integration_permission: "example",\n integration_resources: [\n "example"\n ],\n labelbox_scope: {\n organization_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n project_ids: [\n "example"\n ]\n },\n mcp_server_url: "https://example.com",\n metadata: {\n key: "example"\n },\n network_mode: "limited",\n secret_name: "example",\n secret_ref: "example",\n secret_value: "example"\n },\n});',
|
|
46165
46436
|
cliInvocation: 'rl managed-agents create-vault-credential',
|
|
46166
46437
|
cliExample: "rl managed-agents create-vault-credential \\\n --vault_id <vault_id> \\\n --credential_type 'bearer_token' \\\n --from-json body.json",
|
|
46167
|
-
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/vaults/<vault_id>/credentials\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "allowed_hosts": [\n "example"\n ],\n "credential_type": "bearer_token",\n "display_name": "example-name",\n "injection_locations": [\n "headers"\n ],\n "integration_connection_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "integration_permission": "example",\n "integration_resources": [\n "example"\n ],\n "mcp_server_url": "https://example.com",\n "metadata": {\n "key": "example"\n },\n "network_mode": "limited",\n "secret_name": "example",\n "secret_ref": "example",\n "secret_value": "example"\n }\'',
|
|
46438
|
+
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/vaults/<vault_id>/credentials\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "allowed_hosts": [\n "example"\n ],\n "credential_type": "bearer_token",\n "display_name": "example-name",\n "injection_locations": [\n "headers"\n ],\n "integration_connection_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "integration_permission": "example",\n "integration_resources": [\n "example"\n ],\n "labelbox_scope": {\n "organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "project_ids": [\n "example"\n ]\n },\n "mcp_server_url": "https://example.com",\n "metadata": {\n "key": "example"\n },\n "network_mode": "limited",\n "secret_name": "example",\n "secret_ref": "example",\n "secret_value": "example"\n }\'',
|
|
46168
46439
|
summary: 'Register a credential reference in a vault',
|
|
46169
46440
|
description: "Registers one credential in a vault and returns the stored reference. Supply exactly one of secret_value (encrypted under the organization's key and stored as ciphertext) or secret_ref (material you already stored yourself) for secret-backed kinds. Integration grants carry neither; they reference a connected account that mints short-lived credentials. Secret material is never echoed back on this or any later response.",
|
|
46170
46441
|
httpMethod: 'post',
|
|
@@ -46235,6 +46506,29 @@ export const SDK_REFERENCE = {
|
|
|
46235
46506
|
type: 'string[]',
|
|
46236
46507
|
description: 'Resources within the connection this grant may reach, e.g. GitHub repository names. Empty means every resource the connection reaches, which is broader than most grants should be.',
|
|
46237
46508
|
},
|
|
46509
|
+
{
|
|
46510
|
+
name: 'labelbox_scope',
|
|
46511
|
+
in: 'body',
|
|
46512
|
+
required: false,
|
|
46513
|
+
type: 'ManagedAgentsLabelboxScopeRequest',
|
|
46514
|
+
description: "Organization and exact project set the credential may read through the deployment's Labelbox product-state MCP service. Required when credential_type is bearer_token and mcp_server_url is that service; rejected for any other server.",
|
|
46515
|
+
fields: [
|
|
46516
|
+
{
|
|
46517
|
+
name: 'organization_id',
|
|
46518
|
+
required: false,
|
|
46519
|
+
type: 'string',
|
|
46520
|
+
description: 'Labelbox organization the projects belong to. Optional: filled in from the organization that owns the credential, and rejected if it names any other.',
|
|
46521
|
+
},
|
|
46522
|
+
{
|
|
46523
|
+
name: 'project_ids',
|
|
46524
|
+
required: true,
|
|
46525
|
+
type: 'unknown',
|
|
46526
|
+
description: 'Exact Labelbox project ids (1 to 100, each up to 128 characters of letters, digits, hyphen, or underscore) the credential may read. Duplicates are rejected.',
|
|
46527
|
+
minItems: 1,
|
|
46528
|
+
maxItems: 100,
|
|
46529
|
+
},
|
|
46530
|
+
],
|
|
46531
|
+
},
|
|
46238
46532
|
{
|
|
46239
46533
|
name: 'mcp_server_url',
|
|
46240
46534
|
in: 'body',
|
|
@@ -46247,7 +46541,7 @@ export const SDK_REFERENCE = {
|
|
|
46247
46541
|
in: 'body',
|
|
46248
46542
|
required: false,
|
|
46249
46543
|
type: 'object',
|
|
46250
|
-
description: 'Free-form caller-owned JSON stored with the credential row and returned on reads. Not interpreted by the service; never put secret material here, since unlike secret_value it is returned verbatim.',
|
|
46544
|
+
description: 'Free-form caller-owned JSON stored with the credential row and returned on reads. Not interpreted by the service; never put secret material here, since unlike secret_value it is returned verbatim. The key labelbox_scope is reserved for the typed field.',
|
|
46251
46545
|
},
|
|
46252
46546
|
{
|
|
46253
46547
|
name: 'network_mode',
|
|
@@ -46338,6 +46632,28 @@ export const SDK_REFERENCE = {
|
|
|
46338
46632
|
type: 'string[]',
|
|
46339
46633
|
description: 'Resources within the connection the grant is narrowed to — repositories, for GitHub. Empty means every resource the connection itself can reach, which is broader than most grants should be.',
|
|
46340
46634
|
},
|
|
46635
|
+
{
|
|
46636
|
+
name: 'labelbox_scope',
|
|
46637
|
+
required: false,
|
|
46638
|
+
type: 'ManagedAgentsLabelboxToolsScope',
|
|
46639
|
+
description: 'Organization and exact project set this credential may read through the Labelbox product-state MCP service. Required for a bearer_token credential whose mcp_server_url is that service; rejected for any other server. Replaced as a whole on update and kept when omitted.',
|
|
46640
|
+
fields: [
|
|
46641
|
+
{
|
|
46642
|
+
name: 'organization_id',
|
|
46643
|
+
required: true,
|
|
46644
|
+
type: 'string',
|
|
46645
|
+
description: 'Labelbox organization the projects belong to. Must equal the organization that owns the credential; filled in from it when omitted on write.',
|
|
46646
|
+
},
|
|
46647
|
+
{
|
|
46648
|
+
name: 'project_ids',
|
|
46649
|
+
required: true,
|
|
46650
|
+
type: 'unknown',
|
|
46651
|
+
description: 'Exact Labelbox project ids (1 to 100, each up to 128 characters of letters, digits, hyphen, or underscore) the credential may read. Validated as unique and sorted on write.',
|
|
46652
|
+
minItems: 1,
|
|
46653
|
+
maxItems: 100,
|
|
46654
|
+
},
|
|
46655
|
+
],
|
|
46656
|
+
},
|
|
46341
46657
|
{
|
|
46342
46658
|
name: 'mcp_server_url',
|
|
46343
46659
|
required: false,
|
|
@@ -46348,7 +46664,7 @@ export const SDK_REFERENCE = {
|
|
|
46348
46664
|
name: 'metadata',
|
|
46349
46665
|
required: false,
|
|
46350
46666
|
type: 'object',
|
|
46351
|
-
description: 'Free-form caller-supplied key/value labels. Stored verbatim and never interpreted by the service.',
|
|
46667
|
+
description: 'Free-form caller-supplied key/value labels. Stored verbatim and never interpreted by the service. The key labelbox_scope is reserved for the typed field of that name.',
|
|
46352
46668
|
},
|
|
46353
46669
|
{
|
|
46354
46670
|
name: 'network_mode',
|
|
@@ -47236,7 +47552,7 @@ export const SDK_REFERENCE = {
|
|
|
47236
47552
|
],
|
|
47237
47553
|
response: {
|
|
47238
47554
|
type: 'ManagedAgentsDeletedResponse',
|
|
47239
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47555
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47240
47556
|
fields: [
|
|
47241
47557
|
{
|
|
47242
47558
|
name: 'deleted',
|
|
@@ -47301,7 +47617,7 @@ export const SDK_REFERENCE = {
|
|
|
47301
47617
|
],
|
|
47302
47618
|
response: {
|
|
47303
47619
|
type: 'ManagedAgentsDeletedResponse',
|
|
47304
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47620
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47305
47621
|
fields: [
|
|
47306
47622
|
{
|
|
47307
47623
|
name: 'deleted',
|
|
@@ -47402,7 +47718,7 @@ export const SDK_REFERENCE = {
|
|
|
47402
47718
|
],
|
|
47403
47719
|
response: {
|
|
47404
47720
|
type: 'ManagedAgentsDeletedResponse',
|
|
47405
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47721
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47406
47722
|
fields: [
|
|
47407
47723
|
{
|
|
47408
47724
|
name: 'deleted',
|
|
@@ -47441,7 +47757,46 @@ export const SDK_REFERENCE = {
|
|
|
47441
47757
|
],
|
|
47442
47758
|
response: {
|
|
47443
47759
|
type: 'ManagedAgentsDeletedResponse',
|
|
47444
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47760
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47761
|
+
fields: [
|
|
47762
|
+
{
|
|
47763
|
+
name: 'deleted',
|
|
47764
|
+
required: false,
|
|
47765
|
+
type: 'boolean',
|
|
47766
|
+
description: 'Always true. The record was soft deleted and is now excluded from reads; a delete that did not happen is an HTTP error instead, so this field never reports false.',
|
|
47767
|
+
},
|
|
47768
|
+
],
|
|
47769
|
+
},
|
|
47770
|
+
},
|
|
47771
|
+
managedAgentsDeleteTag: {
|
|
47772
|
+
operationId: 'managedAgentsDeleteTag',
|
|
47773
|
+
tag: 'managed-agents',
|
|
47774
|
+
callPath: ['managedAgents', 'deleteTag'],
|
|
47775
|
+
namespace: 'managedAgents',
|
|
47776
|
+
method: 'deleteTag',
|
|
47777
|
+
signature: 'rl.managedAgents.deleteTag({ tag_id })',
|
|
47778
|
+
example: "const result = await rl.managedAgents.deleteTag({\n tag_id: '<tag_id>',\n});",
|
|
47779
|
+
cliInvocation: 'rl managed-agents delete-tag',
|
|
47780
|
+
cliExample: 'rl managed-agents delete-tag \\\n --tag_id <tag_id>',
|
|
47781
|
+
curlExample: "curl -X DELETE 'https://api.recursion.labelbox.com/managed-agents/v1/tags/<tag_id>' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
47782
|
+
summary: 'Soft delete a tag',
|
|
47783
|
+
description: 'Soft deletes the bounded definition row. Live-definition joins immediately hide every application without rewriting them; agents and immutable versions are untouched, and the label may be reused.',
|
|
47784
|
+
httpMethod: 'delete',
|
|
47785
|
+
path: '/managed-agents/v1/tags/{tag_id}',
|
|
47786
|
+
requiredPermissions: ['managed-agents:delete'],
|
|
47787
|
+
params: [
|
|
47788
|
+
{
|
|
47789
|
+
name: 'tag_id',
|
|
47790
|
+
in: 'path',
|
|
47791
|
+
required: true,
|
|
47792
|
+
type: 'string',
|
|
47793
|
+
description: 'Tag id (UUID) as returned by createTag or listTags.',
|
|
47794
|
+
format: 'uuid',
|
|
47795
|
+
},
|
|
47796
|
+
],
|
|
47797
|
+
response: {
|
|
47798
|
+
type: 'ManagedAgentsDeletedResponse',
|
|
47799
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47445
47800
|
fields: [
|
|
47446
47801
|
{
|
|
47447
47802
|
name: 'deleted',
|
|
@@ -47480,7 +47835,7 @@ export const SDK_REFERENCE = {
|
|
|
47480
47835
|
],
|
|
47481
47836
|
response: {
|
|
47482
47837
|
type: 'ManagedAgentsDeletedResponse',
|
|
47483
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47838
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47484
47839
|
fields: [
|
|
47485
47840
|
{
|
|
47486
47841
|
name: 'deleted',
|
|
@@ -47519,7 +47874,7 @@ export const SDK_REFERENCE = {
|
|
|
47519
47874
|
],
|
|
47520
47875
|
response: {
|
|
47521
47876
|
type: 'ManagedAgentsDeletedResponse',
|
|
47522
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47877
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47523
47878
|
fields: [
|
|
47524
47879
|
{
|
|
47525
47880
|
name: 'deleted',
|
|
@@ -47566,7 +47921,7 @@ export const SDK_REFERENCE = {
|
|
|
47566
47921
|
],
|
|
47567
47922
|
response: {
|
|
47568
47923
|
type: 'ManagedAgentsDeletedResponse',
|
|
47569
|
-
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47924
|
+
description: 'Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.',
|
|
47570
47925
|
fields: [
|
|
47571
47926
|
{
|
|
47572
47927
|
name: 'deleted',
|
|
@@ -47631,7 +47986,7 @@ export const SDK_REFERENCE = {
|
|
|
47631
47986
|
],
|
|
47632
47987
|
response: {
|
|
47633
47988
|
type: 'ManagedAgentsAgent',
|
|
47634
|
-
description: 'A configured agent: its
|
|
47989
|
+
description: 'A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.',
|
|
47635
47990
|
fields: [
|
|
47636
47991
|
{
|
|
47637
47992
|
name: 'agent_id',
|
|
@@ -47794,32 +48149,95 @@ export const SDK_REFERENCE = {
|
|
|
47794
48149
|
description: 'System prompt prepended to every conversation this agent runs.',
|
|
47795
48150
|
},
|
|
47796
48151
|
{
|
|
47797
|
-
name: '
|
|
47798
|
-
required:
|
|
47799
|
-
type: '
|
|
47800
|
-
description: '
|
|
47801
|
-
|
|
47802
|
-
|
|
47803
|
-
|
|
47804
|
-
|
|
47805
|
-
|
|
47806
|
-
|
|
47807
|
-
|
|
47808
|
-
|
|
47809
|
-
|
|
47810
|
-
|
|
47811
|
-
|
|
47812
|
-
|
|
47813
|
-
|
|
47814
|
-
|
|
47815
|
-
|
|
47816
|
-
|
|
47817
|
-
|
|
47818
|
-
|
|
47819
|
-
|
|
47820
|
-
|
|
47821
|
-
|
|
47822
|
-
|
|
48152
|
+
name: 'tags',
|
|
48153
|
+
required: true,
|
|
48154
|
+
type: 'ManagedAgentsTag[]',
|
|
48155
|
+
description: 'Current organization-scoped classification tags applied to this agent. Always an array. Tags are mutable catalog metadata and are deliberately absent from AgentVersion and session runtime snapshots.',
|
|
48156
|
+
items: {
|
|
48157
|
+
type: 'ManagedAgentsTag',
|
|
48158
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
48159
|
+
fields: [
|
|
48160
|
+
{
|
|
48161
|
+
name: 'color',
|
|
48162
|
+
required: false,
|
|
48163
|
+
type: 'string',
|
|
48164
|
+
description: 'Display color in #RRGGBB form.',
|
|
48165
|
+
minLength: 7,
|
|
48166
|
+
maxLength: 7,
|
|
48167
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
48168
|
+
},
|
|
48169
|
+
{
|
|
48170
|
+
name: 'created_at',
|
|
48171
|
+
required: false,
|
|
48172
|
+
type: 'string',
|
|
48173
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
48174
|
+
format: 'date-time',
|
|
48175
|
+
},
|
|
48176
|
+
{
|
|
48177
|
+
name: 'description',
|
|
48178
|
+
required: false,
|
|
48179
|
+
type: 'string',
|
|
48180
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
48181
|
+
maxLength: 280,
|
|
48182
|
+
},
|
|
48183
|
+
{
|
|
48184
|
+
name: 'label',
|
|
48185
|
+
required: false,
|
|
48186
|
+
type: 'string',
|
|
48187
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
48188
|
+
minLength: 1,
|
|
48189
|
+
maxLength: 32,
|
|
48190
|
+
},
|
|
48191
|
+
{
|
|
48192
|
+
name: 'organization_id',
|
|
48193
|
+
required: false,
|
|
48194
|
+
type: 'string',
|
|
48195
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
48196
|
+
},
|
|
48197
|
+
{
|
|
48198
|
+
name: 'tag_id',
|
|
48199
|
+
required: false,
|
|
48200
|
+
type: 'string',
|
|
48201
|
+
description: 'Server-assigned tag id (UUID).',
|
|
48202
|
+
format: 'uuid',
|
|
48203
|
+
},
|
|
48204
|
+
{
|
|
48205
|
+
name: 'updated_at',
|
|
48206
|
+
required: false,
|
|
48207
|
+
type: 'string',
|
|
48208
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
48209
|
+
format: 'date-time',
|
|
48210
|
+
},
|
|
48211
|
+
],
|
|
48212
|
+
},
|
|
48213
|
+
},
|
|
48214
|
+
{
|
|
48215
|
+
name: 'toolsets',
|
|
48216
|
+
required: false,
|
|
48217
|
+
type: 'unknown',
|
|
48218
|
+
description: 'Additional tool groups to enable, snapshotted into the session and passed to the execution runtime unchanged. This does NOT gate the sandbox tools: run_command, run_process, read_file and write_file are offered to every session with a sandbox whether or not this list mentions them, so a shell needs no entry here. The names a session actually offers the model are reported as config.available_builtin_tools on the started session -- read that rather than inferring the tool surface from this list.',
|
|
48219
|
+
},
|
|
48220
|
+
{
|
|
48221
|
+
name: 'updated_at',
|
|
48222
|
+
required: false,
|
|
48223
|
+
type: 'string',
|
|
48224
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent update to the agent.',
|
|
48225
|
+
format: 'date-time',
|
|
48226
|
+
},
|
|
48227
|
+
{
|
|
48228
|
+
name: 'web_search_enabled',
|
|
48229
|
+
required: false,
|
|
48230
|
+
type: 'boolean',
|
|
48231
|
+
description: 'Whether new sessions may use the native web_search tool. Omitted on legacy agents and interpreted as enabled.',
|
|
48232
|
+
default: true,
|
|
48233
|
+
},
|
|
48234
|
+
],
|
|
48235
|
+
},
|
|
48236
|
+
},
|
|
48237
|
+
managedAgentsGetAgentLearning: {
|
|
48238
|
+
operationId: 'managedAgentsGetAgentLearning',
|
|
48239
|
+
tag: 'managed-agents',
|
|
48240
|
+
callPath: ['managedAgents', 'getAgentLearning'],
|
|
47823
48241
|
namespace: 'managedAgents',
|
|
47824
48242
|
method: 'getAgentLearning',
|
|
47825
48243
|
signature: 'rl.managedAgents.getAgentLearning({ agent_id })',
|
|
@@ -51262,6 +51680,90 @@ export const SDK_REFERENCE = {
|
|
|
51262
51680
|
],
|
|
51263
51681
|
},
|
|
51264
51682
|
},
|
|
51683
|
+
managedAgentsGetTag: {
|
|
51684
|
+
operationId: 'managedAgentsGetTag',
|
|
51685
|
+
tag: 'managed-agents',
|
|
51686
|
+
callPath: ['managedAgents', 'getTag'],
|
|
51687
|
+
namespace: 'managedAgents',
|
|
51688
|
+
method: 'getTag',
|
|
51689
|
+
signature: 'rl.managedAgents.getTag({ tag_id })',
|
|
51690
|
+
example: "const result = await rl.managedAgents.getTag({\n tag_id: '<tag_id>',\n});",
|
|
51691
|
+
cliInvocation: 'rl managed-agents get-tag',
|
|
51692
|
+
cliExample: 'rl managed-agents get-tag \\\n --tag_id <tag_id>',
|
|
51693
|
+
curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/tags/<tag_id>' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
51694
|
+
summary: 'Get one organization tag',
|
|
51695
|
+
description: 'Returns one live tag definition. Unknown, deleted, and cross-organization ids all return the same 404.',
|
|
51696
|
+
httpMethod: 'get',
|
|
51697
|
+
path: '/managed-agents/v1/tags/{tag_id}',
|
|
51698
|
+
requiredPermissions: ['managed-agents:read'],
|
|
51699
|
+
params: [
|
|
51700
|
+
{
|
|
51701
|
+
name: 'tag_id',
|
|
51702
|
+
in: 'path',
|
|
51703
|
+
required: true,
|
|
51704
|
+
type: 'string',
|
|
51705
|
+
description: 'Tag id (UUID) as returned by createTag or listTags.',
|
|
51706
|
+
format: 'uuid',
|
|
51707
|
+
},
|
|
51708
|
+
],
|
|
51709
|
+
response: {
|
|
51710
|
+
type: 'ManagedAgentsTag',
|
|
51711
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
51712
|
+
fields: [
|
|
51713
|
+
{
|
|
51714
|
+
name: 'color',
|
|
51715
|
+
required: false,
|
|
51716
|
+
type: 'string',
|
|
51717
|
+
description: 'Display color in #RRGGBB form.',
|
|
51718
|
+
minLength: 7,
|
|
51719
|
+
maxLength: 7,
|
|
51720
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
51721
|
+
},
|
|
51722
|
+
{
|
|
51723
|
+
name: 'created_at',
|
|
51724
|
+
required: false,
|
|
51725
|
+
type: 'string',
|
|
51726
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
51727
|
+
format: 'date-time',
|
|
51728
|
+
},
|
|
51729
|
+
{
|
|
51730
|
+
name: 'description',
|
|
51731
|
+
required: false,
|
|
51732
|
+
type: 'string',
|
|
51733
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
51734
|
+
maxLength: 280,
|
|
51735
|
+
},
|
|
51736
|
+
{
|
|
51737
|
+
name: 'label',
|
|
51738
|
+
required: false,
|
|
51739
|
+
type: 'string',
|
|
51740
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
51741
|
+
minLength: 1,
|
|
51742
|
+
maxLength: 32,
|
|
51743
|
+
},
|
|
51744
|
+
{
|
|
51745
|
+
name: 'organization_id',
|
|
51746
|
+
required: false,
|
|
51747
|
+
type: 'string',
|
|
51748
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
51749
|
+
},
|
|
51750
|
+
{
|
|
51751
|
+
name: 'tag_id',
|
|
51752
|
+
required: false,
|
|
51753
|
+
type: 'string',
|
|
51754
|
+
description: 'Server-assigned tag id (UUID).',
|
|
51755
|
+
format: 'uuid',
|
|
51756
|
+
},
|
|
51757
|
+
{
|
|
51758
|
+
name: 'updated_at',
|
|
51759
|
+
required: false,
|
|
51760
|
+
type: 'string',
|
|
51761
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
51762
|
+
format: 'date-time',
|
|
51763
|
+
},
|
|
51764
|
+
],
|
|
51765
|
+
},
|
|
51766
|
+
},
|
|
51265
51767
|
managedAgentsGetVault: {
|
|
51266
51768
|
operationId: 'managedAgentsGetVault',
|
|
51267
51769
|
tag: 'managed-agents',
|
|
@@ -51432,6 +51934,28 @@ export const SDK_REFERENCE = {
|
|
|
51432
51934
|
type: 'string[]',
|
|
51433
51935
|
description: 'Resources within the connection the grant is narrowed to — repositories, for GitHub. Empty means every resource the connection itself can reach, which is broader than most grants should be.',
|
|
51434
51936
|
},
|
|
51937
|
+
{
|
|
51938
|
+
name: 'labelbox_scope',
|
|
51939
|
+
required: false,
|
|
51940
|
+
type: 'ManagedAgentsLabelboxToolsScope',
|
|
51941
|
+
description: 'Organization and exact project set this credential may read through the Labelbox product-state MCP service. Required for a bearer_token credential whose mcp_server_url is that service; rejected for any other server. Replaced as a whole on update and kept when omitted.',
|
|
51942
|
+
fields: [
|
|
51943
|
+
{
|
|
51944
|
+
name: 'organization_id',
|
|
51945
|
+
required: true,
|
|
51946
|
+
type: 'string',
|
|
51947
|
+
description: 'Labelbox organization the projects belong to. Must equal the organization that owns the credential; filled in from it when omitted on write.',
|
|
51948
|
+
},
|
|
51949
|
+
{
|
|
51950
|
+
name: 'project_ids',
|
|
51951
|
+
required: true,
|
|
51952
|
+
type: 'unknown',
|
|
51953
|
+
description: 'Exact Labelbox project ids (1 to 100, each up to 128 characters of letters, digits, hyphen, or underscore) the credential may read. Validated as unique and sorted on write.',
|
|
51954
|
+
minItems: 1,
|
|
51955
|
+
maxItems: 100,
|
|
51956
|
+
},
|
|
51957
|
+
],
|
|
51958
|
+
},
|
|
51435
51959
|
{
|
|
51436
51960
|
name: 'mcp_server_url',
|
|
51437
51961
|
required: false,
|
|
@@ -51442,7 +51966,7 @@ export const SDK_REFERENCE = {
|
|
|
51442
51966
|
name: 'metadata',
|
|
51443
51967
|
required: false,
|
|
51444
51968
|
type: 'object',
|
|
51445
|
-
description: 'Free-form caller-supplied key/value labels. Stored verbatim and never interpreted by the service.',
|
|
51969
|
+
description: 'Free-form caller-supplied key/value labels. Stored verbatim and never interpreted by the service. The key labelbox_scope is reserved for the typed field of that name.',
|
|
51446
51970
|
},
|
|
51447
51971
|
{
|
|
51448
51972
|
name: 'network_mode',
|
|
@@ -51854,16 +52378,24 @@ export const SDK_REFERENCE = {
|
|
|
51854
52378
|
namespace: 'managedAgents',
|
|
51855
52379
|
method: 'listAgents',
|
|
51856
52380
|
signature: 'rl.managedAgents.listAgents()',
|
|
51857
|
-
example: 'const result = await rl.managedAgents.listAgents();',
|
|
52381
|
+
example: 'const result = await rl.managedAgents.listAgents({\n // optional: tag_ids\n});',
|
|
51858
52382
|
cliInvocation: 'rl managed-agents list-agents',
|
|
51859
52383
|
cliExample: 'rl managed-agents list-agents',
|
|
51860
52384
|
curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/agents' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
51861
52385
|
summary: 'List agents',
|
|
51862
|
-
description: 'Returns every agent in the calling organization, each resolved to its latest immutable version. Soft-deleted agents are omitted, and the response is not paginated.',
|
|
52386
|
+
description: 'Returns every agent in the calling organization, each resolved to its latest immutable version and hydrated with current tag definitions in one batch. tag_ids is a comma-separated AND filter: every returned agent carries every requested tag. Soft-deleted agents are omitted, and the response is not paginated.',
|
|
51863
52387
|
httpMethod: 'get',
|
|
51864
52388
|
path: '/managed-agents/v1/agents',
|
|
51865
52389
|
requiredPermissions: ['managed-agents:read'],
|
|
51866
|
-
params: [
|
|
52390
|
+
params: [
|
|
52391
|
+
{
|
|
52392
|
+
name: 'tag_ids',
|
|
52393
|
+
in: 'query',
|
|
52394
|
+
required: false,
|
|
52395
|
+
type: 'string',
|
|
52396
|
+
description: 'Comma-separated tag ids, with at most 32 distinct ids. Blank segments are ignored. An agent must carry every requested tag (AND semantics). Unknown or cross-organization ids return 404.',
|
|
52397
|
+
},
|
|
52398
|
+
],
|
|
51867
52399
|
response: {
|
|
51868
52400
|
type: 'ManagedAgentsAgentListResponse',
|
|
51869
52401
|
description: "Response body of GET /v1/agents. Unpaginated: the whole organization is returned in one document, so callers need no cursor here. Each row is the agent's current mutable definition; its immutable snapshots are listed by GET /v1/agents/{agent_id}/versions.",
|
|
@@ -52621,12 +53153,12 @@ export const SDK_REFERENCE = {
|
|
|
52621
53153
|
namespace: 'managedAgents',
|
|
52622
53154
|
method: 'listSessions',
|
|
52623
53155
|
signature: 'rl.managedAgents.listSessions()',
|
|
52624
|
-
example: 'const result = await rl.managedAgents.listSessions({\n // optional: status, kind, agent_id, external_source_type, external_source_id, root_only, limit\n});',
|
|
53156
|
+
example: 'const result = await rl.managedAgents.listSessions({\n // optional: status, kind, agent_id, tag_ids, external_source_type, external_source_id, root_only, limit\n});',
|
|
52625
53157
|
cliInvocation: 'rl managed-agents list-sessions',
|
|
52626
53158
|
cliExample: 'rl managed-agents list-sessions',
|
|
52627
53159
|
curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/sessions' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
52628
53160
|
summary: 'List sessions',
|
|
52629
|
-
description: 'Returns sessions in the calling organization, most recent first, filtered by any combination of status, kind, agent_id, and external source. kind accepts a comma-separated list,
|
|
53161
|
+
description: 'Returns sessions in the calling organization, most recent first, filtered by any combination of status, kind, agent_id, current agent tag_ids, and external source. kind accepts a comma-separated list, while tag_ids uses AND semantics. Capped by limit (default 100, max 1000) rather than cursor-paginated.',
|
|
52630
53162
|
httpMethod: 'get',
|
|
52631
53163
|
path: '/managed-agents/v1/sessions',
|
|
52632
53164
|
requiredPermissions: ['managed-agents:read'],
|
|
@@ -52652,6 +53184,13 @@ export const SDK_REFERENCE = {
|
|
|
52652
53184
|
type: 'string',
|
|
52653
53185
|
description: 'Filter by agent id.',
|
|
52654
53186
|
},
|
|
53187
|
+
{
|
|
53188
|
+
name: 'tag_ids',
|
|
53189
|
+
in: 'query',
|
|
53190
|
+
required: false,
|
|
53191
|
+
type: 'string',
|
|
53192
|
+
description: "Comma-separated current agent tag ids, with at most 32 distinct ids. A session row's agent must carry every requested tag (AND semantics). Unknown or cross-organization ids return 404. Tags are resolved at read time, not from the session snapshot.",
|
|
53193
|
+
},
|
|
52655
53194
|
{
|
|
52656
53195
|
name: 'external_source_type',
|
|
52657
53196
|
in: 'query',
|
|
@@ -52762,6 +53301,93 @@ export const SDK_REFERENCE = {
|
|
|
52762
53301
|
],
|
|
52763
53302
|
},
|
|
52764
53303
|
},
|
|
53304
|
+
managedAgentsListTags: {
|
|
53305
|
+
operationId: 'managedAgentsListTags',
|
|
53306
|
+
tag: 'managed-agents',
|
|
53307
|
+
callPath: ['managedAgents', 'listTags'],
|
|
53308
|
+
namespace: 'managedAgents',
|
|
53309
|
+
method: 'listTags',
|
|
53310
|
+
signature: 'rl.managedAgents.listTags()',
|
|
53311
|
+
example: 'const result = await rl.managedAgents.listTags();',
|
|
53312
|
+
cliInvocation: 'rl managed-agents list-tags',
|
|
53313
|
+
cliExample: 'rl managed-agents list-tags',
|
|
53314
|
+
curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/tags' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
53315
|
+
summary: 'List organization tags',
|
|
53316
|
+
description: 'Returns every live tag definition in the calling organization. The list is bounded by the 200-tag organization quota and is not paginated.',
|
|
53317
|
+
httpMethod: 'get',
|
|
53318
|
+
path: '/managed-agents/v1/tags',
|
|
53319
|
+
requiredPermissions: ['managed-agents:read'],
|
|
53320
|
+
params: [],
|
|
53321
|
+
response: {
|
|
53322
|
+
type: 'ManagedAgentsTagListResponse',
|
|
53323
|
+
description: "A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.",
|
|
53324
|
+
fields: [
|
|
53325
|
+
{
|
|
53326
|
+
name: 'tags',
|
|
53327
|
+
required: true,
|
|
53328
|
+
type: 'ManagedAgentsTag[]',
|
|
53329
|
+
description: 'The complete live tag set for this response. Always an array; an empty array means no definitions exist or the agent has no classifications.',
|
|
53330
|
+
items: {
|
|
53331
|
+
type: 'ManagedAgentsTag',
|
|
53332
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
53333
|
+
fields: [
|
|
53334
|
+
{
|
|
53335
|
+
name: 'color',
|
|
53336
|
+
required: false,
|
|
53337
|
+
type: 'string',
|
|
53338
|
+
description: 'Display color in #RRGGBB form.',
|
|
53339
|
+
minLength: 7,
|
|
53340
|
+
maxLength: 7,
|
|
53341
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
53342
|
+
},
|
|
53343
|
+
{
|
|
53344
|
+
name: 'created_at',
|
|
53345
|
+
required: false,
|
|
53346
|
+
type: 'string',
|
|
53347
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
53348
|
+
format: 'date-time',
|
|
53349
|
+
},
|
|
53350
|
+
{
|
|
53351
|
+
name: 'description',
|
|
53352
|
+
required: false,
|
|
53353
|
+
type: 'string',
|
|
53354
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
53355
|
+
maxLength: 280,
|
|
53356
|
+
},
|
|
53357
|
+
{
|
|
53358
|
+
name: 'label',
|
|
53359
|
+
required: false,
|
|
53360
|
+
type: 'string',
|
|
53361
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
53362
|
+
minLength: 1,
|
|
53363
|
+
maxLength: 32,
|
|
53364
|
+
},
|
|
53365
|
+
{
|
|
53366
|
+
name: 'organization_id',
|
|
53367
|
+
required: false,
|
|
53368
|
+
type: 'string',
|
|
53369
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
53370
|
+
},
|
|
53371
|
+
{
|
|
53372
|
+
name: 'tag_id',
|
|
53373
|
+
required: false,
|
|
53374
|
+
type: 'string',
|
|
53375
|
+
description: 'Server-assigned tag id (UUID).',
|
|
53376
|
+
format: 'uuid',
|
|
53377
|
+
},
|
|
53378
|
+
{
|
|
53379
|
+
name: 'updated_at',
|
|
53380
|
+
required: false,
|
|
53381
|
+
type: 'string',
|
|
53382
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
53383
|
+
format: 'date-time',
|
|
53384
|
+
},
|
|
53385
|
+
],
|
|
53386
|
+
},
|
|
53387
|
+
},
|
|
53388
|
+
],
|
|
53389
|
+
},
|
|
53390
|
+
},
|
|
52765
53391
|
managedAgentsListTriggerBindings: {
|
|
52766
53392
|
operationId: 'managedAgentsListTriggerBindings',
|
|
52767
53393
|
tag: 'managed-agents',
|
|
@@ -53198,6 +53824,145 @@ export const SDK_REFERENCE = {
|
|
|
53198
53824
|
},
|
|
53199
53825
|
],
|
|
53200
53826
|
},
|
|
53827
|
+
managedAgentsRemoveAgentTag: {
|
|
53828
|
+
operationId: 'managedAgentsRemoveAgentTag',
|
|
53829
|
+
tag: 'managed-agents',
|
|
53830
|
+
callPath: ['managedAgents', 'removeAgentTag'],
|
|
53831
|
+
namespace: 'managedAgents',
|
|
53832
|
+
method: 'removeAgentTag',
|
|
53833
|
+
signature: 'rl.managedAgents.removeAgentTag({ agent_id, tag_id })',
|
|
53834
|
+
example: "const result = await rl.managedAgents.removeAgentTag({\n agent_id: '<agent_id>',\n tag_id: '<tag_id>',\n});",
|
|
53835
|
+
cliInvocation: 'rl managed-agents remove-agent-tag',
|
|
53836
|
+
cliExample: 'rl managed-agents remove-agent-tag \\\n --agent_id <agent_id> \\\n --tag_id <tag_id>',
|
|
53837
|
+
curlExample: "curl -X DELETE 'https://api.recursion.labelbox.com/managed-agents/v1/agents/<agent_id>/tags/<tag_id>' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
53838
|
+
summary: 'Remove one tag from an agent',
|
|
53839
|
+
description: 'Removes the application and returns 204. Retrying after the relationship is already absent also returns 204; the agent and tag must still exist in the calling organization.',
|
|
53840
|
+
httpMethod: 'delete',
|
|
53841
|
+
path: '/managed-agents/v1/agents/{agent_id}/tags/{tag_id}',
|
|
53842
|
+
requiredPermissions: ['managed-agents:update'],
|
|
53843
|
+
params: [
|
|
53844
|
+
{
|
|
53845
|
+
name: 'agent_id',
|
|
53846
|
+
in: 'path',
|
|
53847
|
+
required: true,
|
|
53848
|
+
type: 'string',
|
|
53849
|
+
description: 'Agent id (UUID) as returned by createAgent or listAgents.',
|
|
53850
|
+
format: 'uuid',
|
|
53851
|
+
},
|
|
53852
|
+
{
|
|
53853
|
+
name: 'tag_id',
|
|
53854
|
+
in: 'path',
|
|
53855
|
+
required: true,
|
|
53856
|
+
type: 'string',
|
|
53857
|
+
description: 'Tag id (UUID) as returned by createTag or listTags.',
|
|
53858
|
+
format: 'uuid',
|
|
53859
|
+
},
|
|
53860
|
+
],
|
|
53861
|
+
},
|
|
53862
|
+
managedAgentsReplaceAgentTags: {
|
|
53863
|
+
operationId: 'managedAgentsReplaceAgentTags',
|
|
53864
|
+
tag: 'managed-agents',
|
|
53865
|
+
callPath: ['managedAgents', 'replaceAgentTags'],
|
|
53866
|
+
namespace: 'managedAgents',
|
|
53867
|
+
method: 'replaceAgentTags',
|
|
53868
|
+
bodyKey: 'body',
|
|
53869
|
+
signature: 'rl.managedAgents.replaceAgentTags({ agent_id, body })',
|
|
53870
|
+
example: 'const result = await rl.managedAgents.replaceAgentTags({\n agent_id: \'<agent_id>\',\n body: {\n tag_ids: [\n "example"\n ]\n },\n});',
|
|
53871
|
+
cliInvocation: 'rl managed-agents replace-agent-tags',
|
|
53872
|
+
cliExample: 'rl managed-agents replace-agent-tags \\\n --agent_id <agent_id> \\\n --from-json body.json',
|
|
53873
|
+
curlExample: "curl -X PUT 'https://api.recursion.labelbox.com/managed-agents/v1/agents/<agent_id>/tags' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"tag_ids\": [\n \"example\"\n ]\n }'",
|
|
53874
|
+
summary: "Replace an agent's complete tag set",
|
|
53875
|
+
description: "Atomically replaces the agent's classifications with tag_ids and returns the resulting full definitions. Every id must be live in the calling organization; [] clears the set. This never changes agent.updated_at or mints an AgentVersion.",
|
|
53876
|
+
httpMethod: 'put',
|
|
53877
|
+
path: '/managed-agents/v1/agents/{agent_id}/tags',
|
|
53878
|
+
requiredPermissions: ['managed-agents:update'],
|
|
53879
|
+
params: [
|
|
53880
|
+
{
|
|
53881
|
+
name: 'agent_id',
|
|
53882
|
+
in: 'path',
|
|
53883
|
+
required: true,
|
|
53884
|
+
type: 'string',
|
|
53885
|
+
description: 'Agent id (UUID) whose classifications are replaced.',
|
|
53886
|
+
format: 'uuid',
|
|
53887
|
+
},
|
|
53888
|
+
{
|
|
53889
|
+
name: 'tag_ids',
|
|
53890
|
+
in: 'body',
|
|
53891
|
+
required: true,
|
|
53892
|
+
type: 'string[]',
|
|
53893
|
+
description: "Complete replacement set of tag ids, with at most 32 distinct ids. Every id must be a live tag in the caller's organization. Duplicates are collapsed before enforcing the limit; [] removes every tag.",
|
|
53894
|
+
},
|
|
53895
|
+
],
|
|
53896
|
+
response: {
|
|
53897
|
+
type: 'ManagedAgentsTagListResponse',
|
|
53898
|
+
description: "A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.",
|
|
53899
|
+
fields: [
|
|
53900
|
+
{
|
|
53901
|
+
name: 'tags',
|
|
53902
|
+
required: true,
|
|
53903
|
+
type: 'ManagedAgentsTag[]',
|
|
53904
|
+
description: 'The complete live tag set for this response. Always an array; an empty array means no definitions exist or the agent has no classifications.',
|
|
53905
|
+
items: {
|
|
53906
|
+
type: 'ManagedAgentsTag',
|
|
53907
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
53908
|
+
fields: [
|
|
53909
|
+
{
|
|
53910
|
+
name: 'color',
|
|
53911
|
+
required: false,
|
|
53912
|
+
type: 'string',
|
|
53913
|
+
description: 'Display color in #RRGGBB form.',
|
|
53914
|
+
minLength: 7,
|
|
53915
|
+
maxLength: 7,
|
|
53916
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
53917
|
+
},
|
|
53918
|
+
{
|
|
53919
|
+
name: 'created_at',
|
|
53920
|
+
required: false,
|
|
53921
|
+
type: 'string',
|
|
53922
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
53923
|
+
format: 'date-time',
|
|
53924
|
+
},
|
|
53925
|
+
{
|
|
53926
|
+
name: 'description',
|
|
53927
|
+
required: false,
|
|
53928
|
+
type: 'string',
|
|
53929
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
53930
|
+
maxLength: 280,
|
|
53931
|
+
},
|
|
53932
|
+
{
|
|
53933
|
+
name: 'label',
|
|
53934
|
+
required: false,
|
|
53935
|
+
type: 'string',
|
|
53936
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
53937
|
+
minLength: 1,
|
|
53938
|
+
maxLength: 32,
|
|
53939
|
+
},
|
|
53940
|
+
{
|
|
53941
|
+
name: 'organization_id',
|
|
53942
|
+
required: false,
|
|
53943
|
+
type: 'string',
|
|
53944
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
53945
|
+
},
|
|
53946
|
+
{
|
|
53947
|
+
name: 'tag_id',
|
|
53948
|
+
required: false,
|
|
53949
|
+
type: 'string',
|
|
53950
|
+
description: 'Server-assigned tag id (UUID).',
|
|
53951
|
+
format: 'uuid',
|
|
53952
|
+
},
|
|
53953
|
+
{
|
|
53954
|
+
name: 'updated_at',
|
|
53955
|
+
required: false,
|
|
53956
|
+
type: 'string',
|
|
53957
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
53958
|
+
format: 'date-time',
|
|
53959
|
+
},
|
|
53960
|
+
],
|
|
53961
|
+
},
|
|
53962
|
+
},
|
|
53963
|
+
],
|
|
53964
|
+
},
|
|
53965
|
+
},
|
|
53201
53966
|
managedAgentsRestoreMemoryVersion: {
|
|
53202
53967
|
operationId: 'managedAgentsRestoreMemoryVersion',
|
|
53203
53968
|
tag: 'managed-agents',
|
|
@@ -54066,7 +54831,7 @@ export const SDK_REFERENCE = {
|
|
|
54066
54831
|
],
|
|
54067
54832
|
response: {
|
|
54068
54833
|
type: 'ManagedAgentsAgent',
|
|
54069
|
-
description: 'A configured agent: its
|
|
54834
|
+
description: 'A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.',
|
|
54070
54835
|
fields: [
|
|
54071
54836
|
{
|
|
54072
54837
|
name: 'agent_id',
|
|
@@ -54228,6 +54993,69 @@ export const SDK_REFERENCE = {
|
|
|
54228
54993
|
type: 'string',
|
|
54229
54994
|
description: 'System prompt prepended to every conversation this agent runs.',
|
|
54230
54995
|
},
|
|
54996
|
+
{
|
|
54997
|
+
name: 'tags',
|
|
54998
|
+
required: true,
|
|
54999
|
+
type: 'ManagedAgentsTag[]',
|
|
55000
|
+
description: 'Current organization-scoped classification tags applied to this agent. Always an array. Tags are mutable catalog metadata and are deliberately absent from AgentVersion and session runtime snapshots.',
|
|
55001
|
+
items: {
|
|
55002
|
+
type: 'ManagedAgentsTag',
|
|
55003
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
55004
|
+
fields: [
|
|
55005
|
+
{
|
|
55006
|
+
name: 'color',
|
|
55007
|
+
required: false,
|
|
55008
|
+
type: 'string',
|
|
55009
|
+
description: 'Display color in #RRGGBB form.',
|
|
55010
|
+
minLength: 7,
|
|
55011
|
+
maxLength: 7,
|
|
55012
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
55013
|
+
},
|
|
55014
|
+
{
|
|
55015
|
+
name: 'created_at',
|
|
55016
|
+
required: false,
|
|
55017
|
+
type: 'string',
|
|
55018
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
55019
|
+
format: 'date-time',
|
|
55020
|
+
},
|
|
55021
|
+
{
|
|
55022
|
+
name: 'description',
|
|
55023
|
+
required: false,
|
|
55024
|
+
type: 'string',
|
|
55025
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
55026
|
+
maxLength: 280,
|
|
55027
|
+
},
|
|
55028
|
+
{
|
|
55029
|
+
name: 'label',
|
|
55030
|
+
required: false,
|
|
55031
|
+
type: 'string',
|
|
55032
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
55033
|
+
minLength: 1,
|
|
55034
|
+
maxLength: 32,
|
|
55035
|
+
},
|
|
55036
|
+
{
|
|
55037
|
+
name: 'organization_id',
|
|
55038
|
+
required: false,
|
|
55039
|
+
type: 'string',
|
|
55040
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
55041
|
+
},
|
|
55042
|
+
{
|
|
55043
|
+
name: 'tag_id',
|
|
55044
|
+
required: false,
|
|
55045
|
+
type: 'string',
|
|
55046
|
+
description: 'Server-assigned tag id (UUID).',
|
|
55047
|
+
format: 'uuid',
|
|
55048
|
+
},
|
|
55049
|
+
{
|
|
55050
|
+
name: 'updated_at',
|
|
55051
|
+
required: false,
|
|
55052
|
+
type: 'string',
|
|
55053
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
55054
|
+
format: 'date-time',
|
|
55055
|
+
},
|
|
55056
|
+
],
|
|
55057
|
+
},
|
|
55058
|
+
},
|
|
54231
55059
|
{
|
|
54232
55060
|
name: 'toolsets',
|
|
54233
55061
|
required: false,
|
|
@@ -55735,6 +56563,118 @@ export const SDK_REFERENCE = {
|
|
|
55735
56563
|
],
|
|
55736
56564
|
},
|
|
55737
56565
|
},
|
|
56566
|
+
managedAgentsUpdateTag: {
|
|
56567
|
+
operationId: 'managedAgentsUpdateTag',
|
|
56568
|
+
tag: 'managed-agents',
|
|
56569
|
+
callPath: ['managedAgents', 'updateTag'],
|
|
56570
|
+
namespace: 'managedAgents',
|
|
56571
|
+
method: 'updateTag',
|
|
56572
|
+
bodyKey: 'body',
|
|
56573
|
+
signature: 'rl.managedAgents.updateTag({ tag_id, body })',
|
|
56574
|
+
example: 'const result = await rl.managedAgents.updateTag({\n tag_id: \'<tag_id>\',\n body: {\n color: "#14b8a6",\n description: "example",\n label: "example"\n },\n});',
|
|
56575
|
+
cliInvocation: 'rl managed-agents update-tag',
|
|
56576
|
+
cliExample: 'rl managed-agents update-tag \\\n --tag_id <tag_id> \\\n --from-json body.json',
|
|
56577
|
+
curlExample: 'curl -X PATCH \'https://api.recursion.labelbox.com/managed-agents/v1/tags/<tag_id>\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "color": "#14b8a6",\n "description": "example",\n "label": "example"\n }\'',
|
|
56578
|
+
summary: 'Update a tag definition',
|
|
56579
|
+
description: "Changes a tag's label, color, or description without changing any application. This does not update an agent, mint an AgentVersion, or affect a running session.",
|
|
56580
|
+
httpMethod: 'patch',
|
|
56581
|
+
path: '/managed-agents/v1/tags/{tag_id}',
|
|
56582
|
+
requiredPermissions: ['managed-agents:update'],
|
|
56583
|
+
params: [
|
|
56584
|
+
{
|
|
56585
|
+
name: 'tag_id',
|
|
56586
|
+
in: 'path',
|
|
56587
|
+
required: true,
|
|
56588
|
+
type: 'string',
|
|
56589
|
+
description: 'Tag id (UUID) as returned by createTag or listTags.',
|
|
56590
|
+
format: 'uuid',
|
|
56591
|
+
},
|
|
56592
|
+
{
|
|
56593
|
+
name: 'color',
|
|
56594
|
+
in: 'body',
|
|
56595
|
+
required: false,
|
|
56596
|
+
type: 'string',
|
|
56597
|
+
description: 'Replacement display color in #RRGGBB form. Omit to keep the current color.',
|
|
56598
|
+
minLength: 7,
|
|
56599
|
+
maxLength: 7,
|
|
56600
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
56601
|
+
},
|
|
56602
|
+
{
|
|
56603
|
+
name: 'description',
|
|
56604
|
+
in: 'body',
|
|
56605
|
+
required: false,
|
|
56606
|
+
type: 'string',
|
|
56607
|
+
description: 'Replacement description. Send an empty string to clear it; omit to keep the current description.',
|
|
56608
|
+
maxLength: 280,
|
|
56609
|
+
},
|
|
56610
|
+
{
|
|
56611
|
+
name: 'label',
|
|
56612
|
+
in: 'body',
|
|
56613
|
+
required: false,
|
|
56614
|
+
type: 'string',
|
|
56615
|
+
description: 'Replacement display label. Leading and trailing whitespace is removed. Omit to keep the current label.',
|
|
56616
|
+
minLength: 1,
|
|
56617
|
+
maxLength: 32,
|
|
56618
|
+
},
|
|
56619
|
+
],
|
|
56620
|
+
response: {
|
|
56621
|
+
type: 'ManagedAgentsTag',
|
|
56622
|
+
description: 'An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.',
|
|
56623
|
+
fields: [
|
|
56624
|
+
{
|
|
56625
|
+
name: 'color',
|
|
56626
|
+
required: false,
|
|
56627
|
+
type: 'string',
|
|
56628
|
+
description: 'Display color in #RRGGBB form.',
|
|
56629
|
+
minLength: 7,
|
|
56630
|
+
maxLength: 7,
|
|
56631
|
+
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
56632
|
+
},
|
|
56633
|
+
{
|
|
56634
|
+
name: 'created_at',
|
|
56635
|
+
required: false,
|
|
56636
|
+
type: 'string',
|
|
56637
|
+
description: 'Server-assigned RFC 3339 timestamp of when the tag was created.',
|
|
56638
|
+
format: 'date-time',
|
|
56639
|
+
},
|
|
56640
|
+
{
|
|
56641
|
+
name: 'description',
|
|
56642
|
+
required: false,
|
|
56643
|
+
type: 'string',
|
|
56644
|
+
description: 'Optional operator-facing explanation of the classification, up to 280 characters.',
|
|
56645
|
+
maxLength: 280,
|
|
56646
|
+
},
|
|
56647
|
+
{
|
|
56648
|
+
name: 'label',
|
|
56649
|
+
required: false,
|
|
56650
|
+
type: 'string',
|
|
56651
|
+
description: 'Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.',
|
|
56652
|
+
minLength: 1,
|
|
56653
|
+
maxLength: 32,
|
|
56654
|
+
},
|
|
56655
|
+
{
|
|
56656
|
+
name: 'organization_id',
|
|
56657
|
+
required: false,
|
|
56658
|
+
type: 'string',
|
|
56659
|
+
description: 'Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.',
|
|
56660
|
+
},
|
|
56661
|
+
{
|
|
56662
|
+
name: 'tag_id',
|
|
56663
|
+
required: false,
|
|
56664
|
+
type: 'string',
|
|
56665
|
+
description: 'Server-assigned tag id (UUID).',
|
|
56666
|
+
format: 'uuid',
|
|
56667
|
+
},
|
|
56668
|
+
{
|
|
56669
|
+
name: 'updated_at',
|
|
56670
|
+
required: false,
|
|
56671
|
+
type: 'string',
|
|
56672
|
+
description: 'Server-assigned RFC 3339 timestamp of the most recent definition update.',
|
|
56673
|
+
format: 'date-time',
|
|
56674
|
+
},
|
|
56675
|
+
],
|
|
56676
|
+
},
|
|
56677
|
+
},
|
|
55738
56678
|
managedAgentsUpdateTriggerBinding: {
|
|
55739
56679
|
operationId: 'managedAgentsUpdateTriggerBinding',
|
|
55740
56680
|
tag: 'managed-agents',
|
|
@@ -56015,10 +56955,10 @@ export const SDK_REFERENCE = {
|
|
|
56015
56955
|
method: 'updateVaultCredential',
|
|
56016
56956
|
bodyKey: 'body',
|
|
56017
56957
|
signature: 'rl.managedAgents.updateVaultCredential({ vault_id, credential_id, body })',
|
|
56018
|
-
example: 'const result = await rl.managedAgents.updateVaultCredential({\n vault_id: \'<vault_id>\',\n credential_id: \'<credential_id>\',\n body: {\n allowed_hosts: [\n "example"\n ],\n display_name: "example-name",\n injection_locations: [\n "headers"\n ],\n integration_permission: "example",\n integration_resources: [\n "example"\n ],\n metadata: {\n key: "example"\n },\n network_mode: "limited",\n secret_name: "example",\n secret_ref: "example",\n secret_value: "example"\n },\n});',
|
|
56958
|
+
example: 'const result = await rl.managedAgents.updateVaultCredential({\n vault_id: \'<vault_id>\',\n credential_id: \'<credential_id>\',\n body: {\n allowed_hosts: [\n "example"\n ],\n display_name: "example-name",\n injection_locations: [\n "headers"\n ],\n integration_permission: "example",\n integration_resources: [\n "example"\n ],\n labelbox_scope: {\n organization_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n project_ids: [\n "example"\n ]\n },\n metadata: {\n key: "example"\n },\n network_mode: "limited",\n secret_name: "example",\n secret_ref: "example",\n secret_value: "example"\n },\n});',
|
|
56019
56959
|
cliInvocation: 'rl managed-agents update-vault-credential',
|
|
56020
56960
|
cliExample: 'rl managed-agents update-vault-credential \\\n --vault_id <vault_id> \\\n --credential_id <credential_id> \\\n --from-json body.json',
|
|
56021
|
-
curlExample: 'curl -X PATCH \'https://api.recursion.labelbox.com/managed-agents/v1/vaults/<vault_id>/credentials/<credential_id>\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "allowed_hosts": [\n "example"\n ],\n "display_name": "example-name",\n "injection_locations": [\n "headers"\n ],\n "integration_permission": "example",\n "integration_resources": [\n "example"\n ],\n "metadata": {\n "key": "example"\n },\n "network_mode": "limited",\n "secret_name": "example",\n "secret_ref": "example",\n "secret_value": "example"\n }\'',
|
|
56961
|
+
curlExample: 'curl -X PATCH \'https://api.recursion.labelbox.com/managed-agents/v1/vaults/<vault_id>/credentials/<credential_id>\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "allowed_hosts": [\n "example"\n ],\n "display_name": "example-name",\n "injection_locations": [\n "headers"\n ],\n "integration_permission": "example",\n "integration_resources": [\n "example"\n ],\n "labelbox_scope": {\n "organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "project_ids": [\n "example"\n ]\n },\n "metadata": {\n "key": "example"\n },\n "network_mode": "limited",\n "secret_name": "example",\n "secret_ref": "example",\n "secret_value": "example"\n }\'',
|
|
56022
56962
|
summary: 'Rename a credential, rotate its reference, or change its egress bounds',
|
|
56023
56963
|
description: "Renames a credential, rotates the secret it points at, or narrows its egress bounds, and returns the stored reference; omitted fields keep their current values. An integration credential's connection cannot be repointed, because that would silently change which account the agent acts as.",
|
|
56024
56964
|
httpMethod: 'patch',
|
|
@@ -56082,12 +57022,35 @@ export const SDK_REFERENCE = {
|
|
|
56082
57022
|
type: 'string[]',
|
|
56083
57023
|
description: 'Replacement resource allowlist for an integration grant.',
|
|
56084
57024
|
},
|
|
57025
|
+
{
|
|
57026
|
+
name: 'labelbox_scope',
|
|
57027
|
+
in: 'body',
|
|
57028
|
+
required: false,
|
|
57029
|
+
type: 'ManagedAgentsLabelboxScopeRequest',
|
|
57030
|
+
description: 'Replacement Labelbox scope for a credential to the Labelbox product-state service. Sent as a whole object, not merged; omit to keep the current one. It cannot be cleared: delete and recreate the credential instead.',
|
|
57031
|
+
fields: [
|
|
57032
|
+
{
|
|
57033
|
+
name: 'organization_id',
|
|
57034
|
+
required: false,
|
|
57035
|
+
type: 'string',
|
|
57036
|
+
description: 'Labelbox organization the projects belong to. Optional: filled in from the organization that owns the credential, and rejected if it names any other.',
|
|
57037
|
+
},
|
|
57038
|
+
{
|
|
57039
|
+
name: 'project_ids',
|
|
57040
|
+
required: true,
|
|
57041
|
+
type: 'unknown',
|
|
57042
|
+
description: 'Exact Labelbox project ids (1 to 100, each up to 128 characters of letters, digits, hyphen, or underscore) the credential may read. Duplicates are rejected.',
|
|
57043
|
+
minItems: 1,
|
|
57044
|
+
maxItems: 100,
|
|
57045
|
+
},
|
|
57046
|
+
],
|
|
57047
|
+
},
|
|
56085
57048
|
{
|
|
56086
57049
|
name: 'metadata',
|
|
56087
57050
|
in: 'body',
|
|
56088
57051
|
required: false,
|
|
56089
57052
|
type: 'object',
|
|
56090
|
-
description: 'Replacement free-form caller-owned JSON. Sent as a whole object, not merged; omit to keep the current value.',
|
|
57053
|
+
description: 'Replacement free-form caller-owned JSON. Sent as a whole object, not merged; omit to keep the current value. The key labelbox_scope is reserved for the typed field.',
|
|
56091
57054
|
},
|
|
56092
57055
|
{
|
|
56093
57056
|
name: 'network_mode',
|
|
@@ -56178,6 +57141,28 @@ export const SDK_REFERENCE = {
|
|
|
56178
57141
|
type: 'string[]',
|
|
56179
57142
|
description: 'Resources within the connection the grant is narrowed to — repositories, for GitHub. Empty means every resource the connection itself can reach, which is broader than most grants should be.',
|
|
56180
57143
|
},
|
|
57144
|
+
{
|
|
57145
|
+
name: 'labelbox_scope',
|
|
57146
|
+
required: false,
|
|
57147
|
+
type: 'ManagedAgentsLabelboxToolsScope',
|
|
57148
|
+
description: 'Organization and exact project set this credential may read through the Labelbox product-state MCP service. Required for a bearer_token credential whose mcp_server_url is that service; rejected for any other server. Replaced as a whole on update and kept when omitted.',
|
|
57149
|
+
fields: [
|
|
57150
|
+
{
|
|
57151
|
+
name: 'organization_id',
|
|
57152
|
+
required: true,
|
|
57153
|
+
type: 'string',
|
|
57154
|
+
description: 'Labelbox organization the projects belong to. Must equal the organization that owns the credential; filled in from it when omitted on write.',
|
|
57155
|
+
},
|
|
57156
|
+
{
|
|
57157
|
+
name: 'project_ids',
|
|
57158
|
+
required: true,
|
|
57159
|
+
type: 'unknown',
|
|
57160
|
+
description: 'Exact Labelbox project ids (1 to 100, each up to 128 characters of letters, digits, hyphen, or underscore) the credential may read. Validated as unique and sorted on write.',
|
|
57161
|
+
minItems: 1,
|
|
57162
|
+
maxItems: 100,
|
|
57163
|
+
},
|
|
57164
|
+
],
|
|
57165
|
+
},
|
|
56181
57166
|
{
|
|
56182
57167
|
name: 'mcp_server_url',
|
|
56183
57168
|
required: false,
|
|
@@ -56188,7 +57173,7 @@ export const SDK_REFERENCE = {
|
|
|
56188
57173
|
name: 'metadata',
|
|
56189
57174
|
required: false,
|
|
56190
57175
|
type: 'object',
|
|
56191
|
-
description: 'Free-form caller-supplied key/value labels. Stored verbatim and never interpreted by the service.',
|
|
57176
|
+
description: 'Free-form caller-supplied key/value labels. Stored verbatim and never interpreted by the service. The key labelbox_scope is reserved for the typed field of that name.',
|
|
56192
57177
|
},
|
|
56193
57178
|
{
|
|
56194
57179
|
name: 'network_mode',
|