braintrust 0.4.3 → 0.4.4-alpha.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.
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod/v3';
2
- import { z as z$1 } from 'zod';
3
2
 
4
3
  declare const TRANSACTION_ID_FIELD = "_xact_id";
5
4
  declare const IS_MERGE_FIELD = "_is_merge";
@@ -7302,6 +7301,8 @@ declare class LazyValue<T> {
7302
7301
  get hasSucceeded(): boolean;
7303
7302
  }
7304
7303
 
7304
+ /// <reference lib="dom" />
7305
+
7305
7306
  interface ContextParentSpanIds {
7306
7307
  rootSpanId: string;
7307
7308
  spanParents: string[];
@@ -7497,25 +7498,25 @@ declare const NOOP_SPAN: NoopSpan;
7497
7498
  declare global {
7498
7499
  var __inherited_braintrust_state: BraintrustState;
7499
7500
  }
7500
- declare const loginSchema: z$1.ZodObject<{
7501
- appUrl: z$1.ZodString;
7502
- appPublicUrl: z$1.ZodString;
7503
- orgName: z$1.ZodString;
7504
- apiUrl: z$1.ZodString;
7505
- proxyUrl: z$1.ZodString;
7506
- loginToken: z$1.ZodString;
7507
- orgId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7508
- gitMetadataSettings: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
7509
- collect: z$1.ZodEnum<["all", "none", "some"]>;
7510
- fields: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
7511
- }, "strip", z$1.ZodTypeAny, {
7501
+ declare const loginSchema: z.ZodObject<{
7502
+ appUrl: z.ZodString;
7503
+ appPublicUrl: z.ZodString;
7504
+ orgName: z.ZodString;
7505
+ apiUrl: z.ZodString;
7506
+ proxyUrl: z.ZodString;
7507
+ loginToken: z.ZodString;
7508
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7509
+ gitMetadataSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7510
+ collect: z.ZodEnum<["all", "none", "some"]>;
7511
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
7512
+ }, "strip", z.ZodTypeAny, {
7512
7513
  collect: "some" | "none" | "all";
7513
7514
  fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7514
7515
  }, {
7515
7516
  collect: "some" | "none" | "all";
7516
7517
  fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7517
7518
  }>>>;
7518
- }, "strict", z$1.ZodTypeAny, {
7519
+ }, "strict", z.ZodTypeAny, {
7519
7520
  appUrl: string;
7520
7521
  appPublicUrl: string;
7521
7522
  orgName: string;
@@ -7540,7 +7541,7 @@ declare const loginSchema: z$1.ZodObject<{
7540
7541
  fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7541
7542
  } | null | undefined;
7542
7543
  }>;
7543
- type SerializedBraintrustState = z$1.infer<typeof loginSchema>;
7544
+ type SerializedBraintrustState = z.infer<typeof loginSchema>;
7544
7545
  declare class BraintrustState {
7545
7546
  private loginParams;
7546
7547
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod/v3';
2
- import { z as z$1 } from 'zod';
3
2
 
4
3
  declare const TRANSACTION_ID_FIELD = "_xact_id";
5
4
  declare const IS_MERGE_FIELD = "_is_merge";
@@ -7302,6 +7301,8 @@ declare class LazyValue<T> {
7302
7301
  get hasSucceeded(): boolean;
7303
7302
  }
7304
7303
 
7304
+ /// <reference lib="dom" />
7305
+
7305
7306
  interface ContextParentSpanIds {
7306
7307
  rootSpanId: string;
7307
7308
  spanParents: string[];
@@ -7497,25 +7498,25 @@ declare const NOOP_SPAN: NoopSpan;
7497
7498
  declare global {
7498
7499
  var __inherited_braintrust_state: BraintrustState;
7499
7500
  }
7500
- declare const loginSchema: z$1.ZodObject<{
7501
- appUrl: z$1.ZodString;
7502
- appPublicUrl: z$1.ZodString;
7503
- orgName: z$1.ZodString;
7504
- apiUrl: z$1.ZodString;
7505
- proxyUrl: z$1.ZodString;
7506
- loginToken: z$1.ZodString;
7507
- orgId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7508
- gitMetadataSettings: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
7509
- collect: z$1.ZodEnum<["all", "none", "some"]>;
7510
- fields: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
7511
- }, "strip", z$1.ZodTypeAny, {
7501
+ declare const loginSchema: z.ZodObject<{
7502
+ appUrl: z.ZodString;
7503
+ appPublicUrl: z.ZodString;
7504
+ orgName: z.ZodString;
7505
+ apiUrl: z.ZodString;
7506
+ proxyUrl: z.ZodString;
7507
+ loginToken: z.ZodString;
7508
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7509
+ gitMetadataSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7510
+ collect: z.ZodEnum<["all", "none", "some"]>;
7511
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
7512
+ }, "strip", z.ZodTypeAny, {
7512
7513
  collect: "some" | "none" | "all";
7513
7514
  fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7514
7515
  }, {
7515
7516
  collect: "some" | "none" | "all";
7516
7517
  fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7517
7518
  }>>>;
7518
- }, "strict", z$1.ZodTypeAny, {
7519
+ }, "strict", z.ZodTypeAny, {
7519
7520
  appUrl: string;
7520
7521
  appPublicUrl: string;
7521
7522
  orgName: string;
@@ -7540,7 +7541,7 @@ declare const loginSchema: z$1.ZodObject<{
7540
7541
  fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7541
7542
  } | null | undefined;
7542
7543
  }>;
7543
- type SerializedBraintrustState = z$1.infer<typeof loginSchema>;
7544
+ type SerializedBraintrustState = z.infer<typeof loginSchema>;
7544
7545
  declare class BraintrustState {
7545
7546
  private loginParams;
7546
7547
  id: string;