attio-ts-sdk 0.0.0 → 1.1.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/dist/index.d.mts CHANGED
@@ -1,3 +1,107 @@
1
+ import { ZodType, z } from "zod";
2
+
3
+ //#region src/attio/batch.d.ts
4
+ interface BatchItemRunParams {
5
+ signal?: AbortSignal;
6
+ }
7
+ interface BatchItem<T> {
8
+ run: (params?: BatchItemRunParams) => Promise<T>;
9
+ label?: string;
10
+ }
11
+ interface BatchResult<T> {
12
+ status: "fulfilled" | "rejected";
13
+ value?: T;
14
+ reason?: unknown;
15
+ label?: string;
16
+ }
17
+ interface BatchOptions {
18
+ concurrency?: number;
19
+ stopOnError?: boolean;
20
+ }
21
+ /**
22
+ * Returns an empty results array when called with no items.
23
+ */
24
+ declare const runBatch: <T>(items: BatchItem<T>[], options?: BatchOptions) => Promise<BatchResult<T>[]>;
25
+ //#endregion
26
+ //#region src/attio/cache.d.ts
27
+ type MetadataCacheScope = "attributes" | "options" | "statuses";
28
+ interface CacheAdapter<K, V> {
29
+ get(key: K): V | undefined;
30
+ set(key: K, value: V): void;
31
+ delete(key: K): void;
32
+ clear(): void;
33
+ }
34
+ interface CacheAdapterParams {
35
+ scope: MetadataCacheScope;
36
+ ttlMs: number;
37
+ maxEntries?: number;
38
+ }
39
+ interface CacheAdapterFactory<K, V> {
40
+ create(params: CacheAdapterParams): CacheAdapter<K, V>;
41
+ }
42
+ interface MetadataCacheMaxEntries {
43
+ attributes?: number;
44
+ options?: number;
45
+ statuses?: number;
46
+ }
47
+ interface MetadataCacheConfigEnabled {
48
+ enabled?: true;
49
+ ttlMs?: number;
50
+ maxEntries?: number | MetadataCacheMaxEntries;
51
+ adapter?: CacheAdapterFactory<string, unknown[]>;
52
+ }
53
+ interface MetadataCacheConfigDisabled {
54
+ enabled: false;
55
+ }
56
+ type MetadataCacheConfig = MetadataCacheConfigEnabled | MetadataCacheConfigDisabled;
57
+ interface AttioCacheConfigEnabled {
58
+ enabled?: true;
59
+ key?: string;
60
+ metadata?: MetadataCacheConfig;
61
+ }
62
+ interface AttioCacheConfigDisabled {
63
+ enabled: false;
64
+ key?: string;
65
+ }
66
+ type AttioCacheConfig = AttioCacheConfigEnabled | AttioCacheConfigDisabled;
67
+ interface MetadataCacheManager {
68
+ get(scope: MetadataCacheScope): CacheAdapter<string, unknown[]> | undefined;
69
+ clear(): void;
70
+ }
71
+ interface AttioCacheManager {
72
+ metadata: MetadataCacheManager;
73
+ clear(): void;
74
+ }
75
+ declare const DEFAULT_METADATA_CACHE_TTL_MS: number;
76
+ declare const DEFAULT_METADATA_CACHE_MAX_ENTRIES: MetadataCacheMaxEntries;
77
+ interface TtlCacheEntry<T> {
78
+ value: T;
79
+ expiresAt: number;
80
+ }
81
+ interface TtlCacheOptions {
82
+ ttlMs: number;
83
+ maxEntries?: number;
84
+ }
85
+ declare class TtlCache<K, V> {
86
+ private readonly ttlMs;
87
+ private readonly maxEntries;
88
+ private readonly store;
89
+ constructor(options: TtlCacheOptions);
90
+ get(key: K): V | undefined;
91
+ set(key: K, value: V): void;
92
+ delete(key: K): void;
93
+ clear(): void;
94
+ }
95
+ declare const createTtlCacheAdapter: (params: CacheAdapterParams) => CacheAdapter<string, unknown[]>;
96
+ type ClientCacheValidator<T> = ZodType<T>;
97
+ declare const getCachedClient: <T>(key: string, validator: ClientCacheValidator<T>) => T | undefined;
98
+ declare const setCachedClient: <T>(key: string, client: T) => void;
99
+ declare const clearClientCache: () => void;
100
+ declare const hashToken: (value: string | undefined) => string;
101
+ declare const createTtlCache: <K, V>(options: TtlCacheOptions) => TtlCache<K, V>;
102
+ declare const clearMetadataCacheRegistry: () => void;
103
+ declare const createAttioCacheManager: (key: string, config?: AttioCacheConfig) => AttioCacheManager;
104
+ //#endregion
1
105
  //#region src/generated/core/auth.gen.d.ts
2
106
  type AuthToken = string | undefined;
