objectiveai 1.1.8 → 1.1.9

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +40 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -749,7 +749,8 @@ export declare namespace Apps {
749
749
  interface Array {
750
750
  type: "array";
751
751
  description?: string | null;
752
- items: Record<string, Array.ItemsProperty>;
752
+ required?: boolean | null;
753
+ items: Array.ItemsProperty | Record<string, Array.ItemsProperty>;
753
754
  }
754
755
  namespace Array {
755
756
  type ItemsProperty = InputProperty.String | InputProperty.Number | InputProperty.Integer | InputProperty.Boolean;
@@ -757,19 +758,52 @@ export declare namespace Apps {
757
758
  interface String {
758
759
  type: "string";
759
760
  description?: string | null;
761
+ required?: boolean | null;
760
762
  enum?: string[] | null;
761
763
  }
762
764
  interface Number {
763
765
  type: "number";
764
766
  description?: string | null;
767
+ required?: boolean | null;
765
768
  }
766
769
  interface Integer {
767
770
  type: "integer";
768
771
  description?: string | null;
772
+ required?: boolean | null;
769
773
  }
770
774
  interface Boolean {
771
775
  type: "boolean";
772
776
  description?: string | null;
777
+ required?: boolean | null;
778
+ }
779
+ }
780
+ type OutputProperty = OutputProperty.Object | InputProperty.Array | InputProperty.String | InputProperty.Number | InputProperty.Integer | InputProperty.Boolean;
781
+ namespace OutputProperty {
782
+ interface Object {
783
+ type: "object";
784
+ required?: boolean | null;
785
+ properties: Record<string, OutputProperty>;
786
+ }
787
+ interface Array {
788
+ type: "array";
789
+ required?: boolean | null;
790
+ items: OutputProperty;
791
+ }
792
+ interface String {
793
+ type: "string";
794
+ required?: boolean | null;
795
+ }
796
+ interface Number {
797
+ type: "number";
798
+ required?: boolean | null;
799
+ }
800
+ interface Integer {
801
+ type: "integer";
802
+ required?: boolean | null;
803
+ }
804
+ interface Boolean {
805
+ type: "boolean";
806
+ required?: boolean | null;
773
807
  }
774
808
  }
775
809
  type Step = Step.Score | Step.Multichat;
@@ -892,11 +926,12 @@ export declare namespace Apps {
892
926
  type ExecuteByIdRequest = ExecuteByIdRequestStreaming | ExecuteByIdRequestNonStreaming;
893
927
  interface ExecuteByDefinitionRequestBase extends ExecuteByIdRequestBase {
894
928
  steps: WithExpression<WithExpression<Step>[]>;
895
- output: Expression;
929
+ output: Expression | Record<string, Expression>;
896
930
  publish?: {
897
931
  id: string;
898
932
  description: string;
899
933
  input: Record<string, InputProperty>;
934
+ output: OutputProperty;
900
935
  } | null;
901
936
  }
902
937
  interface ExecuteByDefinitionRequestStreaming extends ExecuteByDefinitionRequestBase {
@@ -964,9 +999,10 @@ export declare namespace Apps {
964
999
  description: string;
965
1000
  }
966
1001
  interface App extends AppHeader {
967
- input: Record<string, InputProperty>;
1002
+ input_schema: Record<string, InputProperty>;
1003
+ output_schema: OutputProperty;
968
1004
  steps: WithExpression<WithExpression<Step>[]>;
969
- output: Expression;
1005
+ output: Expression | Record<string, Expression>;
970
1006
  }
971
1007
  interface AppWithMetadata extends App {
972
1008
  created: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "objectiveai",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "SDK for the ObjectiveAI API.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {