@mastra/client-js 1.20.0-alpha.2 → 1.20.0-alpha.4
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.20.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`c272d50`](https://github.com/mastra-ai/mastra/commit/c272d50610a54496b6b6d92ccd4d37b333a2613a), [`d8692af`](https://github.com/mastra-ai/mastra/commit/d8692afa253028e39cdce2aafa0ac414071a762e), [`841a222`](https://github.com/mastra-ai/mastra/commit/841a222560d8c19238f8213713f30535cdd82284)]:
|
|
8
|
+
- @mastra/core@1.36.0-alpha.4
|
|
9
|
+
|
|
10
|
+
## 1.20.0-alpha.3
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- Added delta polling support for observability list endpoints. ([#16632](https://github.com/mastra-ai/mastra/pull/16632))
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
const page = await client.observability.listTraces({
|
|
18
|
+
mode: 'page',
|
|
19
|
+
filters: { entityName: 'agent-1' },
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const delta = await client.observability.listTraces({
|
|
23
|
+
mode: 'delta',
|
|
24
|
+
filters: { entityName: 'agent-1' },
|
|
25
|
+
after: page.deltaCursor,
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Use `mode: 'delta'` to fetch only new items after the last cursor.
|
|
30
|
+
|
|
31
|
+
Page-mode responses include `pagination` and `deltaCursor` when delta polling is supported. Delta-mode responses include `delta` and do not include `pagination`.
|
|
32
|
+
|
|
33
|
+
If you read these responses directly in typed code, note that `pagination` is only included in page mode.
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`5556cc1`](https://github.com/mastra-ai/mastra/commit/5556cc1befec71518d84f826b3bfe3a079a9daf7), [`5499303`](https://github.com/mastra-ai/mastra/commit/54993032c1ebc09642625b78d2014e0cf84a3cae), [`e47bca7`](https://github.com/mastra-ai/mastra/commit/e47bca7b72866d3abd173b9f530ac4318113a8ff), [`0031d0f`](https://github.com/mastra-ai/mastra/commit/0031d0f13831d7843ac5d498734a7d92862e2ce3), [`3498b49`](https://github.com/mastra-ai/mastra/commit/3498b4946be94f4313cd817733589680dcda5278), [`359439b`](https://github.com/mastra-ai/mastra/commit/359439bb8c635e048176306828195f8297f50021)]:
|
|
38
|
+
- @mastra/core@1.36.0-alpha.3
|
|
39
|
+
|
|
3
40
|
## 1.20.0-alpha.2
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-client-js
|
|
|
3
3
|
description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/client-js"
|
|
6
|
-
version: "1.20.0-alpha.
|
|
6
|
+
version: "1.20.0-alpha.4"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Signals
|
|
2
2
|
|
|
3
|
-
> **Experimental:**
|
|
3
|
+
> **Experimental:** This feature is in alpha. Breaking changes may occur without a major version bump until the API is stable.
|
|
4
4
|
|
|
5
5
|
Signals are a way to interact with an agent through a thread. Instead of starting every interaction with `agent.stream()`, subscribe to a thread and send signals. Mastra either wakes the agent when the thread is idle or drops the signal into the running agent loop.
|
|
6
6
|
|
|
@@ -6851,10 +6851,10 @@ export type GetMemoryThreads_QueryParams = {
|
|
|
6851
6851
|
metadata?: {
|
|
6852
6852
|
[key: string]: any;
|
|
6853
6853
|
} | undefined;
|
|
6854
|
-
orderBy?: {
|
|
6854
|
+
orderBy?: ({
|
|
6855
6855
|
field?: ('createdAt' | 'updatedAt') | undefined;
|
|
6856
6856
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
6857
|
-
} | undefined;
|
|
6857
|
+
} | undefined) | undefined;
|
|
6858
6858
|
};
|
|
6859
6859
|
export type GetMemoryThreads_Response = {
|
|
6860
6860
|
total: number;
|
|
@@ -6937,10 +6937,10 @@ export type GetMemoryThreadsThreadIdMessages_QueryParams = {
|
|
|
6937
6937
|
perPage: number | undefined;
|
|
6938
6938
|
agentId?: string | undefined;
|
|
6939
6939
|
resourceId?: string | undefined;
|
|
6940
|
-
orderBy?: {
|
|
6940
|
+
orderBy?: ({
|
|
6941
6941
|
field?: 'createdAt' | undefined;
|
|
6942
6942
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
6943
|
-
} | undefined;
|
|
6943
|
+
} | undefined) | undefined;
|
|
6944
6944
|
include?: {
|
|
6945
6945
|
id: string;
|
|
6946
6946
|
threadId?: string | undefined;
|
|
@@ -7363,10 +7363,10 @@ export type GetMemoryNetworkThreads_QueryParams = {
|
|
|
7363
7363
|
metadata?: {
|
|
7364
7364
|
[key: string]: any;
|
|
7365
7365
|
} | undefined;
|
|
7366
|
-
orderBy?: {
|
|
7366
|
+
orderBy?: ({
|
|
7367
7367
|
field?: ('createdAt' | 'updatedAt') | undefined;
|
|
7368
7368
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
7369
|
-
} | undefined;
|
|
7369
|
+
} | undefined) | undefined;
|
|
7370
7370
|
};
|
|
7371
7371
|
export type GetMemoryNetworkThreads_Response = {
|
|
7372
7372
|
total: number;
|
|
@@ -7449,10 +7449,10 @@ export type GetMemoryNetworkThreadsThreadIdMessages_QueryParams = {
|
|
|
7449
7449
|
perPage: number | undefined;
|
|
7450
7450
|
agentId?: string | undefined;
|
|
7451
7451
|
resourceId?: string | undefined;
|
|
7452
|
-
orderBy?: {
|
|
7452
|
+
orderBy?: ({
|
|
7453
7453
|
field?: 'createdAt' | undefined;
|
|
7454
7454
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
7455
|
-
} | undefined;
|
|
7455
|
+
} | undefined) | undefined;
|
|
7456
7456
|
include?: {
|
|
7457
7457
|
id: string;
|
|
7458
7458
|
threadId?: string | undefined;
|
|
@@ -7905,7 +7905,7 @@ export type GetObservabilityTraces_QueryParams = {
|
|
|
7905
7905
|
} | undefined) | undefined) | any;
|
|
7906
7906
|
spanType?: (('agent_run' | 'scorer_run' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'processor_run' | 'tool_call' | 'workflow_run' | 'workflow_step' | 'workflow_conditional' | 'workflow_conditional_eval' | 'workflow_parallel' | 'workflow_loop' | 'workflow_sleep' | 'workflow_wait_event' | 'memory_operation' | 'workspace_action' | 'rag_ingestion' | 'rag_embedding' | 'rag_vector_operation' | 'rag_action' | 'graph_action' | 'mapping') | undefined) | undefined;
|
|
7907
7907
|
traceId?: (string | undefined) | undefined;
|
|
7908
|
-
entityType?: (
|
|
7908
|
+
entityType?: ((('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined) | undefined;
|
|
7909
7909
|
entityId?: ((string | null) | undefined) | undefined;
|
|
7910
7910
|
entityName?: ((string | null) | undefined) | undefined;
|
|
7911
7911
|
parentEntityType?: ((('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined) | undefined;
|
|
@@ -7937,10 +7937,6 @@ export type GetObservabilityTraces_QueryParams = {
|
|
|
7937
7937
|
tags?: (((string[] | null) | undefined) | undefined) | any;
|
|
7938
7938
|
status?: (('success' | 'error' | 'running') | undefined) | undefined;
|
|
7939
7939
|
hasChildError?: (boolean | undefined) | undefined;
|
|
7940
|
-
page?: (number | undefined) | undefined;
|
|
7941
|
-
perPage?: (number | undefined) | undefined;
|
|
7942
|
-
field?: ('startedAt' | 'endedAt') | undefined;
|
|
7943
|
-
direction?: ('ASC' | 'DESC') | undefined;
|
|
7944
7940
|
dateRange?: (({
|
|
7945
7941
|
/** Start of date range (inclusive by default) */
|
|
7946
7942
|
start?: Date | undefined;
|
|
@@ -7952,9 +7948,16 @@ export type GetObservabilityTraces_QueryParams = {
|
|
|
7952
7948
|
endExclusive?: boolean | undefined;
|
|
7953
7949
|
} | undefined) | undefined) | any;
|
|
7954
7950
|
name?: (string | undefined) | undefined;
|
|
7951
|
+
page?: (number | undefined) | undefined;
|
|
7952
|
+
perPage?: (number | undefined) | undefined;
|
|
7953
|
+
field?: ('startedAt' | 'endedAt') | undefined;
|
|
7954
|
+
direction?: ('ASC' | 'DESC') | undefined;
|
|
7955
|
+
mode?: (('page' | 'delta') | undefined) | undefined;
|
|
7956
|
+
after?: (string | undefined) | undefined;
|
|
7957
|
+
limit?: (number | undefined) | undefined;
|
|
7955
7958
|
};
|
|
7956
7959
|
export type GetObservabilityTraces_Response = {
|
|
7957
|
-
pagination
|
|
7960
|
+
pagination?: {
|
|
7958
7961
|
/** Total number of items available */
|
|
7959
7962
|
total: number;
|
|
7960
7963
|
/** Current page */
|
|
@@ -7963,7 +7966,14 @@ export type GetObservabilityTraces_Response = {
|
|
|
7963
7966
|
perPage: number | false;
|
|
7964
7967
|
/** True if more pages are available */
|
|
7965
7968
|
hasMore: boolean;
|
|
7966
|
-
};
|
|
7969
|
+
} | undefined;
|
|
7970
|
+
delta?: {
|
|
7971
|
+
/** Maximum number of updates requested for this delta poll */
|
|
7972
|
+
limit: number;
|
|
7973
|
+
/** True when more matching updates remain after this response */
|
|
7974
|
+
hasMore: boolean;
|
|
7975
|
+
} | undefined;
|
|
7976
|
+
deltaCursor?: string | undefined;
|
|
7967
7977
|
spans: {
|
|
7968
7978
|
/** Unique trace identifier */
|
|
7969
7979
|
traceId: string;
|
|
@@ -8230,9 +8240,12 @@ export type GetObservabilityBranches_QueryParams = {
|
|
|
8230
8240
|
perPage?: (number | undefined) | undefined;
|
|
8231
8241
|
field?: ('startedAt' | 'endedAt') | undefined;
|
|
8232
8242
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
8243
|
+
mode?: (('page' | 'delta') | undefined) | undefined;
|
|
8244
|
+
after?: (string | undefined) | undefined;
|
|
8245
|
+
limit?: (number | undefined) | undefined;
|
|
8233
8246
|
};
|
|
8234
8247
|
export type GetObservabilityBranches_Response = {
|
|
8235
|
-
pagination
|
|
8248
|
+
pagination?: {
|
|
8236
8249
|
/** Total number of items available */
|
|
8237
8250
|
total: number;
|
|
8238
8251
|
/** Current page */
|
|
@@ -8241,7 +8254,14 @@ export type GetObservabilityBranches_Response = {
|
|
|
8241
8254
|
perPage: number | false;
|
|
8242
8255
|
/** True if more pages are available */
|
|
8243
8256
|
hasMore: boolean;
|
|
8244
|
-
};
|
|
8257
|
+
} | undefined;
|
|
8258
|
+
delta?: {
|
|
8259
|
+
/** Maximum number of updates requested for this delta poll */
|
|
8260
|
+
limit: number;
|
|
8261
|
+
/** True when more matching updates remain after this response */
|
|
8262
|
+
hasMore: boolean;
|
|
8263
|
+
} | undefined;
|
|
8264
|
+
deltaCursor?: string | undefined;
|
|
8245
8265
|
branches: {
|
|
8246
8266
|
/** Unique trace identifier */
|
|
8247
8267
|
traceId: string;
|
|
@@ -8798,6 +8818,148 @@ export interface GetObservabilityTracesTraceIdSpanIdScores_RouteContract {
|
|
|
8798
8818
|
response: GetObservabilityTracesTraceIdSpanIdScores_Response;
|
|
8799
8819
|
responseType: 'json';
|
|
8800
8820
|
}
|
|
8821
|
+
export type GetObservabilityMetrics_QueryParams = {
|
|
8822
|
+
timestamp?: (({
|
|
8823
|
+
/** Start of date range (inclusive by default) */
|
|
8824
|
+
start?: Date | undefined;
|
|
8825
|
+
/** End of date range (inclusive by default) */
|
|
8826
|
+
end?: Date | undefined;
|
|
8827
|
+
/** When true, excludes the start date from results (uses > instead of >=) */
|
|
8828
|
+
startExclusive?: boolean | undefined;
|
|
8829
|
+
/** When true, excludes the end date from results (uses < instead of <=) */
|
|
8830
|
+
endExclusive?: boolean | undefined;
|
|
8831
|
+
} | undefined) | undefined) | any;
|
|
8832
|
+
traceId?: (string | undefined) | undefined;
|
|
8833
|
+
spanId?: (string | undefined) | undefined;
|
|
8834
|
+
entityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | undefined) | undefined;
|
|
8835
|
+
entityName?: (string | undefined) | undefined;
|
|
8836
|
+
entityVersionId?: (string | undefined) | undefined;
|
|
8837
|
+
parentEntityVersionId?: (string | undefined) | undefined;
|
|
8838
|
+
rootEntityVersionId?: (string | undefined) | undefined;
|
|
8839
|
+
userId?: (string | undefined) | undefined;
|
|
8840
|
+
organizationId?: (string | undefined) | undefined;
|
|
8841
|
+
experimentId?: (string | undefined) | undefined;
|
|
8842
|
+
serviceName?: (string | undefined) | undefined;
|
|
8843
|
+
environment?: (string | undefined) | undefined;
|
|
8844
|
+
parentEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | undefined) | undefined;
|
|
8845
|
+
parentEntityName?: (string | undefined) | undefined;
|
|
8846
|
+
rootEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | undefined) | undefined;
|
|
8847
|
+
rootEntityName?: (string | undefined) | undefined;
|
|
8848
|
+
resourceId?: (string | undefined) | undefined;
|
|
8849
|
+
runId?: (string | undefined) | undefined;
|
|
8850
|
+
sessionId?: (string | undefined) | undefined;
|
|
8851
|
+
threadId?: (string | undefined) | undefined;
|
|
8852
|
+
requestId?: (string | undefined) | undefined;
|
|
8853
|
+
executionSource?: (string | undefined) | undefined;
|
|
8854
|
+
tags?: ((string[] | undefined) | undefined) | any;
|
|
8855
|
+
name?: ((string[] | undefined) | undefined) | any;
|
|
8856
|
+
source?: (string | undefined) | undefined;
|
|
8857
|
+
provider?: (string | undefined) | undefined;
|
|
8858
|
+
model?: (string | undefined) | undefined;
|
|
8859
|
+
costUnit?: (string | undefined) | undefined;
|
|
8860
|
+
labels?: (({
|
|
8861
|
+
[key: string]: string;
|
|
8862
|
+
} | undefined) | undefined) | any;
|
|
8863
|
+
page?: (number | undefined) | undefined;
|
|
8864
|
+
perPage?: (number | undefined) | undefined;
|
|
8865
|
+
field?: 'timestamp' | undefined;
|
|
8866
|
+
direction?: ('ASC' | 'DESC') | undefined;
|
|
8867
|
+
mode?: (('page' | 'delta') | undefined) | undefined;
|
|
8868
|
+
after?: (string | undefined) | undefined;
|
|
8869
|
+
limit?: (number | undefined) | undefined;
|
|
8870
|
+
};
|
|
8871
|
+
export type GetObservabilityMetrics_Response = {
|
|
8872
|
+
pagination?: {
|
|
8873
|
+
/** Total number of items available */
|
|
8874
|
+
total: number;
|
|
8875
|
+
/** Current page */
|
|
8876
|
+
page: number;
|
|
8877
|
+
/** Number of items per page, or false if pagination is disabled */
|
|
8878
|
+
perPage: number | false;
|
|
8879
|
+
/** True if more pages are available */
|
|
8880
|
+
hasMore: boolean;
|
|
8881
|
+
} | undefined;
|
|
8882
|
+
delta?: {
|
|
8883
|
+
/** Maximum number of updates requested for this delta poll */
|
|
8884
|
+
limit: number;
|
|
8885
|
+
/** True when more matching updates remain after this response */
|
|
8886
|
+
hasMore: boolean;
|
|
8887
|
+
} | undefined;
|
|
8888
|
+
deltaCursor?: string | undefined;
|
|
8889
|
+
metrics: {
|
|
8890
|
+
/** Unique id for this metric event */
|
|
8891
|
+
metricId?: (string | null) | undefined;
|
|
8892
|
+
/** When the metric was recorded */
|
|
8893
|
+
timestamp: Date;
|
|
8894
|
+
/** Metric name (e.g., mastra_agent_duration_ms) */
|
|
8895
|
+
name: string;
|
|
8896
|
+
/** Metric value */
|
|
8897
|
+
value: number;
|
|
8898
|
+
traceId?: (string | null) | undefined;
|
|
8899
|
+
spanId?: (string | null) | undefined;
|
|
8900
|
+
entityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
|
|
8901
|
+
entityId?: (string | null) | undefined;
|
|
8902
|
+
entityName?: (string | null) | undefined;
|
|
8903
|
+
parentEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
|
|
8904
|
+
parentEntityId?: (string | null) | undefined;
|
|
8905
|
+
parentEntityName?: (string | null) | undefined;
|
|
8906
|
+
rootEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
|
|
8907
|
+
rootEntityId?: (string | null) | undefined;
|
|
8908
|
+
rootEntityName?: (string | null) | undefined;
|
|
8909
|
+
userId?: (string | null) | undefined;
|
|
8910
|
+
organizationId?: (string | null) | undefined;
|
|
8911
|
+
resourceId?: (string | null) | undefined;
|
|
8912
|
+
runId?: (string | null) | undefined;
|
|
8913
|
+
sessionId?: (string | null) | undefined;
|
|
8914
|
+
threadId?: (string | null) | undefined;
|
|
8915
|
+
requestId?: (string | null) | undefined;
|
|
8916
|
+
environment?: (string | null) | undefined;
|
|
8917
|
+
serviceName?: (string | null) | undefined;
|
|
8918
|
+
scope?: ({
|
|
8919
|
+
[key: string]: unknown;
|
|
8920
|
+
} | null) | undefined;
|
|
8921
|
+
entityVersionId?: (string | null) | undefined;
|
|
8922
|
+
parentEntityVersionId?: (string | null) | undefined;
|
|
8923
|
+
rootEntityVersionId?: (string | null) | undefined;
|
|
8924
|
+
experimentId?: (string | null) | undefined;
|
|
8925
|
+
executionSource?: (string | null) | undefined;
|
|
8926
|
+
tags?: (string[] | null) | undefined;
|
|
8927
|
+
/** Execution source */
|
|
8928
|
+
source?: (string | null) | undefined;
|
|
8929
|
+
provider?: (string | null) | undefined;
|
|
8930
|
+
model?: (string | null) | undefined;
|
|
8931
|
+
estimatedCost?: (number | null) | undefined;
|
|
8932
|
+
costUnit?: (string | null) | undefined;
|
|
8933
|
+
costMetadata?: ((({
|
|
8934
|
+
[key: string]: unknown;
|
|
8935
|
+
} | null) | undefined) | null) | undefined;
|
|
8936
|
+
labels: {
|
|
8937
|
+
[key: string]: string;
|
|
8938
|
+
};
|
|
8939
|
+
metadata?: ({
|
|
8940
|
+
[key: string]: unknown;
|
|
8941
|
+
} | null) | undefined;
|
|
8942
|
+
}[];
|
|
8943
|
+
};
|
|
8944
|
+
export type GetObservabilityMetrics_Request = Simplify<(never extends never ? {} : {
|
|
8945
|
+
params: never;
|
|
8946
|
+
}) & (GetObservabilityMetrics_QueryParams extends never ? {} : {} extends GetObservabilityMetrics_QueryParams ? {
|
|
8947
|
+
query?: GetObservabilityMetrics_QueryParams;
|
|
8948
|
+
} : {
|
|
8949
|
+
query: GetObservabilityMetrics_QueryParams;
|
|
8950
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
8951
|
+
body?: never;
|
|
8952
|
+
} : {
|
|
8953
|
+
body: never;
|
|
8954
|
+
})>;
|
|
8955
|
+
export interface GetObservabilityMetrics_RouteContract {
|
|
8956
|
+
pathParams: never;
|
|
8957
|
+
queryParams: GetObservabilityMetrics_QueryParams;
|
|
8958
|
+
body: never;
|
|
8959
|
+
request: GetObservabilityMetrics_Request;
|
|
8960
|
+
response: GetObservabilityMetrics_Response;
|
|
8961
|
+
responseType: 'json';
|
|
8962
|
+
}
|
|
8801
8963
|
export type GetObservabilityLogs_QueryParams = {
|
|
8802
8964
|
timestamp?: (({
|
|
8803
8965
|
/** Start of date range (inclusive by default) */
|
|
@@ -8838,9 +9000,12 @@ export type GetObservabilityLogs_QueryParams = {
|
|
|
8838
9000
|
perPage?: (number | undefined) | undefined;
|
|
8839
9001
|
field?: 'timestamp' | undefined;
|
|
8840
9002
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
9003
|
+
mode?: (('page' | 'delta') | undefined) | undefined;
|
|
9004
|
+
after?: (string | undefined) | undefined;
|
|
9005
|
+
limit?: (number | undefined) | undefined;
|
|
8841
9006
|
};
|
|
8842
9007
|
export type GetObservabilityLogs_Response = {
|
|
8843
|
-
pagination
|
|
9008
|
+
pagination?: {
|
|
8844
9009
|
/** Total number of items available */
|
|
8845
9010
|
total: number;
|
|
8846
9011
|
/** Current page */
|
|
@@ -8849,7 +9014,14 @@ export type GetObservabilityLogs_Response = {
|
|
|
8849
9014
|
perPage: number | false;
|
|
8850
9015
|
/** True if more pages are available */
|
|
8851
9016
|
hasMore: boolean;
|
|
8852
|
-
};
|
|
9017
|
+
} | undefined;
|
|
9018
|
+
delta?: {
|
|
9019
|
+
/** Maximum number of updates requested for this delta poll */
|
|
9020
|
+
limit: number;
|
|
9021
|
+
/** True when more matching updates remain after this response */
|
|
9022
|
+
hasMore: boolean;
|
|
9023
|
+
} | undefined;
|
|
9024
|
+
deltaCursor?: string | undefined;
|
|
8853
9025
|
logs: {
|
|
8854
9026
|
/** Unique id for this log event */
|
|
8855
9027
|
logId?: (string | null) | undefined;
|
|
@@ -8958,9 +9130,12 @@ export type GetObservabilityScores_QueryParams = {
|
|
|
8958
9130
|
perPage?: (number | undefined) | undefined;
|
|
8959
9131
|
field?: ('timestamp' | 'score') | undefined;
|
|
8960
9132
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
9133
|
+
mode?: (('page' | 'delta') | undefined) | undefined;
|
|
9134
|
+
after?: (string | undefined) | undefined;
|
|
9135
|
+
limit?: (number | undefined) | undefined;
|
|
8961
9136
|
};
|
|
8962
9137
|
export type GetObservabilityScores_Response = {
|
|
8963
|
-
pagination
|
|
9138
|
+
pagination?: {
|
|
8964
9139
|
/** Total number of items available */
|
|
8965
9140
|
total: number;
|
|
8966
9141
|
/** Current page */
|
|
@@ -8969,7 +9144,14 @@ export type GetObservabilityScores_Response = {
|
|
|
8969
9144
|
perPage: number | false;
|
|
8970
9145
|
/** True if more pages are available */
|
|
8971
9146
|
hasMore: boolean;
|
|
8972
|
-
};
|
|
9147
|
+
} | undefined;
|
|
9148
|
+
delta?: {
|
|
9149
|
+
/** Maximum number of updates requested for this delta poll */
|
|
9150
|
+
limit: number;
|
|
9151
|
+
/** True when more matching updates remain after this response */
|
|
9152
|
+
hasMore: boolean;
|
|
9153
|
+
} | undefined;
|
|
9154
|
+
deltaCursor?: string | undefined;
|
|
8973
9155
|
scores: {
|
|
8974
9156
|
/** Unique id for this score event */
|
|
8975
9157
|
scoreId?: (string | null) | undefined;
|
|
@@ -9568,9 +9750,12 @@ export type GetObservabilityFeedback_QueryParams = {
|
|
|
9568
9750
|
perPage?: (number | undefined) | undefined;
|
|
9569
9751
|
field?: 'timestamp' | undefined;
|
|
9570
9752
|
direction?: ('ASC' | 'DESC') | undefined;
|
|
9753
|
+
mode?: (('page' | 'delta') | undefined) | undefined;
|
|
9754
|
+
after?: (string | undefined) | undefined;
|
|
9755
|
+
limit?: (number | undefined) | undefined;
|
|
9571
9756
|
};
|
|
9572
9757
|
export type GetObservabilityFeedback_Response = {
|
|
9573
|
-
pagination
|
|
9758
|
+
pagination?: {
|
|
9574
9759
|
/** Total number of items available */
|
|
9575
9760
|
total: number;
|
|
9576
9761
|
/** Current page */
|
|
@@ -9579,7 +9764,14 @@ export type GetObservabilityFeedback_Response = {
|
|
|
9579
9764
|
perPage: number | false;
|
|
9580
9765
|
/** True if more pages are available */
|
|
9581
9766
|
hasMore: boolean;
|
|
9582
|
-
};
|
|
9767
|
+
} | undefined;
|
|
9768
|
+
delta?: {
|
|
9769
|
+
/** Maximum number of updates requested for this delta poll */
|
|
9770
|
+
limit: number;
|
|
9771
|
+
/** True when more matching updates remain after this response */
|
|
9772
|
+
hasMore: boolean;
|
|
9773
|
+
} | undefined;
|
|
9774
|
+
deltaCursor?: string | undefined;
|
|
9583
9775
|
feedback: {
|
|
9584
9776
|
/** Unique id for this feedback event */
|
|
9585
9777
|
feedbackId?: (string | null) | undefined;
|
|
@@ -42726,6 +42918,7 @@ export interface RouteTypes {
|
|
|
42726
42918
|
'GET /observability/traces/:traceId/trajectory': GetObservabilityTracesTraceIdTrajectory_RouteContract;
|
|
42727
42919
|
'POST /observability/traces/score': PostObservabilityTracesScore_RouteContract;
|
|
42728
42920
|
'GET /observability/traces/:traceId/:spanId/scores': GetObservabilityTracesTraceIdSpanIdScores_RouteContract;
|
|
42921
|
+
'GET /observability/metrics': GetObservabilityMetrics_RouteContract;
|
|
42729
42922
|
'GET /observability/logs': GetObservabilityLogs_RouteContract;
|
|
42730
42923
|
'GET /observability/scores': GetObservabilityScores_RouteContract;
|
|
42731
42924
|
'POST /observability/scores': PostObservabilityScores_RouteContract;
|
|
@@ -43331,6 +43524,9 @@ export interface Client {
|
|
|
43331
43524
|
'/observability/logs': {
|
|
43332
43525
|
GET: GetObservabilityLogs_RouteContract;
|
|
43333
43526
|
};
|
|
43527
|
+
'/observability/metrics': {
|
|
43528
|
+
GET: GetObservabilityMetrics_RouteContract;
|
|
43529
|
+
};
|
|
43334
43530
|
'/observability/metrics/aggregate': {
|
|
43335
43531
|
POST: PostObservabilityMetricsAggregate_RouteContract;
|
|
43336
43532
|
};
|