@labelbox/recursion-sdk 0.0.170 → 0.0.172

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.
@@ -46993,10 +46993,10 @@ export const SDK_REFERENCE = {
46993
46993
  method: 'createVaultCredential',
46994
46994
  bodyKey: 'body',
46995
46995
  signature: 'rl.managedAgents.createVaultCredential({ vault_id, body })',
46996
- 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});',
46996
+ 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 mode: "projects",\n project_ids: [\n "project-id"\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});',
46997
46997
  cliInvocation: 'rl managed-agents create-vault-credential',
46998
46998
  cliExample: "rl managed-agents create-vault-credential \\\n --vault_id <vault_id> \\\n --credential_type 'bearer_token' \\\n --from-json body.json",
46999
- 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 }\'',
46999
+ 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 "mode": "projects",\n "project_ids": [\n "project-id"\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 }\'',
47000
47000
  summary: 'Register a credential reference in a vault',
47001
47001
  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.",
47002
47002
  httpMethod: 'post',
@@ -47072,8 +47072,48 @@ export const SDK_REFERENCE = {
47072
47072
  in: 'body',
47073
47073
  required: false,
47074
47074
  type: 'ManagedAgentsLabelboxScopeRequest',
47075
- 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.",
47075
+ description: 'Labelbox product-state authorization ceiling: either exact projects or organization-wide reads restricted to one exact internal Slack audience. Required when credential_type is bearer_token and mcp_server_url is that service; rejected for any other server.',
47076
47076
  fields: [
47077
+ {
47078
+ name: 'audience',
47079
+ required: false,
47080
+ type: 'ManagedAgentsLabelboxAudienceRequest',
47081
+ description: 'Organization mode requires one exact internal Slack binding audience. Forbidden in projects mode.',
47082
+ fields: [
47083
+ {
47084
+ name: 'binding_id',
47085
+ required: true,
47086
+ type: 'string',
47087
+ description: 'Exact Slack trigger binding id authorized to use the credential.',
47088
+ },
47089
+ {
47090
+ name: 'channel_id',
47091
+ required: true,
47092
+ type: 'string',
47093
+ description: 'Exact non-shared Slack channel id used by the binding.',
47094
+ },
47095
+ {
47096
+ name: 'connection_id',
47097
+ required: true,
47098
+ type: 'string',
47099
+ description: 'Exact Slack integration connection id used by the binding.',
47100
+ },
47101
+ {
47102
+ name: 'kind',
47103
+ required: true,
47104
+ type: 'string',
47105
+ description: 'Organization-wide Labelbox access is available only to an exact internal Slack binding.',
47106
+ enum: ['internal_slack_binding'],
47107
+ },
47108
+ ],
47109
+ },
47110
+ {
47111
+ name: 'mode',
47112
+ required: false,
47113
+ type: 'string',
47114
+ description: 'Scope mode. Omit for the backward-compatible projects mode.',
47115
+ enum: ['projects', 'organization'],
47116
+ },
47077
47117
  {
47078
47118
  name: 'organization_id',
47079
47119
  required: false,
@@ -47082,9 +47122,9 @@ export const SDK_REFERENCE = {
47082
47122
  },
47083
47123
  {
47084
47124
  name: 'project_ids',
47085
- required: true,
47086
- type: 'unknown',
47087
- 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.',
47125
+ required: false,
47126
+ type: 'string[]',
47127
+ description: 'Projects mode requires exactly 1 to 100 project ids. Forbidden in organization mode.',
47088
47128
  minItems: 1,
47089
47129
  maxItems: 100,
47090
47130
  },
@@ -47197,8 +47237,48 @@ export const SDK_REFERENCE = {
47197
47237
  name: 'labelbox_scope',
47198
47238
  required: false,
47199
47239
  type: 'ManagedAgentsLabelboxToolsScope',
47200
- 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.',
47240
+ description: 'Labelbox product-state authorization ceiling: either exact projects or organization-wide reads restricted to one exact internal Slack audience. 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.',
47201
47241
  fields: [
47242
+ {
47243
+ name: 'audience',
47244
+ required: false,
47245
+ type: 'ManagedAgentsLabelboxToolsAudience',
47246
+ description: 'Organization-mode audience: the exact internal, non-shared Slack binding allowed to use this credential. Forbidden in projects mode.',
47247
+ fields: [
47248
+ {
47249
+ name: 'binding_id',
47250
+ required: true,
47251
+ type: 'string',
47252
+ description: 'Exact Slack trigger binding id authorized to use this credential.',
47253
+ },
47254
+ {
47255
+ name: 'channel_id',
47256
+ required: true,
47257
+ type: 'string',
47258
+ description: 'Exact non-shared Slack channel id used by the binding.',
47259
+ },
47260
+ {
47261
+ name: 'connection_id',
47262
+ required: true,
47263
+ type: 'string',
47264
+ description: 'Exact Slack integration connection id used by the binding.',
47265
+ },
47266
+ {
47267
+ name: 'kind',
47268
+ required: true,
47269
+ type: 'string',
47270
+ description: 'Trusted session audience kind. Organization-wide scope currently supports only one exact internal Slack trigger binding.',
47271
+ enum: ['internal_slack_binding'],
47272
+ },
47273
+ ],
47274
+ },
47275
+ {
47276
+ name: 'mode',
47277
+ required: false,
47278
+ type: 'string',
47279
+ description: 'Scope mode. Omitted legacy values are canonicalized to projects.',
47280
+ enum: ['projects', 'organization'],
47281
+ },
47202
47282
  {
47203
47283
  name: 'organization_id',
47204
47284
  required: true,
@@ -47207,9 +47287,9 @@ export const SDK_REFERENCE = {
47207
47287
  },
47208
47288
  {
47209
47289
  name: 'project_ids',
47210
- required: true,
47211
- type: 'unknown',
47212
- 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.',
47290
+ required: false,
47291
+ type: 'string[]',
47292
+ description: 'Projects-mode ceiling: exactly 1 to 100 project ids, each up to 128 characters of letters, digits, hyphen, or underscore. Forbidden in organization mode; validated as unique and sorted on write.',
47213
47293
  minItems: 1,
47214
47294
  maxItems: 100,
47215
47295
  },
@@ -52583,8 +52663,48 @@ export const SDK_REFERENCE = {
52583
52663
  name: 'labelbox_scope',
52584
52664
  required: false,
52585
52665
  type: 'ManagedAgentsLabelboxToolsScope',
52586
- 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.',
52666
+ description: 'Labelbox product-state authorization ceiling: either exact projects or organization-wide reads restricted to one exact internal Slack audience. 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.',
52587
52667
  fields: [
52668
+ {
52669
+ name: 'audience',
52670
+ required: false,
52671
+ type: 'ManagedAgentsLabelboxToolsAudience',
52672
+ description: 'Organization-mode audience: the exact internal, non-shared Slack binding allowed to use this credential. Forbidden in projects mode.',
52673
+ fields: [
52674
+ {
52675
+ name: 'binding_id',
52676
+ required: true,
52677
+ type: 'string',
52678
+ description: 'Exact Slack trigger binding id authorized to use this credential.',
52679
+ },
52680
+ {
52681
+ name: 'channel_id',
52682
+ required: true,
52683
+ type: 'string',
52684
+ description: 'Exact non-shared Slack channel id used by the binding.',
52685
+ },
52686
+ {
52687
+ name: 'connection_id',
52688
+ required: true,
52689
+ type: 'string',
52690
+ description: 'Exact Slack integration connection id used by the binding.',
52691
+ },
52692
+ {
52693
+ name: 'kind',
52694
+ required: true,
52695
+ type: 'string',
52696
+ description: 'Trusted session audience kind. Organization-wide scope currently supports only one exact internal Slack trigger binding.',
52697
+ enum: ['internal_slack_binding'],
52698
+ },
52699
+ ],
52700
+ },
52701
+ {
52702
+ name: 'mode',
52703
+ required: false,
52704
+ type: 'string',
52705
+ description: 'Scope mode. Omitted legacy values are canonicalized to projects.',
52706
+ enum: ['projects', 'organization'],
52707
+ },
52588
52708
  {
52589
52709
  name: 'organization_id',
52590
52710
  required: true,
@@ -52593,9 +52713,9 @@ export const SDK_REFERENCE = {
52593
52713
  },
52594
52714
  {
52595
52715
  name: 'project_ids',
52596
- required: true,
52597
- type: 'unknown',
52598
- 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.',
52716
+ required: false,
52717
+ type: 'string[]',
52718
+ description: 'Projects-mode ceiling: exactly 1 to 100 project ids, each up to 128 characters of letters, digits, hyphen, or underscore. Forbidden in organization mode; validated as unique and sorted on write.',
52599
52719
  minItems: 1,
52600
52720
  maxItems: 100,
52601
52721
  },
@@ -57827,10 +57947,10 @@ export const SDK_REFERENCE = {
57827
57947
  method: 'updateVaultCredential',
57828
57948
  bodyKey: 'body',
57829
57949
  signature: 'rl.managedAgents.updateVaultCredential({ vault_id, credential_id, body })',
57830
- 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});',
57950
+ 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 mode: "projects",\n project_ids: [\n "project-id"\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});',
57831
57951
  cliInvocation: 'rl managed-agents update-vault-credential',
57832
57952
  cliExample: 'rl managed-agents update-vault-credential \\\n --vault_id <vault_id> \\\n --credential_id <credential_id> \\\n --from-json body.json',
57833
- 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 }\'',
57953
+ 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 "mode": "projects",\n "project_ids": [\n "project-id"\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 }\'',
57834
57954
  summary: 'Rename a credential, rotate its reference, or change its egress bounds',
57835
57955
  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.",
57836
57956
  httpMethod: 'patch',
@@ -57901,6 +58021,46 @@ export const SDK_REFERENCE = {
57901
58021
  type: 'ManagedAgentsLabelboxScopeRequest',
57902
58022
  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.',
57903
58023
  fields: [
58024
+ {
58025
+ name: 'audience',
58026
+ required: false,
58027
+ type: 'ManagedAgentsLabelboxAudienceRequest',
58028
+ description: 'Organization mode requires one exact internal Slack binding audience. Forbidden in projects mode.',
58029
+ fields: [
58030
+ {
58031
+ name: 'binding_id',
58032
+ required: true,
58033
+ type: 'string',
58034
+ description: 'Exact Slack trigger binding id authorized to use the credential.',
58035
+ },
58036
+ {
58037
+ name: 'channel_id',
58038
+ required: true,
58039
+ type: 'string',
58040
+ description: 'Exact non-shared Slack channel id used by the binding.',
58041
+ },
58042
+ {
58043
+ name: 'connection_id',
58044
+ required: true,
58045
+ type: 'string',
58046
+ description: 'Exact Slack integration connection id used by the binding.',
58047
+ },
58048
+ {
58049
+ name: 'kind',
58050
+ required: true,
58051
+ type: 'string',
58052
+ description: 'Organization-wide Labelbox access is available only to an exact internal Slack binding.',
58053
+ enum: ['internal_slack_binding'],
58054
+ },
58055
+ ],
58056
+ },
58057
+ {
58058
+ name: 'mode',
58059
+ required: false,
58060
+ type: 'string',
58061
+ description: 'Scope mode. Omit for the backward-compatible projects mode.',
58062
+ enum: ['projects', 'organization'],
58063
+ },
57904
58064
  {
57905
58065
  name: 'organization_id',
57906
58066
  required: false,
@@ -57909,9 +58069,9 @@ export const SDK_REFERENCE = {
57909
58069
  },
57910
58070
  {
57911
58071
  name: 'project_ids',
57912
- required: true,
57913
- type: 'unknown',
57914
- 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.',
58072
+ required: false,
58073
+ type: 'string[]',
58074
+ description: 'Projects mode requires exactly 1 to 100 project ids. Forbidden in organization mode.',
57915
58075
  minItems: 1,
57916
58076
  maxItems: 100,
57917
58077
  },
@@ -58017,8 +58177,48 @@ export const SDK_REFERENCE = {
58017
58177
  name: 'labelbox_scope',
58018
58178
  required: false,
58019
58179
  type: 'ManagedAgentsLabelboxToolsScope',
58020
- 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.',
58180
+ description: 'Labelbox product-state authorization ceiling: either exact projects or organization-wide reads restricted to one exact internal Slack audience. 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.',
58021
58181
  fields: [
58182
+ {
58183
+ name: 'audience',
58184
+ required: false,
58185
+ type: 'ManagedAgentsLabelboxToolsAudience',
58186
+ description: 'Organization-mode audience: the exact internal, non-shared Slack binding allowed to use this credential. Forbidden in projects mode.',
58187
+ fields: [
58188
+ {
58189
+ name: 'binding_id',
58190
+ required: true,
58191
+ type: 'string',
58192
+ description: 'Exact Slack trigger binding id authorized to use this credential.',
58193
+ },
58194
+ {
58195
+ name: 'channel_id',
58196
+ required: true,
58197
+ type: 'string',
58198
+ description: 'Exact non-shared Slack channel id used by the binding.',
58199
+ },
58200
+ {
58201
+ name: 'connection_id',
58202
+ required: true,
58203
+ type: 'string',
58204
+ description: 'Exact Slack integration connection id used by the binding.',
58205
+ },
58206
+ {
58207
+ name: 'kind',
58208
+ required: true,
58209
+ type: 'string',
58210
+ description: 'Trusted session audience kind. Organization-wide scope currently supports only one exact internal Slack trigger binding.',
58211
+ enum: ['internal_slack_binding'],
58212
+ },
58213
+ ],
58214
+ },
58215
+ {
58216
+ name: 'mode',
58217
+ required: false,
58218
+ type: 'string',
58219
+ description: 'Scope mode. Omitted legacy values are canonicalized to projects.',
58220
+ enum: ['projects', 'organization'],
58221
+ },
58022
58222
  {
58023
58223
  name: 'organization_id',
58024
58224
  required: true,
@@ -58027,9 +58227,9 @@ export const SDK_REFERENCE = {
58027
58227
  },
58028
58228
  {
58029
58229
  name: 'project_ids',
58030
- required: true,
58031
- type: 'unknown',
58032
- 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.',
58230
+ required: false,
58231
+ type: 'string[]',
58232
+ description: 'Projects-mode ceiling: exactly 1 to 100 project ids, each up to 128 characters of letters, digits, hyphen, or underscore. Forbidden in organization mode; validated as unique and sorted on write.',
58033
58233
  minItems: 1,
58034
58234
  maxItems: 100,
58035
58235
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@labelbox/recursion-sdk",
3
- "version": "0.0.170",
3
+ "version": "0.0.172",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",