@lunnoa/client 1.4.0 → 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/README.md +17 -10
- package/dist/cli.js +219 -107
- package/dist/index.cjs +40 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1327 -1333
- package/dist/index.d.ts +1327 -1333
- package/dist/index.js +40 -37
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +59 -37
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +665 -718
- package/dist/react.d.ts +665 -718
- package/dist/react.js +59 -37
- package/dist/react.js.map +1 -1
- package/package.json +2 -6
- package/skills/lunnoa-client/SKILL.md +23 -11
- package/skills/lunnoa-solution-design/SKILL.md +21 -5
package/dist/index.cjs
CHANGED
|
@@ -703,12 +703,12 @@ var AgentsResource = class {
|
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
/**
|
|
706
|
-
* Upsert an agent by
|
|
706
|
+
* Upsert an agent by slug inside the workspace on the API key.
|
|
707
707
|
* Prefer the CLI (`npx @lunnoa/client agents deploy`) for happy-path deploy.
|
|
708
708
|
*/
|
|
709
|
-
upsertBySlug(
|
|
709
|
+
upsertBySlug(body, options) {
|
|
710
710
|
const payload = "kind" in body && body.kind === "agent" ? agentDefinitionToUpsert(body, options) : body;
|
|
711
|
-
return this.http.post(
|
|
711
|
+
return this.http.post("/api/agents/upsert", {
|
|
712
712
|
body: payload
|
|
713
713
|
});
|
|
714
714
|
}
|
|
@@ -1125,6 +1125,33 @@ var EntityTypesResource = class {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
1127
|
|
|
1128
|
+
// src/resources/tables.ts
|
|
1129
|
+
var TablesResource = class {
|
|
1130
|
+
constructor(http) {
|
|
1131
|
+
this.http = http;
|
|
1132
|
+
}
|
|
1133
|
+
http;
|
|
1134
|
+
/** Lists tables in the API key's workspace (without columns and rows). */
|
|
1135
|
+
list() {
|
|
1136
|
+
return this.http.get("/api/tables");
|
|
1137
|
+
}
|
|
1138
|
+
/** Returns a single table by ID, including columns and rows. */
|
|
1139
|
+
get(id) {
|
|
1140
|
+
return this.http.get(`/api/tables/${id}`);
|
|
1141
|
+
}
|
|
1142
|
+
/** Returns a single table by its workspace slug, including columns and rows. */
|
|
1143
|
+
getBySlug(slug) {
|
|
1144
|
+
return this.http.get(`/api/tables/slug/${slug}`);
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* Creates or updates a table by workspace slug. Omitted columns or rows
|
|
1148
|
+
* keep their current value. Marks `managedByCode` by default.
|
|
1149
|
+
*/
|
|
1150
|
+
upsertBySlug(input) {
|
|
1151
|
+
return this.http.post("/api/tables/upsert", { body: input });
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1128
1155
|
// src/resources/approvals.ts
|
|
1129
1156
|
var ApprovalsResource = class {
|
|
1130
1157
|
constructor(http) {
|
|
@@ -1526,30 +1553,6 @@ var KnowledgeResource = class {
|
|
|
1526
1553
|
}
|
|
1527
1554
|
};
|
|
1528
1555
|
|
|
1529
|
-
// src/resources/projects.ts
|
|
1530
|
-
var ProjectsResource = class {
|
|
1531
|
-
constructor(http) {
|
|
1532
|
-
this.http = http;
|
|
1533
|
-
}
|
|
1534
|
-
http;
|
|
1535
|
-
/** Lists projects in the workspace, most recently updated first. */
|
|
1536
|
-
list(options) {
|
|
1537
|
-
return this.http.get("/api/projects", {
|
|
1538
|
-
query: serializeListQuery(options)
|
|
1539
|
-
});
|
|
1540
|
-
}
|
|
1541
|
-
/** Returns a single project. */
|
|
1542
|
-
get(projectId, options) {
|
|
1543
|
-
return this.http.get(`/api/projects/${projectId}`, {
|
|
1544
|
-
query: serializeListQuery(options)
|
|
1545
|
-
});
|
|
1546
|
-
}
|
|
1547
|
-
/** Creates a project. */
|
|
1548
|
-
create(data) {
|
|
1549
|
-
return this.http.post("/api/projects", { body: data });
|
|
1550
|
-
}
|
|
1551
|
-
};
|
|
1552
|
-
|
|
1553
1556
|
// src/resources/queue-items.ts
|
|
1554
1557
|
var QueueItemsResource = class {
|
|
1555
1558
|
constructor(http) {
|
|
@@ -1829,7 +1832,7 @@ var RunsResource = class {
|
|
|
1829
1832
|
* Start a linear multi-step ad-hoc Execution.
|
|
1830
1833
|
*
|
|
1831
1834
|
* Accepts a `defineWorkflow` result, a step array, or an explicit
|
|
1832
|
-
* `{ steps,
|
|
1835
|
+
* `{ steps, name? }` payload.
|
|
1833
1836
|
*/
|
|
1834
1837
|
start(input) {
|
|
1835
1838
|
const options = normalizeStartRunInput(input);
|
|
@@ -2047,15 +2050,14 @@ var WorkflowsResource = class {
|
|
|
2047
2050
|
});
|
|
2048
2051
|
}
|
|
2049
2052
|
/**
|
|
2050
|
-
* Upsert a workflow by
|
|
2053
|
+
* Upsert a workflow by slug inside the workspace on the API key.
|
|
2051
2054
|
* Prefer the CLI (`npx @lunnoa/client workflows deploy`) for happy-path deploy.
|
|
2052
2055
|
*/
|
|
2053
|
-
upsertBySlug(
|
|
2056
|
+
upsertBySlug(body) {
|
|
2054
2057
|
const payload = "kind" in body && body.kind === "workflow" ? workflowDefinitionToUpsert(body) : body;
|
|
2055
|
-
return this.http.post(
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
);
|
|
2058
|
+
return this.http.post("/api/workflows/upsert", {
|
|
2059
|
+
body: payload
|
|
2060
|
+
});
|
|
2059
2061
|
}
|
|
2060
2062
|
/**
|
|
2061
2063
|
* Starts a new execution of the workflow with the given trigger inputs.
|
|
@@ -2109,13 +2111,14 @@ var LunnoaClient = class {
|
|
|
2109
2111
|
approvals;
|
|
2110
2112
|
entities;
|
|
2111
2113
|
entityTypes;
|
|
2114
|
+
/** Small reference / lookup tables (rows stored inline; use entities for transactional data). */
|
|
2115
|
+
tables;
|
|
2112
2116
|
knowledge;
|
|
2113
2117
|
queues;
|
|
2114
2118
|
queueItems;
|
|
2115
2119
|
variables;
|
|
2116
2120
|
scorecards;
|
|
2117
2121
|
connections;
|
|
2118
|
-
projects;
|
|
2119
2122
|
workflowApps;
|
|
2120
2123
|
discovery;
|
|
2121
2124
|
constructor(options) {
|
|
@@ -2132,13 +2135,13 @@ var LunnoaClient = class {
|
|
|
2132
2135
|
this.workflows = new WorkflowsResource(this.http, this.executions);
|
|
2133
2136
|
this.entities = new EntitiesResource(this.http);
|
|
2134
2137
|
this.entityTypes = new EntityTypesResource(this.http);
|
|
2138
|
+
this.tables = new TablesResource(this.http);
|
|
2135
2139
|
this.knowledge = new KnowledgeResource(this.http);
|
|
2136
2140
|
this.queues = new QueuesResource(this.http);
|
|
2137
2141
|
this.queueItems = new QueueItemsResource(this.http);
|
|
2138
2142
|
this.variables = new VariablesResource(this.http);
|
|
2139
2143
|
this.scorecards = new ScorecardsResource(this.http);
|
|
2140
2144
|
this.connections = new ConnectionsResource(this.http);
|
|
2141
|
-
this.projects = new ProjectsResource(this.http);
|
|
2142
2145
|
this.discovery = new DiscoveryResource(this.http);
|
|
2143
2146
|
}
|
|
2144
2147
|
};
|
|
@@ -2234,12 +2237,12 @@ exports.HttpClient = HttpClient;
|
|
|
2234
2237
|
exports.KnowledgeResource = KnowledgeResource;
|
|
2235
2238
|
exports.LunnoaApiError = LunnoaApiError;
|
|
2236
2239
|
exports.LunnoaClient = LunnoaClient;
|
|
2237
|
-
exports.ProjectsResource = ProjectsResource;
|
|
2238
2240
|
exports.QueueItemsResource = QueueItemsResource;
|
|
2239
2241
|
exports.QueuesResource = QueuesResource;
|
|
2240
2242
|
exports.RunsResource = RunsResource;
|
|
2241
2243
|
exports.ScorecardsResource = ScorecardsResource;
|
|
2242
2244
|
exports.SsoAuthResource = SsoAuthResource;
|
|
2245
|
+
exports.TablesResource = TablesResource;
|
|
2243
2246
|
exports.TasksResource = TasksResource;
|
|
2244
2247
|
exports.VariablesResource = VariablesResource;
|
|
2245
2248
|
exports.WorkflowAppsResource = WorkflowAppsResource;
|