@snokam/mcp-api 0.150.0 → 0.151.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snokam/mcp-api",
3
- "version": "0.150.0",
3
+ "version": "0.151.1",
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": {
@@ -157,6 +157,77 @@
157
157
  ]
158
158
  }
159
159
  },
160
+ "/v1.0/protected/routing": {
161
+ "get": {
162
+ "tags": [
163
+ "Notifications"
164
+ ],
165
+ "summary": "Get notification routing",
166
+ "description": "Returns the tenant's notification routing plus the known keys and active chat provider.",
167
+ "operationId": "GetNotificationRouting",
168
+ "responses": {
169
+ "200": {
170
+ "description": "Payload of NotificationRoutingResponse",
171
+ "content": {
172
+ "application/json": {
173
+ "schema": {
174
+ "$ref": "#/components/schemas/notificationRoutingResponse"
175
+ }
176
+ }
177
+ },
178
+ "x-ms-summary": "Success"
179
+ }
180
+ },
181
+ "security": [
182
+ {
183
+ "Implicit": [
184
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
185
+ ]
186
+ },
187
+ {
188
+ "ApiKey": []
189
+ }
190
+ ]
191
+ },
192
+ "put": {
193
+ "tags": [
194
+ "Notifications"
195
+ ],
196
+ "summary": "Update notification routing",
197
+ "description": "Upserts the tenant's notification routing (routes + default destination).",
198
+ "operationId": "UpdateNotificationRouting",
199
+ "requestBody": {
200
+ "content": {
201
+ "application/json": {
202
+ "schema": {
203
+ "$ref": "#/components/schemas/updateNotificationRoutingRequest"
204
+ }
205
+ }
206
+ },
207
+ "required": true
208
+ },
209
+ "responses": {
210
+ "204": {
211
+ "description": "No description",
212
+ "x-ms-summary": "Saved"
213
+ },
214
+ "400": {
215
+ "description": "No description",
216
+ "x-ms-summary": "Invalid body"
217
+ }
218
+ },
219
+ "security": [
220
+ {
221
+ "Implicit": [
222
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
223
+ ]
224
+ },
225
+ {
226
+ "ApiKey": []
227
+ }
228
+ ]
229
+ }
230
+ },
160
231
  "/v1.0/protected/push/register": {
161
232
  "post": {
162
233
  "tags": [
@@ -550,6 +621,57 @@
550
621
  }
551
622
  }
552
623
  },
624
+ "notificationKnownKeyDto": {
625
+ "type": "object",
626
+ "properties": {
627
+ "key": {
628
+ "type": "string"
629
+ },
630
+ "title": {
631
+ "type": "string"
632
+ },
633
+ "group": {
634
+ "type": "string"
635
+ }
636
+ }
637
+ },
638
+ "notificationRouteDto": {
639
+ "type": "object",
640
+ "properties": {
641
+ "key": {
642
+ "type": "string"
643
+ },
644
+ "destination": {
645
+ "type": "string"
646
+ },
647
+ "enabled": {
648
+ "type": "boolean"
649
+ }
650
+ }
651
+ },
652
+ "notificationRoutingResponse": {
653
+ "type": "object",
654
+ "properties": {
655
+ "routes": {
656
+ "type": "array",
657
+ "items": {
658
+ "$ref": "#/components/schemas/notificationRouteDto"
659
+ }
660
+ },
661
+ "defaultDestination": {
662
+ "type": "string"
663
+ },
664
+ "knownKeys": {
665
+ "type": "array",
666
+ "items": {
667
+ "$ref": "#/components/schemas/notificationKnownKeyDto"
668
+ }
669
+ },
670
+ "activeChatProvider": {
671
+ "type": "string"
672
+ }
673
+ }
674
+ },
553
675
  "sendEmailAttachmentRequest": {
554
676
  "type": "object",
555
677
  "properties": {
@@ -678,6 +800,20 @@
678
800
  "type": "string"
679
801
  }
680
802
  }
803
+ },
804
+ "updateNotificationRoutingRequest": {
805
+ "type": "object",
806
+ "properties": {
807
+ "routes": {
808
+ "type": "array",
809
+ "items": {
810
+ "$ref": "#/components/schemas/notificationRouteDto"
811
+ }
812
+ },
813
+ "defaultDestination": {
814
+ "type": "string"
815
+ }
816
+ }
681
817
  }
682
818
  },
683
819
  "securitySchemes": {
@@ -2543,6 +2543,9 @@
2543
2543
  "jobPosition": {
2544
2544
  "$ref": "#/components/schemas/jobPositionReference"
2545
2545
  },
2546
+ "linkedin": {
2547
+ "type": "string"
2548
+ },
2546
2549
  "offboardingChecklist": {
2547
2550
  "type": "array",
2548
2551
  "items": {
@@ -2616,9 +2619,6 @@
2616
2619
  "additionalProperties": {
2617
2620
  "type": "object"
2618
2621
  }
2619
- },
2620
- "linkedin": {
2621
- "type": "string"
2622
2622
  }
2623
2623
  }
2624
2624
  },
