@sanity/client 8.5.0 → 8.6.1
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/{browserUpload-C7PwCs-C.js → browserUpload-BTQyjHMj.js} +2 -2
- package/dist/{browserUpload-C7PwCs-C.js.map → browserUpload-BTQyjHMj.js.map} +1 -1
- package/dist/{browserUpload-D-2Rmfjo.js → browserUpload-QxCD0Hp6.js} +2 -2
- package/dist/{browserUpload-D-2Rmfjo.js.map → browserUpload-QxCD0Hp6.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +48 -1
- package/dist/index.node.js +5 -4
- package/dist/index.node.js.map +1 -1
- package/dist/media-library.d.ts +1 -1
- package/dist/{request-BhMuKj0D.js → request-CYLhJzOA.js} +3 -2
- package/dist/request-CYLhJzOA.js.map +1 -0
- package/dist/{request-SnMg7nUX.js → request-DXOkY5MQ.js} +3 -2
- package/dist/request-DXOkY5MQ.js.map +1 -0
- package/dist/{types-CtHEe8SF.d.ts → types-B1XLvey7.d.ts} +49 -2
- package/package.json +2 -2
- package/src/context/openapi.json +663 -2
- package/src/context/types.gen.ts +48 -1
- package/src/data/dataMethods.ts +2 -5
- package/src/http/request.ts +2 -10
- package/dist/request-BhMuKj0D.js.map +0 -1
- package/dist/request-SnMg7nUX.js.map +0 -1
package/src/context/openapi.json
CHANGED
|
@@ -986,6 +986,24 @@
|
|
|
986
986
|
"classificationError": {
|
|
987
987
|
"nullable": true,
|
|
988
988
|
"type": "string"
|
|
989
|
+
},
|
|
990
|
+
"sharing": {
|
|
991
|
+
"default": null,
|
|
992
|
+
"nullable": true,
|
|
993
|
+
"type": "object",
|
|
994
|
+
"properties": {
|
|
995
|
+
"metrics": {
|
|
996
|
+
"type": "boolean"
|
|
997
|
+
},
|
|
998
|
+
"conversations": {
|
|
999
|
+
"type": "boolean"
|
|
1000
|
+
},
|
|
1001
|
+
"contact": {
|
|
1002
|
+
"type": "string",
|
|
1003
|
+
"maxLength": 200
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
"description": "ConversationSharing"
|
|
989
1007
|
}
|
|
990
1008
|
},
|
|
991
1009
|
"required": [
|
|
@@ -1006,7 +1024,8 @@
|
|
|
1006
1024
|
"tokenUsage",
|
|
1007
1025
|
"coreMetrics",
|
|
1008
1026
|
"classifiedAt",
|
|
1009
|
-
"classificationError"
|
|
1027
|
+
"classificationError",
|
|
1028
|
+
"sharing"
|
|
1010
1029
|
],
|
|
1011
1030
|
"description": "A `sanity.context.conversation` document, one agent conversation transcript with its classification, stored in the organization store. Not returned by any endpoint raw; published so GROQ reads can be typed. Write through the conversation ingest and classify endpoints, never with a raw client."
|
|
1012
1031
|
},
|
|
@@ -1373,6 +1392,23 @@
|
|
|
1373
1392
|
"minimum": -9007199254740991,
|
|
1374
1393
|
"maximum": 9007199254740991
|
|
1375
1394
|
},
|
|
1395
|
+
"createdBy": {
|
|
1396
|
+
"nullable": true,
|
|
1397
|
+
"type": "object",
|
|
1398
|
+
"properties": {
|
|
1399
|
+
"id": {
|
|
1400
|
+
"nullable": true,
|
|
1401
|
+
"type": "string"
|
|
1402
|
+
},
|
|
1403
|
+
"displayName": {
|
|
1404
|
+
"nullable": true,
|
|
1405
|
+
"type": "string"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"required": ["id", "displayName"],
|
|
1409
|
+
"additionalProperties": false,
|
|
1410
|
+
"description": "Actor"
|
|
1411
|
+
},
|
|
1376
1412
|
"createdAt": {
|
|
1377
1413
|
"type": "string",
|
|
1378
1414
|
"format": "date-time",
|
|
@@ -1409,6 +1445,7 @@
|
|
|
1409
1445
|
"refreshInFlight",
|
|
1410
1446
|
"openIssueCount",
|
|
1411
1447
|
"instructionCount",
|
|
1448
|
+
"createdBy",
|
|
1412
1449
|
"createdAt",
|
|
1413
1450
|
"updatedAt"
|
|
1414
1451
|
],
|
|
@@ -1674,6 +1711,23 @@
|
|
|
1674
1711
|
"minimum": -9007199254740991,
|
|
1675
1712
|
"maximum": 9007199254740991
|
|
1676
1713
|
},
|
|
1714
|
+
"createdBy": {
|
|
1715
|
+
"nullable": true,
|
|
1716
|
+
"type": "object",
|
|
1717
|
+
"properties": {
|
|
1718
|
+
"id": {
|
|
1719
|
+
"nullable": true,
|
|
1720
|
+
"type": "string"
|
|
1721
|
+
},
|
|
1722
|
+
"displayName": {
|
|
1723
|
+
"nullable": true,
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
"required": ["id", "displayName"],
|
|
1728
|
+
"additionalProperties": false,
|
|
1729
|
+
"description": "Actor"
|
|
1730
|
+
},
|
|
1677
1731
|
"createdAt": {
|
|
1678
1732
|
"type": "string",
|
|
1679
1733
|
"format": "date-time",
|
|
@@ -1710,6 +1764,7 @@
|
|
|
1710
1764
|
"refreshInFlight",
|
|
1711
1765
|
"openIssueCount",
|
|
1712
1766
|
"instructionCount",
|
|
1767
|
+
"createdBy",
|
|
1713
1768
|
"createdAt",
|
|
1714
1769
|
"updatedAt"
|
|
1715
1770
|
],
|
|
@@ -1942,6 +1997,23 @@
|
|
|
1942
1997
|
"minimum": -9007199254740991,
|
|
1943
1998
|
"maximum": 9007199254740991
|
|
1944
1999
|
},
|
|
2000
|
+
"createdBy": {
|
|
2001
|
+
"nullable": true,
|
|
2002
|
+
"type": "object",
|
|
2003
|
+
"properties": {
|
|
2004
|
+
"id": {
|
|
2005
|
+
"nullable": true,
|
|
2006
|
+
"type": "string"
|
|
2007
|
+
},
|
|
2008
|
+
"displayName": {
|
|
2009
|
+
"nullable": true,
|
|
2010
|
+
"type": "string"
|
|
2011
|
+
}
|
|
2012
|
+
},
|
|
2013
|
+
"required": ["id", "displayName"],
|
|
2014
|
+
"additionalProperties": false,
|
|
2015
|
+
"description": "Actor"
|
|
2016
|
+
},
|
|
1945
2017
|
"createdAt": {
|
|
1946
2018
|
"type": "string",
|
|
1947
2019
|
"format": "date-time",
|
|
@@ -1978,6 +2050,7 @@
|
|
|
1978
2050
|
"refreshInFlight",
|
|
1979
2051
|
"openIssueCount",
|
|
1980
2052
|
"instructionCount",
|
|
2053
|
+
"createdBy",
|
|
1981
2054
|
"createdAt",
|
|
1982
2055
|
"updatedAt"
|
|
1983
2056
|
],
|
|
@@ -2237,6 +2310,23 @@
|
|
|
2237
2310
|
"minimum": -9007199254740991,
|
|
2238
2311
|
"maximum": 9007199254740991
|
|
2239
2312
|
},
|
|
2313
|
+
"createdBy": {
|
|
2314
|
+
"nullable": true,
|
|
2315
|
+
"type": "object",
|
|
2316
|
+
"properties": {
|
|
2317
|
+
"id": {
|
|
2318
|
+
"nullable": true,
|
|
2319
|
+
"type": "string"
|
|
2320
|
+
},
|
|
2321
|
+
"displayName": {
|
|
2322
|
+
"nullable": true,
|
|
2323
|
+
"type": "string"
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
"required": ["id", "displayName"],
|
|
2327
|
+
"additionalProperties": false,
|
|
2328
|
+
"description": "Actor"
|
|
2329
|
+
},
|
|
2240
2330
|
"createdAt": {
|
|
2241
2331
|
"type": "string",
|
|
2242
2332
|
"format": "date-time",
|
|
@@ -2273,6 +2363,7 @@
|
|
|
2273
2363
|
"refreshInFlight",
|
|
2274
2364
|
"openIssueCount",
|
|
2275
2365
|
"instructionCount",
|
|
2366
|
+
"createdBy",
|
|
2276
2367
|
"createdAt",
|
|
2277
2368
|
"updatedAt"
|
|
2278
2369
|
],
|
|
@@ -4800,12 +4891,524 @@
|
|
|
4800
4891
|
}
|
|
4801
4892
|
}
|
|
4802
4893
|
},
|
|
4894
|
+
"/{apiVersion}/context/organizations/{organizationId}/mcp/{mcpEndpointName}": {
|
|
4895
|
+
"post": {
|
|
4896
|
+
"operationId": "serveMcpEndpoint",
|
|
4897
|
+
"summary": "Connect to an MCP endpoint",
|
|
4898
|
+
"tags": ["mcp"],
|
|
4899
|
+
"description": "The MCP serving surface (streamable HTTP, JSON-RPC 2.0). Agents POST MCP protocol messages here; the endpoint name in the path is the immutable URL identifier. Query params are transient runtime overrides of the endpoint configuration. Errors are JSON-RPC error objects, not the REST error envelope.",
|
|
4900
|
+
"parameters": [
|
|
4901
|
+
{
|
|
4902
|
+
"schema": {
|
|
4903
|
+
"type": "string"
|
|
4904
|
+
},
|
|
4905
|
+
"in": "query",
|
|
4906
|
+
"name": "tools",
|
|
4907
|
+
"required": false
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
"schema": {
|
|
4911
|
+
"type": "string"
|
|
4912
|
+
},
|
|
4913
|
+
"in": "query",
|
|
4914
|
+
"name": "instructions",
|
|
4915
|
+
"required": false
|
|
4916
|
+
},
|
|
4917
|
+
{
|
|
4918
|
+
"schema": {
|
|
4919
|
+
"type": "string"
|
|
4920
|
+
},
|
|
4921
|
+
"in": "query",
|
|
4922
|
+
"name": "perspective",
|
|
4923
|
+
"required": false
|
|
4924
|
+
},
|
|
4925
|
+
{
|
|
4926
|
+
"schema": {
|
|
4927
|
+
"type": "string"
|
|
4928
|
+
},
|
|
4929
|
+
"in": "query",
|
|
4930
|
+
"name": "embeddings",
|
|
4931
|
+
"required": false
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
"schema": {
|
|
4935
|
+
"type": "string"
|
|
4936
|
+
},
|
|
4937
|
+
"in": "query",
|
|
4938
|
+
"name": "groqFilter",
|
|
4939
|
+
"required": false
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
"schema": {
|
|
4943
|
+
"type": "string",
|
|
4944
|
+
"enum": ["knowledge_base", "groq"]
|
|
4945
|
+
},
|
|
4946
|
+
"in": "query",
|
|
4947
|
+
"name": "mode",
|
|
4948
|
+
"required": false
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
"schema": {
|
|
4952
|
+
"type": "string"
|
|
4953
|
+
},
|
|
4954
|
+
"in": "query",
|
|
4955
|
+
"name": "knowledgeBases",
|
|
4956
|
+
"required": false
|
|
4957
|
+
},
|
|
4958
|
+
{
|
|
4959
|
+
"schema": {
|
|
4960
|
+
"type": "string"
|
|
4961
|
+
},
|
|
4962
|
+
"in": "query",
|
|
4963
|
+
"name": "linkResolver",
|
|
4964
|
+
"required": false
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"schema": {
|
|
4968
|
+
"type": "string"
|
|
4969
|
+
},
|
|
4970
|
+
"in": "query",
|
|
4971
|
+
"name": "workspace",
|
|
4972
|
+
"required": false
|
|
4973
|
+
},
|
|
4974
|
+
{
|
|
4975
|
+
"schema": {
|
|
4976
|
+
"type": "string",
|
|
4977
|
+
"minLength": 1
|
|
4978
|
+
},
|
|
4979
|
+
"in": "path",
|
|
4980
|
+
"name": "mcpEndpointName",
|
|
4981
|
+
"required": true
|
|
4982
|
+
}
|
|
4983
|
+
],
|
|
4984
|
+
"responses": {
|
|
4985
|
+
"200": {
|
|
4986
|
+
"description": "Default Response"
|
|
4987
|
+
}
|
|
4988
|
+
}
|
|
4989
|
+
}
|
|
4990
|
+
},
|
|
4991
|
+
"/{apiVersion}/context/organizations/{organizationId}/mcp/{mcpEndpointName}/initial-context": {
|
|
4992
|
+
"get": {
|
|
4993
|
+
"operationId": "getMcpEndpointInitialContext",
|
|
4994
|
+
"summary": "Get an MCP endpoint's initial context as text",
|
|
4995
|
+
"tags": ["mcp"],
|
|
4996
|
+
"description": "The same text the `initial_context` MCP tool returns, for direct injection into system prompts. `heading_offset` shifts markdown headings down N levels (default 1, so `#` becomes `##`).",
|
|
4997
|
+
"parameters": [
|
|
4998
|
+
{
|
|
4999
|
+
"schema": {
|
|
5000
|
+
"type": "string"
|
|
5001
|
+
},
|
|
5002
|
+
"in": "query",
|
|
5003
|
+
"name": "tools",
|
|
5004
|
+
"required": false
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
"schema": {
|
|
5008
|
+
"type": "string"
|
|
5009
|
+
},
|
|
5010
|
+
"in": "query",
|
|
5011
|
+
"name": "instructions",
|
|
5012
|
+
"required": false
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
"schema": {
|
|
5016
|
+
"type": "string"
|
|
5017
|
+
},
|
|
5018
|
+
"in": "query",
|
|
5019
|
+
"name": "perspective",
|
|
5020
|
+
"required": false
|
|
5021
|
+
},
|
|
5022
|
+
{
|
|
5023
|
+
"schema": {
|
|
5024
|
+
"type": "string"
|
|
5025
|
+
},
|
|
5026
|
+
"in": "query",
|
|
5027
|
+
"name": "embeddings",
|
|
5028
|
+
"required": false
|
|
5029
|
+
},
|
|
5030
|
+
{
|
|
5031
|
+
"schema": {
|
|
5032
|
+
"type": "string"
|
|
5033
|
+
},
|
|
5034
|
+
"in": "query",
|
|
5035
|
+
"name": "groqFilter",
|
|
5036
|
+
"required": false
|
|
5037
|
+
},
|
|
5038
|
+
{
|
|
5039
|
+
"schema": {
|
|
5040
|
+
"type": "string",
|
|
5041
|
+
"enum": ["knowledge_base", "groq"]
|
|
5042
|
+
},
|
|
5043
|
+
"in": "query",
|
|
5044
|
+
"name": "mode",
|
|
5045
|
+
"required": false
|
|
5046
|
+
},
|
|
5047
|
+
{
|
|
5048
|
+
"schema": {
|
|
5049
|
+
"type": "string"
|
|
5050
|
+
},
|
|
5051
|
+
"in": "query",
|
|
5052
|
+
"name": "knowledgeBases",
|
|
5053
|
+
"required": false
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
"schema": {
|
|
5057
|
+
"type": "string"
|
|
5058
|
+
},
|
|
5059
|
+
"in": "query",
|
|
5060
|
+
"name": "linkResolver",
|
|
5061
|
+
"required": false
|
|
5062
|
+
},
|
|
5063
|
+
{
|
|
5064
|
+
"schema": {
|
|
5065
|
+
"type": "string"
|
|
5066
|
+
},
|
|
5067
|
+
"in": "query",
|
|
5068
|
+
"name": "workspace",
|
|
5069
|
+
"required": false
|
|
5070
|
+
},
|
|
5071
|
+
{
|
|
5072
|
+
"schema": {
|
|
5073
|
+
"type": "string"
|
|
5074
|
+
},
|
|
5075
|
+
"in": "query",
|
|
5076
|
+
"name": "heading_offset",
|
|
5077
|
+
"required": false
|
|
5078
|
+
},
|
|
5079
|
+
{
|
|
5080
|
+
"schema": {
|
|
5081
|
+
"type": "string",
|
|
5082
|
+
"minLength": 1
|
|
5083
|
+
},
|
|
5084
|
+
"in": "path",
|
|
5085
|
+
"name": "mcpEndpointName",
|
|
5086
|
+
"required": true
|
|
5087
|
+
}
|
|
5088
|
+
],
|
|
5089
|
+
"responses": {
|
|
5090
|
+
"200": {
|
|
5091
|
+
"description": "Default Response"
|
|
5092
|
+
}
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
5095
|
+
},
|
|
5096
|
+
"/{apiVersion}/context/organizations/{organizationId}/mcp/{mcpEndpointName}/status": {
|
|
5097
|
+
"get": {
|
|
5098
|
+
"operationId": "getMcpEndpointStatus",
|
|
5099
|
+
"summary": "Pre-flight checks for an MCP endpoint",
|
|
5100
|
+
"tags": ["mcp"],
|
|
5101
|
+
"description": "Verifies the endpoint can serve a connection with this credential: Studio deployment and schema (GROQ mode), semantic search readiness, and knowledge-base resolution — reporting denied and missing knowledge bases distinctly. Always 200 with per-check verdicts; `requiredOk` is mode-aware.",
|
|
5102
|
+
"parameters": [
|
|
5103
|
+
{
|
|
5104
|
+
"schema": {
|
|
5105
|
+
"type": "string"
|
|
5106
|
+
},
|
|
5107
|
+
"in": "query",
|
|
5108
|
+
"name": "tools",
|
|
5109
|
+
"required": false
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
"schema": {
|
|
5113
|
+
"type": "string"
|
|
5114
|
+
},
|
|
5115
|
+
"in": "query",
|
|
5116
|
+
"name": "instructions",
|
|
5117
|
+
"required": false
|
|
5118
|
+
},
|
|
5119
|
+
{
|
|
5120
|
+
"schema": {
|
|
5121
|
+
"type": "string"
|
|
5122
|
+
},
|
|
5123
|
+
"in": "query",
|
|
5124
|
+
"name": "perspective",
|
|
5125
|
+
"required": false
|
|
5126
|
+
},
|
|
5127
|
+
{
|
|
5128
|
+
"schema": {
|
|
5129
|
+
"type": "string"
|
|
5130
|
+
},
|
|
5131
|
+
"in": "query",
|
|
5132
|
+
"name": "embeddings",
|
|
5133
|
+
"required": false
|
|
5134
|
+
},
|
|
5135
|
+
{
|
|
5136
|
+
"schema": {
|
|
5137
|
+
"type": "string"
|
|
5138
|
+
},
|
|
5139
|
+
"in": "query",
|
|
5140
|
+
"name": "groqFilter",
|
|
5141
|
+
"required": false
|
|
5142
|
+
},
|
|
5143
|
+
{
|
|
5144
|
+
"schema": {
|
|
5145
|
+
"type": "string",
|
|
5146
|
+
"enum": ["knowledge_base", "groq"]
|
|
5147
|
+
},
|
|
5148
|
+
"in": "query",
|
|
5149
|
+
"name": "mode",
|
|
5150
|
+
"required": false
|
|
5151
|
+
},
|
|
5152
|
+
{
|
|
5153
|
+
"schema": {
|
|
5154
|
+
"type": "string"
|
|
5155
|
+
},
|
|
5156
|
+
"in": "query",
|
|
5157
|
+
"name": "knowledgeBases",
|
|
5158
|
+
"required": false
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"schema": {
|
|
5162
|
+
"type": "string"
|
|
5163
|
+
},
|
|
5164
|
+
"in": "query",
|
|
5165
|
+
"name": "linkResolver",
|
|
5166
|
+
"required": false
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
"schema": {
|
|
5170
|
+
"type": "string"
|
|
5171
|
+
},
|
|
5172
|
+
"in": "query",
|
|
5173
|
+
"name": "workspace",
|
|
5174
|
+
"required": false
|
|
5175
|
+
},
|
|
5176
|
+
{
|
|
5177
|
+
"schema": {
|
|
5178
|
+
"type": "string",
|
|
5179
|
+
"minLength": 1
|
|
5180
|
+
},
|
|
5181
|
+
"in": "path",
|
|
5182
|
+
"name": "mcpEndpointName",
|
|
5183
|
+
"required": true
|
|
5184
|
+
}
|
|
5185
|
+
],
|
|
5186
|
+
"responses": {
|
|
5187
|
+
"200": {
|
|
5188
|
+
"description": "Default Response",
|
|
5189
|
+
"content": {
|
|
5190
|
+
"application/json": {
|
|
5191
|
+
"schema": {
|
|
5192
|
+
"type": "object",
|
|
5193
|
+
"properties": {
|
|
5194
|
+
"requiredOk": {
|
|
5195
|
+
"type": "boolean"
|
|
5196
|
+
},
|
|
5197
|
+
"checks": {
|
|
5198
|
+
"type": "object",
|
|
5199
|
+
"properties": {
|
|
5200
|
+
"studio": {
|
|
5201
|
+
"anyOf": [
|
|
5202
|
+
{
|
|
5203
|
+
"type": "object",
|
|
5204
|
+
"properties": {
|
|
5205
|
+
"ok": {
|
|
5206
|
+
"type": "boolean",
|
|
5207
|
+
"enum": [true]
|
|
5208
|
+
},
|
|
5209
|
+
"workspace": {
|
|
5210
|
+
"type": "string"
|
|
5211
|
+
},
|
|
5212
|
+
"workspaceTitle": {
|
|
5213
|
+
"type": "string"
|
|
5214
|
+
},
|
|
5215
|
+
"workspaceAutoSelected": {
|
|
5216
|
+
"type": "boolean"
|
|
5217
|
+
},
|
|
5218
|
+
"availableWorkspaces": {
|
|
5219
|
+
"type": "array",
|
|
5220
|
+
"items": {
|
|
5221
|
+
"type": "object",
|
|
5222
|
+
"properties": {
|
|
5223
|
+
"name": {
|
|
5224
|
+
"type": "string"
|
|
5225
|
+
},
|
|
5226
|
+
"title": {
|
|
5227
|
+
"type": "string"
|
|
5228
|
+
}
|
|
5229
|
+
},
|
|
5230
|
+
"required": ["name", "title"],
|
|
5231
|
+
"additionalProperties": false
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
},
|
|
5235
|
+
"required": [
|
|
5236
|
+
"ok",
|
|
5237
|
+
"workspace",
|
|
5238
|
+
"workspaceTitle",
|
|
5239
|
+
"workspaceAutoSelected",
|
|
5240
|
+
"availableWorkspaces"
|
|
5241
|
+
],
|
|
5242
|
+
"additionalProperties": false
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"type": "object",
|
|
5246
|
+
"properties": {
|
|
5247
|
+
"ok": {
|
|
5248
|
+
"type": "boolean",
|
|
5249
|
+
"enum": [false]
|
|
5250
|
+
},
|
|
5251
|
+
"error": {
|
|
5252
|
+
"type": "string"
|
|
5253
|
+
}
|
|
5254
|
+
},
|
|
5255
|
+
"required": ["ok", "error"],
|
|
5256
|
+
"additionalProperties": false
|
|
5257
|
+
}
|
|
5258
|
+
]
|
|
5259
|
+
},
|
|
5260
|
+
"semanticSearch": {
|
|
5261
|
+
"nullable": true,
|
|
5262
|
+
"anyOf": [
|
|
5263
|
+
{
|
|
5264
|
+
"type": "object",
|
|
5265
|
+
"properties": {
|
|
5266
|
+
"ok": {
|
|
5267
|
+
"type": "boolean",
|
|
5268
|
+
"enum": [true]
|
|
5269
|
+
},
|
|
5270
|
+
"enabled": {
|
|
5271
|
+
"type": "boolean"
|
|
5272
|
+
},
|
|
5273
|
+
"status": {
|
|
5274
|
+
"nullable": true,
|
|
5275
|
+
"type": "string"
|
|
5276
|
+
},
|
|
5277
|
+
"withinUsageLimit": {
|
|
5278
|
+
"nullable": true,
|
|
5279
|
+
"type": "boolean"
|
|
5280
|
+
}
|
|
5281
|
+
},
|
|
5282
|
+
"required": ["ok", "enabled", "status", "withinUsageLimit"],
|
|
5283
|
+
"additionalProperties": false
|
|
5284
|
+
},
|
|
5285
|
+
{
|
|
5286
|
+
"type": "object",
|
|
5287
|
+
"properties": {
|
|
5288
|
+
"ok": {
|
|
5289
|
+
"type": "boolean",
|
|
5290
|
+
"enum": [false]
|
|
5291
|
+
},
|
|
5292
|
+
"error": {
|
|
5293
|
+
"type": "string"
|
|
5294
|
+
}
|
|
5295
|
+
},
|
|
5296
|
+
"required": ["ok", "error"],
|
|
5297
|
+
"additionalProperties": false
|
|
5298
|
+
}
|
|
5299
|
+
]
|
|
5300
|
+
},
|
|
5301
|
+
"schema": {
|
|
5302
|
+
"anyOf": [
|
|
5303
|
+
{
|
|
5304
|
+
"type": "object",
|
|
5305
|
+
"properties": {
|
|
5306
|
+
"ok": {
|
|
5307
|
+
"type": "boolean",
|
|
5308
|
+
"enum": [true]
|
|
5309
|
+
},
|
|
5310
|
+
"documentTypes": {
|
|
5311
|
+
"type": "number"
|
|
5312
|
+
}
|
|
5313
|
+
},
|
|
5314
|
+
"required": ["ok", "documentTypes"],
|
|
5315
|
+
"additionalProperties": false
|
|
5316
|
+
},
|
|
5317
|
+
{
|
|
5318
|
+
"type": "object",
|
|
5319
|
+
"properties": {
|
|
5320
|
+
"ok": {
|
|
5321
|
+
"type": "boolean",
|
|
5322
|
+
"enum": [false]
|
|
5323
|
+
},
|
|
5324
|
+
"error": {
|
|
5325
|
+
"type": "string"
|
|
5326
|
+
}
|
|
5327
|
+
},
|
|
5328
|
+
"required": ["ok", "error"],
|
|
5329
|
+
"additionalProperties": false
|
|
5330
|
+
}
|
|
5331
|
+
]
|
|
5332
|
+
},
|
|
5333
|
+
"knowledgeBases": {
|
|
5334
|
+
"anyOf": [
|
|
5335
|
+
{
|
|
5336
|
+
"type": "object",
|
|
5337
|
+
"properties": {
|
|
5338
|
+
"ok": {
|
|
5339
|
+
"type": "boolean",
|
|
5340
|
+
"enum": [true]
|
|
5341
|
+
},
|
|
5342
|
+
"resolved": {
|
|
5343
|
+
"type": "array",
|
|
5344
|
+
"items": {
|
|
5345
|
+
"type": "string"
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
5348
|
+
"missing": {
|
|
5349
|
+
"type": "array",
|
|
5350
|
+
"items": {
|
|
5351
|
+
"type": "string"
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
},
|
|
5355
|
+
"required": ["ok", "resolved", "missing"],
|
|
5356
|
+
"additionalProperties": false
|
|
5357
|
+
},
|
|
5358
|
+
{
|
|
5359
|
+
"type": "object",
|
|
5360
|
+
"properties": {
|
|
5361
|
+
"ok": {
|
|
5362
|
+
"type": "boolean",
|
|
5363
|
+
"enum": [false]
|
|
5364
|
+
},
|
|
5365
|
+
"resolved": {
|
|
5366
|
+
"type": "array",
|
|
5367
|
+
"items": {
|
|
5368
|
+
"type": "string"
|
|
5369
|
+
}
|
|
5370
|
+
},
|
|
5371
|
+
"missing": {
|
|
5372
|
+
"type": "array",
|
|
5373
|
+
"items": {
|
|
5374
|
+
"type": "string"
|
|
5375
|
+
}
|
|
5376
|
+
},
|
|
5377
|
+
"denied": {
|
|
5378
|
+
"type": "array",
|
|
5379
|
+
"items": {
|
|
5380
|
+
"type": "string"
|
|
5381
|
+
}
|
|
5382
|
+
},
|
|
5383
|
+
"error": {
|
|
5384
|
+
"type": "string"
|
|
5385
|
+
}
|
|
5386
|
+
},
|
|
5387
|
+
"required": ["ok", "resolved", "missing", "error"],
|
|
5388
|
+
"additionalProperties": false
|
|
5389
|
+
}
|
|
5390
|
+
]
|
|
5391
|
+
}
|
|
5392
|
+
},
|
|
5393
|
+
"required": ["studio", "semanticSearch", "schema", "knowledgeBases"],
|
|
5394
|
+
"additionalProperties": false
|
|
5395
|
+
}
|
|
5396
|
+
},
|
|
5397
|
+
"required": ["requiredOk", "checks"],
|
|
5398
|
+
"additionalProperties": false
|
|
5399
|
+
}
|
|
5400
|
+
}
|
|
5401
|
+
}
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
},
|
|
4803
5406
|
"/{apiVersion}/context/organizations/{organizationId}/conversations/{threadId}": {
|
|
4804
5407
|
"put": {
|
|
4805
5408
|
"operationId": "saveConversation",
|
|
4806
5409
|
"summary": "Record a conversation",
|
|
4807
5410
|
"tags": ["conversations"],
|
|
4808
|
-
"description": "Upserts the conversation telemetry for one thread. `threadId` identifies the conversation within your organization — reuse means the same conversation. Messages replace the stored transcript wholesale; `metadata` and model fields only overwrite when present. Last write per thread wins — retries are safe.",
|
|
5411
|
+
"description": "Upserts the conversation telemetry for one thread. `threadId` identifies the conversation within your organization — reuse means the same conversation. Messages replace the stored transcript wholesale; `metadata`, `sharing`, and model fields only overwrite when present. Last write per thread wins — retries are safe. `sharing` records your opt-in to share telemetry with Sanity: metadata-only metrics, or full transcripts.",
|
|
4809
5412
|
"requestBody": {
|
|
4810
5413
|
"required": true,
|
|
4811
5414
|
"content": {
|
|
@@ -4885,6 +5488,22 @@
|
|
|
4885
5488
|
]
|
|
4886
5489
|
},
|
|
4887
5490
|
"description": "ConversationMetadata"
|
|
5491
|
+
},
|
|
5492
|
+
"sharing": {
|
|
5493
|
+
"type": "object",
|
|
5494
|
+
"properties": {
|
|
5495
|
+
"metrics": {
|
|
5496
|
+
"type": "boolean"
|
|
5497
|
+
},
|
|
5498
|
+
"conversations": {
|
|
5499
|
+
"type": "boolean"
|
|
5500
|
+
},
|
|
5501
|
+
"contact": {
|
|
5502
|
+
"type": "string",
|
|
5503
|
+
"maxLength": 200
|
|
5504
|
+
}
|
|
5505
|
+
},
|
|
5506
|
+
"description": "ConversationSharing"
|
|
4888
5507
|
}
|
|
4889
5508
|
},
|
|
4890
5509
|
"required": ["messages"],
|
|
@@ -5039,6 +5658,24 @@
|
|
|
5039
5658
|
"nullable": true,
|
|
5040
5659
|
"type": "string"
|
|
5041
5660
|
},
|
|
5661
|
+
"sharing": {
|
|
5662
|
+
"nullable": true,
|
|
5663
|
+
"type": "object",
|
|
5664
|
+
"properties": {
|
|
5665
|
+
"metrics": {
|
|
5666
|
+
"type": "boolean"
|
|
5667
|
+
},
|
|
5668
|
+
"conversations": {
|
|
5669
|
+
"type": "boolean"
|
|
5670
|
+
},
|
|
5671
|
+
"contact": {
|
|
5672
|
+
"type": "string",
|
|
5673
|
+
"maxLength": 200
|
|
5674
|
+
}
|
|
5675
|
+
},
|
|
5676
|
+
"additionalProperties": false,
|
|
5677
|
+
"description": "ConversationSharing"
|
|
5678
|
+
},
|
|
5042
5679
|
"createdAt": {
|
|
5043
5680
|
"type": "string",
|
|
5044
5681
|
"format": "date-time",
|
|
@@ -5063,6 +5700,7 @@
|
|
|
5063
5700
|
"coreMetrics",
|
|
5064
5701
|
"classifiedAt",
|
|
5065
5702
|
"classificationError",
|
|
5703
|
+
"sharing",
|
|
5066
5704
|
"createdAt",
|
|
5067
5705
|
"updatedAt"
|
|
5068
5706
|
],
|
|
@@ -5265,6 +5903,24 @@
|
|
|
5265
5903
|
"nullable": true,
|
|
5266
5904
|
"type": "string"
|
|
5267
5905
|
},
|
|
5906
|
+
"sharing": {
|
|
5907
|
+
"nullable": true,
|
|
5908
|
+
"type": "object",
|
|
5909
|
+
"properties": {
|
|
5910
|
+
"metrics": {
|
|
5911
|
+
"type": "boolean"
|
|
5912
|
+
},
|
|
5913
|
+
"conversations": {
|
|
5914
|
+
"type": "boolean"
|
|
5915
|
+
},
|
|
5916
|
+
"contact": {
|
|
5917
|
+
"type": "string",
|
|
5918
|
+
"maxLength": 200
|
|
5919
|
+
}
|
|
5920
|
+
},
|
|
5921
|
+
"additionalProperties": false,
|
|
5922
|
+
"description": "ConversationSharing"
|
|
5923
|
+
},
|
|
5268
5924
|
"createdAt": {
|
|
5269
5925
|
"type": "string",
|
|
5270
5926
|
"format": "date-time",
|
|
@@ -5289,6 +5945,7 @@
|
|
|
5289
5945
|
"coreMetrics",
|
|
5290
5946
|
"classifiedAt",
|
|
5291
5947
|
"classificationError",
|
|
5948
|
+
"sharing",
|
|
5292
5949
|
"createdAt",
|
|
5293
5950
|
"updatedAt"
|
|
5294
5951
|
],
|
|
@@ -5325,6 +5982,10 @@
|
|
|
5325
5982
|
"name": "instructions",
|
|
5326
5983
|
"description": "Standing rules steering every build"
|
|
5327
5984
|
},
|
|
5985
|
+
{
|
|
5986
|
+
"name": "mcp",
|
|
5987
|
+
"description": "MCP endpoint configurations agents connect through"
|
|
5988
|
+
},
|
|
5328
5989
|
{
|
|
5329
5990
|
"name": "conversations",
|
|
5330
5991
|
"description": "Agent conversation telemetry: ingest and classification"
|