@zapier/zapier-sdk 0.45.2 → 0.46.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.mjs CHANGED
@@ -5524,43 +5524,74 @@ function getClientIdFromCredentials(credentials) {
5524
5524
  return void 0;
5525
5525
  }
5526
5526
 
5527
+ // src/cache.ts
5528
+ function createMemoryCache() {
5529
+ const store = /* @__PURE__ */ new Map();
5530
+ return {
5531
+ async get(key) {
5532
+ const entry = store.get(key);
5533
+ if (!entry) return void 0;
5534
+ if (entry.expiresAt !== void 0 && entry.expiresAt <= Date.now()) {
5535
+ store.delete(key);
5536
+ return void 0;
5537
+ }
5538
+ return { value: entry.value, expiresAt: entry.expiresAt };
5539
+ },
5540
+ async set(key, value, options) {
5541
+ const expiresAt = options?.ttl ? Date.now() + options.ttl * 1e3 : void 0;
5542
+ store.set(key, { value, expiresAt });
5543
+ },
5544
+ async delete(key) {
5545
+ store.delete(key);
5546
+ }
5547
+ };
5548
+ }
5549
+
5527
5550
  // src/auth.ts
5528
- var tokenCache = /* @__PURE__ */ new Map();
5551
+ var DEFAULT_AUTH_BASE_URL = "https://zapier.com";
5529
5552
  var pendingExchanges = /* @__PURE__ */ new Map();
