langsmith 0.7.15 → 0.7.17
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/_openapi_client/client.cjs +17 -9
- package/dist/_openapi_client/client.d.ts +9 -6
- package/dist/_openapi_client/client.js +17 -9
- package/dist/_openapi_client/resources/datasets/datasets.cjs +0 -130
- package/dist/_openapi_client/resources/datasets/datasets.d.ts +3 -271
- package/dist/_openapi_client/resources/datasets/datasets.js +0 -130
- package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +1 -1
- package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +8 -8
- package/dist/_openapi_client/resources/datasets/experiment-runs.js +1 -1
- package/dist/_openapi_client/resources/index.cjs +6 -4
- package/dist/_openapi_client/resources/index.d.ts +4 -3
- package/dist/_openapi_client/resources/index.js +3 -2
- package/dist/_openapi_client/resources/runs.cjs +69 -15
- package/dist/_openapi_client/resources/runs.d.ts +815 -1
- package/dist/_openapi_client/resources/runs.js +67 -1
- package/dist/_openapi_client/resources/threads.cjs +65 -0
- package/dist/_openapi_client/resources/threads.d.ts +654 -0
- package/dist/_openapi_client/resources/threads.js +61 -0
- package/dist/_openapi_client/resources/traces.cjs +61 -0
- package/dist/_openapi_client/resources/traces.d.ts +162 -0
- package/dist/_openapi_client/resources/traces.js +57 -0
- package/dist/client.cjs +1 -5
- package/dist/client.d.ts +2 -5
- package/dist/client.js +1 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/wrappers/anthropic.cjs +38 -25
- package/dist/wrappers/anthropic.d.ts +10 -1
- package/dist/wrappers/anthropic.js +38 -25
- package/dist/wrappers/utils/anthropic_managed.cjs +648 -0
- package/dist/wrappers/utils/anthropic_managed.d.ts +7 -0
- package/dist/wrappers/utils/anthropic_managed.js +645 -0
- package/package.json +1 -1
- package/dist/_openapi_client/resources/datasets/comparative.cjs +0 -22
- package/dist/_openapi_client/resources/datasets/comparative.d.ts +0 -55
- package/dist/_openapi_client/resources/datasets/comparative.js +0 -18
- package/dist/_openapi_client/resources/datasets/runs.cjs +0 -22
- package/dist/_openapi_client/resources/datasets/runs.d.ts +0 -175
- package/dist/_openapi_client/resources/datasets/runs.js +0 -18
- package/dist/_openapi_client/resources/datasets/share.cjs +0 -32
- package/dist/_openapi_client/resources/datasets/share.d.ts +0 -28
- package/dist/_openapi_client/resources/datasets/share.js +0 -28
- package/dist/_openapi_client/resources/datasets/splits.cjs +0 -22
- package/dist/_openapi_client/resources/datasets/splits.d.ts +0 -30
- package/dist/_openapi_client/resources/datasets/splits.js +0 -18
- package/dist/_openapi_client/resources/datasets/versions.cjs +0 -23
- package/dist/_openapi_client/resources/datasets/versions.d.ts +0 -36
- package/dist/_openapi_client/resources/datasets/versions.js +0 -19
- package/dist/_openapi_client/resources/runs/index.cjs +0 -9
- package/dist/_openapi_client/resources/runs/index.d.ts +0 -2
- package/dist/_openapi_client/resources/runs/index.js +0 -4
- package/dist/_openapi_client/resources/runs/rules.cjs +0 -9
- package/dist/_openapi_client/resources/runs/rules.d.ts +0 -3
- package/dist/_openapi_client/resources/runs/rules.js +0 -5
- package/dist/_openapi_client/resources/runs/runs.cjs +0 -115
- package/dist/_openapi_client/resources/runs/runs.d.ts +0 -800
- package/dist/_openapi_client/resources/runs/runs.js +0 -78
- package/dist/_openapi_client/resources/sessions.cjs +0 -53
- package/dist/_openapi_client/resources/sessions.d.ts +0 -636
- package/dist/_openapi_client/resources/sessions.js +0 -49
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
3
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
4
|
-
export declare class Comparative extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a comparative experiment.
|
|
7
|
-
*/
|
|
8
|
-
create(body: ComparativeCreateParams, options?: RequestOptions): APIPromise<ComparativeCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Delete a specific comparative experiment.
|
|
11
|
-
*/
|
|
12
|
-
delete(comparativeExperimentID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Simple experiment info schema for use with comparative experiments
|
|
16
|
-
*/
|
|
17
|
-
export interface SimpleExperimentInfo {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Enum for available comparative experiment columns to sort by.
|
|
23
|
-
*/
|
|
24
|
-
export type SortByComparativeExperimentColumn = 'name' | 'created_at';
|
|
25
|
-
/**
|
|
26
|
-
* ComparativeExperiment schema.
|
|
27
|
-
*/
|
|
28
|
-
export interface ComparativeCreateResponse {
|
|
29
|
-
id: string;
|
|
30
|
-
created_at: string;
|
|
31
|
-
modified_at: string;
|
|
32
|
-
reference_dataset_id: string;
|
|
33
|
-
tenant_id: string;
|
|
34
|
-
description?: string | null;
|
|
35
|
-
extra?: {
|
|
36
|
-
[key: string]: unknown;
|
|
37
|
-
} | null;
|
|
38
|
-
name?: string | null;
|
|
39
|
-
}
|
|
40
|
-
export type ComparativeDeleteResponse = unknown;
|
|
41
|
-
export interface ComparativeCreateParams {
|
|
42
|
-
experiment_ids: Array<string>;
|
|
43
|
-
id?: string;
|
|
44
|
-
created_at?: string;
|
|
45
|
-
description?: string | null;
|
|
46
|
-
extra?: {
|
|
47
|
-
[key: string]: unknown;
|
|
48
|
-
} | null;
|
|
49
|
-
modified_at?: string;
|
|
50
|
-
name?: string | null;
|
|
51
|
-
reference_dataset_id?: string | null;
|
|
52
|
-
}
|
|
53
|
-
export declare namespace Comparative {
|
|
54
|
-
export { type SimpleExperimentInfo as SimpleExperimentInfo, type SortByComparativeExperimentColumn as SortByComparativeExperimentColumn, type ComparativeCreateResponse as ComparativeCreateResponse, type ComparativeDeleteResponse as ComparativeDeleteResponse, type ComparativeCreateParams as ComparativeCreateParams, };
|
|
55
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { path } from '../../internal/utils/path.js';
|
|
5
|
-
export class Comparative extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a comparative experiment.
|
|
8
|
-
*/
|
|
9
|
-
create(body, options) {
|
|
10
|
-
return this._client.post('/api/v1/datasets/comparative', { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Delete a specific comparative experiment.
|
|
14
|
-
*/
|
|
15
|
-
delete(comparativeExperimentID, options) {
|
|
16
|
-
return this._client.delete(path `/api/v1/datasets/comparative/${comparativeExperimentID}`, options);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Runs = void 0;
|
|
6
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
7
|
-
const path_js_1 = require("../../internal/utils/path.cjs");
|
|
8
|
-
class Runs extends resource_js_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Fetch examples for a dataset, and fetch the runs for each example if they are
|
|
11
|
-
* associated with the given session_ids.
|
|
12
|
-
*/
|
|
13
|
-
create(datasetID, params, options) {
|
|
14
|
-
const { format, ...body } = params;
|
|
15
|
-
return this._client.post((0, path_js_1.path) `/api/v1/datasets/${datasetID}/runs`, {
|
|
16
|
-
query: { format },
|
|
17
|
-
body,
|
|
18
|
-
...options,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Runs = Runs;
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import * as RunsAPI_ from '../runs/runs.js';
|
|
3
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
4
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
5
|
-
export declare class Runs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Fetch examples for a dataset, and fetch the runs for each example if they are
|
|
8
|
-
* associated with the given session_ids.
|
|
9
|
-
*/
|
|
10
|
-
create(datasetID: string, params: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse | null>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Example schema with list of runs from ClickHouse.
|
|
14
|
-
*
|
|
15
|
-
* For non-grouped endpoint (/datasets/{dataset_id}/runs): runs from single
|
|
16
|
-
* session. For grouped endpoint (/datasets/{dataset_id}/group/runs): flat array of
|
|
17
|
-
* runs from all sessions, where each run has a session_id field for frontend to
|
|
18
|
-
* determine column placement.
|
|
19
|
-
*/
|
|
20
|
-
export interface ExampleWithRunsCh {
|
|
21
|
-
id: string;
|
|
22
|
-
dataset_id: string;
|
|
23
|
-
inputs: {
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
name: string;
|
|
27
|
-
runs: Array<ExampleWithRunsCh.Run>;
|
|
28
|
-
attachment_urls?: {
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
} | null;
|
|
31
|
-
created_at?: string;
|
|
32
|
-
metadata?: {
|
|
33
|
-
[key: string]: unknown;
|
|
34
|
-
} | null;
|
|
35
|
-
modified_at?: string | null;
|
|
36
|
-
outputs?: {
|
|
37
|
-
[key: string]: unknown;
|
|
38
|
-
} | null;
|
|
39
|
-
source_run_id?: string | null;
|
|
40
|
-
source_run_start_time?: string | null;
|
|
41
|
-
source_session_id?: string | null;
|
|
42
|
-
source_trace_id?: string | null;
|
|
43
|
-
}
|
|
44
|
-
export declare namespace ExampleWithRunsCh {
|
|
45
|
-
/**
|
|
46
|
-
* Run schema for comparison view.
|
|
47
|
-
*/
|
|
48
|
-
interface Run {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
/**
|
|
52
|
-
* Enum for run types.
|
|
53
|
-
*/
|
|
54
|
-
run_type: RunsAPI_.RunTypeEnum;
|
|
55
|
-
session_id: string;
|
|
56
|
-
status: string;
|
|
57
|
-
trace_id: string;
|
|
58
|
-
app_path?: string | null;
|
|
59
|
-
completion_cost?: string | null;
|
|
60
|
-
completion_tokens?: number | null;
|
|
61
|
-
dotted_order?: string | null;
|
|
62
|
-
end_time?: string | null;
|
|
63
|
-
error?: string | null;
|
|
64
|
-
events?: Array<{
|
|
65
|
-
[key: string]: unknown;
|
|
66
|
-
}> | null;
|
|
67
|
-
execution_order?: number;
|
|
68
|
-
extra?: {
|
|
69
|
-
[key: string]: unknown;
|
|
70
|
-
} | null;
|
|
71
|
-
feedback_stats?: {
|
|
72
|
-
[key: string]: {
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
};
|
|
75
|
-
} | null;
|
|
76
|
-
first_token_time?: string | null;
|
|
77
|
-
inputs?: {
|
|
78
|
-
[key: string]: unknown;
|
|
79
|
-
} | null;
|
|
80
|
-
inputs_preview?: string | null;
|
|
81
|
-
inputs_s3_urls?: {
|
|
82
|
-
[key: string]: unknown;
|
|
83
|
-
} | null;
|
|
84
|
-
manifest_id?: string | null;
|
|
85
|
-
manifest_s3_id?: string | null;
|
|
86
|
-
outputs?: {
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
} | null;
|
|
89
|
-
outputs_preview?: string | null;
|
|
90
|
-
outputs_s3_urls?: {
|
|
91
|
-
[key: string]: unknown;
|
|
92
|
-
} | null;
|
|
93
|
-
parent_run_id?: string | null;
|
|
94
|
-
prompt_cost?: string | null;
|
|
95
|
-
prompt_tokens?: number | null;
|
|
96
|
-
reference_example_id?: string | null;
|
|
97
|
-
s3_urls?: {
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
} | null;
|
|
100
|
-
serialized?: {
|
|
101
|
-
[key: string]: unknown;
|
|
102
|
-
} | null;
|
|
103
|
-
start_time?: string;
|
|
104
|
-
tags?: Array<string> | null;
|
|
105
|
-
total_cost?: string | null;
|
|
106
|
-
total_tokens?: number | null;
|
|
107
|
-
trace_max_start_time?: string | null;
|
|
108
|
-
trace_min_start_time?: string | null;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
export interface QueryExampleSchemaWithRuns {
|
|
112
|
-
session_ids: Array<string>;
|
|
113
|
-
comparative_experiment_id?: string | null;
|
|
114
|
-
example_ids?: Array<string> | null;
|
|
115
|
-
filters?: {
|
|
116
|
-
[key: string]: Array<string>;
|
|
117
|
-
} | null;
|
|
118
|
-
include_annotator_detail?: boolean;
|
|
119
|
-
limit?: number;
|
|
120
|
-
offset?: number;
|
|
121
|
-
preview?: boolean;
|
|
122
|
-
sort_params?: SortParamsForRunsComparisonView | null;
|
|
123
|
-
}
|
|
124
|
-
export interface SortParamsForRunsComparisonView {
|
|
125
|
-
sort_by: string;
|
|
126
|
-
sort_order?: 'ASC' | 'DESC';
|
|
127
|
-
}
|
|
128
|
-
export type RunCreateResponse = Array<ExampleWithRunsCh>;
|
|
129
|
-
export interface RunCreateParams {
|
|
130
|
-
/**
|
|
131
|
-
* Body param
|
|
132
|
-
*/
|
|
133
|
-
session_ids: Array<string>;
|
|
134
|
-
/**
|
|
135
|
-
* Query param: Response format, e.g., 'csv'
|
|
136
|
-
*/
|
|
137
|
-
format?: 'csv' | null;
|
|
138
|
-
/**
|
|
139
|
-
* Body param
|
|
140
|
-
*/
|
|
141
|
-
comparative_experiment_id?: string | null;
|
|
142
|
-
/**
|
|
143
|
-
* Body param
|
|
144
|
-
*/
|
|
145
|
-
example_ids?: Array<string> | null;
|
|
146
|
-
/**
|
|
147
|
-
* Body param
|
|
148
|
-
*/
|
|
149
|
-
filters?: {
|
|
150
|
-
[key: string]: Array<string>;
|
|
151
|
-
} | null;
|
|
152
|
-
/**
|
|
153
|
-
* Body param
|
|
154
|
-
*/
|
|
155
|
-
include_annotator_detail?: boolean;
|
|
156
|
-
/**
|
|
157
|
-
* Body param
|
|
158
|
-
*/
|
|
159
|
-
limit?: number | null;
|
|
160
|
-
/**
|
|
161
|
-
* Body param
|
|
162
|
-
*/
|
|
163
|
-
offset?: number;
|
|
164
|
-
/**
|
|
165
|
-
* Body param
|
|
166
|
-
*/
|
|
167
|
-
preview?: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Body param
|
|
170
|
-
*/
|
|
171
|
-
sort_params?: SortParamsForRunsComparisonView | null;
|
|
172
|
-
}
|
|
173
|
-
export declare namespace Runs {
|
|
174
|
-
export { type ExampleWithRunsCh as ExampleWithRunsCh, type QueryExampleSchemaWithRuns as QueryExampleSchemaWithRuns, type SortParamsForRunsComparisonView as SortParamsForRunsComparisonView, type RunCreateResponse as RunCreateResponse, type RunCreateParams as RunCreateParams, };
|
|
175
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { path } from '../../internal/utils/path.js';
|
|
5
|
-
export class Runs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Fetch examples for a dataset, and fetch the runs for each example if they are
|
|
8
|
-
* associated with the given session_ids.
|
|
9
|
-
*/
|
|
10
|
-
create(datasetID, params, options) {
|
|
11
|
-
const { format, ...body } = params;
|
|
12
|
-
return this._client.post(path `/api/v1/datasets/${datasetID}/runs`, {
|
|
13
|
-
query: { format },
|
|
14
|
-
body,
|
|
15
|
-
...options,
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Share = void 0;
|
|
6
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
7
|
-
const path_js_1 = require("../../internal/utils/path.cjs");
|
|
8
|
-
class Share extends resource_js_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Share a dataset.
|
|
11
|
-
*/
|
|
12
|
-
create(datasetID, params = {}, options) {
|
|
13
|
-
const { share_projects } = params ?? {};
|
|
14
|
-
return this._client.put((0, path_js_1.path) `/api/v1/datasets/${datasetID}/share`, {
|
|
15
|
-
query: { share_projects },
|
|
16
|
-
...options,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get the state of sharing a dataset
|
|
21
|
-
*/
|
|
22
|
-
retrieve(datasetID, options) {
|
|
23
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/share`, options);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Unshare a dataset.
|
|
27
|
-
*/
|
|
28
|
-
deleteAll(datasetID, options) {
|
|
29
|
-
return this._client.delete((0, path_js_1.path) `/api/v1/datasets/${datasetID}/share`, options);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Share = Share;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
3
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
4
|
-
export declare class Share extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Share a dataset.
|
|
7
|
-
*/
|
|
8
|
-
create(datasetID: string, params?: ShareCreateParams | null | undefined, options?: RequestOptions): APIPromise<DatasetShareSchema>;
|
|
9
|
-
/**
|
|
10
|
-
* Get the state of sharing a dataset
|
|
11
|
-
*/
|
|
12
|
-
retrieve(datasetID: string, options?: RequestOptions): APIPromise<DatasetShareSchema | null>;
|
|
13
|
-
/**
|
|
14
|
-
* Unshare a dataset.
|
|
15
|
-
*/
|
|
16
|
-
deleteAll(datasetID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
17
|
-
}
|
|
18
|
-
export interface DatasetShareSchema {
|
|
19
|
-
dataset_id: string;
|
|
20
|
-
share_token: string;
|
|
21
|
-
}
|
|
22
|
-
export type ShareDeleteAllResponse = unknown;
|
|
23
|
-
export interface ShareCreateParams {
|
|
24
|
-
share_projects?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace Share {
|
|
27
|
-
export { type DatasetShareSchema as DatasetShareSchema, type ShareDeleteAllResponse as ShareDeleteAllResponse, type ShareCreateParams as ShareCreateParams, };
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { path } from '../../internal/utils/path.js';
|
|
5
|
-
export class Share extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Share a dataset.
|
|
8
|
-
*/
|
|
9
|
-
create(datasetID, params = {}, options) {
|
|
10
|
-
const { share_projects } = params ?? {};
|
|
11
|
-
return this._client.put(path `/api/v1/datasets/${datasetID}/share`, {
|
|
12
|
-
query: { share_projects },
|
|
13
|
-
...options,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the state of sharing a dataset
|
|
18
|
-
*/
|
|
19
|
-
retrieve(datasetID, options) {
|
|
20
|
-
return this._client.get(path `/api/v1/datasets/${datasetID}/share`, options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Unshare a dataset.
|
|
24
|
-
*/
|
|
25
|
-
deleteAll(datasetID, options) {
|
|
26
|
-
return this._client.delete(path `/api/v1/datasets/${datasetID}/share`, options);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Splits = void 0;
|
|
6
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
7
|
-
const path_js_1 = require("../../internal/utils/path.cjs");
|
|
8
|
-
class Splits extends resource_js_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Update Dataset Splits
|
|
11
|
-
*/
|
|
12
|
-
create(datasetID, body, options) {
|
|
13
|
-
return this._client.put((0, path_js_1.path) `/api/v1/datasets/${datasetID}/splits`, { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get Dataset Splits
|
|
17
|
-
*/
|
|
18
|
-
retrieve(datasetID, query = {}, options) {
|
|
19
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/splits`, { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Splits = Splits;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
3
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
4
|
-
export declare class Splits extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Update Dataset Splits
|
|
7
|
-
*/
|
|
8
|
-
create(datasetID: string, body: SplitCreateParams, options?: RequestOptions): APIPromise<SplitCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Get Dataset Splits
|
|
11
|
-
*/
|
|
12
|
-
retrieve(datasetID: string, query?: SplitRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<SplitRetrieveResponse>;
|
|
13
|
-
}
|
|
14
|
-
export type SplitCreateResponse = Array<string>;
|
|
15
|
-
export type SplitRetrieveResponse = Array<string>;
|
|
16
|
-
export interface SplitCreateParams {
|
|
17
|
-
examples: Array<string>;
|
|
18
|
-
split_name: string;
|
|
19
|
-
remove?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface SplitRetrieveParams {
|
|
22
|
-
/**
|
|
23
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
24
|
-
* version of the dataset is used.
|
|
25
|
-
*/
|
|
26
|
-
as_of?: (string & {}) | string;
|
|
27
|
-
}
|
|
28
|
-
export declare namespace Splits {
|
|
29
|
-
export { type SplitCreateResponse as SplitCreateResponse, type SplitRetrieveResponse as SplitRetrieveResponse, type SplitCreateParams as SplitCreateParams, type SplitRetrieveParams as SplitRetrieveParams, };
|
|
30
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { path } from '../../internal/utils/path.js';
|
|
5
|
-
export class Splits extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update Dataset Splits
|
|
8
|
-
*/
|
|
9
|
-
create(datasetID, body, options) {
|
|
10
|
-
return this._client.put(path `/api/v1/datasets/${datasetID}/splits`, { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Get Dataset Splits
|
|
14
|
-
*/
|
|
15
|
-
retrieve(datasetID, query = {}, options) {
|
|
16
|
-
return this._client.get(path `/api/v1/datasets/${datasetID}/splits`, { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Versions = void 0;
|
|
6
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
7
|
-
const pagination_js_1 = require("../../core/pagination.cjs");
|
|
8
|
-
const path_js_1 = require("../../internal/utils/path.cjs");
|
|
9
|
-
class Versions extends resource_js_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Get dataset versions.
|
|
12
|
-
*/
|
|
13
|
-
list(datasetID, query = {}, options) {
|
|
14
|
-
return this._client.getAPIList((0, path_js_1.path) `/api/v1/datasets/${datasetID}/versions`, (pagination_js_1.OffsetPaginationTopLevelArray), { query, ...options });
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get diff between two dataset versions.
|
|
18
|
-
*/
|
|
19
|
-
retrieveDiff(datasetID, query, options) {
|
|
20
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/versions/diff`, { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.Versions = Versions;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import * as DatasetsAPI from './datasets.js';
|
|
3
|
-
import { DatasetVersionsOffsetPaginationTopLevelArray } from './datasets.js';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
5
|
-
import { type OffsetPaginationTopLevelArrayParams, PagePromise } from '../../core/pagination.js';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
7
|
-
export declare class Versions extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get dataset versions.
|
|
10
|
-
*/
|
|
11
|
-
list(datasetID: string, query?: VersionListParams | null | undefined, options?: RequestOptions): PagePromise<DatasetVersionsOffsetPaginationTopLevelArray, DatasetsAPI.DatasetVersion>;
|
|
12
|
-
/**
|
|
13
|
-
* Get diff between two dataset versions.
|
|
14
|
-
*/
|
|
15
|
-
retrieveDiff(datasetID: string, query: VersionRetrieveDiffParams, options?: RequestOptions): APIPromise<VersionRetrieveDiffResponse>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Dataset diff schema.
|
|
19
|
-
*/
|
|
20
|
-
export interface VersionRetrieveDiffResponse {
|
|
21
|
-
examples_added: Array<string>;
|
|
22
|
-
examples_modified: Array<string>;
|
|
23
|
-
examples_removed: Array<string>;
|
|
24
|
-
}
|
|
25
|
-
export interface VersionListParams extends OffsetPaginationTopLevelArrayParams {
|
|
26
|
-
example?: string | null;
|
|
27
|
-
search?: string | null;
|
|
28
|
-
}
|
|
29
|
-
export interface VersionRetrieveDiffParams {
|
|
30
|
-
from_version: (string & {}) | string;
|
|
31
|
-
to_version: (string & {}) | string;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace Versions {
|
|
34
|
-
export { type VersionRetrieveDiffResponse as VersionRetrieveDiffResponse, type VersionListParams as VersionListParams, type VersionRetrieveDiffParams as VersionRetrieveDiffParams, };
|
|
35
|
-
}
|
|
36
|
-
export { type DatasetVersionsOffsetPaginationTopLevelArray };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { OffsetPaginationTopLevelArray, } from '../../core/pagination.js';
|
|
5
|
-
import { path } from '../../internal/utils/path.js';
|
|
6
|
-
export class Versions extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Get dataset versions.
|
|
9
|
-
*/
|
|
10
|
-
list(datasetID, query = {}, options) {
|
|
11
|
-
return this._client.getAPIList(path `/api/v1/datasets/${datasetID}/versions`, (OffsetPaginationTopLevelArray), { query, ...options });
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Get diff between two dataset versions.
|
|
15
|
-
*/
|
|
16
|
-
retrieveDiff(datasetID, query, options) {
|
|
17
|
-
return this._client.get(path `/api/v1/datasets/${datasetID}/versions/diff`, { query, ...options });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Runs = exports.Rules = void 0;
|
|
6
|
-
var rules_js_1 = require("./rules.cjs");
|
|
7
|
-
Object.defineProperty(exports, "Rules", { enumerable: true, get: function () { return rules_js_1.Rules; } });
|
|
8
|
-
var runs_js_1 = require("./runs.cjs");
|
|
9
|
-
Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return runs_js_1.Runs; } });
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { Rules } from './rules.js';
|
|
2
|
-
export { Runs, type ResponseBodyForRunsGenerateQuery, type Run, type RunIngest, type RunSchema, type RunStatsQueryParams, type RunTypeEnum, type RunsFilterDataSourceTypeEnum, type RunQueryV2Params, type RunRetrieveV2Params, type RunRetrieveParams, type RunQueryParams, type RunsItemsCursorPostPagination, } from './runs.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Rules = void 0;
|
|
6
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
7
|
-
class Rules extends resource_js_1.APIResource {
|
|
8
|
-
}
|
|
9
|
-
exports.Rules = Rules;
|