@microsoft/managed-apps-cli 0.14.0 → 0.17.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.
Files changed (196) hide show
  1. package/README.md +3 -1
  2. package/dist/Authentication/NoOpAuthenticationProvider.d.ts +25 -0
  3. package/dist/Authentication/NoOpAuthenticationProvider.d.ts.map +1 -0
  4. package/dist/Authentication/NoOpAuthenticationProvider.js +31 -0
  5. package/dist/Authentication/NoOpAuthenticationProvider.js.map +1 -0
  6. package/dist/Cli.d.ts.map +1 -1
  7. package/dist/Cli.js +20 -1
  8. package/dist/Cli.js.map +1 -1
  9. package/dist/CliSettings.d.ts +2 -1
  10. package/dist/CliSettings.d.ts.map +1 -1
  11. package/dist/CliSettings.js +3 -2
  12. package/dist/CliSettings.js.map +1 -1
  13. package/dist/Constants/CommandRegistry.d.ts.map +1 -1
  14. package/dist/Constants/CommandRegistry.js +13 -5
  15. package/dist/Constants/CommandRegistry.js.map +1 -1
  16. package/dist/Constants/HelpStrings.d.ts +13 -0
  17. package/dist/Constants/HelpStrings.d.ts.map +1 -1
  18. package/dist/Constants/HelpStrings.js +29 -9
  19. package/dist/Constants/HelpStrings.js.map +1 -1
  20. package/dist/Constants.d.ts +1 -0
  21. package/dist/Constants.d.ts.map +1 -1
  22. package/dist/Constants.js +4 -0
  23. package/dist/Constants.js.map +1 -1
  24. package/dist/HttpClient/CliHttpClient.d.ts.map +1 -1
  25. package/dist/HttpClient/CliHttpClient.js +27 -1
  26. package/dist/HttpClient/CliHttpClient.js.map +1 -1
  27. package/dist/Logger/CliLogger.d.ts +1 -1
  28. package/dist/Logger/CliLogger.d.ts.map +1 -1
  29. package/dist/Logger/CliLogger.js +19 -4
  30. package/dist/Logger/CliLogger.js.map +1 -1
  31. package/dist/Logger/OneDSWriter.d.ts +0 -1
  32. package/dist/Logger/OneDSWriter.d.ts.map +1 -1
  33. package/dist/Logger/OneDSWriter.js +5 -3
  34. package/dist/Logger/OneDSWriter.js.map +1 -1
  35. package/dist/Testing/MockFetch.d.ts +23 -0
  36. package/dist/Testing/MockFetch.d.ts.map +1 -0
  37. package/dist/Testing/MockFetch.js +177 -0
  38. package/dist/Testing/MockFetch.js.map +1 -0
  39. package/dist/Testing/MockRoutes.d.ts +34 -0
  40. package/dist/Testing/MockRoutes.d.ts.map +1 -0
  41. package/dist/Testing/MockRoutes.js +226 -0
  42. package/dist/Testing/MockRoutes.js.map +1 -0
  43. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts +6 -0
  44. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts.map +1 -0
  45. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js +25 -0
  46. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js.map +1 -0
  47. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts +6 -0
  48. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts.map +1 -0
  49. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js +55 -0
  50. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js.map +1 -0
  51. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts +6 -0
  52. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts.map +1 -0
  53. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js +1970 -0
  54. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js.map +1 -0
  55. package/dist/Testing/fixtures/connectors/kusto.d.ts +6 -0
  56. package/dist/Testing/fixtures/connectors/kusto.d.ts.map +1 -0
  57. package/dist/Testing/fixtures/connectors/kusto.js +1333 -0
  58. package/dist/Testing/fixtures/connectors/kusto.js.map +1 -0
  59. package/dist/Testing/fixtures/connectors/msnweather.d.ts +6 -0
  60. package/dist/Testing/fixtures/connectors/msnweather.d.ts.map +1 -0
  61. package/dist/Testing/fixtures/connectors/msnweather.js +917 -0
  62. package/dist/Testing/fixtures/connectors/msnweather.js.map +1 -0
  63. package/dist/Testing/fixtures/connectors/office365groups.d.ts +6 -0
  64. package/dist/Testing/fixtures/connectors/office365groups.d.ts.map +1 -0
  65. package/dist/Testing/fixtures/connectors/office365groups.js +2144 -0
  66. package/dist/Testing/fixtures/connectors/office365groups.js.map +1 -0
  67. package/dist/Testing/fixtures/connectors/office365users.d.ts +6 -0
  68. package/dist/Testing/fixtures/connectors/office365users.d.ts.map +1 -0
  69. package/dist/Testing/fixtures/connectors/office365users.js +1969 -0
  70. package/dist/Testing/fixtures/connectors/office365users.js.map +1 -0
  71. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts +6 -0
  72. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts.map +1 -0
  73. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js +4873 -0
  74. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js.map +1 -0
  75. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts +6 -0
  76. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts.map +1 -0
  77. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js +4682 -0
  78. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js.map +1 -0
  79. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts +6 -0
  80. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts.map +1 -0
  81. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js +1078 -0
  82. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js.map +1 -0
  83. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts +6 -0
  84. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts.map +1 -0
  85. package/dist/Testing/fixtures/connectors/sharepointonline.js +28 -0
  86. package/dist/Testing/fixtures/connectors/sharepointonline.js.map +1 -0
  87. package/dist/Testing/fixtures/connectors/teams.d.ts +6 -0
  88. package/dist/Testing/fixtures/connectors/teams.d.ts.map +1 -0
  89. package/dist/Testing/fixtures/connectors/teams.js +9987 -0
  90. package/dist/Testing/fixtures/connectors/teams.js.map +1 -0
  91. package/dist/Testing/fixtures/connectors/translatorv2.d.ts +6 -0
  92. package/dist/Testing/fixtures/connectors/translatorv2.d.ts.map +1 -0
  93. package/dist/Testing/fixtures/connectors/translatorv2.js +307 -0
  94. package/dist/Testing/fixtures/connectors/translatorv2.js.map +1 -0
  95. package/dist/Testing/fixtures/index.d.ts +23 -0
  96. package/dist/Testing/fixtures/index.d.ts.map +1 -0
  97. package/dist/Testing/fixtures/index.js +96 -0
  98. package/dist/Testing/fixtures/index.js.map +1 -0
  99. package/dist/Types/Cli.types.d.ts +8 -0
  100. package/dist/Types/Cli.types.d.ts.map +1 -1
  101. package/dist/Utils/EnvVars.d.ts +1 -1
  102. package/dist/Utils/EnvVars.d.ts.map +1 -1
  103. package/dist/Utils/EnvVars.js.map +1 -1
  104. package/dist/Utils/GitUtils.d.ts +8 -4
  105. package/dist/Utils/GitUtils.d.ts.map +1 -1
  106. package/dist/Utils/GitUtils.js +15 -8
  107. package/dist/Utils/GitUtils.js.map +1 -1
  108. package/dist/Utils/MaafAppConfig.d.ts +2 -0
  109. package/dist/Utils/MaafAppConfig.d.ts.map +1 -1
  110. package/dist/Utils/MaafAppConfig.js +6 -0
  111. package/dist/Utils/MaafAppConfig.js.map +1 -1
  112. package/dist/Utils/RepoOption.d.ts +1 -0
  113. package/dist/Utils/RepoOption.d.ts.map +1 -1
  114. package/dist/Utils/RepoOption.js +14 -0
  115. package/dist/Utils/RepoOption.js.map +1 -1
  116. package/dist/Utils/ShareAccessRouting.d.ts +78 -0
  117. package/dist/Utils/ShareAccessRouting.d.ts.map +1 -0
  118. package/dist/Utils/ShareAccessRouting.js +93 -0
  119. package/dist/Utils/ShareAccessRouting.js.map +1 -0
  120. package/dist/Verbs/AddConnector.d.ts +6 -6
  121. package/dist/Verbs/AddConnector.d.ts.map +1 -1
  122. package/dist/Verbs/AddConnector.js +45 -29
  123. package/dist/Verbs/AddConnector.js.map +1 -1
  124. package/dist/Verbs/AddConnectorFlows.d.ts +9 -2
  125. package/dist/Verbs/AddConnectorFlows.d.ts.map +1 -1
  126. package/dist/Verbs/AddConnectorFlows.js +26 -7
  127. package/dist/Verbs/AddConnectorFlows.js.map +1 -1
  128. package/dist/Verbs/ConnectorHelpers.d.ts.map +1 -1
  129. package/dist/Verbs/ConnectorHelpers.js +0 -7
  130. package/dist/Verbs/ConnectorHelpers.js.map +1 -1
  131. package/dist/Verbs/CreateMaafApp.d.ts +8 -16
  132. package/dist/Verbs/CreateMaafApp.d.ts.map +1 -1
  133. package/dist/Verbs/CreateMaafApp.js +217 -90
  134. package/dist/Verbs/CreateMaafApp.js.map +1 -1
  135. package/dist/Verbs/DeleteMaafApp.d.ts +13 -9
  136. package/dist/Verbs/DeleteMaafApp.d.ts.map +1 -1
  137. package/dist/Verbs/DeleteMaafApp.js +41 -21
  138. package/dist/Verbs/DeleteMaafApp.js.map +1 -1
  139. package/dist/Verbs/DeployMaafApp.d.ts.map +1 -1
  140. package/dist/Verbs/DeployMaafApp.js +32 -7
  141. package/dist/Verbs/DeployMaafApp.js.map +1 -1
  142. package/dist/Verbs/FindDataverseApi.d.ts.map +1 -1
  143. package/dist/Verbs/FindDataverseApi.js +1 -15
  144. package/dist/Verbs/FindDataverseApi.js.map +1 -1
  145. package/dist/Verbs/GetMaafApp.d.ts.map +1 -1
  146. package/dist/Verbs/GetMaafApp.js +18 -6
  147. package/dist/Verbs/GetMaafApp.js.map +1 -1
  148. package/dist/Verbs/Init.d.ts.map +1 -1
  149. package/dist/Verbs/Init.js +53 -1
  150. package/dist/Verbs/Init.js.map +1 -1
  151. package/dist/Verbs/ListConnectionReferences.d.ts.map +1 -1
  152. package/dist/Verbs/ListConnectionReferences.js +1 -15
  153. package/dist/Verbs/ListConnectionReferences.js.map +1 -1
  154. package/dist/Verbs/ListDatasets.d.ts.map +1 -1
  155. package/dist/Verbs/ListDatasets.js +1 -15
  156. package/dist/Verbs/ListDatasets.js.map +1 -1
  157. package/dist/Verbs/ListEnvironmentVariables.d.ts.map +1 -1
  158. package/dist/Verbs/ListEnvironmentVariables.js +1 -15
  159. package/dist/Verbs/ListEnvironmentVariables.js.map +1 -1
  160. package/dist/Verbs/ListFlows.d.ts.map +1 -1
  161. package/dist/Verbs/ListFlows.js +1 -15
  162. package/dist/Verbs/ListFlows.js.map +1 -1
  163. package/dist/Verbs/ListSqlStoredProcedures.d.ts.map +1 -1
  164. package/dist/Verbs/ListSqlStoredProcedures.js +1 -15
  165. package/dist/Verbs/ListSqlStoredProcedures.js.map +1 -1
  166. package/dist/Verbs/ListTables.d.ts.map +1 -1
  167. package/dist/Verbs/ListTables.js +1 -15
  168. package/dist/Verbs/ListTables.js.map +1 -1
  169. package/dist/Verbs/MaafAppPermissions.d.ts +8 -17
  170. package/dist/Verbs/MaafAppPermissions.d.ts.map +1 -1
  171. package/dist/Verbs/MaafAppPermissions.js +84 -91
  172. package/dist/Verbs/MaafAppPermissions.js.map +1 -1
  173. package/dist/Verbs/Pack.d.ts +1 -1
  174. package/dist/Verbs/Pack.d.ts.map +1 -1
  175. package/dist/Verbs/Pack.js +109 -1
  176. package/dist/Verbs/Pack.js.map +1 -1
  177. package/dist/Verbs/RefreshDataSource.d.ts +10 -9
  178. package/dist/Verbs/RefreshDataSource.d.ts.map +1 -1
  179. package/dist/Verbs/RefreshDataSource.js +24 -23
  180. package/dist/Verbs/RefreshDataSource.js.map +1 -1
  181. package/dist/Verbs/RemoveDataSource.d.ts.map +1 -1
  182. package/dist/Verbs/RemoveDataSource.js +17 -3
  183. package/dist/Verbs/RemoveDataSource.js.map +1 -1
  184. package/dist/Verbs/ShareList.d.ts +10 -0
  185. package/dist/Verbs/ShareList.d.ts.map +1 -0
  186. package/dist/Verbs/ShareList.js +254 -0
  187. package/dist/Verbs/ShareList.js.map +1 -0
  188. package/dist/Verbs/VerbConstants.d.ts +44 -0
  189. package/dist/Verbs/VerbConstants.d.ts.map +1 -1
  190. package/dist/Verbs/VerbConstants.js +28 -0
  191. package/dist/Verbs/VerbConstants.js.map +1 -1
  192. package/dist/Verbs/index.d.ts +1 -0
  193. package/dist/Verbs/index.d.ts.map +1 -1
  194. package/dist/Verbs/index.js +1 -0
  195. package/dist/Verbs/index.js.map +1 -1
  196. package/package.json +4 -4
