@snokam/mcp-api 0.29.1 → 0.31.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snokam/mcp-api",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
4
4
  "description": "MCP server exposing Snokam backend APIs as tools for Claude Code and other MCP clients",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31664,6 +31664,79 @@
31664
31664
  ],
31665
31665
  "type": "object"
31666
31666
  },
31667
+ "BackupResult": {
31668
+ "properties": {
31669
+ "dataset": {
31670
+ "type": "string"
31671
+ },
31672
+ "container": {
31673
+ "type": "string"
31674
+ },
31675
+ "blobUrl": {
31676
+ "type": "string"
31677
+ },
31678
+ "blobPath": {
31679
+ "type": "string"
31680
+ },
31681
+ "sizeBytes": {
31682
+ "type": "number",
31683
+ "format": "double"
31684
+ },
31685
+ "startedAt": {
31686
+ "type": "string"
31687
+ },
31688
+ "completedAt": {
31689
+ "type": "string"
31690
+ },
31691
+ "assetCount": {
31692
+ "type": "number",
31693
+ "format": "double",
31694
+ "description": "Number of asset binaries downloaded. 0 when `includeAssets` is false."
31695
+ },
31696
+ "assetBytes": {
31697
+ "type": "number",
31698
+ "format": "double",
31699
+ "description": "Total bytes across asset binaries. 0 when `includeAssets` is false."
31700
+ },
31701
+ "assetFailures": {
31702
+ "type": "number",
31703
+ "format": "double",
31704
+ "description": "Number of asset downloads that failed and were skipped."
31705
+ }
31706
+ },
31707
+ "required": [
31708
+ "dataset",
31709
+ "container",
31710
+ "blobUrl",
31711
+ "blobPath",
31712
+ "sizeBytes",
31713
+ "startedAt",
31714
+ "completedAt",
31715
+ "assetCount",
31716
+ "assetBytes",
31717
+ "assetFailures"
31718
+ ],
31719
+ "type": "object",
31720
+ "additionalProperties": true
31721
+ },
31722
+ "CreateBackupRequest": {
31723
+ "properties": {
31724
+ "dataset": {
31725
+ "type": "string",
31726
+ "description": "Sanity dataset to back up. Defaults to the configured dataset."
31727
+ },
31728
+ "container": {
31729
+ "type": "string",
31730
+ "description": "Blob container name. Defaults to \"sanity-backups\"."
31731
+ },
31732
+ "includeAssets": {
31733
+ "type": "boolean",
31734
+ "description": "When true, also download every `sanity.imageAsset` / `sanity.fileAsset`\nbinary referenced in the export and store it under `<prefix>/assets/`.\nDefault false — the daily cron stays cheap and skips this."
31735
+ }
31736
+ },
31737
+ "type": "object",
31738
+ "additionalProperties": true
31739
+ },
31667
31740
  "GetArticlesBySlugOrIdResult": {
31668
31741
  "properties": {
31669
31742
  "nextArticle": {
@@ -51070,6 +51143,45 @@
51070
51143
  }
51071
51144
  }
51072
51145
  },
51146
+ "/v1.0/backups": {
51147
+ "post": {
51148
+ "operationId": "CreateBackup",
51149
+ "responses": {
51150
+ "200": {
51151
+ "description": "Ok",
51152
+ "content": {
51153
+ "application/json": {
51154
+ "schema": {
51155
+ "$ref": "#/components/schemas/BackupResult"
51156
+ }
51157
+ }
51158
+ }
51159
+ }
51160
+ },
51161
+ "description": "Stream the Sanity dataset export (NDJSON) into a gzipped blob in\nAzure Blob Storage. With `includeAssets: true` also downloads each\nreferenced image/file binary into `<prefix>/assets/`. Returns\nmetadata about the resulting blobs.",
51162
+ "tags": [
51163
+ "Backups"
51164
+ ],
51165
+ "security": [
51166
+ {
51167
+ "Implicit": [
51168
+ "api://3358ac8e-681e-4aeb-bfbf-bb008913c423/.default"
51169
+ ]
51170
+ }
51171
+ ],
51172
+ "parameters": [],
51173
+ "requestBody": {
51174
+ "required": false,
51175
+ "content": {
51176
+ "application/json": {
51177
+ "schema": {
51178
+ "$ref": "#/components/schemas/CreateBackupRequest"
51179
+ }
51180
+ }
51181
+ }
51182
+ }
51183
+ }
51184
+ },
51073
51185
  "/v1.0/articles": {
51074
51186
  "post": {
51075
51187
  "operationId": "CreateArticle",
@@ -31664,6 +31664,79 @@
31664
31664
  ],
31665
31665
  "type": "object"
31666
31666
  },
