@superatomai/sdk-web 0.0.27 → 0.0.29
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.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -370,7 +370,7 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
370
370
|
type: z.ZodString;
|
|
371
371
|
description: z.ZodString;
|
|
372
372
|
props: z.ZodObject<{
|
|
373
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
373
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
374
374
|
title: z.ZodOptional<z.ZodString>;
|
|
375
375
|
description: z.ZodOptional<z.ZodString>;
|
|
376
376
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -393,7 +393,7 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
|
|
|
393
393
|
type: z.ZodString;
|
|
394
394
|
description: z.ZodString;
|
|
395
395
|
props: z.ZodObject<{
|
|
396
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
396
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
397
397
|
title: z.ZodOptional<z.ZodString>;
|
|
398
398
|
description: z.ZodOptional<z.ZodString>;
|
|
399
399
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -430,7 +430,7 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
|
|
|
430
430
|
type: z.ZodString;
|
|
431
431
|
description: z.ZodString;
|
|
432
432
|
props: z.ZodObject<{
|
|
433
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
433
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
434
434
|
title: z.ZodOptional<z.ZodString>;
|
|
435
435
|
description: z.ZodOptional<z.ZodString>;
|
|
436
436
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -491,7 +491,7 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
|
|
|
491
491
|
type: z.ZodString;
|
|
492
492
|
description: z.ZodString;
|
|
493
493
|
props: z.ZodObject<{
|
|
494
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
494
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
495
495
|
title: z.ZodOptional<z.ZodString>;
|
|
496
496
|
description: z.ZodOptional<z.ZodString>;
|
|
497
497
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -529,7 +529,7 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
|
|
|
529
529
|
type: z.ZodString;
|
|
530
530
|
description: z.ZodString;
|
|
531
531
|
props: z.ZodObject<{
|
|
532
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
532
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
533
533
|
title: z.ZodOptional<z.ZodString>;
|
|
534
534
|
description: z.ZodOptional<z.ZodString>;
|
|
535
535
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -954,6 +954,8 @@ declare const ArtifactDataSchema: z.ZodObject<{
|
|
|
954
954
|
name: z.ZodString;
|
|
955
955
|
createdBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
956
956
|
dsl: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
957
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
957
959
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
960
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
959
961
|
createdAt: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -370,7 +370,7 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
370
370
|
type: z.ZodString;
|
|
371
371
|
description: z.ZodString;
|
|
372
372
|
props: z.ZodObject<{
|
|
373
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
373
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
374
374
|
title: z.ZodOptional<z.ZodString>;
|
|
375
375
|
description: z.ZodOptional<z.ZodString>;
|
|
376
376
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -393,7 +393,7 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
|
|
|
393
393
|
type: z.ZodString;
|
|
394
394
|
description: z.ZodString;
|
|
395
395
|
props: z.ZodObject<{
|
|
396
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
396
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
397
397
|
title: z.ZodOptional<z.ZodString>;
|
|
398
398
|
description: z.ZodOptional<z.ZodString>;
|
|
399
399
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -430,7 +430,7 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
|
|
|
430
430
|
type: z.ZodString;
|
|
431
431
|
description: z.ZodString;
|
|
432
432
|
props: z.ZodObject<{
|
|
433
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
433
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
434
434
|
title: z.ZodOptional<z.ZodString>;
|
|
435
435
|
description: z.ZodOptional<z.ZodString>;
|
|
436
436
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -491,7 +491,7 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
|
|
|
491
491
|
type: z.ZodString;
|
|
492
492
|
description: z.ZodString;
|
|
493
493
|
props: z.ZodObject<{
|
|
494
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
494
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
495
495
|
title: z.ZodOptional<z.ZodString>;
|
|
496
496
|
description: z.ZodOptional<z.ZodString>;
|
|
497
497
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -529,7 +529,7 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
|
|
|
529
529
|
type: z.ZodString;
|
|
530
530
|
description: z.ZodString;
|
|
531
531
|
props: z.ZodObject<{
|
|
532
|
-
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]
|
|
532
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
533
533
|
title: z.ZodOptional<z.ZodString>;
|
|
534
534
|
description: z.ZodOptional<z.ZodString>;
|
|
535
535
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -954,6 +954,8 @@ declare const ArtifactDataSchema: z.ZodObject<{
|
|
|
954
954
|
name: z.ZodString;
|
|
955
955
|
createdBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
956
956
|
dsl: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
957
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
957
959
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
960
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
959
961
|
createdAt: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -274,7 +274,7 @@ var UserPromptRequestMessageSchema = z.object({
|
|
|
274
274
|
payload: UserPromptRequestPayloadSchema
|
|
275
275
|
});
|
|
276
276
|
var ComponentPropsSchema = z.object({
|
|
277
|
-
query: z.string().or(z.record(z.string(), z.unknown())).optional(),
|
|
277
|
+
query: z.string().or(z.record(z.string(), z.unknown())).nullable().optional(),
|
|
278
278
|
title: z.string().optional(),
|
|
279
279
|
description: z.string().optional(),
|
|
280
280
|
config: z.record(z.string(), z.unknown()).optional()
|
|
@@ -789,6 +789,8 @@ var ArtifactDataSchema = z.object({
|
|
|
789
789
|
name: z.string(),
|
|
790
790
|
createdBy: z.number().nullable().optional(),
|
|
791
791
|
dsl: z.record(z.string(), z.any()).nullable().optional(),
|
|
792
|
+
type: z.string().nullable().optional(),
|
|
793
|
+
filters: z.any().nullable().optional(),
|
|
792
794
|
status: z.string().nullable().optional(),
|
|
793
795
|
deleted: z.boolean().optional(),
|
|
794
796
|
createdAt: z.string().optional(),
|
|
@@ -1947,7 +1949,7 @@ async function createArtifact(client, options, timeout) {
|
|
|
1947
1949
|
filters: filters ? "present" : "undefined",
|
|
1948
1950
|
status
|
|
1949
1951
|
}, null, 2));
|
|
1950
|
-
const messageId = `artifacts_create_${Date.now()}`;
|
|
1952
|
+
const messageId = `artifacts_create_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
1951
1953
|
const messageData = {
|
|
1952
1954
|
name,
|
|
1953
1955
|
createdBy,
|
|
@@ -1978,7 +1980,7 @@ async function createArtifact(client, options, timeout) {
|
|
|
1978
1980
|
}
|
|
1979
1981
|
async function updateArtifact(client, options, timeout) {
|
|
1980
1982
|
const { id, name, dsl, type, filters, status, deleted } = options;
|
|
1981
|
-
const messageId = `artifacts_update_${Date.now()}`;
|
|
1983
|
+
const messageId = `artifacts_update_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
1982
1984
|
const message = ArtifactsRequestMessageSchema.parse({
|
|
1983
1985
|
id: messageId,
|
|
1984
1986
|
type: "ARTIFACTS",
|
|
@@ -2007,7 +2009,7 @@ async function updateArtifact(client, options, timeout) {
|
|
|
2007
2009
|
};
|
|
2008
2010
|
}
|
|
2009
2011
|
async function deleteArtifact(client, id, timeout) {
|
|
2010
|
-
const messageId = `artifacts_delete_${Date.now()}`;
|
|
2012
|
+
const messageId = `artifacts_delete_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
2011
2013
|
const message = ArtifactsRequestMessageSchema.parse({
|
|
2012
2014
|
id: messageId,
|
|
2013
2015
|
type: "ARTIFACTS",
|
|
@@ -2030,7 +2032,7 @@ async function deleteArtifact(client, id, timeout) {
|
|
|
2030
2032
|
};
|
|
2031
2033
|
}
|
|
2032
2034
|
async function getAllArtifacts(client, limit, timeout) {
|
|
2033
|
-
const messageId = `artifacts_getall_${Date.now()}`;
|
|
2035
|
+
const messageId = `artifacts_getall_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
2034
2036
|
const message = ArtifactsRequestMessageSchema.parse({
|
|
2035
2037
|
id: messageId,
|
|
2036
2038
|
type: "ARTIFACTS",
|
|
@@ -2052,7 +2054,7 @@ async function getAllArtifacts(client, limit, timeout) {
|
|
|
2052
2054
|
};
|
|
2053
2055
|
}
|
|
2054
2056
|
async function getArtifact(client, id, timeout) {
|
|
2055
|
-
const messageId = `artifacts_getone_${Date.now()}`;
|
|
2057
|
+
const messageId = `artifacts_getone_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
2056
2058
|
const message = ArtifactsRequestMessageSchema.parse({
|
|
2057
2059
|
id: messageId,
|
|
2058
2060
|
type: "ARTIFACTS",
|
|
@@ -2076,7 +2078,7 @@ async function getArtifact(client, id, timeout) {
|
|
|
2076
2078
|
}
|
|
2077
2079
|
async function queryArtifacts(client, options = {}, timeout) {
|
|
2078
2080
|
const { filters, limit, offset, sort } = options;
|
|
2079
|
-
const messageId = `artifacts_query_${Date.now()}`;
|
|
2081
|
+
const messageId = `artifacts_query_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
2080
2082
|
console.log("[SDK-WEB] queryArtifacts - options.filters:", JSON.stringify(filters, null, 2));
|
|
2081
2083
|
const messageBeforeParse = {
|
|
2082
2084
|
id: messageId,
|