@superatomai/sdk-node 0.0.7-mds → 0.0.8-mds
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +25 -25
- package/dist/index.d.ts +25 -25
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -402,8 +402,8 @@ var ActionsRequestMessageSchema = z3.object({
|
|
|
402
402
|
var DashboardQueryFiltersSchema = z3.object({
|
|
403
403
|
dashboardId: z3.string().optional(),
|
|
404
404
|
projectId: z3.string().optional(),
|
|
405
|
-
createdBy: z3.
|
|
406
|
-
updatedBy: z3.
|
|
405
|
+
createdBy: z3.string().optional(),
|
|
406
|
+
updatedBy: z3.string().optional(),
|
|
407
407
|
name: z3.string().optional(),
|
|
408
408
|
published: z3.boolean().optional()
|
|
409
409
|
});
|
|
@@ -416,9 +416,9 @@ var DashboardsRequestPayloadSchema = z3.object({
|
|
|
416
416
|
name: z3.string().optional(),
|
|
417
417
|
description: z3.string().optional(),
|
|
418
418
|
published: z3.boolean().optional(),
|
|
419
|
-
createdBy: z3.
|
|
420
|
-
updatedBy: z3.
|
|
421
|
-
allowedUsers: z3.array(z3.
|
|
419
|
+
createdBy: z3.string().optional(),
|
|
420
|
+
updatedBy: z3.string().optional(),
|
|
421
|
+
allowedUsers: z3.array(z3.string()).optional(),
|
|
422
422
|
dashboard: DSLRendererPropsSchema.optional(),
|
|
423
423
|
// Query operation fields
|
|
424
424
|
filters: DashboardQueryFiltersSchema.optional(),
|
|
@@ -435,8 +435,8 @@ var DashboardsRequestMessageSchema = z3.object({
|
|
|
435
435
|
var ReportQueryFiltersSchema = z3.object({
|
|
436
436
|
reportId: z3.string().optional(),
|
|
437
437
|
projectId: z3.string().optional(),
|
|
438
|
-
createdBy: z3.
|
|
439
|
-
updatedBy: z3.
|
|
438
|
+
createdBy: z3.string().optional(),
|
|
439
|
+
updatedBy: z3.string().optional(),
|
|
440
440
|
name: z3.string().optional(),
|
|
441
441
|
published: z3.boolean().optional()
|
|
442
442
|
});
|
|
@@ -449,8 +449,8 @@ var ReportsRequestPayloadSchema = z3.object({
|
|
|
449
449
|
name: z3.string().optional(),
|
|
450
450
|
description: z3.string().optional(),
|
|
451
451
|
published: z3.boolean().optional(),
|
|
452
|
-
createdBy: z3.
|
|
453
|
-
updatedBy: z3.
|
|
452
|
+
createdBy: z3.string().optional(),
|
|
453
|
+
updatedBy: z3.string().optional(),
|
|
454
454
|
report: DSLRendererPropsSchema2.optional(),
|
|
455
455
|
// Query operation fields
|
|
456
456
|
filters: ReportQueryFiltersSchema.optional(),
|
|
@@ -467,8 +467,8 @@ var ReportsRequestMessageSchema = z3.object({
|
|
|
467
467
|
var UIQueryFiltersSchema = z3.object({
|
|
468
468
|
uiId: z3.string().optional(),
|
|
469
469
|
projectId: z3.string().optional(),
|
|
470
|
-
createdBy: z3.
|
|
471
|
-
updatedBy: z3.
|
|
470
|
+
createdBy: z3.string().optional(),
|
|
471
|
+
updatedBy: z3.string().optional(),
|
|
472
472
|
name: z3.string().optional()
|
|
473
473
|
});
|
|
474
474
|
var UIsRequestPayloadSchema = z3.object({
|
|
@@ -479,8 +479,8 @@ var UIsRequestPayloadSchema = z3.object({
|
|
|
479
479
|
projectId: z3.string().optional(),
|
|
480
480
|
name: z3.string().optional(),
|
|
481
481
|
description: z3.string().optional(),
|
|
482
|
-
createdBy: z3.
|
|
483
|
-
updatedBy: z3.
|
|
482
|
+
createdBy: z3.string().optional(),
|
|
483
|
+
updatedBy: z3.string().optional(),
|
|
484
484
|
ui: DSLRendererPropsSchema.optional(),
|
|
485
485
|
// Query operation fields
|
|
486
486
|
filters: UIQueryFiltersSchema.optional(),
|
|
@@ -531,7 +531,7 @@ var BookmarkDataSchema = z3.object({
|
|
|
531
531
|
updated_at: z3.string().optional()
|
|
532
532
|
});
|
|
533
533
|
var BookmarkQueryFiltersSchema = z3.object({
|
|
534
|
-
userId: z3.
|
|
534
|
+
userId: z3.string().optional(),
|
|
535
535
|
threadId: z3.string().optional(),
|
|
536
536
|
name: z3.string().optional()
|
|
537
537
|
});
|
|
@@ -539,7 +539,7 @@ var BookmarksRequestPayloadSchema = z3.object({
|
|
|
539
539
|
operation: z3.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
|
|
540
540
|
data: z3.object({
|
|
541
541
|
id: z3.number().optional(),
|
|
542
|
-
userId: z3.
|
|
542
|
+
userId: z3.string().optional(),
|
|
543
543
|
threadId: z3.string().optional(),
|
|
544
544
|
name: z3.string().optional(),
|
|
545
545
|
description: z3.string().optional(),
|
|
@@ -557,7 +557,7 @@ var BookmarksRequestMessageSchema = z3.object({
|
|
|
557
557
|
payload: BookmarksRequestPayloadSchema
|
|
558
558
|
});
|
|
559
559
|
var ArtifactsQueryFiltersSchema = z3.object({
|
|
560
|
-
createdBy: z3.
|
|
560
|
+
createdBy: z3.string().optional(),
|
|
561
561
|
type: z3.string().optional(),
|
|
562
562
|
status: z3.string().optional(),
|
|
563
563
|
name: z3.string().optional(),
|
|
@@ -569,7 +569,7 @@ var ArtifactsRequestPayloadSchema = z3.object({
|
|
|
569
569
|
data: z3.object({
|
|
570
570
|
id: z3.number().optional(),
|
|
571
571
|
name: z3.string().optional(),
|
|
572
|
-
createdBy: z3.
|
|
572
|
+
createdBy: z3.string().optional(),
|
|
573
573
|
dsl: z3.record(z3.any()).optional(),
|
|
574
574
|
status: z3.string().optional(),
|
|
575
575
|
deleted: z3.boolean().optional(),
|
|
@@ -598,7 +598,7 @@ var KbNodesQueryFiltersSchema = z3.object({
|
|
|
598
598
|
category: z3.string().optional(),
|
|
599
599
|
tags: z3.array(z3.string()).optional(),
|
|
600
600
|
type: KbNodeTypeSchema.optional(),
|
|
601
|
-
createdBy: z3.
|
|
601
|
+
createdBy: z3.string().optional()
|
|
602
602
|
});
|
|
603
603
|
var KbNodesRequestPayloadSchema = z3.object({
|
|
604
604
|
operation: z3.enum(["create", "update", "delete", "getAll", "getOne", "search", "getByCategory", "getByUser", "getCategories", "getTags"]),
|
|
@@ -609,9 +609,9 @@ var KbNodesRequestPayloadSchema = z3.object({
|
|
|
609
609
|
category: z3.string().optional(),
|
|
610
610
|
tags: z3.array(z3.string()).optional(),
|
|
611
611
|
type: KbNodeTypeSchema.optional(),
|
|
612
|
-
createdBy: z3.
|
|
613
|
-
updatedBy: z3.
|
|
614
|
-
userId: z3.
|
|
612
|
+
createdBy: z3.string().optional(),
|
|
613
|
+
updatedBy: z3.string().optional(),
|
|
614
|
+
userId: z3.string().optional(),
|
|
615
615
|
// Query/search operation fields
|
|
616
616
|
query: z3.string().optional(),
|
|
617
617
|
filters: KbNodesQueryFiltersSchema.optional(),
|
|
@@ -7295,7 +7295,7 @@ var getUserKnowledgeBase = async ({
|
|
|
7295
7295
|
return "";
|
|
7296
7296
|
}
|
|
7297
7297
|
const result = await collections["knowledge-base"]["getByUser"]({
|
|
7298
|
-
userId:
|
|
7298
|
+
userId: String(userId),
|
|
7299
7299
|
limit
|
|
7300
7300
|
});
|
|
7301
7301
|
if (!result || !result.content) {
|