31667
+ "BackupResult": {
31668
+ "properties": {
31669
+ "dataset": {
31670
+ "type": "string"
31671
+ },
31672
+ "container": {
31673
+ "type": "string"
31674
+ },
31675
+ "blobUrl": {
31676
+ "type": "string"
31677
+ },
31678
+ "blobPath": {
31679
+ "type": "string"
31680
+ },
31681
+ "sizeBytes": {
31682
+ "type": "number",
31683
+ "format": "double"
31684
+ },
31685
+ "startedAt": {
31686
+ "type": "string"
31687
+ },
31688
+ "completedAt": {
31689
+ "type": "string"
31690
+ },
31691
+ "assetCount": {
31692
+ "type": "number",
31693
+ "format": "double",
31694
+ "description": "Number of asset binaries downloaded. 0 when `includeAssets` is false."
31695
+ },
31696
+ "assetBytes": {
31697
+ "type": "number",
31698
+ "format": "double",
31699
+ "description": "Total bytes across asset binaries. 0 when `includeAssets` is false."
31700
+ },
31701
+ "assetFailures": {
31702
+ "type": "number",
31703
+ "format": "double",
31704
+ "description": "Number of asset downloads that failed and were skipped."
31705
+ }
31706
+ },
31707
+ "required": [
31708
+ "dataset",
31709
+ "container",
31710
+ "blobUrl",
31711
+ "blobPath",
31712
+ "sizeBytes",
31713
+ "startedAt",
31714
+ "completedAt",
31715
+ "assetCount",
31716
+ "assetBytes",
31717
+ "assetFailures"
31718
+ ],
31719
+ "type": "object",
31720
+ "additionalProperties": true
31721
+ },
31722
+ "CreateBackupRequest": {
31723
+ "properties": {
31724
+ "dataset": {
31725
+ "type": "string",
31726
+ "description": "Sanity dataset to back up. Defaults to the configured dataset."
31727
+ },
31728
+ "container": {
31729
+ "type": "string",
31730
+ "description": "Blob container name. Defaults to \"sanity-backups\"."
31731
+ },
31732
+ "includeAssets": {
31733
+ "type": "boolean",
31734
+ "description": "When true, also download every `sanity.imageAsset` / `sanity.fileAsset`\nbinary referenced in the export and store it under `<prefix>/assets/`.\nDefault false — the daily cron stays cheap and skips this."
31735
+ }
31736
+ },
31737
+ "type": "object",
31738
+ "additionalProperties": true
31739
+ },
31667
31740
  "GetArticlesBySlugOrIdResult": {
31668
31741
  "properties": {
31669
31742
  "nextArticle": {
@@ -51070,6 +51143,45 @@
51070
51143
  }
51071
51144
  }
51072
51145
  },
51146
+ "/v1.0/backups": {
51147
+ "post": {
51148
+ "operationId": "CreateBackup",
51149
+ "responses": {
51150
+ "200": {
51151
+ "description": "Ok",
51152
+ "content": {
51153
+ "application/json": {
51154
+ "schema": {
51155
+ "$ref": "#/components/schemas/BackupResult"
51156
+ }
51157
+ }
51158
+ }
51159
+ }
51160
+ },
51161
+ "description": "Stream the Sanity dataset export (NDJSON) into a gzipped blob in\nAzure Blob Storage. With `includeAssets: true` also downloads each\nreferenced image/file binary into `<prefix>/assets/`. Returns\nmetadata about the resulting blobs.",
51162
+ "tags": [
51163
+ "Backups"
51164
+ ],
51165
+ "security": [
51166
+ {
51167
+ "Implicit": [
51168
+ "api://5dc55e32-6742-4fe9-b8b6-581cf56af144/.default"
51169
+ ]
51170
+ }
51171
+ ],
51172
+ "parameters": [],
51173
+ "requestBody": {
51174
+ "required": false,
51175
+ "content": {
51176
+ "application/json": {
51177
+ "schema": {
51178
+ "$ref": "#/components/schemas/CreateBackupRequest"
51179
+ }
51180
+ }
51181
+ }
51182
+ }
51183
+ }
51184
+ },
51073
51185
  "/v1.0/articles": {
51074
51186
  "post": {
51075
51187
  "operationId": "CreateArticle",