@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 CHANGED
@@ -877,18 +877,18 @@ declare const KbNodesQueryFiltersSchema: z.ZodObject<{
877
877
  category: z.ZodOptional<z.ZodString>;
878
878
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
879
879
  type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
880
- createdBy: z.ZodOptional<z.ZodNumber>;
880
+ createdBy: z.ZodOptional<z.ZodString>;
881
881
  }, "strip", z.ZodTypeAny, {
882
882
  type?: "query" | "user" | "global" | undefined;
883
883
  query?: string | undefined;
884
884
  category?: string | undefined;
885
- createdBy?: number | undefined;
885
+ createdBy?: string | undefined;
886
886
  tags?: string[] | undefined;
887
887
  }, {
888
888
  type?: "query" | "user" | "global" | undefined;
889
889
  query?: string | undefined;
890
890
  category?: string | undefined;
891
- createdBy?: number | undefined;
891
+ createdBy?: string | undefined;
892
892
  tags?: string[] | undefined;
893
893
  }>;
894
894
  type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
@@ -901,27 +901,27 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
901
901
  category: z.ZodOptional<z.ZodString>;
902
902
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
903
  type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
904
- createdBy: z.ZodOptional<z.ZodNumber>;
905
- updatedBy: z.ZodOptional<z.ZodNumber>;
906
- userId: z.ZodOptional<z.ZodNumber>;
904
+ createdBy: z.ZodOptional<z.ZodString>;
905
+ updatedBy: z.ZodOptional<z.ZodString>;
906
+ userId: z.ZodOptional<z.ZodString>;
907
907
  query: z.ZodOptional<z.ZodString>;
908
908
  filters: z.ZodOptional<z.ZodObject<{
909
909
  query: z.ZodOptional<z.ZodString>;
910
910
  category: z.ZodOptional<z.ZodString>;
911
911
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
912
912
  type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
913
- createdBy: z.ZodOptional<z.ZodNumber>;
913
+ createdBy: z.ZodOptional<z.ZodString>;
914
914
  }, "strip", z.ZodTypeAny, {
915
915
  type?: "query" | "user" | "global" | undefined;
916
916
  query?: string | undefined;
917
917
  category?: string | undefined;
918
- createdBy?: number | undefined;
918
+ createdBy?: string | undefined;
919
919
  tags?: string[] | undefined;
920
920
  }, {
921
921
  type?: "query" | "user" | "global" | undefined;
922
922
  query?: string | undefined;
923
923
  category?: string | undefined;
924
- createdBy?: number | undefined;
924
+ createdBy?: string | undefined;
925
925
  tags?: string[] | undefined;
926
926
  }>>;
927
927
  limit: z.ZodOptional<z.ZodNumber>;
@@ -932,17 +932,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
932
932
  query?: string | undefined;
933
933
  title?: string | undefined;
934
934
  category?: string | undefined;
935
- userId?: number | undefined;
935
+ userId?: string | undefined;
936
936
  limit?: number | undefined;
937
937
  filters?: {
938
938
  type?: "query" | "user" | "global" | undefined;
939
939
  query?: string | undefined;
940
940
  category?: string | undefined;
941
- createdBy?: number | undefined;
941
+ createdBy?: string | undefined;
942
942
  tags?: string[] | undefined;
943
943
  } | undefined;
944
- createdBy?: number | undefined;
945
- updatedBy?: number | undefined;
944
+ createdBy?: string | undefined;
945
+ updatedBy?: string | undefined;
946
946
  offset?: number | undefined;
947
947
  tags?: string[] | undefined;
948
948
  content?: string | undefined;
@@ -952,17 +952,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
952
952
  query?: string | undefined;
953
953
  title?: string | undefined;
954
954
  category?: string | undefined;
955
- userId?: number | undefined;
955
+ userId?: string | undefined;
956
956
  limit?: number | undefined;
957
957
  filters?: {
958
958
  type?: "query" | "user" | "global" | undefined;
959
959
  query?: string | undefined;
960
960
  category?: string | undefined;
961
- createdBy?: number | undefined;
961
+ createdBy?: string | undefined;
962
962
  tags?: string[] | undefined;
963
963
  } | undefined;
