@anuma/sdk 6.38.0 → 6.39.1

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.cjs CHANGED
@@ -3261,15 +3261,17 @@ Build ONLY when the user gives an explicit instruction to build, create, generat
3261
3261
 
3262
3262
  Once the user HAS given an explicit build instruction, you are in App Builder mode: you produce polished, production-quality React apps that feel designed \u2014 not generic.
3263
3263
 
3264
- DESIGN: on the initial build, before writing code, briefly state (2-3 sentences) what you want this app to feel like \u2014 name the specific fonts, the palette in hex, and one signature detail. Be concrete: "Fraunces display + Inter body + JetBrains Mono metadata, terracotta #b75432 accent on bone #f3efe6, paper-grain texture via inline SVG noise" is the kind of specificity that anchors the build. Default to nothing: don't pick "safe modern productivity" unless the brief literally asks for utilitarian. On later turns, state a design brief only when the change is visual (a restyle, new theme, or new UI); for a logic, data, or behavior-only change, skip the brief and just make the change.
3264
+ DESIGN: on the initial build, before writing code, briefly state (2-3 sentences) what you want this app to feel like \u2014 name the specific fonts, the palette in hex, and one signature detail. Be concrete: "Fraunces display + Inter body + JetBrains Mono metadata, terracotta #b75432 accent on bone #f3efe6, paper-grain texture via inline SVG noise" is the kind of specificity that anchors the build. Default to nothing: don't pick "safe modern productivity" unless the brief literally asks for utilitarian. On later turns, state a design brief only when the change is visual (a restyle, new theme, or new UI); for a text, logic, data, or behavior-only change, skip the brief and just make the change.
3265
+
3266
+ EDIT SCOPE: Change only the files and lines required by the current user request. A title rename is a text edit, not a design change. Preserve styles, dependencies, and unrelated logic on text edits. Design feedback does not authorize unrelated edits.
3265
3267
 
3266
3268
  WORKFLOW:
3267
3269
  1. NEVER output code as text or markdown. ALWAYS use tools.
3268
3270
  2. Initial build: state your design brief, then create_file with a "files" array writing ALL files in one call. The preview renders automatically.
3269
3271
  3. patch_file requires read_file for that path earlier in the conversation (or create_file in the same conversation, which counts). read_file output is numbered "42: <text>" \u2014 the prefix is display-only; never copy it into "find". Each "find" must match exactly one location \u2014 include 2-3 lines of surrounding context. Pass multiple patches per call to change distinct locations.
3270
3272
  4. Prefer patch_file for changes to existing files \u2014 surgical, reviewable, preserves surrounding code. Reserve create_file overwrites for substantial restructuring. Inserts: find the line before, replace with that line + the new line. Deletes: empty replace.
3271
- 5. After substantial changes, call critique_design first (taste, hierarchy, distinctiveness, weakest decision) and then audit_design (mechanical: tokens, focus states, aria-labels, alt, heading order). Patch what each surfaces. critique catches taste issues no checklist would; audit catches mechanics you'd miss. Run both; act on both.
3272
- 6. Before declaring done, call verify_app. The host's preview runtime reports whether your app actually mounted and surfaces any errors it captured \u2014 hallucinated imports, syntax the bundler rejected, undefined components, runtime crashes. If \`rendered\` is false or \`errors\` is non-empty, fix every error before the next message. If the response includes a \`note\` that verify_app isn't wired in this host, skip \u2014 audit + critique are your feedback in that case.
3273
+ 5. On the initial build, when adding new UI, or after user-requested design changes, call critique_design first and then audit_design. Critique checks taste, hierarchy, and distinctiveness. Audit checks tokens, focus states, aria-labels, alt text, and heading order. Patch only issues within the current user request. For text, logic, or data edits, skip both design tools.
3274
+ 6. Before declaring done, call verify_app. The host's preview runtime reports whether your app actually mounted and surfaces any errors it captured \u2014 hallucinated imports, syntax the bundler rejected, undefined components, runtime crashes. If \`rendered\` is false or \`errors\` is non-empty, fix every error before the next message. If the response includes a \`note\` that verify_app isn't wired in this host, skip runtime verification. An unavailable runtime verifier does not authorize design changes. Use audit_design and critique_design only for the initial build, adding new UI, or user-requested design changes.
3273
3275
  7. Keep responses to a sentence or two. Exception: when responding to critique_design, write a substantive paragraph per rubric question.
3274
3276
 
3275
3277
  STRUCTURE:
@@ -3432,12 +3434,13 @@ function isCacheExpired(cache, expirationMs = DEFAULT_CACHE_EXPIRATION_MS) {
3432
3434
  if (!cache) return true;
3433
3435
  return Date.now() - cache.timestamp > expirationMs;
3434
3436
  }
