@breign/client 1.0.158 → 1.0.159
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/apis/ToolsApi.d.ts +46 -1
- package/dist/apis/ToolsApi.js +107 -0
- package/dist/models/McpCallLogCursorUio.d.ts +38 -0
- package/dist/models/McpCallLogCursorUio.js +54 -0
- package/dist/models/McpCallLogEventUio.d.ts +27 -0
- package/dist/models/McpCallLogEventUio.js +53 -0
- package/dist/models/McpCallLogStatusUio.d.ts +25 -0
- package/dist/models/McpCallLogStatusUio.js +51 -0
- package/dist/models/McpCallLogUio.d.ts +162 -0
- package/dist/models/McpCallLogUio.js +114 -0
- package/dist/models/McpCallLogsDeletedResponseUio.d.ts +32 -0
- package/dist/models/McpCallLogsDeletedResponseUio.js +50 -0
- package/dist/models/McpCallLogsResponseUio.d.ts +58 -0
- package/dist/models/McpCallLogsResponseUio.js +68 -0
- package/dist/models/McpLogsSettingsRequestUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsRequestUio.js +50 -0
- package/dist/models/McpLogsSettingsResponseUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsResponseUio.js +54 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/openapi.json +353 -0
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -11751,6 +11751,168 @@
|
|
|
11751
11751
|
"tags" : [ "tools" ]
|
|
11752
11752
|
}
|
|
11753
11753
|
},
|
|
11754
|
+
"/tools/{toolId}/mcp/logs" : {
|
|
11755
|
+
"delete" : {
|
|
11756
|
+
"description" : "Drops every trace of this tool. The way out when payload capture was left on and recorded\nsomething it should not have.\n",
|
|
11757
|
+
"operationId" : "deleteMcpCallLogs",
|
|
11758
|
+
"parameters" : [ {
|
|
11759
|
+
"description" : "Tool identifier",
|
|
11760
|
+
"in" : "path",
|
|
11761
|
+
"name" : "toolId",
|
|
11762
|
+
"required" : true,
|
|
11763
|
+
"schema" : {
|
|
11764
|
+
"type" : "string"
|
|
11765
|
+
}
|
|
11766
|
+
} ],
|
|
11767
|
+
"responses" : {
|
|
11768
|
+
"200" : {
|
|
11769
|
+
"content" : {
|
|
11770
|
+
"application/json" : {
|
|
11771
|
+
"schema" : {
|
|
11772
|
+
"$ref" : "#/components/schemas/McpCallLogsDeletedResponse"
|
|
11773
|
+
}
|
|
11774
|
+
}
|
|
11775
|
+
},
|
|
11776
|
+
"description" : "Traces erased"
|
|
11777
|
+
},
|
|
11778
|
+
"403" : {
|
|
11779
|
+
"description" : "Forbidden"
|
|
11780
|
+
},
|
|
11781
|
+
"404" : {
|
|
11782
|
+
"description" : "Tool not found"
|
|
11783
|
+
}
|
|
11784
|
+
},
|
|
11785
|
+
"summary" : "Erase the MCP traces of a tool",
|
|
11786
|
+
"tags" : [ "tools" ]
|
|
11787
|
+
},
|
|
11788
|
+
"get" : {
|
|
11789
|
+
"description" : "Traces of the exchanges with the MCP server of this tool, most recent first: connections,\ntoken refreshes, tool calls, and the configuration changes an administrator made.\nReserved to administrators of the organisation owning the tool — a trace names the methods\ncalled and, when payload capture is on, carries an excerpt of the exchange.\n\nPaging walks backwards through time with a composite cursor. Both halves of `nextCursor`\nmust be sent back together: a date alone cannot separate two traces written in the same\nmillisecond.\n",
|
|
11790
|
+
"operationId" : "listMcpCallLogs",
|
|
11791
|
+
"parameters" : [ {
|
|
11792
|
+
"description" : "Tool identifier",
|
|
11793
|
+
"in" : "path",
|
|
11794
|
+
"name" : "toolId",
|
|
11795
|
+
"required" : true,
|
|
11796
|
+
"schema" : {
|
|
11797
|
+
"type" : "string"
|
|
11798
|
+
}
|
|
11799
|
+
}, {
|
|
11800
|
+
"description" : "Keeps only the traces of that kind.",
|
|
11801
|
+
"in" : "query",
|
|
11802
|
+
"name" : "event",
|
|
11803
|
+
"required" : false,
|
|
11804
|
+
"schema" : {
|
|
11805
|
+
"$ref" : "#/components/schemas/McpCallLogEvent"
|
|
11806
|
+
}
|
|
11807
|
+
}, {
|
|
11808
|
+
"description" : "Keeps only the traces that succeeded, or only those that failed.",
|
|
11809
|
+
"in" : "query",
|
|
11810
|
+
"name" : "status",
|
|
11811
|
+
"required" : false,
|
|
11812
|
+
"schema" : {
|
|
11813
|
+
"$ref" : "#/components/schemas/McpCallLogStatus"
|
|
11814
|
+
}
|
|
11815
|
+
}, {
|
|
11816
|
+
"description" : "Page size, clamped server-side.",
|
|
11817
|
+
"in" : "query",
|
|
11818
|
+
"name" : "limit",
|
|
11819
|
+
"required" : false,
|
|
11820
|
+
"schema" : {
|
|
11821
|
+
"default" : 50,
|
|
11822
|
+
"maximum" : 200,
|
|
11823
|
+
"minimum" : 1,
|
|
11824
|
+
"type" : "integer"
|
|
11825
|
+
}
|
|
11826
|
+
}, {
|
|
11827
|
+
"description" : "Date half of the cursor, sent back from `nextCursor` along with `beforeId`.",
|
|
11828
|
+
"in" : "query",
|
|
11829
|
+
"name" : "beforeCreatedAt",
|
|
11830
|
+
"required" : false,
|
|
11831
|
+
"schema" : {
|
|
11832
|
+
"type" : "string"
|
|
11833
|
+
}
|
|
11834
|
+
}, {
|
|
11835
|
+
"description" : "Identifier half of the cursor, sent back from `nextCursor` along with `beforeCreatedAt`.",
|
|
11836
|
+
"in" : "query",
|
|
11837
|
+
"name" : "beforeId",
|
|
11838
|
+
"required" : false,
|
|
11839
|
+
"schema" : {
|
|
11840
|
+
"type" : "string"
|
|
11841
|
+
}
|
|
11842
|
+
} ],
|
|
11843
|
+
"responses" : {
|
|
11844
|
+
"200" : {
|
|
11845
|
+
"content" : {
|
|
11846
|
+
"application/json" : {
|
|
11847
|
+
"schema" : {
|
|
11848
|
+
"$ref" : "#/components/schemas/McpCallLogsResponse"
|
|
11849
|
+
}
|
|
11850
|
+
}
|
|
11851
|
+
},
|
|
11852
|
+
"description" : "A page of traces"
|
|
11853
|
+
},
|
|
11854
|
+
"400" : {
|
|
11855
|
+
"description" : "Unknown event or status filter"
|
|
11856
|
+
},
|
|
11857
|
+
"403" : {
|
|
11858
|
+
"description" : "Forbidden"
|
|
11859
|
+
},
|
|
11860
|
+
"404" : {
|
|
11861
|
+
"description" : "Tool not found"
|
|
11862
|
+
}
|
|
11863
|
+
},
|
|
11864
|
+
"summary" : "Read the MCP traces of a tool",
|
|
11865
|
+
"tags" : [ "tools" ]
|
|
11866
|
+
}
|
|
11867
|
+
},
|
|
11868
|
+
"/tools/{toolId}/mcp/logs/settings" : {
|
|
11869
|
+
"put" : {
|
|
11870
|
+
"description" : "Whether the arguments and responses of the calls to this tool are kept in its traces.\n\nOff by default, and deliberately its own endpoint rather than a field of the tool: the\narguments of an MCP call carry whatever the user asked for, so switching capture on is a\ndebugging act an administrator takes knowingly, and the tool edit form can never reset it\nby accident.\n",
|
|
11871
|
+
"operationId" : "updateMcpLogsSettings",
|
|
11872
|
+
"parameters" : [ {
|
|
11873
|
+
"description" : "Tool identifier",
|
|
11874
|
+
"in" : "path",
|
|
11875
|
+
"name" : "toolId",
|
|
11876
|
+
"required" : true,
|
|
11877
|
+
"schema" : {
|
|
11878
|
+
"type" : "string"
|
|
11879
|
+
}
|
|
11880
|
+
} ],
|
|
11881
|
+
"requestBody" : {
|
|
11882
|
+
"content" : {
|
|
11883
|
+
"application/json" : {
|
|
11884
|
+
"schema" : {
|
|
11885
|
+
"$ref" : "#/components/schemas/McpLogsSettingsRequest"
|
|
11886
|
+
}
|
|
11887
|
+
}
|
|
11888
|
+
},
|
|
11889
|
+
"required" : true
|
|
11890
|
+
},
|
|
11891
|
+
"responses" : {
|
|
11892
|
+
"200" : {
|
|
11893
|
+
"content" : {
|
|
11894
|
+
"application/json" : {
|
|
11895
|
+
"schema" : {
|
|
11896
|
+
"$ref" : "#/components/schemas/McpLogsSettingsResponse"
|
|
11897
|
+
}
|
|
11898
|
+
}
|
|
11899
|
+
},
|
|
11900
|
+
"description" : "Capture setting applied"
|
|
11901
|
+
},
|
|
11902
|
+
"400" : {
|
|
11903
|
+
"description" : "Invalid body"
|
|
11904
|
+
},
|
|
11905
|
+
"403" : {
|
|
11906
|
+
"description" : "Forbidden"
|
|
11907
|
+
},
|
|
11908
|
+
"404" : {
|
|
11909
|
+
"description" : "Tool not found"
|
|
11910
|
+
}
|
|
11911
|
+
},
|
|
11912
|
+
"summary" : "Turn MCP payload capture on or off for a tool",
|
|
11913
|
+
"tags" : [ "tools" ]
|
|
11914
|
+
}
|
|
11915
|
+
},
|
|
11754
11916
|
"/tools/{toolId}/connection-status" : {
|
|
11755
11917
|
"get" : {
|
|
11756
11918
|
"description" : "For organization-scoped tools, returns whether the shared connection is set up.\nFor user-scoped tools, returns whether the caller has connected their own account.\n",
|
|
@@ -22471,6 +22633,197 @@
|
|
|
22471
22633
|
"title" : "ToolAllowedToolsResponse",
|
|
22472
22634
|
"type" : "object"
|
|
22473
22635
|
},
|
|
22636
|
+
"McpCallLogEvent" : {
|
|
22637
|
+
"description" : "Which moment of the exchange the trace covers. Three are network — opening the connection, renewing the tokens, calling the tool — and the fourth is an administrator changing the configuration, without which \"it worked yesterday\" stays unverifiable.",
|
|
22638
|
+
"enum" : [ "connect", "auth_refresh", "tool_call", "config_change" ],
|
|
22639
|
+
"title" : "McpCallLogEvent",
|
|
22640
|
+
"type" : "string"
|
|
22641
|
+
},
|
|
22642
|
+
"McpCallLogStatus" : {
|
|
22643
|
+
"enum" : [ "ok", "error" ],
|
|
22644
|
+
"title" : "McpCallLogStatus",
|
|
22645
|
+
"type" : "string"
|
|
22646
|
+
},
|
|
22647
|
+
"McpCallLogsResponse" : {
|
|
22648
|
+
"additionalProperties" : false,
|
|
22649
|
+
"properties" : {
|
|
22650
|
+
"logs" : {
|
|
22651
|
+
"items" : {
|
|
22652
|
+
"$ref" : "#/components/schemas/McpCallLog"
|
|
22653
|
+
},
|
|
22654
|
+
"type" : "array"
|
|
22655
|
+
},
|
|
22656
|
+
"nextCursor" : {
|
|
22657
|
+
"allOf" : [ {
|
|
22658
|
+
"$ref" : "#/components/schemas/McpCallLogCursor"
|
|
22659
|
+
} ],
|
|
22660
|
+
"description" : "Null once the last page has been served.",
|
|
22661
|
+
"nullable" : true
|
|
22662
|
+
},
|
|
22663
|
+
"payloadLogging" : {
|
|
22664
|
+
"description" : "Whether this tool is currently capturing arguments and responses.",
|
|
22665
|
+
"type" : "boolean"
|
|
22666
|
+
},
|
|
22667
|
+
"verboseLogging" : {
|
|
22668
|
+
"description" : "Whether this tool records all of its activity. Off by default: only failures and configuration changes are kept, which is what an investigation actually reads.",
|
|
22669
|
+
"type" : "boolean"
|
|
22670
|
+
},
|
|
22671
|
+
"retentionDays" : {
|
|
22672
|
+
"description" : "How long traces are kept before the nightly purge drops them.",
|
|
22673
|
+
"type" : "integer"
|
|
22674
|
+
}
|
|
22675
|
+
},
|
|
22676
|
+
"required" : [ "logs", "nextCursor", "payloadLogging", "retentionDays", "verboseLogging" ],
|
|
22677
|
+
"title" : "McpCallLogsResponse",
|
|
22678
|
+
"type" : "object"
|
|
22679
|
+
},
|
|
22680
|
+
"McpCallLog" : {
|
|
22681
|
+
"additionalProperties" : false,
|
|
22682
|
+
"properties" : {
|
|
22683
|
+
"id" : {
|
|
22684
|
+
"type" : "string"
|
|
22685
|
+
},
|
|
22686
|
+
"orgId" : {
|
|
22687
|
+
"type" : "string"
|
|
22688
|
+
},
|
|
22689
|
+
"toolId" : {
|
|
22690
|
+
"type" : "string"
|
|
22691
|
+
},
|
|
22692
|
+
"toolName" : {
|
|
22693
|
+
"description" : "Name of the tool when the call happened; it survives a later rename.",
|
|
22694
|
+
"nullable" : true,
|
|
22695
|
+
"type" : "string"
|
|
22696
|
+
},
|
|
22697
|
+
"event" : {
|
|
22698
|
+
"$ref" : "#/components/schemas/McpCallLogEvent"
|
|
22699
|
+
},
|
|
22700
|
+
"method" : {
|
|
22701
|
+
"description" : "MCP method called, or the configuration action for a `config_change`.",
|
|
22702
|
+
"nullable" : true,
|
|
22703
|
+
"type" : "string"
|
|
22704
|
+
},
|
|
22705
|
+
"status" : {
|
|
22706
|
+
"$ref" : "#/components/schemas/McpCallLogStatus"
|
|
22707
|
+
},
|
|
22708
|
+
"durationMs" : {
|
|
22709
|
+
"nullable" : true,
|
|
22710
|
+
"type" : "integer"
|
|
22711
|
+
},
|
|
22712
|
+
"serverUrl" : {
|
|
22713
|
+
"description" : "Server URL without its query string, which can carry a token.",
|
|
22714
|
+
"nullable" : true,
|
|
22715
|
+
"type" : "string"
|
|
22716
|
+
},
|
|
22717
|
+
"scope" : {
|
|
22718
|
+
"enum" : [ "organization", "user" ],
|
|
22719
|
+
"type" : "string"
|
|
22720
|
+
},
|
|
22721
|
+
"authType" : {
|
|
22722
|
+
"nullable" : true,
|
|
22723
|
+
"type" : "string"
|
|
22724
|
+
},
|
|
22725
|
+
"userId" : {
|
|
22726
|
+
"description" : "Whoever the exchange was made for — the owner of the credentials used. On a `config_change` it is the author of the change instead.",
|
|
22727
|
+
"nullable" : true,
|
|
22728
|
+
"type" : "string"
|
|
22729
|
+
},
|
|
22730
|
+
"agentId" : {
|
|
22731
|
+
"nullable" : true,
|
|
22732
|
+
"type" : "string"
|
|
22733
|
+
},
|
|
22734
|
+
"conversationId" : {
|
|
22735
|
+
"nullable" : true,
|
|
22736
|
+
"type" : "string"
|
|
22737
|
+
},
|
|
22738
|
+
"httpStatus" : {
|
|
22739
|
+
"nullable" : true,
|
|
22740
|
+
"type" : "integer"
|
|
22741
|
+
},
|
|
22742
|
+
"errorCode" : {
|
|
22743
|
+
"nullable" : true,
|
|
22744
|
+
"type" : "string"
|
|
22745
|
+
},
|
|
22746
|
+
"errorMessage" : {
|
|
22747
|
+
"nullable" : true,
|
|
22748
|
+
"type" : "string"
|
|
22749
|
+
},
|
|
22750
|
+
"retried" : {
|
|
22751
|
+
"description" : "The call was replayed on a fresh connection after a first failure.",
|
|
22752
|
+
"type" : "boolean"
|
|
22753
|
+
},
|
|
22754
|
+
"requestPreview" : {
|
|
22755
|
+
"description" : "Captured only while payload capture is on, secrets redacted and size bounded.",
|
|
22756
|
+
"nullable" : true,
|
|
22757
|
+
"type" : "string"
|
|
22758
|
+
},
|
|
22759
|
+
"responsePreview" : {
|
|
22760
|
+
"nullable" : true,
|
|
22761
|
+
"type" : "string"
|
|
22762
|
+
},
|
|
22763
|
+
"createdAt" : {
|
|
22764
|
+
"type" : "string"
|
|
22765
|
+
}
|
|
22766
|
+
},
|
|
22767
|
+
"required" : [ "createdAt", "event", "id", "orgId", "retried", "scope", "status", "toolId" ],
|
|
22768
|
+
"title" : "McpCallLog",
|
|
22769
|
+
"type" : "object"
|
|
22770
|
+
},
|
|
22771
|
+
"McpCallLogCursor" : {
|
|
22772
|
+
"additionalProperties" : false,
|
|
22773
|
+
"properties" : {
|
|
22774
|
+
"createdAt" : {
|
|
22775
|
+
"type" : "string"
|
|
22776
|
+
},
|
|
22777
|
+
"id" : {
|
|
22778
|
+
"type" : "string"
|
|
22779
|
+
}
|
|
22780
|
+
},
|
|
22781
|
+
"required" : [ "createdAt", "id" ],
|
|
22782
|
+
"title" : "McpCallLogCursor",
|
|
22783
|
+
"type" : "object"
|
|
22784
|
+
},
|
|
22785
|
+
"McpCallLogsDeletedResponse" : {
|
|
22786
|
+
"additionalProperties" : false,
|
|
22787
|
+
"properties" : {
|
|
22788
|
+
"deleted" : {
|
|
22789
|
+
"type" : "integer"
|
|
22790
|
+
}
|
|
22791
|
+
},
|
|
22792
|
+
"required" : [ "deleted" ],
|
|
22793
|
+
"title" : "McpCallLogsDeletedResponse",
|
|
22794
|
+
"type" : "object"
|
|
22795
|
+
},
|
|
22796
|
+
"McpLogsSettingsRequest" : {
|
|
22797
|
+
"additionalProperties" : false,
|
|
22798
|
+
"description" : "At least one switch. Whichever is omitted keeps its current value, so the screen can flip one without resetting the other.",
|
|
22799
|
+
"minProperties" : 1,
|
|
22800
|
+
"properties" : {
|
|
22801
|
+
"payloads" : {
|
|
22802
|
+
"description" : "Keep the arguments and responses of the calls that get recorded.",
|
|
22803
|
+
"type" : "boolean"
|
|
22804
|
+
},
|
|
22805
|
+
"verbose" : {
|
|
22806
|
+
"description" : "Record all activity, not only failures and configuration changes.",
|
|
22807
|
+
"type" : "boolean"
|
|
22808
|
+
}
|
|
22809
|
+
},
|
|
22810
|
+
"title" : "McpLogsSettingsRequest",
|
|
22811
|
+
"type" : "object"
|
|
22812
|
+
},
|
|
22813
|
+
"McpLogsSettingsResponse" : {
|
|
22814
|
+
"additionalProperties" : false,
|
|
22815
|
+
"properties" : {
|
|
22816
|
+
"payloads" : {
|
|
22817
|
+
"type" : "boolean"
|
|
22818
|
+
},
|
|
22819
|
+
"verbose" : {
|
|
22820
|
+
"type" : "boolean"
|
|
22821
|
+
}
|
|
22822
|
+
},
|
|
22823
|
+
"required" : [ "payloads", "verbose" ],
|
|
22824
|
+
"title" : "McpLogsSettingsResponse",
|
|
22825
|
+
"type" : "object"
|
|
22826
|
+
},
|
|
22474
22827
|
"ToolConnectionStatusResponse" : {
|
|
22475
22828
|
"additionalProperties" : false,
|
|
22476
22829
|
"properties" : {
|