@@ -0,0 +1,1333 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ // Generated fixture: real saved connector schema (with swagger) used by the mock backend for E2E.
5
+ // eslint-disable
6
+ const connector = {
7
+ name: 'shared_kusto',
8
+ id: '/providers/Microsoft.PowerApps/apis/shared_kusto',
9
+ type: 'Microsoft.PowerApps/apis',
10
+ properties: {
11
+ displayName: 'Azure Data Explorer',
12
+ iconUri: 'REDACTED',
13
+ iconBrandColor: '#20427f',
14
+ apiEnvironment: 'Shared',
15
+ isCustomApi: false,
16
+ blobUrisAreProxied: false,
17
+ connectionParameterSets: {
18
+ uiDefinition: {
19
+ displayName: 'Authentication type',
20
+ description: 'Type of authentication to be used.',
21
+ },
22
+ values: [
23
+ {
24
+ name: 'certOauth',
25
+ uiDefinition: {
26
+ displayName: 'Client Certificate Auth',
27
+ description: 'Provide Microsoft Entra ID credentials using PFX certificate and password',
28
+ },
29
+ parameters: {
30
+ token: {
31
+ type: 'oauthSetting',
32
+ oAuthSettings: {
33
+ identityProvider: 'aadcertificate',
34
+ clientId: '7ab7862c-4c57-491e-8a45-d52a7e023983',
35
+ scopes: [],
36
+ redirectMode: 'GlobalPerConnector',
37
+ redirectUrl: 'REDACTED',
38
+ properties: {
39
+ IsFirstParty: 'True',
40
+ AzureActiveDirectoryResourceId: 'REDACTED',
41
+ IsOnbehalfofLoginSupported: true,
42
+ },
43
+ customParameters: {
44
+ grantType: {
45
+ value: 'client_credentials',
46
+ },
47
+ ResourceUri: {
48
+ value: 'https://kusto.kusto.windows.net',
49
+ },
50
+ },
51
+ },
52
+ uiDefinition: {
53
+ displayName: 'Login your Credentials',
54
+ description: 'Login your Credentials',
55
+ tooltip: 'Provide your Credentials',
56
+ constraints: {
57
+ required: 'true',
58
+ hidden: 'false',
59
+ },
60
+ },
61
+ },
62
+ 'token:TenantId': {
63
+ type: 'string',
64
+ uiDefinition: {
65
+ schema: {
66
+ description: 'The tenant ID of the Microsoft Entra ID application',
67
+ type: 'string',
68
+ },
69
+ displayName: 'Tenant',
70
+ constraints: {
71
+ required: 'true',
72
+ hidden: 'false',
73
+ },
74
+ },
75
+ },
76
+ 'token:clientId': {
77
+ type: 'string',
78
+ uiDefinition: {
79
+ displayName: 'Client ID',
80
+ description: 'The client ID of for the Microsoft Entra ID application',
81
+ constraints: {
82
+ required: 'false',
83
+ hidden: 'false',
84
+ },
85
+ },
86
+ },
87
+ 'token:clientCertificateSecret': {
88
+ type: 'clientCertificate',
89
+ uiDefinition: {
90
+ displayName: 'Client certificate secret',
91
+ description: 'The client certificate secret allowed by this application',
92
+ constraints: {
93
+ required: 'true',
94
+ hidden: 'false',
95
+ },
96
+ },
97
+ },
98
+ 'token:resourceUri': {
99
+ type: 'string',
100
+ uiDefinition: {
101
+ displayName: 'ResourceUri',
102
+ description: 'The resource you are requesting authorization to use.',
103
+ constraints: {
104
+ required: 'false',
105
+ hidden: 'true',
106
+ },
107
+ },
108
+ },
109
+ 'token:grantType': {
110
+ type: 'string',
111
+ allowedValues: [
112
+ {
113
+ value: 'client_credentials',
114
+ },
115
+ ],
116
+ uiDefinition: {
117
+ displayName: 'Grant Type',
118
+ description: 'Grant type',
119
+ constraints: {
120
+ required: 'false',
121
+ hidden: 'true',
122
+ allowedValues: [
123
+ {
124
+ text: 'Client Credentials',
125
+ value: 'client_credentials',
126
+ },
127
+ ],
128
+ },
129
+ },
130
+ },
131
+ },
132
+ metadata: {
133
+ allowSharing: true,
134
+ },
135
+ },
136
+ {
137
+ name: 'oauth',
138
+ uiDefinition: {
139
+ displayName: 'Microsoft Entra ID Integrated',
140
+ description: 'Use Microsoft Entra ID to access your Azure Data Explorer.',
141
+ },
142
+ parameters: {
143
+ token: {
144
+ type: 'oauthSetting',
145
+ oAuthSettings: {
146
+ identityProvider: 'aadcertificate',
147
+ clientId: '7ab7862c-4c57-491e-8a45-d52a7e023983',
148
+ scopes: [],
149
+ redirectMode: 'GlobalPerConnector',
150
+ redirectUrl: 'https://global.consent.azure-apim.net/redirect/kusto',
151
+ properties: {
152
+ IsFirstParty: 'True',
153
+ AzureActiveDirectoryResourceId: 'https://kusto.kusto.windows.net',
154
+ IsOnbehalfofLoginSupported: true,
155
+ },
156
+ customParameters: {
157
+ tenantId: {},
158
+ ResourceUri: {
159
+ value: 'REDACTED',
160
+ },
161
+ loginUriAAD: {
162
+ value: 'REDACTED',
163
+ },
164
+ loginUri: {
165
+ value: 'REDACTED',
166
+ },
167
+ },
168
+ },
169
+ uiDefinition: {
170
+ displayName: 'Sign in with your Microsoft Entra ID credentials',
171
+ description: 'Sign in with your Microsoft Entra ID credentials',
172
+ tooltip: 'Provide Microsoft Entra ID credentials',
173
+ constraints: {
174
+ required: 'true',
175
+ hidden: 'false',
176
+ },
177
+ },
178
+ },
179
+ privacySetting: {
180
+ type: 'string',
181
+ allowedValues: [
182
+ {
183
+ value: 'None',
184
+ },
185
+ {
186
+ value: 'Private',
187
+ },
188
+ {
189
+ value: 'Organizational',
190
+ },
191
+ {
192
+ value: 'Public',
193
+ },
194
+ ],
195
+ uiDefinition: {
196
+ displayName: 'Privacy Setting',
197
+ description: 'Privacy Setting',
198
+ tooltip: 'Privacy Setting',
199
+ constraints: {
200
+ tabIndex: 1,
201
+ required: 'false',
202
+ hidden: 'true',
203
+ capability: ['cloud', 'gateway'],
204
+ allowedValues: [
205
+ {
206
+ name: 'None',
207
+ value: 'None',
208
+ },
209
+ {
210
+ name: 'Private',
211
+ value: 'Private',
212
+ },
213
+ {
214
+ name: 'Organizational',
215
+ value: 'Organizational',
216
+ },
217
+ {
218
+ name: 'Public',
219
+ value: 'Public',
220
+ },
221
+ ],
222
+ },
223
+ },
224
+ },
225
+ },
226
+ metadata: {
227
+ allowSharing: false,
228
+ },
229
+ },
230
+ {
231
+ name: 'oauthServicePrincipal',
232
+ uiDefinition: {
233
+ displayName: 'Service principal',
234
+ description: 'Use your own Microsoft Entra ID app for service principal authentication.',
235
+ },
236
+ parameters: {
237
+ token: {
238
+ type: 'oauthSetting',
239
+ oAuthSettings: {
240
+ identityProvider: 'aad',
241
+ scopes: [],
242
+ redirectMode: 'GlobalPerConnector',
243
+ redirectUrl: 'https://global.consent.azure-apim.net/redirect/kusto',
244
+ properties: {
245
+ IsFirstParty: 'False',
246
+ AzureActiveDirectoryResourceId: 'https://kusto.kusto.windows.net',
247
+ IsOnbehalfofLoginSupported: true,
248
+ },
249
+ customParameters: {
250
+ grantType: {
251
+ value: 'client_credentials',
252
+ },
253
+ ResourceUri: {
254
+ value: 'https://kusto.kusto.windows.net',
255
+ },
256
+ loginUri: {
257
+ value: 'https://login.windows.net',
258
+ },
259
+ LoginUriAAD: {
260
+ value: 'https://login.windows.net',
261
+ },
262
+ },
263
+ },
264
+ uiDefinition: {
265
+ displayName: 'Login your Credentials',
266
+ description: 'Login your Credentials',
267
+ tooltip: 'Provide your Credentials',
268
+ constraints: {
269
+ required: 'false',
270
+ hidden: 'true',
271
+ },
272
+ },
273
+ },
274
+ 'token:clientId': {
275
+ type: 'string',
276
+ uiDefinition: {
277
+ displayName: 'Client ID',
278
+ schema: {
279
+ type: 'string',
280
+ description: 'Client (or Application) ID of your Microsoft Entra ID application.',
281
+ },
282
+ constraints: {
283
+ required: 'true',
284
+ hidden: 'false',
285
+ },
286
+ },
287
+ },
288
+ 'token:clientSecret': {
289
+ type: 'securestring',
290
+ uiDefinition: {
291
+ displayName: 'Client Secret',
292
+ schema: {
293
+ type: 'securestring',
294
+ description: 'Client secret of your Microsoft Entra ID application.',
295
+ },
296
+ constraints: {
297
+ required: 'true',
298
+ hidden: 'false',
299
+ },
300
+ },
301
+ },
302
+ 'token:TenantId': {
303
+ type: 'string',
304
+ uiDefinition: {
305
+ schema: {
306
+ description: 'The tenant ID of for the Microsoft Entra ID application',
307
+ type: 'string',
308
+ },
309
+ displayName: 'Tenant',
310
+ constraints: {
311
+ required: 'true',
312
+ hidden: 'false',
313
+ },
314
+ },
315
+ },
316
+ 'token:resourceUri': {
317
+ type: 'string',
318
+ uiDefinition: {
319
+ displayName: 'ResourceUri',
320
+ description: 'The resource you are requesting authorization to use.',
321
+ constraints: {
322
+ required: 'false',
323
+ hidden: 'true',
324
+ },
325
+ },
326
+ },
327
+ 'token:grantType': {
328
+ type: 'string',
329
+ allowedValues: [
330
+ {
331
+ value: 'client_credentials',
332
+ },
333
+ ],
334
+ uiDefinition: {
335
+ displayName: 'Grant Type',
336
+ description: 'Grant type',
337
+ constraints: {
338
+ required: 'false',
339
+ hidden: 'true',
340
+ allowedValues: [
341
+ {
342
+ text: 'Client Credentials',
343
+ value: 'client_credentials',
344
+ },
345
+ ],
346
+ },
347
+ },
348
+ },
349
+ },
350
+ metadata: {
351
+ allowSharing: false,
352
+ },
353
+ },
354
+ ],
355
+ },
356
+ connectionParameters: {
357
+ token: {
358
+ type: 'oauthSetting',
359
+ oAuthSettings: {
360
+ identityProvider: 'aadcertificate',
361
+ clientId: '7ab7862c-4c57-491e-8a45-d52a7e023983',
362
+ scopes: [],
363
+ redirectMode: 'GlobalPerConnector',
364
+ redirectUrl: 'https://global.consent.azure-apim.net/redirect/kusto',
365
+ properties: {
366
+ IsFirstParty: 'True',
367
+ AzureActiveDirectoryResourceId: 'https://kusto.kusto.windows.net',
368
+ IsOnbehalfofLoginSupported: true,
369
+ },
370
+ customParameters: {
371
+ tenantId: {},
372
+ ResourceUri: {
373
+ value: 'https://kusto.kusto.windows.net',
374
+ },
375
+ loginUriAAD: {
376
+ value: 'https://login.windows.net',
377
+ },
378
+ loginUri: {
379
+ value: 'https://login.windows.net',
380
+ },
381
+ },
382
+ },
383
+ },
384
+ 'token:clientId': {
385
+ type: 'string',
386
+ uiDefinition: {
387
+ displayName: 'Client ID',
388
+ description: 'Client (or Application) ID of the Microsoft Entra ID application.',
389
+ constraints: {
390
+ required: 'false',
391
+ hidden: 'true',
392
+ },
393
+ },
394
+ },
395
+ 'token:clientSecret': {
396
+ type: 'securestring',
397
+ uiDefinition: {
398
+ displayName: 'Client Secret',
399
+ description: 'Client secret of the Microsoft Entra ID application.',
400
+ constraints: {
401
+ required: 'false',
402
+ hidden: 'true',
403
+ },
404
+ },
405
+ },
406
+ 'token:TenantId': {
407
+ type: 'string',
408
+ metadata: {
409
+ sourceType: 'AzureActiveDirectoryTenant',
410
+ },
411
+ uiDefinition: {
412
+ displayName: 'Tenant',
413
+ description: 'The tenant ID of for the Microsoft Entra ID application',
414
+ constraints: {
415
+ required: 'false',
416
+ hidden: 'true',
417
+ },
418
+ },
419
+ },
420
+ 'token:resourceUri': {
421
+ type: 'string',
422
+ uiDefinition: {
423
+ displayName: 'ResourceUri',
424
+ description: 'The resource you are requesting authorization to use, for instance https://kusto.kustomfa.windows.net.',
425
+ constraints: {
426
+ required: 'false',
427
+ hidden: 'true',
428
+ },
429
+ },
430
+ },
431
+ 'token:grantType': {
432
+ type: 'string',
433
+ allowedValues: [
434
+ {
435
+ value: 'code',
436
+ },
437
+ {
438
+ value: 'client_credentials',
439
+ },
440
+ ],
441
+ uiDefinition: {
442
+ displayName: 'Grant Type',
443
+ description: 'Grant type',
444
+ constraints: {
445
+ required: 'false',
446
+ hidden: 'true',
447
+ allowedValues: [
448
+ {
449
+ text: 'Code',
450
+ value: 'code',
451
+ },
452
+ {
453
+ text: 'Client Credentials',
454
+ value: 'client_credentials',
455
+ },
456
+ ],
457
+ },
458
+ },
459
+ },
460
+ privacySetting: {
461
+ type: 'string',
462
+ allowedValues: [
463
+ {
464
+ value: 'None',
465
+ },
466
+ {
467
+ value: 'Private',
468
+ },
469
+ {
470
+ value: 'Organizational',
471
+ },
472
+ {
473
+ value: 'Public',
474
+ },
475
+ ],
476
+ uiDefinition: {
477
+ displayName: 'Privacy Setting',
478
+ description: 'Privacy Setting',
479
+ tooltip: 'Privacy Setting',
480
+ constraints: {
481
+ tabIndex: 1,
482
+ required: 'false',
483
+ hidden: 'true',
484
+ capability: ['cloud', 'gateway'],
485
+ allowedValues: [
486
+ {
487
+ name: 'None',
488
+ value: 'None',
489
+ },
490
+ {
491
+ name: 'Private',
492
+ value: 'Private',
493
+ },
494
+ {
495
+ name: 'Organizational',
496
+ value: 'Organizational',
497
+ },
498
+ {
499
+ name: 'Public',
500
+ value: 'Public',
501
+ },
502
+ ],
503
+ },
504
+ },
505
+ },
506
+ },
507
+ swagger: {
508
+ swagger: '2.0',
509
+ info: {
510
+ version: '1.0.0',
511
+ title: 'Azure Data Explorer',
512
+ description: 'Azure Data Explorer a.k.a Kusto is a log analytics cloud platform optimized for ad-hoc big data queries. Read more about it here: http://aka.ms/kdocs',
513
+ 'x-ms-api-annotation': {
514
+ status: 'Production',
515
+ },
516
+ contact: {
517
+ name: 'Microsoft',
518
+ },
519
+ },
520
+ host: '4ef52cc0-31a9-e40c-9c37-8d3fd467910f.17.common.firstrelease.azure-apihub.net',
521
+ basePath: '/apim/kusto',
522
+ schemes: ['https'],
523
+ produces: ['application/json'],
524
+ paths: {
525
+ '/{connectionId}/ListKustoResults/false': {
526
+ post: {
527
+ summary: 'Run KQL query',
528
+ description: 'Runs the KQL query and returns the result as a set of rows which can be iterated over in the following connectors e.g TableName | take 10.',
529
+ operationId: 'listKustoResultsPost',
530
+ 'x-ms-visibility': 'important',
531
+ parameters: [
532
+ {
533
+ name: 'connectionId',
534
+ in: 'path',
535
+ required: true,
536
+ type: 'string',
537
+ 'x-ms-visibility': 'internal',
538
+ },
539
+ {
540
+ in: 'body',
541
+ name: 'body',
542
+ required: true,
543
+ schema: {
544
+ $ref: '#/definitions/QueryAndListSchema',
545
+ },
546
+ },
547
+ ],
548
+ responses: {
549
+ '200': {
550
+ description: 'OK',
551
+ schema: {
552
+ $ref: '#/definitions/Table',
553
+ },
554
+ },
555
+ '202': {
556
+ description: 'Accepted',
557
+ schema: {
558
+ type: 'string',
559
+ },
560
+ headers: {
561
+ location: {
562
+ 'x-ms-summary': 'Location',
563
+ type: 'string',
564
+ },
565
+ 'retry-after': {
566
+ 'x-ms-summary': 'Retry After',
567
+ type: 'string',
568
+ },
569
+ },
570
+ },
571
+ default: {
572
+ description: 'Operation Failed',
573
+ },
574
+ },
575
+ externalDocs: {
576
+ url: 'REDACTED',
577
+ },
578
+ },
579
+ },
580
+ '/{connectionId}/ListKustoShowCommandResults': {
581
+ post: {
582
+ summary: 'Run show control command',
583
+ description: 'Runs the show control command and returns the result as a set of rows which can be iterated over in the following connectors e.g .show table TableName policy caching.',
584
+ operationId: 'listKustoShowCommandResultsPost',
585
+ parameters: [
586
+ {
587
+ name: 'connectionId',
588
+ in: 'path',
589
+ required: true,
590
+ type: 'string',
591
+ 'x-ms-visibility': 'internal',
592
+ },
593
+ {
594
+ in: 'body',
595
+ name: 'body',
596
+ required: true,
597
+ schema: {
598
+ $ref: '#/definitions/ControlCommandAndListSchema',
599
+ },
600
+ },
601
+ ],
602
+ responses: {
603
+ '200': {
604
+ description: 'OK',
605
+ schema: {
606
+ $ref: '#/definitions/Table',
607
+ },
608
+ },
609
+ '202': {
610
+ description: 'Accepted',
611
+ schema: {
612
+ type: 'string',
613
+ },
614
+ headers: {
615
+ location: {
616
+ 'x-ms-summary': 'Location',
617
+ type: 'string',
618
+ },
619
+ 'retry-after': {
620
+ 'x-ms-summary': 'Retry After',
621
+ type: 'string',
622
+ },
623
+ },
624
+ },
625
+ default: {
626
+ description: 'Operation Failed',
627
+ },
628
+ },
629
+ externalDocs: {
630
+ url: 'https://docs.microsoft.com/connectors/kusto/#run-show-control-command',
631
+ },
632
+ },
633
+ },
634
+ '/{connectionId}/ListKustoResultsSchema': {
635
+ post: {
636
+ summary: 'Query schema',
637
+ description: 'Gets the schema for a query',
638
+ operationId: 'listKustoResultsSchemaPost',
639
+ 'x-ms-visibility': 'internal',
640
+ parameters: [
641
+ {
642
+ name: 'connectionId',
643
+ in: 'path',
644
+ required: true,
645
+ type: 'string',
646
+ 'x-ms-visibility': 'internal',
647
+ },
648
+ {
649
+ in: 'body',
650
+ name: 'body',
651
+ required: true,
652
+ schema: {
653
+ $ref: '#/definitions/QueryAndListSchema',
654
+ },
655
+ },
656
+ ],
657
+ responses: {
658
+ '200': {
659
+ description: 'OK',
660
+ schema: {
661
+ $ref: '#/definitions/Object',
662
+ },
663
+ },
664
+ default: {
665
+ description: 'Operation Failed',
666
+ },
667
+ },
668
+ externalDocs: {
669
+ url: 'https://docs.microsoft.com/connectors/kusto/#query-schema',
670
+ },
671
+ },
672
+ },
673
+ '/{connectionId}/RunKustoAndVisualizeResults/false': {
674
+ post: {
675
+ summary: 'Run KQL query and render a chart',
676
+ description: 'Runs the KQL query and returns result as a chart of your choice e.g TableName | where Timestamp \u003E ago(1h) | project timestamp, value.',
677
+ operationId: 'runKustoQueryAndVisualizeResultsPost',
678
+ 'x-ms-visibility': 'important',
679
+ parameters: [
680
+ {
681
+ name: 'connectionId',
682
+ in: 'path',
683
+ required: true,
684
+ type: 'string',
685
+ 'x-ms-visibility': 'internal',
686
+ },
687
+ {
688
+ in: 'body',
689
+ name: 'body',
690
+ required: true,
691
+ schema: {
692
+ $ref: '#/definitions/QueryAndVisualizeSchema',
693
+ },
694
+ },
695
+ ],
696
+ responses: {
697
+ '200': {
698
+ description: 'OK',
699
+ schema: {
700
+ $ref: '#/definitions/VisualizeResults',
701
+ },
702
+ },
703
+ '202': {
704
+ description: 'Accepted',
705
+ schema: {
706
+ type: 'string',
707
+ },
708
+ headers: {
709
+ location: {
710
+ 'x-ms-summary': 'Location',
711
+ type: 'string',
712
+ },
713
+ 'retry-after': {
714
+ 'x-ms-summary': 'Retry After',
715
+ type: 'string',
716
+ },
717
+ },
718
+ },
719
+ default: {
720
+ description: 'Operation Failed',
721
+ },
722
+ },
723
+ externalDocs: {
724
+ url: 'https://docs.microsoft.com/connectors/kusto/#run-kql-query-and-render-a-chart',
725
+ },
726
+ },
727
+ },
728
+ '/{connectionId}/RunKustoAndVisualizeResults/true': {
729
+ post: {
730
+ summary: 'Run control command and render a chart',
731
+ description: 'Runs the control command and returns the result as a chart of your choice e.g .clear table TableName data.',
732
+ operationId: 'runKustoCommandAndVisualizeResultsPost',
733
+ 'x-ms-visibility': 'important',
734
+ parameters: [
735
+ {
736
+ name: 'connectionId',
737
+ in: 'path',
738
+ required: true,
739
+ type: 'string',
740
+ 'x-ms-visibility': 'internal',
741
+ },
742
+ {
743
+ in: 'body',
744
+ name: 'body',
745
+ required: true,
746
+ schema: {
747
+ $ref: '#/definitions/CommandAndVisualizeSchema',
748
+ },
749
+ },
750
+ ],
751
+ responses: {
752
+ '200': {
753
+ description: 'OK',
754
+ schema: {
755
+ $ref: '#/definitions/VisualizeResults',
756
+ },
757
+ },
758
+ '202': {
759
+ description: 'Accepted',
760
+ schema: {
761
+ type: 'string',
762
+ },
763
+ headers: {
764
+ location: {
765
+ 'x-ms-summary': 'Location',
766
+ type: 'string',
767
+ },
768
+ 'retry-after': {
769
+ 'x-ms-summary': 'Retry After',
770
+ type: 'string',
771
+ },
772
+ },
773
+ },
774
+ default: {
775
+ description: 'Operation Failed',
776
+ },
777
+ },
778
+ externalDocs: {
779
+ url: 'https://docs.microsoft.com/connectors/kusto/#run-control-command-and-render-a-chart',
780
+ },
781
+ },
782
+ },
783
+ '/{connectionId}/RunAsyncControlCommandAndWait': {
784
+ post: {
785
+ summary: 'Run async control command',
786
+ description: 'Runs control command in async mode and returns its ID, state and status on completion. Command can run for maximum 1 hour. The \u0027async\u0027 keyword is mandatory e.g .set-or-append async TargetTable \u003C| SourceTable.',
787
+ operationId: 'runAsyncControlCommandAndWait',
788
+ 'x-ms-visibility': 'important',
789
+ parameters: [
790
+ {
791
+ name: 'connectionId',
792
+ in: 'path',
793
+ required: true,
794
+ type: 'string',
795
+ 'x-ms-visibility': 'internal',
796
+ },
797
+ {
798
+ in: 'body',
799
+ name: 'body',
800
+ required: true,
801
+ schema: {
802
+ $ref: '#/definitions/ControlCommandAndListSchema',
803
+ },
804
+ },
805
+ ],
806
+ responses: {
807
+ '200': {
808
+ description: 'OK',
809
+ schema: {
810
+ $ref: '#/definitions/AsyncCommandResult',
811
+ },
812
+ },
813
+ '202': {
814
+ description: 'Accepted',
815
+ schema: {
816
+ type: 'string',
817
+ },
818
+ headers: {
819
+ location: {
820
+ 'x-ms-summary': 'Location',
821
+ type: 'string',
822
+ },
823
+ 'retry-after': {
824
+ 'x-ms-summary': 'Retry After',
825
+ type: 'string',
826
+ },
827
+ },
828
+ },
829
+ default: {
830
+ description: 'Operation Failed',
831
+ },
832
+ },
833
+ externalDocs: {
834
+ url: 'https://docs.microsoft.com/connectors/kusto/#run-async-control-command',
835
+ },
836
+ },
837
+ },
838
+ '/{connectionId}/RetrieveKustoAsyncResult': {
839
+ get: {
840
+ summary: 'Retrieve Kusto async result',
841
+ description: 'Retrieve status and result of Kusto async operation',
842
+ operationId: 'retrieveKustoAsyncResult',
843
+ 'x-ms-visibility': 'internal',
844
+ parameters: [
845
+ {
846
+ name: 'connectionId',
847
+ in: 'path',
848
+ required: true,
849
+ type: 'string',
850
+ 'x-ms-visibility': 'internal',
851
+ },
852
+ {
853
+ name: 'operationId',
854
+ 'x-ms-summary': 'Operation ID',
855
+ description: 'Unique identifier of the async operation',
856
+ in: 'query',
857
+ type: 'string',
858
+ required: true,
859
+ },
860
+ {
861
+ name: 'Timestamp',
862
+ 'x-ms-summary': 'Query beginning timestamp',
863
+ description: 'The timestamp in which the query begin',
864
+ in: 'query',
865
+ type: 'string',
866
+ required: false,
867
+ },
868
+ {
869
+ name: 'clusterUrl',
870
+ 'x-ms-summary': 'Cluster URL',
871
+ description: 'The cluster\u0027s URL',
872
+ in: 'query',
873
+ type: 'string',
874
+ required: false,
875
+ },
876
+ {
877
+ name: 'storageAccountName',
878
+ 'x-ms-summary': 'storage account Name',
879
+ description: 'The storage account name storing the request result',
880
+ in: 'query',
881
+ type: 'string',
882
+ required: false,
883
+ },
884
+ ],
885
+ responses: {
886
+ '200': {
887
+ description: 'OK',
888
+ schema: {
889
+ $ref: '#/definitions/Object',
890
+ },
891
+ },
892
+ '202': {
893
+ description: 'Accepted',
894
+ schema: {
895
+ type: 'string',
896
+ },
897
+ headers: {
898
+ location: {
899
+ 'x-ms-summary': 'Location',
900
+ type: 'string',
901
+ },
902
+ 'retry-after': {
903
+ 'x-ms-summary': 'Retry After',
904
+ type: 'string',
905
+ },
906
+ },
907
+ },
908
+ default: {
909
+ description: 'Operation Failed',
910
+ },
911
+ },
912
+ externalDocs: {
913
+ url: 'https://docs.microsoft.com/connectors/kusto/#retrieve-kusto-async-result',
914
+ },
915
+ },
916
+ },
917
+ '/{connectionId}/RetrieveKustoAsyncControlCommandResult': {
918
+ get: {
919
+ summary: 'Retrieve Kusto async control command result',
920
+ description: 'Retrieve status and result of Kusto async operation',
921
+ operationId: 'retrieveKustoAsyncControlCommandResult',
922
+ 'x-ms-visibility': 'internal',
923
+ parameters: [
924
+ {
925
+ name: 'connectionId',
926
+ in: 'path',
927
+ required: true,
928
+ type: 'string',
929
+ 'x-ms-visibility': 'internal',
930
+ },
931
+ {
932
+ name: 'operationId',
933
+ 'x-ms-summary': 'Operation ID',
934
+ description: 'Unique identifier of the async operation',
935
+ in: 'query',
936
+ type: 'string',
937
+ required: true,
938
+ },
939
+ {
940
+ name: 'Timestamp',
941
+ 'x-ms-summary': 'Query beginning timestamp',
942
+ description: 'The timestamp in which the query begin',
943
+ in: 'query',
944
+ type: 'string',
945
+ required: false,
946
+ },
947
+ {
948
+ name: 'clusterUrl',
949
+ 'x-ms-summary': 'Cluster URL',
950
+ description: 'The cluster\u0027s URL',
951
+ in: 'query',
952
+ type: 'string',
953
+ required: true,
954
+ },
955
+ {
956
+ name: 'databaseName',
957
+ 'x-ms-summary': 'Database Name',
958
+ description: 'The database name',
959
+ in: 'query',
960
+ type: 'string',
961
+ required: true,
962
+ },
963
+ ],
964
+ responses: {
965
+ '200': {
966
+ description: 'OK',
967
+ schema: {
968
+ $ref: '#/definitions/Object',
969
+ },
970
+ },
971
+ '202': {
972
+ description: 'Accepted',
973
+ schema: {
974
+ type: 'string',
975
+ },
976
+ headers: {
977
+ location: {
978
+ 'x-ms-summary': 'Location',
979
+ type: 'string',
980
+ },
981
+ 'retry-after': {
982
+ 'x-ms-summary': 'Retry After',
983
+ type: 'string',
984
+ },
985
+ },
986
+ },
987
+ default: {
988
+ description: 'Operation Failed',
989
+ },
990
+ },
991
+ externalDocs: {
992
+ url: 'https://docs.microsoft.com/connectors/kusto/#retrieve-kusto-async-control-command-result',
993
+ },
994
+ },
995
+ },
996
+ '/{connectionId}/mcp/KustoQueryManagement': {
997
+ post: {
998
+ tags: ['agentic', 'Action'],
999
+ summary: 'Kusto Query MCP Server',
1000
+ description: 'This MCP server runs Kusto queries and manages the results.',
1001
+ operationId: 'mcp_KustoQueryManagement',
1002
+ consumes: [],
1003
+ produces: ['application/json', 'text/json'],
1004
+ parameters: [
1005
+ {
1006
+ name: 'connectionId',
1007
+ in: 'path',
1008
+ required: true,
1009
+ type: 'string',
1010
+ 'x-ms-visibility': 'internal',
1011
+ },
1012
+ {
1013
+ in: 'body',
1014
+ name: 'queryRequest',
1015
+ schema: {
1016
+ $ref: '#/definitions/MCPQueryRequest',
1017
+ },
1018
+ },
1019
+ {
1020
+ in: 'query',
1021
+ name: 'sessionId',
1022
+ type: 'string',
1023
+ required: false,
1024
+ },
1025
+ ],
1026
+ responses: {
1027
+ '200': {
1028
+ description: 'MCP Server response',
1029
+ schema: {
1030
+ $ref: '#/definitions/MCPQueryResponse',
1031
+ },
1032
+ },
1033
+ default: {
1034
+ description: 'Operation failed.',
1035
+ },
1036
+ },
1037
+ deprecated: false,
1038
+ 'x-ms-visibility': 'important',
1039
+ 'x-ms-mcs-visibility': 'featured',
1040
+ externalDocs: {
1041
+ url: 'https://docs.microsoft.com/connectors/kusto/#kusto-query-mcp-server',
1042
+ },
1043
+ },
1044
+ },
1045
+ },
1046
+ definitions: {
1047
+ Object: {
1048
+ type: 'object',
1049
+ properties: {},
1050
+ },
1051
+ Table: {
1052
+ type: 'object',
1053
+ properties: {
1054
+ value: {
1055
+ type: 'array',
1056
+ items: {
1057
+ $ref: '#/definitions/Row',
1058
+ },
1059
+ },
1060
+ },
1061
+ },
1062
+ Row: {
1063
+ type: 'object',
1064
+ properties: {},
1065
+ 'x-ms-dynamic-schema': {
1066
+ operationId: 'listKustoResultsSchemaPost',
1067
+ parameters: {
1068
+ cluster: {
1069
+ parameter: 'cluster',
1070
+ },
1071
+ db: {
1072
+ parameter: 'db',
1073
+ },
1074
+ csl: {
1075
+ parameter: 'csl',
1076
+ },
1077
+ },
1078
+ 'value-path': 'Schema/Items',
1079
+ },
1080
+ 'x-ms-dynamic-properties': {
1081
+ operationId: 'listKustoResultsSchemaPost',
1082
+ parameters: {
1083
+ 'body/cluster': {
1084
+ parameterReference: 'body/cluster',
1085
+ },
1086
+ 'body/db': {
1087
+ parameterReference: 'body/db',
1088
+ },
1089
+ 'body/csl': {
1090
+ parameterReference: 'body/csl',
1091
+ },
1092
+ },
1093
+ itemValuePath: 'Schema/Items',
1094
+ },
1095
+ },
1096
+ QueryAndVisualizeSchema: {
1097
+ type: 'object',
1098
+ required: ['cluster', 'db', 'csl', 'chartType'],
1099
+ properties: {
1100
+ cluster: {
1101
+ $ref: '#/definitions/ClusterName',
1102
+ },
1103
+ db: {
1104
+ $ref: '#/definitions/DatabaseName',
1105
+ },
1106
+ csl: {
1107
+ $ref: '#/definitions/Query',
1108
+ },
1109
+ chartType: {
1110
+ $ref: '#/definitions/ChartType',
1111
+ },
1112
+ },
1113
+ },
1114
+ CommandAndVisualizeSchema: {
1115
+ type: 'object',
1116
+ required: ['cluster', 'db', 'csl', 'chartType'],
1117
+ properties: {
1118
+ cluster: {
1119
+ $ref: '#/definitions/ClusterName',
1120
+ },
1121
+ db: {
1122
+ $ref: '#/definitions/DatabaseName',
1123
+ },
1124
+ csl: {
1125
+ 'x-ms-summary': 'Control Command',
1126
+ description: 'Specify the control command you would like to run',
1127
+ type: 'string',
1128
+ 'x-ms-test-value': '.show version',
1129
+ },
1130
+ chartType: {
1131
+ $ref: '#/definitions/ChartType',
1132
+ },
1133
+ },
1134
+ },
1135
+ QueryAndListSchema: {
1136
+ type: 'object',
1137
+ required: ['cluster', 'db', 'csl'],
1138
+ properties: {
1139
+ cluster: {
1140
+ $ref: '#/definitions/ClusterName',
1141
+ },
1142
+ db: {
1143
+ $ref: '#/definitions/DatabaseName',
1144
+ },
1145
+ csl: {
1146
+ $ref: '#/definitions/Query',
1147
+ },
1148
+ },
1149
+ },
1150
+ ControlCommandAndListSchema: {
1151
+ type: 'object',
1152
+ required: ['cluster', 'db', 'csl'],
1153
+ properties: {
1154
+ cluster: {
1155
+ $ref: '#/definitions/ClusterName',
1156
+ },
1157
+ db: {
1158
+ $ref: '#/definitions/DatabaseName',
1159
+ },
1160
+ csl: {
1161
+ 'x-ms-summary': 'Control Command',
1162
+ description: 'Specify the show control command you would like to run',
1163
+ type: 'string',
1164
+ 'x-ms-test-value': '.show version',
1165
+ },
1166
+ },
1167
+ },
1168
+ ClusterName: {
1169
+ 'x-ms-summary': 'Cluster URL',
1170
+ description: 'Specify the cluster url e.g. https://\u003CyourCluster\u003E.\u003CyourLocation\u003E.kusto.windows.net',
1171
+ type: 'string',
1172
+ 'x-ms-test-value': 'Process',
1173
+ },
1174
+ DatabaseName: {
1175
+ 'x-ms-summary': 'Database Name',
1176
+ description: 'Specify the database name',
1177
+ type: 'string',
1178
+ 'x-ms-test-value': 'process',
1179
+ },
1180
+ Query: {
1181
+ 'x-ms-summary': 'Query',
1182
+ description: 'Specify the query you would like to run',
1183
+ type: 'string',
1184
+ 'x-ms-test-value': 'print 1',
1185
+ },
1186
+ ChartType: {
1187
+ 'x-ms-summary': 'Chart Type',
1188
+ type: 'string',
1189
+ description: 'Specify the resulting chart type',
1190
+ enum: ['Html Table', 'Pie Chart', 'Time Chart', 'Bar Chart'],
1191
+ 'x-ms-test-value': 'Html Table',
1192
+ },
1193
+ VisualizeResults: {
1194
+ type: 'object',
1195
+ properties: {
1196
+ body: {
1197
+ type: 'string',
1198
+ description: 'The body of the result in base64 encoding.',
1199
+ format: 'byte',
1200
+ 'x-ms-summary': 'Body',
1201
+ },
1202
+ bodyHtml: {
1203
+ type: 'string',
1204
+ description: 'The body of the result in html encoding.',
1205
+ format: 'HTML',
1206
+ 'x-ms-summary': 'BodyHtml',
1207
+ },
1208
+ attachmentContent: {
1209
+ type: 'string',
1210
+ description: 'The content of the attachment.',
1211
+ format: 'byte',
1212
+ 'x-ms-summary': 'Attachment Content',
1213
+ },
1214
+ attachmentName: {
1215
+ type: 'string',
1216
+ description: 'The name of the attachment file.',
1217
+ 'x-ms-summary': 'Attachment Name',
1218
+ },
1219
+ kustoDeepLink: {
1220
+ type: 'string',
1221
+ description: 'Links to run the query in Kusto tools, for instance in KustoExplorer.',
1222
+ 'x-ms-summary': 'Links to Kusto Explorer',
1223
+ },
1224
+ },
1225
+ },
1226
+ AsyncCommandResult: {
1227
+ type: 'object',
1228
+ properties: {
1229
+ state: {
1230
+ type: 'string',
1231
+ description: 'The state of the command.',
1232
+ 'x-ms-summary': 'State',
1233
+ },
1234
+ status: {
1235
+ type: 'string',
1236
+ description: 'The status of the command.',
1237
+ 'x-ms-summary': 'Status',
1238
+ },
1239
+ operationId: {
1240
+ type: 'string',
1241
+ description: 'The operation ID of the control command',
1242
+ 'x-ms-summary': 'Operation ID',
1243
+ },
1244
+ },
1245
+ },
1246
+ MCPQueryRequest: {
1247
+ type: 'object',
1248
+ properties: {
1249
+ jsonrpc: {
1250
+ type: 'string',
1251
+ },
1252
+ id: {
1253
+ type: 'string',
1254
+ },
1255
+ method: {
1256
+ type: 'string',
1257
+ },
1258
+ params: {
1259
+ type: 'object',
1260
+ },
1261
+ result: {
1262
+ type: 'object',
1263
+ },
1264
+ error: {
1265
+ type: 'object',
1266
+ },
1267
+ callbackEndpoint: {
1268
+ type: 'string',
1269
+ 'x-ms-visibility': 'internal',
1270
+ },
1271
+ },
1272
+ },
1273
+ MCPQueryResponse: {
1274
+ type: 'object',
1275
+ properties: {
1276
+ jsonrpc: {
1277
+ type: 'string',
1278
+ },
1279
+ id: {
1280
+ type: 'string',
1281
+ },
1282
+ method: {
1283
+ type: 'string',
1284
+ },
1285
+ params: {
1286
+ type: 'object',
1287
+ },
1288
+ result: {
1289
+ type: 'object',
1290
+ },
1291
+ error: {
1292
+ type: 'object',
1293
+ },
1294
+ },
1295
+ },
1296
+ },
1297
+ externalDocs: {
1298
+ url: 'https://docs.microsoft.com/connectors/kusto',
1299
+ },
1300
+ },
1301
+ wadlUrl: 'https://pafeblobprodmw.blob.core.windows.net/apiwadls-0d015810-1568-43af-ad2c-f13a55e74ecd/shared%3A2Dkusto?skoid=1b4c3c9e-b403-4e0f-9933-e50756645683\u0026sktid=975f013f-7f24-47e8-a7d3-abc4752bf346\u0026skt=2025-07-02T21%3A00%3A00Z\u0026ske=2025-07-09T21%3A00%3A00Z\u0026sks=b\u0026skv=2025-01-05\u0026sv=2025-01-05\u0026spr=https\u0026st=2025-07-02T21%3A04%3A11Z\u0026se=2025-07-03T09%3A05%3A11Z\u0026sr=c\u0026sp=rl\u0026scid=b8173500-464d-4178-bc94-234f5b56f411\u0026sig=8KTRfykjMkDkljP%2FLrLPuXvOa28APiJ3LUsuJiQA9qs%3D',
1302
+ runtimeUrls: [
1303
+ 'https://4ef52cc0-31a9-e40c-9c37-8d3fd467910f.17.common.firstrelease.azure-apihub.net/apim/kusto',
1304
+ ],
1305
+ primaryRuntimeUrl: 'https://4ef52cc0-31a9-e40c-9c37-8d3fd467910f.17.common.firstrelease.azure-apihub.net/apim/kusto',
1306
+ doNotUseApiHubNetRuntimeUrl: 'https://4ef52cc0-31a9-e40c-9c37-8d3fd467910f.17.common.firstrelease.azure-apihub.net/apim/kusto',
1307
+ metadata: {
1308
+ source: 'marketplace',
1309
+ brandColor: '#20427f',
1310
+ useNewApimVersion: 'true',
1311
+ version: {
1312
+ previous: 'v1.0.1757\\1.0.1757.4253',
1313
+ current: 'v1.0.1759\\1.0.1759.4267',
1314
+ },
1315
+ },
1316
+ capabilities: ['actions'],
1317
+ interfaces: {},
1318
+ description: 'Azure Data Explorer a.k.a Kusto is a log analytics cloud platform optimized for ad-hoc big data queries. Read more about it here: http://aka.ms/kdocs',
1319
+ createdTime: '2017-11-16T18:46:29.4086445Z',
1320
+ changedTime: '2025-06-30T17:09:36.2489031Z',
1321
+ releaseTag: 'Production',
1322
+ tier: 'Premium',
1323
+ publisher: 'Microsoft',
1324
+ scopes: {
1325
+ will: [],
1326
+ wont: [],
1327
+ },
1328
+ rateLimit: 0,
1329
+ apiVersion: 'None',
1330
+ },
1331
+ };
1332
+ export default connector;
1333
+ //# sourceMappingURL=kusto.js.map