@lunnoa/client 1.4.0 → 1.5.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 +11 -3
- package/dist/cli.js +199 -18
- package/dist/index.cjs +33 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1322 -1059
- package/dist/index.d.ts +1322 -1059
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +52 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +697 -608
- package/dist/react.d.ts +697 -608
- package/dist/react.js +52 -1
- package/dist/react.js.map +1 -1
- package/package.json +2 -6
- package/skills/lunnoa-client/SKILL.md +18 -6
- package/skills/lunnoa-solution-design/SKILL.md +20 -4
package/dist/index.js
CHANGED
|
@@ -1123,6 +1123,35 @@ var EntityTypesResource = class {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
1126
|
+
// src/resources/tables.ts
|
|
1127
|
+
var TablesResource = class {
|
|
1128
|
+
constructor(http) {
|
|
1129
|
+
this.http = http;
|
|
1130
|
+
}
|
|
1131
|
+
http;
|
|
1132
|
+
/** Lists tables in the API key's workspace (without columns and rows). */
|
|
1133
|
+
list(options = {}) {
|
|
1134
|
+
return this.http.get("/api/tables", {
|
|
1135
|
+
query: { projectId: options.projectId }
|
|
1136
|
+
});
|
|
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
|
+
|
|
1126
1155
|
// src/resources/approvals.ts
|
|
1127
1156
|
var ApprovalsResource = class {
|
|
1128
1157
|
constructor(http) {
|
|
@@ -2107,6 +2136,8 @@ var LunnoaClient = class {
|
|
|
2107
2136
|
approvals;
|
|
2108
2137
|
entities;
|
|
2109
2138
|
entityTypes;
|
|
2139
|
+
/** Small reference / lookup tables (rows stored inline; use entities for transactional data). */
|
|
2140
|
+
tables;
|
|
2110
2141
|
knowledge;
|
|
2111
2142
|
queues;
|
|
2112
2143
|
queueItems;
|
|
@@ -2130,6 +2161,7 @@ var LunnoaClient = class {
|
|
|
2130
2161
|
this.workflows = new WorkflowsResource(this.http, this.executions);
|
|
2131
2162
|
this.entities = new EntitiesResource(this.http);
|
|
2132
2163
|
this.entityTypes = new EntityTypesResource(this.http);
|
|
2164
|
+
this.tables = new TablesResource(this.http);
|
|
2133
2165
|
this.knowledge = new KnowledgeResource(this.http);
|
|
2134
2166
|
this.queues = new QueuesResource(this.http);
|
|
2135
2167
|
this.queueItems = new QueueItemsResource(this.http);
|
|
@@ -2213,6 +2245,6 @@ function createServerClient(options) {
|
|
|
2213
2245
|
});
|
|
2214
2246
|
}
|
|
2215
2247
|
|
|
2216
|
-
export { API_KEY_PREFIX, ActionsResource, AgentChatClient, AgentChatStream, AgentsResource, ApprovalsResource, AuthResource, ConnectionsResource, DEFINE_KINDS, DiscoveryResource, EntitiesResource, EntityTypesResource, ExecutionProgressStream, ExecutionTimeoutError, ExecutionsResource, HttpClient, KnowledgeResource, LunnoaApiError, LunnoaClient, ProjectsResource, QueueItemsResource, QueuesResource, RunsResource, ScorecardsResource, SsoAuthResource, TasksResource, VariablesResource, WorkflowAppsResource, WorkflowsResource, assertApiKeyAllowedInEnvironment, createBrowserClient, createLocalStorageTokenStore, createMemoryTokenStore, createServerClient, defineAction, defineAgent, defineAiConnection, defineConnection, defineEntityType, defineWorkflow, entityTypeDefinitionToUpsert, isBrowserEnvironment, isLoginRequires2FA, iterateOffset, iteratePages, parseSseEvents, parseSseStream, resolveActionAppId, resolveActionId };
|
|
2248
|
+
export { API_KEY_PREFIX, ActionsResource, AgentChatClient, AgentChatStream, AgentsResource, ApprovalsResource, AuthResource, ConnectionsResource, DEFINE_KINDS, DiscoveryResource, EntitiesResource, EntityTypesResource, ExecutionProgressStream, ExecutionTimeoutError, ExecutionsResource, HttpClient, KnowledgeResource, LunnoaApiError, LunnoaClient, ProjectsResource, QueueItemsResource, QueuesResource, RunsResource, ScorecardsResource, SsoAuthResource, TablesResource, TasksResource, VariablesResource, WorkflowAppsResource, WorkflowsResource, assertApiKeyAllowedInEnvironment, createBrowserClient, createLocalStorageTokenStore, createMemoryTokenStore, createServerClient, defineAction, defineAgent, defineAiConnection, defineConnection, defineEntityType, defineWorkflow, entityTypeDefinitionToUpsert, isBrowserEnvironment, isLoginRequires2FA, iterateOffset, iteratePages, parseSseEvents, parseSseStream, resolveActionAppId, resolveActionId };
|
|
2217
2249
|
//# sourceMappingURL=index.js.map
|
|
2218
2250
|
//# sourceMappingURL=index.js.map
|