@snokam/mcp-api 0.131.3 → 0.133.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.
@@ -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
  ],
@@ -55015,6 +54988,46 @@
55015
54988
  }
55016
54989
  ]
55017
54990
  },
54991
+ "delete": {
54992
+ "operationId": "DeleteCandidate",
54993
+ "responses": {
54994
+ "200": {
54995
+ "description": "Ok",
54996
+ "content": {
54997
+ "application/json": {
54998
+ "schema": {
54999
+ "allOf": [
55000
+ {
55001
+ "$ref": "#/components/schemas/SanityCandidate"
55002
+ }
55003
+ ],
55004
+ "nullable": true
55005
+ }
55006
+ }
55007
+ }
55008
+ }
55009
+ },
55010
+ "tags": [
55011
+ "Candidates"
55012
+ ],
55013
+ "security": [
55014
+ {
55015
+ "Implicit": [
55016
+ "WILL BE REPLACED"
55017
+ ]
55018
+ }
55019
+ ],
55020
+ "parameters": [
55021
+ {
55022
+ "in": "path",
55023
+ "name": "id",
55024
+ "required": true,
55025
+ "schema": {
55026
+ "type": "string"
55027
+ }
55028
+ }
55029
+ ]
55030
+ },
55018
55031
  "patch": {
55019
55032
  "operationId": "PatchCandidate",
55020
55033
  "responses": {
@@ -55079,7 +55092,6 @@
55079
55092
  }
55080
55093
  }
55081
55094
  },
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
55095
  "tags": [
55084
55096
  "Candidates"
55085
55097
  ],
@@ -55186,7 +55198,6 @@
55186
55198
  }
55187
55199
  }
55188
55200
  },
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
55201
  "tags": [
55191
55202
  "Backups"
55192
55203
  ],
@@ -55261,7 +55272,6 @@
55261
55272
  }
55262
55273
  }
55263
55274
  },
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
55275
  "tags": [
55266
55276
  "Articles"
55267
55277
  ],
@@ -55353,7 +55363,6 @@
55353
55363
  }
55354
55364
  }
55355
55365
  },
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
55366
  "tags": [
55358
55367
  "Articles"
55359
55368
  ],
@@ -55463,7 +55472,6 @@
55463
55472
  }
55464
55473
  }
55465
55474
  },
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
55475
  "tags": [
55468
55476
  "Articles"
55469
55477
  ],
@@ -55511,7 +55519,6 @@
55511
55519
  }
55512
55520
  }
55513
55521
  },
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
55522
  "tags": [
55516
55523
  "Articles"
55517
55524
  ],
@@ -55557,7 +55564,6 @@
55557
55564
  }
55558
55565
  }
55559
55566
  },
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
55567
  "tags": [
55562
55568
  "Articles"
55563
55569
  ],
@@ -55651,7 +55657,6 @@
55651
55657
  }
55652
55658
  }
55653
55659
  },
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
55660
  "tags": [
55656
55661
  "Articles"
55657
55662
  ],
@@ -55689,7 +55694,6 @@
55689
55694
  }
55690
55695
  }
55691
55696
  },
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
55697
  "tags": [
55694
55698
  "Articles"
55695
55699
  ],
@@ -55740,7 +55744,6 @@
55740
55744
  }
55741
55745
  }
55742
55746
  },
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
55747
  "tags": [
55745
55748
  "Articles"
55746
55749
  ],
@@ -55778,7 +55781,6 @@
55778
55781
  }
55779
55782
  }
55780
55783
  },
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
55784
  "tags": [
55783
55785
  "Articles"
55784
55786
  ],
@@ -56002,7 +56004,6 @@
56002
56004
  }
56003
56005
  }
56004
56006
  },
56005
- "description": "Add an existing page (by its Sanity ID) to this app's pages array.",
56006
56007
  "tags": [
56007
56008
  "Apps"
56008
56009
  ],
@@ -56046,7 +56047,6 @@
56046
56047
  }
56047
56048
  }
56048
56049
  },
56049
- "description": "Remove a page reference from this app's pages array.",
56050
56050
  "tags": [
56051
56051
  "Apps"
56052
56052
  ],
@@ -56257,7 +56257,6 @@
56257
56257
  }
56258
56258
  }
56259
56259
  },
56260
- "description": "Pass the Sanity asset reference ID (image-xxxx).",
56261
56260
  "tags": [
56262
56261
  "Apps"
56263
56262
  ],
@@ -56626,7 +56625,6 @@
56626
56625
  }
56627
56626
  }
56628
56627
  },
56629
- "description": "Create a new Annual Wheel document.",
56630
56628
  "tags": [
56631
56629
  "Annual wheels"
56632
56630
  ],
@@ -56718,7 +56716,6 @@
56718
56716
  }
56719
56717
  }
56720
56718
  },
56721
- "description": "Update top-level fields on an Annual Wheel. Any omitted field is left unchanged.",
56722
56719
  "tags": [
56723
56720
  "Annual wheels"
56724
56721
  ],
@@ -56774,7 +56771,6 @@
56774
56771
  }
56775
56772
  }
56776
56773
  },
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
56774
  "tags": [
56779
56775
  "Annual wheels"
56780
56776
  ],
@@ -56822,7 +56818,6 @@
56822
56818
  }
56823
56819
  }
56824
56820
  },
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
56821
  "tags": [
56827
56822
  "Annual wheels"
56828
56823
  ],
@@ -56876,7 +56871,6 @@
56876
56871
  }
56877
56872
  }
56878
56873
  },
56879
- "description": "Remove an event from an Annual Wheel.\n`eventKey` is the `_key` of the event to remove.",
56880
56874
  "tags": [
56881
56875
  "Annual wheels"
56882
56876
  ],