@@ -2830,6 +2830,9 @@
2830
2830
  "jobPosition": {
2831
2831
  "$ref": "#/components/schemas/sanityCandidateJobPosition"
2832
2832
  },
2833
+ "linkedin": {
2834
+ "type": "string"
2835
+ },
2833
2836
  "offboardingChecklist": {
2834
2837
  "type": "array",
2835
2838
  "items": {
@@ -2908,9 +2911,6 @@
2908
2911
  },
2909
2912
  "url": {
2910
2913
  "type": "string"
2911
- },
2912
- "linkedin": {
2913
- "type": "string"
2914
2914
  }
2915
2915
  }
2916
2916
  },
@@ -157,6 +157,77 @@
157
157
  ]
158
158
  }
159
159
  },
160
+ "/v1.0/protected/routing": {
161
+ "get": {
162
+ "tags": [
163
+ "Notifications"
164
+ ],
165
+ "summary": "Get notification routing",
166
+ "description": "Returns the tenant's notification routing plus the known keys and active chat provider.",
167
+ "operationId": "GetNotificationRouting",
168
+ "responses": {
169
+ "200": {
170
+ "description": "Payload of NotificationRoutingResponse",
171
+ "content": {
172
+ "application/json": {
173
+ "schema": {
174
+ "$ref": "#/components/schemas/notificationRoutingResponse"
175
+ }
176
+ }
177
+ },
178
+ "x-ms-summary": "Success"
179
+ }
180
+ },
181
+ "security": [
182
+ {
183
+ "Implicit": [
184
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
185
+ ]
186
+ },
187
+ {
188
+ "ApiKey": []
189
+ }
190
+ ]
191
+ },
192
+ "put": {
193
+ "tags": [
194
+ "Notifications"
195
+ ],
196
+ "summary": "Update notification routing",
197
+ "description": "Upserts the tenant's notification routing (routes + default destination).",
198
+ "operationId": "UpdateNotificationRouting",
199
+ "requestBody": {
200
+ "content": {
201
+ "application/json": {
202
+ "schema": {
203
+ "$ref": "#/components/schemas/updateNotificationRoutingRequest"
204
+ }
205
+ }
206
+ },
207
+ "required": true
208
+ },
209
+ "responses": {
210
+ "204": {
211
+ "description": "No description",
212
+ "x-ms-summary": "Saved"
213
+ },
214
+ "400": {
215
+ "description": "No description",
216
+ "x-ms-summary": "Invalid body"
217
+ }
218
+ },
219
+ "security": [
220
+ {
221
+ "Implicit": [
222
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
223
+ ]
224
+ },
225
+ {
226
+ "ApiKey": []
227
+ }
228
+ ]
229
+ }
230
+ },
160
231
  "/v1.0/protected/push/register": {
161
232
  "post": {
162
233
  "tags": [
@@ -550,6 +621,57 @@
550
621
  }
551
622
  }
552
623
  },
624
+ "notificationKnownKeyDto": {
625
+ "type": "object",
626
+ "properties": {
627
+ "key": {
628
+ "type": "string"
629
+ },
630
+ "title": {
631
+ "type": "string"
632
+ },
633
+ "group": {
634
+ "type": "string"
635
+ }
636
+ }
637
+ },
638
+ "notificationRouteDto": {
639
+ "type": "object",
640
+ "properties": {
641
+ "key": {
642
+ "type": "string"
643
+ },
644
+ "destination": {
645
+ "type": "string"
646
+ },
647
+ "enabled": {
648
+ "type": "boolean"
649
+ }
650
+ }
651
+ },
652
+ "notificationRoutingResponse": {
653
+ "type": "object",
654
+ "properties": {
655
+ "routes": {
656
+ "type": "array",
657
+ "items": {
658
+ "$ref": "#/components/schemas/notificationRouteDto"
659
+ }
660
+ },
661
+ "defaultDestination": {
662
+ "type": "string"
663
+ },
664
+ "knownKeys": {
665
+ "type": "array",
666
+ "items": {
667
+ "$ref": "#/components/schemas/notificationKnownKeyDto"
668
+ }
669
+ },
670
+ "activeChatProvider": {
671
+ "type": "string"
672
+ }
673
+ }
674
+ },
553
675
  "sendEmailAttachmentRequest": {
554
676
  "type": "object",
555
677
  "properties": {
@@ -678,6 +800,20 @@
678
800
  "type": "string"
679
801
  }
680
802
  }
803
+ },
804
+ "updateNotificationRoutingRequest": {
805
+ "type": "object",
806
+ "properties": {
807
+ "routes": {
808
+ "type": "array",
809
+ "items": {
810
+ "$ref": "#/components/schemas/notificationRouteDto"
811
+ }
812
+ },
813
+ "defaultDestination": {
814
+ "type": "string"
815
+ }
816
+ }
681
817
  }
682
818
  },
