@snokam/mcp-api 0.5.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/dist/auth.d.ts +16 -0
- package/dist/auth.js +72 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +271 -0
- package/dist/openapi-loader.d.ts +46 -0
- package/dist/openapi-loader.js +174 -0
- package/package.json +35 -0
- package/specs/production/accounting.json +1131 -0
- package/specs/production/broker.json +109 -0
- package/specs/production/calculators.json +1523 -0
- package/specs/production/chatgpt.json +1655 -0
- package/specs/production/crypto.json +1998 -0
- package/specs/production/employees.json +1867 -0
- package/specs/production/events.json +2322 -0
- package/specs/production/notifications.json +270 -0
- package/specs/production/office.json +1984 -0
- package/specs/production/power-office.json +2383 -0
- package/specs/production/sanity.json +29509 -0
- package/specs/production/sync.json +181 -0
- package/specs/production/webshop.json +631 -0
- package/specs/test/accounting.json +1131 -0
- package/specs/test/broker.json +109 -0
- package/specs/test/calculators.json +1523 -0
- package/specs/test/chatgpt.json +1655 -0
- package/specs/test/crypto.json +1998 -0
- package/specs/test/employees.json +1867 -0
- package/specs/test/events.json +2322 -0
- package/specs/test/notifications.json +270 -0
- package/specs/test/power-office.json +2383 -0
- package/specs/test/sanity.json +29509 -0
- package/specs/test/sync.json +181 -0
- package/specs/test/webshop.json +631 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Sync Function",
|
|
5
|
+
"description": "Sync data from one system to another, e.g CvPartner to Sanity",
|
|
6
|
+
"version": "v1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://sync.api.test.snokam.no"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"paths": {
|
|
14
|
+
"/v1.0/azure-ad-to-sanity": {
|
|
15
|
+
"get": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"Sync"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Syncs Azure AD to Sanity",
|
|
20
|
+
"description": "Synchronizes data from Azure AD to Sanity.",
|
|
21
|
+
"operationId": "SyncAzureAdToSanity",
|
|
22
|
+
"responses": {
|
|
23
|
+
"200": {
|
|
24
|
+
"description": "Data synchronized successfully",
|
|
25
|
+
"content": {
|
|
26
|
+
"application/json": {
|
|
27
|
+
"schema": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"x-ms-summary": "Success"
|
|
33
|
+
},
|
|
34
|
+
"401": {
|
|
35
|
+
"description": "Unauthorized access",
|
|
36
|
+
"x-ms-summary": "Unauthorized"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"security": [
|
|
40
|
+
{
|
|
41
|
+
"Implicit": [
|
|
42
|
+
"api://2d964377-8322-482d-bd45-3134b48a9da5/user_impersonation"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"/v1.0/cv-partner-to-sanity": {
|
|
49
|
+
"get": {
|
|
50
|
+
"tags": [
|
|
51
|
+
"Sync"
|
|
52
|
+
],
|
|
53
|
+
"summary": "Syncs CV Partner to Sanity",
|
|
54
|
+
"description": "Synchronizes data from CV Partner to Sanity.",
|
|
55
|
+
"operationId": "SyncCvPartnerToSanity",
|
|
56
|
+
"responses": {
|
|
57
|
+
"200": {
|
|
58
|
+
"description": "Data synchronized successfully",
|
|
59
|
+
"content": {
|
|
60
|
+
"application/json": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"x-ms-summary": "Success"
|
|
67
|
+
},
|
|
68
|
+
"401": {
|
|
69
|
+
"description": "Unauthorized access",
|
|
70
|
+
"x-ms-summary": "Unauthorized"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"security": [
|
|
74
|
+
{
|
|
75
|
+
"Implicit": [
|
|
76
|
+
"api://2d964377-8322-482d-bd45-3134b48a9da5/user_impersonation"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"/v1.0/power-office-to-sanity": {
|
|
83
|
+
"get": {
|
|
84
|
+
"tags": [
|
|
85
|
+
"Sync"
|
|
86
|
+
],
|
|
87
|
+
"summary": "Sync power office data to sanity",
|
|
88
|
+
"description": "Sync power office data to sanity",
|
|
89
|
+
"operationId": "SyncPowerOfficeToSanity",
|
|
90
|
+
"parameters": [
|
|
91
|
+
{
|
|
92
|
+
"name": "from",
|
|
93
|
+
"in": "query",
|
|
94
|
+
"description": "",
|
|
95
|
+
"required": true,
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"format": "date-time"
|
|
99
|
+
},
|
|
100
|
+
"x-ms-summary": "Date from"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "to",
|
|
104
|
+
"in": "query",
|
|
105
|
+
"description": "",
|
|
106
|
+
"required": true,
|
|
107
|
+
"schema": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"format": "date-time"
|
|
110
|
+
},
|
|
111
|
+
"x-ms-summary": "Date to"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"responses": {
|
|
115
|
+
"200": {
|
|
116
|
+
"description": "Data synchronized successfully",
|
|
117
|
+
"content": {
|
|
118
|
+
"application/json": {
|
|
119
|
+
"schema": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"x-ms-summary": "Success"
|
|
125
|
+
},
|
|
126
|
+
"401": {
|
|
127
|
+
"description": "Unauthorized access",
|
|
128
|
+
"x-ms-summary": "Unauthorized"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"security": [
|
|
132
|
+
{
|
|
133
|
+
"Implicit": [
|
|
134
|
+
"api://2d964377-8322-482d-bd45-3134b48a9da5/user_impersonation"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"/v1.0/okrs-to-sanity": {
|
|
141
|
+
"get": {
|
|
142
|
+
"tags": [
|
|
143
|
+
"Sync"
|
|
144
|
+
],
|
|
145
|
+
"summary": "Sync OKRs",
|
|
146
|
+
"description": "Synchronizes OKRs",
|
|
147
|
+
"operationId": "SyncOkrs",
|
|
148
|
+
"responses": {
|
|
149
|
+
"200": {
|
|
150
|
+
"description": "OKRs synchronized successfully",
|
|
151
|
+
"x-ms-summary": "Success"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"security": [
|
|
155
|
+
{
|
|
156
|
+
"Implicit": [
|
|
157
|
+
"api://2d964377-8322-482d-bd45-3134b48a9da5/user_impersonation"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"components": {
|
|
165
|
+
"securitySchemes": {
|
|
166
|
+
"Implicit": {
|
|
167
|
+
"type": "oauth2",
|
|
168
|
+
"flows": {
|
|
169
|
+
"implicit": {
|
|
170
|
+
"authorizationUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/authorize",
|
|
171
|
+
"tokenUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/token",
|
|
172
|
+
"refreshUrl": "https://login.microsoftonline.com/a8533784-aa3c-403b-a61a-1533ecc6e3ed/oauth2/v2.0/token",
|
|
173
|
+
"scopes": {
|
|
174
|
+
"api://2d964377-8322-482d-bd45-3134b48a9da5/user_impersonation": "Default function scope"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|