@zapier/zapier-sdk 0.114.3 → 0.114.4

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.
@@ -9291,13 +9291,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9291
9291
  result?: unknown;
9292
9292
  error?: unknown;
9293
9293
  max_attempts?: number | undefined;
9294
- next_retry_at?: string | undefined;
9295
- resume_at?: string | undefined;
9294
+ next_retry_at?: string | null | undefined;
9295
+ resume_at?: string | null | undefined;
9296
9296
  callback_token?: string | null | undefined;
9297
9297
  payload_schema?: unknown;
9298
9298
  payload?: unknown;
9299
- expires_at?: string | undefined;
9300
- completed_at?: string | undefined;
9299
+ expires_at?: string | null | undefined;
9300
+ timeout_seconds?: number | null | undefined;
9301
+ completed_at?: string | null | undefined;
9301
9302
  }[] | undefined;
9302
9303
  } | null;
9303
9304
  is_private: boolean;
@@ -9352,13 +9353,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9352
9353
  result?: unknown;
9353
9354
  error?: unknown;
9354
9355
  max_attempts?: number | undefined;
9355
- next_retry_at?: string | undefined;
9356
- resume_at?: string | undefined;
9356
+ next_retry_at?: string | null | undefined;
9357
+ resume_at?: string | null | undefined;
9357
9358
  callback_token?: string | null | undefined;
9358
9359
  payload_schema?: unknown;
9359
9360
  payload?: unknown;
9360
- expires_at?: string | undefined;
9361
- completed_at?: string | undefined;
9361
+ expires_at?: string | null | undefined;
9362
+ timeout_seconds?: number | null | undefined;
9363
+ completed_at?: string | null | undefined;
9362
9364
  }[] | undefined;
9363
9365
  } | null;
9364
9366
  is_private: boolean;
@@ -12899,13 +12901,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12899
12901
  result?: unknown;
12900
12902
  error?: unknown;
12901
12903
  max_attempts?: number | undefined;
12902
- next_retry_at?: string | undefined;
12903
- resume_at?: string | undefined;
12904
+ next_retry_at?: string | null | undefined;
12905
+ resume_at?: string | null | undefined;
12904
12906
  callback_token?: string | null | undefined;
12905
12907
  payload_schema?: unknown;
12906
12908
  payload?: unknown;
12907
- expires_at?: string | undefined;
12908
- completed_at?: string | undefined;
12909
+ expires_at?: string | null | undefined;
12910
+ timeout_seconds?: number | null | undefined;
12911
+ completed_at?: string | null | undefined;
12909
12912
  }[] | undefined;
12910
12913
  } | null;
12911
12914
  is_private: boolean;
@@ -15837,13 +15840,14 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
15837
15840
  result?: unknown;
15838
15841
  error?: unknown;
15839
15842
  max_attempts?: number | undefined;
15840
- next_retry_at?: string | undefined;
15841
- resume_at?: string | undefined;
15843
+ next_retry_at?: string | null | undefined;
15844
+ resume_at?: string | null | undefined;
15842
15845
  callback_token?: string | null | undefined;
15843
15846
  payload_schema?: unknown;
15844
15847
  payload?: unknown;
15845
- expires_at?: string | undefined;
15846
- completed_at?: string | undefined;
15848
+ expires_at?: string | null | undefined;
15849
+ timeout_seconds?: number | null | undefined;
15850
+ completed_at?: string | null | undefined;
15847
15851
  }[] | undefined;
15848
15852
  } | null;
15849
15853
  is_private: boolean;
@@ -9291,13 +9291,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9291
9291
  result?: unknown;
9292
9292
  error?: unknown;
9293
9293
  max_attempts?: number | undefined;
9294
- next_retry_at?: string | undefined;
9295
- resume_at?: string | undefined;
9294
+ next_retry_at?: string | null | undefined;
9295
+ resume_at?: string | null | undefined;
9296
9296
  callback_token?: string | null | undefined;
9297
9297
  payload_schema?: unknown;
9298
9298
  payload?: unknown;
9299
- expires_at?: string | undefined;
9300
- completed_at?: string | undefined;
9299
+ expires_at?: string | null | undefined;
9300
+ timeout_seconds?: number | null | undefined;
9301
+ completed_at?: string | null | undefined;
9301
9302
  }[] | undefined;
9302
9303
  } | null;
9303
9304
  is_private: boolean;
@@ -9352,13 +9353,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9352
9353
  result?: unknown;
9353
9354
  error?: unknown;
9354
9355
  max_attempts?: number | undefined;
9355
- next_retry_at?: string | undefined;
9356
- resume_at?: string | undefined;
9356
+ next_retry_at?: string | null | undefined;
9357
+ resume_at?: string | null | undefined;
9357
9358
  callback_token?: string | null | undefined;
9358
9359
  payload_schema?: unknown;
9359
9360
  payload?: unknown;
9360
- expires_at?: string | undefined;
9361
- completed_at?: string | undefined;
9361
+ expires_at?: string | null | undefined;
9362
+ timeout_seconds?: number | null | undefined;
9363
+ completed_at?: string | null | undefined;
9362
9364
  }[] | undefined;
