@ax-llm/ax 14.0.40 → 14.0.41

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/index.d.cts CHANGED
@@ -712,6 +712,14 @@ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType[
712
712
  * @param description - Human-readable description of what the pattern validates (e.g., "Must be a valid username with only lowercase letters, numbers, and underscores")
713
713
  */
714
714
  regex(pattern: string, description: string): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
715
+ /**
716
+ * Set date format validation for strings
717
+ */
718
+ date(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
719
+ /**
720
+ * Set datetime format validation for strings
721
+ */
722
+ datetime(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
715
723
  }
716
724
  type ValidateNoMediaTypes<TFields> = {
717
725
  [K in keyof TFields]: TFields[K] extends {
@@ -737,6 +745,7 @@ declare const f: (() => AxSignatureBuilder) & {
737
745
  audio: (desc?: string) => AxFluentFieldType<"audio", false, undefined, false, false, undefined>;
738
746
  file: (desc?: string) => AxFluentFieldType<"file", false, undefined, false, false, undefined>;
739
747
  url: (desc?: string) => AxFluentFieldType<"url", false, undefined, false, false, undefined>;
748
+ email: (desc?: string) => AxFluentFieldType<"string", false, undefined, false, false, undefined>;
740
749
  code: (language?: string, desc?: string) => AxFluentFieldType<"code", false, undefined, false, false, undefined>;
741
750
  object: <TFields extends Record<string, AxFluentFieldInfo<any, any, any, any, any, any> | AxFluentFieldType<any, any, any, any, any, any>>>(fields: TFields & ValidateNoMediaTypes<TFields>, desc?: string) => AxFluentFieldType<"object", false, undefined, false, false, TFields>;
742
751
  };
package/index.d.ts CHANGED
@@ -712,6 +712,14 @@ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType[
712
712
  * @param description - Human-readable description of what the pattern validates (e.g., "Must be a valid username with only lowercase letters, numbers, and underscores")
713
713
  */
714
714
  regex(pattern: string, description: string): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
715
+ /**
716
+ * Set date format validation for strings
717
+ */
718
+ date(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
719
+ /**
720
+ * Set datetime format validation for strings
721
+ */
722
+ datetime(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
715
723
  }
716
724
  type ValidateNoMediaTypes<TFields> = {
717
725
  [K in keyof TFields]: TFields[K] extends {
@@ -737,6 +745,7 @@ declare const f: (() => AxSignatureBuilder) & {
737
745
  audio: (desc?: string) => AxFluentFieldType<"audio", false, undefined, false, false, undefined>;
738
746
  file: (desc?: string) => AxFluentFieldType<"file", false, undefined, false, false, undefined>;
739
747
  url: (desc?: string) => AxFluentFieldType<"url", false, undefined, false, false, undefined>;
748
+ email: (desc?: string) => AxFluentFieldType<"string", false, undefined, false, false, undefined>;
740
749
  code: (language?: string, desc?: string) => AxFluentFieldType<"code", false, undefined, false, false, undefined>;
741
750
  object: <TFields extends Record<string, AxFluentFieldInfo<any, any, any, any, any, any> | AxFluentFieldType<any, any, any, any, any, any>>>(fields: TFields & ValidateNoMediaTypes<TFields>, desc?: string) => AxFluentFieldType<"object", false, undefined, false, false, TFields>;
742
751
  };