@breign/client 1.0.158 → 1.0.160

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.
Files changed (38) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +28 -1
  2. package/dist/apis/AiGatewayApi.js +63 -0
  3. package/dist/apis/PromptsApi.d.ts +41 -1
  4. package/dist/apis/PromptsApi.js +92 -0
  5. package/dist/apis/ToolsApi.d.ts +46 -1
  6. package/dist/apis/ToolsApi.js +107 -0
  7. package/dist/models/AgentRateLimitSettingsUio.d.ts +80 -0
  8. package/dist/models/AgentRateLimitSettingsUio.js +80 -0
  9. package/dist/models/AgentRateLimitSettingsUpdateRequestUio.d.ts +50 -0
  10. package/dist/models/AgentRateLimitSettingsUpdateRequestUio.js +54 -0
  11. package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +64 -0
  12. package/dist/models/AiGatewayModelTokenQuotaUio.js +72 -0
  13. package/dist/models/AiGatewaySettingsUio.d.ts +57 -0
  14. package/dist/models/AiGatewaySettingsUio.js +65 -0
  15. package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +39 -0
  16. package/dist/models/AiGatewaySettingsUpdateRequestUio.js +51 -0
  17. package/dist/models/McpCallLogCursorUio.d.ts +38 -0
  18. package/dist/models/McpCallLogCursorUio.js +54 -0
  19. package/dist/models/McpCallLogEventUio.d.ts +27 -0
  20. package/dist/models/McpCallLogEventUio.js +53 -0
  21. package/dist/models/McpCallLogStatusUio.d.ts +25 -0
  22. package/dist/models/McpCallLogStatusUio.js +51 -0
  23. package/dist/models/McpCallLogUio.d.ts +162 -0
  24. package/dist/models/McpCallLogUio.js +114 -0
  25. package/dist/models/McpCallLogsDeletedResponseUio.d.ts +32 -0
  26. package/dist/models/McpCallLogsDeletedResponseUio.js +50 -0
  27. package/dist/models/McpCallLogsResponseUio.d.ts +58 -0
  28. package/dist/models/McpCallLogsResponseUio.js +68 -0
  29. package/dist/models/McpLogsSettingsRequestUio.d.ts +38 -0
  30. package/dist/models/McpLogsSettingsRequestUio.js +50 -0
  31. package/dist/models/McpLogsSettingsResponseUio.d.ts +38 -0
  32. package/dist/models/McpLogsSettingsResponseUio.js +54 -0
  33. package/dist/models/PromptRateLimitResponseUio.d.ts +50 -0
  34. package/dist/models/PromptRateLimitResponseUio.js +62 -0
  35. package/dist/models/index.d.ts +14 -0
  36. package/dist/models/index.js +14 -0
  37. package/dist/openapi.json +752 -1
  38. 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",
@@ -13382,6 +13544,155 @@
13382
13544
  "tags" : [ "prompts" ]
13383
13545
  }
13384
13546
  },
