@snokam/mcp-api 0.131.3 → 0.132.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/blog.json +210 -210
- package/specs/production/office.json +347 -347
- package/specs/production/recruitment.json +159 -159
- package/specs/production/sales.json +519 -519
- package/specs/production/sanity.json +10 -56
- package/specs/test/blog.json +210 -210
- package/specs/test/office.json +347 -347
- package/specs/test/recruitment.json +159 -159
- package/specs/test/sales.json +519 -519
- package/specs/test/sanity.json +10 -56
package/specs/test/sanity.json
CHANGED
|
@@ -3537,8 +3537,7 @@
|
|
|
3537
3537
|
"description": {
|
|
3538
3538
|
"items": {},
|
|
3539
3539
|
"type": "array",
|
|
3540
|
-
"nullable": true
|
|
3541
|
-
"description": "Portable Text notes/instructions attached to this task."
|
|
3540
|
+
"nullable": true
|
|
3542
3541
|
},
|
|
3543
3542
|
"reminderWeeksBefore": {
|
|
3544
3543
|
"type": "number",
|
|
@@ -3566,7 +3565,6 @@
|
|
|
3566
3565
|
"additionalProperties": true
|
|
3567
3566
|
},
|
|
3568
3567
|
"SanityCreateTask": {
|
|
3569
|
-
"description": "Shape used to create a new task. `description` is Portable Text — callers\nin the admin typically pass a simple single-block paragraph.",
|
|
3570
3568
|
"properties": {
|
|
3571
3569
|
"title": {
|
|
3572
3570
|
"type": "string"
|
|
@@ -3601,7 +3599,6 @@
|
|
|
3601
3599
|
"additionalProperties": true
|
|
3602
3600
|
},
|
|
3603
3601
|
"SanityPatchTask": {
|
|
3604
|
-
"description": "Partial update. Any field omitted is left unchanged.",
|
|
3605
3602
|
"properties": {
|
|
3606
3603
|
"title": {
|
|
3607
3604
|
"type": "string"
|
|
@@ -4115,7 +4112,6 @@
|
|
|
4115
4112
|
"type": "array"
|
|
4116
4113
|
},
|
|
4117
4114
|
"SanityCreateSystem": {
|
|
4118
|
-
"description": "Shape used to create a new system. Links are plain URL strings;\ndescription is Portable Text (the schema stores it as a block array).",
|
|
4119
4115
|
"properties": {
|
|
4120
4116
|
"title": {
|
|
4121
4117
|
"type": "string"
|
|
@@ -4140,7 +4136,6 @@
|
|
|
4140
4136
|
"additionalProperties": true
|
|
4141
4137
|
},
|
|
4142
4138
|
"SanityPatchSystem": {
|
|
4143
|
-
"description": "Partial update. Any omitted field is left unchanged.",
|
|
4144
4139
|
"properties": {
|
|
4145
4140
|
"title": {
|
|
4146
4141
|
"type": "string"
|
|
@@ -4194,7 +4189,6 @@
|
|
|
4194
4189
|
"additionalProperties": true
|
|
4195
4190
|
},
|
|
4196
4191
|
"SubscriptionListItem": {
|
|
4197
|
-
"description": "Explicit type for the subscriptions API so tsoa can resolve it for OpenAPI.\nShape matches GetAllSubscriptionsQueryResult[number] from generated/sanity.types.",
|
|
4198
4192
|
"properties": {
|
|
4199
4193
|
"sanityId": {
|
|
4200
4194
|
"type": "string"
|
|
@@ -34147,12 +34141,10 @@
|
|
|
34147
34141
|
"type": "string"
|
|
34148
34142
|
},
|
|
34149
34143
|
"recruiter": {
|
|
34150
|
-
"type": "string"
|
|
34151
|
-
"description": "Sanity id of the employee to set as recruiter on the new candidate."
|
|
34144
|
+
"type": "string"
|
|
34152
34145
|
},
|
|
34153
34146
|
"jobPositionId": {
|
|
34154
|
-
"type": "string"
|
|
34155
|
-
"description": "Sanity id of the job position the candidate is being created for.\nOptional for admin-created candidates that aren't tied to a posting;\npublic applications go through PostJobApplication where it's required."
|
|
34147
|
+
"type": "string"
|
|
34156
34148
|
}
|
|
34157
34149
|
},
|
|
34158
34150
|
"required": [
|
|
@@ -34201,8 +34193,7 @@
|
|
|
34201
34193
|
"JobApplicationFormData": {
|
|
34202
34194
|
"properties": {
|
|
34203
34195
|
"jobPositionId": {
|
|
34204
|
-
"type": "string"
|
|
34205
|
-
"description": "Sanity id of the job position the candidate applied to. Used to set\nthe `candidate.jobPosition` reference and denormalize the position's\ntrack onto the candidate."
|
|
34196
|
+
"type": "string"
|
|
34206
34197
|
},
|
|
34207
34198
|
"other": {
|
|
34208
34199
|
"type": "string"
|
|
@@ -34266,18 +34257,15 @@
|
|
|
34266
34257
|
},
|
|
34267
34258
|
"assetCount": {
|
|
34268
34259
|
"type": "number",
|
|
34269
|
-
"format": "double"
|
|
34270
|
-
"description": "Number of asset binaries downloaded. 0 when `includeAssets` is false."
|
|
34260
|
+
"format": "double"
|
|
34271
34261
|
},
|
|
34272
34262
|
"assetBytes": {
|
|
34273
34263
|
"type": "number",
|
|
34274
|
-
"format": "double"
|
|
34275
|
-
"description": "Total bytes across asset binaries. 0 when `includeAssets` is false."
|
|
34264
|
+
"format": "double"
|
|
34276
34265
|
},
|
|
34277
34266
|
"assetFailures": {
|
|
34278
34267
|
"type": "number",
|
|
34279
|
-
"format": "double"
|
|
34280
|
-
"description": "Number of asset downloads that failed and were skipped."
|
|
34268
|
+
"format": "double"
|
|
34281
34269
|
}
|
|
34282
34270
|
},
|
|
34283
34271
|
"required": [
|
|
@@ -38074,12 +38062,10 @@
|
|
|
38074
38062
|
"additionalProperties": true
|
|
38075
38063
|
},
|
|
38076
38064
|
"GetArticleWithDraftResult": {
|
|
38077
|
-
"description": "Snapshot combining the published version and any in-progress\ndraft. Used by the editor UI so authors can see both states and\ndecide when to promote.",
|
|
38078
38065
|
"properties": {
|
|
38079
38066
|
"publishedId": {
|
|
38080
38067
|
"type": "string",
|
|
38081
|
-
"nullable": true
|
|
38082
|
-
"description": "Canonical published id (no `drafts.` prefix). `null` when the\narticle only exists as a draft (freshly created)."
|
|
38068
|
+
"nullable": true
|
|
38083
38069
|
},
|
|
38084
38070
|
"published": {
|
|
38085
38071
|
"allOf": [
|
|
@@ -38087,8 +38073,7 @@
|
|
|
38087
38073
|
"$ref": "#/components/schemas/GetArticlesBySlugOrIdResult"
|
|
38088
38074
|
}
|
|
38089
38075
|
],
|
|
38090
|
-
"nullable": true
|
|
38091
|
-
"description": "Published article, renamed-field form. `null` if never published."
|
|
38076
|
+
"nullable": true
|
|
38092
38077
|
},
|
|
38093
38078
|
"draft": {
|
|
38094
38079
|
"allOf": [
|
|
@@ -38096,8 +38081,7 @@
|
|
|
38096
38081
|
"$ref": "#/components/schemas/GetArticlesBySlugOrIdResult"
|
|
38097
38082
|
}
|
|
38098
38083
|
],
|
|
38099
|
-
"nullable": true
|
|
38100
|
-
"description": "Draft article (from `drafts.<id>`), renamed-field form. `null`\nwhen the article has no pending draft."
|
|
38084
|
+
"nullable": true
|
|
38101
38085
|
},
|
|
38102
38086
|
"hasPublished": {
|
|
38103
38087
|
"type": "boolean"
|
|
@@ -47559,7 +47543,6 @@
|
|
|
47559
47543
|
}
|
|
47560
47544
|
}
|
|
47561
47545
|
},
|
|
47562
|
-
"description": "Returns onboarding tasks that have a reminder configured (remindDaysBefore is set).\nUsed by the notifications function to send reminders ahead of a candidate's start date.",
|
|
47563
47546
|
"tags": [
|
|
47564
47547
|
"Tasks"
|
|
47565
47548
|
],
|
|
@@ -47610,7 +47593,6 @@
|
|
|
47610
47593
|
}
|
|
47611
47594
|
}
|
|
47612
47595
|
},
|
|
47613
|
-
"description": "Returns every task of the given type (onboarding or offboarding)\nwith its Portable Text description so the admin panel can render\nthe checklist with contextual notes.",
|
|
47614
47596
|
"tags": [
|
|
47615
47597
|
"Tasks"
|
|
47616
47598
|
],
|
|
@@ -47675,7 +47657,6 @@
|
|
|
47675
47657
|
}
|
|
47676
47658
|
}
|
|
47677
47659
|
},
|
|
47678
|
-
"description": "Fetch a single task by id.",
|
|
47679
47660
|
"tags": [
|
|
47680
47661
|
"Tasks"
|
|
47681
47662
|
],
|
|
@@ -47734,7 +47715,6 @@
|
|
|
47734
47715
|
}
|
|
47735
47716
|
}
|
|
47736
47717
|
},
|
|
47737
|
-
"description": "Patch a task. Any omitted field is left unchanged. Pass `null`\nto explicitly clear an optional field (e.g. drop a reminder).",
|
|
47738
47718
|
"tags": [
|
|
47739
47719
|
"Tasks"
|
|
47740
47720
|
],
|
|
@@ -47785,7 +47765,6 @@
|
|
|
47785
47765
|
}
|
|
47786
47766
|
}
|
|
47787
47767
|
},
|
|
47788
|
-
"description": "Delete a task. Returns the deleted document so callers can\nupdate their local cache before the next refetch.",
|
|
47789
47768
|
"tags": [
|
|
47790
47769
|
"Tasks"
|
|
47791
47770
|
],
|
|
@@ -47828,7 +47807,6 @@
|
|
|
47828
47807
|
}
|
|
47829
47808
|
}
|
|
47830
47809
|
},
|
|
47831
|
-
"description": "Create a new onboarding or offboarding task.",
|
|
47832
47810
|
"tags": [
|
|
47833
47811
|
"Tasks"
|
|
47834
47812
|
],
|
|
@@ -48017,7 +47995,6 @@
|
|
|
48017
47995
|
}
|
|
48018
47996
|
}
|
|
48019
47997
|
},
|
|
48020
|
-
"description": "Create a new system.",
|
|
48021
47998
|
"tags": [
|
|
48022
47999
|
"Systems"
|
|
48023
48000
|
],
|
|
@@ -48109,7 +48086,6 @@
|
|
|
48109
48086
|
}
|
|
48110
48087
|
}
|
|
48111
48088
|
},
|
|
48112
|
-
"description": "Patch a system. Any omitted field is left unchanged.",
|
|
48113
48089
|
"tags": [
|
|
48114
48090
|
"Systems"
|
|
48115
48091
|
],
|
|
@@ -48155,7 +48131,6 @@
|
|
|
48155
48131
|
}
|
|
48156
48132
|
}
|
|
48157
48133
|
},
|
|
48158
|
-
"description": "Delete a system by id. Returns the deleted document so callers\ncan update their local cache before the next refetch.",
|
|
48159
48134
|
"tags": [
|
|
48160
48135
|
"Systems"
|
|
48161
48136
|
],
|
|
@@ -49813,7 +49788,6 @@
|
|
|
49813
49788
|
}
|
|
49814
49789
|
}
|
|
49815
49790
|
},
|
|
49816
|
-
"description": "Create a page and add it to the specified app's pages array in one operation.",
|
|
49817
49791
|
"tags": [
|
|
49818
49792
|
"Pages"
|
|
49819
49793
|
],
|
|
@@ -50017,7 +49991,6 @@
|
|
|
50017
49991
|
}
|
|
50018
49992
|
}
|
|
50019
49993
|
},
|
|
50020
|
-
"description": "Pass the Sanity asset reference ID (image-xxxx).",
|
|
50021
49994
|
"tags": [
|
|
50022
49995
|
"Pages"
|
|
50023
49996
|
],
|
|
@@ -55079,7 +55052,6 @@
|
|
|
55079
55052
|
}
|
|
55080
55053
|
}
|
|
55081
55054
|
},
|
|
55082
|
-
"description": "Returns all ONBOARDING candidates with a startDate set,\nincluding their onboarding checklist tasks and systems with remindDaysBefore values.\nUsed by the notifications function to send per-candidate reminders.",
|
|
55083
55055
|
"tags": [
|
|
55084
55056
|
"Candidates"
|
|
55085
55057
|
],
|
|
@@ -55186,7 +55158,6 @@
|
|
|
55186
55158
|
}
|
|
55187
55159
|
}
|
|
55188
55160
|
},
|
|
55189
|
-
"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.",
|
|
55190
55161
|
"tags": [
|
|
55191
55162
|
"Backups"
|
|
55192
55163
|
],
|
|
@@ -55261,7 +55232,6 @@
|
|
|
55261
55232
|
}
|
|
55262
55233
|
}
|
|
55263
55234
|
},
|
|
55264
|
-
"description": "Returns the published article list.\n\n`includeInactive=true` drops the `active == true` filter so\nadmins can see articles they've taken offline (\"Ikke live\").\nCallers decide whether to request it based on the viewer's\nsession — the public blog route leaves it false, admin routes\npass true.",
|
|
55265
55235
|
"tags": [
|
|
55266
55236
|
"Articles"
|
|
55267
55237
|
],
|
|
@@ -55353,7 +55323,6 @@
|
|
|
55353
55323
|
}
|
|
55354
55324
|
}
|
|
55355
55325
|
},
|
|
55356
|
-
"description": "Single published article by slug or id.\n\n`includeInactive=true` removes the `active == true` requirement\nfrom the slug-match path so admins can open \"Ikke live\"\narticles by URL. Without it, slug lookups only return live\narticles (public behaviour). Id lookups are unaffected either\nway — if the caller already knows the sanity id, active is\nimmaterial.",
|
|
55357
55326
|
"tags": [
|
|
55358
55327
|
"Articles"
|
|
55359
55328
|
],
|
|
@@ -55463,7 +55432,6 @@
|
|
|
55463
55432
|
}
|
|
55464
55433
|
}
|
|
55465
55434
|
},
|
|
55466
|
-
"description": "Every published article regardless of the `active` flag. Used by\nthe admin list so editors can see articles they've taken offline\n(\"Ikke live\"). Public callers should stay on `GetArticles`,\nwhich filters to `active == true`.",
|
|
55467
55435
|
"tags": [
|
|
55468
55436
|
"Articles"
|
|
55469
55437
|
],
|
|
@@ -55511,7 +55479,6 @@
|
|
|
55511
55479
|
}
|
|
55512
55480
|
}
|
|
55513
55481
|
},
|
|
55514
|
-
"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.",
|
|
55515
55482
|
"tags": [
|
|
55516
55483
|
"Articles"
|
|
55517
55484
|
],
|
|
@@ -55557,7 +55524,6 @@
|
|
|
55557
55524
|
}
|
|
55558
55525
|
}
|
|
55559
55526
|
},
|
|
55560
|
-
"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.",
|
|
55561
55527
|
"tags": [
|
|
55562
55528
|
"Articles"
|
|
55563
55529
|
],
|
|
@@ -55651,7 +55617,6 @@
|
|
|
55651
55617
|
}
|
|
55652
55618
|
}
|
|
55653
55619
|
},
|
|
55654
|
-
"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.",
|
|
55655
55620
|
"tags": [
|
|
55656
55621
|
"Articles"
|
|
55657
55622
|
],
|
|
@@ -55689,7 +55654,6 @@
|
|
|
55689
55654
|
}
|
|
55690
55655
|
}
|
|
55691
55656
|
},
|
|
55692
|
-
"description": "Write an edit to the draft for `slugOrId`. If no draft exists\nwe clone the published document first, so partial patches\npreserve existing content. `slugOrId` must resolve to a document\nid — callers coming in via slug should go through blog-function\n(which resolves with GetArticleWithDraft before calling this)\nso the authZ check and slug→id resolution happen together.",
|
|
55693
55657
|
"tags": [
|
|
55694
55658
|
"Articles"
|
|
55695
55659
|
],
|
|
@@ -55740,7 +55704,6 @@
|
|
|
55740
55704
|
}
|
|
55741
55705
|
}
|
|
55742
55706
|
},
|
|
55743
|
-
"description": "Delete the draft for `slugOrId` without touching the published\ndocument. Returns the now-current published document (the draft\nhaving been thrown away) or `null` if there was no published\ncopy either.",
|
|
55744
55707
|
"tags": [
|
|
55745
55708
|
"Articles"
|
|
55746
55709
|
],
|
|
@@ -55778,7 +55741,6 @@
|
|
|
55778
55741
|
}
|
|
55779
55742
|
}
|
|
55780
55743
|
},
|
|
55781
|
-
"description": "Promote the draft for `slugOrId` to published. Overwrites the\npublished document with the draft's content and deletes the\ndraft. Returns the newly-published document.",
|
|
55782
55744
|
"tags": [
|
|
55783
55745
|
"Articles"
|
|
55784
55746
|
],
|
|
@@ -56002,7 +55964,6 @@
|
|
|
56002
55964
|
}
|
|
56003
55965
|
}
|
|
56004
55966
|
},
|
|
56005
|
-
"description": "Add an existing page (by its Sanity ID) to this app's pages array.",
|
|
56006
55967
|
"tags": [
|
|
56007
55968
|
"Apps"
|
|
56008
55969
|
],
|
|
@@ -56046,7 +56007,6 @@
|
|
|
56046
56007
|
}
|
|
56047
56008
|
}
|
|
56048
56009
|
},
|
|
56049
|
-
"description": "Remove a page reference from this app's pages array.",
|
|
56050
56010
|
"tags": [
|
|
56051
56011
|
"Apps"
|
|
56052
56012
|
],
|
|
@@ -56257,7 +56217,6 @@
|
|
|
56257
56217
|
}
|
|
56258
56218
|
}
|
|
56259
56219
|
},
|
|
56260
|
-
"description": "Pass the Sanity asset reference ID (image-xxxx).",
|
|
56261
56220
|
"tags": [
|
|
56262
56221
|
"Apps"
|
|
56263
56222
|
],
|
|
@@ -56626,7 +56585,6 @@
|
|
|
56626
56585
|
}
|
|
56627
56586
|
}
|
|
56628
56587
|
},
|
|
56629
|
-
"description": "Create a new Annual Wheel document.",
|
|
56630
56588
|
"tags": [
|
|
56631
56589
|
"Annual wheels"
|
|
56632
56590
|
],
|
|
@@ -56718,7 +56676,6 @@
|
|
|
56718
56676
|
}
|
|
56719
56677
|
}
|
|
56720
56678
|
},
|
|
56721
|
-
"description": "Update top-level fields on an Annual Wheel. Any omitted field is left unchanged.",
|
|
56722
56679
|
"tags": [
|
|
56723
56680
|
"Annual wheels"
|
|
56724
56681
|
],
|
|
@@ -56774,7 +56731,6 @@
|
|
|
56774
56731
|
}
|
|
56775
56732
|
}
|
|
56776
56733
|
},
|
|
56777
|
-
"description": "Add a new event to an Annual Wheel's `events` array.\nReturns the `_key` of the newly created event.\nEvent `time` format: `<day>.<month>`, e.g. `\"1.8\"` for August 1.",
|
|
56778
56734
|
"tags": [
|
|
56779
56735
|
"Annual wheels"
|
|
56780
56736
|
],
|
|
@@ -56822,7 +56778,6 @@
|
|
|
56822
56778
|
}
|
|
56823
56779
|
}
|
|
56824
56780
|
},
|
|
56825
|
-
"description": "Update an existing event inside an Annual Wheel.\n`eventKey` is the `_key` of the event (returned when it was created).\nAny omitted field is left unchanged.",
|
|
56826
56781
|
"tags": [
|
|
56827
56782
|
"Annual wheels"
|
|
56828
56783
|
],
|
|
@@ -56876,7 +56831,6 @@
|
|
|
56876
56831
|
}
|
|
56877
56832
|
}
|
|
56878
56833
|
},
|
|
56879
|
-
"description": "Remove an event from an Annual Wheel.\n`eventKey` is the `_key` of the event to remove.",
|
|
56880
56834
|
"tags": [
|
|
56881
56835
|
"Annual wheels"
|
|
56882
56836
|
],
|