@snokam/mcp-api 2.38.0 → 2.40.0
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/package.json +1 -1
- package/specs/production/sales.json +1 -1
- package/specs/production/sanity.json +93 -31
- package/specs/test/sales.json +1 -1
- package/specs/test/sanity.json +93 -31
package/package.json
CHANGED
|
@@ -30436,6 +30436,13 @@
|
|
|
30436
30436
|
"telephone": {
|
|
30437
30437
|
"type": "string"
|
|
30438
30438
|
},
|
|
30439
|
+
"track": {
|
|
30440
|
+
"type": "string",
|
|
30441
|
+
"enum": [
|
|
30442
|
+
"developer",
|
|
30443
|
+
"data_engineer"
|
|
30444
|
+
]
|
|
30445
|
+
},
|
|
30439
30446
|
"fromApplication": {
|
|
30440
30447
|
"type": "boolean"
|
|
30441
30448
|
},
|
|
@@ -30580,6 +30587,15 @@
|
|
|
30580
30587
|
"type": "boolean",
|
|
30581
30588
|
"nullable": true
|
|
30582
30589
|
},
|
|
30590
|
+
"track": {
|
|
30591
|
+
"type": "string",
|
|
30592
|
+
"enum": [
|
|
30593
|
+
"developer",
|
|
30594
|
+
"data_engineer",
|
|
30595
|
+
null
|
|
30596
|
+
],
|
|
30597
|
+
"nullable": true
|
|
30598
|
+
},
|
|
30583
30599
|
"applicationLetter": {
|
|
30584
30600
|
"properties": {
|
|
30585
30601
|
"sanityType": {
|
|
@@ -50005,21 +50021,22 @@
|
|
|
50005
50021
|
}
|
|
50006
50022
|
}
|
|
50007
50023
|
},
|
|
50008
|
-
"/v1.0/articles/
|
|
50024
|
+
"/v1.0/articles/drafts": {
|
|
50009
50025
|
"get": {
|
|
50010
|
-
"operationId": "
|
|
50026
|
+
"operationId": "GetDraftOnlyArticles",
|
|
50011
50027
|
"responses": {
|
|
50012
50028
|
"200": {
|
|
50013
50029
|
"description": "Ok",
|
|
50014
50030
|
"content": {
|
|
50015
50031
|
"application/json": {
|
|
50016
50032
|
"schema": {
|
|
50017
|
-
"$ref": "#/components/schemas/
|
|
50033
|
+
"$ref": "#/components/schemas/GetArticlesResult"
|
|
50018
50034
|
}
|
|
50019
50035
|
}
|
|
50020
50036
|
}
|
|
50021
50037
|
}
|
|
50022
50038
|
},
|
|
50039
|
+
"description": "Drafts with no published counterpart. Used by the admin list so\nauthors can resume unfinished articles. Same projection as\n`GetArticles`, so the list UI can render both uniformly and only\ntag the draft rows with an \"Utkast\" badge.\n\nDedup is done here (not in GROQ): strip the 7-char `drafts.`\nprefix from each draft's _id and filter out any that have a\nmatching document in the published set.",
|
|
50023
50040
|
"tags": [
|
|
50024
50041
|
"Articles"
|
|
50025
50042
|
],
|
|
@@ -50031,20 +50048,12 @@
|
|
|
50031
50048
|
}
|
|
50032
50049
|
],
|
|
50033
50050
|
"parameters": [
|
|
50034
|
-
{
|
|
50035
|
-
"in": "path",
|
|
50036
|
-
"name": "employeeId",
|
|
50037
|
-
"required": true,
|
|
50038
|
-
"schema": {
|
|
50039
|
-
"type": "string"
|
|
50040
|
-
}
|
|
50041
|
-
},
|
|
50042
50051
|
{
|
|
50043
50052
|
"in": "query",
|
|
50044
50053
|
"name": "useCache",
|
|
50045
50054
|
"required": false,
|
|
50046
50055
|
"schema": {
|
|
50047
|
-
"default":
|
|
50056
|
+
"default": false,
|
|
50048
50057
|
"type": "boolean"
|
|
50049
50058
|
}
|
|
50050
50059
|
},
|
|
@@ -50058,24 +50067,60 @@
|
|
|
50058
50067
|
}
|
|
50059
50068
|
}
|
|
50060
50069
|
]
|
|
50070
|
+
},
|
|
50071
|
+
"post": {
|
|
50072
|
+
"operationId": "CreateDraft",
|
|
50073
|
+
"responses": {
|
|
50074
|
+
"200": {
|
|
50075
|
+
"description": "Ok",
|
|
50076
|
+
"content": {
|
|
50077
|
+
"application/json": {
|
|
50078
|
+
"schema": {
|
|
50079
|
+
"$ref": "#/components/schemas/GetArticlesBySlugOrIdResult"
|
|
50080
|
+
}
|
|
50081
|
+
}
|
|
50082
|
+
}
|
|
50083
|
+
}
|
|
50084
|
+
},
|
|
50085
|
+
"description": "Create a brand-new article as a draft. Returns the created\ndraft document (its `sanityId` carries the `drafts.` prefix).\nAuthors use this from the \"New article\" flow so nothing goes\nlive until they press publish.",
|
|
50086
|
+
"tags": [
|
|
50087
|
+
"Articles"
|
|
50088
|
+
],
|
|
50089
|
+
"security": [
|
|
50090
|
+
{
|
|
50091
|
+
"Implicit": [
|
|
50092
|
+
"api://3358ac8e-681e-4aeb-bfbf-bb008913c423/.default"
|
|
50093
|
+
]
|
|
50094
|
+
}
|
|
50095
|
+
],
|
|
50096
|
+
"parameters": [],
|
|
50097
|
+
"requestBody": {
|
|
50098
|
+
"required": true,
|
|
50099
|
+
"content": {
|
|
50100
|
+
"application/json": {
|
|
50101
|
+
"schema": {
|
|
50102
|
+
"$ref": "#/components/schemas/SanityCreateArticle"
|
|
50103
|
+
}
|
|
50104
|
+
}
|
|
50105
|
+
}
|
|
50106
|
+
}
|
|
50061
50107
|
}
|
|
50062
50108
|
},
|
|
50063
|
-
"/v1.0/articles/{
|
|
50109
|
+
"/v1.0/articles/author/{employeeId}": {
|
|
50064
50110
|
"get": {
|
|
50065
|
-
"operationId": "
|
|
50111
|
+
"operationId": "GetArticlesByAuthor",
|
|
50066
50112
|
"responses": {
|
|
50067
50113
|
"200": {
|
|
50068
50114
|
"description": "Ok",
|
|
50069
50115
|
"content": {
|
|
50070
50116
|
"application/json": {
|
|
50071
50117
|
"schema": {
|
|
50072
|
-
"$ref": "#/components/schemas/
|
|
50118
|
+
"$ref": "#/components/schemas/GetArticlesByAuthorResult"
|
|
50073
50119
|
}
|
|
50074
50120
|
}
|
|
50075
50121
|
}
|
|
50076
50122
|
}
|
|
50077
50123
|
},
|
|
50078
|
-
"description": "Read both states at once. Returns all `null`s if neither exists.\nAccepts a published id or a slug; draft lookup is by id, so we\nresolve slug→id via the published GROQ query first. Brand-new\ndrafts (no published counterpart) can be fetched by passing the\nbare `drafts.<id>` form or the plain `<id>` half — the handler\ntries both.",
|
|
50079
50124
|
"tags": [
|
|
50080
50125
|
"Articles"
|
|
50081
50126
|
],
|
|
@@ -50089,31 +50134,49 @@
|
|
|
50089
50134
|
"parameters": [
|
|
50090
50135
|
{
|
|
50091
50136
|
"in": "path",
|
|
50092
|
-
"name": "
|
|
50137
|
+
"name": "employeeId",
|
|
50093
50138
|
"required": true,
|
|
50094
50139
|
"schema": {
|
|
50095
50140
|
"type": "string"
|
|
50096
50141
|
}
|
|
50142
|
+
},
|
|
50143
|
+
{
|
|
50144
|
+
"in": "query",
|
|
50145
|
+
"name": "useCache",
|
|
50146
|
+
"required": false,
|
|
50147
|
+
"schema": {
|
|
50148
|
+
"default": true,
|
|
50149
|
+
"type": "boolean"
|
|
50150
|
+
}
|
|
50151
|
+
},
|
|
50152
|
+
{
|
|
50153
|
+
"in": "query",
|
|
50154
|
+
"name": "useCdn",
|
|
50155
|
+
"required": false,
|
|
50156
|
+
"schema": {
|
|
50157
|
+
"default": false,
|
|
50158
|
+
"type": "boolean"
|
|
50159
|
+
}
|
|
50097
50160
|
}
|
|
50098
50161
|
]
|
|
50099
50162
|
}
|
|
50100
50163
|
},
|
|
50101
|
-
"/v1.0/articles/
|
|
50102
|
-
"
|
|
50103
|
-
"operationId": "
|
|
50164
|
+
"/v1.0/articles/{slugOrId}/draft-status": {
|
|
50165
|
+
"get": {
|
|
50166
|
+
"operationId": "GetArticleWithDraft",
|
|
50104
50167
|
"responses": {
|
|
50105
50168
|
"200": {
|
|
50106
50169
|
"description": "Ok",
|
|
50107
50170
|
"content": {
|
|
50108
50171
|
"application/json": {
|
|
50109
50172
|
"schema": {
|
|
50110
|
-
"$ref": "#/components/schemas/
|
|
50173
|
+
"$ref": "#/components/schemas/GetArticleWithDraftResult"
|
|
50111
50174
|
}
|
|
50112
50175
|
}
|
|
50113
50176
|
}
|
|
50114
50177
|
}
|
|
50115
50178
|
},
|
|
50116
|
-
"description": "
|
|
50179
|
+
"description": "Read both states at once. Returns all `null`s if neither exists.\nAccepts a published id or a slug; draft lookup is by id, so we\nresolve slug→id via the published GROQ query first. Brand-new\ndrafts (no published counterpart) can be fetched by passing the\nbare `drafts.<id>` form or the plain `<id>` half — the handler\ntries both.",
|
|
50117
50180
|
"tags": [
|
|
50118
50181
|
"Articles"
|
|
50119
50182
|
],
|
|
@@ -50124,17 +50187,16 @@
|
|
|
50124
50187
|
]
|
|
50125
50188
|
}
|
|
50126
50189
|
],
|
|
50127
|
-
"parameters": [
|
|
50128
|
-
|
|
50129
|
-
|
|
50130
|
-
|
|
50131
|
-
"
|
|
50132
|
-
|
|
50133
|
-
|
|
50134
|
-
}
|
|
50190
|
+
"parameters": [
|
|
50191
|
+
{
|
|
50192
|
+
"in": "path",
|
|
50193
|
+
"name": "slugOrId",
|
|
50194
|
+
"required": true,
|
|
50195
|
+
"schema": {
|
|
50196
|
+
"type": "string"
|
|
50135
50197
|
}
|
|
50136
50198
|
}
|
|
50137
|
-
|
|
50199
|
+
]
|
|
50138
50200
|
}
|
|
50139
50201
|
},
|
|
50140
50202
|
"/v1.0/articles/{slugOrId}/draft": {
|
package/specs/test/sales.json
CHANGED
package/specs/test/sanity.json
CHANGED
|
@@ -30436,6 +30436,13 @@
|
|
|
30436
30436
|
"telephone": {
|
|
30437
30437
|
"type": "string"
|
|
30438
30438
|
},
|
|
30439
|
+
"track": {
|
|
30440
|
+
"type": "string",
|
|
30441
|
+
"enum": [
|
|
30442
|
+
"developer",
|
|
30443
|
+
"data_engineer"
|
|
30444
|
+
]
|
|
30445
|
+
},
|
|
30439
30446
|
"fromApplication": {
|
|
30440
30447
|
"type": "boolean"
|
|
30441
30448
|
},
|
|
@@ -30580,6 +30587,15 @@
|
|
|
30580
30587
|
"type": "boolean",
|
|
30581
30588
|
"nullable": true
|
|
30582
30589
|
},
|
|
30590
|
+
"track": {
|
|
30591
|
+
"type": "string",
|
|
30592
|
+
"enum": [
|
|
30593
|
+
"developer",
|
|
30594
|
+
"data_engineer",
|
|
30595
|
+
null
|
|
30596
|
+
],
|
|
30597
|
+
"nullable": true
|
|
30598
|
+
},
|
|
30583
30599
|
"applicationLetter": {
|
|
30584
30600
|
"properties": {
|
|
30585
30601
|
"sanityType": {
|
|
@@ -50005,21 +50021,22 @@
|
|
|
50005
50021
|
}
|
|
50006
50022
|
}
|
|
50007
50023
|
},
|
|
50008
|
-
"/v1.0/articles/
|
|
50024
|
+
"/v1.0/articles/drafts": {
|
|
50009
50025
|
"get": {
|
|
50010
|
-
"operationId": "
|
|
50026
|
+
"operationId": "GetDraftOnlyArticles",
|
|
50011
50027
|
"responses": {
|
|
50012
50028
|
"200": {
|
|
50013
50029
|
"description": "Ok",
|
|
50014
50030
|
"content": {
|
|
50015
50031
|
"application/json": {
|
|
50016
50032
|
"schema": {
|
|
50017
|
-
"$ref": "#/components/schemas/
|
|
50033
|
+
"$ref": "#/components/schemas/GetArticlesResult"
|
|
50018
50034
|
}
|
|
50019
50035
|
}
|
|
50020
50036
|
}
|
|
50021
50037
|
}
|
|
50022
50038
|
},
|
|
50039
|
+
"description": "Drafts with no published counterpart. Used by the admin list so\nauthors can resume unfinished articles. Same projection as\n`GetArticles`, so the list UI can render both uniformly and only\ntag the draft rows with an \"Utkast\" badge.\n\nDedup is done here (not in GROQ): strip the 7-char `drafts.`\nprefix from each draft's _id and filter out any that have a\nmatching document in the published set.",
|
|
50023
50040
|
"tags": [
|
|
50024
50041
|
"Articles"
|
|
50025
50042
|
],
|
|
@@ -50031,20 +50048,12 @@
|
|
|
50031
50048
|
}
|
|
50032
50049
|
],
|
|
50033
50050
|
"parameters": [
|
|
50034
|
-
{
|
|
50035
|
-
"in": "path",
|
|
50036
|
-
"name": "employeeId",
|
|
50037
|
-
"required": true,
|
|
50038
|
-
"schema": {
|
|
50039
|
-
"type": "string"
|
|
50040
|
-
}
|
|
50041
|
-
},
|
|
50042
50051
|
{
|
|
50043
50052
|
"in": "query",
|
|
50044
50053
|
"name": "useCache",
|
|
50045
50054
|
"required": false,
|
|
50046
50055
|
"schema": {
|
|
50047
|
-
"default":
|
|
50056
|
+
"default": false,
|
|
50048
50057
|
"type": "boolean"
|
|
50049
50058
|
}
|
|
50050
50059
|
},
|
|
@@ -50058,24 +50067,60 @@
|
|
|
50058
50067
|
}
|
|
50059
50068
|
}
|
|
50060
50069
|
]
|
|
50070
|
+
},
|
|
50071
|
+
"post": {
|
|
50072
|
+
"operationId": "CreateDraft",
|
|
50073
|
+
"responses": {
|
|
50074
|
+
"200": {
|
|
50075
|
+
"description": "Ok",
|
|
50076
|
+
"content": {
|
|
50077
|
+
"application/json": {
|
|
50078
|
+
"schema": {
|
|
50079
|
+
"$ref": "#/components/schemas/GetArticlesBySlugOrIdResult"
|
|
50080
|
+
}
|
|
50081
|
+
}
|
|
50082
|
+
}
|
|
50083
|
+
}
|
|
50084
|
+
},
|
|
50085
|
+
"description": "Create a brand-new article as a draft. Returns the created\ndraft document (its `sanityId` carries the `drafts.` prefix).\nAuthors use this from the \"New article\" flow so nothing goes\nlive until they press publish.",
|
|
50086
|
+
"tags": [
|
|
50087
|
+
"Articles"
|
|
50088
|
+
],
|
|
50089
|
+
"security": [
|
|
50090
|
+
{
|
|
50091
|
+
"Implicit": [
|
|
50092
|
+
"api://5dc55e32-6742-4fe9-b8b6-581cf56af144/.default"
|
|
50093
|
+
]
|
|
50094
|
+
}
|
|
50095
|
+
],
|
|
50096
|
+
"parameters": [],
|
|
50097
|
+
"requestBody": {
|
|
50098
|
+
"required": true,
|
|
50099
|
+
"content": {
|
|
50100
|
+
"application/json": {
|
|
50101
|
+
"schema": {
|
|
50102
|
+
"$ref": "#/components/schemas/SanityCreateArticle"
|
|
50103
|
+
}
|
|
50104
|
+
}
|
|
50105
|
+
}
|
|
50106
|
+
}
|
|
50061
50107
|
}
|
|
50062
50108
|
},
|
|
50063
|
-
"/v1.0/articles/{
|
|
50109
|
+
"/v1.0/articles/author/{employeeId}": {
|
|
50064
50110
|
"get": {
|
|
50065
|
-
"operationId": "
|
|
50111
|
+
"operationId": "GetArticlesByAuthor",
|
|
50066
50112
|
"responses": {
|
|
50067
50113
|
"200": {
|
|
50068
50114
|
"description": "Ok",
|
|
50069
50115
|
"content": {
|
|
50070
50116
|
"application/json": {
|
|
50071
50117
|
"schema": {
|
|
50072
|
-
"$ref": "#/components/schemas/
|
|
50118
|
+
"$ref": "#/components/schemas/GetArticlesByAuthorResult"
|
|
50073
50119
|
}
|
|
50074
50120
|
}
|
|
50075
50121
|
}
|
|
50076
50122
|
}
|
|
50077
50123
|
},
|
|
50078
|
-
"description": "Read both states at once. Returns all `null`s if neither exists.\nAccepts a published id or a slug; draft lookup is by id, so we\nresolve slug→id via the published GROQ query first. Brand-new\ndrafts (no published counterpart) can be fetched by passing the\nbare `drafts.<id>` form or the plain `<id>` half — the handler\ntries both.",
|
|
50079
50124
|
"tags": [
|
|
50080
50125
|
"Articles"
|
|
50081
50126
|
],
|
|
@@ -50089,31 +50134,49 @@
|
|
|
50089
50134
|
"parameters": [
|
|
50090
50135
|
{
|
|
50091
50136
|
"in": "path",
|
|
50092
|
-
"name": "
|
|
50137
|
+
"name": "employeeId",
|
|
50093
50138
|
"required": true,
|
|
50094
50139
|
"schema": {
|
|
50095
50140
|
"type": "string"
|
|
50096
50141
|
}
|
|
50142
|
+
},
|
|
50143
|
+
{
|
|
50144
|
+
"in": "query",
|
|
50145
|
+
"name": "useCache",
|
|
50146
|
+
"required": false,
|
|
50147
|
+
"schema": {
|
|
50148
|
+
"default": true,
|
|
50149
|
+
"type": "boolean"
|
|
50150
|
+
}
|
|
50151
|
+
},
|
|
50152
|
+
{
|
|
50153
|
+
"in": "query",
|
|
50154
|
+
"name": "useCdn",
|
|
50155
|
+
"required": false,
|
|
50156
|
+
"schema": {
|
|
50157
|
+
"default": false,
|
|
50158
|
+
"type": "boolean"
|
|
50159
|
+
}
|
|
50097
50160
|
}
|
|
50098
50161
|
]
|
|
50099
50162
|
}
|
|
50100
50163
|
},
|
|
50101
|
-
"/v1.0/articles/
|
|
50102
|
-
"
|
|
50103
|
-
"operationId": "
|
|
50164
|
+
"/v1.0/articles/{slugOrId}/draft-status": {
|
|
50165
|
+
"get": {
|
|
50166
|
+
"operationId": "GetArticleWithDraft",
|
|
50104
50167
|
"responses": {
|
|
50105
50168
|
"200": {
|
|
50106
50169
|
"description": "Ok",
|
|
50107
50170
|
"content": {
|
|
50108
50171
|
"application/json": {
|
|
50109
50172
|
"schema": {
|
|
50110
|
-
"$ref": "#/components/schemas/
|
|
50173
|
+
"$ref": "#/components/schemas/GetArticleWithDraftResult"
|
|
50111
50174
|
}
|
|
50112
50175
|
}
|
|
50113
50176
|
}
|
|
50114
50177
|
}
|
|
50115
50178
|
},
|
|
50116
|
-
"description": "
|
|
50179
|
+
"description": "Read both states at once. Returns all `null`s if neither exists.\nAccepts a published id or a slug; draft lookup is by id, so we\nresolve slug→id via the published GROQ query first. Brand-new\ndrafts (no published counterpart) can be fetched by passing the\nbare `drafts.<id>` form or the plain `<id>` half — the handler\ntries both.",
|
|
50117
50180
|
"tags": [
|
|
50118
50181
|
"Articles"
|
|
50119
50182
|
],
|
|
@@ -50124,17 +50187,16 @@
|
|
|
50124
50187
|
]
|
|
50125
50188
|
}
|
|
50126
50189
|
],
|
|
50127
|
-
"parameters": [
|
|
50128
|
-
|
|
50129
|
-
|
|
50130
|
-
|
|
50131
|
-
"
|
|
50132
|
-
|
|
50133
|
-
|
|
50134
|
-
}
|
|
50190
|
+
"parameters": [
|
|
50191
|
+
{
|
|
50192
|
+
"in": "path",
|
|
50193
|
+
"name": "slugOrId",
|
|
50194
|
+
"required": true,
|
|
50195
|
+
"schema": {
|
|
50196
|
+
"type": "string"
|
|
50135
50197
|
}
|
|
50136
50198
|
}
|
|
50137
|
-
|
|
50199
|
+
]
|
|
50138
50200
|
}
|
|
50139
50201
|
},
|
|
50140
50202
|
"/v1.0/articles/{slugOrId}/draft": {
|