9363
9365
  } | null;
9364
9366
  is_private: boolean;
@@ -12899,13 +12901,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12899
12901
  result?: unknown;
12900
12902
  error?: unknown;
12901
12903
  max_attempts?: number | undefined;
12902
- next_retry_at?: string | undefined;
12903
- resume_at?: string | undefined;
12904
+ next_retry_at?: string | null | undefined;
12905
+ resume_at?: string | null | undefined;
12904
12906
  callback_token?: string | null | undefined;
12905
12907
  payload_schema?: unknown;
12906
12908
  payload?: unknown;
12907
- expires_at?: string | undefined;
12908
- completed_at?: string | undefined;
12909
+ expires_at?: string | null | undefined;
12910
+ timeout_seconds?: number | null | undefined;
12911
+ completed_at?: string | null | undefined;
12909
12912
  }[] | undefined;
12910
12913
  } | null;
12911
12914
  is_private: boolean;
@@ -15837,13 +15840,14 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
15837
15840
  result?: unknown;
15838
15841
  error?: unknown;
15839
15842
  max_attempts?: number | undefined;
15840
- next_retry_at?: string | undefined;
15841
- resume_at?: string | undefined;
15843
+ next_retry_at?: string | null | undefined;
15844
+ resume_at?: string | null | undefined;
15842
15845
  callback_token?: string | null | undefined;
15843
15846
  payload_schema?: unknown;
15844
15847
  payload?: unknown;
15845
- expires_at?: string | undefined;
15846
- completed_at?: string | undefined;
15848
+ expires_at?: string | null | undefined;
15849
+ timeout_seconds?: number | null | undefined;
15850
+ completed_at?: string | null | undefined;
15847
15851
  }[] | undefined;
15848
15852
  } | null;
15849
15853
  is_private: boolean;
@@ -1,6 +1,6 @@
1
- import { zapierBetaSdkPlugin } from './chunk-KBRCEMCW.mjs';
2
- import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, SDK_VERSION, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-E3I5TDS2.mjs';
3
- export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-E3I5TDS2.mjs';
1
+ import { zapierBetaSdkPlugin } from './chunk-ICFP2AO2.mjs';
2
+ import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, SDK_VERSION, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-A2GMUMK3.mjs';
3
+ export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-A2GMUMK3.mjs';
4
4
  import './chunk-Y6FXYEAI.mjs';
5
5
  import { defineMethod, openEnum, defineResolver, defineFormatter, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
6
6
  import { z } from 'zod';
@@ -816,8 +816,8 @@ var OperationTypeSchema = openEnum(
816
816
  "Operation kind: `step` is a journaled function call; `wait` is a time-based suspension; `callback` is a wait on an external callback."
817
817
  );
818
818
  var OperationStatusSchema = openEnum(
819
- ["pending", "completed", "failed", "exhausted"],
820
- "Operation lifecycle status. `exhausted` means retries were exceeded."
819
+ ["pending", "completed", "failed", "exhausted", "expired"],
820
+ "Operation lifecycle status. `exhausted` means retries were exceeded; `expired` means a callback's deadline passed without delivery."
821
821
  );
822
822
  var OperationSchema = z.object({
823
823
  id: z.string().describe("Operation ID (UUID)"),
@@ -831,8 +831,8 @@ var OperationSchema = z.object({
831
831
  max_attempts: z.number().optional().describe(
832
832
  "Cap on total attempts for this operation. Absent if no cap applies."
833
833
  ),
834
- next_retry_at: z.string().optional().describe("When the next retry will be attempted (ISO-8601)"),
835
- resume_at: z.string().optional().describe(
834
+ next_retry_at: z.string().nullable().optional().describe("When the next retry will be attempted (ISO-8601)"),
835
+ resume_at: z.string().nullable().optional().describe(
836
836
  "When a `wait` operation resumes (ISO-8601). Set only for type=wait."
837
837
  ),
838
838
  callback_token: z.string().nullable().optional().describe(
@@ -840,8 +840,11 @@ var OperationSchema = z.object({
840
840
  ),
841
841
  payload_schema: z.unknown().optional().describe("JSON Schema describing the expected callback payload"),
842
842
  payload: z.unknown().optional().describe("Payload delivered to a callback operation, when received"),
843
- expires_at: z.string().optional().describe("When a callback or wait operation expires (ISO-8601)"),
844
- completed_at: z.string().optional().describe("When the operation reached a terminal state (ISO-8601)"),
843
+ expires_at: z.string().nullable().optional().describe("When a callback or wait operation expires (ISO-8601)"),
844
+ timeout_seconds: z.number().nullable().optional().describe(
845
+ "Requested callback timeout in seconds, used to set `expires_at`. Absent or null for non-callback operations and callbacks without a timeout."
846
+ ),
847
+ completed_at: z.string().nullable().optional().describe("When the operation reached a terminal state (ISO-8601)"),
845
848
  created_at: z.string().describe("When the operation was created (ISO-8601)")
846
849
  });
847
850
  var ExecutionStatusSchema = openEnum(