683
819
  "securitySchemes": {
@@ -2543,6 +2543,9 @@
2543
2543
  "jobPosition": {
2544
2544
  "$ref": "#/components/schemas/jobPositionReference"
2545
2545
  },
2546
+ "linkedin": {
2547
+ "type": "string"
2548
+ },
2546
2549
  "offboardingChecklist": {
2547
2550
  "type": "array",
2548
2551
  "items": {
@@ -2616,9 +2619,6 @@
2616
2619
  "additionalProperties": {
2617
2620
  "type": "object"
2618
2621
  }
2619
- },
2620
- "linkedin": {
2621
- "type": "string"
2622
2622
  }
2623
2623
  }
2624
2624
  },
@@ -2830,6 +2830,9 @@
2830
2830
  "jobPosition": {
2831
2831
  "$ref": "#/components/schemas/sanityCandidateJobPosition"
2832
2832
  },
2833
+ "linkedin": {
2834
+ "type": "string"
2835
+ },
2833
2836
  "offboardingChecklist": {
2834
2837
  "type": "array",
2835
2838
  "items": {
@@ -2908,9 +2911,6 @@
2908
2911
  },
2909
2912
  "url": {
2910
2913
  "type": "string"
2911
- },
2912
- "linkedin": {
2913
- "type": "string"
2914
2914
  }
2915
2915
  }
2916
2916
  },
@@ -22134,6 +22134,45 @@
22134
22134
  "type": "object",
22135
22135
  "additionalProperties": true
22136
22136
  },
22137
+ "SanityNotificationRoute": {
22138
+ "properties": {
22139
+ "key": {
22140
+ "type": "string"
22141
+ },
22142
+ "destination": {
22143
+ "type": "string"
22144
+ },
22145
+ "enabled": {
22146
+ "type": "boolean"
22147
+ }
22148
+ },
22149
+ "required": [
22150
+ "key",
22151
+ "destination",
22152
+ "enabled"
22153
+ ],
22154
+ "type": "object",
22155
+ "additionalProperties": true
22156
+ },
22157
+ "SanityNotificationRouting": {
22158
+ "properties": {
22159
+ "routes": {
22160
+ "items": {
22161
+ "$ref": "#/components/schemas/SanityNotificationRoute"
22162
+ },
22163
+ "type": "array"
22164
+ },
22165
+ "defaultDestination": {
22166
+ "type": "string",
22167
+ "nullable": true
22168
+ }
22169
+ },
22170
+ "required": [
22171
+ "routes"
22172
+ ],
22173
+ "type": "object",
22174
+ "additionalProperties": true
22175
+ },
22137
22176
  "GetNewslettersBySeriesSinceQueryResult": {
22138
22177
  "items": {
22139
22178
  "properties": {
@@ -54228,6 +54267,89 @@
54228
54267
  }
54229
54268
  }
54230
54269
  },
54270
+ "/v1.0/notifications/routing": {
54271
+ "get": {
54272
+ "operationId": "GetNotificationRouting",
54273
+ "responses": {
54274
+ "200": {
54275
+ "description": "Ok",
54276
+ "content": {
54277
+ "application/json": {
54278
+ "schema": {
54279
+ "$ref": "#/components/schemas/SanityNotificationRouting"
54280
+ }
54281
+ }
54282
+ }
54283
+ }
54284
+ },
54285
+ "tags": [
54286
+ "Notification routing"
54287
+ ],
54288
+ "security": [
54289
+ {
54290
+ "Implicit": [
54291
+ "WILL BE REPLACED"
54292
+ ]
54293
+ }
54294
+ ],
54295
+ "parameters": [
54296
+ {
54297
+ "in": "query",
54298
+ "name": "useCache",
54299
+ "required": false,
54300
+ "schema": {
54301
+ "default": true,
54302
+ "type": "boolean"
54303
+ }
54304
+ },
54305
+ {
54306
+ "in": "query",
54307
+ "name": "useCdn",
54308
+ "required": false,
54309
+ "schema": {
54310
+ "default": false,
54311
+ "type": "boolean"
54312
+ }
54313
+ }
54314
+ ]
54315
+ },
54316
+ "put": {
54317
+ "operationId": "UpsertNotificationRouting",
54318
+ "responses": {
54319
+ "200": {
54320
+ "description": "Ok",
54321
+ "content": {
54322
+ "application/json": {
54323
+ "schema": {
54324
+ "$ref": "#/components/schemas/SanityNotificationRouting"
54325
+ }
54326
+ }
54327
+ }
54328
+ }
54329
+ },
54330
+ "tags": [
54331
+ "Notification routing"
54332
+ ],
54333
+ "security": [
54334
+ {
54335
+ "Implicit": [
54336
+ "WILL BE REPLACED"
54337
+ ]
54338
+ }
54339
+ ],
54340
+ "parameters": [],
54341
+ "requestBody": {
54342
+ "required": true,
54343
+ "content": {
54344
+ "application/json": {
54345
+ "schema": {
54346
+ "$ref": "#/components/schemas/SanityNotificationRouting"
54347
+ }
54348
+ }
54349
+ }
54350
+ }
54351
+ }
54352
+ },
54231
54353
  "/v1.0/newsletters": {
54232
54354
  "get": {
54233
54355
  "operationId": "GetNewsletters",