964
- createdBy?: number | undefined;
965
- updatedBy?: number | undefined;
964
+ createdBy?: string | undefined;
965
+ updatedBy?: string | undefined;
966
966
  offset?: number | undefined;
967
967
  tags?: string[] | undefined;
968
968
  content?: string | undefined;
@@ -975,17 +975,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
975
975
  query?: string | undefined;
976
976
  title?: string | undefined;
977
977
  category?: string | undefined;
978
- userId?: number | undefined;
978
+ userId?: string | undefined;
979
979
  limit?: number | undefined;
980
980
  filters?: {
981
981
  type?: "query" | "user" | "global" | undefined;
982
982
  query?: string | undefined;
983
983
  category?: string | undefined;
984
- createdBy?: number | undefined;
984
+ createdBy?: string | undefined;
985
985
  tags?: string[] | undefined;
986
986
  } | undefined;
987
- createdBy?: number | undefined;
988
- updatedBy?: number | undefined;
987
+ createdBy?: string | undefined;
988
+ updatedBy?: string | undefined;
989
989
  offset?: number | undefined;
990
990
  tags?: string[] | undefined;
991
991
  content?: string | undefined;
@@ -998,17 +998,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
998
998
  query?: string | undefined;
999
999
  title?: string | undefined;
1000
1000
  category?: string | undefined;
1001
- userId?: number | undefined;
1001
+ userId?: string | undefined;
1002
1002
  limit?: number | undefined;
1003
1003
  filters?: {
1004
1004
  type?: "query" | "user" | "global" | undefined;
1005
1005
  query?: string | undefined;
1006
1006
  category?: string | undefined;
1007
- createdBy?: number | undefined;
1007
+ createdBy?: string | undefined;
1008
1008
  tags?: string[] | undefined;
1009
1009
  } | undefined;
1010
- createdBy?: number | undefined;
1011
- updatedBy?: number | undefined;
1010
+ createdBy?: string | undefined;
1011
+ updatedBy?: string | undefined;
1012
1012
  offset?: number | undefined;
1013
1013
  tags?: string[] | undefined;
1014
1014
  content?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -877,18 +877,18 @@ declare const KbNodesQueryFiltersSchema: z.ZodObject<{
877
877
  category: z.ZodOptional<z.ZodString>;
878
878
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
879
879
  type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
880
- createdBy: z.ZodOptional<z.ZodNumber>;
880
+ createdBy: z.ZodOptional<z.ZodString>;
881
881
  }, "strip", z.ZodTypeAny, {
882
882
  type?: "query" | "user" | "global" | undefined;
883
883
  query?: string | undefined;
884
884
  category?: string | undefined;
885
- createdBy?: number | undefined;
885
+ createdBy?: string | undefined;
886
886
  tags?: string[] | undefined;
887
887
  }, {
888
888
  type?: "query" | "user" | "global" | undefined;
889
889
  query?: string | undefined;
890
890
  category?: string | undefined;
891
- createdBy?: number | undefined;
891
+ createdBy?: string | undefined;
892
892
  tags?: string[] | undefined;
893
893
  }>;
894
894
  type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
@@ -901,27 +901,27 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
901
901
  category: z.ZodOptional<z.ZodString>;
902
902
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
903
  type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
904
- createdBy: z.ZodOptional<z.ZodNumber>;
905
- updatedBy: z.ZodOptional<z.ZodNumber>;
906
- userId: z.ZodOptional<z.ZodNumber>;
904
+ createdBy: z.ZodOptional<z.ZodString>;
905
+ updatedBy: z.ZodOptional<z.ZodString>;
906
+ userId: z.ZodOptional<z.ZodString>;
907
907
  query: z.ZodOptional<z.ZodString>;
908
908
  filters: z.ZodOptional<z.ZodObject<{
909
909
  query: z.ZodOptional<z.ZodString>;
910
910
  category: z.ZodOptional<z.ZodString>;
911
911
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
912
912
  type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
913
- createdBy: z.ZodOptional<z.ZodNumber>;
913
+ createdBy: z.ZodOptional<z.ZodString>;
914
914
  }, "strip", z.ZodTypeAny, {
915
915
  type?: "query" | "user" | "global" | undefined;
916
916
  query?: string | undefined;
917
917
  category?: string | undefined;
918
- createdBy?: number | undefined;
918
+ createdBy?: string | undefined;
919
919
  tags?: string[] | undefined;
920
920
  }, {
921
921
  type?: "query" | "user" | "global" | undefined;
922
922
  query?: string | undefined;
923
923
  category?: string | undefined;
924
- createdBy?: number | undefined;
924
+ createdBy?: string | undefined;
925
925
  tags?: string[] | undefined;
926
926
  }>>;
927
927
  limit: z.ZodOptional<z.ZodNumber>;
@@ -932,17 +932,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
932
932
  query?: string | undefined;
933
933
  title?: string | undefined;
934
934
  category?: string | undefined;
935
- userId?: number | undefined;
935
+ userId?: string | undefined;
936
936
  limit?: number | undefined;
937
937
  filters?: {
938
938
  type?: "query" | "user" | "global" | undefined;
939
939
  query?: string | undefined;
940
940
  category?: string | undefined;
941
- createdBy?: number | undefined;
941
+ createdBy?: string | undefined;
942
942
  tags?: string[] | undefined;
943
943
  } | undefined;
944
- createdBy?: number | undefined;
945
- updatedBy?: number | undefined;
944
+ createdBy?: string | undefined;
945
+ updatedBy?: string | undefined;
946
946
  offset?: number | undefined;
947
947
  tags?: string[] | undefined;
948
948
  content?: string | undefined;
@@ -952,17 +952,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
952
952
  query?: string | undefined;
953
953
  title?: string | undefined;
954
954
  category?: string | undefined;
955
- userId?: number | undefined;
955
+ userId?: string | undefined;
956
956
  limit?: number | undefined;
957
957
  filters?: {
958
958
  type?: "query" | "user" | "global" | undefined;
959
959
  query?: string | undefined;
960
960
  category?: string | undefined;
961
- createdBy?: number | undefined;
961
+ createdBy?: string | undefined;
962
962
  tags?: string[] | undefined;
963
963
  } | undefined;
964
- createdBy?: number | undefined;
965
- updatedBy?: number | undefined;
964
+ createdBy?: string | undefined;
965
+ updatedBy?: string | undefined;
966
966
  offset?: number | undefined;
967
967
  tags?: string[] | undefined;
968
968
  content?: string | undefined;
@@ -975,17 +975,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
975
975
  query?: string | undefined;
976
976
  title?: string | undefined;
977
977
  category?: string | undefined;
978
- userId?: number | undefined;
978
+ userId?: string | undefined;
979
979
  limit?: number | undefined;
980
980
  filters?: {
981
981
  type?: "query" | "user" | "global" | undefined;
982
982
  query?: string | undefined;
983
983
  category?: string | undefined;
984
- createdBy?: number | undefined;
984
+ createdBy?: string | undefined;
985
985
  tags?: string[] | undefined;
986
986
  } | undefined;
987
- createdBy?: number | undefined;
988
- updatedBy?: number | undefined;
987
+ createdBy?: string | undefined;
988
+ updatedBy?: string | undefined;
989
989
  offset?: number | undefined;
990
990
  tags?: string[] | undefined;
991
991
  content?: string | undefined;
@@ -998,17 +998,17 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
998
998
  query?: string | undefined;
999
999
  title?: string | undefined;
1000
1000
  category?: string | undefined;
1001
- userId?: number | undefined;
1001
+ userId?: string | undefined;
1002
1002
  limit?: number | undefined;
1003
1003
  filters?: {
1004
1004
  type?: "query" | "user" | "global" | undefined;
1005
1005
  query?: string | undefined;
1006
1006
  category?: string | undefined;
1007
- createdBy?: number | undefined;
1007
+ createdBy?: string | undefined;
1008
1008
  tags?: string[] | undefined;
1009
1009
  } | undefined;
1010
- createdBy?: number | undefined;
1011
- updatedBy?: number | undefined;
1010
+ createdBy?: string | undefined;
1011
+ updatedBy?: string | undefined;
1012
1012
  offset?: number | undefined;
1013
1013
  tags?: string[] | undefined;
1014
1014
  content?: string | undefined;
