@snokam/mcp-api 0.179.0 → 0.180.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.
@@ -1715,6 +1715,148 @@
1715
1715
  ]
1716
1716
  }
1717
1717
  },
1718
+ "/v1.0/cv-variants/consultant/{email}": {
1719
+ "get": {
1720
+ "tags": [
1721
+ "CvVariants"
1722
+ ],
1723
+ "summary": "Get a specific consultant's persistent AI CV variant, if one exists.",
1724
+ "operationId": "GetConsultantCvVariant",
1725
+ "parameters": [
1726
+ {
1727
+ "name": "email",
1728
+ "in": "path",
1729
+ "required": true,
1730
+ "schema": {
1731
+ "type": "string"
1732
+ }
1733
+ }
1734
+ ],
1735
+ "responses": {
1736
+ "200": {
1737
+ "description": "Payload of ConsultantCvVariantView",
1738
+ "content": {
1739
+ "application/json": {
1740
+ "schema": {
1741
+ "$ref": "#/components/schemas/consultantCvVariantView"
1742
+ }
1743
+ }
1744
+ }
1745
+ },
1746
+ "404": {
1747
+ "description": "No description"
1748
+ }
1749
+ },
1750
+ "security": [
1751
+ {
1752
+ "Implicit": [
1753
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
1754
+ ]
1755
+ },
1756
+ {
1757
+ "ApiKey": []
1758
+ }
1759
+ ]
1760
+ },
1761
+ "post": {
1762
+ "tags": [
1763
+ "CvVariants"
1764
+ ],
1765
+ "summary": "Get or create a specific consultant's persistent AI CV variant (Flowcase proposal + tailored CV copy of the main CV).",
1766
+ "operationId": "EnsureConsultantCvVariant",
1767
+ "parameters": [
1768
+ {
1769
+ "name": "email",
1770
+ "in": "path",
1771
+ "required": true,
1772
+ "schema": {
1773
+ "type": "string"
1774
+ }
1775
+ }
1776
+ ],
1777
+ "requestBody": {
1778
+ "content": {
1779
+ "application/json": {
1780
+ "schema": {
1781
+ "$ref": "#/components/schemas/ensureCvVariantRequest"
1782
+ }
1783
+ }
1784
+ }
1785
+ },
1786
+ "responses": {
1787
+ "200": {
1788
+ "description": "Payload of ConsultantCvVariantView",
1789
+ "content": {
1790
+ "application/json": {
1791
+ "schema": {
1792
+ "$ref": "#/components/schemas/consultantCvVariantView"
1793
+ }
1794
+ }
1795
+ }
1796
+ },
1797
+ "502": {
1798
+ "description": "No description"
1799
+ }
1800
+ },
1801
+ "security": [
1802
+ {
1803
+ "Implicit": [
1804
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
1805
+ ]
1806
+ },
1807
+ {
1808
+ "ApiKey": []
1809
+ }
1810
+ ]
1811
+ }
1812
+ },
1813
+ "/v1.0/cv-variants/consultant/{email}/promote": {
1814
+ "post": {
1815
+ "tags": [
1816
+ "CvVariants"
1817
+ ],
1818
+ "summary": "Merge a specific consultant's AI CV variant into their main CV.",
1819
+ "operationId": "PromoteConsultantCvVariant",
1820
+ "parameters": [
1821
+ {
1822
+ "name": "email",
1823
+ "in": "path",
1824
+ "required": true,
1825
+ "schema": {
1826
+ "type": "string"
1827
+ }
1828
+ }
1829
+ ],
1830
+ "responses": {
1831
+ "200": {
1832
+ "description": "Payload of ConsultantCvVariantView",
1833
+ "content": {
1834
+ "application/json": {
1835
+ "schema": {
1836
+ "$ref": "#/components/schemas/consultantCvVariantView"
1837
+ }
1838
+ }
1839
+ }
1840
+ },
1841
+ "404": {
1842
+ "description": "No description"
1843
+ },
1844
+ "501": {
1845
+ "description": "No description"
1846
+ }
1847
+ },
1848
+ "security": [
1849
+ {
1850
+ "Implicit": [
1851
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
1852
+ ]
1853
+ },
1854
+ {
1855
+ "ApiKey": []
1856
+ }
1857
+ ]
1858
+ }
1859
+ },
1718
1860
  "/v1.0/consultants": {
1719
1861
  "get": {
1720
1862
  "tags": [
@@ -0,0 +1,277 @@
1
+ {
2
+ "openapi": "3.0.1",
3
+ "info": {
4
+ "title": "Sync API",
5
+ "description": "Data synchronization service",
6
+ "version": "v1.0.0"
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "https://sync.api.snokam.no"
11
+ }
12
+ ],
13
+ "paths": {
14
+ "/v1.0/protected/health/{provider}": {
15
+ "get": {
16
+ "tags": [
17
+ "Health"
18
+ ],
19
+ "summary": "Checks an integration's connectivity",
20
+ "operationId": "SyncIntegrationHealth",
21
+ "parameters": [
22
+ {
23
+ "name": "provider",
24
+ "in": "path",
25
+ "required": true,
26
+ "schema": {
27
+ "type": "string"
28
+ }
29
+ }
30
+ ],
31
+ "responses": {
32
+ "200": {
33
+ "description": "Payload of IntegrationHealthResult",
34
+ "content": {
35
+ "application/json": {
36
+ "schema": {
37
+ "$ref": "#/components/schemas/integrationHealthResult"
38
+ }
39
+ }
40
+ },
41
+ "x-ms-summary": "Health result"
42
+ }
43
+ },
44
+ "security": [
45
+ {
46
+ "Implicit": [
47
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
48
+ ]
49
+ },
50
+ {
51
+ "ApiKey": []
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ "/v1.0/cv-partner-to-sanity": {
57
+ "get": {
58
+ "tags": [
59
+ "Sync"
60
+ ],
61
+ "summary": "Syncs CV Partner to Sanity",
62
+ "description": "Synchronizes data from CV Partner to Sanity.",
63
+ "operationId": "SyncCvPartnerToSanity",
64
+ "responses": {
65
+ "200": {
66
+ "description": "Data synchronized successfully",
67
+ "content": {
68
+ "application/json": {
69
+ "schema": {
70
+ "type": "string"
71
+ }
72
+ }
73
+ },
74
+ "x-ms-summary": "Success"
75
+ },
76
+ "401": {
77
+ "description": "Unauthorized access",
78
+ "x-ms-summary": "Unauthorized"
79
+ }
80
+ },
81
+ "security": [
82
+ {
83
+ "Implicit": [
84
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
85
+ ]
86
+ },
87
+ {
88
+ "ApiKey": []
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ "/v1.0/power-office-to-sanity": {
94
+ "get": {
95
+ "tags": [
96
+ "Sync"
97
+ ],
98
+ "summary": "Sync power office data to sanity",
99
+ "description": "Sync power office data to sanity",
100
+ "operationId": "SyncPowerOfficeToSanity",
101
+ "parameters": [
102
+ {
103
+ "name": "from",
104
+ "in": "query",
105
+ "description": "",
106
+ "required": true,
107
+ "schema": {
108
+ "type": "string",
109
+ "format": "date-time"
110
+ },
111
+ "x-ms-summary": "Date from"
112
+ },
113
+ {
114
+ "name": "to",
115
+ "in": "query",
116
+ "description": "",
117
+ "required": true,
118
+ "schema": {
119
+ "type": "string",
120
+ "format": "date-time"
121
+ },
122
+ "x-ms-summary": "Date to"
123
+ }
124
+ ],
125
+ "responses": {
126
+ "200": {
127
+ "description": "Data synchronized successfully",
128
+ "content": {
129
+ "application/json": {
130
+ "schema": {
131
+ "type": "string"
132
+ }
133
+ }
134
+ },
135
+ "x-ms-summary": "Success"
136
+ },
137
+ "401": {
138
+ "description": "Unauthorized access",
139
+ "x-ms-summary": "Unauthorized"
140
+ }
141
+ },
142
+ "security": [
143
+ {
144
+ "Implicit": [
145
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
146
+ ]
147
+ },
148
+ {
149
+ "ApiKey": []
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "/v1.0/sanity-groups-to-azure-ad": {
155
+ "get": {
156
+ "tags": [
157
+ "Sync"
158
+ ],
159
+ "summary": "Syncs Sanity workgroups to Azure AD",
160
+ "description": "Mirrors the Sanity workgroup taxonomy to Azure AD security groups, and reconciles each group's membership against the Sanity-tracked employees. Same handler the cron runs.",
161
+ "operationId": "SyncSanityGroupsToAzureAd",
162
+ "responses": {
163
+ "200": {
164
+ "description": "Sync stats — groups created/updated, members added/removed.",
165
+ "content": {
166
+ "application/json": {
167
+ "schema": {
168
+ "$ref": "#/components/schemas/syncSanityGroupsResult"
169
+ }
170
+ }
171
+ },
172
+ "x-ms-summary": "Success"
173
+ },
174
+ "401": {
175
+ "description": "Unauthorized access",
176
+ "x-ms-summary": "Unauthorized"
177
+ }
178
+ },
179
+ "security": [
180
+ {
181
+ "Implicit": [
182
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
183
+ ]
184
+ },
185
+ {
186
+ "ApiKey": []
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ "/v1.0/okrs-to-sanity": {
192
+ "get": {
193
+ "tags": [
194
+ "Sync"
195
+ ],
196
+ "summary": "Sync OKRs",
197
+ "description": "Synchronizes OKRs",
198
+ "operationId": "SyncOkrs",
199
+ "responses": {
200
+ "200": {
201
+ "description": "OKRs synchronized successfully",
202
+ "x-ms-summary": "Success"
203
+ }
204
+ },
205
+ "security": [
206
+ {
207
+ "Implicit": [
208
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
209
+ ]
210
+ },
211
+ {
212
+ "ApiKey": []
213
+ }
214
+ ]
215
+ }
216
+ }
217
+ },
218
+ "components": {
219
+ "schemas": {
220
+ "integrationHealthResult": {
221
+ "type": "object",
222
+ "properties": {
223
+ "key": {
224
+ "type": "string"
225
+ },
226
+ "status": {
227
+ "type": "string"
228
+ },
229
+ "message": {
230
+ "type": "string"
231
+ }
232
+ }
233
+ },
234
+ "syncSanityGroupsResult": {
235
+ "type": "object",
236
+ "properties": {
237
+ "groupsCreated": {
238
+ "type": "integer",
239
+ "format": "int32"
240
+ },
241
+ "groupsUpdated": {
242
+ "type": "integer",
243
+ "format": "int32"
244
+ },
245
+ "membersAdded": {
246
+ "type": "integer",
247
+ "format": "int32"
248
+ },
249
+ "membersRemoved": {
250
+ "type": "integer",
251
+ "format": "int32"
252
+ }
253
+ }
254
+ }
255
+ },
256
+ "securitySchemes": {
257
+ "Implicit": {
258
+ "type": "oauth2",
259
+ "flows": {
260
+ "implicit": {
261
+ "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
262
+ "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
263
+ "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
264
+ "scopes": {
265
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "ApiKey": {
271
+ "type": "http",
272
+ "scheme": "bearer",
273
+ "bearerFormat": "JWT"
274
+ }
275
+ }
276
+ }
277
+ }