@bitfab/sdk 0.51.0 → 0.52.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/{chunk-RGC7IEOI.js → chunk-4EOEBN3M.js} +2 -2
- package/dist/{chunk-RGC7IEOI.js.map → chunk-4EOEBN3M.js.map} +1 -1
- package/dist/{chunk-4CLJF2DZ.js → chunk-KXBXRR4I.js} +2 -2
- package/dist/{chunk-4CLJF2DZ.js.map → chunk-KXBXRR4I.js.map} +1 -1
- package/dist/{chunk-DNYZJLNY.js → chunk-SJ65MW4K.js} +2 -2
- package/dist/{chunk-VXD27AJ3.js → chunk-VEDTNQQE.js} +23 -11
- package/dist/chunk-VEDTNQQE.js.map +1 -0
- package/dist/{http-AKFJONE7.js → http-4A2JEPBD.js} +2 -2
- package/dist/{http-HLRWCSFF.js → http-W6SXQA3Q.js} +2 -2
- package/dist/index.cjs +18 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +3 -3
- package/dist/node.cjs +18 -6
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-ISXRCXUP.js → replay-SY74BXDK.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-VXD27AJ3.js.map +0 -1
- /package/dist/{chunk-DNYZJLNY.js.map → chunk-SJ65MW4K.js.map} +0 -0
- /package/dist/{http-AKFJONE7.js.map → http-4A2JEPBD.js.map} +0 -0
- /package/dist/{http-HLRWCSFF.js.map → http-W6SXQA3Q.js.map} +0 -0
- /package/dist/{replay-ISXRCXUP.js.map → replay-SY74BXDK.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -802,11 +802,19 @@ type TraceAssertionsResult = {
|
|
|
802
802
|
assertions: TraceAssertion[];
|
|
803
803
|
inheritedFrom: string | null;
|
|
804
804
|
};
|
|
805
|
+
type TraceAssertionsUpdate = {
|
|
806
|
+
traceId: string;
|
|
807
|
+
assertions: SaveAssertion[];
|
|
808
|
+
};
|
|
805
809
|
type SaveAssertionsParams = {
|
|
806
810
|
traceId: string;
|
|
807
811
|
assertions: SaveAssertion[];
|
|
808
812
|
source?: TraceAssertionSource;
|
|
809
813
|
};
|
|
814
|
+
type SaveAssertionsAllParams = {
|
|
815
|
+
updates: TraceAssertionsUpdate[];
|
|
816
|
+
source?: TraceAssertionSource;
|
|
817
|
+
};
|
|
810
818
|
type ArchiveAssertionsParams = {
|
|
811
819
|
traceId: string;
|
|
812
820
|
assertionIds: string[];
|
|
@@ -816,6 +824,7 @@ declare class TracesClient {
|
|
|
816
824
|
constructor(httpClient: HttpClient);
|
|
817
825
|
getAssertions(traceId: string): Promise<TraceAssertionsResult>;
|
|
818
826
|
saveAssertions(params: SaveAssertionsParams): Promise<TraceAssertion[]>;
|
|
827
|
+
saveAssertionsAll(params: SaveAssertionsAllParams): Promise<TraceAssertion[]>;
|
|
819
828
|
archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
|
|
820
829
|
}
|
|
821
830
|
|
|
@@ -3279,7 +3288,7 @@ declare class BitfabFunction {
|
|
|
3279
3288
|
/**
|
|
3280
3289
|
* SDK version from package.json (injected at build time)
|
|
3281
3290
|
*/
|
|
3282
|
-
declare const __version__ = "0.
|
|
3291
|
+
declare const __version__ = "0.52.0";
|
|
3283
3292
|
|
|
3284
3293
|
/**
|
|
3285
3294
|
* Constants for the Bitfab SDK.
|
|
@@ -3409,4 +3418,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3409
3418
|
run?: boolean;
|
|
3410
3419
|
}): Promise<SeedResult>;
|
|
3411
3420
|
|
|
3412
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, 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 LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, 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 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, SUPPORTED_PROVIDERS, type SaveAssertion, 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 TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, 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, seedFromRegistry, serializeReplayResult };
|
|
3421
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, 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 LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, 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 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, SUPPORTED_PROVIDERS, type SaveAssertion, 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 TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -802,11 +802,19 @@ type TraceAssertionsResult = {
|
|
|
802
802
|
assertions: TraceAssertion[];
|
|
803
803
|
inheritedFrom: string | null;
|
|
804
804
|
};
|
|
805
|
+
type TraceAssertionsUpdate = {
|
|
806
|
+
traceId: string;
|
|
807
|
+
assertions: SaveAssertion[];
|
|
808
|
+
};
|
|
805
809
|
type SaveAssertionsParams = {
|
|
806
810
|
traceId: string;
|
|
807
811
|
assertions: SaveAssertion[];
|
|
808
812
|
source?: TraceAssertionSource;
|
|
809
813
|
};
|
|
814
|
+
type SaveAssertionsAllParams = {
|
|
815
|
+
updates: TraceAssertionsUpdate[];
|
|
816
|
+
source?: TraceAssertionSource;
|
|
817
|
+
};
|
|
810
818
|
type ArchiveAssertionsParams = {
|
|
811
819
|
traceId: string;
|
|
812
820
|
assertionIds: string[];
|
|
@@ -816,6 +824,7 @@ declare class TracesClient {
|
|
|
816
824
|
constructor(httpClient: HttpClient);
|
|
817
825
|
getAssertions(traceId: string): Promise<TraceAssertionsResult>;
|
|
818
826
|
saveAssertions(params: SaveAssertionsParams): Promise<TraceAssertion[]>;
|
|
827
|
+
saveAssertionsAll(params: SaveAssertionsAllParams): Promise<TraceAssertion[]>;
|
|
819
828
|
archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
|
|
820
829
|
}
|
|
821
830
|
|
|
@@ -3279,7 +3288,7 @@ declare class BitfabFunction {
|
|
|
3279
3288
|
/**
|
|
3280
3289
|
* SDK version from package.json (injected at build time)
|
|
3281
3290
|
*/
|
|
3282
|
-
declare const __version__ = "0.
|
|
3291
|
+
declare const __version__ = "0.52.0";
|
|
3283
3292
|
|
|
3284
3293
|
/**
|
|
3285
3294
|
* Constants for the Bitfab SDK.
|
|
@@ -3409,4 +3418,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3409
3418
|
run?: boolean;
|
|
3410
3419
|
}): Promise<SeedResult>;
|
|
3411
3420
|
|
|
3412
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, 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 LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, 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 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, SUPPORTED_PROVIDERS, type SaveAssertion, 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 TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, 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, seedFromRegistry, serializeReplayResult };
|
|
3421
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, 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 LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, 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 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, SUPPORTED_PROVIDERS, type SaveAssertion, 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 TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getCurrentSpan,
|
|
19
19
|
getCurrentTrace,
|
|
20
20
|
seedFromRegistry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VEDTNQQE.js";
|
|
22
22
|
import "./chunk-ZUD7OFYB.js";
|
|
23
23
|
import {
|
|
24
24
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
ReplayError,
|
|
28
28
|
reportReplayProgress,
|
|
29
29
|
serializeReplayResult
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SJ65MW4K.js";
|
|
31
31
|
import {
|
|
32
32
|
BitfabError,
|
|
33
33
|
DEFAULT_SERVICE_URL,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
MixedTracingError,
|
|
36
36
|
__version__,
|
|
37
37
|
flushTraces
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-4EOEBN3M.js";
|
|
39
39
|
import "./chunk-H6LZRFMN.js";
|
|
40
40
|
export {
|
|
41
41
|
BITFAB_PROGRESS_PREFIX,
|
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.
|
|
91
|
+
__version__ = "0.52.0";
|
|
92
92
|
__packageName__ = "@bitfab/sdk";
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -3330,7 +3330,8 @@ registerAsyncLocalStorageClass(
|
|
|
3330
3330
|
);
|
|
3331
3331
|
|
|
3332
3332
|
// src/assertions.ts
|
|
3333
|
-
|
|
3333
|
+
var ASSERTIONS_PATH = "/api/sdk/traces/assertions";
|
|
3334
|
+
function traceAssertionsPath(traceId, suffix = "") {
|
|
3334
3335
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
3335
3336
|
}
|
|
3336
3337
|
var TracesClient = class {
|
|
@@ -3338,18 +3339,29 @@ var TracesClient = class {
|
|
|
3338
3339
|
this.httpClient = httpClient;
|
|
3339
3340
|
}
|
|
3340
3341
|
async getAssertions(traceId) {
|
|
3341
|
-
return this.httpClient.get(
|
|
3342
|
+
return this.httpClient.get(
|
|
3343
|
+
traceAssertionsPath(traceId)
|
|
3344
|
+
);
|
|
3342
3345
|
}
|
|
3343
3346
|
async saveAssertions(params) {
|
|
3344
|
-
|
|
3345
|
-
assertions: params.assertions,
|
|
3347
|
+
return this.saveAssertionsAll({
|
|
3348
|
+
updates: [{ traceId: params.traceId, assertions: params.assertions }],
|
|
3349
|
+
source: params.source
|
|
3350
|
+
});
|
|
3351
|
+
}
|
|
3352
|
+
async saveAssertionsAll(params) {
|
|
3353
|
+
if (params.updates.length === 0) {
|
|
3354
|
+
return [];
|
|
3355
|
+
}
|
|
3356
|
+
const response = await this.httpClient.request(ASSERTIONS_PATH, {
|
|
3357
|
+
updates: params.updates,
|
|
3346
3358
|
source: params.source ?? "agent"
|
|
3347
3359
|
});
|
|
3348
3360
|
return response.assertions;
|
|
3349
3361
|
}
|
|
3350
3362
|
async archiveAssertions(params) {
|
|
3351
3363
|
const response = await this.httpClient.request(
|
|
3352
|
-
|
|
3364
|
+
traceAssertionsPath(params.traceId, "/archive"),
|
|
3353
3365
|
{ assertionIds: params.assertionIds }
|
|
3354
3366
|
);
|
|
3355
3367
|
return response.archived;
|