13547
+ "/agents/{agentId}/prompts/rate-limit" : {
13548
+ "get" : {
13549
+ "description" : "Returns the current prompt rate-limit quota for the authenticated subject on the given agent, without consuming a slot.\n",
13550
+ "operationId" : "getPromptRateLimit",
13551
+ "parameters" : [ {
13552
+ "description" : "ID of the agent",
13553
+ "in" : "path",
13554
+ "name" : "agentId",
13555
+ "required" : true,
13556
+ "schema" : {
13557
+ "format" : "uuid",
13558
+ "type" : "string"
13559
+ }
13560
+ } ],
13561
+ "responses" : {
13562
+ "200" : {
13563
+ "content" : {
13564
+ "application/json" : {
13565
+ "schema" : {
13566
+ "$ref" : "#/components/schemas/PromptRateLimitResponse"
13567
+ }
13568
+ }
13569
+ },
13570
+ "description" : "Current prompt rate-limit usage",
13571
+ "headers" : {
13572
+ "X-RateLimit-Limit-Prompts" : {
13573
+ "description" : "Max prompts in the sliding window",
13574
+ "schema" : {
13575
+ "type" : "integer"
13576
+ }
13577
+ },
13578
+ "X-RateLimit-Remaining-Prompts" : {
13579
+ "description" : "Remaining prompts in the sliding window",
13580
+ "schema" : {
13581
+ "type" : "integer"
13582
+ }
13583
+ },
13584
+ "X-RateLimit-Reset-Prompts" : {
13585
+ "description" : "Seconds until the window slides",
13586
+ "schema" : {
13587
+ "type" : "integer"
13588
+ }
13589
+ }
13590
+ }
13591
+ },
13592
+ "401" : {
13593
+ "description" : "Unauthorized"
13594
+ },
13595
+ "403" : {
13596
+ "description" : "Forbidden - User cannot access this agent"
13597
+ },
13598
+ "404" : {
13599
+ "description" : "Agent not found"
13600
+ },
13601
+ "500" : {
13602
+ "description" : "Server error"
13603
+ }
13604
+ },
13605
+ "summary" : "Get prompt rate-limit usage",
13606
+ "tags" : [ "prompts" ]
13607
+ }
13608
+ },
13609
+ "/organizations/{organizationId}/agents/rate-limit/settings" : {
13610
+ "get" : {
13611
+ "description" : "Organization admin settings for agent chat anti-abuse limits.",
13612
+ "operationId" : "getAgentRateLimitSettings",
13613
+ "parameters" : [ {
13614
+ "description" : "ID of the organization",
13615
+ "in" : "path",
13616
+ "name" : "organizationId",
13617
+ "required" : true,
13618
+ "schema" : {
13619
+ "type" : "string"
13620
+ }
13621
+ } ],
13622
+ "responses" : {
13623
+ "200" : {
13624
+ "content" : {
13625
+ "application/json" : {
13626
+ "schema" : {
13627
+ "$ref" : "#/components/schemas/AgentRateLimitSettings"
13628
+ }
13629
+ }
13630
+ },
13631
+ "description" : "Current settings"
13632
+ },
13633
+ "401" : {
13634
+ "description" : "Unauthorized"
13635
+ },
13636
+ "403" : {
13637
+ "description" : "Forbidden"
13638
+ },
13639
+ "500" : {
13640
+ "description" : "Server error"
13641
+ }
13642
+ },
13643
+ "summary" : "Get agent chat rate limit settings",
13644
+ "tags" : [ "prompts" ]
13645
+ },
13646
+ "put" : {
13647
+ "description" : "Organization admin can set per-org chat agent rate limits.",
13648
+ "operationId" : "updateAgentRateLimitSettings",
13649
+ "parameters" : [ {
13650
+ "description" : "ID of the organization",
13651
+ "in" : "path",
13652
+ "name" : "organizationId",
13653
+ "required" : true,
13654
+ "schema" : {
13655
+ "type" : "string"
13656
+ }
13657
+ } ],
13658
+ "requestBody" : {
13659
+ "content" : {
13660
+ "application/json" : {
13661
+ "schema" : {
13662
+ "$ref" : "#/components/schemas/AgentRateLimitSettingsUpdateRequest"
13663
+ }
13664
+ }
13665
+ },
13666
+ "required" : true
13667
+ },
13668
+ "responses" : {
13669
+ "200" : {
13670
+ "content" : {
13671
+ "application/json" : {
13672
+ "schema" : {
13673
+ "$ref" : "#/components/schemas/AgentRateLimitSettings"
13674
+ }
13675
+ }
13676
+ },
13677
+ "description" : "Updated settings"
13678
+ },
13679
+ "400" : {
13680
+ "description" : "Invalid request"
13681
+ },
13682
+ "401" : {
13683
+ "description" : "Unauthorized"
13684
+ },
13685
+ "403" : {
13686
+ "description" : "Forbidden"
13687
+ },
13688
+ "500" : {
13689
+ "description" : "Server error"
13690
+ }
13691
+ },
13692
+ "summary" : "Update agent chat rate limit settings",
13693
+ "tags" : [ "prompts" ]
13694
+ }
13695
+ },
13385
13696
  "/agents/{agentId}/prompts" : {
13386
13697
  "post" : {
13387
13698
  "description" : "Starts a new conversation session for the specified agent",
@@ -15056,7 +15367,94 @@
15056
15367
  "description" : "Forbidden — the caller is not an admin of the organization"
15057
15368
  }
15058
15369
  },
