@wildo-ai/external-connectors-models 1.1.11 → 1.1.13

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.
Files changed (109) hide show
  1. package/dist/esm/companion-exports.d.ts.map +1 -1
  2. package/dist/esm/companion-exports.js.map +1 -1
  3. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts +10 -0
  4. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts.map +1 -1
  5. package/dist/esm/core/commons.external-connectors-models.schemas.js +10 -0
  6. package/dist/esm/core/commons.external-connectors-models.schemas.js.map +1 -1
  7. package/dist/esm/core/oauth2.enums.d.ts.map +1 -1
  8. package/dist/esm/core/oauth2.enums.js.map +1 -1
  9. package/dist/esm/core/operation-classification.external-connectors-models.schemas.d.ts.map +1 -1
  10. package/dist/esm/core/operation-classification.external-connectors-models.schemas.js.map +1 -1
  11. package/dist/esm/core/operations.external-connectors-models.schemas.d.ts.map +1 -1
  12. package/dist/esm/core/operations.external-connectors-models.schemas.js.map +1 -1
  13. package/dist/esm/core/security.external-connectors-models.schemas.d.ts.map +1 -1
  14. package/dist/esm/core/security.external-connectors-models.schemas.js.map +1 -1
  15. package/dist/esm/index.d.ts +6 -0
  16. package/dist/esm/index.d.ts.map +1 -1
  17. package/dist/esm/index.js +6 -0
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts +20 -46
  20. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts.map +1 -1
  21. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js +34 -5
  22. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js.map +1 -1
  23. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts +56 -3
  24. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts.map +1 -1
  25. package/dist/esm/protocols/billing.standard-interface.schemas.js +15 -2
  26. package/dist/esm/protocols/billing.standard-interface.schemas.js.map +1 -1
  27. package/dist/esm/protocols/content-safety.external-connectors-models.schemas.d.ts.map +1 -1
  28. package/dist/esm/protocols/content-safety.external-connectors-models.schemas.js.map +1 -1
  29. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts.map +1 -1
  30. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js.map +1 -1
  31. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.d.ts +157 -0
  32. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.d.ts.map +1 -0
  33. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.js +134 -0
  34. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.js.map +1 -0
  35. package/dist/esm/protocols/email-inbound.standard-interface.schemas.d.ts +85 -0
  36. package/dist/esm/protocols/email-inbound.standard-interface.schemas.d.ts.map +1 -1
  37. package/dist/esm/protocols/email-inbound.standard-interface.schemas.js +46 -2
  38. package/dist/esm/protocols/email-inbound.standard-interface.schemas.js.map +1 -1
  39. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts.map +1 -1
  40. package/dist/esm/protocols/email.external-connectors-models.schemas.js.map +1 -1
  41. package/dist/esm/protocols/email.standard-interface.schemas.d.ts.map +1 -1
  42. package/dist/esm/protocols/email.standard-interface.schemas.js.map +1 -1
  43. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts +49 -6
  44. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts.map +1 -1
  45. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js +89 -6
  46. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js.map +1 -1
  47. package/dist/esm/protocols/file-storage.standard-interface.d.ts +9 -2
  48. package/dist/esm/protocols/file-storage.standard-interface.d.ts.map +1 -1
  49. package/dist/esm/protocols/file-storage.standard-interface.js +6 -0
  50. package/dist/esm/protocols/file-storage.standard-interface.js.map +1 -1
  51. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts.map +1 -1
  52. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js.map +1 -1
  53. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.d.ts +254 -0
  54. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.d.ts.map +1 -0
  55. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.js +480 -0
  56. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.js.map +1 -0
  57. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.d.ts.map +1 -1
  58. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.js.map +1 -1
  59. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts +95 -1
  60. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts.map +1 -1
  61. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js +110 -0
  62. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js.map +1 -1
  63. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts.map +1 -1
  64. package/dist/esm/protocols/image.external-connectors-models.schemas.js.map +1 -1
  65. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts +95 -3
  66. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts.map +1 -1
  67. package/dist/esm/protocols/llm.external-connectors-models.schemas.js +147 -15
  68. package/dist/esm/protocols/llm.external-connectors-models.schemas.js.map +1 -1
  69. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts.map +1 -1
  70. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js.map +1 -1
  71. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts.map +1 -1
  72. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js.map +1 -1
  73. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts.map +1 -1
  74. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js.map +1 -1
  75. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.d.ts +52 -0
  76. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.d.ts.map +1 -0
  77. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.js +132 -0
  78. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.js.map +1 -0
  79. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.d.ts +111 -0
  80. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.d.ts.map +1 -0
  81. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.js +203 -0
  82. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.js.map +1 -0
  83. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.d.ts +6 -0
  84. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.d.ts.map +1 -1
  85. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.js +13 -7
  86. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.js.map +1 -1
  87. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.d.ts +50 -0
  88. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.d.ts.map +1 -0
  89. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.js +30 -0
  90. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.js.map +1 -0
  91. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts +730 -17
  92. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts.map +1 -1
  93. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js +822 -20
  94. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js.map +1 -1
  95. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.d.ts +73 -0
  96. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.d.ts.map +1 -0
  97. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.js +82 -0
  98. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.js.map +1 -0
  99. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts.map +1 -1
  100. package/dist/esm/protocols/sms.external-connectors-models.schemas.js.map +1 -1
  101. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts +79 -1
  102. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts.map +1 -1
  103. package/dist/esm/protocols/sms.standard-interface.schemas.js +93 -0
  104. package/dist/esm/protocols/sms.standard-interface.schemas.js.map +1 -1
  105. package/dist/esm/protocols/subject-erasure-effect.standard-interface.d.ts.map +1 -1
  106. package/dist/esm/protocols/subject-erasure-effect.standard-interface.js.map +1 -1
  107. package/dist/tsconfig.build.tsbuildinfo +1 -1
  108. package/package.json +5 -5
  109. package/dist/esm/.native.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"image.external-connectors-models.schemas.js","sourceRoot":"","sources":["../../../../src/protocols/image.external-connectors-models.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,sCAAsC,GACrC,MAAM,oDAAoD,CAAA;AAC7D,OAAO,EACL,uCAAuC,GAExC,MAAM,uDAAuD,CAAA;AAE9D,iEAAiE;AACjE,iBAAiB;AACjB,WAAW;AACX,wEAAwE;AACxE,wEAAwE;AACxE,yEAAyE;AACzE,2DAA2D;AAC3D,EAAE;AACF,4EAA4E;AAC5E,gFAAgF;AAChF,6EAA6E;AAC7E,0EAA0E;AAC1E,yEAAyE;AACzE,iEAAiE;AAEjE,MAAM,CAAN,IAAY,mBAkBX;AAlBD,WAAY,mBAAmB;IAC7B,sFAAsF;IACtF;;;;;OAKG;IACH,0DAAmC,CAAA;IACnC;;;OAGG;IACH,8DAAuC,CAAA;IACvC,+CAA+C;IAC/C,0DAAmC,CAAA;IACnC,uBAAuB;IACvB,oDAA6B,CAAA;AAC/B,CAAC,EAlBW,mBAAmB,KAAnB,mBAAmB,QAkB9B;AAED,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,yEA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EAAkE;AAElE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,GAAG,EAAE;QACP,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4BAA4B,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAGH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,6DAA6D;IAC7D,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC;AAGH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IACnD,2DAA2D;IAC3D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\"\nimport {\n ExternalProvider_ExchangeProtocol_Kind,\n } from \"../core/commons.external-connectors-models.schemas\"\nimport {\n ExternalProvider_OperationContextSchema,\n ExternalProvider_OperationDefinition_Base,\n} from \"../core/operations.external-connectors-models.schemas\"\n\n//===============================================================\n// Image Provider\n// --------\n// Text-to-image generation providers (gpt-image, DALL·E, Imagen, Flux).\n// Serves the IMAGE artifact modality of the actor-agent system. This is\n// the transport contract; the agent declares `outputModality: IMAGE` and\n// the executor resolves it to an `IMAGE_PROVIDER` binding.\n//\n// Deliberately a SEPARATE protocol from `LLM_PROVIDER` (framework mindset —\n// image generation is already a distinct `EngineCapability.AI_IMAGE_GENERATION`\n// / `BUILTIN_PROVIDER_CAPABILITY.IMAGE_GENERATION`): its I/O is image bytes,\n// and its parameters (size / quality / background) share nothing with LLM\n// sampling (temperature / topP). Overloading LLM would conflate the two.\n//===============================================================\n\nexport enum ImageProvider_Model {\n // OpenAI — ids + parameter support verified LIVE against the images API (2026-07-16).\n /**\n * OpenAI's newest text-to-image model (Apr 2026). Highest quality, but\n * does NOT support `background: transparent` (verified live: the API\n * rejects it) — pair it with `Background.AUTO` plus the engine's\n * `removeSolidBackground` derivation tool when transparency is needed.\n */\n OPEN_AI_GPT_IMAGE_2 = \"gpt-image-2\",\n /**\n * Transparent-capable upgrade of gpt-image-1 (verified live) — the wired\n * default for logo generation, whose pipeline is transparent-first.\n */\n OPEN_AI_GPT_IMAGE_1_5 = \"gpt-image-1.5\",\n /** Previous-generation text-to-image model. */\n OPEN_AI_GPT_IMAGE_1 = \"gpt-image-1\",\n /** OpenAI DALL·E 3. */\n OPEN_AI_DALL_E_3 = \"dall-e-3\",\n}\n\nexport enum ImageProvider_OperationKey {\n /** Text (+ optional reference images) → one or more generated images. */\n GENERATE_IMAGE = \"image.generateImage\",\n}\n\n// ===============================================================\n// Image generation parameters (the config — NOT LLM sampling)\n// ===============================================================\n\n/**\n * Canvas size of the generated image. `AUTO` lets the provider pick the\n * best fit for the prompt. Values mirror gpt-image-1's supported sizes.\n */\nexport enum ImageProvider_Size {\n SQUARE_1024 = \"1024x1024\",\n PORTRAIT_1024_1536 = \"1024x1536\",\n LANDSCAPE_1536_1024 = \"1536x1024\",\n AUTO = \"auto\",\n}\n\n/** Rendering quality / cost tier. */\nexport enum ImageProvider_Quality {\n LOW = \"low\",\n MEDIUM = \"medium\",\n HIGH = \"high\",\n AUTO = \"auto\",\n}\n\n/**\n * Background composition. `TRANSPARENT` is the clean default for a logo\n * master — it rasterizes losslessly into favicon / monochrome / dark-light\n * derivations (see `BrandLogoBackgroundTreatment`).\n */\nexport enum ImageProvider_Background {\n TRANSPARENT = \"transparent\",\n OPAQUE = \"opaque\",\n AUTO = \"auto\",\n}\n\nexport enum ImageProvider_OutputFormat {\n PNG = \"png\",\n JPEG = \"jpeg\",\n WEBP = \"webp\",\n}\n\nexport const ImageProvider_OperationModelConfiguration_Schema = z.object({\n model: z.string(),\n providerRef: z.string(),\n size: z.enum(ImageProvider_Size).optional(),\n quality: z.enum(ImageProvider_Quality).optional(),\n background: z.enum(ImageProvider_Background).optional(),\n outputFormat: z.enum(ImageProvider_OutputFormat).optional(),\n /** Number of images to generate per call (default 1). */\n n: z.number().int().positive().optional(),\n /** Random seed for deterministic output where the provider supports it. */\n seed: z.number().optional(),\n});\nexport type ImageProvider_OperationModelConfiguration = z.infer<typeof ImageProvider_OperationModelConfiguration_Schema>;\n\n// ===============================================================\n// Image Operations Context\n// ===============================================================\n\nexport const ImageProvider_UsageSchema = z.object({\n /** Number of images actually returned. */\n imageCount: z.number().int().nonnegative().optional(),\n /** Provider-reported input tokens, when the model reports them (gpt-image does). */\n inputTokens: z.number().optional(),\n /** Provider-reported output (image) tokens, when reported. */\n outputTokens: z.number().optional(),\n});\nexport type ImageProvider_Usage = z.infer<typeof ImageProvider_UsageSchema>;\n\nexport const ImageProvider_ExecutionTransportMetadataSchema = z.object({\n protocolKind: z.literal(ExternalProvider_ExchangeProtocol_Kind.IMAGE_PROVIDER),\n providerRef: z.string(),\n model: z.string().optional(),\n});\nexport type ImageProvider_ExecutionTransportMetadata = z.infer<typeof ImageProvider_ExecutionTransportMetadataSchema>;\n\nexport const ImageProvider_OperationContext_BaseSchema = ExternalProvider_OperationContextSchema.extend({\n usage: ImageProvider_UsageSchema.optional(),\n executionTime: z.number().optional(),\n finishedAt: z.string().optional(),\n transport: ImageProvider_ExecutionTransportMetadataSchema.optional(),\n});\nexport type ImageProvider_OperationContext_Base = z.infer<typeof ImageProvider_OperationContext_BaseSchema>;\n\nexport type ImageProvider_OperationDefinitionBase = ExternalProvider_OperationDefinition_Base & {\n imageModelConfigurationSchema?: z.ZodSchema<any>,\n operationContextSchema: typeof ImageProvider_OperationContext_BaseSchema,\n supportedModels?: string[],\n}\n\n// ===============================================================\n// Image I/O Schemas\n// ===============================================================\n\n/** A reference image passed as generation conditioning (URL or data URI). */\nexport const ImageProvider_ReferenceImageSchema = z.object({\n image: z.union([\n z.url(),\n z.string().regex(/^data:image\\/[^;]+;base64,/),\n ]),\n});\nexport type ImageProvider_ReferenceImage = z.infer<typeof ImageProvider_ReferenceImageSchema>;\n\n// Generate Image Operation\nexport const ImageProvider_GenerateImageInputSchema = z.object({\n prompt: z.string(),\n /** Optional conditioning images (edit / variation flows). */\n referenceImages: z.array(ImageProvider_ReferenceImageSchema).optional(),\n});\nexport type ImageProvider_GenerateImageInput = z.infer<typeof ImageProvider_GenerateImageInputSchema>;\n\n/** One generated image. `base64` is the raw payload; `mediaType` its MIME. */\nexport const ImageProvider_GeneratedImageSchema = z.object({\n base64: z.string(),\n mediaType: z.string(),\n width: z.number().int().positive().optional(),\n height: z.number().int().positive().optional(),\n});\nexport type ImageProvider_GeneratedImage = z.infer<typeof ImageProvider_GeneratedImageSchema>;\n\nexport const ImageProvider_GenerateImageOutputSchema = z.object({\n images: z.array(ImageProvider_GeneratedImageSchema),\n /** Provider-revised prompt, when the model returns one. */\n revisedPrompt: z.string().optional(),\n});\nexport type ImageProvider_GenerateImageOutput = z.infer<typeof ImageProvider_GenerateImageOutputSchema>;\n\n"]}
