apify-client 3.0.0-beta.113 → 3.0.0-beta.114

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/index.d.ts CHANGED
@@ -34,5 +34,5 @@ export * from './response_validation_error.js';
34
34
  export * from './invalid_response_body_error.js';
35
35
  export * from './http_clients/index.js';
36
36
  export * from './http_compressors/index.js';
37
- export type { PaginatedList, Dictionary } from './utils.js';
37
+ export type { AnyString, PaginatedList, Dictionary, JsonValue, TypedArray } from './utils.js';
38
38
  export type { Timeout, TimeoutOptions, TimeoutTier } from './timeouts.js';
@@ -1,3 +1,4 @@
1
+ import type { ValueOf } from '@apify/consts';
1
2
  import { ACTOR_JOB_STATUSES, ACTOR_PERMISSION_LEVEL, META_ORIGINS } from '@apify/consts';
2
3
  import { Log } from '@apify/log';
3
4
  import type { ApiClientSubResourceOptions } from '../base/api_client.js';
@@ -15,7 +16,6 @@ import { RunClient } from './run.js';
15
16
  import { RunCollectionClient } from './run_collection.js';
16
17
  import type { WebhookUpdateData } from './webhook.js';
17
18
  import { WebhookCollectionClient } from './webhook_collection.js';
18
- import type { ValueOf } from 'type-fest';
19
19
  export type { ActorResource, ActorChargeEvent, ActorChargeEvents, ActorDefinition, ActorRunPricingInfo, ActorRunStorageIds, ActorStandby, ActorStats, DefaultRunOptions, ExampleRunInput, FlatPricePerMonthActorPricingInfo, FreeActorPricingInfo, RunMetamorphEvent, PayPerEventActorPricingInfo, PricePerDatasetItemActorPricingInfo, Run, RunMeta, RunOptions, RunListItem, RunStats, RunUsage, TaggedBuildInfo, TaggedBuilds, TieredPricingPerDatasetItem, TieredPricingPerDatasetItemEntry, TieredPricingPerEvent, TieredPricingPerEventEntry, } from '../models.js';
20
20
  /**
21
21
  * Client for managing a specific Actor.
@@ -1,10 +1,10 @@
1
1
  import type { Readable } from 'node:stream';
2
- import type { JsonValue, TypedArray } from 'type-fest';
3
2
  import type { STORAGE_GENERAL_ACCESS } from '@apify/consts';
4
3
  import type { ApiClientSubResourceOptions } from '../base/api_client.js';
5
4
  import { ResourceClient } from '../base/resource_client.js';
6
5
  import type { KeyValueStoreResource, KeyValueStoreKey, ListOfKeys } from '../models.js';
7
6
  import type { TimeoutOptions } from '../timeouts.js';
7
+ import type { JsonValue, TypedArray } from '../utils.js';
8
8
  export type { KeyValueStoreResource, KeyValueStoreKey, KeyValueStoreStats, ListOfKeys } from '../models.js';
9
9
  /**
10
10
  * Client for managing a specific key-value store.
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { Readable } from 'node:stream';
2
- import type { TypedArray } from 'type-fest';
3
2
  import { z } from 'zod';
4
3
  import type { ApifyApiError } from './apify_api_error.js';
5
4
  import { parseArgument } from '@apify/validations';
@@ -240,3 +239,23 @@ export declare function toPath(path: string | string[]): string;
240
239
  * @internal
241
240
  */
242
241
  export declare function sleep(millis: number, signal?: AbortSignal): Promise<void>;
242
+ /** Any string, written so that a union with string literals keeps suggesting the literals. */
243
+ export type AnyString = string & {};
244
+ /** Any valid JSON value. */
245
+ export type JsonValue = string | number | boolean | null | {
246
+ [Key in string]: JsonValue;
247
+ } | JsonValue[] | readonly JsonValue[];
248
+ /**
249
+ * Any JSON object.
250
+ * @internal
251
+ */
252
+ export type JsonObject = {
253
+ [Key in string]: JsonValue;
254
+ };
255
+ /**
256
+ * Any JSON array.
257
+ * @internal
258
+ */
259
+ export type JsonArray = JsonValue[] | readonly JsonValue[];
260
+ /** Any typed array, such as `Uint8Array` or `Float64Array`. */
261
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-client",
3
- "version": "3.0.0-beta.113",
3
+ "version": "3.0.0-beta.114",
4
4
  "description": "Apify API client for JavaScript",
5
5
  "engines": {
6
6
  "node": ">=22.15.0"
@@ -74,7 +74,6 @@
74
74
  "ansi-colors": "^4.1.3",
75
75
  "content-type": "^3.1.1",
76
76
  "tslib": "^2.9.1",
77
- "type-fest": "^5.10.0",
78
77
  "zod": "^4.6.7"
79
78
  },
80
79
  "peerDependencies": {