3435
- function buildCacheEntry(tools, checksum) {
3437
+ function buildCacheEntry(tools, checksum, etag) {
3436
3438
  return {
3437
3439
  tools,
3438
3440
  timestamp: Date.now(),
3439
3441
  version: CACHE_VERSION,
3440
- ...checksum && { checksum }
3442
+ ...checksum && { checksum },
3443
+ ...etag && { etag }
3441
3444
  };
3442
3445
  }
3443
3446
  function writeLocalStorageCache(entry) {
@@ -3457,19 +3460,36 @@ var localStorageToolsCache = {
3457
3460
  set: writeLocalStorageCache,
3458
3461
  clear: removeLocalStorageCache
3459
3462
  };
3460
- async function fetchServerToolsFromApi(baseUrl, token) {
3461
- const response = await fetch(`${baseUrl}/api/v1/tools`, {
3463
+ async function fetchServerToolsFromApi(baseUrl, authHeaders, etag) {
3464
+ const request = (validator) => fetch(`${baseUrl}/api/v1/tools`, {
3462
3465
  method: "GET",
3463
3466
  headers: {
3464
- Authorization: `Bearer ${token}`,
3465
- "Content-Type": "application/json"
3467
+ ...authHeaders,
3468
+ "Content-Type": "application/json",
3469
+ ...validator && { "If-None-Match": validator }
3466
3470
  }
3467
3471
  });
3472
+ let response;
3473
+ try {
3474
+ response = await request(etag);
3475
+ } catch (error) {
3476
+ if (!etag || !(error instanceof TypeError)) throw error;
3477
+ etag = void 0;
3478
+ response = await request();
3479
+ }
3480
+ if (etag && response.status === 304) {
3481
+ return { notModified: true };
3482
+ }
3468
3483
  if (!response.ok) {
3469
3484
  throw new Error(`Failed to fetch server tools: ${response.status}`);
3470
3485
  }
3471
3486
  const data = await response.json();
3472
- return convertServerToolsResponse(data);
3487
+ const responseEtag = response.headers?.get("ETag") ?? void 0;
3488
+ return {
3489
+ notModified: false,
3490
+ ...convertServerToolsResponse(data),
3491
+ ...responseEtag && { etag: responseEtag }
3492
+ };
3473
3493
  }
3474
3494
  async function getServerTools(options) {
3475
3495
  const {
@@ -3501,34 +3521,30 @@ async function getServerTools(options) {
3501
3521
  try {
3502
3522
  const { BASE_URL: BASE_URL2 } = await Promise.resolve().then(() => (init_clientConfig(), clientConfig_exports));
3503
3523
  const effectiveBaseUrl = baseUrl ?? BASE_URL2;
3524
+ const validator = cached && !forceRefresh ? cached.etag : void 0;
3525
+ let authHeaders;
3504
3526
  if (apiKey) {
3505
- const response = await fetch(`${effectiveBaseUrl}/api/v1/tools`, {
3506
- method: "GET",
3507
- headers: {
3508
- "X-API-Key": apiKey,
3509
- "Content-Type": "application/json"
3510
- }
3511
- });
3512
- if (!response.ok) {
3513
- throw new Error(`Failed to fetch server tools: ${response.status}`);
3527
+ authHeaders = { "X-API-Key": apiKey };
3528
+ } else {
3529
+ if (!getToken) {
3530
+ getLogger().warn("[serverTools] No auth method available for fetching tools");
3531
+ return cached?.tools ?? [];
3514
3532
  }
3515
- const data = await response.json();
3516
- const { tools: tools2, checksum: checksum2 } = convertServerToolsResponse(data);
3517
- await persistCache(buildCacheEntry(tools2, checksum2));
3518
- return tools2;
3519
- }
3520
- if (!getToken) {
3521
- getLogger().warn("[serverTools] No auth method available for fetching tools");
3522
- return cached?.tools ?? [];
3533
+ const token = await getToken();
3534
+ if (!token) {
3535
+ getLogger().warn("[serverTools] No auth token available for fetching tools");
3536
+ return cached?.tools ?? [];
3537
+ }
3538
+ authHeaders = { Authorization: `Bearer ${token}` };
3523
3539
  }
3524
- const token = await getToken();
3525
- if (!token) {
3526
- getLogger().warn("[serverTools] No auth token available for fetching tools");
3527
- return cached?.tools ?? [];
3540
+ const result = await fetchServerToolsFromApi(effectiveBaseUrl, authHeaders, validator);
3541
+ if (result.notModified) {
3542
+ const confirmed = cached;
3543
+ await persistCache({ ...confirmed, timestamp: Date.now() });
3544
+ return confirmed.tools;
3528
3545
  }
3529
- const { tools, checksum } = await fetchServerToolsFromApi(effectiveBaseUrl, token);
3530
- await persistCache(buildCacheEntry(tools, checksum));
3531
- return tools;
3546
+ await persistCache(buildCacheEntry(result.tools, result.checksum, result.etag));
3547
+ return result.tools;
3532
3548
  } catch (error) {
3533
3549
  getLogger().error("[serverTools] Failed to fetch server tools:", error);
3534
3550
  if (cached?.tools) {
package/dist/index.d.mts CHANGED
@@ -8064,6 +8064,68 @@ declare function clearLazyTitleCache(): void;
8064
8064
  */
8065
8065
  declare function decryptConversationTitle(encryptedTitle: string, address: string): Promise<string>;
8066
8066
 
8067
+ /**
8068
+ * Class-B task types — the vocabulary of the `X-Anuma-Task-Type` header.
8069
+ *
8070
+ * A Class-B flow has ONE fixed purpose and no conversation: extract memories
8071
+ * from a snippet, pick a topic, consolidate duplicates, classify a query. Today
8072
+ * each of those builds its own system prompt on the client and sends it as a
8073
+ * `role:system` message, which makes the prompt a suggestion rather than a
8074
+ * contract — a caller can reword it into "you are a general assistant" and get
8075
+ * general chat at internal-endpoint prices.
8076
+ *
8077
+ * The fix is that the SERVER owns the text and the client only names the task.
8078
+ * This header is the name. The portal allowlists it against its own copy of this
8079
+ * enum (ai-portal `internal/systemprompt/tasks.go`) and DROPS anything it does
8080
+ * not recognise, so an unknown value degrades to "no task declared" rather than
8081
+ * failing the request.
8082
+ *
8083
+ * ⚠ These string values are a wire contract with ai-portal. Adding one here
8084
+ * before the portal knows it is harmless (it is dropped); renaming or removing
8085
+ * one silently stops that flow being counted. Keep them in step with
8086
+ * `AllTaskTypes` on the portal side, and see ai-portal
8087
+ * `docs/BACKEND_OWNED_TASK_PROMPTS.md` for the rollout.
8088
+ *
8089
+ * ⚠ RELEASE ORDER. This union is a PUBLIC type, so a split is breaking in both
8090
+ * directions and has to be sequenced:
8091
+ *
8092
+ * 1. merge + publish this package;
8093
+ * 2. bump `@anuma/sdk` in the consumer and switch its call sites to the new
8094
+ * names in the same commit.
8095
+ *
8096
+ * A consumer on the OLD version cannot compile the new names, and a consumer on
8097
+ * the NEW version cannot compile the retired ones (`app_inspiration` is gone
8098
+ * here, replaced by the three `app_inspiration_*` names). Both halves of that
8099
+ * are type-only — the wire itself always degrades safely, because the portal
8100
+ * drops any value it does not recognise. Concretely: ai-memoryless-client#5782
8101
+ * is blocked on this publish for exactly that reason.
8102
+ *
8103
+ * Deliberately ABSENT: agent personas, `reflect()` when it answers the user, and
8104
+ * the app-idea chat. Those carry an open conversation with the user, so a fixed
8105
+ * server-owned prompt would be wrong rather than merely premature — the same
8106
+ * boundary {@link INTERNAL_FLOW_MARKER} draws.
8107
+ *
8108
+ * @public
8109
+ */
8110
+ type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8111
+ /**
8112
+ * HTTP header naming the Class-B task a request performs.
8113
+ *
8114
+ * @public
8115
+ */
8116
+ declare const TASK_TYPE_HEADER = "X-Anuma-Task-Type";
8117
+ /**
8118
+ * Build the task-type header, or nothing when no task is declared.
8119
+ *
8120
+ * Returns a spreadable object so call sites stay a single expression
8121
+ * (`{ ...auth, ...taskTypeHeader(t) }`) and an undeclared task adds no header at
8122
+ * all rather than an empty one — the portal treats absent and invalid
8123
+ * identically, but an empty header value is noise on the wire and in logs.
8124
+ *
8125
+ * @public
8126
+ */
8127
+ declare function taskTypeHeader(taskType?: TaskType): Record<string, string>;
8128
+
8067
8129
  /**
8068
8130
  * Why a file was not (fully) read. Paired with {@link FileProcessingStatus}.
8069
8131
  *
@@ -8903,66 +8965,4 @@ declare class SseIdleTimeoutError extends Error {
8903
8965
  */
8904
8966
  declare function withSseKeepalive<T>(source: AsyncIterable<T>, options?: SseKeepaliveOptions): AsyncGenerator<T, void, unknown>;
8905
8967
 
8906
- /**
8907
- * Class-B task types — the vocabulary of the `X-Anuma-Task-Type` header.
8908
- *
8909
- * A Class-B flow has ONE fixed purpose and no conversation: extract memories
8910
- * from a snippet, pick a topic, consolidate duplicates, classify a query. Today
8911
- * each of those builds its own system prompt on the client and sends it as a
8912
- * `role:system` message, which makes the prompt a suggestion rather than a
8913
- * contract — a caller can reword it into "you are a general assistant" and get
8914
- * general chat at internal-endpoint prices.
8915
- *
8916
- * The fix is that the SERVER owns the text and the client only names the task.
8917
- * This header is the name. The portal allowlists it against its own copy of this
8918
- * enum (ai-portal `internal/systemprompt/tasks.go`) and DROPS anything it does
8919
- * not recognise, so an unknown value degrades to "no task declared" rather than
8920
- * failing the request.
8921
- *
8922
- * ⚠ These string values are a wire contract with ai-portal. Adding one here
8923
- * before the portal knows it is harmless (it is dropped); renaming or removing
8924
- * one silently stops that flow being counted. Keep them in step with
8925
- * `AllTaskTypes` on the portal side, and see ai-portal
8926
- * `docs/BACKEND_OWNED_TASK_PROMPTS.md` for the rollout.
8927
- *
8928
- * ⚠ RELEASE ORDER. This union is a PUBLIC type, so a split is breaking in both
8929
- * directions and has to be sequenced:
8930
- *
8931
- * 1. merge + publish this package;
8932
- * 2. bump `@anuma/sdk` in the consumer and switch its call sites to the new
8933
- * names in the same commit.
8934
- *
8935
- * A consumer on the OLD version cannot compile the new names, and a consumer on
8936
- * the NEW version cannot compile the retired ones (`app_inspiration` is gone
8937
- * here, replaced by the three `app_inspiration_*` names). Both halves of that
8938
- * are type-only — the wire itself always degrades safely, because the portal
8939
- * drops any value it does not recognise. Concretely: ai-memoryless-client#5782
8940
- * is blocked on this publish for exactly that reason.
8941
- *
8942
- * Deliberately ABSENT: agent personas, `reflect()` when it answers the user, and
8943
- * the app-idea chat. Those carry an open conversation with the user, so a fixed
8944
- * server-owned prompt would be wrong rather than merely premature — the same
8945
- * boundary {@link INTERNAL_FLOW_MARKER} draws.
8946
- *
8947
- * @public
8948
- */
8949
- type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8950
- /**
8951
- * HTTP header naming the Class-B task a request performs.
8952
- *
8953
- * @public
8954
- */
8955
- declare const TASK_TYPE_HEADER = "X-Anuma-Task-Type";
8956
- /**
8957
- * Build the task-type header, or nothing when no task is declared.
8958
- *
8959
- * Returns a spreadable object so call sites stay a single expression
8960
- * (`{ ...auth, ...taskTypeHeader(t) }`) and an undeclared task adds no header at
8961
- * all rather than an empty one — the portal treats absent and invalid
8962
- * identically, but an empty header value is noise on the wire and in logs.
8963
- *
8964
- * @public
8965
- */
8966
- declare function taskTypeHeader(taskType?: TaskType): Record<string, string>;
8967
-
8968
8968
  export { type AgentAgendaItem, type AgentAgendaTranscript, type AgentAnalysisSection, type AgentAnalysisTranscript, type AgentConfig, type AgentExampleConversation, type AgentManifest, type AgentMarketplaceContent, type AgentMarketplaceFamily, type AgentMarketplaceTranscript, type AgentPrimaryActionKind, type AgentRuntime, type AgentScheduleItem, type AgentTranscriptItem, type AgentTranscriptTone, type AgentUiMetadata, type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, BUILT_IN_TOOL_SETS, type BuildPromptOptions, type BuildPromptResult, CHUNKS_DISCARDED_ORIGIN, type ClientOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type CreateServerToolsFilterOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_MESSAGES, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, type DeleteApiV1AccountData, type DeleteApiV1AccountError, type DeleteApiV1AccountErrors, type DeleteApiV1AccountResponse, type DeleteApiV1AccountResponses, type DeleteApiV1AdminAgentsByIdData, type DeleteApiV1AdminAgentsByIdError, type DeleteApiV1AdminAgentsByIdErrors, type DeleteApiV1AdminAgentsByIdResponse, type DeleteApiV1AdminAgentsByIdResponses, type DeleteApiV1AdminAppsByAppIdApiKeysByIdData, type DeleteApiV1AdminAppsByAppIdApiKeysByIdError, type DeleteApiV1AdminAppsByAppIdApiKeysByIdErrors, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponse, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponses, type DeleteApiV1AdminAppsByIdData, type DeleteApiV1AdminAppsByIdError, type DeleteApiV1AdminAppsByIdErrors, type DeleteApiV1AdminAppsByIdResponse, type DeleteApiV1AdminAppsByIdResponses, type DeleteApiV1AdminPersonasByIdData, type DeleteApiV1AdminPersonasByIdError, type DeleteApiV1AdminPersonasByIdErrors, type DeleteApiV1AdminPersonasByIdResponse, type DeleteApiV1AdminPersonasByIdResponses, type DeleteApiV1AdminTextResetData, type DeleteApiV1AdminTextResetError, type DeleteApiV1AdminTextResetErrors, type DeleteApiV1AdminTextResetResponse, type DeleteApiV1AdminTextResetResponses, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdData, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdError, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdErrors, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponse, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponses, type DeleteApiV1DeveloperAppsByAppUuidData, type DeleteApiV1DeveloperAppsByAppUuidError, type DeleteApiV1DeveloperAppsByAppUuidErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyData, type DeleteApiV1DeveloperAppsByAppUuidPrivyError, type DeleteApiV1DeveloperAppsByAppUuidPrivyErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponse, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponses, type DeleteApiV1DeveloperAppsByAppUuidResponse, type DeleteApiV1DeveloperAppsByAppUuidResponses, type DeleteApiV1UserApiKeysByKeyIdData, type DeleteApiV1UserApiKeysByKeyIdError, type DeleteApiV1UserApiKeysByKeyIdErrors, type DeleteApiV1UserApiKeysByKeyIdResponse, type DeleteApiV1UserApiKeysByKeyIdResponses, type DeleteApiV1WalletsBindingByAddressData, type DeleteApiV1WalletsBindingByAddressError, type DeleteApiV1WalletsBindingByAddressErrors, type DeleteApiV1WalletsBindingByAddressResponse, type DeleteApiV1WalletsBindingByAddressResponses, type FileExtractionStrategy, type FileProcessingReason, type FileProcessingStatus, type GetApiV1AdminAppsByAppIdApiKeysByIdData, type GetApiV1AdminAppsByAppIdApiKeysByIdError, type GetApiV1AdminAppsByAppIdApiKeysByIdErrors, type GetApiV1AdminAppsByAppIdApiKeysByIdResponse, type GetApiV1AdminAppsByAppIdApiKeysByIdResponses, type GetApiV1AdminAppsByAppIdApiKeysData, type GetApiV1AdminAppsByAppIdApiKeysError, type GetApiV1AdminAppsByAppIdApiKeysErrors, type GetApiV1AdminAppsByAppIdApiKeysResponse, type GetApiV1AdminAppsByAppIdApiKeysResponses, type GetApiV1AdminAppsByIdData, type GetApiV1AdminAppsByIdError, type GetApiV1AdminAppsByIdErrors, type GetApiV1AdminAppsByIdResponse, type GetApiV1AdminAppsByIdResponses, type GetApiV1AdminAppsData, type GetApiV1AdminAppsError, type GetApiV1AdminAppsErrors, type GetApiV1AdminAppsResponse, type GetApiV1AdminAppsResponses, type GetApiV1AdminUsersLookupData, type GetApiV1AdminUsersLookupError, type GetApiV1AdminUsersLookupErrors, type GetApiV1AdminUsersLookupResponse, type GetApiV1AdminUsersLookupResponses, type GetApiV1AgentPreferencesData, type GetApiV1AgentPreferencesError, type GetApiV1AgentPreferencesErrors, type GetApiV1AgentPreferencesResponse, type GetApiV1AgentPreferencesResponses, type GetApiV1AgentsByIdData, type GetApiV1AgentsByIdError, type GetApiV1AgentsByIdErrors, type GetApiV1AgentsByIdResponse, type GetApiV1AgentsByIdResponses, type GetApiV1AgentsData, type GetApiV1AgentsError, type GetApiV1AgentsErrors, type GetApiV1AgentsResponse, type GetApiV1AgentsResponses, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1CreditsBalanceData, type GetApiV1CreditsBalanceError, type GetApiV1CreditsBalanceErrors, type GetApiV1CreditsBalanceResponse, type GetApiV1CreditsBalanceResponses, type GetApiV1CreditsPacksData, type GetApiV1CreditsPacksError, type GetApiV1CreditsPacksErrors, type GetApiV1CreditsPacksResponse, type GetApiV1CreditsPacksResponses, type GetApiV1DeveloperAppsByAppUuidApiKeysData, type GetApiV1DeveloperAppsByAppUuidApiKeysError, type GetApiV1DeveloperAppsByAppUuidApiKeysErrors, type GetApiV1DeveloperAppsByAppUuidApiKeysResponse, type GetApiV1DeveloperAppsByAppUuidApiKeysResponses, type GetApiV1DeveloperAppsByAppUuidData, type GetApiV1DeveloperAppsByAppUuidError, type GetApiV1DeveloperAppsByAppUuidErrors, type GetApiV1DeveloperAppsByAppUuidResponse, type GetApiV1DeveloperAppsByAppUuidResponses, type GetApiV1DeveloperAppsByAppUuidUsageData, type GetApiV1DeveloperAppsByAppUuidUsageError, type GetApiV1DeveloperAppsByAppUuidUsageErrors, type GetApiV1DeveloperAppsByAppUuidUsageResponse, type GetApiV1DeveloperAppsByAppUuidUsageResponses, type GetApiV1DeveloperAppsByAppUuidUsageUsersData, type GetApiV1DeveloperAppsByAppUuidUsageUsersError, type GetApiV1DeveloperAppsByAppUuidUsageUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponses, type GetApiV1DeveloperAppsByAppUuidUsersByAddressData, type GetApiV1DeveloperAppsByAppUuidUsersByAddressError, type GetApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type GetApiV1DeveloperAppsByAppUuidUsersData, type GetApiV1DeveloperAppsByAppUuidUsersError, type GetApiV1DeveloperAppsByAppUuidUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsersResponses, type GetApiV1DeveloperAppsData, type GetApiV1DeveloperAppsError, type GetApiV1DeveloperAppsErrors, type GetApiV1DeveloperAppsResponse, type GetApiV1DeveloperAppsResponses, type GetApiV1DeveloperBillingData, type GetApiV1DeveloperBillingError, type GetApiV1DeveloperBillingErrors, type GetApiV1DeveloperBillingResponse, type GetApiV1DeveloperBillingResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1PersonasByIdData, type GetApiV1PersonasByIdError, type GetApiV1PersonasByIdErrors, type GetApiV1PersonasByIdResponse, type GetApiV1PersonasByIdResponses, type GetApiV1PersonasData, type GetApiV1PersonasError, type GetApiV1PersonasErrors, type GetApiV1PersonasResponse, type GetApiV1PersonasResponses, type GetApiV1PhoneCallsByCallIdData, type GetApiV1PhoneCallsByCallIdError, type GetApiV1PhoneCallsByCallIdErrors, type GetApiV1PhoneCallsByCallIdResponse, type GetApiV1PhoneCallsByCallIdResponses, type GetApiV1SubscriptionsPlansData, type GetApiV1SubscriptionsPlansError, type GetApiV1SubscriptionsPlansErrors, type GetApiV1SubscriptionsPlansResponse, type GetApiV1SubscriptionsPlansResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetApiV1ToolsData, type GetApiV1ToolsError, type GetApiV1ToolsErrors, type GetApiV1ToolsResponse, type GetApiV1ToolsResponses, type GetApiV1UsageInferenceWeeklyData, type GetApiV1UsageInferenceWeeklyResponse, type GetApiV1UsageInferenceWeeklyResponses, type GetApiV1UsageModelsData, type GetApiV1UsageModelsError, type GetApiV1UsageModelsErrors, type GetApiV1UsageModelsResponse, type GetApiV1UsageModelsResponses, type GetApiV1UserApiKeysData, type GetApiV1UserApiKeysError, type GetApiV1UserApiKeysErrors, type GetApiV1UserApiKeysResponse, type GetApiV1UserApiKeysResponses, type GetApiV1WalletsBindingData, type GetApiV1WalletsBindingError, type GetApiV1WalletsBindingErrors, type GetApiV1WalletsBindingResponse, type GetApiV1WalletsBindingResponses, type GetApiV1ZetaCreditRateData, type GetApiV1ZetaCreditRateResponse, type GetApiV1ZetaCreditRateResponses, type GetApiV1ZetaMarketData, type GetApiV1ZetaMarketResponse, type GetApiV1ZetaMarketResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersAddCreditsRequest, type HandlersAddCreditsResponse, type HandlersAgentListItem, type HandlersAgentListResponse, type HandlersAgentResponse, type HandlersApiKeyResponse, type HandlersApiKeyWithKeyResponse, type HandlersAppConfig, type HandlersAppResponse, type HandlersAppUsageResponse, type HandlersAppUserUsageResponse, type HandlersBillingHistoryResponse, type HandlersBillingRecordResponse, type HandlersBindRequest, type HandlersBoundWalletResponse, type HandlersCancelScheduledDowngradeResponse, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersConfigurePrivyRequest, type HandlersCreateAgentRequest, type HandlersCreateApiKeyRequest, type HandlersCreateAppRequest, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCreditPackCheckoutRequest, type HandlersCreateCustomerPortalRequest, type HandlersCreateDeveloperAppRequest, type HandlersCreatePersonaRequest, type HandlersCreatePhoneCallRequest, type HandlersCreditBalanceResponse, type HandlersCreditPack, type HandlersCreditPacksResponse, type HandlersCreditRateResponse, type HandlersCustomerPortalResponse, type HandlersDeveloperApiKeyRequest, type HandlersDeveloperApiKeyResponse, type HandlersDeveloperApiKeyWithSecretResponse, type HandlersDeveloperAppResponse, type HandlersDeveloperUserResponse, type HandlersExchangeRequest, type HandlersExpiringCredits, type HandlersFundDeveloperAppRequest, type HandlersGeneratedApiKey, type HandlersGetToolsResponse, type HandlersHealthResponse, type HandlersInferenceWeeklyResponse, type HandlersListApiKeysResponse, type HandlersListAppsResponse, type HandlersListDeveloperApiKeysResponse, type HandlersListDeveloperAppsResponse, type HandlersListResponse, type HandlersListTotals, type HandlersListUserApiKeysResponse, type HandlersListUsersResponse, type HandlersModelToolUsageItem, type HandlersModelUsageItem, type HandlersNonceResponse, type HandlersPaginationResponse, type HandlersPersonaListResponse, type HandlersPersonaResponse, type HandlersPhoneCallResponse, type HandlersPhoneCallTranscriptEntry, type HandlersProInfo, type HandlersRedeemTokensRequest, type HandlersRedeemTokensResponse, type HandlersRefreshRequest, type HandlersRenewSubscriptionResponse, type HandlersRevokeRequest, type HandlersScheduleDowngradeRequest, type HandlersScheduleDowngradeResponse, type HandlersSeedApiKeyInput, type HandlersSeedAppInput, type HandlersSeedAppsRequest, type HandlersSeedAppsResponse, type HandlersSetSubscriptionTierRequest, type HandlersSetSubscriptionTierResponse, type HandlersSetUserAgentPreferenceRequest, type HandlersSubscriptionPlan, type HandlersSubscriptionPlansResponse, type HandlersSubscriptionStatusResponse, type HandlersTokenResponse, type HandlersTool, type HandlersToolCallDetailItem, type HandlersTopUpUserRequest, type HandlersUpdateAgentRequest, type HandlersUpdateApiKeyRequest, type HandlersUpdateAppRequest, type HandlersUpdateDeveloperAppRequest, type HandlersUpdatePersonaRequest, type HandlersUpdateUserLimitRequest, type HandlersUpgradeSubscriptionRequest, type HandlersUpgradeSubscriptionResponse, type HandlersUsageByModelResponse, type HandlersUsagePeriod, type HandlersUsageTimeseriesPoint, type HandlersUsageTotals, type HandlersUserAgentPreferenceResponse, type HandlersUserAgentPreferencesListResponse, type HandlersUserApiKeyRequest, type HandlersUserApiKeyResponse, type HandlersUserApiKeyWithSecretResponse, type HandlersUserLookupAccount, type HandlersUserLookupEnrollment, type HandlersUserLookupResponse, type HandlersUserLookupTextReg, type HandlersUserUsageResponse, type HandlersWalletDetails, type HandlersWeeklyInferenceItem, type HandlersZetaMarketResponse, type LazyStoredConversation, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionTool, type LlmapiChatCompletionToolChoice, type LlmapiChatCompletionUsage, type OpenaiChatCompletionChoice as LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMcpTool, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiPortalChatCompletionRequest, type LlmapiPortalChatCompletionResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseTool, type LlmapiResponseToolChoice, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiToolCall, type LlmapiToolCallEvent, type LlmapiToolCallFunction, type Logger, MULTILINE_FIELD_MAX, type McpToolSchema, type MessageRedactionResult, type NerDetector, type Options, PII_PATTERNS, type PatchApiV1DeveloperAppsByAppUuidData, type PatchApiV1DeveloperAppsByAppUuidError, type PatchApiV1DeveloperAppsByAppUuidErrors, type PatchApiV1DeveloperAppsByAppUuidResponse, type PatchApiV1DeveloperAppsByAppUuidResponses, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressData, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressError, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PiiSpan, type PostApiV1AdminAddCreditsData, type PostApiV1AdminAddCreditsError, type PostApiV1AdminAddCreditsErrors, type PostApiV1AdminAddCreditsResponse, type PostApiV1AdminAddCreditsResponses, type PostApiV1AdminAgentsData, type PostApiV1AdminAgentsError, type PostApiV1AdminAgentsErrors, type PostApiV1AdminAgentsResponse, type PostApiV1AdminAgentsResponses, type PostApiV1AdminAppsByAppIdApiKeysData, type PostApiV1AdminAppsByAppIdApiKeysError, type PostApiV1AdminAppsByAppIdApiKeysErrors, type PostApiV1AdminAppsByAppIdApiKeysResponse, type PostApiV1AdminAppsByAppIdApiKeysResponses, type PostApiV1AdminAppsData, type PostApiV1AdminAppsError, type PostApiV1AdminAppsErrors, type PostApiV1AdminAppsResponse, type PostApiV1AdminAppsResponses, type PostApiV1AdminPersonasData, type PostApiV1AdminPersonasError, type PostApiV1AdminPersonasErrors, type PostApiV1AdminPersonasResponse, type PostApiV1AdminPersonasResponses, type PostApiV1AdminSeedAppsData, type PostApiV1AdminSeedAppsError, type PostApiV1AdminSeedAppsErrors, type PostApiV1AdminSeedAppsResponse, type PostApiV1AdminSeedAppsResponses, type PostApiV1AdminSubscriptionTierData, type PostApiV1AdminSubscriptionTierError, type PostApiV1AdminSubscriptionTierErrors, type PostApiV1AdminSubscriptionTierResponse, type PostApiV1AdminSubscriptionTierResponses, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1CreditsPurchaseData, type PostApiV1CreditsPurchaseError, type PostApiV1CreditsPurchaseErrors, type PostApiV1CreditsPurchaseResponse, type PostApiV1CreditsPurchaseResponses, type PostApiV1CreditsRedeemTokensData, type PostApiV1CreditsRedeemTokensError, type PostApiV1CreditsRedeemTokensErrors, type PostApiV1CreditsRedeemTokensResponse, type PostApiV1CreditsRedeemTokensResponses, type PostApiV1DeveloperAppsByAppUuidApiKeysData, type PostApiV1DeveloperAppsByAppUuidApiKeysError, type PostApiV1DeveloperAppsByAppUuidApiKeysErrors, type PostApiV1DeveloperAppsByAppUuidApiKeysResponse, type PostApiV1DeveloperAppsByAppUuidApiKeysResponses, type PostApiV1DeveloperAppsByAppUuidFundData, type PostApiV1DeveloperAppsByAppUuidFundError, type PostApiV1DeveloperAppsByAppUuidFundErrors, type PostApiV1DeveloperAppsByAppUuidFundResponse, type PostApiV1DeveloperAppsByAppUuidFundResponses, type PostApiV1DeveloperAppsByAppUuidPrivyData, type PostApiV1DeveloperAppsByAppUuidPrivyError, type PostApiV1DeveloperAppsByAppUuidPrivyErrors, type PostApiV1DeveloperAppsByAppUuidPrivyResponse, type PostApiV1DeveloperAppsByAppUuidPrivyResponses, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpData, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpError, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpErrors, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponse, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponses, type PostApiV1DeveloperAppsData, type PostApiV1DeveloperAppsError, type PostApiV1DeveloperAppsErrors, type PostApiV1DeveloperAppsResponse, type PostApiV1DeveloperAppsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1PhoneCallsData, type PostApiV1PhoneCallsError, type PostApiV1PhoneCallsErrors, type PostApiV1PhoneCallsResponse, type PostApiV1PhoneCallsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCancelScheduledDowngradeData, type PostApiV1SubscriptionsCancelScheduledDowngradeError, type PostApiV1SubscriptionsCancelScheduledDowngradeErrors, type PostApiV1SubscriptionsCancelScheduledDowngradeResponse, type PostApiV1SubscriptionsCancelScheduledDowngradeResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsScheduleDowngradeData, type PostApiV1SubscriptionsScheduleDowngradeError, type PostApiV1SubscriptionsScheduleDowngradeErrors, type PostApiV1SubscriptionsScheduleDowngradeResponse, type PostApiV1SubscriptionsScheduleDowngradeResponses, type PostApiV1SubscriptionsUpgradeData, type PostApiV1SubscriptionsUpgradeError, type PostApiV1SubscriptionsUpgradeErrors, type PostApiV1SubscriptionsUpgradeResponse, type PostApiV1SubscriptionsUpgradeResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, type PostApiV1UserApiKeysData, type PostApiV1UserApiKeysError, type PostApiV1UserApiKeysErrors, type PostApiV1UserApiKeysResponse, type PostApiV1UserApiKeysResponses, type PostApiV1WalletsBindingData, type PostApiV1WalletsBindingError, type PostApiV1WalletsBindingErrors, type PostApiV1WalletsBindingNonceData, type PostApiV1WalletsBindingNonceError, type PostApiV1WalletsBindingNonceErrors, type PostApiV1WalletsBindingNonceResponse, type PostApiV1WalletsBindingNonceResponses, type PostApiV1WalletsBindingResponse, type PostApiV1WalletsBindingResponses, type PostApiV1WebhooksRevenuecatData, type PostApiV1WebhooksRevenuecatError, type PostApiV1WebhooksRevenuecatErrors, type PostApiV1WebhooksRevenuecatResponse, type PostApiV1WebhooksRevenuecatResponses, type PostAuthOauthByProviderExchangeData, type PostAuthOauthByProviderExchangeError, type PostAuthOauthByProviderExchangeErrors, type PostAuthOauthByProviderExchangeResponse, type PostAuthOauthByProviderExchangeResponses, type PostAuthOauthByProviderRefreshData, type PostAuthOauthByProviderRefreshError, type PostAuthOauthByProviderRefreshErrors, type PostAuthOauthByProviderRefreshResponse, type PostAuthOauthByProviderRefreshResponses, type PostAuthOauthByProviderRevokeData, type PostAuthOauthByProviderRevokeError, type PostAuthOauthByProviderRevokeErrors, type PostAuthOauthByProviderRevokeResponse, type PostAuthOauthByProviderRevokeResponses, type PromptContext, type PromptSection, type PromptTemplates, type PutApiV1AdminAgentsByIdData, type PutApiV1AdminAgentsByIdError, type PutApiV1AdminAgentsByIdErrors, type PutApiV1AdminAgentsByIdResponse, type PutApiV1AdminAgentsByIdResponses, type PutApiV1AdminAppsByAppIdApiKeysByIdData, type PutApiV1AdminAppsByAppIdApiKeysByIdError, type PutApiV1AdminAppsByAppIdApiKeysByIdErrors, type PutApiV1AdminAppsByAppIdApiKeysByIdResponse, type PutApiV1AdminAppsByAppIdApiKeysByIdResponses, type PutApiV1AdminAppsByIdData, type PutApiV1AdminAppsByIdError, type PutApiV1AdminAppsByIdErrors, type PutApiV1AdminAppsByIdResponse, type PutApiV1AdminAppsByIdResponses, type PutApiV1AdminPersonasByIdData, type PutApiV1AdminPersonasByIdError, type PutApiV1AdminPersonasByIdErrors, type PutApiV1AdminPersonasByIdResponse, type PutApiV1AdminPersonasByIdResponses, type PutApiV1AgentsByIdPreferenceData, type PutApiV1AgentsByIdPreferenceError, type PutApiV1AgentsByIdPreferenceErrors, type PutApiV1AgentsByIdPreferenceResponse, type PutApiV1AgentsByIdPreferenceResponses, type QuantizedEmbedding, type RedactionResult, type ReservationReceipt, type ResponseErrorResponse, type SelectServerSideToolsOptions, type SkillConfig, type SkillJourneyDefinition, type SkillJourneyField, type SkillJourneyFieldType, SseIdleTimeoutError, type SseKeepaliveOptions, type StyleAnalysisSchedule, TASK_TYPE_HEADER, TOOL_CATALOG, TOOL_RESULT_ORIGIN, type TaskType, type ToolSet, activatedToolSetNames, analyzeStyle, applyToolSets, attachFileContextToLastUserMessage, buildAttachedFilesText, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, clearLazyTitleCache, consoleLogger, cosineInt8, createServerToolsFilter, createStreamingDeAnonymizer, decodeChunkVector, decryptConversationTitle, defaultServerToolsFilter, deleteApiV1Account, deleteApiV1AdminAgentsById, deleteApiV1AdminAppsByAppIdApiKeysById, deleteApiV1AdminAppsById, deleteApiV1AdminPersonasById, deleteApiV1AdminTextReset, deleteApiV1DeveloperAppsByAppUuid, deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId, deleteApiV1DeveloperAppsByAppUuidPrivy, deleteApiV1UserApiKeysByKeyId, deleteApiV1WalletsBindingByAddress, dequantizeEmbedding, encodeChunkVector, expandToolSetsAdditive, extractReservationReceipts, formatFileProcessingNotes, getApiV1AdminApps, getApiV1AdminAppsByAppIdApiKeys, getApiV1AdminAppsByAppIdApiKeysById, getApiV1AdminAppsById, getApiV1AdminUsersLookup, getApiV1AgentPreferences, getApiV1Agents, getApiV1AgentsById, getApiV1Config, getApiV1CreditsBalance, getApiV1CreditsPacks, getApiV1DeveloperApps, getApiV1DeveloperAppsByAppUuid, getApiV1DeveloperAppsByAppUuidApiKeys, getApiV1DeveloperAppsByAppUuidUsage, getApiV1DeveloperAppsByAppUuidUsageUsers, getApiV1DeveloperAppsByAppUuidUsers, getApiV1DeveloperAppsByAppUuidUsersByAddress, getApiV1DeveloperBilling, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1Personas, getApiV1PersonasById, getApiV1PhoneCallsByCallId, getApiV1SubscriptionsPlans, getApiV1SubscriptionsStatus, getApiV1Tools, getApiV1UsageInferenceWeekly, getApiV1UsageModels, getApiV1UserApiKeys, getApiV1WalletsBinding, getApiV1ZetaCreditRate, getApiV1ZetaMarket, getCostMicroUsd, getCreditsUsed, getHealth, getImageModel, getLogger, getToolCallEvents, isAttachedFilesText, isPiiRedactor, noopLogger, patchApiV1DeveloperAppsByAppUuid, patchApiV1DeveloperAppsByAppUuidUsersByAddress, postApiV1AdminAddCredits, postApiV1AdminAgents, postApiV1AdminApps, postApiV1AdminAppsByAppIdApiKeys, postApiV1AdminPersonas, postApiV1AdminSeedApps, postApiV1AdminSubscriptionTier, postApiV1ChatCompletions, postApiV1CreditsPurchase, postApiV1CreditsRedeemTokens, postApiV1DeveloperApps, postApiV1DeveloperAppsByAppUuidApiKeys, postApiV1DeveloperAppsByAppUuidFund, postApiV1DeveloperAppsByAppUuidPrivy, postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp, postApiV1Embeddings, postApiV1PhoneCalls, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCancelScheduledDowngrade, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsScheduleDowngrade, postApiV1SubscriptionsUpgrade, postApiV1SubscriptionsWebhook, postApiV1UserApiKeys, postApiV1WalletsBinding, postApiV1WalletsBindingNonce, postApiV1WebhooksRevenuecat, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke, putApiV1AdminAgentsById, putApiV1AdminAppsByAppIdApiKeysById, putApiV1AdminAppsById, putApiV1AdminPersonasById, putApiV1AgentsByIdPreference, quantizeEmbedding, renderTemplate, resolvePiiRedactor, sanitizeQuotes, selectServerSideTools, setLogger, shouldAnalyzeStyle, taskTypeHeader, toolSetSystemPrompts, withSseKeepalive };
package/dist/index.d.ts CHANGED
@@ -8064,6 +8064,68 @@ declare function clearLazyTitleCache(): void;
8064
8064
  */
8065
8065
  declare function decryptConversationTitle(encryptedTitle: string, address: string): Promise<string>;
8066
8066
 
8067
+ /**
8068
+ * Class-B task types — the vocabulary of the `X-Anuma-Task-Type` header.
8069
+ *
8070
+ * A Class-B flow has ONE fixed purpose and no conversation: extract memories
8071
+ * from a snippet, pick a topic, consolidate duplicates, classify a query. Today
8072
+ * each of those builds its own system prompt on the client and sends it as a
8073
+ * `role:system` message, which makes the prompt a suggestion rather than a
8074
+ * contract — a caller can reword it into "you are a general assistant" and get
8075
+ * general chat at internal-endpoint prices.
8076
+ *
8077
+ * The fix is that the SERVER owns the text and the client only names the task.
8078
+ * This header is the name. The portal allowlists it against its own copy of this
8079
+ * enum (ai-portal `internal/systemprompt/tasks.go`) and DROPS anything it does
8080
+ * not recognise, so an unknown value degrades to "no task declared" rather than
8081
+ * failing the request.
8082
+ *
8083
+ * ⚠ These string values are a wire contract with ai-portal. Adding one here
8084
+ * before the portal knows it is harmless (it is dropped); renaming or removing
8085
+ * one silently stops that flow being counted. Keep them in step with
8086
+ * `AllTaskTypes` on the portal side, and see ai-portal
8087
+ * `docs/BACKEND_OWNED_TASK_PROMPTS.md` for the rollout.
8088
+ *
8089
+ * ⚠ RELEASE ORDER. This union is a PUBLIC type, so a split is breaking in both
8090
+ * directions and has to be sequenced:
8091
+ *
8092
+ * 1. merge + publish this package;
8093
+ * 2. bump `@anuma/sdk` in the consumer and switch its call sites to the new
8094
+ * names in the same commit.
8095
+ *
8096
+ * A consumer on the OLD version cannot compile the new names, and a consumer on
8097
+ * the NEW version cannot compile the retired ones (`app_inspiration` is gone
8098
+ * here, replaced by the three `app_inspiration_*` names). Both halves of that
8099
+ * are type-only — the wire itself always degrades safely, because the portal
8100
+ * drops any value it does not recognise. Concretely: ai-memoryless-client#5782
8101
+ * is blocked on this publish for exactly that reason.
8102
+ *
8103
+ * Deliberately ABSENT: agent personas, `reflect()` when it answers the user, and
8104
+ * the app-idea chat. Those carry an open conversation with the user, so a fixed
8105
+ * server-owned prompt would be wrong rather than merely premature — the same
8106
+ * boundary {@link INTERNAL_FLOW_MARKER} draws.
8107
+ *
8108
+ * @public
8109
+ */
8110
+ type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8111
+ /**
8112
+ * HTTP header naming the Class-B task a request performs.
8113
+ *
8114
+ * @public
8115
+ */
8116
+ declare const TASK_TYPE_HEADER = "X-Anuma-Task-Type";
8117
+ /**
8118
+ * Build the task-type header, or nothing when no task is declared.
8119
+ *
8120
+ * Returns a spreadable object so call sites stay a single expression
8121
+ * (`{ ...auth, ...taskTypeHeader(t) }`) and an undeclared task adds no header at
8122
+ * all rather than an empty one — the portal treats absent and invalid
8123
+ * identically, but an empty header value is noise on the wire and in logs.
8124
+ *
8125
+ * @public
8126
+ */
8127
+ declare function taskTypeHeader(taskType?: TaskType): Record<string, string>;
8128
+
8067
8129
  /**
8068
8130
  * Why a file was not (fully) read. Paired with {@link FileProcessingStatus}.
8069
8131
  *
@@ -8903,66 +8965,4 @@ declare class SseIdleTimeoutError extends Error {
8903
8965
  */
8904
8966
  declare function withSseKeepalive<T>(source: AsyncIterable<T>, options?: SseKeepaliveOptions): AsyncGenerator<T, void, unknown>;
8905
8967
 
8906
- /**
8907
- * Class-B task types — the vocabulary of the `X-Anuma-Task-Type` header.
8908
- *
8909
- * A Class-B flow has ONE fixed purpose and no conversation: extract memories
8910
- * from a snippet, pick a topic, consolidate duplicates, classify a query. Today
8911
- * each of those builds its own system prompt on the client and sends it as a
8912
- * `role:system` message, which makes the prompt a suggestion rather than a
8913
- * contract — a caller can reword it into "you are a general assistant" and get
8914
- * general chat at internal-endpoint prices.
8915
- *
8916
- * The fix is that the SERVER owns the text and the client only names the task.
8917
- * This header is the name. The portal allowlists it against its own copy of this
8918
- * enum (ai-portal `internal/systemprompt/tasks.go`) and DROPS anything it does
8919
- * not recognise, so an unknown value degrades to "no task declared" rather than
8920
- * failing the request.
8921
- *
8922
- * ⚠ These string values are a wire contract with ai-portal. Adding one here
8923
- * before the portal knows it is harmless (it is dropped); renaming or removing
8924
- * one silently stops that flow being counted. Keep them in step with
8925
- * `AllTaskTypes` on the portal side, and see ai-portal
8926
- * `docs/BACKEND_OWNED_TASK_PROMPTS.md` for the rollout.
8927
- *
8928
- * ⚠ RELEASE ORDER. This union is a PUBLIC type, so a split is breaking in both
8929
- * directions and has to be sequenced:
8930
- *
8931
- * 1. merge + publish this package;
8932
- * 2. bump `@anuma/sdk` in the consumer and switch its call sites to the new
8933
- * names in the same commit.
8934
- *
8935
- * A consumer on the OLD version cannot compile the new names, and a consumer on
8936
- * the NEW version cannot compile the retired ones (`app_inspiration` is gone
8937
- * here, replaced by the three `app_inspiration_*` names). Both halves of that
8938
- * are type-only — the wire itself always degrades safely, because the portal
8939
- * drops any value it does not recognise. Concretely: ai-memoryless-client#5782
8940
- * is blocked on this publish for exactly that reason.
8941
- *
8942
- * Deliberately ABSENT: agent personas, `reflect()` when it answers the user, and
8943
- * the app-idea chat. Those carry an open conversation with the user, so a fixed
8944
- * server-owned prompt would be wrong rather than merely premature — the same
8945
- * boundary {@link INTERNAL_FLOW_MARKER} draws.
8946
- *
8947
- * @public
8948
- */
8949
- type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8950
- /**
8951
- * HTTP header naming the Class-B task a request performs.
8952
- *
8953
- * @public
8954
- */
8955
- declare const TASK_TYPE_HEADER = "X-Anuma-Task-Type";
8956
- /**
8957
- * Build the task-type header, or nothing when no task is declared.
8958
- *
8959
- * Returns a spreadable object so call sites stay a single expression
8960
- * (`{ ...auth, ...taskTypeHeader(t) }`) and an undeclared task adds no header at
8961
- * all rather than an empty one — the portal treats absent and invalid
8962
- * identically, but an empty header value is noise on the wire and in logs.
8963
- *
8964
- * @public
8965
- */
8966
- declare function taskTypeHeader(taskType?: TaskType): Record<string, string>;
8967
-
8968
8968
  export { type AgentAgendaItem, type AgentAgendaTranscript, type AgentAnalysisSection, type AgentAnalysisTranscript, type AgentConfig, type AgentExampleConversation, type AgentManifest, type AgentMarketplaceContent, type AgentMarketplaceFamily, type AgentMarketplaceTranscript, type AgentPrimaryActionKind, type AgentRuntime, type AgentScheduleItem, type AgentTranscriptItem, type AgentTranscriptTone, type AgentUiMetadata, type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, BUILT_IN_TOOL_SETS, type BuildPromptOptions, type BuildPromptResult, CHUNKS_DISCARDED_ORIGIN, type ClientOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type CreateServerToolsFilterOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_MESSAGES, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, type DeleteApiV1AccountData, type DeleteApiV1AccountError, type DeleteApiV1AccountErrors, type DeleteApiV1AccountResponse, type DeleteApiV1AccountResponses, type DeleteApiV1AdminAgentsByIdData, type DeleteApiV1AdminAgentsByIdError, type DeleteApiV1AdminAgentsByIdErrors, type DeleteApiV1AdminAgentsByIdResponse, type DeleteApiV1AdminAgentsByIdResponses, type DeleteApiV1AdminAppsByAppIdApiKeysByIdData, type DeleteApiV1AdminAppsByAppIdApiKeysByIdError, type DeleteApiV1AdminAppsByAppIdApiKeysByIdErrors, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponse, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponses, type DeleteApiV1AdminAppsByIdData, type DeleteApiV1AdminAppsByIdError, type DeleteApiV1AdminAppsByIdErrors, type DeleteApiV1AdminAppsByIdResponse, type DeleteApiV1AdminAppsByIdResponses, type DeleteApiV1AdminPersonasByIdData, type DeleteApiV1AdminPersonasByIdError, type DeleteApiV1AdminPersonasByIdErrors, type DeleteApiV1AdminPersonasByIdResponse, type DeleteApiV1AdminPersonasByIdResponses, type DeleteApiV1AdminTextResetData, type DeleteApiV1AdminTextResetError, type DeleteApiV1AdminTextResetErrors, type DeleteApiV1AdminTextResetResponse, type DeleteApiV1AdminTextResetResponses, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdData, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdError, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdErrors, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponse, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponses, type DeleteApiV1DeveloperAppsByAppUuidData, type DeleteApiV1DeveloperAppsByAppUuidError, type DeleteApiV1DeveloperAppsByAppUuidErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyData, type DeleteApiV1DeveloperAppsByAppUuidPrivyError, type DeleteApiV1DeveloperAppsByAppUuidPrivyErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponse, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponses, type DeleteApiV1DeveloperAppsByAppUuidResponse, type DeleteApiV1DeveloperAppsByAppUuidResponses, type DeleteApiV1UserApiKeysByKeyIdData, type DeleteApiV1UserApiKeysByKeyIdError, type DeleteApiV1UserApiKeysByKeyIdErrors, type DeleteApiV1UserApiKeysByKeyIdResponse, type DeleteApiV1UserApiKeysByKeyIdResponses, type DeleteApiV1WalletsBindingByAddressData, type DeleteApiV1WalletsBindingByAddressError, type DeleteApiV1WalletsBindingByAddressErrors, type DeleteApiV1WalletsBindingByAddressResponse, type DeleteApiV1WalletsBindingByAddressResponses, type FileExtractionStrategy, type FileProcessingReason, type FileProcessingStatus, type GetApiV1AdminAppsByAppIdApiKeysByIdData, type GetApiV1AdminAppsByAppIdApiKeysByIdError, type GetApiV1AdminAppsByAppIdApiKeysByIdErrors, type GetApiV1AdminAppsByAppIdApiKeysByIdResponse, type GetApiV1AdminAppsByAppIdApiKeysByIdResponses, type GetApiV1AdminAppsByAppIdApiKeysData, type GetApiV1AdminAppsByAppIdApiKeysError, type GetApiV1AdminAppsByAppIdApiKeysErrors, type GetApiV1AdminAppsByAppIdApiKeysResponse, type GetApiV1AdminAppsByAppIdApiKeysResponses, type GetApiV1AdminAppsByIdData, type GetApiV1AdminAppsByIdError, type GetApiV1AdminAppsByIdErrors, type GetApiV1AdminAppsByIdResponse, type GetApiV1AdminAppsByIdResponses, type GetApiV1AdminAppsData, type GetApiV1AdminAppsError, type GetApiV1AdminAppsErrors, type GetApiV1AdminAppsResponse, type GetApiV1AdminAppsResponses, type GetApiV1AdminUsersLookupData, type GetApiV1AdminUsersLookupError, type GetApiV1AdminUsersLookupErrors, type GetApiV1AdminUsersLookupResponse, type GetApiV1AdminUsersLookupResponses, type GetApiV1AgentPreferencesData, type GetApiV1AgentPreferencesError, type GetApiV1AgentPreferencesErrors, type GetApiV1AgentPreferencesResponse, type GetApiV1AgentPreferencesResponses, type GetApiV1AgentsByIdData, type GetApiV1AgentsByIdError, type GetApiV1AgentsByIdErrors, type GetApiV1AgentsByIdResponse, type GetApiV1AgentsByIdResponses, type GetApiV1AgentsData, type GetApiV1AgentsError, type GetApiV1AgentsErrors, type GetApiV1AgentsResponse, type GetApiV1AgentsResponses, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1CreditsBalanceData, type GetApiV1CreditsBalanceError, type GetApiV1CreditsBalanceErrors, type GetApiV1CreditsBalanceResponse, type GetApiV1CreditsBalanceResponses, type GetApiV1CreditsPacksData, type GetApiV1CreditsPacksError, type GetApiV1CreditsPacksErrors, type GetApiV1CreditsPacksResponse, type GetApiV1CreditsPacksResponses, type GetApiV1DeveloperAppsByAppUuidApiKeysData, type GetApiV1DeveloperAppsByAppUuidApiKeysError, type GetApiV1DeveloperAppsByAppUuidApiKeysErrors, type GetApiV1DeveloperAppsByAppUuidApiKeysResponse, type GetApiV1DeveloperAppsByAppUuidApiKeysResponses, type GetApiV1DeveloperAppsByAppUuidData, type GetApiV1DeveloperAppsByAppUuidError, type GetApiV1DeveloperAppsByAppUuidErrors, type GetApiV1DeveloperAppsByAppUuidResponse, type GetApiV1DeveloperAppsByAppUuidResponses, type GetApiV1DeveloperAppsByAppUuidUsageData, type GetApiV1DeveloperAppsByAppUuidUsageError, type GetApiV1DeveloperAppsByAppUuidUsageErrors, type GetApiV1DeveloperAppsByAppUuidUsageResponse, type GetApiV1DeveloperAppsByAppUuidUsageResponses, type GetApiV1DeveloperAppsByAppUuidUsageUsersData, type GetApiV1DeveloperAppsByAppUuidUsageUsersError, type GetApiV1DeveloperAppsByAppUuidUsageUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponses, type GetApiV1DeveloperAppsByAppUuidUsersByAddressData, type GetApiV1DeveloperAppsByAppUuidUsersByAddressError, type GetApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type GetApiV1DeveloperAppsByAppUuidUsersData, type GetApiV1DeveloperAppsByAppUuidUsersError, type GetApiV1DeveloperAppsByAppUuidUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsersResponses, type GetApiV1DeveloperAppsData, type GetApiV1DeveloperAppsError, type GetApiV1DeveloperAppsErrors, type GetApiV1DeveloperAppsResponse, type GetApiV1DeveloperAppsResponses, type GetApiV1DeveloperBillingData, type GetApiV1DeveloperBillingError, type GetApiV1DeveloperBillingErrors, type GetApiV1DeveloperBillingResponse, type GetApiV1DeveloperBillingResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1PersonasByIdData, type GetApiV1PersonasByIdError, type GetApiV1PersonasByIdErrors, type GetApiV1PersonasByIdResponse, type GetApiV1PersonasByIdResponses, type GetApiV1PersonasData, type GetApiV1PersonasError, type GetApiV1PersonasErrors, type GetApiV1PersonasResponse, type GetApiV1PersonasResponses, type GetApiV1PhoneCallsByCallIdData, type GetApiV1PhoneCallsByCallIdError, type GetApiV1PhoneCallsByCallIdErrors, type GetApiV1PhoneCallsByCallIdResponse, type GetApiV1PhoneCallsByCallIdResponses, type GetApiV1SubscriptionsPlansData, type GetApiV1SubscriptionsPlansError, type GetApiV1SubscriptionsPlansErrors, type GetApiV1SubscriptionsPlansResponse, type GetApiV1SubscriptionsPlansResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetApiV1ToolsData, type GetApiV1ToolsError, type GetApiV1ToolsErrors, type GetApiV1ToolsResponse, type GetApiV1ToolsResponses, type GetApiV1UsageInferenceWeeklyData, type GetApiV1UsageInferenceWeeklyResponse, type GetApiV1UsageInferenceWeeklyResponses, type GetApiV1UsageModelsData, type GetApiV1UsageModelsError, type GetApiV1UsageModelsErrors, type GetApiV1UsageModelsResponse, type GetApiV1UsageModelsResponses, type GetApiV1UserApiKeysData, type GetApiV1UserApiKeysError, type GetApiV1UserApiKeysErrors, type GetApiV1UserApiKeysResponse, type GetApiV1UserApiKeysResponses, type GetApiV1WalletsBindingData, type GetApiV1WalletsBindingError, type GetApiV1WalletsBindingErrors, type GetApiV1WalletsBindingResponse, type GetApiV1WalletsBindingResponses, type GetApiV1ZetaCreditRateData, type GetApiV1ZetaCreditRateResponse, type GetApiV1ZetaCreditRateResponses, type GetApiV1ZetaMarketData, type GetApiV1ZetaMarketResponse, type GetApiV1ZetaMarketResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersAddCreditsRequest, type HandlersAddCreditsResponse, type HandlersAgentListItem, type HandlersAgentListResponse, type HandlersAgentResponse, type HandlersApiKeyResponse, type HandlersApiKeyWithKeyResponse, type HandlersAppConfig, type HandlersAppResponse, type HandlersAppUsageResponse, type HandlersAppUserUsageResponse, type HandlersBillingHistoryResponse, type HandlersBillingRecordResponse, type HandlersBindRequest, type HandlersBoundWalletResponse, type HandlersCancelScheduledDowngradeResponse, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersConfigurePrivyRequest, type HandlersCreateAgentRequest, type HandlersCreateApiKeyRequest, type HandlersCreateAppRequest, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCreditPackCheckoutRequest, type HandlersCreateCustomerPortalRequest, type HandlersCreateDeveloperAppRequest, type HandlersCreatePersonaRequest, type HandlersCreatePhoneCallRequest, type HandlersCreditBalanceResponse, type HandlersCreditPack, type HandlersCreditPacksResponse, type HandlersCreditRateResponse, type HandlersCustomerPortalResponse, type HandlersDeveloperApiKeyRequest, type HandlersDeveloperApiKeyResponse, type HandlersDeveloperApiKeyWithSecretResponse, type HandlersDeveloperAppResponse, type HandlersDeveloperUserResponse, type HandlersExchangeRequest, type HandlersExpiringCredits, type HandlersFundDeveloperAppRequest, type HandlersGeneratedApiKey, type HandlersGetToolsResponse, type HandlersHealthResponse, type HandlersInferenceWeeklyResponse, type HandlersListApiKeysResponse, type HandlersListAppsResponse, type HandlersListDeveloperApiKeysResponse, type HandlersListDeveloperAppsResponse, type HandlersListResponse, type HandlersListTotals, type HandlersListUserApiKeysResponse, type HandlersListUsersResponse, type HandlersModelToolUsageItem, type HandlersModelUsageItem, type HandlersNonceResponse, type HandlersPaginationResponse, type HandlersPersonaListResponse, type HandlersPersonaResponse, type HandlersPhoneCallResponse, type HandlersPhoneCallTranscriptEntry, type HandlersProInfo, type HandlersRedeemTokensRequest, type HandlersRedeemTokensResponse, type HandlersRefreshRequest, type HandlersRenewSubscriptionResponse, type HandlersRevokeRequest, type HandlersScheduleDowngradeRequest, type HandlersScheduleDowngradeResponse, type HandlersSeedApiKeyInput, type HandlersSeedAppInput, type HandlersSeedAppsRequest, type HandlersSeedAppsResponse, type HandlersSetSubscriptionTierRequest, type HandlersSetSubscriptionTierResponse, type HandlersSetUserAgentPreferenceRequest, type HandlersSubscriptionPlan, type HandlersSubscriptionPlansResponse, type HandlersSubscriptionStatusResponse, type HandlersTokenResponse, type HandlersTool, type HandlersToolCallDetailItem, type HandlersTopUpUserRequest, type HandlersUpdateAgentRequest, type HandlersUpdateApiKeyRequest, type HandlersUpdateAppRequest, type HandlersUpdateDeveloperAppRequest, type HandlersUpdatePersonaRequest, type HandlersUpdateUserLimitRequest, type HandlersUpgradeSubscriptionRequest, type HandlersUpgradeSubscriptionResponse, type HandlersUsageByModelResponse, type HandlersUsagePeriod, type HandlersUsageTimeseriesPoint, type HandlersUsageTotals, type HandlersUserAgentPreferenceResponse, type HandlersUserAgentPreferencesListResponse, type HandlersUserApiKeyRequest, type HandlersUserApiKeyResponse, type HandlersUserApiKeyWithSecretResponse, type HandlersUserLookupAccount, type HandlersUserLookupEnrollment, type HandlersUserLookupResponse, type HandlersUserLookupTextReg, type HandlersUserUsageResponse, type HandlersWalletDetails, type HandlersWeeklyInferenceItem, type HandlersZetaMarketResponse, type LazyStoredConversation, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionTool, type LlmapiChatCompletionToolChoice, type LlmapiChatCompletionUsage, type OpenaiChatCompletionChoice as LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMcpTool, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiPortalChatCompletionRequest, type LlmapiPortalChatCompletionResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseTool, type LlmapiResponseToolChoice, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiToolCall, type LlmapiToolCallEvent, type LlmapiToolCallFunction, type Logger, MULTILINE_FIELD_MAX, type McpToolSchema, type MessageRedactionResult, type NerDetector, type Options, PII_PATTERNS, type PatchApiV1DeveloperAppsByAppUuidData, type PatchApiV1DeveloperAppsByAppUuidError, type PatchApiV1DeveloperAppsByAppUuidErrors, type PatchApiV1DeveloperAppsByAppUuidResponse, type PatchApiV1DeveloperAppsByAppUuidResponses, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressData, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressError, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PiiSpan, type PostApiV1AdminAddCreditsData, type PostApiV1AdminAddCreditsError, type PostApiV1AdminAddCreditsErrors, type PostApiV1AdminAddCreditsResponse, type PostApiV1AdminAddCreditsResponses, type PostApiV1AdminAgentsData, type PostApiV1AdminAgentsError, type PostApiV1AdminAgentsErrors, type PostApiV1AdminAgentsResponse, type PostApiV1AdminAgentsResponses, type PostApiV1AdminAppsByAppIdApiKeysData, type PostApiV1AdminAppsByAppIdApiKeysError, type PostApiV1AdminAppsByAppIdApiKeysErrors, type PostApiV1AdminAppsByAppIdApiKeysResponse, type PostApiV1AdminAppsByAppIdApiKeysResponses, type PostApiV1AdminAppsData, type PostApiV1AdminAppsError, type PostApiV1AdminAppsErrors, type PostApiV1AdminAppsResponse, type PostApiV1AdminAppsResponses, type PostApiV1AdminPersonasData, type PostApiV1AdminPersonasError, type PostApiV1AdminPersonasErrors, type PostApiV1AdminPersonasResponse, type PostApiV1AdminPersonasResponses, type PostApiV1AdminSeedAppsData, type PostApiV1AdminSeedAppsError, type PostApiV1AdminSeedAppsErrors, type PostApiV1AdminSeedAppsResponse, type PostApiV1AdminSeedAppsResponses, type PostApiV1AdminSubscriptionTierData, type PostApiV1AdminSubscriptionTierError, type PostApiV1AdminSubscriptionTierErrors, type PostApiV1AdminSubscriptionTierResponse, type PostApiV1AdminSubscriptionTierResponses, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1CreditsPurchaseData, type PostApiV1CreditsPurchaseError, type PostApiV1CreditsPurchaseErrors, type PostApiV1CreditsPurchaseResponse, type PostApiV1CreditsPurchaseResponses, type PostApiV1CreditsRedeemTokensData, type PostApiV1CreditsRedeemTokensError, type PostApiV1CreditsRedeemTokensErrors, type PostApiV1CreditsRedeemTokensResponse, type PostApiV1CreditsRedeemTokensResponses, type PostApiV1DeveloperAppsByAppUuidApiKeysData, type PostApiV1DeveloperAppsByAppUuidApiKeysError, type PostApiV1DeveloperAppsByAppUuidApiKeysErrors, type PostApiV1DeveloperAppsByAppUuidApiKeysResponse, type PostApiV1DeveloperAppsByAppUuidApiKeysResponses, type PostApiV1DeveloperAppsByAppUuidFundData, type PostApiV1DeveloperAppsByAppUuidFundError, type PostApiV1DeveloperAppsByAppUuidFundErrors, type PostApiV1DeveloperAppsByAppUuidFundResponse, type PostApiV1DeveloperAppsByAppUuidFundResponses, type PostApiV1DeveloperAppsByAppUuidPrivyData, type PostApiV1DeveloperAppsByAppUuidPrivyError, type PostApiV1DeveloperAppsByAppUuidPrivyErrors, type PostApiV1DeveloperAppsByAppUuidPrivyResponse, type PostApiV1DeveloperAppsByAppUuidPrivyResponses, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpData, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpError, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpErrors, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponse, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponses, type PostApiV1DeveloperAppsData, type PostApiV1DeveloperAppsError, type PostApiV1DeveloperAppsErrors, type PostApiV1DeveloperAppsResponse, type PostApiV1DeveloperAppsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1PhoneCallsData, type PostApiV1PhoneCallsError, type PostApiV1PhoneCallsErrors, type PostApiV1PhoneCallsResponse, type PostApiV1PhoneCallsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCancelScheduledDowngradeData, type PostApiV1SubscriptionsCancelScheduledDowngradeError, type PostApiV1SubscriptionsCancelScheduledDowngradeErrors, type PostApiV1SubscriptionsCancelScheduledDowngradeResponse, type PostApiV1SubscriptionsCancelScheduledDowngradeResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsScheduleDowngradeData, type PostApiV1SubscriptionsScheduleDowngradeError, type PostApiV1SubscriptionsScheduleDowngradeErrors, type PostApiV1SubscriptionsScheduleDowngradeResponse, type PostApiV1SubscriptionsScheduleDowngradeResponses, type PostApiV1SubscriptionsUpgradeData, type PostApiV1SubscriptionsUpgradeError, type PostApiV1SubscriptionsUpgradeErrors, type PostApiV1SubscriptionsUpgradeResponse, type PostApiV1SubscriptionsUpgradeResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, type PostApiV1UserApiKeysData, type PostApiV1UserApiKeysError, type PostApiV1UserApiKeysErrors, type PostApiV1UserApiKeysResponse, type PostApiV1UserApiKeysResponses, type PostApiV1WalletsBindingData, type PostApiV1WalletsBindingError, type PostApiV1WalletsBindingErrors, type PostApiV1WalletsBindingNonceData, type PostApiV1WalletsBindingNonceError, type PostApiV1WalletsBindingNonceErrors, type PostApiV1WalletsBindingNonceResponse, type PostApiV1WalletsBindingNonceResponses, type PostApiV1WalletsBindingResponse, type PostApiV1WalletsBindingResponses, type PostApiV1WebhooksRevenuecatData, type PostApiV1WebhooksRevenuecatError, type PostApiV1WebhooksRevenuecatErrors, type PostApiV1WebhooksRevenuecatResponse, type PostApiV1WebhooksRevenuecatResponses, type PostAuthOauthByProviderExchangeData, type PostAuthOauthByProviderExchangeError, type PostAuthOauthByProviderExchangeErrors, type PostAuthOauthByProviderExchangeResponse, type PostAuthOauthByProviderExchangeResponses, type PostAuthOauthByProviderRefreshData, type PostAuthOauthByProviderRefreshError, type PostAuthOauthByProviderRefreshErrors, type PostAuthOauthByProviderRefreshResponse, type PostAuthOauthByProviderRefreshResponses, type PostAuthOauthByProviderRevokeData, type PostAuthOauthByProviderRevokeError, type PostAuthOauthByProviderRevokeErrors, type PostAuthOauthByProviderRevokeResponse, type PostAuthOauthByProviderRevokeResponses, type PromptContext, type PromptSection, type PromptTemplates, type PutApiV1AdminAgentsByIdData, type PutApiV1AdminAgentsByIdError, type PutApiV1AdminAgentsByIdErrors, type PutApiV1AdminAgentsByIdResponse, type PutApiV1AdminAgentsByIdResponses, type PutApiV1AdminAppsByAppIdApiKeysByIdData, type PutApiV1AdminAppsByAppIdApiKeysByIdError, type PutApiV1AdminAppsByAppIdApiKeysByIdErrors, type PutApiV1AdminAppsByAppIdApiKeysByIdResponse, type PutApiV1AdminAppsByAppIdApiKeysByIdResponses, type PutApiV1AdminAppsByIdData, type PutApiV1AdminAppsByIdError, type PutApiV1AdminAppsByIdErrors, type PutApiV1AdminAppsByIdResponse, type PutApiV1AdminAppsByIdResponses, type PutApiV1AdminPersonasByIdData, type PutApiV1AdminPersonasByIdError, type PutApiV1AdminPersonasByIdErrors, type PutApiV1AdminPersonasByIdResponse, type PutApiV1AdminPersonasByIdResponses, type PutApiV1AgentsByIdPreferenceData, type PutApiV1AgentsByIdPreferenceError, type PutApiV1AgentsByIdPreferenceErrors, type PutApiV1AgentsByIdPreferenceResponse, type PutApiV1AgentsByIdPreferenceResponses, type QuantizedEmbedding, type RedactionResult, type ReservationReceipt, type ResponseErrorResponse, type SelectServerSideToolsOptions, type SkillConfig, type SkillJourneyDefinition, type SkillJourneyField, type SkillJourneyFieldType, SseIdleTimeoutError, type SseKeepaliveOptions, type StyleAnalysisSchedule, TASK_TYPE_HEADER, TOOL_CATALOG, TOOL_RESULT_ORIGIN, type TaskType, type ToolSet, activatedToolSetNames, analyzeStyle, applyToolSets, attachFileContextToLastUserMessage, buildAttachedFilesText, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, clearLazyTitleCache, consoleLogger, cosineInt8, createServerToolsFilter, createStreamingDeAnonymizer, decodeChunkVector, decryptConversationTitle, defaultServerToolsFilter, deleteApiV1Account, deleteApiV1AdminAgentsById, deleteApiV1AdminAppsByAppIdApiKeysById, deleteApiV1AdminAppsById, deleteApiV1AdminPersonasById, deleteApiV1AdminTextReset, deleteApiV1DeveloperAppsByAppUuid, deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId, deleteApiV1DeveloperAppsByAppUuidPrivy, deleteApiV1UserApiKeysByKeyId, deleteApiV1WalletsBindingByAddress, dequantizeEmbedding, encodeChunkVector, expandToolSetsAdditive, extractReservationReceipts, formatFileProcessingNotes, getApiV1AdminApps, getApiV1AdminAppsByAppIdApiKeys, getApiV1AdminAppsByAppIdApiKeysById, getApiV1AdminAppsById, getApiV1AdminUsersLookup, getApiV1AgentPreferences, getApiV1Agents, getApiV1AgentsById, getApiV1Config, getApiV1CreditsBalance, getApiV1CreditsPacks, getApiV1DeveloperApps, getApiV1DeveloperAppsByAppUuid, getApiV1DeveloperAppsByAppUuidApiKeys, getApiV1DeveloperAppsByAppUuidUsage, getApiV1DeveloperAppsByAppUuidUsageUsers, getApiV1DeveloperAppsByAppUuidUsers, getApiV1DeveloperAppsByAppUuidUsersByAddress, getApiV1DeveloperBilling, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1Personas, getApiV1PersonasById, getApiV1PhoneCallsByCallId, getApiV1SubscriptionsPlans, getApiV1SubscriptionsStatus, getApiV1Tools, getApiV1UsageInferenceWeekly, getApiV1UsageModels, getApiV1UserApiKeys, getApiV1WalletsBinding, getApiV1ZetaCreditRate, getApiV1ZetaMarket, getCostMicroUsd, getCreditsUsed, getHealth, getImageModel, getLogger, getToolCallEvents, isAttachedFilesText, isPiiRedactor, noopLogger, patchApiV1DeveloperAppsByAppUuid, patchApiV1DeveloperAppsByAppUuidUsersByAddress, postApiV1AdminAddCredits, postApiV1AdminAgents, postApiV1AdminApps, postApiV1AdminAppsByAppIdApiKeys, postApiV1AdminPersonas, postApiV1AdminSeedApps, postApiV1AdminSubscriptionTier, postApiV1ChatCompletions, postApiV1CreditsPurchase, postApiV1CreditsRedeemTokens, postApiV1DeveloperApps, postApiV1DeveloperAppsByAppUuidApiKeys, postApiV1DeveloperAppsByAppUuidFund, postApiV1DeveloperAppsByAppUuidPrivy, postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp, postApiV1Embeddings, postApiV1PhoneCalls, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCancelScheduledDowngrade, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsScheduleDowngrade, postApiV1SubscriptionsUpgrade, postApiV1SubscriptionsWebhook, postApiV1UserApiKeys, postApiV1WalletsBinding, postApiV1WalletsBindingNonce, postApiV1WebhooksRevenuecat, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke, putApiV1AdminAgentsById, putApiV1AdminAppsByAppIdApiKeysById, putApiV1AdminAppsById, putApiV1AdminPersonasById, putApiV1AgentsByIdPreference, quantizeEmbedding, renderTemplate, resolvePiiRedactor, sanitizeQuotes, selectServerSideTools, setLogger, shouldAnalyzeStyle, taskTypeHeader, toolSetSystemPrompts, withSseKeepalive };