1
+ {"version":3,"file":"image.external-connectors-models.schemas.js","sourceRoot":"","sources":["../../../src/protocols/image.external-connectors-models.schemas.ts"],"names":[],"mappings":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AAC;IACzD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IACnD,2DAA2D;IAC3D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\"\nimport {\n ExternalProvider_ExchangeProtocol_Kind,\n } from \"../core/commons.external-connectors-models.schemas\"\nimport {\n ExternalProvider_OperationContextSchema,\n ExternalProvider_OperationDefinition_Base,\n} from \"../core/operations.external-connectors-models.schemas\"\n\n//===============================================================\n// Image Provider\n// --------\n// Text-to-image generation providers (gpt-image, DALL·E, Imagen, Flux).\n// Serves the IMAGE artifact modality of the actor-agent system. This is\n// the transport contract; the agent declares `outputModality: IMAGE` and\n// the executor resolves it to an `IMAGE_PROVIDER` binding.\n//\n// Deliberately a SEPARATE protocol from `LLM_PROVIDER` (framework mindset —\n// image generation is already a distinct `EngineCapability.AI_IMAGE_GENERATION`\n// / `BUILTIN_PROVIDER_CAPABILITY.IMAGE_GENERATION`): its I/O is image bytes,\n// and its parameters (size / quality / background) share nothing with LLM\n// sampling (temperature / topP). Overloading LLM would conflate the two.\n//===============================================================\n\nexport enum ImageProvider_Model {\n // OpenAI — ids + parameter support verified LIVE against the images API (2026-07-16).\n /**\n * OpenAI's newest text-to-image model (Apr 2026). Highest quality, but\n * does NOT support `background: transparent` (verified live: the API\n * rejects it) — pair it with `Background.AUTO` plus the engine's\n * `removeSolidBackground` derivation tool when transparency is needed.\n */\n OPEN_AI_GPT_IMAGE_2 = \"gpt-image-2\",\n /**\n * Transparent-capable upgrade of gpt-image-1 (verified live) — the wired\n * default for logo generation, whose pipeline is transparent-first.\n */\n OPEN_AI_GPT_IMAGE_1_5 = \"gpt-image-1.5\",\n /** Previous-generation text-to-image model. */\n OPEN_AI_GPT_IMAGE_1 = \"gpt-image-1\",\n /** OpenAI DALL·E 3. */\n OPEN_AI_DALL_E_3 = \"dall-e-3\",\n}\n\nexport enum ImageProvider_OperationKey {\n /** Text (+ optional reference images) → one or more generated images. */\n GENERATE_IMAGE = \"image.generateImage\",\n}\n\n// ===============================================================\n// Image generation parameters (the config — NOT LLM sampling)\n// ===============================================================\n\n/**\n * Canvas size of the generated image. `AUTO` lets the provider pick the\n * best fit for the prompt. Values mirror gpt-image-1's supported sizes.\n */\nexport enum ImageProvider_Size {\n SQUARE_1024 = \"1024x1024\",\n PORTRAIT_1024_1536 = \"1024x1536\",\n LANDSCAPE_1536_1024 = \"1536x1024\",\n AUTO = \"auto\",\n}\n\n/** Rendering quality / cost tier. */\nexport enum ImageProvider_Quality {\n LOW = \"low\",\n MEDIUM = \"medium\",\n HIGH = \"high\",\n AUTO = \"auto\",\n}\n\n/**\n * Background composition. `TRANSPARENT` is the clean default for a logo\n * master — it rasterizes losslessly into favicon / monochrome / dark-light\n * derivations (see `BrandLogoBackgroundTreatment`).\n */\nexport enum ImageProvider_Background {\n TRANSPARENT = \"transparent\",\n OPAQUE = \"opaque\",\n AUTO = \"auto\",\n}\n\nexport enum ImageProvider_OutputFormat {\n PNG = \"png\",\n JPEG = \"jpeg\",\n WEBP = \"webp\",\n}\n\nexport const ImageProvider_OperationModelConfiguration_Schema = z.object({\n model: z.string(),\n providerRef: z.string(),\n size: z.enum(ImageProvider_Size).optional(),\n quality: z.enum(ImageProvider_Quality).optional(),\n background: z.enum(ImageProvider_Background).optional(),\n outputFormat: z.enum(ImageProvider_OutputFormat).optional(),\n /** Number of images to generate per call (default 1). */\n n: z.number().int().positive().optional(),\n /** Random seed for deterministic output where the provider supports it. */\n seed: z.number().optional(),\n});\nexport type ImageProvider_OperationModelConfiguration = z.infer<typeof ImageProvider_OperationModelConfiguration_Schema>;\n\n// ===============================================================\n// Image Operations Context\n// ===============================================================\n\nexport const ImageProvider_UsageSchema = z.object({\n /** Number of images actually returned. */\n imageCount: z.number().int().nonnegative().optional(),\n /** Provider-reported input tokens, when the model reports them (gpt-image does). */\n inputTokens: z.number().optional(),\n /** Provider-reported output (image) tokens, when reported. */\n outputTokens: z.number().optional(),\n});\nexport type ImageProvider_Usage = z.infer<typeof ImageProvider_UsageSchema>;\n\nexport const ImageProvider_ExecutionTransportMetadataSchema = z.object({\n protocolKind: z.literal(ExternalProvider_ExchangeProtocol_Kind.IMAGE_PROVIDER),\n providerRef: z.string(),\n model: z.string().optional(),\n});\nexport type ImageProvider_ExecutionTransportMetadata = z.infer<typeof ImageProvider_ExecutionTransportMetadataSchema>;\n\nexport const ImageProvider_OperationContext_BaseSchema = ExternalProvider_OperationContextSchema.extend({\n usage: ImageProvider_UsageSchema.optional(),\n executionTime: z.number().optional(),\n finishedAt: z.string().optional(),\n transport: ImageProvider_ExecutionTransportMetadataSchema.optional(),\n});\nexport type ImageProvider_OperationContext_Base = z.infer<typeof ImageProvider_OperationContext_BaseSchema>;\n\nexport type ImageProvider_OperationDefinitionBase = ExternalProvider_OperationDefinition_Base & {\n imageModelConfigurationSchema?: z.ZodSchema<any>,\n operationContextSchema: typeof ImageProvider_OperationContext_BaseSchema,\n supportedModels?: string[],\n}\n\n// ===============================================================\n// Image I/O Schemas\n// ===============================================================\n\n/** A reference image passed as generation conditioning (URL or data URI). */\nexport const ImageProvider_ReferenceImageSchema = z.object({\n image: z.union([\n z.url(),\n z.string().regex(/^data:image\\/[^;]+;base64,/),\n ]),\n});\nexport type ImageProvider_ReferenceImage = z.infer<typeof ImageProvider_ReferenceImageSchema>;\n\n// Generate Image Operation\nexport const ImageProvider_GenerateImageInputSchema = z.object({\n prompt: z.string(),\n /** Optional conditioning images (edit / variation flows). */\n referenceImages: z.array(ImageProvider_ReferenceImageSchema).optional(),\n});\nexport type ImageProvider_GenerateImageInput = z.infer<typeof ImageProvider_GenerateImageInputSchema>;\n\n/** One generated image. `base64` is the raw payload; `mediaType` its MIME. */\nexport const ImageProvider_GeneratedImageSchema = z.object({\n base64: z.string(),\n mediaType: z.string(),\n width: z.number().int().positive().optional(),\n height: z.number().int().positive().optional(),\n});\nexport type ImageProvider_GeneratedImage = z.infer<typeof ImageProvider_GeneratedImageSchema>;\n\nexport const ImageProvider_GenerateImageOutputSchema = z.object({\n images: z.array(ImageProvider_GeneratedImageSchema),\n /** Provider-revised prompt, when the model returns one. */\n revisedPrompt: z.string().optional(),\n});\nexport type ImageProvider_GenerateImageOutput = z.infer<typeof ImageProvider_GenerateImageOutputSchema>;\n\n"]}
@@ -306,6 +306,47 @@ export declare enum LLMProvider_ReasoningEffort {
306
306
  XHIGH = "xhigh"
307
307
  }
