@bitfab/sdk 0.58.0 → 0.58.2

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 (31) hide show
  1. package/dist/{chunk-O7SWRRCT.js → chunk-FRAFDYLK.js} +3 -3
  2. package/dist/{chunk-DX7CLIXG.js → chunk-JMMFN4RO.js} +3 -3
  3. package/dist/{chunk-DX7CLIXG.js.map → chunk-JMMFN4RO.js.map} +1 -1
  4. package/dist/{chunk-EFD52WEX.js → chunk-LS4AHYFJ.js} +24 -6
  5. package/dist/chunk-LS4AHYFJ.js.map +1 -0
  6. package/dist/{chunk-K44ARSH6.js → chunk-PR3I5UTO.js} +3 -3
  7. package/dist/{chunk-K44ARSH6.js.map → chunk-PR3I5UTO.js.map} +1 -1
  8. package/dist/{chunk-DF4VZUTC.js → chunk-QK6CVPVR.js} +2 -2
  9. package/dist/{http-6GSCTWJG.js → http-IEFEMFSD.js} +2 -2
  10. package/dist/{http-RSTHHEC6.js → http-W3ZKRIWW.js} +2 -2
  11. package/dist/index.cjs +21 -2
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +30 -2
  14. package/dist/index.d.ts +30 -2
  15. package/dist/index.js +5 -3
  16. package/dist/node.cjs +21 -2
  17. package/dist/node.cjs.map +1 -1
  18. package/dist/node.d.cts +1 -1
  19. package/dist/node.d.ts +1 -1
  20. package/dist/node.js +5 -3
  21. package/dist/node.js.map +1 -1
  22. package/dist/{replay-MD5KY6NA.js → replay-NFSPHMXY.js} +3 -3
  23. package/dist/replayCli.js +2 -2
  24. package/dist/seedCli.js +2 -2
  25. package/package.json +1 -1
  26. package/dist/chunk-EFD52WEX.js.map +0 -1
  27. /package/dist/{chunk-O7SWRRCT.js.map → chunk-FRAFDYLK.js.map} +0 -0
  28. /package/dist/{chunk-DF4VZUTC.js.map → chunk-QK6CVPVR.js.map} +0 -0
  29. /package/dist/{http-6GSCTWJG.js.map → http-IEFEMFSD.js.map} +0 -0
  30. /package/dist/{http-RSTHHEC6.js.map → http-W3ZKRIWW.js.map} +0 -0
  31. /package/dist/{replay-MD5KY6NA.js.map → replay-NFSPHMXY.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -13,6 +13,8 @@ type Approver = {
13
13
  email: string | null;
14
14
  imageUrl: string | null;
15
15
  };
16
+ /** The organization member on the hook for reviewing an assertion. */
17
+ type Assignee = Approver;
16
18
  /** Read-only on this client: only a person in Bitfab sets these. */
17
19
  type ApprovalFields = {
18
20
  approvalState: ApprovalState;
@@ -1355,6 +1357,8 @@ type TraceAssertion = {
1355
1357
  justification: Justification | null;
1356
1358
  /** Why its assigned category is the right one, span by span. */
1357
1359
  categoryJustification: Justification | null;
1360
+ /** Who is on the hook for reviewing this assertion, or null for nobody. */
1361
+ assignee: Assignee | null;
1358
1362
  createdAt: string;
1359
1363
  updatedAt: string;
1360
1364
  } & ApprovalFields;
@@ -1388,6 +1392,12 @@ type SaveAssertion = {
1388
1392
  * clears it. Omit on an edit to preserve it.
1389
1393
  */
1390
1394
  categoryJustification?: Justification | null;
1395
+ /**
1396
+ * Email of the organization member who should review this assertion. Routing
1397
+ * only, so it leaves the approval state alone. Omit on an edit to preserve
1398
+ * the current assignee, or pass null to leave it to nobody.
1399
+ */
1400
+ assigneeEmail?: string | null;
1391
1401
  };
1392
1402
  type TraceAssertionsResult = {
1393
1403
  assertions: TraceAssertion[];
@@ -1778,6 +1788,23 @@ declare class BitfabOpenAIAgentHandler {
1778
1788
  wrapRun(agent: AgentLike, input: RunInput, options?: RunOptions): Promise<RunResultLike>;
1779
1789
  }
1780
1790
 
1791
+ type OrganizationMember = {
1792
+ id: string;
1793
+ fullName: string | null;
1794
+ email: string | null;
1795
+ imageUrl: string | null;
1796
+ };
1797
+ /** The people in the API key's organization. */
1798
+ declare class OrganizationMembersClient {
1799
+ private readonly httpClient;
1800
+ constructor(httpClient: HttpClient);
1801
+ /**
1802
+ * List the organization's members, ordered by name. Read it to find the
1803
+ * address to pass as an assertion's `assigneeEmail`.
1804
+ */
1805
+ list(): Promise<OrganizationMember[]>;
1806
+ }
1807
+
1781
1808
  /**
1782
1809
  * Replay historical traces through a function and create a test run.
1783
1810
  *
@@ -2917,6 +2944,7 @@ declare class Bitfab {
2917
2944
  /** Dataset operations for the authenticated organization. */
2918
2945
  readonly datasets: DatasetsClient;
2919
2946
  readonly assertionCategories: AssertionCategoriesClient;
2947
+ readonly organizationMembers: OrganizationMembersClient;
2920
2948
  readonly traces: TracesClient;
2921
2949
  readonly labels: LabelsClient;
2922
2950
  readonly graders: GradersClient;
@@ -3622,7 +3650,7 @@ interface CommitRef {
3622
3650
  /**
3623
3651
  * SDK version from package.json (injected at build time)
3624
3652
  */
3625
- declare const __version__ = "0.58.0";
3653
+ declare const __version__ = "0.58.2";
3626
3654
 
3627
3655
  /**
3628
3656
  * Constants for the Bitfab SDK.
@@ -3761,4 +3789,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3761
3789
  run?: boolean;
3762
3790
  }): Promise<SeedResult>;
3763
3791
 
3764
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type PotentialAssertionEvidence, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
3792
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PotentialAssertionEvidence, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ type Approver = {
13
13
  email: string | null;
14
14
  imageUrl: string | null;
15
15
  };
16
+ /** The organization member on the hook for reviewing an assertion. */
17
+ type Assignee = Approver;
16
18
  /** Read-only on this client: only a person in Bitfab sets these. */
17
19
  type ApprovalFields = {
18
20
  approvalState: ApprovalState;
@@ -1355,6 +1357,8 @@ type TraceAssertion = {
1355
1357
  justification: Justification | null;
1356
1358
  /** Why its assigned category is the right one, span by span. */
1357
1359
  categoryJustification: Justification | null;
1360
+ /** Who is on the hook for reviewing this assertion, or null for nobody. */
1361
+ assignee: Assignee | null;
1358
1362
  createdAt: string;
1359
1363
  updatedAt: string;
1360
1364
  } & ApprovalFields;
@@ -1388,6 +1392,12 @@ type SaveAssertion = {
1388
1392
  * clears it. Omit on an edit to preserve it.
1389
1393
  */
1390
1394
  categoryJustification?: Justification | null;
1395
+ /**
1396
+ * Email of the organization member who should review this assertion. Routing
1397
+ * only, so it leaves the approval state alone. Omit on an edit to preserve
1398
+ * the current assignee, or pass null to leave it to nobody.
1399
+ */
1400
+ assigneeEmail?: string | null;
1391
1401
  };
1392
1402
  type TraceAssertionsResult = {
1393
1403
  assertions: TraceAssertion[];
@@ -1778,6 +1788,23 @@ declare class BitfabOpenAIAgentHandler {
1778
1788
  wrapRun(agent: AgentLike, input: RunInput, options?: RunOptions): Promise<RunResultLike>;
1779
1789
  }
1780
1790
 
1791
+ type OrganizationMember = {
1792
+ id: string;
1793
+ fullName: string | null;
1794
+ email: string | null;
1795
+ imageUrl: string | null;
1796
+ };
1797
+ /** The people in the API key's organization. */
1798
+ declare class OrganizationMembersClient {
1799
+ private readonly httpClient;
1800
+ constructor(httpClient: HttpClient);
1801
+ /**
1802
+ * List the organization's members, ordered by name. Read it to find the
1803
+ * address to pass as an assertion's `assigneeEmail`.
1804
+ */
1805
+ list(): Promise<OrganizationMember[]>;
1806
+ }
1807
+
1781
1808
  /**
1782
1809
  * Replay historical traces through a function and create a test run.
1783
1810
  *
@@ -2917,6 +2944,7 @@ declare class Bitfab {
2917
2944
  /** Dataset operations for the authenticated organization. */
2918
2945
  readonly datasets: DatasetsClient;
2919
2946
  readonly assertionCategories: AssertionCategoriesClient;
2947
+ readonly organizationMembers: OrganizationMembersClient;
2920
2948
  readonly traces: TracesClient;
2921
2949
  readonly labels: LabelsClient;
2922
2950
  readonly graders: GradersClient;
@@ -3622,7 +3650,7 @@ interface CommitRef {
3622
3650
  /**
3623
3651
  * SDK version from package.json (injected at build time)
3624
3652
  */
3625
- declare const __version__ = "0.58.0";
3653
+ declare const __version__ = "0.58.2";
3626
3654
 
3627
3655
  /**
3628
3656
  * Constants for the Bitfab SDK.
@@ -3761,4 +3789,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
3761
3789
  run?: boolean;
3762
3790
  }): Promise<SeedResult>;
3763
3791
 
3764
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type PotentialAssertionEvidence, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
3792
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PotentialAssertionEvidence, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  DatasetsClient,
13
13
  GradersClient,
14
14
  LabelsClient,
15
+ OrganizationMembersClient,
15
16
  SUPPORTED_PROVIDERS,
16
17
  TracesClient,
17
18
  defineReplayRegistry,
@@ -21,7 +22,7 @@ import {
21
22
  getCurrentTrace,
22
23
  reseedFromRegistry,
23
24
  seedFromRegistry
24
- } from "./chunk-EFD52WEX.js";
25
+ } from "./chunk-LS4AHYFJ.js";
25
26
  import "./chunk-RCHSYWKI.js";
26
27
  import {
27
28
  BITFAB_PROGRESS_PREFIX,
@@ -30,7 +31,7 @@ import {
30
31
  ReplayError,
31
32
  reportReplayProgress,
32
33
  serializeReplayResult
33
- } from "./chunk-DF4VZUTC.js";
34
+ } from "./chunk-QK6CVPVR.js";
34
35
  import {
35
36
  BitfabError,
36
37
  DEFAULT_SERVICE_URL,
@@ -38,7 +39,7 @@ import {
38
39
  MixedTracingError,
39
40
  __version__,
40
41
  flushTraces
41
- } from "./chunk-K44ARSH6.js";
42
+ } from "./chunk-PR3I5UTO.js";
42
43
  import "./chunk-VCRFFCLY.js";
43
44
  export {
44
45
  AssertionCategoriesClient,
@@ -62,6 +63,7 @@ export {
62
63
  LabelsClient,
63
64
  MixedTracingError,
64
65
  NO_MOCK_OVERRIDE,
66
+ OrganizationMembersClient,
65
67
  ReplayError,
66
68
  SUPPORTED_PROVIDERS,
67
69
  TracesClient,
package/dist/node.cjs CHANGED
@@ -88,7 +88,7 @@ var __version__, __packageName__;
88
88
  var init_version_generated = __esm({
89
89
  "src/version.generated.ts"() {
90
90
  "use strict";
91
- __version__ = "0.58.0";
91
+ __version__ = "0.58.2";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -1719,7 +1719,7 @@ var init_otel = __esm({
1719
1719
  EXPORT_CONCURRENCY_ENV = "BITFAB_OTEL_EXPORT_CONCURRENCY";
1720
1720
  MAX_QUEUE_SIZE = 16384;
1721
1721
  DIRECT_MAX_EXPORT_BATCH_SIZE = 512;
1722
- DIRECT_MAX_REQUEST_BATCH_SIZE = 128;
1722
+ DIRECT_MAX_REQUEST_BATCH_SIZE = 256;
1723
1723
  DEFAULT_EXPORT_CONCURRENCY = 32;
1724
1724
  MAX_EXPORT_CONCURRENCY = 64;
1725
1725
  SCHEDULE_DELAY_MILLIS = 5e3;
@@ -4413,6 +4413,7 @@ __export(node_exports, {
4413
4413
  LabelsClient: () => LabelsClient,
4414
4414
  MixedTracingError: () => MixedTracingError,
4415
4415
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4416
+ OrganizationMembersClient: () => OrganizationMembersClient,
4416
4417
  ReplayError: () => ReplayError,
4417
4418
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4418
4419
  TracesClient: () => TracesClient,
@@ -7123,6 +7124,22 @@ function openAiAgentsParentSpanId(bitfabTraceId, enclosingSpanIds) {
7123
7124
  return void 0;
7124
7125
  }
7125
7126
 
7127
+ // src/organizationMembers.ts
7128
+ var MEMBERS_PATH = "/api/sdk/organizationMembers";
7129
+ var OrganizationMembersClient = class {
7130
+ constructor(httpClient) {
7131
+ this.httpClient = httpClient;
7132
+ }
7133
+ /**
7134
+ * List the organization's members, ordered by name. Read it to find the
7135
+ * address to pass as an assertion's `assigneeEmail`.
7136
+ */
7137
+ async list() {
7138
+ const response = await this.httpClient.get(MEMBERS_PATH);
7139
+ return response.members;
7140
+ }
7141
+ };
7142
+
7126
7143
  // src/client.ts
7127
7144
  init_randomUuid();
7128
7145
  init_replay();
@@ -8788,6 +8805,7 @@ var Bitfab = class {
8788
8805
  }
8789
8806
  this.datasets = new DatasetsClient(this.httpClient);
8790
8807
  this.assertionCategories = new AssertionCategoriesClient(this.httpClient);
8808
+ this.organizationMembers = new OrganizationMembersClient(this.httpClient);
8791
8809
  this.traces = new TracesClient(this.httpClient);
8792
8810
  this.labels = new LabelsClient(this.httpClient);
8793
8811
  this.graders = new GradersClient(this.httpClient);
@@ -11032,6 +11050,7 @@ assertAsyncStorageRegistered();
11032
11050
  LabelsClient,
11033
11051
  MixedTracingError,
11034
11052
  NO_MOCK_OVERRIDE,
11053
+ OrganizationMembersClient,
11035
11054
  ReplayError,
11036
11055
  SUPPORTED_PROVIDERS,
11037
11056
  TracesClient,