package/dist/index.js CHANGED
@@ -459,8 +459,8 @@ var ActionsRequestMessageSchema = import_zod3.z.object({
459
459
  var DashboardQueryFiltersSchema = import_zod3.z.object({
460
460
  dashboardId: import_zod3.z.string().optional(),
461
461
  projectId: import_zod3.z.string().optional(),
462
- createdBy: import_zod3.z.number().optional(),
463
- updatedBy: import_zod3.z.number().optional(),
462
+ createdBy: import_zod3.z.string().optional(),
463
+ updatedBy: import_zod3.z.string().optional(),
464
464
  name: import_zod3.z.string().optional(),
465
465
  published: import_zod3.z.boolean().optional()
466
466
  });
@@ -473,9 +473,9 @@ var DashboardsRequestPayloadSchema = import_zod3.z.object({
473
473
  name: import_zod3.z.string().optional(),
474
474
  description: import_zod3.z.string().optional(),
475
475
  published: import_zod3.z.boolean().optional(),
476
- createdBy: import_zod3.z.number().optional(),
477
- updatedBy: import_zod3.z.number().optional(),
478
- allowedUsers: import_zod3.z.array(import_zod3.z.number()).optional(),
476
+ createdBy: import_zod3.z.string().optional(),
477
+ updatedBy: import_zod3.z.string().optional(),
478
+ allowedUsers: import_zod3.z.array(import_zod3.z.string()).optional(),
479
479
  dashboard: DSLRendererPropsSchema.optional(),
480
480
  // Query operation fields
481
481
  filters: DashboardQueryFiltersSchema.optional(),
@@ -492,8 +492,8 @@ var DashboardsRequestMessageSchema = import_zod3.z.object({
492
492
  var ReportQueryFiltersSchema = import_zod3.z.object({
493
493
  reportId: import_zod3.z.string().optional(),
494
494
  projectId: import_zod3.z.string().optional(),
495
- createdBy: import_zod3.z.number().optional(),
496
- updatedBy: import_zod3.z.number().optional(),
495
+ createdBy: import_zod3.z.string().optional(),
496
+ updatedBy: import_zod3.z.string().optional(),
497
497
  name: import_zod3.z.string().optional(),
498
498
  published: import_zod3.z.boolean().optional()
499
499
  });
@@ -506,8 +506,8 @@ var ReportsRequestPayloadSchema = import_zod3.z.object({
506
506
  name: import_zod3.z.string().optional(),
507
507
  description: import_zod3.z.string().optional(),
508
508
  published: import_zod3.z.boolean().optional(),
509
- createdBy: import_zod3.z.number().optional(),
510
- updatedBy: import_zod3.z.number().optional(),
509
+ createdBy: import_zod3.z.string().optional(),
510
+ updatedBy: import_zod3.z.string().optional(),
511
511
  report: DSLRendererPropsSchema2.optional(),
512
512
  // Query operation fields
513
513
  filters: ReportQueryFiltersSchema.optional(),
@@ -524,8 +524,8 @@ var ReportsRequestMessageSchema = import_zod3.z.object({
524
524
  var UIQueryFiltersSchema = import_zod3.z.object({
525
525
  uiId: import_zod3.z.string().optional(),
526
526
  projectId: import_zod3.z.string().optional(),
527
- createdBy: import_zod3.z.number().optional(),
528
- updatedBy: import_zod3.z.number().optional(),
527
+ createdBy: import_zod3.z.string().optional(),
528
+ updatedBy: import_zod3.z.string().optional(),
529
529
  name: import_zod3.z.string().optional()
530
530
  });
531
531
  var UIsRequestPayloadSchema = import_zod3.z.object({
@@ -536,8 +536,8 @@ var UIsRequestPayloadSchema = import_zod3.z.object({
536
536
  projectId: import_zod3.z.string().optional(),
537
537
  name: import_zod3.z.string().optional(),
538
538
  description: import_zod3.z.string().optional(),
539
- createdBy: import_zod3.z.number().optional(),
540
- updatedBy: import_zod3.z.number().optional(),
539
+ createdBy: import_zod3.z.string().optional(),
540
+ updatedBy: import_zod3.z.string().optional(),
541
541
  ui: DSLRendererPropsSchema.optional(),
542
542
  // Query operation fields
543
543
  filters: UIQueryFiltersSchema.optional(),
@@ -588,7 +588,7 @@ var BookmarkDataSchema = import_zod3.z.object({
588
588
  updated_at: import_zod3.z.string().optional()
589
589
  });
590
590
  var BookmarkQueryFiltersSchema = import_zod3.z.object({
591
- userId: import_zod3.z.number().optional(),
591
+ userId: import_zod3.z.string().optional(),
592
592
  threadId: import_zod3.z.string().optional(),
593
593
  name: import_zod3.z.string().optional()
594
594
  });
@@ -596,7 +596,7 @@ var BookmarksRequestPayloadSchema = import_zod3.z.object({
596
596
  operation: import_zod3.z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
597
597
  data: import_zod3.z.object({
598
598
  id: import_zod3.z.number().optional(),
599
- userId: import_zod3.z.number().optional(),
599
+ userId: import_zod3.z.string().optional(),
600
600
  threadId: import_zod3.z.string().optional(),
601
601
  name: import_zod3.z.string().optional(),
602
602
  description: import_zod3.z.string().optional(),
@@ -614,7 +614,7 @@ var BookmarksRequestMessageSchema = import_zod3.z.object({
614
614
  payload: BookmarksRequestPayloadSchema
615
615
  });
616
616
  var ArtifactsQueryFiltersSchema = import_zod3.z.object({
617
- createdBy: import_zod3.z.number().optional(),
617
+ createdBy: import_zod3.z.string().optional(),
618
618
  type: import_zod3.z.string().optional(),
619
619
  status: import_zod3.z.string().optional(),
620
620
  name: import_zod3.z.string().optional(),
@@ -626,7 +626,7 @@ var ArtifactsRequestPayloadSchema = import_zod3.z.object({
626
626
  data: import_zod3.z.object({
627
627
  id: import_zod3.z.number().optional(),
628
628
  name: import_zod3.z.string().optional(),
629
- createdBy: import_zod3.z.number().optional(),
629
+ createdBy: import_zod3.z.string().optional(),
630
630
  dsl: import_zod3.z.record(import_zod3.z.any()).optional(),
631
631
  status: import_zod3.z.string().optional(),
632
632
  deleted: import_zod3.z.boolean().optional(),
@@ -655,7 +655,7 @@ var KbNodesQueryFiltersSchema = import_zod3.z.object({
655
655
  category: import_zod3.z.string().optional(),
656
656
  tags: import_zod3.z.array(import_zod3.z.string()).optional(),
657
657
  type: KbNodeTypeSchema.optional(),
658
- createdBy: import_zod3.z.number().optional()
658
+ createdBy: import_zod3.z.string().optional()
659
659
  });
660
660
  var KbNodesRequestPayloadSchema = import_zod3.z.object({
661
661
  operation: import_zod3.z.enum(["create", "update", "delete", "getAll", "getOne", "search", "getByCategory", "getByUser", "getCategories", "getTags"]),
@@ -666,9 +666,9 @@ var KbNodesRequestPayloadSchema = import_zod3.z.object({
666
666
  category: import_zod3.z.string().optional(),
667
667
  tags: import_zod3.z.array(import_zod3.z.string()).optional(),
668
668
  type: KbNodeTypeSchema.optional(),
669
- createdBy: import_zod3.z.number().optional(),
670
- updatedBy: import_zod3.z.number().optional(),
671
- userId: import_zod3.z.number().optional(),
669
+ createdBy: import_zod3.z.string().optional(),
670
+ updatedBy: import_zod3.z.string().optional(),
671
+ userId: import_zod3.z.string().optional(),
672
672
  // Query/search operation fields
673
673
  query: import_zod3.z.string().optional(),
674
674
  filters: KbNodesQueryFiltersSchema.optional(),
@@ -7352,7 +7352,7 @@ var getUserKnowledgeBase = async ({
7352
7352
  return "";
7353
7353
  }
7354
7354
  const result = await collections["knowledge-base"]["getByUser"]({
7355
- userId: Number(userId),
7355
+ userId: String(userId),
7356
7356
  limit
7357
7357
  });
7358
7358
  if (!result || !result.content) {