5530
- function buildCacheKey(clientId, scopes) {
5531
- const sortedScopes = [...scopes].sort().join(",");
5532
- return `${clientId}:${sortedScopes}`;
5553
+ var cachedDefaultCache;
5554
+ function buildCacheKey(options) {
5555
+ const sortedScopes = [...options.scopes].sort().join(",");
5556
+ return `zapier-sdk/client-credentials/${options.clientId}:${sortedScopes}:${options.baseUrl}`;
5533
5557
  }
5534
5558
  function clearTokenCache() {
5535
- tokenCache.clear();
5536
5559
  pendingExchanges.clear();
5537
5560
  cachedCliLogin = void 0;
5561
+ cachedDefaultCache = void 0;
5538
5562
  }
5539
- var TOKEN_EXPIRATION_BUFFER = 5 * 60 * 1e3;
5540
- function getCachedToken(clientId, scopes) {
5541
- const cacheKey = buildCacheKey(clientId, scopes);
5542
- const cached = tokenCache.get(cacheKey);
5543
- if (!cached) return void 0;
5544
- if (cached.expiresAt > Date.now() + TOKEN_EXPIRATION_BUFFER) {
5545
- return cached.accessToken;
5563
+ var TOKEN_EXPIRATION_BUFFER_MS = 5 * 60 * 1e3;
5564
+ async function resolveCache(options) {
5565
+ if (options.cache) return options.cache;
5566
+ if (cachedDefaultCache !== void 0) return cachedDefaultCache;
5567
+ const cliLogin = await getCliLogin();
5568
+ if (cliLogin?.createCache) {
5569
+ try {
5570
+ const cache = cliLogin.createCache();
5571
+ cachedDefaultCache = cache;
5572
+ return cache;
5573
+ } catch {
5574
+ }
5546
5575
  }
5547
- tokenCache.delete(cacheKey);
5548
- return void 0;
5576
+ const fallback = createMemoryCache();
5577
+ cachedDefaultCache = fallback;
5578
+ return fallback;
5549
5579
  }
5550
- function cacheToken(clientId, scopes, accessToken, expiresIn) {
5551
- const cacheKey = buildCacheKey(clientId, scopes);
5552
- tokenCache.set(cacheKey, {
5553
- accessToken,
5554
- expiresAt: Date.now() + expiresIn * 1e3
5555
- });
5580
+ function entryIsValid(entry) {
5581
+ if (entry.expiresAt === void 0) return true;
5582
+ return entry.expiresAt > Date.now() + TOKEN_EXPIRATION_BUFFER_MS;
5556
5583
  }
5557
- function invalidateCachedToken(clientId, scopes) {
5558
- const cacheKey = buildCacheKey(clientId, scopes);
5559
- tokenCache.delete(cacheKey);
5584
+ async function invalidateCachedToken(options) {
5585
+ const cacheKey = buildCacheKey(options);
5560
5586
  pendingExchanges.delete(cacheKey);
5587
+ const cache = await resolveCache({ cache: options.cache });
5588
+ try {
5589
+ await cache.delete(cacheKey);
5590
+ } catch {
5591
+ }
5561
5592
  }
5562
5593
  function getTokenEndpointUrl(baseUrl) {
5563
- const base = baseUrl || ZAPIER_BASE_URL;
5594
+ const base = baseUrl || DEFAULT_AUTH_BASE_URL;
5564
5595
  return `${base}/oauth/token/`;
5565
5596
  }
5566
5597
  function mergeScopes(credentialsScope, requiredScopes) {
@@ -5627,8 +5658,6 @@ async function exchangeClientCredentials(options) {
5627
5658
  if (!data.access_token) {
5628
5659
  throw new Error("Client credentials response missing access_token");
5629
5660
  }
5630
- const expiresIn = data.expires_in || 3600;
5631
- cacheToken(clientId, mergedScopes, data.access_token, expiresIn);
5632
5661
  onEvent?.({
5633
5662
  type: "auth_success",
5634
5663
  payload: {
@@ -5637,7 +5666,10 @@ async function exchangeClientCredentials(options) {
5637
5666
  },
5638
5667
  timestamp: Date.now()
5639
5668
  });
5640
- return data.access_token;
5669
+ return {
5670
+ accessToken: data.access_token,
5671
+ expiresIn: data.expires_in || 3600
5672
+ };
5641
5673
  }
5642
5674
  var cachedCliLogin;
5643
5675
  async function getCliLogin() {
@@ -5652,14 +5684,6 @@ async function getCliLogin() {
5652
5684
  }
5653
5685
  } catch {
5654
5686
  }
5655
- try {
5656
- const mod = await import('@zapier/zapier-sdk-cli-login');
5657
- if (typeof mod.getToken === "function") {
5658
- cachedCliLogin = mod;
5659
- return cachedCliLogin;
5660
- }
5661
- } catch {
5662
- }
5663
5687
  cachedCliLogin = false;
5664
5688
  return void 0;
5665
5689
  }
@@ -5697,24 +5721,41 @@ async function resolveAuthTokenFromCredentials(credentials, options) {
5697
5721
  if (isClientCredentials(credentials)) {
5698
5722
  const { clientId } = credentials;
5699
5723
  const mergedScopes = mergeScopes(credentials.scope, options.requiredScopes);
5700
- const cacheKey = buildCacheKey(clientId, mergedScopes);
5701
- const cached = getCachedToken(clientId, mergedScopes);
5702
- if (cached) {
5703
- return cached;
5724
+ const resolvedBaseUrl = credentials.baseUrl || options.baseUrl || DEFAULT_AUTH_BASE_URL;
5725
+ const cacheKey = buildCacheKey({
5726
+ clientId,
5727
+ scopes: mergedScopes,
5728
+ baseUrl: resolvedBaseUrl
5729
+ });
5730
+ const cache = await resolveCache(options);
5731
+ const cached = await cache.get(cacheKey);
5732
+ if (cached && entryIsValid(cached)) {
5733
+ return cached.value;
5704
5734
  }
5705
5735
  const pending = pendingExchanges.get(cacheKey);
5706
- if (pending) {
5707
- return pending;
5708
- }
5709
- const exchangePromise = exchangeClientCredentials({
5710
- clientId: credentials.clientId,
5711
- clientSecret: credentials.clientSecret,
5712
- baseUrl: credentials.baseUrl || options.baseUrl,
5713
- scope: credentials.scope,
5714
- requiredScopes: options.requiredScopes,
5715
- fetch: options.fetch,
5716
- onEvent: options.onEvent
5717
- }).finally(() => {
5736
+ if (pending) return pending;
5737
+ const runLocked = async () => {
5738
+ const recheck = await cache.get(cacheKey);
5739
+ if (recheck && entryIsValid(recheck)) return recheck.value;
5740
+ const { accessToken, expiresIn } = await exchangeClientCredentials({
5741
+ clientId: credentials.clientId,
5742
+ clientSecret: credentials.clientSecret,
5743
+ baseUrl: credentials.baseUrl || options.baseUrl,
5744
+ scope: credentials.scope,
5745
+ requiredScopes: options.requiredScopes,
5746
+ fetch: options.fetch,
5747
+ onEvent: options.onEvent
5748
+ });
5749
+ try {
5750
+ await cache.set(cacheKey, accessToken, {
5751
+ secret: true,
5752
+ ttl: expiresIn
5753
+ });
5754
+ } catch {
5755
+ }
5756
+ return accessToken;
5757
+ };
5758
+ const exchangePromise = (cache.withLock ? cache.withLock(cacheKey, runLocked) : runLocked()).finally(() => {
5718
5759
  pendingExchanges.delete(cacheKey);
5719
5760
  });
5720
5761
  pendingExchanges.set(cacheKey, exchangePromise);
@@ -5742,12 +5783,18 @@ async function invalidateCredentialsToken(options) {
5742
5783
  const clientId = getClientIdFromCredentials(resolved);
5743
5784
  if (clientId && isClientCredentials(resolved)) {
5744
5785
  const scopes = mergeScopes(resolved.scope, options.requiredScopes);
5745
- invalidateCachedToken(clientId, scopes);
5786
+ const baseUrl = resolved.baseUrl || options.baseUrl || DEFAULT_AUTH_BASE_URL;
5787
+ await invalidateCachedToken({
5788
+ clientId,
5789
+ scopes,
5790
+ baseUrl,
5791
+ cache: options.cache
5792
+ });
5746
5793
  }
5747
5794
  }
5748
5795
 
5749
5796
  // src/sdk-version.ts
5750
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.45.2" : void 0) || "unknown";
5797
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.46.0" : void 0) || "unknown";
5751
5798
 
5752
5799
  // src/utils/open-url.ts
5753
5800
  var nodePrefix = "node:";
@@ -6094,7 +6141,8 @@ var ZapierApiClient = class {
6094
6141
  fetch: this.options.fetch,
6095
6142
  baseUrl: this.options.baseUrl,
6096
6143
  requiredScopes: options?.requiredScopes,
6097
- debug: this.options.debug
6144
+ debug: this.options.debug,
6145
+ cache: this.options.cache
6098
6146
  });
6099
6147
  }
6100
6148
  // Helper to handle responses
@@ -6145,7 +6193,9 @@ var ZapierApiClient = class {
6145
6193
  await invalidateCredentialsToken({
6146
6194
  credentials: this.options.credentials,
6147
6195
  token: this.options.token,
6148
- requiredScopes
6196
+ baseUrl: this.options.baseUrl,
6197
+ requiredScopes,
6198
+ cache: this.options.cache
6149
6199
  });
6150
6200
  }
6151
6201
  throw new ZapierAuthenticationError(message, errorOptions);
@@ -9071,6 +9121,7 @@ var BaseSdkOptionsSchema = z.object({
9071
9121
  fetch: z.custom().optional().meta({ internal: true }),
9072
9122
  eventEmission: z.custom().optional().meta({ internal: true }),
9073
9123
  callerPackage: z.custom().optional().meta({ internal: true }),
9124
+ cache: z.custom().optional().meta({ internal: true }),
9074
9125
  canIncludeSharedConnections: z.boolean().optional().describe("Allow listing shared connections."),
9075
9126
  canIncludeSharedTables: z.boolean().optional().describe("Allow listing shared tables."),
9076
9127
  canDeleteTables: z.boolean().optional().describe("Allow deleting tables."),
@@ -9087,4 +9138,4 @@ var registryPlugin = () => {
9087
9138
  return {};
9088
9139
  };
9089
9140
 
9090
- export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LimitPropertySchema, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createOptionsPlugin, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierIsInteractive, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
9141
+ export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LimitPropertySchema, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierIsInteractive, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
@@ -6,11 +6,11 @@ export declare const GetActionSchema: z.ZodObject<{
6
6
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
7
7
  };
8
8
  actionType: z.ZodEnum<{
9
- search: "search";
10
9
  filter: "filter";
11
10
  read: "read";
12
11
  read_bulk: "read_bulk";
13
12
  run: "run";
13
+ search: "search";
14
14
  search_and_write: "search_and_write";
15
15
  search_or_write: "search_or_write";
16
16
  write: "write";
@@ -24,11 +24,11 @@ declare const GetActionSchemaDeprecated: z.ZodObject<{
24
24
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
25
25
  };
26
26
  actionType: z.ZodEnum<{
27
- search: "search";
28
27
  filter: "filter";
29
28
  read: "read";
30
29
  read_bulk: "read_bulk";
31
30
  run: "run";
31
+ search: "search";
32
32
  search_and_write: "search_and_write";
33
33
  search_or_write: "search_or_write";
34
34
  write: "write";
@@ -40,11 +40,11 @@ export declare const GetActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
40
40
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
41
41
  };
42
42
  actionType: z.ZodEnum<{
43
- search: "search";
44
43
  filter: "filter";
45
44
  read: "read";
46
45
  read_bulk: "read_bulk";
47
46
  run: "run";
47
+ search: "search";
48
48
  search_and_write: "search_and_write";
49
49
  search_or_write: "search_or_write";
50
50
  write: "write";
@@ -57,11 +57,11 @@ export declare const GetActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
57
57
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
58
58
  };
59
59
  actionType: z.ZodEnum<{
60
- search: "search";
61
60
  filter: "filter";
62
61
  read: "read";
63
62
  read_bulk: "read_bulk";
64
63
  run: "run";
64
+ search: "search";
65
65
  search_and_write: "search_and_write";
66
66
  search_or_write: "search_or_write";
67
67
  write: "write";
@@ -5,11 +5,11 @@ export declare const GetInputFieldsSchemaSchema: z.ZodObject<{
5
5
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
6
6
  };
7
7
  actionType: z.ZodEnum<{
8
- search: "search";
9
8
  filter: "filter";
10
9
  read: "read";
11
10
  read_bulk: "read_bulk";
12
11
  run: "run";
12
+ search: "search";
13
13
  search_and_write: "search_and_write";
14
14
  search_or_write: "search_or_write";
15
15
  write: "write";
@@ -27,11 +27,11 @@ declare const GetInputFieldsSchemaSchemaDeprecated: z.ZodObject<{
27
27
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
28
28
  };
29
29
  actionType: z.ZodEnum<{
30
- search: "search";
31
30
  filter: "filter";
32
31
  read: "read";
33
32
  read_bulk: "read_bulk";
34
33
  run: "run";
34
+ search: "search";
35
35
  search_and_write: "search_and_write";
36
36
  search_or_write: "search_or_write";
37
37
  write: "write";
@@ -47,11 +47,11 @@ export declare const GetInputFieldsSchemaInputSchema: z.ZodUnion<readonly [z.Zod
47
47
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
48
48
  };
49
49
  actionType: z.ZodEnum<{
50
- search: "search";
51
50
  filter: "filter";
52
51
  read: "read";
53
52
  read_bulk: "read_bulk";
54
53
  run: "run";
54
+ search: "search";
55
55
  search_and_write: "search_and_write";
56
56
  search_or_write: "search_or_write";
57
57
  write: "write";
@@ -68,11 +68,11 @@ export declare const GetInputFieldsSchemaInputSchema: z.ZodUnion<readonly [z.Zod
68
68
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
69
69
  };
70
70
  actionType: z.ZodEnum<{
71
- search: "search";
72
71
  filter: "filter";
73
72
  read: "read";
74
73
  read_bulk: "read_bulk";
75
74
  run: "run";
75
+ search: "search";
76
76
  search_and_write: "search_and_write";
77
77
  search_or_write: "search_or_write";
78
78
  write: "write";
@@ -7,11 +7,11 @@ export declare const ListActionsSchema: z.ZodObject<{
7
7
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
8
8
  };
9
9
  actionType: z.ZodOptional<z.ZodEnum<{
10
- search: "search";
11
10
  filter: "filter";
12
11
  read: "read";
13
12
  read_bulk: "read_bulk";
14
13
  run: "run";
14
+ search: "search";
15
15
  search_and_write: "search_and_write";
16
16
  search_or_write: "search_or_write";
17
17
  write: "write";
@@ -25,11 +25,11 @@ declare const ListActionsSchemaDeprecated: z.ZodObject<{
25
25
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
26
26
  };
27
27
  actionType: z.ZodOptional<z.ZodEnum<{
28
- search: "search";
29
28
  filter: "filter";
30
29
  read: "read";
31
30
  read_bulk: "read_bulk";
32
31
  run: "run";
32
+ search: "search";
33
33
  search_and_write: "search_and_write";
34
34
  search_or_write: "search_or_write";
35
35
  write: "write";
@@ -43,11 +43,11 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
43
43
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
44
44
  };
45
45
  actionType: z.ZodOptional<z.ZodEnum<{
46
- search: "search";
47
46
  filter: "filter";
48
47
  read: "read";
49
48
  read_bulk: "read_bulk";
50
49
  run: "run";
50
+ search: "search";
51
51
  search_and_write: "search_and_write";
52
52
  search_or_write: "search_or_write";
53
53
  write: "write";
@@ -60,11 +60,11 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
60
60
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
61
61
  };
62
62
  actionType: z.ZodOptional<z.ZodEnum<{
63
- search: "search";
64
63
  filter: "filter";
65
64
  read: "read";
66
65
  read_bulk: "read_bulk";
67
66
  run: "run";
67
+ search: "search";
68
68
  search_and_write: "search_and_write";
69
69
  search_or_write: "search_or_write";
70
70
  write: "write";
@@ -13,11 +13,11 @@ export declare const ListInputFieldChoicesSchema: z.ZodObject<{
13
13
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
14
14
  };
15
15
  actionType: z.ZodEnum<{
16
- search: "search";
17
16
  filter: "filter";
18
17
  read: "read";
19
18
  read_bulk: "read_bulk";
20
19
  run: "run";
20
+ search: "search";
21
21
  search_and_write: "search_and_write";
22
22
  search_or_write: "search_or_write";
23
23
  write: "write";
@@ -42,11 +42,11 @@ declare const ListInputFieldChoicesSchemaDeprecated: z.ZodObject<{
42
42
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
43
43
  };
44
44
  actionType: z.ZodEnum<{
45
- search: "search";
46
45
  filter: "filter";
47
46
  read: "read";
48
47
  read_bulk: "read_bulk";
49
48
  run: "run";
49
+ search: "search";
50
50
  search_and_write: "search_and_write";
51
51
  search_or_write: "search_or_write";
52
52
  write: "write";
@@ -67,11 +67,11 @@ export declare const ListInputFieldChoicesInputSchema: z.ZodUnion<readonly [z.Zo
67
67
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
68
68
  };
69
69
  actionType: z.ZodEnum<{
70
- search: "search";
71
70
  filter: "filter";
72
71
  read: "read";
73
72
  read_bulk: "read_bulk";
74
73
  run: "run";
74
+ search: "search";
75
75
  search_and_write: "search_and_write";
76
76
  search_or_write: "search_or_write";
77
77
  write: "write";
@@ -95,11 +95,11 @@ export declare const ListInputFieldChoicesInputSchema: z.ZodUnion<readonly [z.Zo
95
95
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
96
96
  };
97
97
  actionType: z.ZodEnum<{
98
- search: "search";
99
98
  filter: "filter";
100
99
  read: "read";
101
100
  read_bulk: "read_bulk";
102
101
  run: "run";
102
+ search: "search";
103
103
  search_and_write: "search_and_write";
104
104
  search_or_write: "search_or_write";
105
105
  write: "write";
@@ -7,11 +7,11 @@ export declare const ListInputFieldsSchema: z.ZodObject<{
7
7
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
8
8
  };
9
9
  actionType: z.ZodEnum<{
10
- search: "search";
11
10
  filter: "filter";
12
11
  read: "read";
13
12
  read_bulk: "read_bulk";
14
13
  run: "run";
14
+ search: "search";
15
15
  search_and_write: "search_and_write";
16
16
  search_or_write: "search_or_write";
17
17
  write: "write";
@@ -32,11 +32,11 @@ declare const ListInputFieldsSchemaDeprecated: z.ZodObject<{
32
32
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
33
33
  };
34
34
  actionType: z.ZodEnum<{
35
- search: "search";
36
35
  filter: "filter";
37
36
  read: "read";
38
37
  read_bulk: "read_bulk";
39
38
  run: "run";
39
+ search: "search";
40
40
  search_and_write: "search_and_write";
41
41
  search_or_write: "search_or_write";
42
42
  write: "write";
@@ -55,11 +55,11 @@ export declare const ListInputFieldsInputSchema: z.ZodUnion<readonly [z.ZodObjec
55
55
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
56
56
  };
57
57
  actionType: z.ZodEnum<{
58
- search: "search";
59
58
  filter: "filter";
60
59
  read: "read";
61
60
  read_bulk: "read_bulk";
62
61
  run: "run";
62
+ search: "search";
63
63
  search_and_write: "search_and_write";
64
64
  search_or_write: "search_or_write";
65
65
  write: "write";
@@ -79,11 +79,11 @@ export declare const ListInputFieldsInputSchema: z.ZodUnion<readonly [z.ZodObjec
79
79
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
80
80
  };
81
81
  actionType: z.ZodEnum<{
82
- search: "search";
83
82
  filter: "filter";
84
83
  read: "read";
85
84
  read_bulk: "read_bulk";
86
85
  run: "run";
86
+ search: "search";
87
87
  search_and_write: "search_and_write";
88
88
  search_or_write: "search_or_write";
89
89
  write: "write";
@@ -6,11 +6,11 @@ export declare const RunActionSchema: z.ZodObject<{
6
6
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
7
7
  };
8
8
  actionType: z.ZodEnum<{
9
- search: "search";
10
9
  filter: "filter";
11
10
  read: "read";
12
11
  read_bulk: "read_bulk";
13
12
  run: "run";
13
+ search: "search";
14
14
  search_and_write: "search_and_write";
15
15
  search_or_write: "search_or_write";
16
16
  write: "write";
@@ -32,11 +32,11 @@ declare const RunActionSchemaDeprecated: z.ZodObject<{
32
32
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
33
33
  };
34
34
  actionType: z.ZodEnum<{
35
- search: "search";
36
35
  filter: "filter";
37
36
  read: "read";
38
37
  read_bulk: "read_bulk";
39
38
  run: "run";
39
+ search: "search";
40
40
  search_and_write: "search_and_write";
41
41
  search_or_write: "search_or_write";
42
42
  write: "write";
@@ -56,11 +56,11 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
56
56
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
57
57
  };
58
58
  actionType: z.ZodEnum<{
59
- search: "search";
60
59
  filter: "filter";
61
60
  read: "read";
62
61
  read_bulk: "read_bulk";
63
62
  run: "run";
63
+ search: "search";
64
64
  search_and_write: "search_and_write";
65
65
  search_or_write: "search_or_write";
66
66
  write: "write";
@@ -81,11 +81,11 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
81
81
  _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
82
82
  };
83
83
  actionType: z.ZodEnum<{
84
- search: "search";
85
84
  filter: "filter";
86
85
  read: "read";
87
86
  read_bulk: "read_bulk";
88
87
  run: "run";
88
+ search: "search";
89
89
  search_and_write: "search_and_write";
90
90
  search_or_write: "search_or_write";
91
91
  write: "write";