3
107
  interface Auth {
@@ -308,6 +412,166 @@ interface TDataShape {
308
412
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
309
413
  type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
310
414
  //#endregion
415
+ //#region src/attio/errors.d.ts
416
+ interface AttioErrorDetails {
417
+ code?: string;
418
+ type?: string;
419
+ status?: number;
420
+ message?: string;
421
+ data?: unknown;
422
+ cause?: unknown;
423
+ }
424
+ interface AttioErrorContext {
425
+ response?: Response;
426
+ request?: Request;
427
+ options?: unknown;
428
+ }
429
+ declare class AttioError extends Error {
430
+ status?: number;
431
+ code?: string;
432
+ type?: string;
433
+ requestId?: string;
434
+ data?: unknown;
435
+ response?: Response;
436
+ request?: Request;
437
+ retryAfterMs?: number;
438
+ isNetworkError?: boolean;
439
+ isApiError?: boolean;
440
+ suggestions?: unknown;
441
+ constructor(message: string, details?: AttioErrorDetails);
442
+ }
443
+ declare class AttioBatchError extends AttioError {
444
+ constructor(message: string, details?: AttioErrorDetails);
445
+ }
446
+ declare class AttioConfigError extends AttioError {
447
+ constructor(message: string, details?: AttioErrorDetails);
448
+ }
449
+ declare class AttioEnvironmentError extends AttioError {
450
+ constructor(message: string, details?: AttioErrorDetails);
451
+ }
452
+ declare class AttioResponseError extends AttioError {
453
+ constructor(message: string, details?: AttioErrorDetails);
454
+ }
455
+ declare class AttioRetryError extends AttioError {
456
+ constructor(message: string, details?: AttioErrorDetails);
457
+ }
458
+ declare class AttioApiError extends AttioError {
459
+ constructor(message: string, details?: AttioErrorDetails);
460
+ }
461
+ declare class AttioNetworkError extends AttioError {
462
+ constructor(message: string, details?: AttioErrorDetails);
463
+ }
464
+ declare const normalizeAttioError: (error: unknown, context?: AttioErrorContext) => AttioError;
465
+ //#endregion
466
+ //#region src/attio/hooks.d.ts
467
+ interface AttioRequestHookPayload {
468
+ request: Request;
469
+ options: ResolvedRequestOptions;
470
+ }
471
+ interface AttioResponseHookPayload {
472
+ response: Response;
473
+ request: Request;
474
+ options: ResolvedRequestOptions;
475
+ }
476
+ interface AttioErrorHookPayload {
477
+ error: AttioError;
478
+ request?: Request;
479
+ response?: Response;
480
+ options?: ResolvedRequestOptions;
481
+ }
482
+ interface AttioClientHooks {
483
+ onRequest?: (payload: AttioRequestHookPayload) => void;
484
+ onResponse?: (payload: AttioResponseHookPayload) => void;
485
+ onError?: (payload: AttioErrorHookPayload) => void;
486
+ }
487
+ type LogValue = string | number | boolean | null | undefined | LogValue[] | {
488
+ [key: string]: LogValue;
489
+ };
490
+ interface LogContext {
491
+ [key: string]: LogValue;
492
+ }
493
+ interface AttioLogger {
494
+ debug?: (message: string, context?: LogContext) => void;
495
+ info?: (message: string, context?: LogContext) => void;
496
+ warn?: (message: string, context?: LogContext) => void;
497
+ error?: (message: string, context?: LogContext) => void;
498
+ }
499
+ //#endregion
500
+ //#region src/attio/retry.d.ts
501
+ interface RetryConfig {
502
+ maxRetries: number;
503
+ initialDelayMs: number;
504
+ maxDelayMs: number;
505
+ retryableStatusCodes: number[];
506
+ respectRetryAfter: boolean;
507
+ }
508
+ declare const DEFAULT_RETRY_CONFIG: RetryConfig;
509
+ declare const sleep: (ms: number) => Promise<unknown>;
510
+ declare const calculateRetryDelay: (attempt: number, config: RetryConfig, retryAfterMs?: number) => number;
511
+ declare const isRetryableStatus: (status: number | undefined, config: RetryConfig) => boolean;
512
+ declare const isRetryableError: (error: unknown, config: RetryConfig) => boolean;
513
+ declare function callWithRetry<T>(fn: () => Promise<T>, config?: Partial<RetryConfig>): Promise<T>;
514
+ declare function callWithRetry<TData, TError, ThrowOnError extends boolean, TResponseStyle extends ResponseStyle>(fn: () => RequestResult<TData, TError, ThrowOnError, TResponseStyle>, config?: Partial<RetryConfig>): RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
515
+ //#endregion
516
+ //#region src/attio/config.d.ts
517
+ declare const DEFAULT_BASE_URL = "https://api.attio.com";
518
+ interface AttioClientConfig extends Omit<Config, "auth" | "baseUrl" | "headers" | "cache"> {
519
+ apiKey?: string;
520
+ accessToken?: string;
521
+ authToken?: string;
522
+ baseUrl?: string;
523
+ headers?: Config["headers"];
524
+ timeoutMs?: number;
525
+ retry?: Partial<RetryConfig>;
526
+ cache?: AttioCacheConfig;
527
+ hooks?: AttioClientHooks;
528
+ logger?: AttioLogger;
529
+ responseStyle?: ResponseStyle;
530
+ throwOnError?: boolean;
531
+ }
532
+ declare const getEnvValue: (key: string) => string | undefined;
533
+ declare const normalizeBaseUrl: (baseUrl: string) => string;
534
+ declare const resolveBaseUrl: (config?: AttioClientConfig) => string;
535
+ declare const resolveAuthToken: (config?: AttioClientConfig) => string | undefined;
536
+ declare const resolveResponseStyle: (config?: AttioClientConfig) => ResponseStyle;
537
+ declare const resolveThrowOnError: (config?: AttioClientConfig) => boolean;
538
+ //#endregion
539
+ //#region src/attio/client.d.ts
540
+ interface AttioClient extends Client {
541
+ cache: AttioCacheManager;
542
+ }
543
+ interface AttioClientInput {
544
+ client?: AttioClient;
545
+ config?: AttioClientConfig;
546
+ }
547
+ declare const createAttioClient: (config?: AttioClientConfig) => AttioClient;
548
+ declare const getAttioClient: (config?: AttioClientConfig) => AttioClient;
549
+ declare const resolveAttioClient: (input?: AttioClientInput) => AttioClient;
550
+ //#endregion
551
+ //#region src/attio/error-enhancer.d.ts
552
+ interface AttioValueSuggestion {
553
+ field: string;
554
+ attempted: string;
555
+ bestMatch?: string;
556
+ matches: string[];
557
+ }
558
+ declare const getKnownFieldValues: (field: string) => string[] | undefined;
559
+ declare const updateKnownFieldValues: (field: string, values: string[]) => void;
560
+ declare const enhanceAttioError: (error: AttioError) => AttioError;
561
+ //#endregion
562
+ //#region src/attio/filters.d.ts
563
+ type AttioFilter = Record<string, unknown>;
564
+ declare const filters: {
565
+ eq: (field: string, value: unknown) => AttioFilter;
566
+ contains: (field: string, value: unknown) => AttioFilter;
567
+ startsWith: (field: string, value: unknown) => AttioFilter;
568
+ endsWith: (field: string, value: unknown) => AttioFilter;
569
+ notEmpty: (field: string) => AttioFilter;
570
+ and: (...conditions: AttioFilter[]) => AttioFilter;
571
+ or: (...conditions: AttioFilter[]) => AttioFilter;
572
+ not: (condition: AttioFilter) => AttioFilter;
573
+ };
574
+ //#endregion
311
575
  //#region src/generated/types.gen.d.ts
312
576
  type ClientOptions = {
313
577
  baseUrl: 'https://api.attio.com' | (string & {});
@@ -614,7 +878,7 @@ type OutputValue = {
614
878
  /**
615
879
  * The ISO4217 currency code representing the currency that the value is stored in.
616
880
  */
617
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
881
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
618
882
  /**
619
883
  * The attribute type of the value.
620
884
  */
@@ -946,7 +1210,7 @@ type Attribute = {
946
1210
  /**
947
1211
  * The ISO4217 code representing the currency that values for this attribute should be stored in.
948
1212
  */
949
- default_currency_code: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
1213
+ default_currency_code: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
950
1214
  /**
951
1215
  * How the currency should be displayed across the app. "code" will display the ISO currency code e.g. "USD", "name" will display the localized currency name e.g. "British pound", "narrowSymbol" will display "$1" instead of "US$1" and "symbol" will display a localized currency symbol such as "$".
952
1216
  */
@@ -1701,7 +1965,7 @@ type PostV2ByTargetByIdentifierAttributesData = {
1701
1965
  /**
1702
1966
  * The ISO4217 code representing the currency that values for this attribute should be stored in.
1703
1967
  */
1704
- default_currency_code: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
1968
+ default_currency_code: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
1705
1969
  /**
1706
1970
  * How the currency should be displayed across the app. "code" will display the ISO currency code e.g. "USD", "name" will display the localized currency name e.g. "British pound", "narrowSymbol" will display "$1" instead of "US$1" and "symbol" will display a localized currency symbol such as "$".
1707
1971
  */
@@ -1855,7 +2119,7 @@ type PatchV2ByTargetByIdentifierAttributesByAttributeData = {
1855
2119
  /**
1856
2120
  * The ISO4217 code representing the currency that values for this attribute should be stored in.
1857
2121
  */
1858
- default_currency_code: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
2122
+ default_currency_code: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
1859
2123
  /**
1860
2124
  * How the currency should be displayed across the app. "code" will display the ISO currency code e.g. "USD", "name" will display the localized currency name e.g. "British pound", "narrowSymbol" will display "$1" instead of "US$1" and "symbol" will display a localized currency symbol such as "$".
1861
2125
  */
@@ -2508,7 +2772,7 @@ type PostV2ObjectsByObjectRecordsQueryResponses = {
2508
2772
  /**
2509
2773
  * The ISO4217 currency code representing the currency that the value is stored in.
2510
2774
  */
2511
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
2775
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
2512
2776
  /**
2513
2777
  * The attribute type of the value.
2514
2778
  */
@@ -3168,7 +3432,7 @@ type PostV2ObjectsByObjectRecordsResponses = {
3168
3432
  /**
3169
3433
  * The ISO4217 currency code representing the currency that the value is stored in.
3170
3434
  */
3171
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
3435
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
3172
3436
  /**
3173
3437
  * The attribute type of the value.
3174
3438
  */
@@ -3833,7 +4097,7 @@ type PutV2ObjectsByObjectRecordsResponses = {
3833
4097
  /**
3834
4098
  * The ISO4217 currency code representing the currency that the value is stored in.
3835
4099
  */
3836
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
4100
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
3837
4101
  /**
3838
4102
  * The attribute type of the value.
3839
4103
  */
@@ -4515,7 +4779,7 @@ type GetV2ObjectsByObjectRecordsByRecordIdResponses = {
4515
4779
  /**
4516
4780
  * The ISO4217 currency code representing the currency that the value is stored in.
4517
4781
  */
4518
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
4782
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
4519
4783
  /**
4520
4784
  * The attribute type of the value.
4521
4785
  */
@@ -5179,7 +5443,7 @@ type PatchV2ObjectsByObjectRecordsByRecordIdResponses = {
5179
5443
  /**
5180
5444
  * The ISO4217 currency code representing the currency that the value is stored in.
5181
5445
  */
5182
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
5446
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
5183
5447
  /**
5184
5448
  * The attribute type of the value.
5185
5449
  */
@@ -5843,7 +6107,7 @@ type PutV2ObjectsByObjectRecordsByRecordIdResponses = {
5843
6107
  /**
5844
6108
  * The ISO4217 currency code representing the currency that the value is stored in.
5845
6109
  */
5846
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
6110
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
5847
6111
  /**
5848
6112
  * The attribute type of the value.
5849
6113
  */
@@ -6488,7 +6752,7 @@ type GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponses =
6488
6752
  /**
6489
6753
  * The ISO4217 currency code representing the currency that the value is stored in.
6490
6754
  */
6491
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
6755
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
6492
6756
  /**
6493
6757
  * The attribute type of the value.
6494
6758
  */
@@ -7574,7 +7838,7 @@ type PostV2ListsByListEntriesQueryResponses = {
7574
7838
  /**
7575
7839
  * The ISO4217 currency code representing the currency that the value is stored in.
7576
7840
  */
7577
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
7841
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
7578
7842
  /**
7579
7843
  * The attribute type of the value.
7580
7844
  */
@@ -8246,7 +8510,7 @@ type PostV2ListsByListEntriesResponses = {
8246
8510
  /**
8247
8511
  * The ISO4217 currency code representing the currency that the value is stored in.
8248
8512
  */
8249
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
8513
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
8250
8514
  /**
8251
8515
  * The attribute type of the value.
8252
8516
  */
@@ -8918,7 +9182,7 @@ type PutV2ListsByListEntriesResponses = {
8918
9182
  /**
8919
9183
  * The ISO4217 currency code representing the currency that the value is stored in.
8920
9184
  */
8921
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
9185
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
8922
9186
  /**
8923
9187
  * The attribute type of the value.
8924
9188
  */
@@ -9604,7 +9868,7 @@ type GetV2ListsByListEntriesByEntryIdResponses = {
9604
9868
  /**
9605
9869
  * The ISO4217 currency code representing the currency that the value is stored in.
9606
9870
  */
9607
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
9871
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
9608
9872
  /**
9609
9873
  * The attribute type of the value.
9610
9874
  */
@@ -10272,7 +10536,7 @@ type PatchV2ListsByListEntriesByEntryIdResponses = {
10272
10536
  /**
10273
10537
  * The ISO4217 currency code representing the currency that the value is stored in.
10274
10538
  */
10275
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
10539
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
10276
10540
  /**
10277
10541
  * The attribute type of the value.
10278
10542
  */
@@ -10940,7 +11204,7 @@ type PutV2ListsByListEntriesByEntryIdResponses = {
10940
11204
  /**
10941
11205
  * The ISO4217 currency code representing the currency that the value is stored in.
10942
11206
  */
10943
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
11207
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
10944
11208
  /**
10945
11209
  * The attribute type of the value.
10946
11210
  */
@@ -11576,7 +11840,7 @@ type GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponses = {
11576
11840
  /**
11577
11841
  * The ISO4217 currency code representing the currency that the value is stored in.
11578
11842
  */
11579
- currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
11843
+ currency_code?: 'ARS' | 'AUD' | 'BRL' | 'BGN' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EUR' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'ILS' | 'JPY' | 'KES' | 'KRW' | 'MYR' | 'MXN' | 'NTD' | 'NZD' | 'NGN' | 'NOK' | 'XPF' | 'PEN' | 'PHP' | 'PLN' | 'GBP' | 'RWF' | 'SAR' | 'SGD' | 'ZAR' | 'SEK' | 'CHF' | 'THB' | 'AED' | 'UYU' | 'USD';
11580
11844
  /**
11581
11845
  * The attribute type of the value.
11582
11846
  */
@@ -14591,287 +14855,272 @@ declare const patchV2WebhooksByWebhookId: <ThrowOnError extends boolean = false>
14591
14855
  */
14592
14856
  declare const getV2Self: <ThrowOnError extends boolean = false>(options?: Options<GetV2SelfData, ThrowOnError>) => RequestResult<GetV2SelfResponses, unknown, ThrowOnError, "fields">;
14593
14857
  //#endregion
14594
- //#region src/attio/batch.d.ts
14595
- declare namespace BatchItem {
14596
- interface RunParams {
14597
- signal?: AbortSignal;
14598
- }
14599
- }
14600
- interface BatchItem<T> {
14601
- run: (params?: BatchItem.RunParams) => Promise<T>;
14602
- label?: string;
14603
- }
14604
- interface BatchResult<T> {
14605
- status: "fulfilled" | "rejected";
14606
- value?: T;
14607
- reason?: unknown;
14608
- label?: string;
14858
+ //#region src/attio/lists.d.ts
14859
+ type ListId = string & {
14860
+ readonly __brand: "ListId";
14861
+ };
14862
+ type EntryId = string & {
14863
+ readonly __brand: "EntryId";
14864
+ };
14865
+ type ParentObjectId = string & {
14866
+ readonly __brand: "ParentObjectId";
14867
+ };
14868
+ type ParentRecordId = string & {
14869
+ readonly __brand: "ParentRecordId";
14870
+ };
14871
+ type EntryValues = PostV2ListsByListEntriesData["body"]["data"]["entry_values"];
14872
+ type ListEntryFilter = PostV2ListsByListEntriesQueryData["body"]["filter"];
14873
+ interface ListQueryInput extends AttioClientInput {
14874
+ list: ListId;
14875
+ filter?: ListEntryFilter;
14876
+ limit?: number;
14877
+ offset?: number;
14878
+ options?: Omit<Options<PostV2ListsByListEntriesQueryData>, "client" | "path" | "body">;
14609
14879
  }
14610
- interface BatchOptions {
14611
- concurrency?: number;
14612
- stopOnError?: boolean;
14880
+ interface GetListInput extends AttioClientInput {
14881
+ list: ListId;
14882
+ options?: Omit<Options<GetV2ListsByListData>, "client" | "path">;
14613
14883
  }
14614
- /**
14615
- * Returns an empty results array when called with no items.
14616
- */
14617
- declare const runBatch: <T>(items: BatchItem<T>[], options?: BatchOptions) => Promise<BatchResult<T>[]>;
14618
- //#endregion
14619
- //#region src/attio/cache.d.ts
14620
- interface TtlCacheEntry<T> {
14621
- value: T;
14622
- expiresAt: number;
14884
+ interface AddListEntryInput extends AttioClientInput {
14885
+ list: ListId;
14886
+ parentObject: ParentObjectId;
14887
+ parentRecordId: ParentRecordId;
14888
+ entryValues?: EntryValues;
14889
+ options?: Omit<Options<PostV2ListsByListEntriesData>, "client" | "path" | "body">;
14623
14890
  }
14624
- interface TtlCacheOptions {
14625
- ttlMs: number;
14626
- maxEntries?: number;
14891
+ interface UpdateListEntryInput extends AttioClientInput {
14892
+ list: ListId;
14893
+ entryId: EntryId;
14894
+ entryValues: EntryValues;
14895
+ options?: Omit<Options<PatchV2ListsByListEntriesByEntryIdData>, "client" | "path" | "body">;
14627
14896
  }
14628
- declare class TtlCache<K, V> {
14629
- private readonly ttlMs;
14630
- private readonly maxEntries;
14631
- private readonly store;
14632
- constructor(options: TtlCacheOptions);
14633
- get(key: K): V | undefined;
14634
- set(key: K, value: V): void;
14635
- delete(key: K): void;
14636
- clear(): void;
14897
+ interface RemoveListEntryInput extends AttioClientInput {
14898
+ list: ListId;
14899
+ entryId: EntryId;
14900
+ options?: Omit<Options<DeleteV2ListsByListEntriesByEntryIdData, true>, "client" | "path">;
14637
14901
  }
14638
- declare const createTtlCache: <K, V>(options: TtlCacheOptions) => TtlCache<K, V>;
14639
- declare const getCachedClient: <T>(key: string) => T | undefined;
14640
- declare const setCachedClient: <T>(key: string, client: T) => void;
14641
- declare const clearClientCache: () => void;
14642
- declare const hashToken: (value: string) => string;
14902
+ declare const listLists: (input?: AttioClientInput) => Promise<unknown[]>;
14903
+ declare const getList: (input: GetListInput) => Promise<unknown>;
14904
+ declare const queryListEntries: (input: ListQueryInput) => Promise<unknown[]>;
14905
+ declare const addListEntry: (input: AddListEntryInput) => Promise<unknown>;
14906
+ declare const updateListEntry: (input: UpdateListEntryInput) => Promise<unknown>;
14907
+ declare const removeListEntry: (input: RemoveListEntryInput) => Promise<boolean>;
14643
14908
  //#endregion
14644
- //#region src/attio/errors.d.ts
14645
- interface AttioErrorDetails {
14646
- code?: string;
14647
- type?: string;
14648
- status?: number;
14649
- message?: string;
14650
- data?: unknown;
14651
- }
14652
- interface AttioErrorContext {
14653
- response?: Response;
14654
- request?: Request;
14655
- options?: unknown;
14909
+ //#region src/attio/metadata.d.ts
14910
+ declare const buildKey: (target: AttributeTarget, identifier: AttributeIdentifier, attribute?: AttributeSlug) => string;
14911
+ declare const extractTitles: (items: unknown[]) => string[];
14912
+ type AttributeTarget = GetV2ByTargetByIdentifierAttributesData["path"]["target"];
14913
+ type AttributeIdentifier = GetV2ByTargetByIdentifierAttributesData["path"]["identifier"];
14914
+ type AttributeSlug = GetV2ByTargetByIdentifierAttributesByAttributeData["path"]["attribute"];
14915
+ type AttributeMetadataData = GetV2ByTargetByIdentifierAttributesByAttributeOptionsData | GetV2ByTargetByIdentifierAttributesByAttributeStatusesData;
14916
+ interface AttributePathInput {
14917
+ target: AttributeTarget;
14918
+ identifier: AttributeIdentifier;
14656
14919
  }
14657
- declare class AttioError extends Error {
14658
- status?: number;
14659
- code?: string;
14660
- type?: string;
14661
- requestId?: string;
14662
- data?: unknown;
14663
- response?: Response;
14664
- request?: Request;
14665
- retryAfterMs?: number;
14666
- isNetworkError?: boolean;
14667
- isApiError?: boolean;
14668
- suggestions?: unknown;
14669
- constructor(message: string, details?: AttioErrorDetails);
14920
+ interface AttributePathWithAttribute extends AttributePathInput {
14921
+ attribute: AttributeSlug;
14670
14922
  }
14671
- declare class AttioApiError extends AttioError {
14672
- constructor(message: string, details?: AttioErrorDetails);
14923
+ interface AttributeListInput extends AttioClientInput, AttributePathInput {
14924
+ options?: Omit<Options<GetV2ByTargetByIdentifierAttributesData>, "client" | "path">;
14673
14925
  }
14674
- declare class AttioNetworkError extends AttioError {
14675
- constructor(message: string, details?: AttioErrorDetails);
14926
+ interface AttributeInput extends AttioClientInput, AttributePathWithAttribute {
14927
+ options?: Omit<Options<GetV2ByTargetByIdentifierAttributesByAttributeData>, "client" | "path">;
14676
14928
  }
14677
- declare const normalizeAttioError: (error: unknown, context?: AttioErrorContext) => AttioError;
14678
- //#endregion
14679
- //#region src/attio/retry.d.ts
14680
- interface RetryConfig {
14681
- maxRetries: number;
14682
- initialDelayMs: number;
14683
- maxDelayMs: number;
14684
- retryableStatusCodes: number[];
14685
- respectRetryAfter: boolean;
14929
+ interface AttributeMetadataInput<TData extends AttributeMetadataData> extends AttioClientInput, AttributePathWithAttribute {
14930
+ options?: Partial<Omit<Options<TData>, "client" | "path">>;
14686
14931
  }
14687
- declare const DEFAULT_RETRY_CONFIG: RetryConfig;
14688
- declare const sleep: (ms: number) => Promise<unknown>;
14689
- declare const calculateRetryDelay: (attempt: number, config: RetryConfig, retryAfterMs?: number) => number;
14690
- declare const isRetryableStatus: (status: number | undefined, config: RetryConfig) => boolean;
14691
- declare const isRetryableError: (error: AttioError | unknown, config: RetryConfig) => boolean;
14692
- declare const callWithRetry: <T>(fn: () => Promise<T>, config?: Partial<RetryConfig>) => Promise<T>;
14693
- //#endregion
14694
- //#region src/attio/config.d.ts
14695
- declare const DEFAULT_BASE_URL = "https://api.attio.com";
14696
- interface AttioClientConfig extends Omit<Config, "auth" | "baseUrl" | "headers"> {
14697
- apiKey?: string;
14698
- accessToken?: string;
14699
- authToken?: string;
14700
- baseUrl?: string;
14701
- headers?: Config["headers"];
14702
- timeoutMs?: number;
14703
- retry?: Partial<RetryConfig>;
14704
- cache?: {
14705
- enabled?: boolean;
14706
- key?: string;
14707
- };
14708
- responseStyle?: ResponseStyle;
14709
- throwOnError?: boolean;
14932
+ interface AttributeMetadataPath extends AttributePathWithAttribute {}
14933
+ type AttributeMetadataFetchParams<TData extends AttributeMetadataData> = Partial<Omit<Options<TData>, "client" | "path">> & {
14934
+ client: AttioClient;
14935
+ path: AttributeMetadataPath;
14936
+ };
14937
+ interface AttributeMetadataRequestParams<TItem, TData extends AttributeMetadataData> {
14938
+ input: AttributeMetadataInput<TData>;
14939
+ cache?: CacheAdapter<string, unknown[]>;
14940
+ fetcher: (params: AttributeMetadataFetchParams<TData>) => Promise<unknown>;
14941
+ itemSchema: ZodType<TItem>;
14710
14942
  }
14711
- declare const getEnvValue: (key: string) => string | undefined;
14712
- declare const normalizeBaseUrl: (baseUrl: string) => string;
14713
- declare const resolveBaseUrl: (config?: AttioClientConfig) => string;
14714
- declare const resolveAuthToken: (config?: AttioClientConfig) => string | undefined;
14715
- declare const validateAuthToken: (token: string | undefined) => string;
14716
- declare const resolveResponseStyle: (config?: AttioClientConfig) => ResponseStyle;
14717
- declare const resolveThrowOnError: (config?: AttioClientConfig) => boolean;
14943
+ declare const buildAttributeMetadataPath: (input: AttributePathWithAttribute) => AttributeMetadataPath;
14944
+ declare const listAttributeMetadata: <T, TData extends AttributeMetadataData>({
14945
+ input,
14946
+ cache,
14947
+ fetcher,
14948
+ itemSchema
14949
+ }: AttributeMetadataRequestParams<T, TData>) => Promise<T[]>;
14950
+ declare const listAttributes: (input: AttributeListInput) => Promise<Attribute[]>;
14951
+ declare const getAttribute: (input: AttributeInput) => Promise<Attribute>;
14952
+ declare const getAttributeOptions: (input: AttributeMetadataInput<GetV2ByTargetByIdentifierAttributesByAttributeOptionsData>) => Promise<SelectOption[]>;
14953
+ declare const getAttributeStatuses: (input: AttributeMetadataInput<GetV2ByTargetByIdentifierAttributesByAttributeStatusesData>) => Promise<Status[]>;
14718
14954
  //#endregion
14719
- //#region src/attio/client.d.ts
14720
- type AttioClient = Client;
14721
- interface AttioClientInput {
14722
- client?: AttioClient;
14723
- config?: AttioClientConfig;
14955
+ //#region src/attio/notes.d.ts
14956
+ type NoteId = string & {
14957
+ readonly __brand: "NoteId";
14958
+ };
14959
+ type NoteParentObjectId = string & {
14960
+ readonly __brand: "NoteParentObjectId";
14961
+ };
14962
+ type NoteParentRecordId = string & {
14963
+ readonly __brand: "NoteParentRecordId";
14964
+ };
14965
+ type NoteFormat = PostV2NotesData["body"]["data"]["format"];
14966
+ interface NoteCreateInput extends AttioClientInput {
14967
+ parentObject: NoteParentObjectId;
14968
+ parentRecordId: NoteParentRecordId;
14969
+ title: string;
14970
+ format: NoteFormat;
14971
+ content: string;
14972
+ createdAt?: PostV2NotesData["body"]["data"]["created_at"];
14973
+ meetingId?: PostV2NotesData["body"]["data"]["meeting_id"];
14974
+ options?: Omit<Options<PostV2NotesData>, "client" | "body">;
14724
14975
  }
14725
- interface AttioRequestOptions extends RequestOptions {
14726
- retry?: Partial<RetryConfig>;
14976
+ interface NoteGetInput extends AttioClientInput {
14977
+ noteId: NoteId;
14978
+ options?: Omit<Options<GetV2NotesByNoteIdData>, "client" | "path">;
14727
14979
  }
14728
- declare const createAttioClient: (config?: AttioClientConfig) => AttioClient;
14729
- declare const getAttioClient: (config?: AttioClientConfig) => AttioClient;
14730
- declare const resolveAttioClient: (input?: AttioClientInput) => AttioClient;
14731
- //#endregion
14732
- //#region src/attio/error-enhancer.d.ts
14733
- interface AttioValueSuggestion {
14734
- field: string;
14735
- attempted: string;
14736
- bestMatch?: string;
14737
- matches: string[];
14980
+ interface NoteDeleteInput extends AttioClientInput {
14981
+ noteId: NoteId;
14982
+ options?: Omit<Options<DeleteV2NotesByNoteIdData>, "client" | "path">;
14738
14983
  }
14739
- declare const getKnownFieldValues: (field: string) => string[] | undefined;
14740
- declare const updateKnownFieldValues: (field: string, values: string[]) => void;
14741
- declare const enhanceAttioError: (error: AttioError) => AttioError;
14984
+ declare const listNotes: (input?: AttioClientInput) => Promise<unknown[]>;
14985
+ declare const getNote: (input: NoteGetInput) => Promise<unknown>;
14986
+ declare const createNote: (input: NoteCreateInput) => Promise<unknown>;
14987
+ declare const deleteNote: (input: NoteDeleteInput) => Promise<boolean>;
14742
14988
  //#endregion
14743
- //#region src/attio/filters.d.ts
14744
- type AttioFilter = Record<string, unknown>;
14745
- declare const filters: {
14746
- eq: (field: string, value: unknown) => AttioFilter;
14747
- contains: (field: string, value: unknown) => AttioFilter;
14748
- startsWith: (field: string, value: unknown) => AttioFilter;
14749
- endsWith: (field: string, value: unknown) => AttioFilter;
14750
- notEmpty: (field: string) => AttioFilter;
14751
- and: (...conditions: AttioFilter[]) => AttioFilter;
14752
- or: (...conditions: AttioFilter[]) => AttioFilter;
14753
- not: (condition: AttioFilter) => AttioFilter;
14989
+ //#region src/attio/objects.d.ts
14990
+ type ObjectSlug = string & {
14991
+ readonly __brand: "ObjectSlug";
14754
14992
  };
14755
- //#endregion
14756
- //#region src/attio/lists.d.ts
14757
- interface ListQueryInput extends AttioClientInput {
14758
- list: string;
14759
- filter?: Record<string, unknown>;
14760
- limit?: number;
14761
- offset?: number;
14762
- options?: Omit<Options, "client" | "path" | "body">;
14993
+ type ObjectApiSlug = string & {
14994
+ readonly __brand: "ObjectApiSlug";
14995
+ };
14996
+ type ObjectNoun = string & {
14997
+ readonly __brand: "ObjectNoun";
14998
+ };
14999
+ interface ListObjectsInput extends AttioClientInput {
15000
+ options?: Omit<Options<GetV2ObjectsData>, "client">;
14763
15001
  }
14764
- declare const listLists: (input?: AttioClientInput) => Promise<unknown[]>;
14765
- declare const getList: (input: {
14766
- list: string;
14767
- } & AttioClientInput) => Promise<unknown>;
14768
- declare const queryListEntries: (input: ListQueryInput) => Promise<unknown[]>;
14769
- declare const addListEntry: (input: {
14770
- list: string;
14771
- parentRecordId: string;
14772
- entryValues?: Record<string, unknown>;
14773
- options?: Omit<Options, "client" | "path" | "body">;
14774
- } & AttioClientInput) => Promise<unknown>;
14775
- declare const updateListEntry: (input: {
14776
- list: string;
14777
- entryId: string;
14778
- entryValues: Record<string, unknown>;
14779
- options?: Omit<Options, "client" | "path" | "body">;
14780
- } & AttioClientInput) => Promise<unknown>;
14781
- declare const removeListEntry: (input: {
14782
- list: string;
14783
- entryId: string;
14784
- options?: Omit<Options, "client" | "path">;
14785
- } & AttioClientInput) => Promise<boolean>;
14786
- //#endregion
14787
- //#region src/attio/metadata.d.ts
14788
- interface AttributeListInput extends AttioClientInput {
14789
- target: string;
14790
- identifier: string;
14791
- options?: Omit<Options, "client" | "path">;
15002
+ interface GetObjectInput extends AttioClientInput {
15003
+ object: ObjectSlug;
15004
+ options?: Omit<Options<GetV2ObjectsByObjectData>, "client" | "path">;
14792
15005
  }
14793
- interface AttributeInput extends AttributeListInput {
14794
- attribute: string;
15006
+ interface CreateObjectInput extends AttioClientInput {
15007
+ apiSlug: ObjectApiSlug;
15008
+ singularNoun: ObjectNoun;
15009
+ pluralNoun: ObjectNoun;
15010
+ options?: Omit<Options<PostV2ObjectsData>, "client" | "body">;
14795
15011
  }
14796
- declare const listAttributes: (input: AttributeListInput) => Promise<unknown[]>;
14797
- declare const getAttribute: (input: AttributeInput) => Promise<unknown>;
14798
- declare const getAttributeOptions: (input: AttributeInput) => Promise<unknown[]>;
14799
- declare const getAttributeStatuses: (input: AttributeInput) => Promise<unknown[]>;
14800
- //#endregion
14801
- //#region src/attio/notes.d.ts
14802
- interface NoteCreateInput extends AttioClientInput {
14803
- parentObject: string;
14804
- parentRecordId: string;
14805
- title?: string;
14806
- content?: string;
14807
- options?: Omit<Options, "client" | "body">;
15012
+ interface UpdateObjectInput extends AttioClientInput {
15013
+ object: ObjectSlug;
15014
+ apiSlug?: ObjectApiSlug;
15015
+ singularNoun?: ObjectNoun;
15016
+ pluralNoun?: ObjectNoun;
15017
+ options?: Omit<Options<PatchV2ObjectsByObjectData>, "client" | "path" | "body">;
14808
15018
  }
14809
- declare const listNotes: (input?: AttioClientInput) => Promise<unknown[]>;
14810
- declare const getNote: (input: {
14811
- noteId: string;
14812
- } & AttioClientInput) => Promise<unknown>;
14813
- declare const createNote: (input: NoteCreateInput) => Promise<unknown>;
14814
- declare const deleteNote: (input: {
14815
- noteId: string;
14816
- } & AttioClientInput) => Promise<boolean>;
15019
+ declare const listObjects: (input?: ListObjectsInput) => Promise<Object$1[]>;
15020
+ declare const getObject: (input: GetObjectInput) => Promise<Object$1>;
15021
+ declare const createObject: (input: CreateObjectInput) => Promise<Object$1>;
15022
+ declare const updateObject: (input: UpdateObjectInput) => Promise<Object$1>;
14817
15023
  //#endregion
14818
15024
  //#region src/attio/pagination.d.ts
14819
15025
  interface PageResult<T> {
14820
15026
  items: T[];
14821
15027
  nextCursor?: string | null;
14822
15028
  }
14823
- interface PaginationOptions {
15029
+ interface PaginationOptions<T = unknown> {
14824
15030
  cursor?: string | null;
14825
15031
  maxPages?: number;
14826
15032
  maxItems?: number;
15033
+ itemSchema?: ZodType<T>;
14827
15034
  }
15035
+ interface OffsetPageResult<T> {
15036
+ items: T[];
15037
+ nextOffset?: number | null;
15038
+ total?: number;
15039
+ }
15040
+ interface OffsetPaginationOptions<T = unknown> {
15041
+ offset?: number;
15042
+ limit?: number;
15043
+ pageSize?: number;
15044
+ maxPages?: number;
15045
+ maxItems?: number;
15046
+ itemSchema?: ZodType<T>;
15047
+ }
15048
+ declare const createPageResultSchema: <T>(itemSchema: ZodType<T>) => ZodType<PageResult<T>>;
15049
+ declare const createOffsetPageResultSchema: <T>(itemSchema: ZodType<T>) => ZodType<OffsetPageResult<T>>;
14828
15050
  declare const toPageResult: <T>(result: unknown) => PageResult<T>;
14829
- declare const paginate: <T>(fetchPage: (cursor?: string | null) => Promise<PageResult<T> | unknown>, options?: PaginationOptions) => Promise<T[]>;
15051
+ declare const toOffsetPageResult: <T>(result: unknown) => OffsetPageResult<T>;
15052
+ declare const parsePageResult: <T>(page: unknown, itemSchema?: ZodType<T>) => PageResult<T> | undefined;
15053
+ declare const parseOffsetPageResult: <T>(page: unknown, itemSchema?: ZodType<T>) => OffsetPageResult<T> | undefined;
15054
+ declare const paginate: <T>(fetchPage: (cursor?: string | null) => Promise<PageResult<T> | unknown>, options?: PaginationOptions<T>) => Promise<T[]>;
15055
+ declare const paginateOffset: <T>(fetchPage: (offset: number, limit: number) => Promise<OffsetPageResult<T> | unknown>, options?: OffsetPaginationOptions<T>) => Promise<T[]>;
14830
15056
  //#endregion
14831
15057
  //#region src/attio/record-utils.d.ts
15058
+ declare const attioRecordIdSchema: z.core.$ZodBranded<z.ZodString, "AttioRecordId", "out">;
15059
+ type AttioRecordId = z.infer<typeof attioRecordIdSchema>;
15060
+ interface AttioRecordIdFields {
15061
+ record_id?: AttioRecordId;
15062
+ company_id?: AttioRecordId;
15063
+ person_id?: AttioRecordId;
15064
+ list_id?: AttioRecordId;
15065
+ task_id?: AttioRecordId;
15066
+ }
15067
+ type EmptyObjectBehavior = "allow" | "reject";
15068
+ interface NormalizeRecordOptions {
15069
+ emptyBehavior?: EmptyObjectBehavior;
15070
+ }
14832
15071
  interface AttioRecordLike {
14833
- id?: Record<string, unknown>;
15072
+ id?: AttioRecordIdFields | AttioRecordId;
14834
15073
  values?: Record<string, unknown>;
14835
15074
  [key: string]: unknown;
14836
15075
  }
14837
- declare const extractRecordId: (obj: unknown) => string | undefined;
14838
- declare const normalizeRecord: <T extends AttioRecordLike>(raw: Record<string, unknown>, options?: {
14839
- allowEmpty?: boolean;
14840
- }) => T;
14841
- declare const normalizeRecords: <T extends AttioRecordLike>(items: unknown[], options?: {
14842
- allowEmpty?: boolean;
14843
- }) => T[];
15076
+ declare const extractRecordId: (obj: unknown) => AttioRecordId | undefined;
15077
+ declare function normalizeRecord<T extends AttioRecordLike>(raw: Record<string, unknown>, options?: NormalizeRecordOptions): T;
15078
+ declare function normalizeRecord(raw: Record<string, unknown>, options?: NormalizeRecordOptions): AttioRecordLike;
15079
+ declare function normalizeRecords<T extends AttioRecordLike>(items: unknown[], options?: NormalizeRecordOptions): T[];
15080
+ declare function normalizeRecords(items: unknown[], options?: NormalizeRecordOptions): AttioRecordLike[];
14844
15081
  //#endregion
14845
15082
  //#region src/attio/records.d.ts
15083
+ type RecordObjectId = string & {
15084
+ readonly __brand: "RecordObjectId";
15085
+ };
15086
+ type RecordId = string & {
15087
+ readonly __brand: "RecordId";
15088
+ };
15089
+ type MatchingAttribute = string & {
15090
+ readonly __brand: "MatchingAttribute";
15091
+ };
15092
+ type RecordValues = PostV2ObjectsByObjectRecordsData["body"]["data"]["values"];
15093
+ type RecordFilter = PostV2ObjectsByObjectRecordsQueryData["body"]["filter"];
15094
+ type RecordSorts = PostV2ObjectsByObjectRecordsQueryData["body"]["sorts"];
14846
15095
  interface RecordCreateInput extends AttioClientInput {
14847
- object: string;
14848
- values: Record<string, unknown>;
14849
- options?: Omit<Options, "client" | "path" | "body">;
15096
+ object: RecordObjectId;
15097
+ values: RecordValues;
15098
+ options?: Omit<Options<PostV2ObjectsByObjectRecordsData>, "client" | "path" | "body">;
14850
15099
  }
14851
15100
  interface RecordUpdateInput extends AttioClientInput {
14852
- object: string;
14853
- recordId: string;
14854
- values: Record<string, unknown>;
14855
- options?: Omit<Options, "client" | "path" | "body">;
15101
+ object: RecordObjectId;
15102
+ recordId: RecordId;
15103
+ values: RecordValues;
15104
+ options?: Omit<Options<PatchV2ObjectsByObjectRecordsByRecordIdData>, "client" | "path" | "body">;
14856
15105
  }
14857
15106
  interface RecordUpsertInput extends AttioClientInput {
14858
- object: string;
14859
- matchingAttribute: string;
14860
- values: Record<string, unknown>;
14861
- options?: Omit<Options, "client" | "path" | "body">;
15107
+ object: RecordObjectId;
15108
+ matchingAttribute: MatchingAttribute;
15109
+ values: RecordValues;
15110
+ options?: Omit<Options<PutV2ObjectsByObjectRecordsData>, "client" | "path" | "body">;
14862
15111
  }
14863
15112
  interface RecordGetInput extends AttioClientInput {
14864
- object: string;
14865
- recordId: string;
14866
- options?: Omit<Options, "client" | "path">;
15113
+ object: RecordObjectId;
15114
+ recordId: RecordId;
15115
+ options?: Omit<Options<GetV2ObjectsByObjectRecordsByRecordIdData>, "client" | "path">;
14867
15116
  }
14868
15117
  interface RecordQueryInput extends AttioClientInput {
14869
- object: string;
14870
- filter?: Record<string, unknown>;
14871
- sorts?: Array<Record<string, unknown>>;
15118
+ object: RecordObjectId;
15119
+ filter?: RecordFilter;
15120
+ sorts?: RecordSorts;
14872
15121
  limit?: number;
14873
15122
  offset?: number;
14874
- options?: Omit<Options, "client" | "path" | "body">;
15123
+ options?: Omit<Options<PostV2ObjectsByObjectRecordsQueryData>, "client" | "path" | "body">;
14875
15124
  }
14876
15125
  declare const createRecord: <T extends AttioRecordLike>(input: RecordCreateInput) => Promise<T>;
14877
15126
  declare const updateRecord: <T extends AttioRecordLike>(input: RecordUpdateInput) => Promise<T>;
@@ -14881,47 +15130,213 @@ declare const deleteRecord: (input: RecordGetInput) => Promise<boolean>;
14881
15130
  declare const queryRecords: <T extends AttioRecordLike>(input: RecordQueryInput) => Promise<T[]>;
14882
15131
  //#endregion
14883
15132
  //#region src/attio/response.d.ts
14884
- declare const unwrapData: <T>(result: unknown) => T;
14885
- declare const unwrapItems: <T>(result: unknown) => T[];
15133
+ interface UnwrapOptions<T = unknown> {
15134
+ maxDepth?: number;
15135
+ schema?: ZodType<T>;
15136
+ }
15137
+ interface AttioResult<T> {
15138
+ ok: boolean;
15139
+ value?: T;
15140
+ error?: AttioError;
15141
+ request?: Request;
15142
+ response?: Response;
15143
+ }
15144
+ interface ResultOptions<T> extends UnwrapOptions {
15145
+ schema?: ZodType<T>;
15146
+ }
15147
+ declare function unwrapData<T>(result: unknown, options: UnwrapOptions<T> & {
15148
+ schema: ZodType<T>;
15149
+ }): T;
15150
+ declare function unwrapData<T>(result: unknown, options?: UnwrapOptions<T>): T;
15151
+ interface UnwrapItemsOptions<T = unknown> {
15152
+ schema?: ZodType<T>;
15153
+ }
15154
+ declare function unwrapItems<T>(result: unknown, options: UnwrapItemsOptions<T> & {
15155
+ schema: ZodType<T>;
15156
+ }): T[];
15157
+ declare function unwrapItems<T>(result: unknown, options?: UnwrapItemsOptions<T>): T[];
14886
15158
  declare const unwrapPaginationCursor: (result: unknown) => string | null;
15159
+ declare const unwrapPaginationOffset: (result: unknown) => number | null;
15160
+ declare const createSchemaError: (details?: unknown) => AttioResponseError;
15161
+ declare function assertOk<T>(result: unknown, options: ResultOptions<T> & {
15162
+ schema: ZodType<T>;
15163
+ }): T;
15164
+ declare function assertOk(result: unknown, options?: ResultOptions<unknown>): unknown;
15165
+ declare function toResult<T>(result: unknown, options: ResultOptions<T> & {
15166
+ schema: ZodType<T>;
15167
+ }): AttioResult<T>;
15168
+ declare function toResult(result: unknown, options?: ResultOptions<unknown>): AttioResult<unknown>;
15169
+ //#endregion
15170
+ //#region src/attio/values.d.ts
15171
+ interface ValueCurrencyInput {
15172
+ currency_value: number;
15173
+ currency_code?: string;
15174
+ }
15175
+ type ValueInput = InputValue | ValueCurrencyInput;
15176
+ interface ValueFactory {
15177
+ string: (value: string) => ValueInput[];
15178
+ number: (value: number) => ValueInput[];
15179
+ boolean: (value: boolean) => ValueInput[];
15180
+ domain: (value: string) => ValueInput[];
15181
+ email: (value: string) => ValueInput[];
15182
+ currency: (value: number, currencyCode?: string) => ValueInput[];
15183
+ }
15184
+ interface ValueLookupOptions<T> {
15185
+ schema?: z.ZodType<T>;
15186
+ }
15187
+ declare const value$1: ValueFactory;
15188
+ declare function getValue<T>(record: AttioRecordLike, attribute: string, options: ValueLookupOptions<T> & {
15189
+ schema: z.ZodType<T>;
15190
+ }): T[] | undefined;
15191
+ declare function getValue(record: AttioRecordLike, attribute: string, options?: ValueLookupOptions<unknown>): unknown[] | undefined;
15192
+ declare function getFirstValue<T>(record: AttioRecordLike, attribute: string, options: ValueLookupOptions<T> & {
15193
+ schema: z.ZodType<T>;
15194
+ }): T | undefined;
15195
+ declare function getFirstValue(record: AttioRecordLike, attribute: string, options?: ValueLookupOptions<unknown>): unknown | undefined;
15196
+ //#endregion
15197
+ //#region src/attio/schema.d.ts
15198
+ type SchemaTarget = GetV2ByTargetByIdentifierAttributesData["path"]["target"];
15199
+ type SchemaIdentifier = GetV2ByTargetByIdentifierAttributesData["path"]["identifier"];
15200
+ interface SchemaInput extends AttioClientInput {
15201
+ target: SchemaTarget;
15202
+ identifier: SchemaIdentifier;
15203
+ options?: Omit<Options<GetV2ByTargetByIdentifierAttributesData>, "client" | "path">;
15204
+ }
15205
+ interface AttributeAccessor {
15206
+ attribute: Attribute;
15207
+ getValue: (record: AttioRecordLike) => unknown[] | undefined;
15208
+ getFirstValue: (record: AttioRecordLike) => unknown | undefined;
15209
+ getValueAs: <T>(record: AttioRecordLike, options: ValueLookupOptions<T> & {
15210
+ schema: ZodType<T>;
15211
+ }) => T[] | undefined;
15212
+ getFirstValueAs: <T>(record: AttioRecordLike, options: ValueLookupOptions<T> & {
15213
+ schema: ZodType<T>;
15214
+ }) => T | undefined;
15215
+ }
15216
+ interface AttioSchema {
15217
+ target: SchemaTarget;
15218
+ identifier: SchemaIdentifier;
15219
+ attributes: Attribute[];
15220
+ attributeSlugs: string[];
15221
+ getAttribute: (slug: string) => Attribute | undefined;
15222
+ getAttributeOrThrow: (slug: string) => Attribute;
15223
+ getAccessor: (slug: string) => AttributeAccessor | undefined;
15224
+ getAccessorOrThrow: (slug: string) => AttributeAccessor;
15225
+ }
15226
+ declare const createSchema: (input: SchemaInput) => Promise<AttioSchema>;
15227
+ //#endregion
15228
+ //#region src/attio/sdk.d.ts
15229
+ /** Helper type to omit client and config from input types for SDK methods */
15230
+ type SdkInput<T> = Omit<T, "client" | "config">;
15231
+ /** Type alias for delete record input (same shape as RecordGetInput) */
15232
+ type RecordDeleteInput = RecordGetInput;
15233
+ interface AttioSdk {
15234
+ client: AttioClient;
15235
+ objects: {
15236
+ list: (input?: SdkInput<ListObjectsInput>) => ReturnType<typeof listObjects>;
15237
+ get: (input: SdkInput<GetObjectInput>) => ReturnType<typeof getObject>;
15238
+ create: (input: SdkInput<CreateObjectInput>) => ReturnType<typeof createObject>;
15239
+ update: (input: SdkInput<UpdateObjectInput>) => ReturnType<typeof updateObject>;
15240
+ };
15241
+ records: {
15242
+ create: (input: SdkInput<RecordCreateInput>) => ReturnType<typeof createRecord>;
15243
+ update: (input: SdkInput<RecordUpdateInput>) => ReturnType<typeof updateRecord>;
15244
+ upsert: (input: SdkInput<RecordUpsertInput>) => ReturnType<typeof upsertRecord>;
15245
+ get: (input: SdkInput<RecordGetInput>) => ReturnType<typeof getRecord>;
15246
+ delete: (input: SdkInput<RecordDeleteInput>) => ReturnType<typeof deleteRecord>;
15247
+ query: (input: SdkInput<RecordQueryInput>) => ReturnType<typeof queryRecords>;
15248
+ };
15249
+ lists: {
15250
+ list: (input?: SdkInput<AttioClientInput>) => ReturnType<typeof listLists>;
15251
+ get: (input: SdkInput<GetListInput>) => ReturnType<typeof getList>;
15252
+ queryEntries: (input: SdkInput<ListQueryInput>) => ReturnType<typeof queryListEntries>;
15253
+ addEntry: (input: SdkInput<AddListEntryInput>) => ReturnType<typeof addListEntry>;
15254
+ updateEntry: (input: SdkInput<UpdateListEntryInput>) => ReturnType<typeof updateListEntry>;
15255
+ removeEntry: (input: SdkInput<RemoveListEntryInput>) => ReturnType<typeof removeListEntry>;
15256
+ };
15257
+ metadata: {
15258
+ listAttributes: (input: SdkInput<AttributeListInput>) => ReturnType<typeof listAttributes>;
15259
+ getAttribute: (input: SdkInput<AttributeInput>) => ReturnType<typeof getAttribute>;
15260
+ getAttributeOptions: (input: SdkInput<AttributeInput>) => ReturnType<typeof getAttributeOptions>;
15261
+ getAttributeStatuses: (input: SdkInput<AttributeInput>) => ReturnType<typeof getAttributeStatuses>;
15262
+ schema: (input: SdkInput<SchemaInput>) => ReturnType<typeof createSchema>;
15263
+ };
15264
+ }
15265
+ declare const createAttioSdk: (input?: AttioClientInput) => AttioSdk;
14887
15266
  //#endregion
14888
15267
  //#region src/attio/search.d.ts
14889
15268
  interface RecordSearchInput extends AttioClientInput {
14890
- query: string;
14891
- objects: string[];
14892
- requestAs?: {
14893
- type: "workspace";
14894
- } | {
14895
- type: "workspace-member";
14896
- workspace_member_id: string;
14897
- } | {
14898
- type: "workspace-member";
14899
- email_address: string;
14900
- };
14901
- limit?: number;
14902
- options?: Omit<Options, "client" | "body">;
15269
+ query: PostV2ObjectsRecordsSearchData["body"]["query"];
15270
+ objects: PostV2ObjectsRecordsSearchData["body"]["objects"];
15271
+ requestAs?: PostV2ObjectsRecordsSearchData["body"]["request_as"];
15272
+ limit?: PostV2ObjectsRecordsSearchData["body"]["limit"];
15273
+ options?: Omit<Options<PostV2ObjectsRecordsSearchData>, "client" | "body">;
14903
15274
  }
14904
15275
  declare const searchRecords: <T extends AttioRecordLike>(input: RecordSearchInput) => Promise<T[]>;
14905
15276
  //#endregion
15277
+ //#region src/generated/zod.gen.d.ts
15278
+ declare const zTask: z.ZodObject<{
15279
+ id: z.ZodObject<{
15280
+ workspace_id: z.ZodUUID;
15281
+ task_id: z.ZodUUID;
15282
+ }, z.core.$strip>;
15283
+ content_plaintext: z.ZodString;
15284
+ deadline_at: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
15285
+ is_completed: z.ZodBoolean;
15286
+ linked_records: z.ZodArray<z.ZodObject<{
15287
+ target_object_id: z.ZodString;
15288
+ target_record_id: z.ZodUUID;
15289
+ }, z.core.$strip>>;
15290
+ assignees: z.ZodArray<z.ZodObject<{
15291
+ referenced_actor_type: z.ZodEnum<{
15292
+ "api-token": "api-token";
15293
+ "workspace-member": "workspace-member";
15294
+ system: "system";
15295
+ app: "app";
15296
+ }>;
15297
+ referenced_actor_id: z.ZodUUID;
15298
+ }, z.core.$strip>>;
15299
+ created_by_actor: z.ZodObject<{
15300
+ id: z.ZodOptional<z.ZodString>;
15301
+ type: z.ZodOptional<z.ZodEnum<{
15302
+ "api-token": "api-token";
15303
+ "workspace-member": "workspace-member";
15304
+ system: "system";
15305
+ app: "app";
15306
+ }>>;
15307
+ }, z.core.$strip>;
15308
+ created_at: z.ZodString;
15309
+ }, z.core.$strip>;
15310
+ //#endregion
14906
15311
  //#region src/attio/tasks.d.ts
15312
+ type Task$1 = z.infer<typeof zTask>;
15313
+ type TaskId = string & {
15314
+ readonly __brand: "TaskId";
15315
+ };
15316
+ type TaskCreateData = PostV2TasksData["body"]["data"];
15317
+ type TaskUpdateData = PatchV2TasksByTaskIdData["body"]["data"];
14907
15318
  interface TaskCreateInput extends AttioClientInput {
14908
- data: Record<string, unknown>;
14909
- options?: Omit<Options, "client" | "body">;
15319
+ data: TaskCreateData;
15320
+ options?: Omit<Options<PostV2TasksData>, "client" | "body">;
14910
15321
  }
14911
15322
  interface TaskUpdateInput extends AttioClientInput {
14912
- taskId: string;
14913
- data: Record<string, unknown>;
14914
- options?: Omit<Options, "client" | "path" | "body">;
15323
+ taskId: TaskId;
15324
+ data: TaskUpdateData;
15325
+ options?: Omit<Options<PatchV2TasksByTaskIdData>, "client" | "path" | "body">;
14915
15326
  }
14916
- declare const listTasks: (input?: AttioClientInput) => Promise<unknown[]>;
14917
- declare const getTask: (input: {
14918
- taskId: string;
14919
- } & AttioClientInput) => Promise<unknown>;
14920
- declare const createTask: (input: TaskCreateInput) => Promise<unknown>;
14921
- declare const updateTask: (input: TaskUpdateInput) => Promise<unknown>;
14922
- declare const deleteTask: (input: {
14923
- taskId: string;
14924
- } & AttioClientInput) => Promise<boolean>;
15327
+ interface TaskDeleteInput extends AttioClientInput {
15328
+ taskId: TaskId;
15329
+ options?: Omit<Options<DeleteV2TasksByTaskIdData>, "client" | "path">;
15330
+ }
15331
+ interface TaskGetInput extends AttioClientInput {
15332
+ taskId: TaskId;
15333
+ options?: Omit<Options<GetV2TasksByTaskIdData>, "client" | "path">;
15334
+ }
15335
+ declare const listTasks: (input?: AttioClientInput) => Promise<Task$1[]>;
15336
+ declare const getTask: (input: TaskGetInput) => Promise<Task$1>;
15337
+ declare const createTask: (input: TaskCreateInput) => Promise<Task$1>;
15338
+ declare const updateTask: (input: TaskUpdateInput) => Promise<Task$1>;
15339
+ declare const deleteTask: (input: TaskDeleteInput) => Promise<DeleteV2TasksByTaskIdResponse>;
14925
15340
  //#endregion
14926
15341
  //#region src/attio/workspace-members.d.ts
14927
15342
  declare const listWorkspaceMembers: (input?: AttioClientInput) => Promise<unknown[]>;
@@ -14929,5 +15344,5 @@ declare const getWorkspaceMember: (input: {
14929
15344
  workspaceMemberId: string;
14930
15345
  } & AttioClientInput) => Promise<unknown>;
14931
15346
  //#endregion
14932
- export { AttioApiError, AttioClient, AttioClientConfig, AttioClientInput, AttioError, AttioErrorContext, AttioErrorDetails, AttioFilter, AttioNetworkError, AttioRecordLike, AttioRequestOptions, AttioValueSuggestion, Attribute, AttributeInput, AttributeListInput, BatchItem, BatchOptions, BatchResult, ClientOptions, Comment, DEFAULT_BASE_URL, DEFAULT_RETRY_CONFIG, DeleteV2CommentsByCommentIdData, DeleteV2CommentsByCommentIdError, DeleteV2CommentsByCommentIdErrors, DeleteV2CommentsByCommentIdResponse, DeleteV2CommentsByCommentIdResponses, DeleteV2ListsByListEntriesByEntryIdData, DeleteV2ListsByListEntriesByEntryIdError, DeleteV2ListsByListEntriesByEntryIdErrors, DeleteV2ListsByListEntriesByEntryIdResponse, DeleteV2ListsByListEntriesByEntryIdResponses, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdData, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdError, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdErrors, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponses, DeleteV2NotesByNoteIdData, DeleteV2NotesByNoteIdError, DeleteV2NotesByNoteIdErrors, DeleteV2NotesByNoteIdResponse, DeleteV2NotesByNoteIdResponses, DeleteV2ObjectsByObjectRecordsByRecordIdData, DeleteV2ObjectsByObjectRecordsByRecordIdError, DeleteV2ObjectsByObjectRecordsByRecordIdErrors, DeleteV2ObjectsByObjectRecordsByRecordIdResponse, DeleteV2ObjectsByObjectRecordsByRecordIdResponses, DeleteV2TasksByTaskIdData, DeleteV2TasksByTaskIdError, DeleteV2TasksByTaskIdErrors, DeleteV2TasksByTaskIdResponse, DeleteV2TasksByTaskIdResponses, DeleteV2WebhooksByWebhookIdData, DeleteV2WebhooksByWebhookIdError, DeleteV2WebhooksByWebhookIdErrors, DeleteV2WebhooksByWebhookIdResponse, DeleteV2WebhooksByWebhookIdResponses, GetV2ByTargetByIdentifierAttributesByAttributeData, GetV2ByTargetByIdentifierAttributesByAttributeError, GetV2ByTargetByIdentifierAttributesByAttributeErrors, GetV2ByTargetByIdentifierAttributesByAttributeOptionsData, GetV2ByTargetByIdentifierAttributesByAttributeOptionsError, GetV2ByTargetByIdentifierAttributesByAttributeOptionsErrors, GetV2ByTargetByIdentifierAttributesByAttributeOptionsResponse, GetV2ByTargetByIdentifierAttributesByAttributeOptionsResponses, GetV2ByTargetByIdentifierAttributesByAttributeResponse, GetV2ByTargetByIdentifierAttributesByAttributeResponses, GetV2ByTargetByIdentifierAttributesByAttributeStatusesData, GetV2ByTargetByIdentifierAttributesByAttributeStatusesError, GetV2ByTargetByIdentifierAttributesByAttributeStatusesErrors, GetV2ByTargetByIdentifierAttributesByAttributeStatusesResponse, GetV2ByTargetByIdentifierAttributesByAttributeStatusesResponses, GetV2ByTargetByIdentifierAttributesData, GetV2ByTargetByIdentifierAttributesResponse, GetV2ByTargetByIdentifierAttributesResponses, GetV2CommentsByCommentIdData, GetV2CommentsByCommentIdError, GetV2CommentsByCommentIdErrors, GetV2CommentsByCommentIdResponse, GetV2CommentsByCommentIdResponses, GetV2ListsByListData, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesData, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesError, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesErrors, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponses, GetV2ListsByListEntriesByEntryIdData, GetV2ListsByListEntriesByEntryIdError, GetV2ListsByListEntriesByEntryIdErrors, GetV2ListsByListEntriesByEntryIdResponse, GetV2ListsByListEntriesByEntryIdResponses, GetV2ListsByListError, GetV2ListsByListErrors, GetV2ListsByListResponse, GetV2ListsByListResponses, GetV2ListsData, GetV2ListsResponse, GetV2ListsResponses, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdData, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdError, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdErrors, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponses, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptData, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptResponse, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptResponses, GetV2MeetingsByMeetingIdCallRecordingsData, GetV2MeetingsByMeetingIdCallRecordingsResponse, GetV2MeetingsByMeetingIdCallRecordingsResponses, GetV2MeetingsByMeetingIdData, GetV2MeetingsByMeetingIdError, GetV2MeetingsByMeetingIdErrors, GetV2MeetingsByMeetingIdResponse, GetV2MeetingsByMeetingIdResponses, GetV2MeetingsData, GetV2MeetingsResponse, GetV2MeetingsResponses, GetV2NotesByNoteIdData, GetV2NotesByNoteIdError, GetV2NotesByNoteIdErrors, GetV2NotesByNoteIdResponse, GetV2NotesByNoteIdResponses, GetV2NotesData, GetV2NotesError, GetV2NotesErrors, GetV2NotesResponse, GetV2NotesResponses, GetV2ObjectsByObjectData, GetV2ObjectsByObjectError, GetV2ObjectsByObjectErrors, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesData, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesError, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesErrors, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponses, GetV2ObjectsByObjectRecordsByRecordIdData, GetV2ObjectsByObjectRecordsByRecordIdEntriesData, GetV2ObjectsByObjectRecordsByRecordIdEntriesResponse, GetV2ObjectsByObjectRecordsByRecordIdEntriesResponses, GetV2ObjectsByObjectRecordsByRecordIdError, GetV2ObjectsByObjectRecordsByRecordIdErrors, GetV2ObjectsByObjectRecordsByRecordIdResponse, GetV2ObjectsByObjectRecordsByRecordIdResponses, GetV2ObjectsByObjectResponse, GetV2ObjectsByObjectResponses, GetV2ObjectsData, GetV2ObjectsResponse, GetV2ObjectsResponses, GetV2SelfData, GetV2SelfResponse, GetV2SelfResponses, GetV2TasksByTaskIdData, GetV2TasksByTaskIdError, GetV2TasksByTaskIdErrors, GetV2TasksByTaskIdResponse, GetV2TasksByTaskIdResponses, GetV2TasksData, GetV2TasksResponse, GetV2TasksResponses, GetV2ThreadsByThreadIdData, GetV2ThreadsByThreadIdError, GetV2ThreadsByThreadIdErrors, GetV2ThreadsByThreadIdResponse, GetV2ThreadsByThreadIdResponses, GetV2ThreadsData, GetV2ThreadsResponse, GetV2ThreadsResponses, GetV2WebhooksByWebhookIdData, GetV2WebhooksByWebhookIdError, GetV2WebhooksByWebhookIdErrors, GetV2WebhooksByWebhookIdResponse, GetV2WebhooksByWebhookIdResponses, GetV2WebhooksData, GetV2WebhooksResponse, GetV2WebhooksResponses, GetV2WorkspaceMembersByWorkspaceMemberIdData, GetV2WorkspaceMembersByWorkspaceMemberIdError, GetV2WorkspaceMembersByWorkspaceMemberIdErrors, GetV2WorkspaceMembersByWorkspaceMemberIdResponse, GetV2WorkspaceMembersByWorkspaceMemberIdResponses, GetV2WorkspaceMembersData, GetV2WorkspaceMembersResponse, GetV2WorkspaceMembersResponses, InputValue, List, ListQueryInput, Meeting, Note, NoteCreateInput, Object$1 as Object, Options, OutputValue, PageResult, PaginationOptions, PatchV2ByTargetByIdentifierAttributesByAttributeData, PatchV2ByTargetByIdentifierAttributesByAttributeError, PatchV2ByTargetByIdentifierAttributesByAttributeErrors, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionData, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionError, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionErrors, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionResponse, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionResponses, PatchV2ByTargetByIdentifierAttributesByAttributeResponse, PatchV2ByTargetByIdentifierAttributesByAttributeResponses, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusData, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusError, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusErrors, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusResponse, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusResponses, PatchV2ListsByListData, PatchV2ListsByListEntriesByEntryIdData, PatchV2ListsByListEntriesByEntryIdError, PatchV2ListsByListEntriesByEntryIdErrors, PatchV2ListsByListEntriesByEntryIdResponse, PatchV2ListsByListEntriesByEntryIdResponses, PatchV2ListsByListError, PatchV2ListsByListErrors, PatchV2ListsByListResponse, PatchV2ListsByListResponses, PatchV2ObjectsByObjectData, PatchV2ObjectsByObjectError, PatchV2ObjectsByObjectErrors, PatchV2ObjectsByObjectRecordsByRecordIdData, PatchV2ObjectsByObjectRecordsByRecordIdError, PatchV2ObjectsByObjectRecordsByRecordIdErrors, PatchV2ObjectsByObjectRecordsByRecordIdResponse, PatchV2ObjectsByObjectRecordsByRecordIdResponses, PatchV2ObjectsByObjectResponse, PatchV2ObjectsByObjectResponses, PatchV2TasksByTaskIdData, PatchV2TasksByTaskIdError, PatchV2TasksByTaskIdErrors, PatchV2TasksByTaskIdResponse, PatchV2TasksByTaskIdResponses, PatchV2WebhooksByWebhookIdData, PatchV2WebhooksByWebhookIdError, PatchV2WebhooksByWebhookIdErrors, PatchV2WebhooksByWebhookIdResponse, PatchV2WebhooksByWebhookIdResponses, PostV2ByTargetByIdentifierAttributesByAttributeOptionsData, PostV2ByTargetByIdentifierAttributesByAttributeOptionsError, PostV2ByTargetByIdentifierAttributesByAttributeOptionsErrors, PostV2ByTargetByIdentifierAttributesByAttributeOptionsResponse, PostV2ByTargetByIdentifierAttributesByAttributeOptionsResponses, PostV2ByTargetByIdentifierAttributesByAttributeStatusesData, PostV2ByTargetByIdentifierAttributesByAttributeStatusesError, PostV2ByTargetByIdentifierAttributesByAttributeStatusesErrors, PostV2ByTargetByIdentifierAttributesByAttributeStatusesResponse, PostV2ByTargetByIdentifierAttributesByAttributeStatusesResponses, PostV2ByTargetByIdentifierAttributesData, PostV2ByTargetByIdentifierAttributesError, PostV2ByTargetByIdentifierAttributesErrors, PostV2ByTargetByIdentifierAttributesResponse, PostV2ByTargetByIdentifierAttributesResponses, PostV2CommentsData, PostV2CommentsError, PostV2CommentsErrors, PostV2CommentsResponse, PostV2CommentsResponses, PostV2ListsByListEntriesData, PostV2ListsByListEntriesError, PostV2ListsByListEntriesErrors, PostV2ListsByListEntriesQueryData, PostV2ListsByListEntriesQueryError, PostV2ListsByListEntriesQueryErrors, PostV2ListsByListEntriesQueryResponse, PostV2ListsByListEntriesQueryResponses, PostV2ListsByListEntriesResponse, PostV2ListsByListEntriesResponses, PostV2ListsData, PostV2ListsError, PostV2ListsErrors, PostV2ListsResponse, PostV2ListsResponses, PostV2MeetingsByMeetingIdCallRecordingsData, PostV2MeetingsByMeetingIdCallRecordingsError, PostV2MeetingsByMeetingIdCallRecordingsErrors, PostV2MeetingsByMeetingIdCallRecordingsResponse, PostV2MeetingsByMeetingIdCallRecordingsResponses, PostV2MeetingsData, PostV2MeetingsError, PostV2MeetingsErrors, PostV2MeetingsResponse, PostV2MeetingsResponses, PostV2NotesData, PostV2NotesError, PostV2NotesErrors, PostV2NotesResponse, PostV2NotesResponses, PostV2ObjectsByObjectRecordsData, PostV2ObjectsByObjectRecordsError, PostV2ObjectsByObjectRecordsErrors, PostV2ObjectsByObjectRecordsQueryData, PostV2ObjectsByObjectRecordsQueryError, PostV2ObjectsByObjectRecordsQueryErrors, PostV2ObjectsByObjectRecordsQueryResponse, PostV2ObjectsByObjectRecordsQueryResponses, PostV2ObjectsByObjectRecordsResponse, PostV2ObjectsByObjectRecordsResponses, PostV2ObjectsData, PostV2ObjectsError, PostV2ObjectsErrors, PostV2ObjectsRecordsSearchData, PostV2ObjectsRecordsSearchError, PostV2ObjectsRecordsSearchErrors, PostV2ObjectsRecordsSearchResponse, PostV2ObjectsRecordsSearchResponses, PostV2ObjectsResponse, PostV2ObjectsResponses, PostV2TasksData, PostV2TasksError, PostV2TasksErrors, PostV2TasksResponse, PostV2TasksResponses, PostV2WebhooksData, PostV2WebhooksError, PostV2WebhooksErrors, PostV2WebhooksResponse, PostV2WebhooksResponses, PutV2ListsByListEntriesByEntryIdData, PutV2ListsByListEntriesByEntryIdError, PutV2ListsByListEntriesByEntryIdErrors, PutV2ListsByListEntriesByEntryIdResponse, PutV2ListsByListEntriesByEntryIdResponses, PutV2ListsByListEntriesData, PutV2ListsByListEntriesError, PutV2ListsByListEntriesErrors, PutV2ListsByListEntriesResponse, PutV2ListsByListEntriesResponses, PutV2ObjectsByObjectRecordsByRecordIdData, PutV2ObjectsByObjectRecordsByRecordIdError, PutV2ObjectsByObjectRecordsByRecordIdErrors, PutV2ObjectsByObjectRecordsByRecordIdResponse, PutV2ObjectsByObjectRecordsByRecordIdResponses, PutV2ObjectsByObjectRecordsData, PutV2ObjectsByObjectRecordsError, PutV2ObjectsByObjectRecordsErrors, PutV2ObjectsByObjectRecordsResponse, PutV2ObjectsByObjectRecordsResponses, RecordCreateInput, RecordGetInput, RecordQueryInput, RecordSearchInput, RecordUpdateInput, RecordUpsertInput, RetryConfig, SelectOption, Status, Task, TaskCreateInput, TaskUpdateInput, Thread, TtlCache, TtlCacheEntry, TtlCacheOptions, WorkspaceMember, addListEntry, calculateRetryDelay, callWithRetry, clearClientCache, createAttioClient, createNote, createRecord, createTask, createTtlCache, deleteNote, deleteRecord, deleteTask, deleteV2CommentsByCommentId, deleteV2ListsByListEntriesByEntryId, deleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingId, deleteV2NotesByNoteId, deleteV2ObjectsByObjectRecordsByRecordId, deleteV2TasksByTaskId, deleteV2WebhooksByWebhookId, enhanceAttioError, extractRecordId, filters, getAttioClient, getAttribute, getAttributeOptions, getAttributeStatuses, getCachedClient, getEnvValue, getKnownFieldValues, getList, getNote, getRecord, getTask, getV2ByTargetByIdentifierAttributes, getV2ByTargetByIdentifierAttributesByAttribute, getV2ByTargetByIdentifierAttributesByAttributeOptions, getV2ByTargetByIdentifierAttributesByAttributeStatuses, getV2CommentsByCommentId, getV2Lists, getV2ListsByList, getV2ListsByListEntriesByEntryId, getV2ListsByListEntriesByEntryIdAttributesByAttributeValues, getV2Meetings, getV2MeetingsByMeetingId, getV2MeetingsByMeetingIdCallRecordings, getV2MeetingsByMeetingIdCallRecordingsByCallRecordingId, getV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscript, getV2Notes, getV2NotesByNoteId, getV2Objects, getV2ObjectsByObject, getV2ObjectsByObjectRecordsByRecordId, getV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValues, getV2ObjectsByObjectRecordsByRecordIdEntries, getV2Self, getV2Tasks, getV2TasksByTaskId, getV2Threads, getV2ThreadsByThreadId, getV2Webhooks, getV2WebhooksByWebhookId, getV2WorkspaceMembers, getV2WorkspaceMembersByWorkspaceMemberId, getWorkspaceMember, hashToken, isRetryableError, isRetryableStatus, listAttributes, listLists, listNotes, listTasks, listWorkspaceMembers, normalizeAttioError, normalizeBaseUrl, normalizeRecord, normalizeRecords, paginate, patchV2ByTargetByIdentifierAttributesByAttribute, patchV2ByTargetByIdentifierAttributesByAttributeOptionsByOption, patchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatus, patchV2ListsByList, patchV2ListsByListEntriesByEntryId, patchV2ObjectsByObject, patchV2ObjectsByObjectRecordsByRecordId, patchV2TasksByTaskId, patchV2WebhooksByWebhookId, postV2ByTargetByIdentifierAttributes, postV2ByTargetByIdentifierAttributesByAttributeOptions, postV2ByTargetByIdentifierAttributesByAttributeStatuses, postV2Comments, postV2Lists, postV2ListsByListEntries, postV2ListsByListEntriesQuery, postV2Meetings, postV2MeetingsByMeetingIdCallRecordings, postV2Notes, postV2Objects, postV2ObjectsByObjectRecords, postV2ObjectsByObjectRecordsQuery, postV2ObjectsRecordsSearch, postV2Tasks, postV2Webhooks, putV2ListsByListEntries, putV2ListsByListEntriesByEntryId, putV2ObjectsByObjectRecords, putV2ObjectsByObjectRecordsByRecordId, queryListEntries, queryRecords, removeListEntry, resolveAttioClient, resolveAuthToken, resolveBaseUrl, resolveResponseStyle, resolveThrowOnError, runBatch, searchRecords, setCachedClient, sleep, toPageResult, unwrapData, unwrapItems, unwrapPaginationCursor, updateKnownFieldValues, updateListEntry, updateRecord, updateTask, upsertRecord, validateAuthToken };
15347
+ export { type AddListEntryInput, AttioApiError, AttioBatchError, type AttioCacheConfig, type AttioCacheConfigDisabled, type AttioCacheConfigEnabled, type AttioCacheManager, type AttioClient, type AttioClientConfig, type AttioClientHooks, type AttioClientInput, AttioConfigError, AttioEnvironmentError, AttioError, type AttioErrorContext, type AttioErrorDetails, type AttioErrorHookPayload, type AttioFilter, type AttioLogger, AttioNetworkError, type AttioRecordId, type AttioRecordLike, type AttioRequestHookPayload, AttioResponseError, type AttioResponseHookPayload, type AttioResult, AttioRetryError, type AttioSchema, type AttioSdk, type AttioValueSuggestion, Attribute, type AttributeAccessor, type AttributeInput, type AttributeListInput, type AttributeMetadataRequestParams, type BatchItem, type BatchItemRunParams, type BatchOptions, type BatchResult, type CacheAdapter, type CacheAdapterFactory, type CacheAdapterParams, ClientOptions, Comment, type CreateObjectInput, DEFAULT_BASE_URL, DEFAULT_METADATA_CACHE_MAX_ENTRIES, DEFAULT_METADATA_CACHE_TTL_MS, DEFAULT_RETRY_CONFIG, DeleteV2CommentsByCommentIdData, DeleteV2CommentsByCommentIdError, DeleteV2CommentsByCommentIdErrors, DeleteV2CommentsByCommentIdResponse, DeleteV2CommentsByCommentIdResponses, DeleteV2ListsByListEntriesByEntryIdData, DeleteV2ListsByListEntriesByEntryIdError, DeleteV2ListsByListEntriesByEntryIdErrors, DeleteV2ListsByListEntriesByEntryIdResponse, DeleteV2ListsByListEntriesByEntryIdResponses, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdData, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdError, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdErrors, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse, DeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponses, DeleteV2NotesByNoteIdData, DeleteV2NotesByNoteIdError, DeleteV2NotesByNoteIdErrors, DeleteV2NotesByNoteIdResponse, DeleteV2NotesByNoteIdResponses, DeleteV2ObjectsByObjectRecordsByRecordIdData, DeleteV2ObjectsByObjectRecordsByRecordIdError, DeleteV2ObjectsByObjectRecordsByRecordIdErrors, DeleteV2ObjectsByObjectRecordsByRecordIdResponse, DeleteV2ObjectsByObjectRecordsByRecordIdResponses, DeleteV2TasksByTaskIdData, DeleteV2TasksByTaskIdError, DeleteV2TasksByTaskIdErrors, DeleteV2TasksByTaskIdResponse, DeleteV2TasksByTaskIdResponses, DeleteV2WebhooksByWebhookIdData, DeleteV2WebhooksByWebhookIdError, DeleteV2WebhooksByWebhookIdErrors, DeleteV2WebhooksByWebhookIdResponse, DeleteV2WebhooksByWebhookIdResponses, type EntryId, type EntryValues, type GetListInput, type GetObjectInput, GetV2ByTargetByIdentifierAttributesByAttributeData, GetV2ByTargetByIdentifierAttributesByAttributeError, GetV2ByTargetByIdentifierAttributesByAttributeErrors, GetV2ByTargetByIdentifierAttributesByAttributeOptionsData, GetV2ByTargetByIdentifierAttributesByAttributeOptionsError, GetV2ByTargetByIdentifierAttributesByAttributeOptionsErrors, GetV2ByTargetByIdentifierAttributesByAttributeOptionsResponse, GetV2ByTargetByIdentifierAttributesByAttributeOptionsResponses, GetV2ByTargetByIdentifierAttributesByAttributeResponse, GetV2ByTargetByIdentifierAttributesByAttributeResponses, GetV2ByTargetByIdentifierAttributesByAttributeStatusesData, GetV2ByTargetByIdentifierAttributesByAttributeStatusesError, GetV2ByTargetByIdentifierAttributesByAttributeStatusesErrors, GetV2ByTargetByIdentifierAttributesByAttributeStatusesResponse, GetV2ByTargetByIdentifierAttributesByAttributeStatusesResponses, GetV2ByTargetByIdentifierAttributesData, GetV2ByTargetByIdentifierAttributesResponse, GetV2ByTargetByIdentifierAttributesResponses, GetV2CommentsByCommentIdData, GetV2CommentsByCommentIdError, GetV2CommentsByCommentIdErrors, GetV2CommentsByCommentIdResponse, GetV2CommentsByCommentIdResponses, GetV2ListsByListData, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesData, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesError, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesErrors, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse, GetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponses, GetV2ListsByListEntriesByEntryIdData, GetV2ListsByListEntriesByEntryIdError, GetV2ListsByListEntriesByEntryIdErrors, GetV2ListsByListEntriesByEntryIdResponse, GetV2ListsByListEntriesByEntryIdResponses, GetV2ListsByListError, GetV2ListsByListErrors, GetV2ListsByListResponse, GetV2ListsByListResponses, GetV2ListsData, GetV2ListsResponse, GetV2ListsResponses, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdData, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdError, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdErrors, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponses, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptData, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptResponse, GetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptResponses, GetV2MeetingsByMeetingIdCallRecordingsData, GetV2MeetingsByMeetingIdCallRecordingsResponse, GetV2MeetingsByMeetingIdCallRecordingsResponses, GetV2MeetingsByMeetingIdData, GetV2MeetingsByMeetingIdError, GetV2MeetingsByMeetingIdErrors, GetV2MeetingsByMeetingIdResponse, GetV2MeetingsByMeetingIdResponses, GetV2MeetingsData, GetV2MeetingsResponse, GetV2MeetingsResponses, GetV2NotesByNoteIdData, GetV2NotesByNoteIdError, GetV2NotesByNoteIdErrors, GetV2NotesByNoteIdResponse, GetV2NotesByNoteIdResponses, GetV2NotesData, GetV2NotesError, GetV2NotesErrors, GetV2NotesResponse, GetV2NotesResponses, GetV2ObjectsByObjectData, GetV2ObjectsByObjectError, GetV2ObjectsByObjectErrors, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesData, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesError, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesErrors, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse, GetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponses, GetV2ObjectsByObjectRecordsByRecordIdData, GetV2ObjectsByObjectRecordsByRecordIdEntriesData, GetV2ObjectsByObjectRecordsByRecordIdEntriesResponse, GetV2ObjectsByObjectRecordsByRecordIdEntriesResponses, GetV2ObjectsByObjectRecordsByRecordIdError, GetV2ObjectsByObjectRecordsByRecordIdErrors, GetV2ObjectsByObjectRecordsByRecordIdResponse, GetV2ObjectsByObjectRecordsByRecordIdResponses, GetV2ObjectsByObjectResponse, GetV2ObjectsByObjectResponses, GetV2ObjectsData, GetV2ObjectsResponse, GetV2ObjectsResponses, GetV2SelfData, GetV2SelfResponse, GetV2SelfResponses, GetV2TasksByTaskIdData, GetV2TasksByTaskIdError, GetV2TasksByTaskIdErrors, GetV2TasksByTaskIdResponse, GetV2TasksByTaskIdResponses, GetV2TasksData, GetV2TasksResponse, GetV2TasksResponses, GetV2ThreadsByThreadIdData, GetV2ThreadsByThreadIdError, GetV2ThreadsByThreadIdErrors, GetV2ThreadsByThreadIdResponse, GetV2ThreadsByThreadIdResponses, GetV2ThreadsData, GetV2ThreadsResponse, GetV2ThreadsResponses, GetV2WebhooksByWebhookIdData, GetV2WebhooksByWebhookIdError, GetV2WebhooksByWebhookIdErrors, GetV2WebhooksByWebhookIdResponse, GetV2WebhooksByWebhookIdResponses, GetV2WebhooksData, GetV2WebhooksResponse, GetV2WebhooksResponses, GetV2WorkspaceMembersByWorkspaceMemberIdData, GetV2WorkspaceMembersByWorkspaceMemberIdError, GetV2WorkspaceMembersByWorkspaceMemberIdErrors, GetV2WorkspaceMembersByWorkspaceMemberIdResponse, GetV2WorkspaceMembersByWorkspaceMemberIdResponses, GetV2WorkspaceMembersData, GetV2WorkspaceMembersResponse, GetV2WorkspaceMembersResponses, InputValue, List, type ListEntryFilter, type ListId, type ListObjectsInput, type ListQueryInput, type LogContext, type LogValue, type MatchingAttribute, Meeting, type MetadataCacheConfig, type MetadataCacheConfigDisabled, type MetadataCacheConfigEnabled, type MetadataCacheManager, type MetadataCacheMaxEntries, type MetadataCacheScope, Note, NoteCreateInput, NoteDeleteInput, type NoteFormat, NoteGetInput, type NoteId, type NoteParentObjectId, type NoteParentRecordId, Object$1 as Object, type ObjectApiSlug, type ObjectNoun, type ObjectSlug, type OffsetPageResult, type OffsetPaginationOptions, Options, OutputValue, type PageResult, type PaginationOptions, type ParentObjectId, type ParentRecordId, PatchV2ByTargetByIdentifierAttributesByAttributeData, PatchV2ByTargetByIdentifierAttributesByAttributeError, PatchV2ByTargetByIdentifierAttributesByAttributeErrors, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionData, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionError, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionErrors, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionResponse, PatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionResponses, PatchV2ByTargetByIdentifierAttributesByAttributeResponse, PatchV2ByTargetByIdentifierAttributesByAttributeResponses, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusData, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusError, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusErrors, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusResponse, PatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusResponses, PatchV2ListsByListData, PatchV2ListsByListEntriesByEntryIdData, PatchV2ListsByListEntriesByEntryIdError, PatchV2ListsByListEntriesByEntryIdErrors, PatchV2ListsByListEntriesByEntryIdResponse, PatchV2ListsByListEntriesByEntryIdResponses, PatchV2ListsByListError, PatchV2ListsByListErrors, PatchV2ListsByListResponse, PatchV2ListsByListResponses, PatchV2ObjectsByObjectData, PatchV2ObjectsByObjectError, PatchV2ObjectsByObjectErrors, PatchV2ObjectsByObjectRecordsByRecordIdData, PatchV2ObjectsByObjectRecordsByRecordIdError, PatchV2ObjectsByObjectRecordsByRecordIdErrors, PatchV2ObjectsByObjectRecordsByRecordIdResponse, PatchV2ObjectsByObjectRecordsByRecordIdResponses, PatchV2ObjectsByObjectResponse, PatchV2ObjectsByObjectResponses, PatchV2TasksByTaskIdData, PatchV2TasksByTaskIdError, PatchV2TasksByTaskIdErrors, PatchV2TasksByTaskIdResponse, PatchV2TasksByTaskIdResponses, PatchV2WebhooksByWebhookIdData, PatchV2WebhooksByWebhookIdError, PatchV2WebhooksByWebhookIdErrors, PatchV2WebhooksByWebhookIdResponse, PatchV2WebhooksByWebhookIdResponses, PostV2ByTargetByIdentifierAttributesByAttributeOptionsData, PostV2ByTargetByIdentifierAttributesByAttributeOptionsError, PostV2ByTargetByIdentifierAttributesByAttributeOptionsErrors, PostV2ByTargetByIdentifierAttributesByAttributeOptionsResponse, PostV2ByTargetByIdentifierAttributesByAttributeOptionsResponses, PostV2ByTargetByIdentifierAttributesByAttributeStatusesData, PostV2ByTargetByIdentifierAttributesByAttributeStatusesError, PostV2ByTargetByIdentifierAttributesByAttributeStatusesErrors, PostV2ByTargetByIdentifierAttributesByAttributeStatusesResponse, PostV2ByTargetByIdentifierAttributesByAttributeStatusesResponses, PostV2ByTargetByIdentifierAttributesData, PostV2ByTargetByIdentifierAttributesError, PostV2ByTargetByIdentifierAttributesErrors, PostV2ByTargetByIdentifierAttributesResponse, PostV2ByTargetByIdentifierAttributesResponses, PostV2CommentsData, PostV2CommentsError, PostV2CommentsErrors, PostV2CommentsResponse, PostV2CommentsResponses, PostV2ListsByListEntriesData, PostV2ListsByListEntriesError, PostV2ListsByListEntriesErrors, PostV2ListsByListEntriesQueryData, PostV2ListsByListEntriesQueryError, PostV2ListsByListEntriesQueryErrors, PostV2ListsByListEntriesQueryResponse, PostV2ListsByListEntriesQueryResponses, PostV2ListsByListEntriesResponse, PostV2ListsByListEntriesResponses, PostV2ListsData, PostV2ListsError, PostV2ListsErrors, PostV2ListsResponse, PostV2ListsResponses, PostV2MeetingsByMeetingIdCallRecordingsData, PostV2MeetingsByMeetingIdCallRecordingsError, PostV2MeetingsByMeetingIdCallRecordingsErrors, PostV2MeetingsByMeetingIdCallRecordingsResponse, PostV2MeetingsByMeetingIdCallRecordingsResponses, PostV2MeetingsData, PostV2MeetingsError, PostV2MeetingsErrors, PostV2MeetingsResponse, PostV2MeetingsResponses, PostV2NotesData, PostV2NotesError, PostV2NotesErrors, PostV2NotesResponse, PostV2NotesResponses, PostV2ObjectsByObjectRecordsData, PostV2ObjectsByObjectRecordsError, PostV2ObjectsByObjectRecordsErrors, PostV2ObjectsByObjectRecordsQueryData, PostV2ObjectsByObjectRecordsQueryError, PostV2ObjectsByObjectRecordsQueryErrors, PostV2ObjectsByObjectRecordsQueryResponse, PostV2ObjectsByObjectRecordsQueryResponses, PostV2ObjectsByObjectRecordsResponse, PostV2ObjectsByObjectRecordsResponses, PostV2ObjectsData, PostV2ObjectsError, PostV2ObjectsErrors, PostV2ObjectsRecordsSearchData, PostV2ObjectsRecordsSearchError, PostV2ObjectsRecordsSearchErrors, PostV2ObjectsRecordsSearchResponse, PostV2ObjectsRecordsSearchResponses, PostV2ObjectsResponse, PostV2ObjectsResponses, PostV2TasksData, PostV2TasksError, PostV2TasksErrors, PostV2TasksResponse, PostV2TasksResponses, PostV2WebhooksData, PostV2WebhooksError, PostV2WebhooksErrors, PostV2WebhooksResponse, PostV2WebhooksResponses, PutV2ListsByListEntriesByEntryIdData, PutV2ListsByListEntriesByEntryIdError, PutV2ListsByListEntriesByEntryIdErrors, PutV2ListsByListEntriesByEntryIdResponse, PutV2ListsByListEntriesByEntryIdResponses, PutV2ListsByListEntriesData, PutV2ListsByListEntriesError, PutV2ListsByListEntriesErrors, PutV2ListsByListEntriesResponse, PutV2ListsByListEntriesResponses, PutV2ObjectsByObjectRecordsByRecordIdData, PutV2ObjectsByObjectRecordsByRecordIdError, PutV2ObjectsByObjectRecordsByRecordIdErrors, PutV2ObjectsByObjectRecordsByRecordIdResponse, PutV2ObjectsByObjectRecordsByRecordIdResponses, PutV2ObjectsByObjectRecordsData, PutV2ObjectsByObjectRecordsError, PutV2ObjectsByObjectRecordsErrors, PutV2ObjectsByObjectRecordsResponse, PutV2ObjectsByObjectRecordsResponses, type RecordCreateInput, type RecordDeleteInput, type RecordFilter, type RecordGetInput, type RecordId, type RecordObjectId, type RecordQueryInput, RecordSearchInput, type RecordSorts, type RecordUpdateInput, type RecordUpsertInput, type RecordValues, type RemoveListEntryInput, type ResultOptions, type RetryConfig, type SchemaInput, type SdkInput, SelectOption, Status, Task, type TaskCreateData, TaskCreateInput, TaskDeleteInput, TaskGetInput, type TaskId, type TaskUpdateData, TaskUpdateInput, Thread, TtlCache, type TtlCacheEntry, type TtlCacheOptions, type UnwrapItemsOptions, type UnwrapOptions, type UpdateListEntryInput, type UpdateObjectInput, type ValueCurrencyInput, type ValueFactory, type ValueInput, type ValueLookupOptions, WorkspaceMember, addListEntry, assertOk, buildAttributeMetadataPath, buildKey, calculateRetryDelay, callWithRetry, clearClientCache, clearMetadataCacheRegistry, createAttioCacheManager, createAttioClient, createAttioSdk, createNote, createObject, createOffsetPageResultSchema, createPageResultSchema, createRecord, createSchema, createSchemaError, createTask, createTtlCache, createTtlCacheAdapter, deleteNote, deleteRecord, deleteTask, deleteV2CommentsByCommentId, deleteV2ListsByListEntriesByEntryId, deleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingId, deleteV2NotesByNoteId, deleteV2ObjectsByObjectRecordsByRecordId, deleteV2TasksByTaskId, deleteV2WebhooksByWebhookId, enhanceAttioError, extractRecordId, extractTitles, filters, getAttioClient, getAttribute, getAttributeOptions, getAttributeStatuses, getCachedClient, getEnvValue, getFirstValue, getKnownFieldValues, getList, getNote, getObject, getRecord, getTask, getV2ByTargetByIdentifierAttributes, getV2ByTargetByIdentifierAttributesByAttribute, getV2ByTargetByIdentifierAttributesByAttributeOptions, getV2ByTargetByIdentifierAttributesByAttributeStatuses, getV2CommentsByCommentId, getV2Lists, getV2ListsByList, getV2ListsByListEntriesByEntryId, getV2ListsByListEntriesByEntryIdAttributesByAttributeValues, getV2Meetings, getV2MeetingsByMeetingId, getV2MeetingsByMeetingIdCallRecordings, getV2MeetingsByMeetingIdCallRecordingsByCallRecordingId, getV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscript, getV2Notes, getV2NotesByNoteId, getV2Objects, getV2ObjectsByObject, getV2ObjectsByObjectRecordsByRecordId, getV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValues, getV2ObjectsByObjectRecordsByRecordIdEntries, getV2Self, getV2Tasks, getV2TasksByTaskId, getV2Threads, getV2ThreadsByThreadId, getV2Webhooks, getV2WebhooksByWebhookId, getV2WorkspaceMembers, getV2WorkspaceMembersByWorkspaceMemberId, getValue, getWorkspaceMember, hashToken, isRetryableError, isRetryableStatus, listAttributeMetadata, listAttributes, listLists, listNotes, listObjects, listTasks, listWorkspaceMembers, normalizeAttioError, normalizeBaseUrl, normalizeRecord, normalizeRecords, paginate, paginateOffset, parseOffsetPageResult, parsePageResult, patchV2ByTargetByIdentifierAttributesByAttribute, patchV2ByTargetByIdentifierAttributesByAttributeOptionsByOption, patchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatus, patchV2ListsByList, patchV2ListsByListEntriesByEntryId, patchV2ObjectsByObject, patchV2ObjectsByObjectRecordsByRecordId, patchV2TasksByTaskId, patchV2WebhooksByWebhookId, postV2ByTargetByIdentifierAttributes, postV2ByTargetByIdentifierAttributesByAttributeOptions, postV2ByTargetByIdentifierAttributesByAttributeStatuses, postV2Comments, postV2Lists, postV2ListsByListEntries, postV2ListsByListEntriesQuery, postV2Meetings, postV2MeetingsByMeetingIdCallRecordings, postV2Notes, postV2Objects, postV2ObjectsByObjectRecords, postV2ObjectsByObjectRecordsQuery, postV2ObjectsRecordsSearch, postV2Tasks, postV2Webhooks, putV2ListsByListEntries, putV2ListsByListEntriesByEntryId, putV2ObjectsByObjectRecords, putV2ObjectsByObjectRecordsByRecordId, queryListEntries, queryRecords, removeListEntry, resolveAttioClient, resolveAuthToken, resolveBaseUrl, resolveResponseStyle, resolveThrowOnError, runBatch, searchRecords, setCachedClient, sleep, toOffsetPageResult, toPageResult, toResult, unwrapData, unwrapItems, unwrapPaginationCursor, unwrapPaginationOffset, updateKnownFieldValues, updateListEntry, updateObject, updateRecord, updateTask, upsertRecord, value$1 as value };
14933
15348
  //# sourceMappingURL=index.d.mts.map