@kyuda/n8n-nodes-databricks 2.0.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.
- package/LICENSE.md +19 -0
- package/README.md +180 -0
- package/dist/credentials/Databricks.credentials.d.ts +10 -0
- package/dist/credentials/Databricks.credentials.js +88 -0
- package/dist/credentials/Databricks.credentials.js.map +1 -0
- package/dist/credentials/databricks.svg +19 -0
- package/dist/nodes/Databricks/Databricks.node.d.ts +18 -0
- package/dist/nodes/Databricks/Databricks.node.js +404 -0
- package/dist/nodes/Databricks/Databricks.node.js.map +1 -0
- package/dist/nodes/Databricks/databricks.dark.svg +19 -0
- package/dist/nodes/Databricks/databricks.svg +19 -0
- package/dist/nodes/Databricks/helpers.d.ts +27 -0
- package/dist/nodes/Databricks/helpers.js +169 -0
- package/dist/nodes/Databricks/helpers.js.map +1 -0
- package/dist/nodes/Databricks/resources/clusters/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/clusters/handler.js +38 -0
- package/dist/nodes/Databricks/resources/clusters/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/clusters/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/clusters/operations.js +24 -0
- package/dist/nodes/Databricks/resources/clusters/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/clusters/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/clusters/parameters.js +49 -0
- package/dist/nodes/Databricks/resources/clusters/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/databricksSql/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/databricksSql/handler.js +59 -0
- package/dist/nodes/Databricks/resources/databricksSql/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/databricksSql/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/databricksSql/operations.js +24 -0
- package/dist/nodes/Databricks/resources/databricksSql/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/databricksSql/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/databricksSql/parameters.js +94 -0
- package/dist/nodes/Databricks/resources/databricksSql/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/files/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/files/handler.js +157 -0
- package/dist/nodes/Databricks/resources/files/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/files/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/files/operations.js +71 -0
- package/dist/nodes/Databricks/resources/files/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/files/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/files/parameters.js +124 -0
- package/dist/nodes/Databricks/resources/files/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/genie/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/genie/handler.js +54 -0
- package/dist/nodes/Databricks/resources/genie/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/genie/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/genie/operations.js +96 -0
- package/dist/nodes/Databricks/resources/genie/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/genie/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/genie/parameters.js +96 -0
- package/dist/nodes/Databricks/resources/genie/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/index.d.ts +24 -0
- package/dist/nodes/Databricks/resources/index.js +50 -0
- package/dist/nodes/Databricks/resources/index.js.map +1 -0
- package/dist/nodes/Databricks/resources/jobs/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/jobs/handler.js +90 -0
- package/dist/nodes/Databricks/resources/jobs/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/jobs/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/jobs/operations.js +25 -0
- package/dist/nodes/Databricks/resources/jobs/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/jobs/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/jobs/parameters.js +195 -0
- package/dist/nodes/Databricks/resources/jobs/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/modelServing/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/modelServing/handler.js +75 -0
- package/dist/nodes/Databricks/resources/modelServing/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/modelServing/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/modelServing/operations.js +24 -0
- package/dist/nodes/Databricks/resources/modelServing/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/modelServing/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/modelServing/parameters.js +76 -0
- package/dist/nodes/Databricks/resources/modelServing/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/unityCatalog/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/unityCatalog/handler.js +146 -0
- package/dist/nodes/Databricks/resources/unityCatalog/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/unityCatalog/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/unityCatalog/operations.js +238 -0
- package/dist/nodes/Databricks/resources/unityCatalog/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/unityCatalog/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/unityCatalog/parameters.js +412 -0
- package/dist/nodes/Databricks/resources/unityCatalog/parameters.js.map +1 -0
- package/dist/nodes/Databricks/resources/vectorSearch/handler.d.ts +2 -0
- package/dist/nodes/Databricks/resources/vectorSearch/handler.js +50 -0
- package/dist/nodes/Databricks/resources/vectorSearch/handler.js.map +1 -0
- package/dist/nodes/Databricks/resources/vectorSearch/operations.d.ts +2 -0
- package/dist/nodes/Databricks/resources/vectorSearch/operations.js +48 -0
- package/dist/nodes/Databricks/resources/vectorSearch/operations.js.map +1 -0
- package/dist/nodes/Databricks/resources/vectorSearch/parameters.d.ts +2 -0
- package/dist/nodes/Databricks/resources/vectorSearch/parameters.js +224 -0
- package/dist/nodes/Databricks/resources/vectorSearch/parameters.js.map +1 -0
- package/dist/package.json +70 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './databricksSql/operations';
|
|
2
|
+
export * from './databricksSql/parameters';
|
|
3
|
+
export * from './unityCatalog/operations';
|
|
4
|
+
export * from './unityCatalog/parameters';
|
|
5
|
+
export * from './modelServing/operations';
|
|
6
|
+
export * from './modelServing/parameters';
|
|
7
|
+
export * from './files/operations';
|
|
8
|
+
export * from './files/parameters';
|
|
9
|
+
export * from './vectorSearch/operations';
|
|
10
|
+
export * from './vectorSearch/parameters';
|
|
11
|
+
export * from './genie/operations';
|
|
12
|
+
export * from './genie/parameters';
|
|
13
|
+
export * from './jobs/operations';
|
|
14
|
+
export * from './jobs/parameters';
|
|
15
|
+
export * from './clusters/operations';
|
|
16
|
+
export * from './clusters/parameters';
|
|
17
|
+
export { executeFilesOperation } from './files/handler';
|
|
18
|
+
export { executeGenieOperation } from './genie/handler';
|
|
19
|
+
export { executeSqlOperation } from './databricksSql/handler';
|
|
20
|
+
export { executeModelServingOperation } from './modelServing/handler';
|
|
21
|
+
export { executeUnityCatalogOperation } from './unityCatalog/handler';
|
|
22
|
+
export { executeVectorSearchOperation } from './vectorSearch/handler';
|
|
23
|
+
export { executeJobsOperation } from './jobs/handler';
|
|
24
|
+
export { executeClustersOperation } from './clusters/handler';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.executeClustersOperation = exports.executeJobsOperation = exports.executeVectorSearchOperation = exports.executeUnityCatalogOperation = exports.executeModelServingOperation = exports.executeSqlOperation = exports.executeGenieOperation = exports.executeFilesOperation = void 0;
|
|
18
|
+
__exportStar(require("./databricksSql/operations"), exports);
|
|
19
|
+
__exportStar(require("./databricksSql/parameters"), exports);
|
|
20
|
+
__exportStar(require("./unityCatalog/operations"), exports);
|
|
21
|
+
__exportStar(require("./unityCatalog/parameters"), exports);
|
|
22
|
+
__exportStar(require("./modelServing/operations"), exports);
|
|
23
|
+
__exportStar(require("./modelServing/parameters"), exports);
|
|
24
|
+
__exportStar(require("./files/operations"), exports);
|
|
25
|
+
__exportStar(require("./files/parameters"), exports);
|
|
26
|
+
__exportStar(require("./vectorSearch/operations"), exports);
|
|
27
|
+
__exportStar(require("./vectorSearch/parameters"), exports);
|
|
28
|
+
__exportStar(require("./genie/operations"), exports);
|
|
29
|
+
__exportStar(require("./genie/parameters"), exports);
|
|
30
|
+
__exportStar(require("./jobs/operations"), exports);
|
|
31
|
+
__exportStar(require("./jobs/parameters"), exports);
|
|
32
|
+
__exportStar(require("./clusters/operations"), exports);
|
|
33
|
+
__exportStar(require("./clusters/parameters"), exports);
|
|
34
|
+
var handler_1 = require("./files/handler");
|
|
35
|
+
Object.defineProperty(exports, "executeFilesOperation", { enumerable: true, get: function () { return handler_1.executeFilesOperation; } });
|
|
36
|
+
var handler_2 = require("./genie/handler");
|
|
37
|
+
Object.defineProperty(exports, "executeGenieOperation", { enumerable: true, get: function () { return handler_2.executeGenieOperation; } });
|
|
38
|
+
var handler_3 = require("./databricksSql/handler");
|
|
39
|
+
Object.defineProperty(exports, "executeSqlOperation", { enumerable: true, get: function () { return handler_3.executeSqlOperation; } });
|
|
40
|
+
var handler_4 = require("./modelServing/handler");
|
|
41
|
+
Object.defineProperty(exports, "executeModelServingOperation", { enumerable: true, get: function () { return handler_4.executeModelServingOperation; } });
|
|
42
|
+
var handler_5 = require("./unityCatalog/handler");
|
|
43
|
+
Object.defineProperty(exports, "executeUnityCatalogOperation", { enumerable: true, get: function () { return handler_5.executeUnityCatalogOperation; } });
|
|
44
|
+
var handler_6 = require("./vectorSearch/handler");
|
|
45
|
+
Object.defineProperty(exports, "executeVectorSearchOperation", { enumerable: true, get: function () { return handler_6.executeVectorSearchOperation; } });
|
|
46
|
+
var handler_7 = require("./jobs/handler");
|
|
47
|
+
Object.defineProperty(exports, "executeJobsOperation", { enumerable: true, get: function () { return handler_7.executeJobsOperation; } });
|
|
48
|
+
var handler_8 = require("./clusters/handler");
|
|
49
|
+
Object.defineProperty(exports, "executeClustersOperation", { enumerable: true, get: function () { return handler_8.executeClustersOperation; } });
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Databricks/resources/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,qDAAmC;AACnC,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,qDAAmC;AACnC,qDAAmC;AACnC,oDAAkC;AAClC,oDAAkC;AAClC,wDAAsC;AACtC,wDAAsC;AAEtC,2CAAwD;AAA/C,gHAAA,qBAAqB,OAAA;AAC9B,2CAAwD;AAA/C,gHAAA,qBAAqB,OAAA;AAC9B,mDAA8D;AAArD,8GAAA,mBAAmB,OAAA;AAC5B,kDAAsE;AAA7D,uHAAA,4BAA4B,OAAA;AACrC,kDAAsE;AAA7D,uHAAA,4BAA4B,OAAA;AACrC,kDAAsE;AAA7D,uHAAA,4BAA4B,OAAA;AACrC,0CAAsD;AAA7C,+GAAA,oBAAoB,OAAA;AAC7B,8CAA8D;AAArD,mHAAA,wBAAwB,OAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeJobsOperation = executeJobsOperation;
|
|
4
|
+
const helpers_1 = require("../../helpers");
|
|
5
|
+
async function executeJobsOperation(ctx, operation, i) {
|
|
6
|
+
if (operation === 'runJob') {
|
|
7
|
+
const jobId = ctx.getNodeParameter('jobId', i, '', { extractValue: true });
|
|
8
|
+
const body = { job_id: Number(jobId) };
|
|
9
|
+
const jobParameters = ctx.getNodeParameter('jobParameters', i, '{}');
|
|
10
|
+
if (jobParameters && jobParameters !== '{}') {
|
|
11
|
+
const parsed = typeof jobParameters === 'string' ? JSON.parse(jobParameters) : jobParameters;
|
|
12
|
+
if (Object.keys(parsed).length > 0)
|
|
13
|
+
body.job_parameters = parsed;
|
|
14
|
+
}
|
|
15
|
+
const notebookParams = ctx.getNodeParameter('notebookParams', i, '{}');
|
|
16
|
+
if (notebookParams && notebookParams !== '{}') {
|
|
17
|
+
const parsed = typeof notebookParams === 'string' ? JSON.parse(notebookParams) : notebookParams;
|
|
18
|
+
if (Object.keys(parsed).length > 0)
|
|
19
|
+
body.notebook_params = parsed;
|
|
20
|
+
}
|
|
21
|
+
const pythonParams = ctx.getNodeParameter('pythonParams', i, '[]');
|
|
22
|
+
if (pythonParams && pythonParams !== '[]') {
|
|
23
|
+
const parsed = typeof pythonParams === 'string' ? JSON.parse(pythonParams) : pythonParams;
|
|
24
|
+
if (Array.isArray(parsed) && parsed.length > 0)
|
|
25
|
+
body.python_params = parsed;
|
|
26
|
+
}
|
|
27
|
+
const jarParams = ctx.getNodeParameter('jarParams', i, '[]');
|
|
28
|
+
if (jarParams && jarParams !== '[]') {
|
|
29
|
+
const parsed = typeof jarParams === 'string' ? JSON.parse(jarParams) : jarParams;
|
|
30
|
+
if (Array.isArray(parsed) && parsed.length > 0)
|
|
31
|
+
body.jar_params = parsed;
|
|
32
|
+
}
|
|
33
|
+
const runResponse = await (0, helpers_1.databricksApiRequest)(ctx, 'POST', '/api/2.1/jobs/run-now', body);
|
|
34
|
+
const runId = runResponse.run_id;
|
|
35
|
+
const runDetails = await (0, helpers_1.databricksApiRequest)(ctx, 'GET', '/api/2.1/jobs/runs/get', undefined, { run_id: runId });
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
json: {
|
|
39
|
+
run_id: runId,
|
|
40
|
+
number_in_job: runResponse.number_in_job,
|
|
41
|
+
run_page_url: runDetails.run_page_url || '',
|
|
42
|
+
state: runDetails.state,
|
|
43
|
+
},
|
|
44
|
+
pairedItem: { item: i },
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
if (operation === 'getRunStatus') {
|
|
49
|
+
const runId = ctx.getNodeParameter('runId', i);
|
|
50
|
+
const response = await (0, helpers_1.databricksApiRequest)(ctx, 'GET', '/api/2.1/jobs/runs/get', undefined, { run_id: runId });
|
|
51
|
+
return [{ json: response, pairedItem: { item: i } }];
|
|
52
|
+
}
|
|
53
|
+
if (operation === 'getRunOutput') {
|
|
54
|
+
const runId = ctx.getNodeParameter('runId', i);
|
|
55
|
+
const response = await (0, helpers_1.databricksApiRequest)(ctx, 'GET', '/api/2.1/jobs/runs/get-output', undefined, { run_id: runId });
|
|
56
|
+
return [{ json: response, pairedItem: { item: i } }];
|
|
57
|
+
}
|
|
58
|
+
if (operation === 'createJob') {
|
|
59
|
+
const jobConfig = ctx.getNodeParameter('jobConfig', i);
|
|
60
|
+
const parsed = typeof jobConfig === 'string' ? JSON.parse(jobConfig) : jobConfig;
|
|
61
|
+
const response = await (0, helpers_1.databricksApiRequest)(ctx, 'POST', '/api/2.1/jobs/create', parsed);
|
|
62
|
+
return [{ json: response, pairedItem: { item: i } }];
|
|
63
|
+
}
|
|
64
|
+
if (operation === 'listJobs') {
|
|
65
|
+
const nameFilter = ctx.getNodeParameter('nameFilter', i, '');
|
|
66
|
+
const qs = { limit: 100 };
|
|
67
|
+
if (nameFilter)
|
|
68
|
+
qs.name = nameFilter;
|
|
69
|
+
const response = await (0, helpers_1.databricksApiRequest)(ctx, 'GET', '/api/2.1/jobs/list', undefined, qs);
|
|
70
|
+
return [{ json: response, pairedItem: { item: i } }];
|
|
71
|
+
}
|
|
72
|
+
if (operation === 'cancelRun') {
|
|
73
|
+
const runId = ctx.getNodeParameter('runId', i);
|
|
74
|
+
await (0, helpers_1.databricksApiRequest)(ctx, 'POST', '/api/2.1/jobs/runs/cancel', { run_id: runId });
|
|
75
|
+
return [{ json: { success: true, message: `Run ${runId} cancelled`, run_id: runId }, pairedItem: { item: i } }];
|
|
76
|
+
}
|
|
77
|
+
if (operation === 'listRuns') {
|
|
78
|
+
const jobId = ctx.getNodeParameter('jobId', i, '', { extractValue: true });
|
|
79
|
+
const activeOnly = ctx.getNodeParameter('activeOnly', i, false);
|
|
80
|
+
const qs = { limit: 25 };
|
|
81
|
+
if (jobId)
|
|
82
|
+
qs.job_id = Number(jobId);
|
|
83
|
+
if (activeOnly)
|
|
84
|
+
qs.active_only = true;
|
|
85
|
+
const response = await (0, helpers_1.databricksApiRequest)(ctx, 'GET', '/api/2.1/jobs/runs/list', undefined, qs);
|
|
86
|
+
return [{ json: response, pairedItem: { item: i } }];
|
|
87
|
+
}
|
|
88
|
+
throw new Error(`Unsupported Jobs operation: ${operation}`);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../../nodes/Databricks/resources/jobs/handler.ts"],"names":[],"mappings":";;AAGA,oDA+FC;AAjGD,2CAAqD;AAE9C,KAAK,UAAU,oBAAoB,CACzC,GAAsB,EACtB,SAAiB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EAAE,CAAC,EAAE,KAAK,CAAY,CAAC;QAC3E,MAAM,EAAE,GAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;QAC9B,IAAI,KAAK;YAAE,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,UAAU;YAAE,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,IAAA,8BAAoB,EAAC,GAAG,EAAE,KAAK,EAAE,yBAAyB,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;QAClG,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,+BAA+B,SAAS,EAAE,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jobsOperations = void 0;
|
|
4
|
+
exports.jobsOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['jobs'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{ name: 'Run Job', value: 'runJob', description: 'Trigger a new run for an existing job', action: 'Run a job' },
|
|
16
|
+
{ name: 'Get Run Status', value: 'getRunStatus', description: 'Get the status and details of a job run', action: 'Get run status' },
|
|
17
|
+
{ name: 'Get Run Output', value: 'getRunOutput', description: 'Get the output and results of a completed job run', action: 'Get run output' },
|
|
18
|
+
{ name: 'Create Job', value: 'createJob', description: 'Create a new job from a JSON config', action: 'Create a job' },
|
|
19
|
+
{ name: 'List Jobs', value: 'listJobs', description: 'List all jobs in the workspace', action: 'List jobs' },
|
|
20
|
+
{ name: 'Cancel Run', value: 'cancelRun', description: 'Cancel a running job run', action: 'Cancel a run' },
|
|
21
|
+
{ name: 'List Runs', value: 'listRuns', description: 'List runs for a job', action: 'List runs' },
|
|
22
|
+
],
|
|
23
|
+
default: 'runJob',
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../nodes/Databricks/resources/jobs/operations.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAoB;IAC3C,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACZ,IAAI,EAAE;YACF,QAAQ,EAAE,CAAC,MAAM,CAAC;SACrB;KACJ;IACD,OAAO,EAAE;QACL,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,uCAAuC,EAAE,MAAM,EAAE,WAAW,EAAE;QAC/G,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,yCAAyC,EAAE,MAAM,EAAE,gBAAgB,EAAE;QACnI,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,mDAAmD,EAAE,MAAM,EAAE,gBAAgB,EAAE;QAC7I,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,qCAAqC,EAAE,MAAM,EAAE,cAAc,EAAE;QACtH,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,gCAAgC,EAAE,MAAM,EAAE,WAAW,EAAE;QAC5G,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,EAAE,cAAc,EAAE;QAC3G,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,EAAE,WAAW,EAAE;KACpG;IACD,OAAO,EAAE,QAAQ;CACpB,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jobsParameters = void 0;
|
|
4
|
+
exports.jobsParameters = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Job',
|
|
7
|
+
name: 'jobId',
|
|
8
|
+
type: 'resourceLocator',
|
|
9
|
+
default: { mode: 'list', value: '' },
|
|
10
|
+
required: true,
|
|
11
|
+
description: 'The Databricks job to run',
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: ['jobs'],
|
|
15
|
+
operation: ['runJob'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
modes: [
|
|
19
|
+
{
|
|
20
|
+
displayName: 'From List',
|
|
21
|
+
name: 'list',
|
|
22
|
+
type: 'list',
|
|
23
|
+
typeOptions: {
|
|
24
|
+
searchListMethod: 'getJobs',
|
|
25
|
+
searchable: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'By ID',
|
|
30
|
+
name: 'id',
|
|
31
|
+
type: 'string',
|
|
32
|
+
placeholder: 'e.g. 123456789',
|
|
33
|
+
validation: [
|
|
34
|
+
{
|
|
35
|
+
type: 'regex',
|
|
36
|
+
properties: {
|
|
37
|
+
regex: '^[0-9]+$',
|
|
38
|
+
errorMessage: 'Must be a numeric job ID',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Job Parameters',
|
|
47
|
+
name: 'jobParameters',
|
|
48
|
+
type: 'json',
|
|
49
|
+
default: '{}',
|
|
50
|
+
required: false,
|
|
51
|
+
description: 'Key-value map of job-level parameters. Referenced in tasks via {{job.parameters.<name>}}. Overrides default values defined on the job.',
|
|
52
|
+
placeholder: '{"env": "production", "date": "2026-01-01"}',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['jobs'],
|
|
56
|
+
operation: ['runJob'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
typeOptions: {
|
|
60
|
+
rows: 5,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Notebook Params',
|
|
65
|
+
name: 'notebookParams',
|
|
66
|
+
type: 'json',
|
|
67
|
+
default: '{}',
|
|
68
|
+
required: false,
|
|
69
|
+
description: 'Key-value map of parameters to pass to the notebook task. Each key is a parameter name and each value is a string.',
|
|
70
|
+
placeholder: '{"article_id": "42", "version": "1.0"}',
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
resource: ['jobs'],
|
|
74
|
+
operation: ['runJob'],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
typeOptions: {
|
|
78
|
+
rows: 5,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Python Params',
|
|
83
|
+
name: 'pythonParams',
|
|
84
|
+
type: 'json',
|
|
85
|
+
default: '[]',
|
|
86
|
+
required: false,
|
|
87
|
+
description: 'Array of string parameters to pass to the Python file task',
|
|
88
|
+
placeholder: '["param1", "param2"]',
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
resource: ['jobs'],
|
|
92
|
+
operation: ['runJob'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
typeOptions: {
|
|
96
|
+
rows: 3,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
displayName: 'JAR Params',
|
|
101
|
+
name: 'jarParams',
|
|
102
|
+
type: 'json',
|
|
103
|
+
default: '[]',
|
|
104
|
+
required: false,
|
|
105
|
+
description: 'Array of string parameters to pass to the JAR task',
|
|
106
|
+
placeholder: '["param1", "param2"]',
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: {
|
|
109
|
+
resource: ['jobs'],
|
|
110
|
+
operation: ['runJob'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
typeOptions: {
|
|
114
|
+
rows: 3,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Run ID',
|
|
119
|
+
name: 'runId',
|
|
120
|
+
type: 'number',
|
|
121
|
+
default: 0,
|
|
122
|
+
required: true,
|
|
123
|
+
description: 'The ID of the job run. Returned by the "Run Job" operation.',
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
resource: ['jobs'],
|
|
127
|
+
operation: ['getRunStatus'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Run ID',
|
|
133
|
+
name: 'runId',
|
|
134
|
+
type: 'number',
|
|
135
|
+
default: 0,
|
|
136
|
+
required: true,
|
|
137
|
+
description: 'The ID of the job run to get output for. The run must be completed.',
|
|
138
|
+
displayOptions: {
|
|
139
|
+
show: {
|
|
140
|
+
resource: ['jobs'],
|
|
141
|
+
operation: ['getRunOutput'],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Job Configuration',
|
|
147
|
+
name: 'jobConfig',
|
|
148
|
+
type: 'json',
|
|
149
|
+
default: '{}',
|
|
150
|
+
required: true,
|
|
151
|
+
description: 'Full job configuration as JSON. See <a href="https://docs.databricks.com/api/workspace/jobs/create" target="_blank">API docs</a>.',
|
|
152
|
+
displayOptions: { show: { resource: ['jobs'], operation: ['createJob'] } },
|
|
153
|
+
typeOptions: { rows: 10 },
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Name Filter',
|
|
157
|
+
name: 'nameFilter',
|
|
158
|
+
type: 'string',
|
|
159
|
+
default: '',
|
|
160
|
+
required: false,
|
|
161
|
+
description: 'Optional filter to list only jobs whose name contains this string',
|
|
162
|
+
displayOptions: { show: { resource: ['jobs'], operation: ['listJobs'] } },
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
displayName: 'Run ID',
|
|
166
|
+
name: 'runId',
|
|
167
|
+
type: 'number',
|
|
168
|
+
default: 0,
|
|
169
|
+
required: true,
|
|
170
|
+
description: 'The ID of the run to cancel',
|
|
171
|
+
displayOptions: { show: { resource: ['jobs'], operation: ['cancelRun'] } },
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Job',
|
|
175
|
+
name: 'jobId',
|
|
176
|
+
type: 'resourceLocator',
|
|
177
|
+
default: { mode: 'list', value: '' },
|
|
178
|
+
required: false,
|
|
179
|
+
description: 'Filter runs by job (optional)',
|
|
180
|
+
displayOptions: { show: { resource: ['jobs'], operation: ['listRuns'] } },
|
|
181
|
+
modes: [
|
|
182
|
+
{ displayName: 'From List', name: 'list', type: 'list', typeOptions: { searchListMethod: 'getJobs', searchable: true } },
|
|
183
|
+
{ displayName: 'By ID', name: 'id', type: 'string', placeholder: 'e.g. 123456789' },
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
displayName: 'Active Only',
|
|
188
|
+
name: 'activeOnly',
|
|
189
|
+
type: 'boolean',
|
|
190
|
+
default: false,
|
|
191
|
+
description: 'Whether to list only active (running/pending) runs',
|
|
192
|
+
displayOptions: { show: { resource: ['jobs'], operation: ['listRuns'] } },
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../nodes/Databricks/resources/jobs/parameters.ts"],"names":[],"mappings":";;;AAEa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B,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;QACpC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,+BAA+B;QAC5C,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QACzE,KAAK,EAAE;YACH,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE;YACxH,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE;SACtF;KACJ;IACD;QACI,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,oDAAoD;QACjE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;KAC5E;CACJ,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeModelServingOperation = executeModelServingOperation;
|
|
4
|
+
const helpers_1 = require("../../helpers");
|
|
5
|
+
function detectInputFormat(openApiSchema) {
|
|
6
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7
|
+
const invocationUrl = (_b = (_a = openApiSchema.servers) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
8
|
+
if (!invocationUrl)
|
|
9
|
+
throw new Error('No server URL found in OpenAPI schema');
|
|
10
|
+
const pathKeys = Object.keys(openApiSchema.paths);
|
|
11
|
+
if (!pathKeys.length)
|
|
12
|
+
throw new Error('No paths found in OpenAPI schema');
|
|
13
|
+
const postOperation = (_c = openApiSchema.paths[pathKeys[0]]) === null || _c === void 0 ? void 0 : _c.post;
|
|
14
|
+
if (!((_f = (_e = (_d = postOperation === null || postOperation === void 0 ? void 0 : postOperation.requestBody) === null || _d === void 0 ? void 0 : _d.content) === null || _e === void 0 ? void 0 : _e['application/json']) === null || _f === void 0 ? void 0 : _f.schema))
|
|
15
|
+
throw new Error('No request schema found');
|
|
16
|
+
const schema = postOperation.requestBody.content['application/json'].schema;
|
|
17
|
+
const formats = ['messages', 'prompt', 'input', 'dataframe_split', 'dataframe_records', 'inputs', 'instances'];
|
|
18
|
+
const formatNames = {
|
|
19
|
+
messages: 'chat', prompt: 'completions', input: 'embeddings',
|
|
20
|
+
dataframe_split: 'dataframe_split', dataframe_records: 'dataframe_records',
|
|
21
|
+
inputs: 'inputs', instances: 'instances',
|
|
22
|
+
};
|
|
23
|
+
const options = schema.oneOf || [{ properties: schema.properties || {} }];
|
|
24
|
+
for (const option of options) {
|
|
25
|
+
const props = option.properties || {};
|
|
26
|
+
for (const fmt of formats) {
|
|
27
|
+
if (props[fmt])
|
|
28
|
+
return { format: formatNames[fmt], invocationUrl };
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return { format: 'generic', invocationUrl };
|
|
32
|
+
}
|
|
33
|
+
async function executeModelServingOperation(ctx, operation, i) {
|
|
34
|
+
if (operation !== 'queryEndpoint') {
|
|
35
|
+
throw new Error(`Unsupported Model Serving operation: ${operation}`);
|
|
36
|
+
}
|
|
37
|
+
const { credentials, host } = await (0, helpers_1.getCredentialsAndHost)(ctx);
|
|
38
|
+
const endpointName = ctx.getNodeParameter('endpointName', i, '', { extractValue: true });
|
|
39
|
+
const requestBody = ctx.getNodeParameter('requestBody', i);
|
|
40
|
+
const ep = encodeURIComponent(endpointName);
|
|
41
|
+
let detectedFormat = 'generic';
|
|
42
|
+
let invocationUrl = `${host}/serving-endpoints/${ep}/invocations`;
|
|
43
|
+
try {
|
|
44
|
+
const openApiResponse = await ctx.helpers.httpRequest({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
url: `${host}/api/2.0/serving-endpoints/${ep}/openapi`,
|
|
47
|
+
headers: { Authorization: `Bearer ${credentials.token}`, Accept: 'application/json' },
|
|
48
|
+
json: true,
|
|
49
|
+
});
|
|
50
|
+
if ((openApiResponse === null || openApiResponse === void 0 ? void 0 : openApiResponse.length) > 0) {
|
|
51
|
+
const schemaInfo = detectInputFormat(openApiResponse[0]);
|
|
52
|
+
detectedFormat = schemaInfo.format;
|
|
53
|
+
invocationUrl = schemaInfo.invocationUrl;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
}
|
|
58
|
+
const response = await ctx.helpers.httpRequest({
|
|
59
|
+
method: 'POST',
|
|
60
|
+
url: invocationUrl,
|
|
61
|
+
body: requestBody,
|
|
62
|
+
headers: { Authorization: `Bearer ${credentials.token}`, 'Content-Type': 'application/json' },
|
|
63
|
+
json: true,
|
|
64
|
+
});
|
|
65
|
+
return [
|
|
66
|
+
{
|
|
67
|
+
json: {
|
|
68
|
+
...response,
|
|
69
|
+
_metadata: { endpoint: endpointName, detectedFormat, invocationUrl },
|
|
70
|
+
},
|
|
71
|
+
pairedItem: { item: i },
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../../nodes/Databricks/resources/modelServing/handler.ts"],"names":[],"mappings":";;AAoDA,oEAmDC;AAtGD,2CAAsD;AAsBtD,SAAS,iBAAiB,CAAC,aAA4B;;IACtD,MAAM,aAAa,GAAG,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAG,CAAC,CA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Af,eAAe,uBAAf,eAAe,CAAE,MAAM,IAAG,CAAC,EAAE,CAAC;YACjC,MAAM,UAAU,GAAG,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;YACnC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;QAC1C,CAAC;IACF,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC;QAC9C,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,aAAa;QAClB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,WAAW,CAAC,KAAK,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC7F,IAAI,EAAE,IAAI;KACV,CAAC,CAAC;IAEH,OAAO;QACN;YACC,IAAI,EAAE;gBACL,GAAG,QAAQ;gBACX,SAAS,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE;aACpE;YACD,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;SACvB;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modelServingOperations = void 0;
|
|
4
|
+
exports.modelServingOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['modelServing'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Query Endpoint',
|
|
17
|
+
value: 'queryEndpoint',
|
|
18
|
+
description: 'Query a serving endpoint. The input format is automatically detected from the endpoint schema.',
|
|
19
|
+
action: 'Query a serving endpoint',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
default: 'queryEndpoint',
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../nodes/Databricks/resources/modelServing/operations.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAoB;IACnD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACZ,IAAI,EAAE;YACF,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC7B;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,gGAAgG;YAC7G,MAAM,EAAE,0BAA0B;SACrC;KACJ;IACD,OAAO,EAAE,eAAe;CAC3B,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modelServingParameters = void 0;
|
|
4
|
+
exports.modelServingParameters = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Endpoint',
|
|
7
|
+
name: 'endpointName',
|
|
8
|
+
type: 'resourceLocator',
|
|
9
|
+
default: { mode: 'list', value: '' },
|
|
10
|
+
required: true,
|
|
11
|
+
description: 'The model serving endpoint to query. The input format will be automatically detected from the endpoint schema. The node will fetch the endpoint\'s OpenAPI schema to determine the correct invocation URL.',
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: ['modelServing'],
|
|
15
|
+
operation: ['queryEndpoint'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
modes: [
|
|
19
|
+
{
|
|
20
|
+
displayName: 'From List',
|
|
21
|
+
name: 'list',
|
|
22
|
+
type: 'list',
|
|
23
|
+
typeOptions: {
|
|
24
|
+
searchListMethod: 'getEndpoints',
|
|
25
|
+
searchable: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'By Name',
|
|
30
|
+
name: 'name',
|
|
31
|
+
type: 'string',
|
|
32
|
+
placeholder: 'e.g. databricks-mixtral-8x7b-instruct',
|
|
33
|
+
validation: [
|
|
34
|
+
{
|
|
35
|
+
type: 'regex',
|
|
36
|
+
properties: {
|
|
37
|
+
regex: '^[a-zA-Z0-9_-]+$',
|
|
38
|
+
errorMessage: 'Must be a valid endpoint name (alphanumeric, hyphens, and underscores only)',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'By URL',
|
|
45
|
+
name: 'url',
|
|
46
|
+
type: 'string',
|
|
47
|
+
placeholder: 'e.g. https://adb-xxx.cloud.databricks.com/ml/endpoints/my-endpoint',
|
|
48
|
+
hint: 'Use the endpoint page URL (/ml/endpoints/), not the /serving-endpoints/ invocation URL.',
|
|
49
|
+
extractValue: {
|
|
50
|
+
type: 'regex',
|
|
51
|
+
regex: 'https://[^/]+/ml/endpoints/([a-zA-Z0-9_-]+)',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Request Body',
|
|
58
|
+
name: 'requestBody',
|
|
59
|
+
type: 'json',
|
|
60
|
+
required: true,
|
|
61
|
+
default: '{\n "messages": [\n {\n "role": "user",\n "content": "Hello!"\n }\n ]\n}',
|
|
62
|
+
placeholder: 'Request body will be validated against the endpoint schema',
|
|
63
|
+
description: 'Request body in JSON format. The node automatically detects the expected format from the endpoint\'s OpenAPI schema and validates your input at runtime.',
|
|
64
|
+
hint: 'See your model serving endpoint for example, request body format.',
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['modelServing'],
|
|
68
|
+
operation: ['queryEndpoint'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
typeOptions: {
|
|
72
|
+
rows: 10,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../nodes/Databricks/resources/modelServing/parameters.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACrD;QACI,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;QACpC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4MAA4M;QACzN,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,eAAe,CAAC;aAC/B;SACJ;QACD,KAAK,EAAE;YACH;gBACI,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE;oBACT,gBAAgB,EAAE,cAAc;oBAChC,UAAU,EAAE,IAAI;iBACnB;aACJ;YACD;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;gBACpD,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,OAAO;wBACb,UAAU,EAAE;4BACR,KAAK,EAAE,kBAAkB;4BACzB,YAAY,EAAE,6EAA6E;yBAC9F;qBACJ;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;gBACjF,IAAI,EAAE,yFA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