308
308
  /** @wildo_source:part:end saas.external-providers.llm.model-configuration */
309
+ /**
310
+ * How many tokens a model takes in and gives back, as its VENDOR documents them (#2750).
311
+ *
312
+ * A third kind of knowledge beside the catalog entry's probed facts and framework opinion (see
313
+ * {@link LLM_ModelCatalogEntry}): DOCUMENTED. Read off the vendor's own model page, with the page and the day it was read
314
+ * recorded beside the numbers, never from memory and never inherited from a sibling model. Its burden of proof sits
315
+ * between the other two: a value too SMALL only drops more of a conversation than needed (quality, never legality), and a
316
+ * value too LARGE lets a request reach the vendor's own refusal, which is where every request stood before the field
317
+ * existed. So a documented number is enough; a guessed one is not, and a model whose vendor page does not state its limits
318
+ * carries none (the framework floor, {@link LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING}, applies to it).
319
+ *
320
+ * Vendors state their limits in two shapes, and both are kept as stated rather than converted:
321
+ * - a TOTAL window that input and output share (`contextWindowTokens`: OpenAI, Anthropic), sometimes with a separate
322
+ * cap on input alone (`maxInputTokens`: OpenAI's GPT-5 pages state 272,000 of a 400,000 window);
323
+ * - an INPUT limit and an OUTPUT limit (`maxInputTokens` alone: Google's Gemini pages).
324
+ * At least one of `contextWindowTokens` / `maxInputTokens` is present; the catalog test holds every row to it.
325
+ * {@link modelInputTokenCeiling} is the one reader that turns either shape into how much input a call may send.
326
+ */
327
+ export type LLM_ModelContextLimits = {
328
+ /** The window input and output SHARE, when the vendor states one. */
329
+ contextWindowTokens?: number;
330
+ /** A cap on input alone, when the vendor states one (it binds even when the window would hold more). */
331
+ maxInputTokens?: number;
332
+ /** The most a single response may generate (the vendor's synchronous-API limit). */
333
+ maxOutputTokens: number;
334
+ /** The vendor page the numbers were read from. */
335
+ documentedAt: string;
336
+ /** ISO date the page was read. */
337
+ checkedOn: string;
338
+ };
339
+ /**
340
+ * Input tokens a call to a model whose vendor documents no limits may send (#2750): the bound a conversation is held to
341
+ * when its agent's model has no {@link LLM_ModelContextLimits} (a model the catalog lists without them, a model a registry
342
+ * provider declares, an agent that is not an LLM-arm agent).
343
+ *
344
+ * Deliberately conservative, because a bound that is too large is no bound: 32,000 is below the documented input ceiling
345
+ * of every model the catalog lists with limits except the two legacy OpenAI ids that carry their own (GPT-4, 8,192 shared;
346
+ * GPT-3.5 Turbo, 16,385 shared), and holds a few dozen conversational turns. Too small costs older turns of a long
347
+ * conversation, which the turn then does not see; documenting the model's limits lifts it.
348
+ */
349
+ export declare const LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING: number;
309
350
  /**
310
351
  * One row per model: everything the framework knows about a concrete id.
311
352
  *
@@ -325,6 +366,9 @@ export declare enum LLMProvider_ReasoningEffort {
325
366
  * what Wildo is willing to SELECT this model for. Being wrong here degrades
326
367
  * quality or cost, it does not make a call illegal, and the remedy is an edit
327
368
  * to one row rather than to every agent definition.
369
+ *
370
+ * **Documented limits** — `contextLimits`. Read off the vendor's model page, cited in the row; see
371
+ * {@link LLM_ModelContextLimits} for why a documented number is enough here when it is not for a probed fact.
328
372
  */
