apify-client 2.20.1-beta.6 → 2.20.1-beta.8
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/apify_client.d.ts +237 -25
- package/dist/apify_client.d.ts.map +1 -1
- package/dist/apify_client.js +234 -25
- package/dist/apify_client.js.map +1 -1
- package/dist/bundle.js +2042 -253
- package/dist/bundle.js.map +1 -1
- package/dist/resource_clients/actor.d.ts +322 -31
- package/dist/resource_clients/actor.d.ts.map +1 -1
- package/dist/resource_clients/actor.js +167 -19
- package/dist/resource_clients/actor.js.map +1 -1
- package/dist/resource_clients/actor_collection.d.ts +34 -3
- package/dist/resource_clients/actor_collection.d.ts.map +1 -1
- package/dist/resource_clients/actor_collection.js +34 -3
- package/dist/resource_clients/actor_collection.js.map +1 -1
- package/dist/resource_clients/actor_env_var.d.ts +34 -3
- package/dist/resource_clients/actor_env_var.d.ts.map +1 -1
- package/dist/resource_clients/actor_env_var.js +34 -3
- package/dist/resource_clients/actor_env_var.js.map +1 -1
- package/dist/resource_clients/actor_env_var_collection.d.ts +37 -3
- package/dist/resource_clients/actor_env_var_collection.d.ts.map +1 -1
- package/dist/resource_clients/actor_env_var_collection.js +37 -3
- package/dist/resource_clients/actor_env_var_collection.js.map +1 -1
- package/dist/resource_clients/actor_version.d.ts +42 -6
- package/dist/resource_clients/actor_version.d.ts.map +1 -1
- package/dist/resource_clients/actor_version.js +42 -6
- package/dist/resource_clients/actor_version.js.map +1 -1
- package/dist/resource_clients/actor_version_collection.d.ts +35 -3
- package/dist/resource_clients/actor_version_collection.d.ts.map +1 -1
- package/dist/resource_clients/actor_version_collection.js +35 -3
- package/dist/resource_clients/actor_version_collection.js.map +1 -1
- package/dist/resource_clients/build.d.ts +123 -11
- package/dist/resource_clients/build.d.ts.map +1 -1
- package/dist/resource_clients/build.js +93 -11
- package/dist/resource_clients/build.js.map +1 -1
- package/dist/resource_clients/build_collection.d.ts +27 -2
- package/dist/resource_clients/build_collection.d.ts.map +1 -1
- package/dist/resource_clients/build_collection.js +27 -2
- package/dist/resource_clients/build_collection.js.map +1 -1
- package/dist/resource_clients/dataset.d.ts +221 -15
- package/dist/resource_clients/dataset.d.ts.map +1 -1
- package/dist/resource_clients/dataset.js +185 -15
- package/dist/resource_clients/dataset.js.map +1 -1
- package/dist/resource_clients/dataset_collection.d.ts +32 -3
- package/dist/resource_clients/dataset_collection.d.ts.map +1 -1
- package/dist/resource_clients/dataset_collection.js +32 -3
- package/dist/resource_clients/dataset_collection.js.map +1 -1
- package/dist/resource_clients/key_value_store.d.ts +219 -26
- package/dist/resource_clients/key_value_store.d.ts.map +1 -1
- package/dist/resource_clients/key_value_store.js +172 -25
- package/dist/resource_clients/key_value_store.js.map +1 -1
- package/dist/resource_clients/key_value_store_collection.d.ts +32 -3
- package/dist/resource_clients/key_value_store_collection.d.ts.map +1 -1
- package/dist/resource_clients/key_value_store_collection.js +32 -3
- package/dist/resource_clients/key_value_store_collection.js.map +1 -1
- package/dist/resource_clients/log.d.ts +34 -3
- package/dist/resource_clients/log.d.ts.map +1 -1
- package/dist/resource_clients/log.js +34 -3
- package/dist/resource_clients/log.js.map +1 -1
- package/dist/resource_clients/request_queue.d.ts +290 -19
- package/dist/resource_clients/request_queue.d.ts.map +1 -1
- package/dist/resource_clients/request_queue.js +233 -19
- package/dist/resource_clients/request_queue.js.map +1 -1
- package/dist/resource_clients/request_queue_collection.d.ts +31 -3
- package/dist/resource_clients/request_queue_collection.d.ts.map +1 -1
- package/dist/resource_clients/request_queue_collection.js +31 -3
- package/dist/resource_clients/request_queue_collection.js.map +1 -1
- package/dist/resource_clients/run.d.ts +224 -27
- package/dist/resource_clients/run.d.ts.map +1 -1
- package/dist/resource_clients/run.js +200 -27
- package/dist/resource_clients/run.js.map +1 -1
- package/dist/resource_clients/run_collection.d.ts +27 -2
- package/dist/resource_clients/run_collection.d.ts.map +1 -1
- package/dist/resource_clients/run_collection.js +27 -2
- package/dist/resource_clients/run_collection.js.map +1 -1
- package/dist/resource_clients/schedule.d.ts +65 -4
- package/dist/resource_clients/schedule.d.ts.map +1 -1
- package/dist/resource_clients/schedule.js +42 -4
- package/dist/resource_clients/schedule.js.map +1 -1
- package/dist/resource_clients/schedule_collection.d.ts +35 -3
- package/dist/resource_clients/schedule_collection.d.ts.map +1 -1
- package/dist/resource_clients/schedule_collection.js +35 -3
- package/dist/resource_clients/schedule_collection.js.map +1 -1
- package/dist/resource_clients/store_collection.d.ts +26 -2
- package/dist/resource_clients/store_collection.d.ts.map +1 -1
- package/dist/resource_clients/store_collection.js +26 -2
- package/dist/resource_clients/store_collection.js.map +1 -1
- package/dist/resource_clients/task.d.ts +110 -11
- package/dist/resource_clients/task.d.ts.map +1 -1
- package/dist/resource_clients/task.js +83 -11
- package/dist/resource_clients/task.js.map +1 -1
- package/dist/resource_clients/task_collection.d.ts +35 -8
- package/dist/resource_clients/task_collection.d.ts.map +1 -1
- package/dist/resource_clients/task_collection.js +35 -8
- package/dist/resource_clients/task_collection.js.map +1 -1
- package/dist/resource_clients/user.d.ts +41 -4
- package/dist/resource_clients/user.d.ts.map +1 -1
- package/dist/resource_clients/user.js +41 -4
- package/dist/resource_clients/user.js.map +1 -1
- package/dist/resource_clients/webhook.d.ts +66 -5
- package/dist/resource_clients/webhook.d.ts.map +1 -1
- package/dist/resource_clients/webhook.js +48 -5
- package/dist/resource_clients/webhook.js.map +1 -1
- package/dist/resource_clients/webhook_collection.d.ts +34 -3
- package/dist/resource_clients/webhook_collection.d.ts.map +1 -1
- package/dist/resource_clients/webhook_collection.js +34 -3
- package/dist/resource_clients/webhook_collection.js.map +1 -1
- package/dist/resource_clients/webhook_dispatch.d.ts +22 -1
- package/dist/resource_clients/webhook_dispatch.d.ts.map +1 -1
- package/dist/resource_clients/webhook_dispatch.js +22 -1
- package/dist/resource_clients/webhook_dispatch.js.map +1 -1
- package/dist/resource_clients/webhook_dispatch_collection.d.ts +24 -2
- package/dist/resource_clients/webhook_dispatch_collection.d.ts.map +1 -1
- package/dist/resource_clients/webhook_dispatch_collection.js +24 -2
- package/dist/resource_clients/webhook_dispatch_collection.js.map +1 -1
- package/dist/utils.d.ts +42 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,34 @@ const log_1 = tslib_1.__importDefault(require("@apify/log"));
|
|
|
7
7
|
const utilities_1 = require("@apify/utilities");
|
|
8
8
|
const resource_client_1 = require("../base/resource_client");
|
|
9
9
|
const utils_1 = require("../utils");
|
|
10
|
+
/**
|
|
11
|
+
* Client for managing a specific key-value store.
|
|
12
|
+
*
|
|
13
|
+
* Key-value stores are used to store arbitrary data records or files. Each record is identified by
|
|
14
|
+
* a unique key and can contain any type of data. This client provides methods to get, set, and delete
|
|
15
|
+
* records, list keys, and manage the store.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```javascript
|
|
19
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
20
|
+
* const storeClient = client.keyValueStore('my-store-id');
|
|
21
|
+
*
|
|
22
|
+
* // Set a record
|
|
23
|
+
* await storeClient.setRecord({
|
|
24
|
+
* key: 'OUTPUT',
|
|
25
|
+
* value: { foo: 'bar' },
|
|
26
|
+
* contentType: 'application/json'
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* // Get a record
|
|
30
|
+
* const record = await storeClient.getRecord('OUTPUT');
|
|
31
|
+
*
|
|
32
|
+
* // List all keys
|
|
33
|
+
* const { items } = await storeClient.listKeys();
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see https://docs.apify.com/platform/storage/key-value-store
|
|
37
|
+
*/
|
|
10
38
|
class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
11
39
|
/**
|
|
12
40
|
* @hidden
|
|
@@ -18,26 +46,70 @@ class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
|
18
46
|
});
|
|
19
47
|
}
|
|
20
48
|
/**
|
|
21
|
-
*
|
|
49
|
+
* Gets the key-value store object from the Apify API.
|
|
50
|
+
*
|
|
51
|
+
* @returns The KeyValueStore object, or `undefined` if it does not exist
|
|
52
|
+
* @see https://docs.apify.com/api/v2/key-value-store-get
|
|
22
53
|
*/
|
|
23
54
|
async get() {
|
|
24
55
|
return this._get({}, resource_client_1.SMALL_TIMEOUT_MILLIS);
|
|
25
56
|
}
|
|
26
57
|
/**
|
|
27
|
-
*
|
|
58
|
+
* Updates the key-value store with specified fields.
|
|
59
|
+
*
|
|
60
|
+
* @param newFields - Fields to update in the key-value store
|
|
61
|
+
* @param newFields.name - New name for the store
|
|
62
|
+
* @param newFields.title - New title for the store
|
|
63
|
+
* @param newFields.generalAccess - General resource access level ('FOLLOW_USER_SETTING', 'ANYONE_WITH_ID_CAN_READ' or 'RESTRICTED')
|
|
64
|
+
* @returns The updated KeyValueStore object
|
|
65
|
+
* @see https://docs.apify.com/api/v2/key-value-store-put
|
|
28
66
|
*/
|
|
29
67
|
async update(newFields) {
|
|
30
68
|
(0, ow_1.default)(newFields, ow_1.default.object);
|
|
31
69
|
return this._update(newFields, resource_client_1.DEFAULT_TIMEOUT_MILLIS);
|
|
32
70
|
}
|
|
33
71
|
/**
|
|
34
|
-
*
|
|
72
|
+
* Deletes the key-value store.
|
|
73
|
+
*
|
|
74
|
+
* @see https://docs.apify.com/api/v2/key-value-store-delete
|
|
35
75
|
*/
|
|
36
76
|
async delete() {
|
|
37
77
|
return this._delete(resource_client_1.SMALL_TIMEOUT_MILLIS);
|
|
38
78
|
}
|
|
39
79
|
/**
|
|
40
|
-
*
|
|
80
|
+
* Lists all keys in the key-value store.
|
|
81
|
+
*
|
|
82
|
+
* Returns a paginated list of all record keys in the store. Use pagination parameters
|
|
83
|
+
* to retrieve large lists efficiently.
|
|
84
|
+
*
|
|
85
|
+
* @param options - Listing options
|
|
86
|
+
* @param options.limit - Maximum number of keys to return. Default is 1000.
|
|
87
|
+
* @param options.exclusiveStartKey - Key to start listing from (for pagination). The listing starts with the next key after this one.
|
|
88
|
+
* @param options.collection - Filter keys by collection name.
|
|
89
|
+
* @param options.prefix - Filter keys that start with this prefix.
|
|
90
|
+
* @returns Object containing `items` array of key metadata, pagination info (`count`, `limit`, `isTruncated`, `nextExclusiveStartKey`)
|
|
91
|
+
* @see https://docs.apify.com/api/v2/key-value-store-keys-get
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```javascript
|
|
95
|
+
* // List all keys
|
|
96
|
+
* const { items, isTruncated } = await client.keyValueStore('my-store').listKeys();
|
|
97
|
+
* items.forEach(item => console.log(`${item.key}: ${item.size} bytes`));
|
|
98
|
+
*
|
|
99
|
+
* // List keys with prefix
|
|
100
|
+
* const { items } = await client.keyValueStore('my-store').listKeys({ prefix: 'user-' });
|
|
101
|
+
*
|
|
102
|
+
* // Paginate through all keys
|
|
103
|
+
* let exclusiveStartKey;
|
|
104
|
+
* do {
|
|
105
|
+
* const result = await client.keyValueStore('my-store').listKeys({
|
|
106
|
+
* limit: 100,
|
|
107
|
+
* exclusiveStartKey
|
|
108
|
+
* });
|
|
109
|
+
* // Process result.items...
|
|
110
|
+
* exclusiveStartKey = result.nextExclusiveStartKey;
|
|
111
|
+
* } while (result.isTruncated);
|
|
112
|
+
* ```
|
|
41
113
|
*/
|
|
42
114
|
async listKeys(options = {}) {
|
|
43
115
|
(0, ow_1.default)(options, ow_1.default.object.exactShape({
|
|
@@ -56,10 +128,21 @@ class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
|
56
128
|
return (0, utils_1.cast)((0, utils_1.parseDateFields)((0, utils_1.pluckData)(response.data)));
|
|
57
129
|
}
|
|
58
130
|
/**
|
|
59
|
-
* Generates a URL
|
|
131
|
+
* Generates a public URL for accessing a specific record in the key-value store.
|
|
60
132
|
*
|
|
61
133
|
* If the client has permission to access the key-value store's URL signing key,
|
|
62
|
-
* the URL will include a signature
|
|
134
|
+
* the URL will include a cryptographic signature for authenticated access without
|
|
135
|
+
* requiring an API token.
|
|
136
|
+
*
|
|
137
|
+
* @param key - The record key
|
|
138
|
+
* @returns A public URL string for accessing the record
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```javascript
|
|
142
|
+
* const url = await client.keyValueStore('my-store').getRecordPublicUrl('OUTPUT');
|
|
143
|
+
* console.log(`Public URL: ${url}`);
|
|
144
|
+
* // You can now share this URL or use it in a browser
|
|
145
|
+
* ```
|
|
63
146
|
*/
|
|
64
147
|
async getRecordPublicUrl(key) {
|
|
65
148
|
(0, ow_1.default)(key, ow_1.default.string.nonEmpty);
|
|
@@ -72,16 +155,26 @@ class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
|
72
155
|
return recordPublicUrl.toString();
|
|
73
156
|
}
|
|
74
157
|
/**
|
|
75
|
-
* Generates a URL
|
|
158
|
+
* Generates a public URL for accessing the list of keys in the key-value store.
|
|
76
159
|
*
|
|
77
160
|
* If the client has permission to access the key-value store's URL signing key,
|
|
78
|
-
* the URL will include a signature which
|
|
161
|
+
* the URL will include a cryptographic signature which allows access without authentication.
|
|
79
162
|
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
163
|
+
* @param options - URL generation options (extends all options from {@link listKeys})
|
|
164
|
+
* @param options.expiresInSecs - Number of seconds until the signed URL expires. If omitted, the URL never expires.
|
|
165
|
+
* @param options.limit - Maximum number of keys to return.
|
|
166
|
+
* @param options.prefix - Filter keys by prefix.
|
|
167
|
+
* @returns A public URL string for accessing the keys list
|
|
83
168
|
*
|
|
84
|
-
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```javascript
|
|
171
|
+
* // Create a URL that expires in 1 hour
|
|
172
|
+
* const url = await client.keyValueStore('my-store').createKeysPublicUrl({
|
|
173
|
+
* expiresInSecs: 3600,
|
|
174
|
+
* prefix: 'image-'
|
|
175
|
+
* });
|
|
176
|
+
* console.log(`Share this URL: ${url}`);
|
|
177
|
+
* ```
|
|
85
178
|
*/
|
|
86
179
|
async createKeysPublicUrl(options = {}) {
|
|
87
180
|
(0, ow_1.default)(options, ow_1.default.object.exactShape({
|
|
@@ -108,9 +201,19 @@ class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
|
108
201
|
/**
|
|
109
202
|
* Tests whether a record with the given key exists in the key-value store without retrieving its value.
|
|
110
203
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* @
|
|
204
|
+
* This is more efficient than {@link getRecord} when you only need to check for existence.
|
|
205
|
+
*
|
|
206
|
+
* @param key - The record key to check
|
|
207
|
+
* @returns `true` if the record exists, `false` if it does not
|
|
208
|
+
* @see https://docs.apify.com/api/v2/key-value-store-record-get
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```javascript
|
|
212
|
+
* const exists = await client.keyValueStore('my-store').recordExists('OUTPUT');
|
|
213
|
+
* if (exists) {
|
|
214
|
+
* console.log('OUTPUT record exists');
|
|
215
|
+
* }
|
|
216
|
+
* ```
|
|
114
217
|
*/
|
|
115
218
|
async recordExists(key) {
|
|
116
219
|
const requestOpts = {
|
|
@@ -169,15 +272,51 @@ class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
|
169
272
|
return undefined;
|
|
170
273
|
}
|
|
171
274
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
275
|
+
* Stores a record in the key-value store.
|
|
276
|
+
*
|
|
277
|
+
* The record value can be any JSON-serializable object, a string, or a Buffer/Stream.
|
|
278
|
+
* The content type is automatically determined based on the value type, but can be
|
|
279
|
+
* overridden using the `contentType` property.
|
|
280
|
+
*
|
|
281
|
+
* **Note about streams:** If the value is a stream object (has `.pipe` and `.on` methods),
|
|
282
|
+
* the upload cannot be retried on failure or follow redirects. For reliable uploads,
|
|
283
|
+
* buffer the entire stream into memory first.
|
|
284
|
+
*
|
|
285
|
+
* @param record - The record to store
|
|
286
|
+
* @param record.key - Record key (unique identifier)
|
|
287
|
+
* @param record.value - Record value (object, string, Buffer, or Stream)
|
|
288
|
+
* @param record.contentType - Optional MIME type. Auto-detected if not provided:
|
|
289
|
+
* - Objects: `'application/json; charset=utf-8'`
|
|
290
|
+
* - Strings: `'text/plain; charset=utf-8'`
|
|
291
|
+
* - Buffers/Streams: `'application/octet-stream'`
|
|
292
|
+
* @param options - Storage options
|
|
293
|
+
* @param options.timeoutSecs - Timeout for the upload in seconds. Default varies by value size.
|
|
294
|
+
* @param options.doNotRetryTimeouts - If `true`, don't retry on timeout errors. Default is `false`.
|
|
295
|
+
* @see https://docs.apify.com/api/v2/key-value-store-record-put
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```javascript
|
|
299
|
+
* // Store JSON object
|
|
300
|
+
* await client.keyValueStore('my-store').setRecord({
|
|
301
|
+
* key: 'OUTPUT',
|
|
302
|
+
* value: { crawledUrls: 100, items: [...] }
|
|
303
|
+
* });
|
|
304
|
+
*
|
|
305
|
+
* // Store text
|
|
306
|
+
* await client.keyValueStore('my-store').setRecord({
|
|
307
|
+
* key: 'README',
|
|
308
|
+
* value: 'This is my readme text',
|
|
309
|
+
* contentType: 'text/plain'
|
|
310
|
+
* });
|
|
311
|
+
*
|
|
312
|
+
* // Store binary data
|
|
313
|
+
* const imageBuffer = await fetchImageBuffer();
|
|
314
|
+
* await client.keyValueStore('my-store').setRecord({
|
|
315
|
+
* key: 'screenshot.png',
|
|
316
|
+
* value: imageBuffer,
|
|
317
|
+
* contentType: 'image/png'
|
|
318
|
+
* });
|
|
319
|
+
* ```
|
|
181
320
|
*/
|
|
182
321
|
async setRecord(record, options = {}) {
|
|
183
322
|
(0, ow_1.default)(record, ow_1.default.object.exactShape({
|
|
@@ -224,7 +363,15 @@ class KeyValueStoreClient extends resource_client_1.ResourceClient {
|
|
|
224
363
|
await this.httpClient.call(uploadOpts);
|
|
225
364
|
}
|
|
226
365
|
/**
|
|
227
|
-
*
|
|
366
|
+
* Deletes a record from the key-value store.
|
|
367
|
+
*
|
|
368
|
+
* @param key - The record key to delete
|
|
369
|
+
* @see https://docs.apify.com/api/v2/key-value-store-record-delete
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* ```javascript
|
|
373
|
+
* await client.keyValueStore('my-store').deleteRecord('temp-data');
|
|
374
|
+
* ```
|
|
228
375
|
*/
|
|
229
376
|
async deleteRecord(key) {
|
|
230
377
|
(0, ow_1.default)(key, ow_1.default.string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key_value_store.js","sourceRoot":"","sources":["../../src/resource_clients/key_value_store.ts"],"names":[],"mappings":";;;;AAEA,oDAAoB;AAIpB,6DAA6B;AAC7B,gDAAgG;AAIhG,6DAKiC;AAEjC,oCASkB;AAElB,MAAa,mBAAoB,SAAQ,gCAAc;IACnD;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,kBAAkB;YAChC,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"key_value_store.js","sourceRoot":"","sources":["../../src/resource_clients/key_value_store.ts"],"names":[],"mappings":";;;;AAEA,oDAAoB;AAIpB,6DAA6B;AAC7B,gDAAgG;AAIhG,6DAKiC;AAEjC,oCASkB;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,mBAAoB,SAAQ,gCAAc;IACnD;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,kBAAkB;YAChC,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,sCAAoB,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CAAC,SAAsC;QAC/C,IAAA,YAAE,EAAC,S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gBACD,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;YAC3C,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,MAAM,GAAG,GAAG,8FAA+F,GAAa,CAAC,OAAO,EAAE,CAAC;gBACnI,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACL,CAAC;QAED,MAAM,UAAU,GAAuB;YACnC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;YAChC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS;YAClE,kBAAkB;YAClB,OAAO,EAAE,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,wCAAsB;SACnF,CAAC;QAEF,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,YAAY,CAAC,GAAW;QAC1B,IAAA,YAAE,EAAC,GAAG,EAAE,YAAE,CAAC,MAAM,CAAC,CAAC;QAEnB,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YACvB,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;YAChC,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,OAAO,EAAE,sCAAoB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AA9ZD,kDA8ZC"}
|
|
@@ -2,19 +2,39 @@ import type { ApiClientSubResourceOptions } from '../base/api_client';
|
|
|
2
2
|
import { ResourceCollectionClient } from '../base/resource_collection_client';
|
|
3
3
|
import type { PaginatedList, PaginationOptions } from '../utils';
|
|
4
4
|
import type { KeyValueStore } from './key_value_store';
|
|
5
|
+
/**
|
|
6
|
+
* Client for managing the collection of Key-value stores in your account.
|
|
7
|
+
*
|
|
8
|
+
* Key-value stores are used to store arbitrary data records or files. This client provides
|
|
9
|
+
* methods to list, create, or get key-value stores by name.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```javascript
|
|
13
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
14
|
+
* const storesClient = client.keyValueStores();
|
|
15
|
+
*
|
|
16
|
+
* // List all key-value stores
|
|
17
|
+
* const { items } = await storesClient.list();
|
|
18
|
+
*
|
|
19
|
+
* // Get or create a key-value store by name
|
|
20
|
+
* const store = await storesClient.getOrCreate('my-store');
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see https://docs.apify.com/platform/storage/key-value-store
|
|
24
|
+
*/
|
|
5
25
|
export declare class KeyValueStoreCollectionClient extends ResourceCollectionClient {
|
|
6
26
|
/**
|
|
7
27
|
* @hidden
|
|
8
28
|
*/
|
|
9
29
|
constructor(options: ApiClientSubResourceOptions);
|
|
10
30
|
/**
|
|
11
|
-
*
|
|
31
|
+
* Lists all Key-value stores.
|
|
12
32
|
*
|
|
13
33
|
* Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
|
|
14
34
|
* items in a single API call is limited.
|
|
15
35
|
* ```javascript
|
|
16
36
|
* const paginatedList = await client.list(options);
|
|
17
|
-
|
|
37
|
+
* ```
|
|
18
38
|
*
|
|
19
39
|
* Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
|
|
20
40
|
* retrieved.
|
|
@@ -22,10 +42,19 @@ export declare class KeyValueStoreCollectionClient extends ResourceCollectionCli
|
|
|
22
42
|
* ```javascript
|
|
23
43
|
* for await (const singleItem of client.list(options)) {...}
|
|
24
44
|
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param options - Pagination options.
|
|
47
|
+
* @returns A paginated iterator of Key-value stores.
|
|
48
|
+
* @see https://docs.apify.com/api/v2/key-value-stores-get
|
|
25
49
|
*/
|
|
26
50
|
list(options?: KeyValueStoreCollectionClientListOptions): Promise<KeyValueStoreCollectionListResult> & AsyncIterable<KeyValueStore>;
|
|
27
51
|
/**
|
|
28
|
-
*
|
|
52
|
+
* Gets or creates a key-value store with the specified name.
|
|
53
|
+
*
|
|
54
|
+
* @param name - Name of the key-value store. If not provided, a default store is used.
|
|
55
|
+
* @param options - Additional options like schema.
|
|
56
|
+
* @returns The key-value store object.
|
|
57
|
+
* @see https://docs.apify.com/api/v2/key-value-stores-post
|
|
29
58
|
*/
|
|
30
59
|
getOrCreate(name?: string, options?: KeyValueStoreCollectionClientGetOrCreateOptions): Promise<KeyValueStore>;
|
|
31
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key_value_store_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/key_value_store_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,qBAAa,6BAA8B,SAAQ,wBAAwB;IACvE;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD
|
|
1
|
+
{"version":3,"file":"key_value_store_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/key_value_store_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,6BAA8B,SAAQ,wBAAwB;IACvE;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACA,OAAO,GAAE,wCAA6C,GACvD,OAAO,CAAC,iCAAiC,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC;IAc5E;;;;;;;OAOG;IACG,WAAW,CACb,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,+CAA+C,GAC1D,OAAO,CAAC,aAAa,CAAC;CAM5B;AAED,MAAM,WAAW,wCAAyC,SAAQ,iBAAiB;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,+CAA+C;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,MAAM,iCAAiC,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC"}
|
|
@@ -4,6 +4,26 @@ exports.KeyValueStoreCollectionClient = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ow_1 = tslib_1.__importDefault(require("ow"));
|
|
6
6
|
const resource_collection_client_1 = require("../base/resource_collection_client");
|
|
7
|
+
/**
|
|
8
|
+
* Client for managing the collection of Key-value stores in your account.
|
|
9
|
+
*
|
|
10
|
+
* Key-value stores are used to store arbitrary data records or files. This client provides
|
|
11
|
+
* methods to list, create, or get key-value stores by name.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```javascript
|
|
15
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
16
|
+
* const storesClient = client.keyValueStores();
|
|
17
|
+
*
|
|
18
|
+
* // List all key-value stores
|
|
19
|
+
* const { items } = await storesClient.list();
|
|
20
|
+
*
|
|
21
|
+
* // Get or create a key-value store by name
|
|
22
|
+
* const store = await storesClient.getOrCreate('my-store');
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @see https://docs.apify.com/platform/storage/key-value-store
|
|
26
|
+
*/
|
|
7
27
|
class KeyValueStoreCollectionClient extends resource_collection_client_1.ResourceCollectionClient {
|
|
8
28
|
/**
|
|
9
29
|
* @hidden
|
|
@@ -15,13 +35,13 @@ class KeyValueStoreCollectionClient extends resource_collection_client_1.Resourc
|
|
|
15
35
|
});
|
|
16
36
|
}
|
|
17
37
|
/**
|
|
18
|
-
*
|
|
38
|
+
* Lists all Key-value stores.
|
|
19
39
|
*
|
|
20
40
|
* Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
|
|
21
41
|
* items in a single API call is limited.
|
|
22
42
|
* ```javascript
|
|
23
43
|
* const paginatedList = await client.list(options);
|
|
24
|
-
|
|
44
|
+
* ```
|
|
25
45
|
*
|
|
26
46
|
* Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
|
|
27
47
|
* retrieved.
|
|
@@ -29,6 +49,10 @@ class KeyValueStoreCollectionClient extends resource_collection_client_1.Resourc
|
|
|
29
49
|
* ```javascript
|
|
30
50
|
* for await (const singleItem of client.list(options)) {...}
|
|
31
51
|
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param options - Pagination options.
|
|
54
|
+
* @returns A paginated iterator of Key-value stores.
|
|
55
|
+
* @see https://docs.apify.com/api/v2/key-value-stores-get
|
|
32
56
|
*/
|
|
33
57
|
list(options = {}) {
|
|
34
58
|
(0, ow_1.default)(options, ow_1.default.object.exactShape({
|
|
@@ -40,7 +64,12 @@ class KeyValueStoreCollectionClient extends resource_collection_client_1.Resourc
|
|
|
40
64
|
return this._listPaginated(options);
|
|
41
65
|
}
|
|
42
66
|
/**
|
|
43
|
-
*
|
|
67
|
+
* Gets or creates a key-value store with the specified name.
|
|
68
|
+
*
|
|
69
|
+
* @param name - Name of the key-value store. If not provided, a default store is used.
|
|
70
|
+
* @param options - Additional options like schema.
|
|
71
|
+
* @returns The key-value store object.
|
|
72
|
+
* @see https://docs.apify.com/api/v2/key-value-stores-post
|
|
44
73
|
*/
|
|
45
74
|
async getOrCreate(name, options) {
|
|
46
75
|
(0, ow_1.default)(name, ow_1.default.optional.string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key_value_store_collection.js","sourceRoot":"","sources":["../../src/resource_clients/key_value_store_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E,MAAa,6BAA8B,SAAQ,qDAAwB;IACvE;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,kBAAkB;YAChC,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"key_value_store_collection.js","sourceRoot":"","sources":["../../src/resource_clients/key_value_store_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,6BAA8B,SAAQ,qDAAwB;IACvE;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,kBAAkB;YAChC,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACA,UAAoD,EAAE;QAEtD,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,OAAO,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;YAC5B,KAAK,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACzB,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YAC1B,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;SAC5B,CAAC,CACL,CAAC;QAEF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,WAAW,CACb,IAAa,EACb,OAAyD;QAEzD,IAAA,YAAE,EAAC,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAA,YAAE,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,+BAA+B;QAExE,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;CACJ;AAhED,sEAgEC"}
|
|
@@ -3,18 +3,49 @@ import type { Log } from '@apify/log';
|
|
|
3
3
|
import { Logger, LogLevel } from '@apify/log';
|
|
4
4
|
import type { ApiClientSubResourceOptions } from '../base/api_client';
|
|
5
5
|
import { ResourceClient } from '../base/resource_client';
|
|
6
|
+
/**
|
|
7
|
+
* Client for accessing Actor run or build logs.
|
|
8
|
+
*
|
|
9
|
+
* Provides methods to retrieve logs as text or stream them in real-time. Logs can be accessed
|
|
10
|
+
* for both running and finished Actor runs and builds.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```javascript
|
|
14
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
15
|
+
* const runClient = client.run('my-run-id');
|
|
16
|
+
*
|
|
17
|
+
* // Get the log content
|
|
18
|
+
* const log = await runClient.log().get();
|
|
19
|
+
* console.log(log);
|
|
20
|
+
*
|
|
21
|
+
* // Stream the log in real-time
|
|
22
|
+
* const stream = await runClient.log().stream();
|
|
23
|
+
* stream.on('line', (line) => console.log(line));
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see https://docs.apify.com/platform/actors/running/runs-and-builds#logging
|
|
27
|
+
*/
|
|
6
28
|
export declare class LogClient extends ResourceClient {
|
|
7
29
|
/**
|
|
8
30
|
* @hidden
|
|
9
31
|
*/
|
|
10
32
|
constructor(options: ApiClientSubResourceOptions);
|
|
11
33
|
/**
|
|
12
|
-
*
|
|
34
|
+
* Retrieves the log as a string.
|
|
35
|
+
*
|
|
36
|
+
* @param options - Log retrieval options.
|
|
37
|
+
* @param options.raw - If `true`, returns raw log content without any processing. Default is `false`.
|
|
38
|
+
* @returns The log content as a string, or `undefined` if it does not exist.
|
|
39
|
+
* @see https://docs.apify.com/api/v2/log-get
|
|
13
40
|
*/
|
|
14
41
|
get(options?: LogOptions): Promise<string | undefined>;
|
|
15
42
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
43
|
+
* Retrieves the log as a Readable stream. Only works in Node.js.
|
|
44
|
+
*
|
|
45
|
+
* @param options - Log retrieval options.
|
|
46
|
+
* @param options.raw - If `true`, returns raw log content without any processing. Default is `false`.
|
|
47
|
+
* @returns The log content as a Readable stream, or `undefined` if it does not exist.
|
|
48
|
+
* @see https://docs.apify.com/api/v2/log-get
|
|
18
49
|
*/
|
|
19
50
|
stream(options?: LogOptions): Promise<Readable | undefined>;
|
|
20
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/resource_clients/log.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG9C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,qBAAa,SAAU,SAAQ,cAAc;IACzC;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/resource_clients/log.ts"],"names":[],"mappings":"AACA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,IAAI;IAQpB;;OAEG;IACU,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBlC;;OAEG;YACW,SAAS;YAaT,eAAe;IA0B7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAwB3B;AAED,MAAM,WAAW,kBAAkB;IAC/B,yDAAyD;IACzD,SAAS,EAAE,SAAS,CAAC;IACrB,0DAA0D;IAC1D,KAAK,EAAE,GAAG,CAAC;IACX,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -6,6 +6,28 @@ const ansi_colors_1 = tslib_1.__importDefault(require("ansi-colors"));
|
|
|
6
6
|
const log_1 = require("@apify/log");
|
|
7
7
|
const resource_client_1 = require("../base/resource_client");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
|
+
/**
|
|
10
|
+
* Client for accessing Actor run or build logs.
|
|
11
|
+
*
|
|
12
|
+
* Provides methods to retrieve logs as text or stream them in real-time. Logs can be accessed
|
|
13
|
+
* for both running and finished Actor runs and builds.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```javascript
|
|
17
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
18
|
+
* const runClient = client.run('my-run-id');
|
|
19
|
+
*
|
|
20
|
+
* // Get the log content
|
|
21
|
+
* const log = await runClient.log().get();
|
|
22
|
+
* console.log(log);
|
|
23
|
+
*
|
|
24
|
+
* // Stream the log in real-time
|
|
25
|
+
* const stream = await runClient.log().stream();
|
|
26
|
+
* stream.on('line', (line) => console.log(line));
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @see https://docs.apify.com/platform/actors/running/runs-and-builds#logging
|
|
30
|
+
*/
|
|
9
31
|
class LogClient extends resource_client_1.ResourceClient {
|
|
10
32
|
/**
|
|
11
33
|
* @hidden
|
|
@@ -17,7 +39,12 @@ class LogClient extends resource_client_1.ResourceClient {
|
|
|
17
39
|
});
|
|
18
40
|
}
|
|
19
41
|
/**
|
|
20
|
-
*
|
|
42
|
+
* Retrieves the log as a string.
|
|
43
|
+
*
|
|
44
|
+
* @param options - Log retrieval options.
|
|
45
|
+
* @param options.raw - If `true`, returns raw log content without any processing. Default is `false`.
|
|
46
|
+
* @returns The log content as a string, or `undefined` if it does not exist.
|
|
47
|
+
* @see https://docs.apify.com/api/v2/log-get
|
|
21
48
|
*/
|
|
22
49
|
async get(options = {}) {
|
|
23
50
|
const requestOpts = {
|
|
@@ -35,8 +62,12 @@ class LogClient extends resource_client_1.ResourceClient {
|
|
|
35
62
|
return undefined;
|
|
36
63
|
}
|
|
37
64
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
65
|
+
* Retrieves the log as a Readable stream. Only works in Node.js.
|
|
66
|
+
*
|
|
67
|
+
* @param options - Log retrieval options.
|
|
68
|
+
* @param options.raw - If `true`, returns raw log content without any processing. Default is `false`.
|
|
69
|
+
* @returns The log content as a Readable stream, or `undefined` if it does not exist.
|
|
70
|
+
* @see https://docs.apify.com/api/v2/log-get
|
|
40
71
|
*/
|
|
41
72
|
async stream(options = {}) {
|
|
42
73
|
const params = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/resource_clients/log.ts"],"names":[],"mappings":";;;;AAGA,sEAA4B;AAG5B,oCAA8C;AAI9C,6DAAyD;AAEzD,oCAAsD;AAEtD,MAAa,SAAU,SAAQ,gCAAc;IACzC;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,MAAM;YACpB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/resource_clients/log.ts"],"names":[],"mappings":";;;;AAGA,sEAA4B;AAG5B,oCAA8C;AAI9C,6DAAyD;AAEzD,oCAAsD;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,SAAU,SAAQ,gCAAc;IACzC;;OAEG;IACH,Y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