15059
- "summary" : "Get AI gateway usage metrics",
15370
+ "summary" : "Get AI gateway usage metrics",
15371
+ "tags" : [ "ai-gateway" ]
15372
+ }
15373
+ },
15374
+ "/organizations/{organizationId}/ai-gateway/settings" : {
15375
+ "get" : {
15376
+ "description" : "Organization admin settings for gateway RPM and per-model token quotas.",
15377
+ "operationId" : "getAiGatewaySettings",
15378
+ "parameters" : [ {
15379
+ "description" : "ID of the organization",
15380
+ "in" : "path",
15381
+ "name" : "organizationId",
15382
+ "required" : true,
15383
+ "schema" : {
15384
+ "type" : "string"
15385
+ }
15386
+ } ],
15387
+ "responses" : {
15388
+ "200" : {
15389
+ "content" : {
15390
+ "application/json" : {
15391
+ "schema" : {
15392
+ "$ref" : "#/components/schemas/AiGatewaySettings"
15393
+ }
15394
+ }
15395
+ },
15396
+ "description" : "Current settings"
15397
+ },
15398
+ "401" : {
15399
+ "description" : "Unauthorized"
15400
+ },
15401
+ "403" : {
15402
+ "description" : "Forbidden"
15403
+ },
15404
+ "500" : {
15405
+ "description" : "Server error"
15406
+ }
15407
+ },
15408
+ "summary" : "Get AI Gateway limits settings",
15409
+ "tags" : [ "ai-gateway" ]
15410
+ },
15411
+ "put" : {
15412
+ "description" : "Organization admin can set gateway RPM and per-model token quotas.",
15413
+ "operationId" : "updateAiGatewaySettings",
15414
+ "parameters" : [ {
15415
+ "description" : "ID of the organization",
15416
+ "in" : "path",
15417
+ "name" : "organizationId",
15418
+ "required" : true,
15419
+ "schema" : {
15420
+ "type" : "string"
15421
+ }
15422
+ } ],
15423
+ "requestBody" : {
15424
+ "content" : {
15425
+ "application/json" : {
15426
+ "schema" : {
15427
+ "$ref" : "#/components/schemas/AiGatewaySettingsUpdateRequest"
15428
+ }
15429
+ }
15430
+ },
15431
+ "required" : true
15432
+ },
15433
+ "responses" : {
15434
+ "200" : {
15435
+ "content" : {
15436
+ "application/json" : {
15437
+ "schema" : {
15438
+ "$ref" : "#/components/schemas/AiGatewaySettings"
15439
+ }
15440
+ }
15441
+ },
15442
+ "description" : "Updated settings"
15443
+ },
15444
+ "400" : {
15445
+ "description" : "Invalid request"
15446
+ },
15447
+ "401" : {
15448
+ "description" : "Unauthorized"
15449
+ },
15450
+ "403" : {
15451
+ "description" : "Forbidden"
15452
+ },
15453
+ "500" : {
15454
+ "description" : "Server error"
15455
+ }
15456
+ },
15457
+ "summary" : "Update AI Gateway limits settings",
15060
15458
  "tags" : [ "ai-gateway" ]
15061
15459
  }
15062
15460
  },
@@ -22471,6 +22869,197 @@
22471
22869
  "title" : "ToolAllowedToolsResponse",
22472
22870
  "type" : "object"
22473
22871
  },