329
373
  export type LLM_ModelCatalogEntry = {
330
374
  /** The `ref` of the provider module that serves this id. */
@@ -353,6 +397,8 @@ export type LLM_ModelCatalogEntry = {
353
397
  unsupportedReasoningEfforts?: readonly LLMProvider_ReasoningEffort[];
354
398
  /** PROBED. `true` when sending any explicit `temperature` is a provider error. */
355
399
  rejectsExplicitTemperature?: boolean;
400
+ /** DOCUMENTED. See {@link LLM_ModelContextLimits}; absent when the vendor's page states none. */
401
+ contextLimits?: LLM_ModelContextLimits;
356
402
  };
357
403
  /**
358
404
  * THE model catalog — the single per-model fact table.
@@ -370,6 +416,47 @@ export type LLM_ModelCatalogEntry = {
370
416
  * Per-field burden of proof: see {@link LLM_ModelCatalogEntry}.
371
417
  */
372
418
  export declare const LLM_MODEL_CATALOG: Record<LLM_Model, LLM_ModelCatalogEntry>;
419
+ /**
420
+ * Whether `model` is a row of the engine's catalog (#2750): its facts, limits included, come from the catalog, and a
421
+ * provider's declaration is never asked. One predicate, so the ceiling and the caller that looks up a declaration agree.
422
+ */
423
+ export declare const isLLMCatalogModel: (model: string, catalog?: Record<LLM_Model, LLM_ModelCatalogEntry>) => boolean;
424
+ /** Where a model's input ceiling ({@link modelInputTokenCeiling}) came from (#2750). */
425
+ export declare enum LLM_InputCeilingSource {
426
+ /** The model's catalog row carries the limits its vendor documents. */
427
+ DOCUMENTED = "documented",
428
+ /** The model has no documented limits, so {@link LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING} applies. */
429
+ FRAMEWORK_FLOOR = "framework_floor"
430
+ }
431
+ /** How much input one call to a model may send, and on what authority (#2750). */
432
+ export type LLM_ModelInputCeiling = {
433
+ inputTokens: number;
434
+ source: LLM_InputCeilingSource;
435
+ };
436
+ /**
437
+ * How many tokens of input one call to `model` may send (#2750): the one reader of {@link LLM_ModelContextLimits}, so
438
+ * every bound the framework places on what it sends a model agrees about what the model holds.
439
+ *
440
+ * For a window input and output SHARE, the response's room is kept back first: the agent's configured `maxTokens`, or the
441
+ * vendor's maximum output when the agent configures none, but never more than half the window, so a model whose maximum
442
+ * output equals its window (GPT-4: 8,192 and 8,192) still takes some input. A stated input cap then binds on its own
443
+ * (OpenAI's GPT-5: 400,000 shared, 272,000 input, which is exactly 400,000 less its 128,000 output). A model with an input
444
+ * limit and no shared window (Gemini) takes its input limit. Keeping the full maximum output back on a model that would
445
+ * accept less (Anthropic accepts input plus `max_tokens` over the window on 4.5 and later models and stops generation at
446
+ * the window instead) is deliberate: a response cut off by the window is a worse failure than older turns left out.
447
+ *
448
+ * A model the catalog knows without limits, or does not know and whose provider declares none, gets
449
+ * {@link LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING}.
450
+ */
451
+ export declare const modelInputTokenCeiling: (model: string, options?: {
452
+ configuredMaxOutputTokens?: number;
453
+ /**
454
+ * The limits the model's provider DECLARES ({@link LLM_ModelDeclaration.contextLimits}), for a model a registry
455
+ * provider serves. Read only when the catalog has no row for `model`: an engine provider's models are catalog rows,
456
+ * and an engine provider that declares models is refused at agent registration.
457
+ */
458
+ declaredLimits?: LLM_ModelContextLimits;
459
+ }, catalog?: Record<LLM_Model, LLM_ModelCatalogEntry>) => LLM_ModelInputCeiling;
373
460
  /**
374
461
  * Availability states a model may be auto-RESOLVED in. `DEPRECATED` and
375
462
  * `DISCONTINUED` are deliberately absent: a retired id stays nameable as an
@@ -408,6 +495,10 @@ export declare const LLM_MODEL_APPLICABILITY_PREFERENCE: Record<LLM_Model_Applic
408
495
  * - `ioCapabilities` is the evidence the vision gate reads; a model that declares none is not selected for vision work.
409
496
  * - `thinkingCapability` / `unsupportedReasoningEfforts` feed the reasoning-effort check; absent, it fails open, as for
410
497
  * an unprobed catalog row.
498
+ * - `contextLimits` (#2750) are the limits the model's vendor documents, with the page and the day they were read, under
499
+ * the catalog's rule ({@link LLM_ModelContextLimits}): documented, never guessed. They are what a conversation with an
500
+ * agent on this model is bounded to ({@link modelInputTokenCeiling}); a model that declares none takes
501
+ * {@link LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING}.
411
502
  *
412
503
  * There is no `availability`: declaring a model is the provider's statement that it serves it, as for document
413
504
  * extraction. A model it no longer serves is removed from the declaration.
@@ -418,6 +509,7 @@ export type LLM_ModelDeclaration = {
418
509
  ioCapabilities?: readonly LLM_Model_IO_Capability[];
419
510
  thinkingCapability?: LLM_Model_Thinking_Capability;
420
511
  unsupportedReasoningEfforts?: readonly LLMProvider_ReasoningEffort[];
512
+ contextLimits?: LLM_ModelContextLimits;
421
513
  };
422
514
  /**
423
515
  * The facts a resolved model carries, whichever source it came from: an engine catalog row or a provider's declaration.
@@ -1076,7 +1168,7 @@ export type LLMProvider_StreamTextInput = z.infer<typeof LLMProvider_StreamTextI
1076
1168
  export type LLMProvider_StreamTextOutput = z.infer<typeof LLMProvider_StreamTextOutputSchema>;
1077
1169
  export declare const LLMProvider_GenerateStructuredInputSchema: z.ZodObject<{
1078
1170
  prompt: z.ZodString;
1079
- schema: z.ZodCustom<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1171
+ schema: z.ZodCustom<z.ZodSchema<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodSchema<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1080
1172
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1081
1173
  type: z.ZodLiteral<"image">;
1082
1174
  image: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
@@ -1084,7 +1176,7 @@ export declare const LLMProvider_GenerateStructuredInputSchema: z.ZodObject<{
1084
1176
  includeRejectedAnswer: z.ZodOptional<z.ZodBoolean>;
1085
1177
  }, z.core.$strip>;
1086
1178
  export declare const LLMProvider_GenerateStructuredOutputSchema: z.ZodObject<{
1087
- object: z.ZodUnknown;
1179
+ object: z.ZodOptional<z.ZodUnknown>;
1088
1180
  rejectedAnswer: z.ZodOptional<z.ZodString>;
1089
1181
  }, z.core.$strip>;
1090
1182
  export type LLMProvider_GenerateStructuredInput = z.infer<typeof LLMProvider_GenerateStructuredInputSchema>;
@@ -1132,7 +1224,7 @@ export type LLMProvider_ChatMultimodalInput = z.infer<typeof LLMProvider_ChatMul
1132
1224
  export type LLMProvider_ChatMultimodalOutput = z.infer<typeof LLMProvider_ChatMultimodalOutputSchema>;
1133
1225
  export declare const LLMProvider_StreamStructuredInputSchema: z.ZodObject<{
1134
1226
  prompt: z.ZodString;
1135
- schema: z.ZodCustom<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1227
+ schema: z.ZodCustom<z.ZodSchema<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodSchema<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1136
1228
  }, z.core.$strip>;
1137
1229
  export declare const LLMProvider_StreamStructuredOutputSchema: z.ZodObject<{
1138
1230
  partialObject: z.ZodOptional<z.ZodUnknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"llm.external-connectors-models.schemas.d.ts","sourceRoot":"","sources":["../../../../src/protocols/llm.external-connectors-models.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,oDAAoD,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAA;AACjK,OAAO,EAAE,yCAAyC,EAA2C,MAAM,uDAAuD,CAAA;AAU1J,oBAAY,SAAS;IAEnB,UAAU,OAAO;IACjB,eAAe,YAAY;IAC3B,eAAe,YAAY;IAC3B,eAAe,YAAY;IAa3B,sCAAsC;IACtC,mBAAmB,gBAAgB;IACnC,+CAA+C;IAC/C,qBAAqB,kBAAkB;IACvC,oCAAoC;IACpC,oBAAoB,iBAAiB;IACrC,wEAAwE;IACxE,eAAe,YAAY;IAC3B,sCAAsC;IACtC,mBAAmB,gBAAgB;IACnC,eAA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OAAO,0CAA0C,CAAC,CAAC;AAG9G,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;iBAGhD,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;iBAEjD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAGtG,eAAO,MAAM,uCAAuC;;;iBAGlD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;iBAGnD,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AACxG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
1
+ {"version":3,"file":"llm.external-connectors-models.schemas.d.ts","sourceRoot":"","sources":["../../../src/protocols/llm.external-connectors-models.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,oDAAoD,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAA;AACjK,OAAO,EAAE,yCAAyC,EAA2C,MAAM,uDAAuD,CAAA;AAU1J,oBAAY,SAAS;IAEnB,UAAU,OAAO;IACjB,eAAe,YAAY;IAC3B,eAAe,YAAY;IAC3B,eAAe,YAAY;IAa3B,sCAAsC;IACtC,mBAAmB,gBAAgB;IACnC,+CAA+C;IAC/C,qBAAqB,kBAAkB;IACvC,oCAAoC;IACpC,oBAAoB,iBAAiB;IACrC,wEAAwE;IACxE,eAAe,YAAY;IAC3B,sCAAsC;IACtC,mBAAmB,gBAAgB;IACnC,eAAe,YAAY;IAC3B,aAAa,UAAU;IACvB,kBAAkB,eAAe;IACjC,cAAc,WAAW;IACzB,mBAAmB,gBAAgB;IACnC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,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAGtG,eAAO,MAAM,uCAAuC;;;iBAGlD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;iBAGnD,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AACxG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
@@ -348,6 +348,46 @@ export var LLMProvider_ReasoningEffort;
348
348
  LLMProvider_ReasoningEffort["HIGH"] = "high";
349
349
  LLMProvider_ReasoningEffort["XHIGH"] = "xhigh";
350
350
  })(LLMProvider_ReasoningEffort || (LLMProvider_ReasoningEffort = {}));
351
+ /**
352
+ * Input tokens a call to a model whose vendor documents no limits may send (#2750): the bound a conversation is held to
353
+ * when its agent's model has no {@link LLM_ModelContextLimits} (a model the catalog lists without them, a model a registry
354
+ * provider declares, an agent that is not an LLM-arm agent).
355
+ *
356
+ * Deliberately conservative, because a bound that is too large is no bound: 32,000 is below the documented input ceiling
357
+ * of every model the catalog lists with limits except the two legacy OpenAI ids that carry their own (GPT-4, 8,192 shared;
358
+ * GPT-3.5 Turbo, 16,385 shared), and holds a few dozen conversational turns. Too small costs older turns of a long
359
+ * conversation, which the turn then does not see; documenting the model's limits lifts it.
360
+ */
361
+ export const LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING = 32_000;
362
+ /** Checked 2026-11-09 against each model's page under https://developers.openai.com/api/docs/models/<id>. */
363
+ const OPENAI_LIMITS_CHECKED_ON = "2026-11-09";
364
+ const openAiModelPage = (id) => `https://developers.openai.com/api/docs/models/${id}`;
365
+ const openAiLimits = (id, contextWindowTokens, maxOutputTokens, maxInputTokens) => ({
366
+ contextWindowTokens,
367
+ ...(maxInputTokens === undefined ? {} : { maxInputTokens }),
368
+ maxOutputTokens,
369
+ documentedAt: openAiModelPage(id),
370
+ checkedOn: OPENAI_LIMITS_CHECKED_ON,
371
+ });
372
+ /**
373
+ * Checked 2026-11-09 against each model's page under https://platform.claude.com/docs/en/models/<slug>/overview, and
374
+ * https://platform.claude.com/docs/en/build-with-claude/context-windows, which states that for every 1M-window model 1M
375
+ * "is the default: you don't need a beta header", and that other models, Claude Sonnet 4.5 included, have 200k.
376
+ */
377
+ const ANTHROPIC_LIMITS_CHECKED_ON = "2026-11-09";
378
+ const anthropicLimits = (slug, contextWindowTokens, maxOutputTokens) => ({
379
+ contextWindowTokens,
380
+ maxOutputTokens,
381
+ documentedAt: `https://platform.claude.com/docs/en/models/${slug}/overview`,
382
+ checkedOn: ANTHROPIC_LIMITS_CHECKED_ON,
383
+ });
384
+ /** Checked 2026-11-09 against each model's page under https://aistudio.google.com/docs/models/<id> (input and output limits). */
385
+ const googleLimits = (id, maxInputTokens, maxOutputTokens) => ({
386
+ maxInputTokens,
387
+ maxOutputTokens,
388
+ documentedAt: `https://aistudio.google.com/docs/models/${id}`,
389
+ checkedOn: "2026-11-09",
390
+ });
351
391
  /**
352
392
  * THE model catalog — the single per-model fact table.
353
393
  *
@@ -382,6 +422,7 @@ export const LLM_MODEL_CATALOG = {
382
422
  // Live: `minimal` → 400 (the published docs claim it exists — they are wrong).
383
423
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
384
424
  rejectsExplicitTemperature: true,
425
+ contextLimits: openAiLimits("gpt-5.6-sol", 1_050_000, 128_000, 922_000),
385
426
  },
386
427
  [LLM_Model.OPEN_AI_GPT_5_6_TERRA]: {
387
428
  providerRef: "openai",
@@ -396,6 +437,7 @@ export const LLM_MODEL_CATALOG = {
396
437
  thinkingCapability: LLM_Model_Thinking_Capability.OPTIONAL,
397
438
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
398
439
  rejectsExplicitTemperature: true,
440
+ contextLimits: openAiLimits("gpt-5.6-terra", 1_050_000, 128_000, 922_000),
399
441
  },
400
442
  [LLM_Model.OPEN_AI_GPT_5_6_LUNA]: {
401
443
  providerRef: "openai",
@@ -406,31 +448,34 @@ export const LLM_MODEL_CATALOG = {
406
448
  thinkingCapability: LLM_Model_Thinking_Capability.OPTIONAL,
407
449
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
408
450
  rejectsExplicitTemperature: true,
451
+ contextLimits: openAiLimits("gpt-5.6-luna", 1_050_000, 128_000, 922_000),
409
452
  },
410
453
  [LLM_Model.OPEN_AI_GPT_5_2_PRO]: {
411
454
  providerRef: "openai",
412
455
  availability: LLM_Model_Availability.PRODUCTION,
413
456
  probedOn: "2026-07-16",
414
457
  applicabilities: [LLM_Model_Applicability.DEEP_JUDGMENT],
458
+ contextLimits: openAiLimits("gpt-5.2-pro", 400_000, 128_000),
415
459
  },
416
460
  [LLM_Model.OPEN_AI_GPT_5_2]: {
417
461
  providerRef: "openai",
418
462
  availability: LLM_Model_Availability.PRODUCTION,
419
463
  probedOn: "2026-07-16",
420
464
  applicabilities: [],
465
+ contextLimits: openAiLimits("gpt-5.2", 400_000, 128_000),
421
466
  },
422
- [LLM_Model.OPEN_AI_GPT_5_1]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
423
- [LLM_Model.OPEN_AI_GPT_5]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
424
- [LLM_Model.OPEN_AI_GPT_5_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
425
- [LLM_Model.OPEN_AI_GPT_4O]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
426
- [LLM_Model.OPEN_AI_GPT_4O_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
427
- [LLM_Model.OPEN_AI_GPT_4_TURBO]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
428
- [LLM_Model.OPEN_AI_GPT_4]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
429
- [LLM_Model.OPEN_AI_GPT_3_5_TURBO]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
430
- [LLM_Model.OPEN_AI_O1]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
431
- [LLM_Model.OPEN_AI_O1_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
432
- [LLM_Model.OPEN_AI_O3_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
433
- [LLM_Model.OPEN_AI_O4_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [] },
467
+ [LLM_Model.OPEN_AI_GPT_5_1]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-5.1", 400_000, 128_000) },
468
+ [LLM_Model.OPEN_AI_GPT_5]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-5", 400_000, 128_000, 272_000) },
469
+ [LLM_Model.OPEN_AI_GPT_5_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-5-mini", 400_000, 128_000, 272_000) },
470
+ [LLM_Model.OPEN_AI_GPT_4O]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-4o", 128_000, 16_384) },
471
+ [LLM_Model.OPEN_AI_GPT_4O_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-4o-mini", 128_000, 16_384) },
472
+ [LLM_Model.OPEN_AI_GPT_4_TURBO]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-4-turbo", 128_000, 4_096) },
473
+ [LLM_Model.OPEN_AI_GPT_4]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-4", 8_192, 8_192) },
474
+ [LLM_Model.OPEN_AI_GPT_3_5_TURBO]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("gpt-3.5-turbo", 16_385, 4_096) },
475
+ [LLM_Model.OPEN_AI_O1]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("o1", 200_000, 100_000) },
476
+ [LLM_Model.OPEN_AI_O1_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("o1-mini", 128_000, 65_536) },
477
+ [LLM_Model.OPEN_AI_O3_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("o3-mini", 200_000, 100_000) },
478
+ [LLM_Model.OPEN_AI_O4_MINI]: { providerRef: "openai", availability: LLM_Model_Availability.PRODUCTION, probedOn: "2026-07-16", applicabilities: [], contextLimits: openAiLimits("o4-mini", 200_000, 100_000) },
434
479
  // ---------------------------------------------------------------
435
480
  // Anthropic — ids verified LIVE against `GET /v1/models` (2026-07-16).
436
481
  //
@@ -462,6 +507,7 @@ export const LLM_MODEL_CATALOG = {
462
507
  thinkingCapability: LLM_Model_Thinking_Capability.ALWAYS,
463
508
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
464
509
  rejectsExplicitTemperature: true,
510
+ contextLimits: anthropicLimits("fable-5", 1_000_000, 128_000),
465
511
  },
466
512
  [LLM_Model.CLAUDE_OPUS_5_5]: {
467
513
  providerRef: "anthropic",
@@ -489,6 +535,7 @@ export const LLM_MODEL_CATALOG = {
489
535
  thinkingCapability: LLM_Model_Thinking_Capability.ALWAYS,
490
536
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
491
537
  rejectsExplicitTemperature: true,
538
+ contextLimits: anthropicLimits("opus-5-5", 1_000_000, 128_000),
492
539
  },
493
540
  [LLM_Model.CLAUDE_OPUS_5]: {
494
541
  providerRef: "anthropic",
@@ -514,6 +561,7 @@ export const LLM_MODEL_CATALOG = {
514
561
  thinkingCapability: LLM_Model_Thinking_Capability.OPTIONAL,
515
562
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
516
563
  rejectsExplicitTemperature: true,
564
+ contextLimits: anthropicLimits("opus-5", 1_000_000, 128_000),
517
565
  },
518
566
  [LLM_Model.CLAUDE_SONNET_5]: {
519
567
  providerRef: "anthropic",
@@ -532,6 +580,7 @@ export const LLM_MODEL_CATALOG = {
532
580
  thinkingCapability: LLM_Model_Thinking_Capability.OPTIONAL,
533
581
  unsupportedReasoningEfforts: [LLMProvider_ReasoningEffort.MINIMAL, LLMProvider_ReasoningEffort.PROVIDER_DEFAULT],
534
582
  rejectsExplicitTemperature: true,
583
+ contextLimits: anthropicLimits("sonnet-5", 1_000_000, 128_000),
535
584
  },
536
585
  [LLM_Model.CLAUDE_OPUS_4_8]: {
537
586
  providerRef: "anthropic",
@@ -539,6 +588,7 @@ export const LLM_MODEL_CATALOG = {
539
588
  probedOn: "2026-07-16",
540
589
  applicabilities: [LLM_Model_Applicability.WORKSPACE_CODING_AGENT],
541
590
  ioCapabilities: [LLM_Model_IO_Capability.TOOL_USE, LLM_Model_IO_Capability.CODE_GENERATION],
591
+ contextLimits: anthropicLimits("opus-4-8", 1_000_000, 128_000),
542
592
  },
543
593
  [LLM_Model.CLAUDE_SONNET_4_5]: {
544
594
  providerRef: "anthropic",
@@ -546,6 +596,7 @@ export const LLM_MODEL_CATALOG = {
546
596
  probedOn: "2026-07-16",
547
597
  applicabilities: [LLM_Model_Applicability.WORKSPACE_CODING_AGENT],
548
598
  ioCapabilities: [LLM_Model_IO_Capability.TOOL_USE, LLM_Model_IO_Capability.CODE_GENERATION],
599
+ contextLimits: anthropicLimits("sonnet-4-5", 200_000, 64_000),
549
600
  },
550
601
  [LLM_Model.CLAUDE_HAIKU_4_5]: {
551
602
  providerRef: "anthropic",
@@ -553,16 +604,24 @@ export const LLM_MODEL_CATALOG = {
553
604
  probedOn: "2026-07-16",
554
605
  applicabilities: [LLM_Model_Applicability.HIGH_VOLUME_MECHANICAL],
555
606
  ioCapabilities: [LLM_Model_IO_Capability.STRUCTURED_OUTPUTS],
607
+ contextLimits: anthropicLimits("haiku-4-5", 200_000, 64_000),
556
608
  },
557
609
  // ---------------------------------------------------------------
558
610
  // Google / Mistral / Perplexity / xAI — NEVER live-verified by this
559
611
  // repository. `availability` is therefore omitted and no row is
560
612
  // auto-selectable. Probe an id and fill its row before preferring it.
613
+ //
614
+ // `contextLimits` (#2750) only where the vendor's page states them, read
615
+ // 2026-11-09: Gemini 2.5 Pro and Flash. Google's model list no longer names
616
+ // the other Gemini ids (shut down or never listed), Mistral's `-latest`
617
+ // aliases move between models and its pages name no alias target, and xAI's
618
+ // and Perplexity's current pages name none of these ids. They take the
619
+ // framework floor (`LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING`).
561
620
  // ---------------------------------------------------------------
562
621
  [LLM_Model.GOOGLE_GEMINI_3_DEEP_THINK]: { providerRef: "google", applicabilities: [] },
563
622
  [LLM_Model.GOOGLE_GEMINI_3_PRO]: { providerRef: "google", applicabilities: [] },
564
- [LLM_Model.GOOGLE_GEMINI_2_5_PRO]: { providerRef: "google", applicabilities: [] },
565
- [LLM_Model.GOOGLE_GEMINI_2_5_FLASH]: { providerRef: "google", applicabilities: [] },
623
+ [LLM_Model.GOOGLE_GEMINI_2_5_PRO]: { providerRef: "google", applicabilities: [], contextLimits: googleLimits("gemini-2.5-pro", 1_048_576, 65_536) },
624
+ [LLM_Model.GOOGLE_GEMINI_2_5_FLASH]: { providerRef: "google", applicabilities: [], contextLimits: googleLimits("gemini-2.5-flash", 1_048_576, 65_536) },
566
625
  [LLM_Model.GOOGLE_GEMINI_2_0_FLASH]: { providerRef: "google", applicabilities: [] },
567
626
  [LLM_Model.GOOGLE_GEMINI_1_5_PRO]: { providerRef: "google", applicabilities: [] },
568
627
  [LLM_Model.GOOGLE_GEMINI_1_5_FLASH]: { providerRef: "google", applicabilities: [] },
@@ -582,6 +641,48 @@ export const LLM_MODEL_CATALOG = {
582
641
  [LLM_Model.GROK_2_VISION]: { providerRef: "grok", applicabilities: [] },
583
642
  [LLM_Model.GROK_2]: { providerRef: "grok", applicabilities: [] },
584
643
  };
644
+ /**
645
+ * Whether `model` is a row of the engine's catalog (#2750): its facts, limits included, come from the catalog, and a
646
+ * provider's declaration is never asked. One predicate, so the ceiling and the caller that looks up a declaration agree.
647
+ */
648
+ export const isLLMCatalogModel = (model, catalog = LLM_MODEL_CATALOG) => Object.hasOwn(catalog, model);
649
+ /** Where a model's input ceiling ({@link modelInputTokenCeiling}) came from (#2750). */
650
+ export var LLM_InputCeilingSource;
651
+ (function (LLM_InputCeilingSource) {
652
+ /** The model's catalog row carries the limits its vendor documents. */
653
+ LLM_InputCeilingSource["DOCUMENTED"] = "documented";
654
+ /** The model has no documented limits, so {@link LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING} applies. */
655
+ LLM_InputCeilingSource["FRAMEWORK_FLOOR"] = "framework_floor";
656
+ })(LLM_InputCeilingSource || (LLM_InputCeilingSource = {}));
657
+ /**
658
+ * How many tokens of input one call to `model` may send (#2750): the one reader of {@link LLM_ModelContextLimits}, so
659
+ * every bound the framework places on what it sends a model agrees about what the model holds.
660
+ *
661
+ * For a window input and output SHARE, the response's room is kept back first: the agent's configured `maxTokens`, or the
662
+ * vendor's maximum output when the agent configures none, but never more than half the window, so a model whose maximum
663
+ * output equals its window (GPT-4: 8,192 and 8,192) still takes some input. A stated input cap then binds on its own
664
+ * (OpenAI's GPT-5: 400,000 shared, 272,000 input, which is exactly 400,000 less its 128,000 output). A model with an input
665
+ * limit and no shared window (Gemini) takes its input limit. Keeping the full maximum output back on a model that would
666
+ * accept less (Anthropic accepts input plus `max_tokens` over the window on 4.5 and later models and stops generation at
667
+ * the window instead) is deliberate: a response cut off by the window is a worse failure than older turns left out.
668
+ *
669
+ * A model the catalog knows without limits, or does not know and whose provider declares none, gets
670
+ * {@link LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING}.
671
+ */
672
+ export const modelInputTokenCeiling = (model, options = {}, catalog = LLM_MODEL_CATALOG) => {
673
+ const entry = isLLMCatalogModel(model, catalog) ? catalog[model] : undefined;
674
+ const limits = entry ? entry.contextLimits : options.declaredLimits;
675
+ if (limits === undefined || (limits.contextWindowTokens === undefined && limits.maxInputTokens === undefined)) {
676
+ return { inputTokens: LLM_UNDOCUMENTED_MODEL_INPUT_TOKEN_CEILING, source: LLM_InputCeilingSource.FRAMEWORK_FLOOR };
677
+ }
678
+ const configured = options.configuredMaxOutputTokens;
679
+ const wantedOutput = configured !== undefined && Number.isFinite(configured) && configured > 0 ? configured : limits.maxOutputTokens;
680
+ const fromWindow = limits.contextWindowTokens === undefined
681
+ ? Number.POSITIVE_INFINITY
682
+ : limits.contextWindowTokens - Math.min(wantedOutput, Math.floor(limits.contextWindowTokens / 2));
683
+ const inputTokens = Math.min(limits.maxInputTokens ?? Number.POSITIVE_INFINITY, fromWindow);
684
+ return { inputTokens, source: LLM_InputCeilingSource.DOCUMENTED };
685
+ };
585
686
  /**
586
687
  * Availability states a model may be auto-RESOLVED in. `DEPRECATED` and
587
688
  * `DISCONTINUED` are deliberately absent: a retired id stays nameable as an
@@ -688,6 +789,32 @@ export const describeLLMModelDeclarationsDefect = (models) => {
688
789
  if (declaration.unsupportedReasoningEfforts !== undefined && !listsOnlyMembersOf(declaration.unsupportedReasoningEfforts, efforts)) {
689
790
  return `give "${model}" unknown \`unsupportedReasoningEfforts\``;
690
791
  }
792
+ const limitsDefect = declaration.contextLimits === undefined ? undefined : describeContextLimitsDefect(declaration.contextLimits);
793
+ if (limitsDefect !== undefined)
794
+ return `give "${model}" \`contextLimits\` that ${limitsDefect}`;
795
+ }
796
+ return undefined;
797
+ };
798
+ const isPositiveTokenCount = (value) => typeof value === "number" && Number.isSafeInteger(value) && value > 0;
799
+ /**
800
+ * Why declared {@link LLM_ModelContextLimits} cannot be used, or `undefined` (#2750): the shape the catalog test holds every
801
+ * catalog row to, checked at runtime because a registry provider's declaration is not compiled with the engine.
802
+ */
803
+ const describeContextLimitsDefect = (limits) => {
804
+ if (!isDeclarationRecord(limits))
805
+ return "are not an object";
806
+ if (limits.contextWindowTokens !== undefined && !isPositiveTokenCount(limits.contextWindowTokens))
807
+ return "state a `contextWindowTokens` that is not a positive whole number";
808
+ if (limits.maxInputTokens !== undefined && !isPositiveTokenCount(limits.maxInputTokens))
809
+ return "state a `maxInputTokens` that is not a positive whole number";
810
+ if (limits.contextWindowTokens === undefined && limits.maxInputTokens === undefined)
811
+ return "state neither `contextWindowTokens` nor `maxInputTokens`";
812
+ if (!isPositiveTokenCount(limits.maxOutputTokens))
813
+ return "state no positive whole `maxOutputTokens`";
814
+ if (!isNonEmptyDeclarationString(limits.documentedAt) || !/^https:\/\//u.test(limits.documentedAt))
815
+ return "name no `documentedAt` page (an https URL)";
816
+ if (typeof limits.checkedOn !== "string" || !/^\d{4}-\d{2}-\d{2}$/u.test(limits.checkedOn) || Number.isNaN(Date.parse(limits.checkedOn))) {
817
+ return "name no `checkedOn` date (YYYY-MM-DD)";
691
818
  }
692
819
  return undefined;
693
820
  };
@@ -1406,7 +1533,12 @@ export const LLMProvider_GenerateStructuredInputSchema = z.object({
1406
1533
  includeRejectedAnswer: z.boolean().optional(),
1407
1534
  });
1408
1535
  export const LLMProvider_GenerateStructuredOutputSchema = z.object({
1409
- object: z.unknown(),
1536
+ /**
1537
+ * The generated object. Absent when the provider produced none (#3504): a refused or missing answer is answered
1538
+ * with no object, and `rejectedAnswer` beside it when the input asked for it. The agent-call trace persists the
1539
+ * output as JSON, where that absence is what is written.
1540
+ */
1541
+ object: z.unknown().optional(),
1410
1542
  /** The rejected answer's text, present only when the input set `includeRejectedAnswer` and no object was produced. */
1411
1543
  rejectedAnswer: z.string().optional(),
1412
1544
  });