@labelbox/rl-sdk 0.0.145 → 0.0.147
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 +2 -11
- package/dist/generated/sdk.gen.js +0 -20
- package/dist/generated/types.gen.d.ts +31 -171
- package/dist/reference/resources-reference.generated.js +0 -1
- package/dist/reference/sdk-reference.generated.js +24 -336
- package/package.json +1 -1
|
@@ -45654,10 +45654,10 @@ export const SDK_REFERENCE = {
|
|
|
45654
45654
|
method: 'createMemory',
|
|
45655
45655
|
bodyKey: 'body',
|
|
45656
45656
|
signature: 'rl.managedAgents.createMemory({ memory_store_id, body })',
|
|
45657
|
-
example: 'const result = await rl.managedAgents.createMemory({\n memory_store_id: \'<memory_store_id>\',\n body: {\n content: "example",\n
|
|
45657
|
+
example: 'const result = await rl.managedAgents.createMemory({\n memory_store_id: \'<memory_store_id>\',\n body: {\n content: "example",\n path: "example",\n summary: "example"\n },\n});',
|
|
45658
45658
|
cliInvocation: 'rl managed-agents create-memory',
|
|
45659
|
-
cliExample:
|
|
45660
|
-
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/memory_stores/<memory_store_id>/memories\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "content": "example",\n "
|
|
45659
|
+
cliExample: "rl managed-agents create-memory \\\n --memory_store_id <memory_store_id> \\\n --content 'example' \\\n --path 'example' \\\n --summary 'example'",
|
|
45660
|
+
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/memory_stores/<memory_store_id>/memories\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "content": "example",\n "path": "example",\n "summary": "example"\n }\'',
|
|
45661
45661
|
summary: 'Create a memory',
|
|
45662
45662
|
description: 'Adds one memory to a curated store. Does not overwrite: changing an existing path is an update, so a retried request cannot destroy content. A store written by the consolidation loop is not hand-editable, because editing it would put your text under a provenance saying the platform wrote it and the next consolidation would read it as its own prior conclusion.',
|
|
45663
45663
|
httpMethod: 'post',
|
|
@@ -45675,28 +45675,21 @@ export const SDK_REFERENCE = {
|
|
|
45675
45675
|
{
|
|
45676
45676
|
name: 'content',
|
|
45677
45677
|
in: 'body',
|
|
45678
|
-
required:
|
|
45678
|
+
required: true,
|
|
45679
45679
|
type: 'string',
|
|
45680
45680
|
description: 'Full text of the memory. Capped at 100 kB; memory works better as many small focused documents.',
|
|
45681
45681
|
},
|
|
45682
|
-
{
|
|
45683
|
-
name: 'content_sha256',
|
|
45684
|
-
in: 'body',
|
|
45685
|
-
required: false,
|
|
45686
|
-
type: 'string',
|
|
45687
|
-
description: 'Apply only if the stored content hash still matches this value. On mismatch the request is a 409 and the caller should re-read and retry.',
|
|
45688
|
-
},
|
|
45689
45682
|
{
|
|
45690
45683
|
name: 'path',
|
|
45691
45684
|
in: 'body',
|
|
45692
|
-
required:
|
|
45685
|
+
required: true,
|
|
45693
45686
|
type: 'string',
|
|
45694
|
-
description: 'Address within the store, e.g. /conventions/testing.md.
|
|
45687
|
+
description: 'Address within the store, e.g. /conventions/testing.md.',
|
|
45695
45688
|
},
|
|
45696
45689
|
{
|
|
45697
45690
|
name: 'summary',
|
|
45698
45691
|
in: 'body',
|
|
45699
|
-
required:
|
|
45692
|
+
required: true,
|
|
45700
45693
|
type: 'string',
|
|
45701
45694
|
description: 'One line describing what this memory says, shown in search results and the console.',
|
|
45702
45695
|
},
|
|
@@ -53682,226 +53675,6 @@ export const SDK_REFERENCE = {
|
|
|
53682
53675
|
],
|
|
53683
53676
|
},
|
|
53684
53677
|
},
|
|
53685
|
-
managedAgentsStartPullRequestReview: {
|
|
53686
|
-
operationId: 'managedAgentsStartPullRequestReview',
|
|
53687
|
-
tag: 'managed-agents',
|
|
53688
|
-
callPath: ['managedAgents', 'startPullRequestReview'],
|
|
53689
|
-
namespace: 'managedAgents',
|
|
53690
|
-
method: 'startPullRequestReview',
|
|
53691
|
-
bodyKey: 'body',
|
|
53692
|
-
signature: 'rl.managedAgents.startPullRequestReview({ body })',
|
|
53693
|
-
example: 'const result = await rl.managedAgents.startPullRequestReview({\n body: {\n agent_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n capture_patch: true,\n connection_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n environment_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n idempotency_key: "example",\n owner: "example",\n publish_review: true,\n pull_request_number: 1,\n repository: "example"\n },\n});',
|
|
53694
|
-
cliInvocation: 'rl managed-agents start-pull-request-review',
|
|
53695
|
-
cliExample: "rl managed-agents start-pull-request-review \\\n --agent_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --connection_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --environment_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --owner 'example' \\\n --pull_request_number 1 \\\n --repository 'example' \\\n --from-json body.json",
|
|
53696
|
-
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/repository-automation/pull-request-reviews\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "capture_patch": true,\n "connection_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "idempotency_key": "example",\n "owner": "example",\n "publish_review": true,\n "pull_request_number": 1,\n "repository": "example"\n }\'',
|
|
53697
|
-
summary: 'Start an exact-SHA GitHub pull request review',
|
|
53698
|
-
description: 'Reachable with a Labelbox API key through this API, which authorizes the caller and then calls the upstream service with its own credential. The upstream operation is not callable with a customer key directly.',
|
|
53699
|
-
httpMethod: 'post',
|
|
53700
|
-
path: '/managed-agents/v1/repository-automation/pull-request-reviews',
|
|
53701
|
-
requiredPermissions: ['managed-agents:create'],
|
|
53702
|
-
params: [
|
|
53703
|
-
{
|
|
53704
|
-
name: 'agent_id',
|
|
53705
|
-
in: 'body',
|
|
53706
|
-
required: true,
|
|
53707
|
-
type: 'string',
|
|
53708
|
-
description: 'Agent (UUID) that performs the review, as returned by listAgents.',
|
|
53709
|
-
},
|
|
53710
|
-
{
|
|
53711
|
-
name: 'capture_patch',
|
|
53712
|
-
in: 'body',
|
|
53713
|
-
required: false,
|
|
53714
|
-
type: 'unknown',
|
|
53715
|
-
description: "Capture the agent's final working-tree patch. Defaults to true.",
|
|
53716
|
-
},
|
|
53717
|
-
{
|
|
53718
|
-
name: 'connection_id',
|
|
53719
|
-
in: 'body',
|
|
53720
|
-
required: true,
|
|
53721
|
-
type: 'string',
|
|
53722
|
-
description: 'Organization-owned GitHub App connection used for trusted checkout staging.',
|
|
53723
|
-
},
|
|
53724
|
-
{
|
|
53725
|
-
name: 'environment_id',
|
|
53726
|
-
in: 'body',
|
|
53727
|
-
required: true,
|
|
53728
|
-
type: 'string',
|
|
53729
|
-
description: 'Environment (UUID) the review session runs in, as returned by listEnvironments.',
|
|
53730
|
-
},
|
|
53731
|
-
{
|
|
53732
|
-
name: 'idempotency_key',
|
|
53733
|
-
in: 'body',
|
|
53734
|
-
required: false,
|
|
53735
|
-
type: 'string',
|
|
53736
|
-
description: 'Fallback for the Idempotency-Key header, for browser clients whose cross-origin CORS preflight cannot allow that header. Ignored when the header is present; the header always wins.',
|
|
53737
|
-
},
|
|
53738
|
-
{
|
|
53739
|
-
name: 'owner',
|
|
53740
|
-
in: 'body',
|
|
53741
|
-
required: true,
|
|
53742
|
-
type: 'string',
|
|
53743
|
-
description: 'GitHub repository owner. Must match the connected App installation account.',
|
|
53744
|
-
},
|
|
53745
|
-
{
|
|
53746
|
-
name: 'publish_review',
|
|
53747
|
-
in: 'body',
|
|
53748
|
-
required: false,
|
|
53749
|
-
type: 'unknown',
|
|
53750
|
-
description: 'Publish the validated result to the pull request. Defaults to true.',
|
|
53751
|
-
},
|
|
53752
|
-
{
|
|
53753
|
-
name: 'pull_request_number',
|
|
53754
|
-
in: 'body',
|
|
53755
|
-
required: true,
|
|
53756
|
-
type: 'integer',
|
|
53757
|
-
description: 'Positive GitHub pull request number.',
|
|
53758
|
-
format: 'int64',
|
|
53759
|
-
},
|
|
53760
|
-
{
|
|
53761
|
-
name: 'repository',
|
|
53762
|
-
in: 'body',
|
|
53763
|
-
required: true,
|
|
53764
|
-
type: 'string',
|
|
53765
|
-
description: 'GitHub repository name without owner.',
|
|
53766
|
-
},
|
|
53767
|
-
],
|
|
53768
|
-
response: {
|
|
53769
|
-
type: 'ManagedAgentsPullRequestReviewStartedResponse',
|
|
53770
|
-
description: 'Acknowledgement that a pull request review session was accepted. The review runs asynchronously: follow status_path for the live timeline, and read the result once the session completes.',
|
|
53771
|
-
fields: [
|
|
53772
|
-
{
|
|
53773
|
-
name: 'session_id',
|
|
53774
|
-
required: false,
|
|
53775
|
-
type: 'string',
|
|
53776
|
-
description: 'Managed session (UUID) running the review. Derived from the idempotency key, so a replay of the same request returns the same session.',
|
|
53777
|
-
},
|
|
53778
|
-
{
|
|
53779
|
-
name: 'source',
|
|
53780
|
-
required: false,
|
|
53781
|
-
type: 'ManagedAgentsPullRequestReviewSource',
|
|
53782
|
-
description: 'The durable review input recorded on the session, including the exact commits it is bound to.',
|
|
53783
|
-
fields: [
|
|
53784
|
-
{
|
|
53785
|
-
name: 'connection_id',
|
|
53786
|
-
required: false,
|
|
53787
|
-
type: 'string',
|
|
53788
|
-
description: 'Organization-scoped integration connection (UUID) whose credentials stage the checkout. Only the id is stored; the token itself is minted just in time.',
|
|
53789
|
-
},
|
|
53790
|
-
{
|
|
53791
|
-
name: 'kind',
|
|
53792
|
-
required: false,
|
|
53793
|
-
type: 'string',
|
|
53794
|
-
description: 'Repository automation strategy this session runs. pull_request_review is the only supported value.',
|
|
53795
|
-
},
|
|
53796
|
-
{
|
|
53797
|
-
name: 'outputs',
|
|
53798
|
-
required: false,
|
|
53799
|
-
type: 'ManagedAgentsOutputPolicy',
|
|
53800
|
-
description: 'What this run is allowed to publish, snapshotted when the session started.',
|
|
53801
|
-
fields: [
|
|
53802
|
-
{
|
|
53803
|
-
name: 'capture_patch',
|
|
53804
|
-
required: false,
|
|
53805
|
-
type: 'boolean',
|
|
53806
|
-
description: "Whether the run captures the agent's final working-tree patch as a transcript artifact.",
|
|
53807
|
-
},
|
|
53808
|
-
{
|
|
53809
|
-
name: 'publish_review',
|
|
53810
|
-
required: false,
|
|
53811
|
-
type: 'boolean',
|
|
53812
|
-
description: 'Whether the run publishes its validated result to the pull request as a GitHub review.',
|
|
53813
|
-
},
|
|
53814
|
-
],
|
|
53815
|
-
},
|
|
53816
|
-
{
|
|
53817
|
-
name: 'target',
|
|
53818
|
-
required: false,
|
|
53819
|
-
type: 'ManagedAgentsPullRequestTarget',
|
|
53820
|
-
description: 'The exact pull request and commit pair this session is bound to.',
|
|
53821
|
-
fields: [
|
|
53822
|
-
{
|
|
53823
|
-
name: 'base_sha',
|
|
53824
|
-
required: false,
|
|
53825
|
-
type: 'string',
|
|
53826
|
-
description: 'Base commit the pull request targets, as a lowercase 40-character hex SHA. Always differs from head_sha.',
|
|
53827
|
-
},
|
|
53828
|
-
{
|
|
53829
|
-
name: 'head_sha',
|
|
53830
|
-
required: false,
|
|
53831
|
-
type: 'string',
|
|
53832
|
-
description: 'Head commit under review, as a lowercase 40-character hex SHA. The sandbox stages exactly this tree, so the review cannot drift onto a later push.',
|
|
53833
|
-
},
|
|
53834
|
-
{
|
|
53835
|
-
name: 'number',
|
|
53836
|
-
required: false,
|
|
53837
|
-
type: 'integer',
|
|
53838
|
-
description: 'Pull request number within the repository.',
|
|
53839
|
-
format: 'int64',
|
|
53840
|
-
},
|
|
53841
|
-
{
|
|
53842
|
-
name: 'owner',
|
|
53843
|
-
required: false,
|
|
53844
|
-
type: 'string',
|
|
53845
|
-
description: 'GitHub account or organization that owns the repository. Must match the connected App installation account.',
|
|
53846
|
-
},
|
|
53847
|
-
{
|
|
53848
|
-
name: 'repository',
|
|
53849
|
-
required: false,
|
|
53850
|
-
type: 'string',
|
|
53851
|
-
description: 'GitHub repository name, without the owner prefix.',
|
|
53852
|
-
},
|
|
53853
|
-
{
|
|
53854
|
-
name: 'repository_id',
|
|
53855
|
-
required: false,
|
|
53856
|
-
type: 'integer',
|
|
53857
|
-
description: 'Immutable GitHub repository id, read from GitHub rather than from the request path so a later rename or transfer cannot make the stored owner and name identify a different repository.',
|
|
53858
|
-
format: 'int64',
|
|
53859
|
-
},
|
|
53860
|
-
],
|
|
53861
|
-
},
|
|
53862
|
-
{
|
|
53863
|
-
name: 'trigger',
|
|
53864
|
-
required: false,
|
|
53865
|
-
type: 'ManagedAgentsTrigger',
|
|
53866
|
-
description: 'Why this automation ran: a manual start, or a specific provider webhook delivery.',
|
|
53867
|
-
fields: [
|
|
53868
|
-
{
|
|
53869
|
-
name: 'binding_id',
|
|
53870
|
-
required: false,
|
|
53871
|
-
type: 'string',
|
|
53872
|
-
description: 'Trigger binding (UUID) that selected this run. Present only on a webhook trigger, where it is required.',
|
|
53873
|
-
},
|
|
53874
|
-
{
|
|
53875
|
-
name: 'delivery_id',
|
|
53876
|
-
required: false,
|
|
53877
|
-
type: 'string',
|
|
53878
|
-
description: 'Provider delivery id, which ties the GitHub delivery, this session, and the published review to one another. Present only on a webhook trigger, where it is required.',
|
|
53879
|
-
},
|
|
53880
|
-
{
|
|
53881
|
-
name: 'event',
|
|
53882
|
-
required: false,
|
|
53883
|
-
type: 'string',
|
|
53884
|
-
description: 'Provider event that started the run, e.g. pull_request.synchronize. Present only on a webhook trigger, where it is required.',
|
|
53885
|
-
},
|
|
53886
|
-
{
|
|
53887
|
-
name: 'mode',
|
|
53888
|
-
required: false,
|
|
53889
|
-
type: 'string',
|
|
53890
|
-
description: 'How the automation started: manual for a direct API call, webhook for a verified provider delivery. A run recorded before triggers were tracked reads back as manual.',
|
|
53891
|
-
},
|
|
53892
|
-
],
|
|
53893
|
-
},
|
|
53894
|
-
],
|
|
53895
|
-
},
|
|
53896
|
-
{
|
|
53897
|
-
name: 'status_path',
|
|
53898
|
-
required: false,
|
|
53899
|
-
type: 'string',
|
|
53900
|
-
description: 'Managed-session detail path carrying the live turn and tool timeline.',
|
|
53901
|
-
},
|
|
53902
|
-
],
|
|
53903
|
-
},
|
|
53904
|
-
},
|
|
53905
53678
|
managedAgentsStartSession: {
|
|
53906
53679
|
operationId: 'managedAgentsStartSession',
|
|
53907
53680
|
tag: 'managed-agents',
|
|
@@ -55970,10 +55743,10 @@ export const SDK_REFERENCE = {
|
|
|
55970
55743
|
method: 'updateTriggerBinding',
|
|
55971
55744
|
bodyKey: 'body',
|
|
55972
55745
|
signature: 'rl.managedAgents.updateTriggerBinding({ binding_id, body })',
|
|
55973
|
-
example: 'const result = await rl.managedAgents.updateTriggerBinding({\n binding_id: \'<binding_id>\',\n body: {\n agent_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n
|
|
55746
|
+
example: 'const result = await rl.managedAgents.updateTriggerBinding({\n binding_id: \'<binding_id>\',\n body: {\n agent_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n channel_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n connection_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n enabled: true,\n environment_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n vault_ids: [\n "example"\n ],\n wake_event: "example"\n },\n});',
|
|
55974
55747
|
cliInvocation: 'rl managed-agents update-trigger-binding',
|
|
55975
55748
|
cliExample: 'rl managed-agents update-trigger-binding \\\n --binding_id <binding_id> \\\n --from-json body.json',
|
|
55976
|
-
curlExample: 'curl -X PATCH \'https://api.recursion.labelbox.com/managed-agents/v1/trigger-bindings/<binding_id>\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "
|
|
55749
|
+
curlExample: 'curl -X PATCH \'https://api.recursion.labelbox.com/managed-agents/v1/trigger-bindings/<binding_id>\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "channel_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "connection_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "enabled": true,\n "environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "vault_ids": [\n "example"\n ],\n "wake_event": "example"\n }\'',
|
|
55977
55750
|
summary: 'Partially update a compatibility wake rule binding',
|
|
55978
55751
|
description: 'Reachable with a Labelbox API key through this API, which authorizes the caller and then calls the upstream service with its own credential. The upstream operation is not callable with a customer key directly.',
|
|
55979
55752
|
httpMethod: 'patch',
|
|
@@ -55995,20 +55768,6 @@ export const SDK_REFERENCE = {
|
|
|
55995
55768
|
type: 'unknown',
|
|
55996
55769
|
description: 'Replacement agent (UUID) a matching event starts a session for.',
|
|
55997
55770
|
},
|
|
55998
|
-
{
|
|
55999
|
-
name: 'automation_kind',
|
|
56000
|
-
in: 'body',
|
|
56001
|
-
required: false,
|
|
56002
|
-
type: 'unknown',
|
|
56003
|
-
description: 'Replacement repository automation strategy. pull_request_review is the only supported value.',
|
|
56004
|
-
},
|
|
56005
|
-
{
|
|
56006
|
-
name: 'capture_patch',
|
|
56007
|
-
in: 'body',
|
|
56008
|
-
required: false,
|
|
56009
|
-
type: 'unknown',
|
|
56010
|
-
description: "Whether a matching run captures the agent's final working-tree patch.",
|
|
56011
|
-
},
|
|
56012
55771
|
{
|
|
56013
55772
|
name: 'channel_id',
|
|
56014
55773
|
in: 'body',
|
|
@@ -56037,34 +55796,6 @@ export const SDK_REFERENCE = {
|
|
|
56037
55796
|
type: 'unknown',
|
|
56038
55797
|
description: 'Replacement environment (UUID) that session runs in.',
|
|
56039
55798
|
},
|
|
56040
|
-
{
|
|
56041
|
-
name: 'include_drafts',
|
|
56042
|
-
in: 'body',
|
|
56043
|
-
required: false,
|
|
56044
|
-
type: 'unknown',
|
|
56045
|
-
description: 'Whether a draft pull request may trigger this binding.',
|
|
56046
|
-
},
|
|
56047
|
-
{
|
|
56048
|
-
name: 'publish_review',
|
|
56049
|
-
in: 'body',
|
|
56050
|
-
required: false,
|
|
56051
|
-
type: 'unknown',
|
|
56052
|
-
description: 'Whether a matching run publishes its validated result back to the pull request.',
|
|
56053
|
-
},
|
|
56054
|
-
{
|
|
56055
|
-
name: 'repository',
|
|
56056
|
-
in: 'body',
|
|
56057
|
-
required: false,
|
|
56058
|
-
type: 'unknown',
|
|
56059
|
-
description: 'Replacement GitHub repository name, revalidated against the connected installation.',
|
|
56060
|
-
},
|
|
56061
|
-
{
|
|
56062
|
-
name: 'repository_id',
|
|
56063
|
-
in: 'body',
|
|
56064
|
-
required: false,
|
|
56065
|
-
type: 'unknown',
|
|
56066
|
-
description: 'Replacement immutable GitHub repository id, revalidated against the connected installation.',
|
|
56067
|
-
},
|
|
56068
55799
|
{
|
|
56069
55800
|
name: 'vault_ids',
|
|
56070
55801
|
in: 'body',
|
|
@@ -56082,7 +55813,7 @@ export const SDK_REFERENCE = {
|
|
|
56082
55813
|
],
|
|
56083
55814
|
response: {
|
|
56084
55815
|
type: 'ManagedAgentsTriggerBinding',
|
|
56085
|
-
description: 'One wake rule: which provider events start a session, and the agent, environment, and vaults that session runs with.
|
|
55816
|
+
description: 'One wake rule: which provider events start a session, and the agent, environment, and vaults that session runs with. New rules are Slack-only; retired GitHub rules remain readable and may be disabled or deleted during migration.',
|
|
56086
55817
|
fields: [
|
|
56087
55818
|
{
|
|
56088
55819
|
name: 'agent_id',
|
|
@@ -56130,7 +55861,7 @@ export const SDK_REFERENCE = {
|
|
|
56130
55861
|
name: 'environment_id',
|
|
56131
55862
|
required: false,
|
|
56132
55863
|
type: 'string',
|
|
56133
|
-
description: 'Environment (UUID) that session runs in.
|
|
55864
|
+
description: 'Environment (UUID) that session runs in.',
|
|
56134
55865
|
},
|
|
56135
55866
|
{
|
|
56136
55867
|
name: 'include_drafts',
|
|
@@ -56148,7 +55879,7 @@ export const SDK_REFERENCE = {
|
|
|
56148
55879
|
name: 'provider',
|
|
56149
55880
|
required: false,
|
|
56150
55881
|
type: 'string',
|
|
56151
|
-
description: 'Integration provider whose events this binding
|
|
55882
|
+
description: 'Integration provider whose events this binding routed. New bindings support Slack; retired GitHub bindings remain readable for migration.',
|
|
56152
55883
|
},
|
|
56153
55884
|
{
|
|
56154
55885
|
name: 'publish_review',
|
|
@@ -56173,13 +55904,13 @@ export const SDK_REFERENCE = {
|
|
|
56173
55904
|
name: 'vault_ids',
|
|
56174
55905
|
required: false,
|
|
56175
55906
|
type: 'string[]',
|
|
56176
|
-
description: 'Vaults (UUIDs) granted to the woken session.
|
|
55907
|
+
description: 'Vaults (UUIDs) granted to the woken session.',
|
|
56177
55908
|
},
|
|
56178
55909
|
{
|
|
56179
55910
|
name: 'wake_event',
|
|
56180
55911
|
required: false,
|
|
56181
55912
|
type: 'string',
|
|
56182
|
-
description: 'Provider event that wakes this binding. Slack values are app_mention and message; GitHub values
|
|
55913
|
+
description: 'Provider event that wakes this binding. Slack values are app_mention and message; retired GitHub values remain readable for migration.',
|
|
56183
55914
|
},
|
|
56184
55915
|
],
|
|
56185
55916
|
},
|
|
@@ -56990,10 +56721,10 @@ export const SDK_REFERENCE = {
|
|
|
56990
56721
|
method: 'upsertTriggerBinding',
|
|
56991
56722
|
bodyKey: 'body',
|
|
56992
56723
|
signature: 'rl.managedAgents.upsertTriggerBinding({ body })',
|
|
56993
|
-
example: 'const result = await rl.managedAgents.upsertTriggerBinding({\n body: {\n agent_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n
|
|
56724
|
+
example: 'const result = await rl.managedAgents.upsertTriggerBinding({\n body: {\n agent_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n channel_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n connection_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n enabled: true,\n environment_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n vault_ids: [\n "example"\n ],\n wake_event: "example"\n },\n});',
|
|
56994
56725
|
cliInvocation: 'rl managed-agents upsert-trigger-binding',
|
|
56995
56726
|
cliExample: "rl managed-agents upsert-trigger-binding \\\n --agent_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --connection_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --environment_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --from-json body.json",
|
|
56996
|
-
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/trigger-bindings\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "
|
|
56727
|
+
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/trigger-bindings\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "channel_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "connection_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "enabled": true,\n "environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "vault_ids": [\n "example"\n ],\n "wake_event": "example"\n }\'',
|
|
56997
56728
|
summary: 'Create a compatibility wake rule binding provider events to an agent',
|
|
56998
56729
|
description: 'Reachable with a Labelbox API key through this API, which authorizes the caller and then calls the upstream service with its own credential. The upstream operation is not callable with a customer key directly.',
|
|
56999
56730
|
httpMethod: 'post',
|
|
@@ -57007,20 +56738,6 @@ export const SDK_REFERENCE = {
|
|
|
57007
56738
|
type: 'string',
|
|
57008
56739
|
description: 'Agent (UUID) a matching event starts a session for, as returned by listAgents.',
|
|
57009
56740
|
},
|
|
57010
|
-
{
|
|
57011
|
-
name: 'automation_kind',
|
|
57012
|
-
in: 'body',
|
|
57013
|
-
required: false,
|
|
57014
|
-
type: 'string',
|
|
57015
|
-
description: 'Repository strategy. pull_request_review is currently supported.',
|
|
57016
|
-
},
|
|
57017
|
-
{
|
|
57018
|
-
name: 'capture_patch',
|
|
57019
|
-
in: 'body',
|
|
57020
|
-
required: false,
|
|
57021
|
-
type: 'boolean',
|
|
57022
|
-
description: 'Capture the agent working-tree patch for later application.',
|
|
57023
|
-
},
|
|
57024
56741
|
{
|
|
57025
56742
|
name: 'channel_id',
|
|
57026
56743
|
in: 'body',
|
|
@@ -57047,55 +56764,26 @@ export const SDK_REFERENCE = {
|
|
|
57047
56764
|
in: 'body',
|
|
57048
56765
|
required: true,
|
|
57049
56766
|
type: 'string',
|
|
57050
|
-
description: 'Environment (UUID) that session runs in, as returned by listEnvironments.
|
|
57051
|
-
},
|
|
57052
|
-
{
|
|
57053
|
-
name: 'include_drafts',
|
|
57054
|
-
in: 'body',
|
|
57055
|
-
required: false,
|
|
57056
|
-
type: 'boolean',
|
|
57057
|
-
description: 'Allow draft pull requests to trigger this rule.',
|
|
57058
|
-
},
|
|
57059
|
-
{
|
|
57060
|
-
name: 'publish_review',
|
|
57061
|
-
in: 'body',
|
|
57062
|
-
required: false,
|
|
57063
|
-
type: 'boolean',
|
|
57064
|
-
description: 'Publish the trusted result back to the pull request.',
|
|
57065
|
-
},
|
|
57066
|
-
{
|
|
57067
|
-
name: 'repository',
|
|
57068
|
-
in: 'body',
|
|
57069
|
-
required: false,
|
|
57070
|
-
type: 'string',
|
|
57071
|
-
description: 'GitHub repository name selected from the connected installation.',
|
|
57072
|
-
},
|
|
57073
|
-
{
|
|
57074
|
-
name: 'repository_id',
|
|
57075
|
-
in: 'body',
|
|
57076
|
-
required: false,
|
|
57077
|
-
type: 'integer',
|
|
57078
|
-
description: 'Immutable GitHub repository id selected from the connected installation.',
|
|
57079
|
-
format: 'int64',
|
|
56767
|
+
description: 'Environment (UUID) that session runs in, as returned by listEnvironments.',
|
|
57080
56768
|
},
|
|
57081
56769
|
{
|
|
57082
56770
|
name: 'vault_ids',
|
|
57083
56771
|
in: 'body',
|
|
57084
56772
|
required: false,
|
|
57085
56773
|
type: 'string[]',
|
|
57086
|
-
description: 'Vaults (UUIDs) to grant the woken session.
|
|
56774
|
+
description: 'Vaults (UUIDs) to grant the woken session.',
|
|
57087
56775
|
},
|
|
57088
56776
|
{
|
|
57089
56777
|
name: 'wake_event',
|
|
57090
56778
|
in: 'body',
|
|
57091
56779
|
required: false,
|
|
57092
56780
|
type: 'string',
|
|
57093
|
-
description: '
|
|
56781
|
+
description: 'Slack event selector: app_mention (channel optional) or message (exact channel required).',
|
|
57094
56782
|
},
|
|
57095
56783
|
],
|
|
57096
56784
|
response: {
|
|
57097
56785
|
type: 'ManagedAgentsTriggerBinding',
|
|
57098
|
-
description: 'One wake rule: which provider events start a session, and the agent, environment, and vaults that session runs with.
|
|
56786
|
+
description: 'One wake rule: which provider events start a session, and the agent, environment, and vaults that session runs with. New rules are Slack-only; retired GitHub rules remain readable and may be disabled or deleted during migration.',
|
|
57099
56787
|
fields: [
|
|
57100
56788
|
{
|
|
57101
56789
|
name: 'agent_id',
|
|
@@ -57143,7 +56831,7 @@ export const SDK_REFERENCE = {
|
|
|
57143
56831
|
name: 'environment_id',
|
|
57144
56832
|
required: false,
|
|
57145
56833
|
type: 'string',
|
|
57146
|
-
description: 'Environment (UUID) that session runs in.
|
|
56834
|
+
description: 'Environment (UUID) that session runs in.',
|
|
57147
56835
|
},
|
|
57148
56836
|
{
|
|
57149
56837
|
name: 'include_drafts',
|
|
@@ -57161,7 +56849,7 @@ export const SDK_REFERENCE = {
|
|
|
57161
56849
|
name: 'provider',
|
|
57162
56850
|
required: false,
|
|
57163
56851
|
type: 'string',
|
|
57164
|
-
description: 'Integration provider whose events this binding
|
|
56852
|
+
description: 'Integration provider whose events this binding routed. New bindings support Slack; retired GitHub bindings remain readable for migration.',
|
|
57165
56853
|
},
|
|
57166
56854
|
{
|
|
57167
56855
|
name: 'publish_review',
|
|
@@ -57186,13 +56874,13 @@ export const SDK_REFERENCE = {
|
|
|
57186
56874
|
name: 'vault_ids',
|
|
57187
56875
|
required: false,
|
|
57188
56876
|
type: 'string[]',
|
|
57189
|
-
description: 'Vaults (UUIDs) granted to the woken session.
|
|
56877
|
+
description: 'Vaults (UUIDs) granted to the woken session.',
|
|
57190
56878
|
},
|
|
57191
56879
|
{
|
|
57192
56880
|
name: 'wake_event',
|
|
57193
56881
|
required: false,
|
|
57194
56882
|
type: 'string',
|
|
57195
|
-
description: 'Provider event that wakes this binding. Slack values are app_mention and message; GitHub values
|
|
56883
|
+
description: 'Provider event that wakes this binding. Slack values are app_mention and message; retired GitHub values remain readable for migration.',
|
|
57196
56884
|
},
|
|
57197
56885
|
],
|
|
57198
56886
|
},
|