@llamaindex/llama-cloud 2.2.0 → 2.3.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/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +0 -4
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +0 -4
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +0 -4
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +0 -4
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +0 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +0 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +1 -3
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +0 -1
- package/resources/beta/index.mjs.map +1 -1
- package/src/resources/beta/beta.ts +0 -29
- package/src/resources/beta/index.ts +0 -12
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/parse-configurations.d.mts +0 -210
- package/resources/beta/parse-configurations.d.mts.map +0 -1
- package/resources/beta/parse-configurations.d.ts +0 -210
- package/resources/beta/parse-configurations.d.ts.map +0 -1
- package/resources/beta/parse-configurations.js +0 -84
- package/resources/beta/parse-configurations.js.map +0 -1
- package/resources/beta/parse-configurations.mjs +0 -80
- package/resources/beta/parse-configurations.mjs.map +0 -1
- package/src/resources/beta/parse-configurations.ts +0 -311
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as PipelinesAPI from "../pipelines/pipelines.js";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
-
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from "../../core/pagination.js";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
-
export declare class ParseConfigurations extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a new parse configuration.
|
|
9
|
-
*
|
|
10
|
-
* Args: config_create: Parse configuration creation data project: Validated
|
|
11
|
-
* project from dependency user: Current user
|
|
12
|
-
*
|
|
13
|
-
* Returns: The created parse configuration
|
|
14
|
-
*/
|
|
15
|
-
create(params: ParseConfigurationCreateParams, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
16
|
-
/**
|
|
17
|
-
* Update a parse configuration.
|
|
18
|
-
*
|
|
19
|
-
* Args: config_id: The ID of the parse configuration to update config_update:
|
|
20
|
-
* Update data project: Validated project from dependency user: Current user
|
|
21
|
-
*
|
|
22
|
-
* Returns: The updated parse configuration
|
|
23
|
-
*/
|
|
24
|
-
update(configID: string, params: ParseConfigurationUpdateParams, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
25
|
-
/**
|
|
26
|
-
* List parse configurations for the current project.
|
|
27
|
-
*
|
|
28
|
-
* Args: project: Validated project from dependency user: Current user page_size:
|
|
29
|
-
* Number of items per page page_token: Token for pagination name: Filter by
|
|
30
|
-
* configuration name creator: Filter by creator version: Filter by version
|
|
31
|
-
*
|
|
32
|
-
* Returns: Paginated response with parse configurations
|
|
33
|
-
*/
|
|
34
|
-
list(query?: ParseConfigurationListParams | null | undefined, options?: RequestOptions): PagePromise<ParseConfigurationsPaginatedCursor, ParseConfiguration>;
|
|
35
|
-
/**
|
|
36
|
-
* Delete a parse configuration.
|
|
37
|
-
*
|
|
38
|
-
* Args: config_id: The ID of the parse configuration to delete project: Validated
|
|
39
|
-
* project from dependency user: Current user
|
|
40
|
-
*/
|
|
41
|
-
delete(configID: string, params?: ParseConfigurationDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Get a parse configuration by ID.
|
|
44
|
-
*
|
|
45
|
-
* Args: config_id: The ID of the parse configuration project: Validated project
|
|
46
|
-
* from dependency user: Current user
|
|
47
|
-
*
|
|
48
|
-
* Returns: The parse configuration
|
|
49
|
-
*/
|
|
50
|
-
get(configID: string, query?: ParseConfigurationGetParams | null | undefined, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
51
|
-
}
|
|
52
|
-
export type ParseConfigurationsPaginatedCursor = PaginatedCursor<ParseConfiguration>;
|
|
53
|
-
/**
|
|
54
|
-
* Parse configuration schema.
|
|
55
|
-
*/
|
|
56
|
-
export interface ParseConfiguration {
|
|
57
|
-
/**
|
|
58
|
-
* Unique identifier for the parse configuration
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
/**
|
|
62
|
-
* Creation timestamp
|
|
63
|
-
*/
|
|
64
|
-
created_at: string;
|
|
65
|
-
/**
|
|
66
|
-
* Name of the parse configuration
|
|
67
|
-
*/
|
|
68
|
-
name: string;
|
|
69
|
-
/**
|
|
70
|
-
* LlamaParseParameters configuration
|
|
71
|
-
*/
|
|
72
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
73
|
-
/**
|
|
74
|
-
* ID of the source
|
|
75
|
-
*/
|
|
76
|
-
source_id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Type of the source (e.g., 'project')
|
|
79
|
-
*/
|
|
80
|
-
source_type: string;
|
|
81
|
-
/**
|
|
82
|
-
* Last update timestamp
|
|
83
|
-
*/
|
|
84
|
-
updated_at: string;
|
|
85
|
-
/**
|
|
86
|
-
* Version of the configuration
|
|
87
|
-
*/
|
|
88
|
-
version: string;
|
|
89
|
-
/**
|
|
90
|
-
* Creator of the configuration
|
|
91
|
-
*/
|
|
92
|
-
creator?: string | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Schema for creating a new parse configuration (API boundary).
|
|
96
|
-
*/
|
|
97
|
-
export interface ParseConfigurationCreate {
|
|
98
|
-
/**
|
|
99
|
-
* Name of the parse configuration
|
|
100
|
-
*/
|
|
101
|
-
name: string;
|
|
102
|
-
/**
|
|
103
|
-
* LlamaParseParameters configuration
|
|
104
|
-
*/
|
|
105
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
106
|
-
/**
|
|
107
|
-
* Version of the configuration
|
|
108
|
-
*/
|
|
109
|
-
version: string;
|
|
110
|
-
/**
|
|
111
|
-
* Creator of the configuration
|
|
112
|
-
*/
|
|
113
|
-
creator?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* ID of the source
|
|
116
|
-
*/
|
|
117
|
-
source_id?: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Type of the source (e.g., 'project')
|
|
120
|
-
*/
|
|
121
|
-
source_type?: string | null;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Response schema for paginated parse configuration queries.
|
|
125
|
-
*/
|
|
126
|
-
export interface ParseConfigurationQueryResponse {
|
|
127
|
-
/**
|
|
128
|
-
* The list of items.
|
|
129
|
-
*/
|
|
130
|
-
items: Array<ParseConfiguration>;
|
|
131
|
-
/**
|
|
132
|
-
* A token, which can be sent as page_token to retrieve the next page. If this
|
|
133
|
-
* field is omitted, there are no subsequent pages.
|
|
134
|
-
*/
|
|
135
|
-
next_page_token?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* The total number of items available. This is only populated when specifically
|
|
138
|
-
* requested. The value may be an estimate and can be used for display purposes
|
|
139
|
-
* only.
|
|
140
|
-
*/
|
|
141
|
-
total_size?: number | null;
|
|
142
|
-
}
|
|
143
|
-
export interface ParseConfigurationCreateParams {
|
|
144
|
-
/**
|
|
145
|
-
* Body param: Name of the parse configuration
|
|
146
|
-
*/
|
|
147
|
-
name: string;
|
|
148
|
-
/**
|
|
149
|
-
* Body param: LlamaParseParameters configuration
|
|
150
|
-
*/
|
|
151
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
152
|
-
/**
|
|
153
|
-
* Body param: Version of the configuration
|
|
154
|
-
*/
|
|
155
|
-
version: string;
|
|
156
|
-
/**
|
|
157
|
-
* Query param
|
|
158
|
-
*/
|
|
159
|
-
organization_id?: string | null;
|
|
160
|
-
/**
|
|
161
|
-
* Query param
|
|
162
|
-
*/
|
|
163
|
-
project_id?: string | null;
|
|
164
|
-
/**
|
|
165
|
-
* Body param: Creator of the configuration
|
|
166
|
-
*/
|
|
167
|
-
creator?: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* Body param: ID of the source
|
|
170
|
-
*/
|
|
171
|
-
source_id?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Body param: Type of the source (e.g., 'project')
|
|
174
|
-
*/
|
|
175
|
-
source_type?: string | null;
|
|
176
|
-
}
|
|
177
|
-
export interface ParseConfigurationUpdateParams {
|
|
178
|
-
/**
|
|
179
|
-
* Query param
|
|
180
|
-
*/
|
|
181
|
-
organization_id?: string | null;
|
|
182
|
-
/**
|
|
183
|
-
* Query param
|
|
184
|
-
*/
|
|
185
|
-
project_id?: string | null;
|
|
186
|
-
/**
|
|
187
|
-
* Body param: Settings that can be configured for how to use LlamaParse to parse
|
|
188
|
-
* files within a LlamaCloud pipeline.
|
|
189
|
-
*/
|
|
190
|
-
parameters?: PipelinesAPI.LlamaParseParameters | null;
|
|
191
|
-
}
|
|
192
|
-
export interface ParseConfigurationListParams extends PaginatedCursorParams {
|
|
193
|
-
creator?: string | null;
|
|
194
|
-
name?: string | null;
|
|
195
|
-
organization_id?: string | null;
|
|
196
|
-
project_id?: string | null;
|
|
197
|
-
version?: string | null;
|
|
198
|
-
}
|
|
199
|
-
export interface ParseConfigurationDeleteParams {
|
|
200
|
-
organization_id?: string | null;
|
|
201
|
-
project_id?: string | null;
|
|
202
|
-
}
|
|
203
|
-
export interface ParseConfigurationGetParams {
|
|
204
|
-
organization_id?: string | null;
|
|
205
|
-
project_id?: string | null;
|
|
206
|
-
}
|
|
207
|
-
export declare namespace ParseConfigurations {
|
|
208
|
-
export { type ParseConfiguration as ParseConfiguration, type ParseConfigurationCreate as ParseConfigurationCreate, type ParseConfigurationQueryResponse as ParseConfigurationQueryResponse, type ParseConfigurationsPaginatedCursor as ParseConfigurationsPaginatedCursor, type ParseConfigurationCreateParams as ParseConfigurationCreateParams, type ParseConfigurationUpdateParams as ParseConfigurationUpdateParams, type ParseConfigurationListParams as ParseConfigurationListParams, type ParseConfigurationDeleteParams as ParseConfigurationDeleteParams, type ParseConfigurationGetParams as ParseConfigurationGetParams, };
|
|
209
|
-
}
|
|
210
|
-
//# sourceMappingURL=parse-configurations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-configurations.d.ts","sourceRoot":"","sources":["../../src/resources/beta/parse-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE;OAE5D,EAAE,cAAc,EAAE;AAGzB,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,8BAA8B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IASxG;;;;;;;OAOG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,8BAA8B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IASjC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,kBAAkB,CAAC;IAOtE;;;;;OAKG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;;;OAOG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,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;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ParseConfigurations = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
-
const headers_1 = require("../../internal/headers.js");
|
|
8
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
-
class ParseConfigurations extends resource_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a new parse configuration.
|
|
12
|
-
*
|
|
13
|
-
* Args: config_create: Parse configuration creation data project: Validated
|
|
14
|
-
* project from dependency user: Current user
|
|
15
|
-
*
|
|
16
|
-
* Returns: The created parse configuration
|
|
17
|
-
*/
|
|
18
|
-
create(params, options) {
|
|
19
|
-
const { organization_id, project_id, ...body } = params;
|
|
20
|
-
return this._client.post('/api/v1/beta/parse-configurations', {
|
|
21
|
-
query: { organization_id, project_id },
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Update a parse configuration.
|
|
28
|
-
*
|
|
29
|
-
* Args: config_id: The ID of the parse configuration to update config_update:
|
|
30
|
-
* Update data project: Validated project from dependency user: Current user
|
|
31
|
-
*
|
|
32
|
-
* Returns: The updated parse configuration
|
|
33
|
-
*/
|
|
34
|
-
update(configID, params, options) {
|
|
35
|
-
const { organization_id, project_id, ...body } = params;
|
|
36
|
-
return this._client.put((0, path_1.path) `/api/v1/beta/parse-configurations/${configID}`, {
|
|
37
|
-
query: { organization_id, project_id },
|
|
38
|
-
body,
|
|
39
|
-
...options,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* List parse configurations for the current project.
|
|
44
|
-
*
|
|
45
|
-
* Args: project: Validated project from dependency user: Current user page_size:
|
|
46
|
-
* Number of items per page page_token: Token for pagination name: Filter by
|
|
47
|
-
* configuration name creator: Filter by creator version: Filter by version
|
|
48
|
-
*
|
|
49
|
-
* Returns: Paginated response with parse configurations
|
|
50
|
-
*/
|
|
51
|
-
list(query = {}, options) {
|
|
52
|
-
return this._client.getAPIList('/api/v1/beta/parse-configurations', (pagination_1.PaginatedCursor), {
|
|
53
|
-
query,
|
|
54
|
-
...options,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Delete a parse configuration.
|
|
59
|
-
*
|
|
60
|
-
* Args: config_id: The ID of the parse configuration to delete project: Validated
|
|
61
|
-
* project from dependency user: Current user
|
|
62
|
-
*/
|
|
63
|
-
delete(configID, params = {}, options) {
|
|
64
|
-
const { organization_id, project_id } = params ?? {};
|
|
65
|
-
return this._client.delete((0, path_1.path) `/api/v1/beta/parse-configurations/${configID}`, {
|
|
66
|
-
query: { organization_id, project_id },
|
|
67
|
-
...options,
|
|
68
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Get a parse configuration by ID.
|
|
73
|
-
*
|
|
74
|
-
* Args: config_id: The ID of the parse configuration project: Validated project
|
|
75
|
-
* from dependency user: Current user
|
|
76
|
-
*
|
|
77
|
-
* Returns: The parse configuration
|
|
78
|
-
*/
|
|
79
|
-
get(configID, query = {}, options) {
|
|
80
|
-
return this._client.get((0, path_1.path) `/api/v1/beta/parse-configurations/${configID}`, { query, ...options });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.ParseConfigurations = ParseConfigurations;
|
|
84
|
-
//# sourceMappingURL=parse-configurations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-configurations.js","sourceRoot":"","sources":["../../src/resources/beta/parse-configurations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAiG;AACjG,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;OAOG;IACH,MAAM,CAAC,MAAsC,EAAE,OAAwB;QACrE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAsC,EACtC,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qCAAqC,QAAQ,EAAE,EAAE;YAC3E,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE,CAAA,4BAAmC,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,QAAgB,EAChB,SAA4D,EAAE,EAC9D,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qCAAqC,QAAQ,EAAE,EAAE;YAC9E,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,QAAgB,EAChB,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qCAAqC,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AA5FD,kDA4FC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { PaginatedCursor } from "../../core/pagination.mjs";
|
|
4
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
-
export class ParseConfigurations extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a new parse configuration.
|
|
9
|
-
*
|
|
10
|
-
* Args: config_create: Parse configuration creation data project: Validated
|
|
11
|
-
* project from dependency user: Current user
|
|
12
|
-
*
|
|
13
|
-
* Returns: The created parse configuration
|
|
14
|
-
*/
|
|
15
|
-
create(params, options) {
|
|
16
|
-
const { organization_id, project_id, ...body } = params;
|
|
17
|
-
return this._client.post('/api/v1/beta/parse-configurations', {
|
|
18
|
-
query: { organization_id, project_id },
|
|
19
|
-
body,
|
|
20
|
-
...options,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Update a parse configuration.
|
|
25
|
-
*
|
|
26
|
-
* Args: config_id: The ID of the parse configuration to update config_update:
|
|
27
|
-
* Update data project: Validated project from dependency user: Current user
|
|
28
|
-
*
|
|
29
|
-
* Returns: The updated parse configuration
|
|
30
|
-
*/
|
|
31
|
-
update(configID, params, options) {
|
|
32
|
-
const { organization_id, project_id, ...body } = params;
|
|
33
|
-
return this._client.put(path `/api/v1/beta/parse-configurations/${configID}`, {
|
|
34
|
-
query: { organization_id, project_id },
|
|
35
|
-
body,
|
|
36
|
-
...options,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* List parse configurations for the current project.
|
|
41
|
-
*
|
|
42
|
-
* Args: project: Validated project from dependency user: Current user page_size:
|
|
43
|
-
* Number of items per page page_token: Token for pagination name: Filter by
|
|
44
|
-
* configuration name creator: Filter by creator version: Filter by version
|
|
45
|
-
*
|
|
46
|
-
* Returns: Paginated response with parse configurations
|
|
47
|
-
*/
|
|
48
|
-
list(query = {}, options) {
|
|
49
|
-
return this._client.getAPIList('/api/v1/beta/parse-configurations', (PaginatedCursor), {
|
|
50
|
-
query,
|
|
51
|
-
...options,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Delete a parse configuration.
|
|
56
|
-
*
|
|
57
|
-
* Args: config_id: The ID of the parse configuration to delete project: Validated
|
|
58
|
-
* project from dependency user: Current user
|
|
59
|
-
*/
|
|
60
|
-
delete(configID, params = {}, options) {
|
|
61
|
-
const { organization_id, project_id } = params ?? {};
|
|
62
|
-
return this._client.delete(path `/api/v1/beta/parse-configurations/${configID}`, {
|
|
63
|
-
query: { organization_id, project_id },
|
|
64
|
-
...options,
|
|
65
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Get a parse configuration by ID.
|
|
70
|
-
*
|
|
71
|
-
* Args: config_id: The ID of the parse configuration project: Validated project
|
|
72
|
-
* from dependency user: Current user
|
|
73
|
-
*
|
|
74
|
-
* Returns: The parse configuration
|
|
75
|
-
*/
|
|
76
|
-
get(configID, query = {}, options) {
|
|
77
|
-
return this._client.get(path `/api/v1/beta/parse-configurations/${configID}`, { query, ...options });
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=parse-configurations.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-configurations.mjs","sourceRoot":"","sources":["../../src/resources/beta/parse-configurations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,eAAe,EAA8B;OAC5D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;OAOG;IACH,MAAM,CAAC,MAAsC,EAAE,OAAwB;QACrE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAsC,EACtC,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,G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