22872
+ "McpCallLogEvent" : {
22873
+ "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.",
22874
+ "enum" : [ "connect", "auth_refresh", "tool_call", "config_change" ],
22875
+ "title" : "McpCallLogEvent",
22876
+ "type" : "string"
22877
+ },
22878
+ "McpCallLogStatus" : {
22879
+ "enum" : [ "ok", "error" ],
22880
+ "title" : "McpCallLogStatus",
22881
+ "type" : "string"
22882
+ },
22883
+ "McpCallLogsResponse" : {
22884
+ "additionalProperties" : false,
22885
+ "properties" : {
22886
+ "logs" : {
22887
+ "items" : {
22888
+ "$ref" : "#/components/schemas/McpCallLog"
22889
+ },
22890
+ "type" : "array"
22891
+ },
22892
+ "nextCursor" : {
22893
+ "allOf" : [ {
22894
+ "$ref" : "#/components/schemas/McpCallLogCursor"
22895
+ } ],
22896
+ "description" : "Null once the last page has been served.",
22897
+ "nullable" : true
22898
+ },
22899
+ "payloadLogging" : {
22900
+ "description" : "Whether this tool is currently capturing arguments and responses.",
22901
+ "type" : "boolean"
22902
+ },
22903
+ "verboseLogging" : {
22904
+ "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.",
22905
+ "type" : "boolean"
22906
+ },
22907
+ "retentionDays" : {
22908
+ "description" : "How long traces are kept before the nightly purge drops them.",
22909
+ "type" : "integer"
22910
+ }
22911
+ },
22912
+ "required" : [ "logs", "nextCursor", "payloadLogging", "retentionDays", "verboseLogging" ],
22913
+ "title" : "McpCallLogsResponse",
22914
+ "type" : "object"
22915
+ },
22916
+ "McpCallLog" : {
22917
+ "additionalProperties" : false,
22918
+ "properties" : {
22919
+ "id" : {
22920
+ "type" : "string"
22921
+ },
22922
+ "orgId" : {
22923
+ "type" : "string"
22924
+ },
22925
+ "toolId" : {
22926
+ "type" : "string"
22927
+ },
22928
+ "toolName" : {
22929
+ "description" : "Name of the tool when the call happened; it survives a later rename.",
22930
+ "nullable" : true,
22931
+ "type" : "string"
22932
+ },
22933
+ "event" : {
22934
+ "$ref" : "#/components/schemas/McpCallLogEvent"
22935
+ },
22936
+ "method" : {
22937
+ "description" : "MCP method called, or the configuration action for a `config_change`.",
22938
+ "nullable" : true,
22939
+ "type" : "string"
22940
+ },
22941
+ "status" : {
22942
+ "$ref" : "#/components/schemas/McpCallLogStatus"
22943
+ },
22944
+ "durationMs" : {
22945
+ "nullable" : true,
22946
+ "type" : "integer"
22947
+ },
22948
+ "serverUrl" : {
22949
+ "description" : "Server URL without its query string, which can carry a token.",
22950
+ "nullable" : true,
22951
+ "type" : "string"
22952
+ },
22953
+ "scope" : {
22954
+ "enum" : [ "organization", "user" ],
22955
+ "type" : "string"
22956
+ },
22957
+ "authType" : {
22958
+ "nullable" : true,
22959
+ "type" : "string"
22960
+ },
22961
+ "userId" : {
22962
+ "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.",
22963
+ "nullable" : true,
22964
+ "type" : "string"
22965
+ },
22966
+ "agentId" : {
22967
+ "nullable" : true,
22968
+ "type" : "string"
22969
+ },
22970
+ "conversationId" : {
22971
+ "nullable" : true,
22972
+ "type" : "string"
22973
+ },
22974
+ "httpStatus" : {
22975
+ "nullable" : true,
22976
+ "type" : "integer"
22977
+ },
22978
+ "errorCode" : {
22979
+ "nullable" : true,
22980
+ "type" : "string"
22981
+ },
22982
+ "errorMessage" : {
22983
+ "nullable" : true,
22984
+ "type" : "string"
22985
+ },
22986
+ "retried" : {
22987
+ "description" : "The call was replayed on a fresh connection after a first failure.",
22988
+ "type" : "boolean"
22989
+ },
22990
+ "requestPreview" : {
22991
+ "description" : "Captured only while payload capture is on, secrets redacted and size bounded.",
22992
+ "nullable" : true,
22993
+ "type" : "string"
22994
+ },
22995
+ "responsePreview" : {
22996
+ "nullable" : true,
22997
+ "type" : "string"
22998
+ },
22999
+ "createdAt" : {
23000
+ "type" : "string"
23001
+ }
23002
+ },
23003
+ "required" : [ "createdAt", "event", "id", "orgId", "retried", "scope", "status", "toolId" ],
23004
+ "title" : "McpCallLog",
23005
+ "type" : "object"
23006
+ },
23007
+ "McpCallLogCursor" : {
23008
+ "additionalProperties" : false,
23009
+ "properties" : {
23010
+ "createdAt" : {
23011
+ "type" : "string"
23012
+ },
23013
+ "id" : {
23014
+ "type" : "string"
23015
+ }
23016
+ },
23017
+ "required" : [ "createdAt", "id" ],
23018
+ "title" : "McpCallLogCursor",
23019
+ "type" : "object"
23020
+ },
23021
+ "McpCallLogsDeletedResponse" : {
23022
+ "additionalProperties" : false,
23023
+ "properties" : {
23024
+ "deleted" : {
23025
+ "type" : "integer"
23026
+ }
23027
+ },
23028
+ "required" : [ "deleted" ],
23029
+ "title" : "McpCallLogsDeletedResponse",
23030
+ "type" : "object"
23031
+ },
23032
+ "McpLogsSettingsRequest" : {
23033
+ "additionalProperties" : false,
23034
+ "description" : "At least one switch. Whichever is omitted keeps its current value, so the screen can flip one without resetting the other.",
23035
+ "minProperties" : 1,
23036
+ "properties" : {
23037
+ "payloads" : {
23038
+ "description" : "Keep the arguments and responses of the calls that get recorded.",
23039
+ "type" : "boolean"
23040
+ },
23041
+ "verbose" : {
23042
+ "description" : "Record all activity, not only failures and configuration changes.",
23043
+ "type" : "boolean"
23044
+ }
23045
+ },
23046
+ "title" : "McpLogsSettingsRequest",
23047
+ "type" : "object"
23048
+ },
23049
+ "McpLogsSettingsResponse" : {
23050
+ "additionalProperties" : false,
23051
+ "properties" : {
23052
+ "payloads" : {
23053
+ "type" : "boolean"
23054
+ },
23055
+ "verbose" : {
23056
+ "type" : "boolean"
23057
+ }
23058
+ },
23059
+ "required" : [ "payloads", "verbose" ],
23060
+ "title" : "McpLogsSettingsResponse",
23061
+ "type" : "object"
23062
+ },
22474
23063
  "ToolConnectionStatusResponse" : {
22475
23064
  "additionalProperties" : false,
22476
23065
  "properties" : {
@@ -23390,6 +23979,96 @@
23390
23979
  "required" : [ "conversationId", "messageId", "text" ],
23391
23980
  "type" : "object"
23392
23981
  },
23982
+ "PromptRateLimitResponse" : {
23983
+ "description" : "Current prompt rate-limit usage for the calling subject on an agent",
23984
+ "properties" : {
23985
+ "limit" : {
23986
+ "description" : "Max prompts allowed in the sliding window",
23987
+ "type" : "integer"
23988
+ },
23989
+ "used" : {
23990
+ "description" : "Prompts already consumed in the current window",
23991
+ "type" : "integer"
23992
+ },
23993
+ "remaining" : {
23994
+ "description" : "Prompts left before rate limiting",
23995
+ "type" : "integer"
23996
+ },
23997
+ "resetSeconds" : {
23998
+ "description" : "Seconds until the oldest event in the window expires",
23999
+ "type" : "integer"
24000
+ }
24001
+ },
24002
+ "required" : [ "limit", "remaining", "resetSeconds", "used" ],
24003
+ "type" : "object"
24004
+ },
24005
+ "AgentRateLimitSettings" : {
24006
+ "properties" : {
24007
+ "organizationId" : {
24008
+ "format" : "uuid",
24009
+ "type" : "string"
24010
+ },
24011
+ "enabled" : {
24012
+ "description" : "Enable agent chat rate limiting for this organization",
24013
+ "type" : "boolean"
24014
+ },
24015
+ "maxConcurrentTurnsPerSubject" : {
24016
+ "description" : "Max concurrent agent turns per user (chat agent)",
24017
+ "minimum" : 1,
24018
+ "type" : "integer"
24019
+ },
24020
+ "maxConversationCreatesPerSubjectPerMinute" : {
24021
+ "description" : "Max new conversations per user per minute",
24022
+ "minimum" : 1,
24023
+ "type" : "integer"
24024
+ },
24025
+ "maxPromptsPerSubjectPerAgentPerMinute" : {
24026
+ "description" : "Max prompts (messages) per user per agent per minute",
24027
+ "minimum" : 1,
24028
+ "type" : "integer"
24029
+ },
24030
+ "windowMs" : {
24031
+ "description" : "Platform-fixed sliding window for prompt and conversation counters (milliseconds). Not configurable per organization.",
24032
+ "minimum" : 1000,
24033
+ "type" : "integer"
24034
+ },
24035
+ "concurrencyLeaseMs" : {
24036
+ "description" : "Platform-fixed max duration of a concurrency slot if release is never called (milliseconds). Not configurable per organization.",
24037
+ "minimum" : 1000,
24038
+ "type" : "integer"
24039
+ },
24040
+ "updatedAt" : {
24041
+ "format" : "date-time",
24042
+ "type" : "string"
24043
+ },
24044
+ "updatedBy" : {
24045
+ "nullable" : true,
24046
+ "type" : "string"
24047
+ }
24048
+ },
24049
+ "required" : [ "concurrencyLeaseMs", "enabled", "maxConcurrentTurnsPerSubject", "maxConversationCreatesPerSubjectPerMinute", "maxPromptsPerSubjectPerAgentPerMinute", "organizationId", "updatedAt", "windowMs" ],
24050
+ "type" : "object"
24051
+ },
24052
+ "AgentRateLimitSettingsUpdateRequest" : {
24053
+ "properties" : {
24054
+ "enabled" : {
24055
+ "type" : "boolean"
24056
+ },
24057
+ "maxConcurrentTurnsPerSubject" : {
24058
+ "minimum" : 1,
24059
+ "type" : "integer"
24060
+ },
24061
+ "maxConversationCreatesPerSubjectPerMinute" : {
24062
+ "minimum" : 1,
24063
+ "type" : "integer"
24064
+ },
24065
+ "maxPromptsPerSubjectPerAgentPerMinute" : {
24066
+ "minimum" : 1,
24067
+ "type" : "integer"
24068
+ }
24069
+ },
24070
+ "type" : "object"
24071
+ },
23393
24072
  "PromptCreateRequest" : {
23394
24073
  "allOf" : [ {
23395
24074
  "$ref" : "#/components/schemas/PromptFlowCreateRequest"
@@ -24175,6 +24854,78 @@
24175
24854
  "required" : [ "inputTokens", "key", "label", "outputTokens", "requests", "totalTokens" ],
24176
24855
  "type" : "object"
24177
24856
  },
24857
+ "AiGatewaySettings" : {
24858
+ "properties" : {
24859
+ "organizationId" : {
24860
+ "format" : "uuid",
24861
+ "type" : "string"
24862
+ },
24863
+ "gatewayRpm" : {
24864
+ "description" : "Max requests per minute per subject; null means unlimited",
24865
+ "nullable" : true,
24866
+ "type" : "integer"
24867
+ },
24868
+ "modelTokenQuotas" : {
24869
+ "items" : {
24870
+ "$ref" : "#/components/schemas/AiGatewayModelTokenQuota"
24871
+ },
24872
+ "type" : "array"
24873
+ },
24874
+ "updatedAt" : {
24875
+ "format" : "date-time",
24876
+ "type" : "string"
24877
+ },
24878
+ "updatedBy" : {
24879
+ "nullable" : true,
24880
+ "type" : "string"
24881
+ }
24882
+ },
24883
+ "required" : [ "gatewayRpm", "modelTokenQuotas", "organizationId", "updatedAt" ],
24884
+ "type" : "object"
24885
+ },
24886
+ "AiGatewayModelTokenQuota" : {
24887
+ "properties" : {
24888
+ "userId" : {
24889
+ "description" : "Breign user id this quota applies to",
24890
+ "type" : "string"
24891
+ },
24892
+ "model" : {
24893
+ "description" : "Bare model id or qualified providerId/modelId",
24894
+ "type" : "string"
24895
+ },
24896
+ "providerId" : {
24897
+ "nullable" : true,
24898
+ "type" : "string"
24899
+ },
24900
+ "limit" : {
24901
+ "description" : "Token cap for this user and period (input + output + reasoning)",
24902
+ "minimum" : 1,
24903
+ "type" : "integer"
24904
+ },
24905
+ "period" : {
24906
+ "enum" : [ "day", "month" ],
24907
+ "type" : "string"
24908
+ }
24909
+ },
24910
+ "required" : [ "limit", "model", "period", "userId" ],
24911
+ "type" : "object"
24912
+ },
24913
+ "AiGatewaySettingsUpdateRequest" : {
24914
+ "properties" : {
24915
+ "gatewayRpm" : {
24916
+ "minimum" : 1,
24917
+ "nullable" : true,
24918
+ "type" : "integer"
24919
+ },
24920
+ "modelTokenQuotas" : {
24921
+ "items" : {
24922
+ "$ref" : "#/components/schemas/AiGatewayModelTokenQuota"
24923
+ },
24924
+ "type" : "array"
24925
+ }
24926
+ },
24927
+ "type" : "object"
24928
+ },
24178
24929
  "AiGatewayV1ModelList" : {
24179
24930
  "properties" : {
24180
24931
  "object" : {