@archastro/sdk 0.18.0 → 0.19.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/dist/auth.d.ts +42 -18
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +53 -19
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_chat_channel.d.ts +11 -1
- package/dist/channels/api_chat_channel.d.ts.map +1 -1
- package/dist/channels/api_chat_channel.js +14 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/effective-access.d.ts +1 -1
- package/dist/effective-access.d.ts.map +1 -1
- package/dist/effective-access.js +2 -5
- package/dist/effective-access.js.map +1 -1
- package/dist/types/ai.d.ts +310 -0
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +51 -1
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +14 -2
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +5 -1
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/chat.d.ts +192 -168
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +10 -3
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +341 -128
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +37 -20
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +2 -2
- package/dist/types/events.d.ts +32 -32
- package/dist/types/extractions.d.ts +12 -12
- package/dist/types/tasks.d.ts +34 -8
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +12 -3
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +10 -10
- package/dist/types/threads.d.ts +18 -18
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +3 -3
- package/dist/types/threads.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +8 -2
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +7 -2
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +72 -1
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +44 -1
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +52 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +35 -1
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/files.d.ts +7 -0
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +8 -1
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/knowledge_sources.d.ts +41 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +31 -1
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/orgs.d.ts +506 -0
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +71 -1
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/sandboxes.d.ts +3 -2
- package/dist/v1/resources/sandboxes.d.ts.map +1 -1
- package/dist/v1/resources/sandboxes.js +4 -3
- package/dist/v1/resources/sandboxes.js.map +1 -1
- package/dist/v1/resources/scripts.d.ts +6 -2
- package/dist/v1/resources/scripts.d.ts.map +1 -1
- package/dist/v1/resources/scripts.js +5 -3
- package/dist/v1/resources/scripts.js.map +1 -1
- package/dist/v1/resources/tasks.d.ts +58 -3
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +61 -2
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +46 -14
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +54 -16
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +16 -6
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +19 -8
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +13 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +13 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/package.json +1 -1
package/dist/types/ai.d.ts
CHANGED
|
@@ -736,6 +736,304 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
736
736
|
finish_reason: string;
|
|
737
737
|
token_usage?: Record<string, {} | null> | undefined;
|
|
738
738
|
}>;
|
|
739
|
+
/** Probability that the statement is true, in `[0, 1]`. */
|
|
740
|
+
export interface AIEvaluationAnswerBoolean {
|
|
741
|
+
id: string;
|
|
742
|
+
probability: number;
|
|
743
|
+
type: "boolean";
|
|
744
|
+
}
|
|
745
|
+
/** Runtime validator for {@link AIEvaluationAnswerBoolean}. */
|
|
746
|
+
export declare const aIEvaluationAnswerBooleanSchema: z.ZodObject<{
|
|
747
|
+
id: z.ZodString;
|
|
748
|
+
probability: z.ZodNumber;
|
|
749
|
+
type: z.ZodLiteral<"boolean">;
|
|
750
|
+
}, "strip", z.ZodTypeAny, {
|
|
751
|
+
type: "boolean";
|
|
752
|
+
id: string;
|
|
753
|
+
probability: number;
|
|
754
|
+
}, {
|
|
755
|
+
type: "boolean";
|
|
756
|
+
id: string;
|
|
757
|
+
probability: number;
|
|
758
|
+
}>;
|
|
759
|
+
/** Selected option plus the full probability distribution. */
|
|
760
|
+
export interface AIEvaluationAnswerChoice {
|
|
761
|
+
choice: string;
|
|
762
|
+
confidence?: number | undefined;
|
|
763
|
+
id: string;
|
|
764
|
+
probabilities: Record<string, unknown>;
|
|
765
|
+
type: "choice";
|
|
766
|
+
}
|
|
767
|
+
/** Runtime validator for {@link AIEvaluationAnswerChoice}. */
|
|
768
|
+
export declare const aIEvaluationAnswerChoiceSchema: z.ZodObject<{
|
|
769
|
+
choice: z.ZodString;
|
|
770
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
771
|
+
id: z.ZodString;
|
|
772
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
773
|
+
type: z.ZodLiteral<"choice">;
|
|
774
|
+
}, "strip", z.ZodTypeAny, {
|
|
775
|
+
type: "choice";
|
|
776
|
+
id: string;
|
|
777
|
+
choice: string;
|
|
778
|
+
probabilities: Record<string, {} | null>;
|
|
779
|
+
confidence?: number | undefined;
|
|
780
|
+
}, {
|
|
781
|
+
type: "choice";
|
|
782
|
+
id: string;
|
|
783
|
+
choice: string;
|
|
784
|
+
probabilities: Record<string, {} | null>;
|
|
785
|
+
confidence?: number | undefined;
|
|
786
|
+
}>;
|
|
787
|
+
/** Probability-weighted position along the caller-defined levels. */
|
|
788
|
+
export interface AIEvaluationAnswerScore {
|
|
789
|
+
confidence?: number | undefined;
|
|
790
|
+
id: string;
|
|
791
|
+
legend: Record<string, unknown>;
|
|
792
|
+
probabilities: Record<string, unknown>;
|
|
793
|
+
score: number;
|
|
794
|
+
type: "score";
|
|
795
|
+
}
|
|
796
|
+
/** Runtime validator for {@link AIEvaluationAnswerScore}. */
|
|
797
|
+
export declare const aIEvaluationAnswerScoreSchema: z.ZodObject<{
|
|
798
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
799
|
+
id: z.ZodString;
|
|
800
|
+
legend: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
801
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
802
|
+
score: z.ZodNumber;
|
|
803
|
+
type: z.ZodLiteral<"score">;
|
|
804
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
|
+
type: "score";
|
|
806
|
+
id: string;
|
|
807
|
+
score: number;
|
|
808
|
+
probabilities: Record<string, {} | null>;
|
|
809
|
+
legend: Record<string, {} | null>;
|
|
810
|
+
confidence?: number | undefined;
|
|
811
|
+
}, {
|
|
812
|
+
type: "score";
|
|
813
|
+
id: string;
|
|
814
|
+
score: number;
|
|
815
|
+
probabilities: Record<string, {} | null>;
|
|
816
|
+
legend: Record<string, {} | null>;
|
|
817
|
+
confidence?: number | undefined;
|
|
818
|
+
}>;
|
|
819
|
+
/**
|
|
820
|
+
* One typed evaluation answer. `type` selects boolean, choice, or score.
|
|
821
|
+
* `id` matches the question id.
|
|
822
|
+
*/
|
|
823
|
+
export declare const aIEvaluationAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
824
|
+
id: z.ZodString;
|
|
825
|
+
probability: z.ZodNumber;
|
|
826
|
+
type: z.ZodLiteral<"boolean">;
|
|
827
|
+
}, "strip", z.ZodTypeAny, {
|
|
828
|
+
type: "boolean";
|
|
829
|
+
id: string;
|
|
830
|
+
probability: number;
|
|
831
|
+
}, {
|
|
832
|
+
type: "boolean";
|
|
833
|
+
id: string;
|
|
834
|
+
probability: number;
|
|
835
|
+
}>, z.ZodObject<{
|
|
836
|
+
choice: z.ZodString;
|
|
837
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
840
|
+
type: z.ZodLiteral<"choice">;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
type: "choice";
|
|
843
|
+
id: string;
|
|
844
|
+
choice: string;
|
|
845
|
+
probabilities: Record<string, {} | null>;
|
|
846
|
+
confidence?: number | undefined;
|
|
847
|
+
}, {
|
|
848
|
+
type: "choice";
|
|
849
|
+
id: string;
|
|
850
|
+
choice: string;
|
|
851
|
+
probabilities: Record<string, {} | null>;
|
|
852
|
+
confidence?: number | undefined;
|
|
853
|
+
}>, z.ZodObject<{
|
|
854
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
855
|
+
id: z.ZodString;
|
|
856
|
+
legend: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
857
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
858
|
+
score: z.ZodNumber;
|
|
859
|
+
type: z.ZodLiteral<"score">;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
type: "score";
|
|
862
|
+
id: string;
|
|
863
|
+
score: number;
|
|
864
|
+
probabilities: Record<string, {} | null>;
|
|
865
|
+
legend: Record<string, {} | null>;
|
|
866
|
+
confidence?: number | undefined;
|
|
867
|
+
}, {
|
|
868
|
+
type: "score";
|
|
869
|
+
id: string;
|
|
870
|
+
score: number;
|
|
871
|
+
probabilities: Record<string, {} | null>;
|
|
872
|
+
legend: Record<string, {} | null>;
|
|
873
|
+
confidence?: number | undefined;
|
|
874
|
+
}>]>;
|
|
875
|
+
/**
|
|
876
|
+
* One typed evaluation answer. `type` selects boolean, choice, or score.
|
|
877
|
+
* `id` matches the question id.
|
|
878
|
+
*/
|
|
879
|
+
export type AIEvaluationAnswer = z.infer<typeof aIEvaluationAnswerSchema>;
|
|
880
|
+
/** Token counts for one evaluation request. */
|
|
881
|
+
export interface AIEvaluationUsage {
|
|
882
|
+
/** Provider-reported input tokens. `null` when the provider omitted the count. */
|
|
883
|
+
input_tokens?: number | undefined;
|
|
884
|
+
/** Provider-reported output tokens. `null` when the provider omitted the count. */
|
|
885
|
+
output_tokens?: number | undefined;
|
|
886
|
+
}
|
|
887
|
+
/** Runtime validator for {@link AIEvaluationUsage}. */
|
|
888
|
+
export declare const aIEvaluationUsageSchema: z.ZodObject<{
|
|
889
|
+
/** Provider-reported input tokens. `null` when the provider omitted the count. */
|
|
890
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
891
|
+
/** Provider-reported output tokens. `null` when the provider omitted the count. */
|
|
892
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
893
|
+
}, "strip", z.ZodTypeAny, {
|
|
894
|
+
input_tokens?: number | undefined;
|
|
895
|
+
output_tokens?: number | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
input_tokens?: number | undefined;
|
|
898
|
+
output_tokens?: number | undefined;
|
|
899
|
+
}>;
|
|
900
|
+
/**
|
|
901
|
+
* Result of an evaluation request: typed answers, the model that ran, and
|
|
902
|
+
* token usage.
|
|
903
|
+
*/
|
|
904
|
+
export interface AIEvaluationResult {
|
|
905
|
+
/** Typed answers. Each value is a boolean, choice, or score object with the question `id`. */
|
|
906
|
+
answers: AIEvaluationAnswer[];
|
|
907
|
+
/** Model identifier that produced the answers. */
|
|
908
|
+
model: string;
|
|
909
|
+
/** UUID grouping this evaluation's usage record. Generated when omitted on the request. */
|
|
910
|
+
session_id?: string | undefined;
|
|
911
|
+
/** Token usage for this request. `null` when usage data is unavailable. */
|
|
912
|
+
usage?: AIEvaluationUsage | undefined;
|
|
913
|
+
}
|
|
914
|
+
/** Runtime validator for {@link AIEvaluationResult}. */
|
|
915
|
+
export declare const aIEvaluationResultSchema: z.ZodObject<{
|
|
916
|
+
/** Typed answers. Each value is a boolean, choice, or score object with the question `id`. */
|
|
917
|
+
answers: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
918
|
+
id: z.ZodString;
|
|
919
|
+
probability: z.ZodNumber;
|
|
920
|
+
type: z.ZodLiteral<"boolean">;
|
|
921
|
+
}, "strip", z.ZodTypeAny, {
|
|
922
|
+
type: "boolean";
|
|
923
|
+
id: string;
|
|
924
|
+
probability: number;
|
|
925
|
+
}, {
|
|
926
|
+
type: "boolean";
|
|
927
|
+
id: string;
|
|
928
|
+
probability: number;
|
|
929
|
+
}>, z.ZodObject<{
|
|
930
|
+
choice: z.ZodString;
|
|
931
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
932
|
+
id: z.ZodString;
|
|
933
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
934
|
+
type: z.ZodLiteral<"choice">;
|
|
935
|
+
}, "strip", z.ZodTypeAny, {
|
|
936
|
+
type: "choice";
|
|
937
|
+
id: string;
|
|
938
|
+
choice: string;
|
|
939
|
+
probabilities: Record<string, {} | null>;
|
|
940
|
+
confidence?: number | undefined;
|
|
941
|
+
}, {
|
|
942
|
+
type: "choice";
|
|
943
|
+
id: string;
|
|
944
|
+
choice: string;
|
|
945
|
+
probabilities: Record<string, {} | null>;
|
|
946
|
+
confidence?: number | undefined;
|
|
947
|
+
}>, z.ZodObject<{
|
|
948
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
949
|
+
id: z.ZodString;
|
|
950
|
+
legend: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
951
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
952
|
+
score: z.ZodNumber;
|
|
953
|
+
type: z.ZodLiteral<"score">;
|
|
954
|
+
}, "strip", z.ZodTypeAny, {
|
|
955
|
+
type: "score";
|
|
956
|
+
id: string;
|
|
957
|
+
score: number;
|
|
958
|
+
probabilities: Record<string, {} | null>;
|
|
959
|
+
legend: Record<string, {} | null>;
|
|
960
|
+
confidence?: number | undefined;
|
|
961
|
+
}, {
|
|
962
|
+
type: "score";
|
|
963
|
+
id: string;
|
|
964
|
+
score: number;
|
|
965
|
+
probabilities: Record<string, {} | null>;
|
|
966
|
+
legend: Record<string, {} | null>;
|
|
967
|
+
confidence?: number | undefined;
|
|
968
|
+
}>]>, "many">;
|
|
969
|
+
/** Model identifier that produced the answers. */
|
|
970
|
+
model: z.ZodString;
|
|
971
|
+
/** UUID grouping this evaluation's usage record. Generated when omitted on the request. */
|
|
972
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
973
|
+
/** Token usage for this request. `null` when usage data is unavailable. */
|
|
974
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
975
|
+
/** Provider-reported input tokens. `null` when the provider omitted the count. */
|
|
976
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
977
|
+
/** Provider-reported output tokens. `null` when the provider omitted the count. */
|
|
978
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
}, "strip", z.ZodTypeAny, {
|
|
980
|
+
input_tokens?: number | undefined;
|
|
981
|
+
output_tokens?: number | undefined;
|
|
982
|
+
}, {
|
|
983
|
+
input_tokens?: number | undefined;
|
|
984
|
+
output_tokens?: number | undefined;
|
|
985
|
+
}>>;
|
|
986
|
+
}, "strip", z.ZodTypeAny, {
|
|
987
|
+
model: string;
|
|
988
|
+
answers: ({
|
|
989
|
+
type: "boolean";
|
|
990
|
+
id: string;
|
|
991
|
+
probability: number;
|
|
992
|
+
} | {
|
|
993
|
+
type: "choice";
|
|
994
|
+
id: string;
|
|
995
|
+
choice: string;
|
|
996
|
+
probabilities: Record<string, {} | null>;
|
|
997
|
+
confidence?: number | undefined;
|
|
998
|
+
} | {
|
|
999
|
+
type: "score";
|
|
1000
|
+
id: string;
|
|
1001
|
+
score: number;
|
|
1002
|
+
probabilities: Record<string, {} | null>;
|
|
1003
|
+
legend: Record<string, {} | null>;
|
|
1004
|
+
confidence?: number | undefined;
|
|
1005
|
+
})[];
|
|
1006
|
+
usage?: {
|
|
1007
|
+
input_tokens?: number | undefined;
|
|
1008
|
+
output_tokens?: number | undefined;
|
|
1009
|
+
} | undefined;
|
|
1010
|
+
session_id?: string | undefined;
|
|
1011
|
+
}, {
|
|
1012
|
+
model: string;
|
|
1013
|
+
answers: ({
|
|
1014
|
+
type: "boolean";
|
|
1015
|
+
id: string;
|
|
1016
|
+
probability: number;
|
|
1017
|
+
} | {
|
|
1018
|
+
type: "choice";
|
|
1019
|
+
id: string;
|
|
1020
|
+
choice: string;
|
|
1021
|
+
probabilities: Record<string, {} | null>;
|
|
1022
|
+
confidence?: number | undefined;
|
|
1023
|
+
} | {
|
|
1024
|
+
type: "score";
|
|
1025
|
+
id: string;
|
|
1026
|
+
score: number;
|
|
1027
|
+
probabilities: Record<string, {} | null>;
|
|
1028
|
+
legend: Record<string, {} | null>;
|
|
1029
|
+
confidence?: number | undefined;
|
|
1030
|
+
})[];
|
|
1031
|
+
usage?: {
|
|
1032
|
+
input_tokens?: number | undefined;
|
|
1033
|
+
output_tokens?: number | undefined;
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
session_id?: string | undefined;
|
|
1036
|
+
}>;
|
|
739
1037
|
/** The result returned by an AI image generation or editing operation. Contains the generated image (as inline data or a URL) along with dimension, size, and usage metadata. */
|
|
740
1038
|
export interface AIImageResult {
|
|
741
1039
|
/** Aspect ratio of the generated image, e.g. `"16:9"` or `"1:1"`. `null` when not reported by the provider. */
|
|
@@ -754,10 +1052,14 @@ export interface AIImageResult {
|
|
|
754
1052
|
model: string;
|
|
755
1053
|
/** The prompt as rewritten by the provider before generation. Some providers (e.g. DALL-E 3) automatically expand or safety-check the original prompt. `null` when the provider does not revise prompts. */
|
|
756
1054
|
revised_prompt?: string | undefined;
|
|
1055
|
+
/** UUID grouping this image request's provider attempts for usage and billing. */
|
|
1056
|
+
session_id?: string | undefined;
|
|
757
1057
|
/** Canonical size string as returned by the provider, e.g. `"1024x1024"`. `null` when not reported. */
|
|
758
1058
|
size?: string | undefined;
|
|
759
1059
|
/** Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable. */
|
|
760
1060
|
usage?: Record<string, unknown> | undefined;
|
|
1061
|
+
/** Number of provider responses contributing usage records to this request, including image-generation retries. */
|
|
1062
|
+
usage_attempt_count?: number | undefined;
|
|
761
1063
|
/** Width of the generated image in pixels. `null` when the provider does not report dimensions. */
|
|
762
1064
|
width?: number | undefined;
|
|
763
1065
|
}
|
|
@@ -779,10 +1081,14 @@ export declare const aIImageResultSchema: z.ZodObject<{
|
|
|
779
1081
|
model: z.ZodString;
|
|
780
1082
|
/** The prompt as rewritten by the provider before generation. Some providers (e.g. DALL-E 3) automatically expand or safety-check the original prompt. `null` when the provider does not revise prompts. */
|
|
781
1083
|
revised_prompt: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
/** UUID grouping this image request's provider attempts for usage and billing. */
|
|
1085
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
782
1086
|
/** Canonical size string as returned by the provider, e.g. `"1024x1024"`. `null` when not reported. */
|
|
783
1087
|
size: z.ZodOptional<z.ZodString>;
|
|
784
1088
|
/** Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable. */
|
|
785
1089
|
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
1090
|
+
/** Number of provider responses contributing usage records to this request, including image-generation retries. */
|
|
1091
|
+
usage_attempt_count: z.ZodOptional<z.ZodNumber>;
|
|
786
1092
|
/** Width of the generated image in pixels. `null` when the provider does not report dimensions. */
|
|
787
1093
|
width: z.ZodOptional<z.ZodNumber>;
|
|
788
1094
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -792,11 +1098,13 @@ export declare const aIImageResultSchema: z.ZodObject<{
|
|
|
792
1098
|
image_url?: string | undefined;
|
|
793
1099
|
size?: string | undefined;
|
|
794
1100
|
usage?: Record<string, {} | null> | undefined;
|
|
1101
|
+
session_id?: string | undefined;
|
|
795
1102
|
aspect_ratio?: string | undefined;
|
|
796
1103
|
image_data?: string | undefined;
|
|
797
1104
|
image_size?: string | undefined;
|
|
798
1105
|
image_type?: string | undefined;
|
|
799
1106
|
revised_prompt?: string | undefined;
|
|
1107
|
+
usage_attempt_count?: number | undefined;
|
|
800
1108
|
}, {
|
|
801
1109
|
model: string;
|
|
802
1110
|
height?: number | undefined;
|
|
@@ -804,10 +1112,12 @@ export declare const aIImageResultSchema: z.ZodObject<{
|
|
|
804
1112
|
image_url?: string | undefined;
|
|
805
1113
|
size?: string | undefined;
|
|
806
1114
|
usage?: Record<string, {} | null> | undefined;
|
|
1115
|
+
session_id?: string | undefined;
|
|
807
1116
|
aspect_ratio?: string | undefined;
|
|
808
1117
|
image_data?: string | undefined;
|
|
809
1118
|
image_size?: string | undefined;
|
|
810
1119
|
image_type?: string | undefined;
|
|
811
1120
|
revised_prompt?: string | undefined;
|
|
1121
|
+
usage_attempt_count?: number | undefined;
|
|
812
1122
|
}>;
|
|
813
1123
|
//# sourceMappingURL=ai.d.ts.map
|
package/dist/types/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/types/ai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,wFAAwF;AACxF,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,sFAAsF;IACtF,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,uHAAuH;IACvH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,sDAAsD;AACtD,eAAO,MAAM,sBAAsB;IACjC,oDAAoD;;IAEpD,sFAAsF;;IAEtF,uHAAuH;;IAEvH,wDAAwD;;;;;;;;;;;;EAE4E,CAAC;AAEvI,gFAAgF;AAChF,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,uDAAuD;AACvD,eAAO,MAAM,uBAAuB;IAClC,0EAA0E;;;;;;EAEmD,CAAC;AAEhI,wHAAwH;AACxH,MAAM,WAAW,UAAU;IACzB,0JAA0J;IAC1J,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,yIAAyI;IACzI,EAAE,EAAE,MAAM,CAAC;IACX,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;IACb,+JAA+J;IAC/J,iBAAiB,CAAC,EAAE,MAAM,GAAG,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,sIAAsI;IACtI,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC5C,mHAAmH;IACnH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;IAC9B,+GAA+G;;IAE/G,oGAAoG;;IAEpG,mJAAmJ;;IAEnJ,0HAA0H;;IAE1H,uIAAuI;;IAEvI,sLAAsL;;IAEtL,0FAA0F;;IAE1F,4MAA4M;;IAE5M,kFAAkF;;IAElF,uGAAuG;;IAEvG,sIAAsI;;IAEtI,mHAAmH;;IAEnH,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEuH,CAAC"}
|
package/dist/types/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: ba7d38c074da
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
/** Runtime validator for {@link AIChatStreamDone}. */
|
|
6
6
|
export const aIChatStreamDoneSchema = z.object({
|
|
@@ -107,6 +107,52 @@ export const aICompletionResultSchema = z.object({
|
|
|
107
107
|
/** Token consumption breakdown keyed by model ID. Each value is a map with `"input_tokens"` and `"output_tokens"` counts. `null` when usage data is unavailable. */
|
|
108
108
|
token_usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Token consumption breakdown keyed by model ID. Each value is a map with `\"input_tokens\"` and `\"output_tokens\"` counts. `null` when usage data is unavailable."),
|
|
109
109
|
}).describe("The result of an AI chat completion request. Returned by chat completion endpoints after the model finishes generating.");
|
|
110
|
+
/** Runtime validator for {@link AIEvaluationAnswerBoolean}. */
|
|
111
|
+
export const aIEvaluationAnswerBooleanSchema = z.object({
|
|
112
|
+
id: z.string(),
|
|
113
|
+
probability: z.number(),
|
|
114
|
+
type: z.literal("boolean"),
|
|
115
|
+
}).describe("Probability that the statement is true, in `[0, 1]`.");
|
|
116
|
+
/** Runtime validator for {@link AIEvaluationAnswerChoice}. */
|
|
117
|
+
export const aIEvaluationAnswerChoiceSchema = z.object({
|
|
118
|
+
choice: z.string(),
|
|
119
|
+
confidence: z.number().optional(),
|
|
120
|
+
id: z.string(),
|
|
121
|
+
probabilities: z.record(z.custom((value) => value !== undefined)),
|
|
122
|
+
type: z.literal("choice"),
|
|
123
|
+
}).describe("Selected option plus the full probability distribution.");
|
|
124
|
+
/** Runtime validator for {@link AIEvaluationAnswerScore}. */
|
|
125
|
+
export const aIEvaluationAnswerScoreSchema = z.object({
|
|
126
|
+
confidence: z.number().optional(),
|
|
127
|
+
id: z.string(),
|
|
128
|
+
legend: z.record(z.custom((value) => value !== undefined)),
|
|
129
|
+
probabilities: z.record(z.custom((value) => value !== undefined)),
|
|
130
|
+
score: z.number(),
|
|
131
|
+
type: z.literal("score"),
|
|
132
|
+
}).describe("Probability-weighted position along the caller-defined levels.");
|
|
133
|
+
/**
|
|
134
|
+
* One typed evaluation answer. `type` selects boolean, choice, or score.
|
|
135
|
+
* `id` matches the question id.
|
|
136
|
+
*/
|
|
137
|
+
export const aIEvaluationAnswerSchema = z.discriminatedUnion("type", [aIEvaluationAnswerBooleanSchema, aIEvaluationAnswerChoiceSchema, aIEvaluationAnswerScoreSchema]);
|
|
138
|
+
/** Runtime validator for {@link AIEvaluationUsage}. */
|
|
139
|
+
export const aIEvaluationUsageSchema = z.object({
|
|
140
|
+
/** Provider-reported input tokens. `null` when the provider omitted the count. */
|
|
141
|
+
input_tokens: z.number().int().optional().describe("Provider-reported input tokens. `null` when the provider omitted the count."),
|
|
142
|
+
/** Provider-reported output tokens. `null` when the provider omitted the count. */
|
|
143
|
+
output_tokens: z.number().int().optional().describe("Provider-reported output tokens. `null` when the provider omitted the count."),
|
|
144
|
+
}).describe("Token counts for one evaluation request.");
|
|
145
|
+
/** Runtime validator for {@link AIEvaluationResult}. */
|
|
146
|
+
export const aIEvaluationResultSchema = z.object({
|
|
147
|
+
/** Typed answers. Each value is a boolean, choice, or score object with the question `id`. */
|
|
148
|
+
answers: z.array(aIEvaluationAnswerSchema).describe("Typed answers. Each value is a boolean, choice, or score object with the question `id`."),
|
|
149
|
+
/** Model identifier that produced the answers. */
|
|
150
|
+
model: z.string().describe("Model identifier that produced the answers."),
|
|
151
|
+
/** UUID grouping this evaluation's usage record. Generated when omitted on the request. */
|
|
152
|
+
session_id: z.string().optional().describe("UUID grouping this evaluation's usage record. Generated when omitted on the request."),
|
|
153
|
+
/** Token usage for this request. `null` when usage data is unavailable. */
|
|
154
|
+
usage: aIEvaluationUsageSchema.optional().describe("Token usage for this request. `null` when usage data is unavailable."),
|
|
155
|
+
}).describe("Result of an evaluation request: typed answers, the model that ran, and token usage.");
|
|
110
156
|
/** Runtime validator for {@link AIImageResult}. */
|
|
111
157
|
export const aIImageResultSchema = z.object({
|
|
112
158
|
/** Aspect ratio of the generated image, e.g. `"16:9"` or `"1:1"`. `null` when not reported by the provider. */
|
|
@@ -125,10 +171,14 @@ export const aIImageResultSchema = z.object({
|
|
|
125
171
|
model: z.string().describe("Identifier of the model that produced the image, e.g. `\"dall-e-3\"` or `\"imagen-3\"`."),
|
|
126
172
|
/** The prompt as rewritten by the provider before generation. Some providers (e.g. DALL-E 3) automatically expand or safety-check the original prompt. `null` when the provider does not revise prompts. */
|
|
127
173
|
revised_prompt: z.string().optional().describe("The prompt as rewritten by the provider before generation. Some providers (e.g. DALL-E 3) automatically expand or safety-check the original prompt. `null` when the provider does not revise prompts."),
|
|
174
|
+
/** UUID grouping this image request's provider attempts for usage and billing. */
|
|
175
|
+
session_id: z.string().optional().describe("UUID grouping this image request's provider attempts for usage and billing."),
|
|
128
176
|
/** Canonical size string as returned by the provider, e.g. `"1024x1024"`. `null` when not reported. */
|
|
129
177
|
size: z.string().optional().describe("Canonical size string as returned by the provider, e.g. `\"1024x1024\"`. `null` when not reported."),
|
|
130
178
|
/** Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable. */
|
|
131
179
|
usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable."),
|
|
180
|
+
/** Number of provider responses contributing usage records to this request, including image-generation retries. */
|
|
181
|
+
usage_attempt_count: z.number().int().optional().describe("Number of provider responses contributing usage records to this request, including image-generation retries."),
|
|
132
182
|
/** Width of the generated image in pixels. `null` when the provider does not report dimensions. */
|
|
133
183
|
width: z.number().int().optional().describe("Width of the generated image in pixels. `null` when the provider does not report dimensions."),
|
|
134
184
|
}).describe("The result returned by an AI image generation or editing operation. Contains the generated image (as inline data or a URL) along with dimension, size, and usage metadata.");
|
package/dist/types/ai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../../src/types/ai.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,oDAAoD;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IAC9F,sFAAsF;IACtF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iFAAiF,CAAC;IAClI,uHAAuH;IACvH,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CA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AE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6EAA6E,CAAC;IACzH,uGAAuG;IACvG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oGAAoG,CAAC;IAC1I,sIAAsI;IACtI,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iIAAiI,CAAC;IAC3N,mHAAmH;IACnH,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8GAA8G,CAAC;IACzK,mGAAmG;IACnG,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8FAA8F,CAAC;CAC5I,CAAC,CAAC,QAAQ,CAAC,4KAA4K,CAAoC,CAAC"}
|
|
@@ -18,6 +18,8 @@ export interface Artifact {
|
|
|
18
18
|
file_name?: string | undefined;
|
|
19
19
|
/** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
|
|
20
20
|
file_url?: string | undefined;
|
|
21
|
+
/** Optional nonunique, case-sensitive grouping key, limited to 1024 UTF-8 bytes. Null when unset; belongs to the artifact, not a content version. */
|
|
22
|
+
group_key?: string | null | undefined;
|
|
21
23
|
/** Artifact ID (`art_...`). */
|
|
22
24
|
id: string;
|
|
23
25
|
/** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
|
|
@@ -28,6 +30,8 @@ export interface Artifact {
|
|
|
28
30
|
org?: string | undefined;
|
|
29
31
|
/** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
|
|
30
32
|
sandbox?: string | undefined;
|
|
33
|
+
/** True when the artifact has no user, team, or agent owner. An organization may own a system artifact. */
|
|
34
|
+
system?: boolean | undefined;
|
|
31
35
|
/** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
|
|
32
36
|
team?: string | undefined;
|
|
33
37
|
/** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
|
|
@@ -57,6 +61,8 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
57
61
|
file_name: z.ZodOptional<z.ZodString>;
|
|
58
62
|
/** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
|
|
59
63
|
file_url: z.ZodOptional<z.ZodString>;
|
|
64
|
+
/** Optional nonunique, case-sensitive grouping key, limited to 1024 UTF-8 bytes. Null when unset; belongs to the artifact, not a content version. */
|
|
65
|
+
group_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
66
|
/** Artifact ID (`art_...`). */
|
|
61
67
|
id: z.ZodString;
|
|
62
68
|
/** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
|
|
@@ -91,6 +97,8 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
91
97
|
org: z.ZodOptional<z.ZodString>;
|
|
92
98
|
/** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
|
|
93
99
|
sandbox: z.ZodOptional<z.ZodString>;
|
|
100
|
+
/** True when the artifact has no user, team, or agent owner. An organization may own a system artifact. */
|
|
101
|
+
system: z.ZodOptional<z.ZodBoolean>;
|
|
94
102
|
/** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
|
|
95
103
|
team: z.ZodOptional<z.ZodString>;
|
|
96
104
|
/** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
|
|
@@ -105,10 +113,10 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
105
113
|
id: string;
|
|
106
114
|
user?: string | undefined;
|
|
107
115
|
name?: string | undefined;
|
|
116
|
+
org?: string | undefined;
|
|
108
117
|
agent?: string | undefined;
|
|
109
118
|
thread?: string | undefined;
|
|
110
119
|
team?: string | undefined;
|
|
111
|
-
org?: string | undefined;
|
|
112
120
|
description?: string | undefined;
|
|
113
121
|
created_at?: string | undefined;
|
|
114
122
|
updated_at?: string | undefined;
|
|
@@ -128,14 +136,16 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
128
136
|
version?: number | undefined;
|
|
129
137
|
file_name?: string | undefined;
|
|
130
138
|
file_url?: string | undefined;
|
|
139
|
+
group_key?: string | null | undefined;
|
|
140
|
+
system?: boolean | undefined;
|
|
131
141
|
}, {
|
|
132
142
|
id: string;
|
|
133
143
|
user?: string | undefined;
|
|
134
144
|
name?: string | undefined;
|
|
145
|
+
org?: string | undefined;
|
|
135
146
|
agent?: string | undefined;
|
|
136
147
|
thread?: string | undefined;
|
|
137
148
|
team?: string | undefined;
|
|
138
|
-
org?: string | undefined;
|
|
139
149
|
description?: string | undefined;
|
|
140
150
|
created_at?: string | undefined;
|
|
141
151
|
updated_at?: string | undefined;
|
|
@@ -155,5 +165,7 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
155
165
|
version?: number | undefined;
|
|
156
166
|
file_name?: string | undefined;
|
|
157
167
|
file_url?: string | undefined;
|
|
168
|
+
group_key?: string | null | undefined;
|
|
169
|
+
system?: boolean | undefined;
|
|
158
170
|
}>;
|
|
159
171
|
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,8GAA8G;AAC9G,MAAM,WAAW,QAAQ;IACvB,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,kHAAkH;IAClH,YAAY,CAAC,EAAE,MAAM,GAAG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O,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,2GAA2G;IAC3G,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,oGAAoG;IACpG,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,8CAA8C;AAC9C,eAAO,MAAM,cAAc;IACzB,6FAA6F;;IAE7F,kHAAkH;;IAElH,sDAAsD;;IAEtD,mHAAmH;;IAEnH,4FAA4F;;IAE5F,0FAA0F;;IAE1F,2GAA2G;;IAE3G,wGAAwG;;IAExG,qJAAqJ;;IAErJ,+BAA+B;;IAE/B,wJAAwJ;;;;;;;;;;;;;;;;;;;;;;;;;;IAExJ,mFAAmF;;IAEnF,mEAAmE;;IAEnE,yGAAyG;;IAEzG,2GAA2G;;IAE3G,qFAAqF;;IAErF,oGAAoG;;IAEpG,6DAA6D;;IAE7D,uFAAuF;;IAEvF,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEmD,CAAC"}
|
package/dist/types/artifacts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 0e1768d2cc71
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { imageSourceSchema } from "./image.js";
|
|
6
6
|
/** Runtime validator for {@link Artifact}. */
|
|
@@ -21,6 +21,8 @@ export const artifactSchema = z.object({
|
|
|
21
21
|
file_name: z.string().optional().describe("Original filename of the current version's file, e.g. `\"output.csv\"`. `null` if no file is attached."),
|
|
22
22
|
/** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
|
|
23
23
|
file_url: z.string().optional().describe("Short-lived signed URL for downloading the current version's file. `null` if no file is attached."),
|
|
24
|
+
/** Optional nonunique, case-sensitive grouping key, limited to 1024 UTF-8 bytes. Null when unset; belongs to the artifact, not a content version. */
|
|
25
|
+
group_key: z.string().nullable().optional().describe("Optional nonunique, case-sensitive grouping key, limited to 1024 UTF-8 bytes. Null when unset; belongs to the artifact, not a content version."),
|
|
24
26
|
/** Artifact ID (`art_...`). */
|
|
25
27
|
id: z.string().describe("Artifact ID (`art_...`)."),
|
|
26
28
|
/** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
|
|
@@ -31,6 +33,8 @@ export const artifactSchema = z.object({
|
|
|
31
33
|
org: z.string().optional().describe("ID of the organization this artifact belongs to (`org_...`)."),
|
|
32
34
|
/** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
|
|
33
35
|
sandbox: z.string().optional().describe("Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped."),
|
|
36
|
+
/** True when the artifact has no user, team, or agent owner. An organization may own a system artifact. */
|
|
37
|
+
system: z.boolean().optional().describe("True when the artifact has no user, team, or agent owner. An organization may own a system artifact."),
|
|
34
38
|
/** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
|
|
35
39
|
team: z.string().optional().describe("ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped."),
|
|
36
40
|
/** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,O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