@openclaw/imessage 0.0.0 → 2026.8.1-beta.2
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/README.md +27 -1
- package/dist/accounts-D00Njxg2.js +368 -0
- package/dist/actions.runtime-DTFKDN5p.js +451 -0
- package/dist/api.js +14 -0
- package/dist/approval-handler.runtime-BtLs4gho.js +428 -0
- package/dist/catchup-D32oYNxR.js +294 -0
- package/dist/channel-config-api.js +2 -0
- package/dist/channel-lppmI51h.js +620 -0
- package/dist/channel-plugin-api.js +2 -0
- package/dist/channel.runtime-5wpCKQb7.js +236 -0
- package/dist/config-schema-DV0KP5nC.js +140 -0
- package/dist/contract-api.js +3 -0
- package/dist/conversation-bindings-GDQ_Laxj.js +24 -0
- package/dist/doctor-contract-api.js +357 -0
- package/dist/group-policy-DF9xSdik.js +1932 -0
- package/dist/index.js +18 -0
- package/dist/media-contract-BEgdvYhW.js +13 -0
- package/dist/media-contract-api.js +2 -0
- package/dist/message-tool-api-CPDfJJoE.js +315 -0
- package/dist/message-tool-api.js +2 -0
- package/dist/monitor-DnxJ8pW9.js +3550 -0
- package/dist/monitor-reply-cache-DKlYGd5x.js +348 -0
- package/dist/outbound-send-deps-B-QEsLSM.js +4 -0
- package/dist/persisted-echo-cache-BPWGUK-L.js +143 -0
- package/dist/question-reactions-DVe50UhB.js +74 -0
- package/dist/remote-file-DLwO9ved.js +289 -0
- package/dist/runtime-api.js +23 -0
- package/dist/sanitize-outbound-CoTZLXMw.js +896 -0
- package/dist/secret-contract-api.js +5 -0
- package/dist/send-BUXW76tw.js +1176 -0
- package/dist/session-binding-contract-api.js +2 -0
- package/dist/setup-entry.js +11 -0
- package/node_modules/typebox/build/compile/code.d.mts +12 -0
- package/node_modules/typebox/build/compile/code.mjs +65 -0
- package/node_modules/typebox/build/compile/compile.d.mts +6 -0
- package/node_modules/typebox/build/compile/compile.mjs +12 -0
- package/node_modules/typebox/build/compile/index.d.mts +8 -0
- package/node_modules/typebox/build/compile/index.mjs +14 -0
- package/node_modules/typebox/build/compile/validator.d.mts +35 -0
- package/node_modules/typebox/build/compile/validator.mjs +91 -0
- package/node_modules/typebox/build/error/errors.d.mts +208 -0
- package/node_modules/typebox/build/error/errors.mjs +18 -0
- package/node_modules/typebox/build/error/index.d.mts +1 -0
- package/node_modules/typebox/build/error/index.mjs +1 -0
- package/node_modules/typebox/build/format/_idna.d.mts +2 -0
- package/node_modules/typebox/build/format/_idna.mjs +246 -0
- package/node_modules/typebox/build/format/_puny.d.mts +1 -0
- package/node_modules/typebox/build/format/_puny.mjs +77 -0
- package/node_modules/typebox/build/format/_registry.d.mts +15 -0
- package/node_modules/typebox/build/format/_registry.mjs +96 -0
- package/node_modules/typebox/build/format/date.d.mts +6 -0
- package/node_modules/typebox/build/format/date.mjs +19 -0
- package/node_modules/typebox/build/format/date_time.d.mts +6 -0
- package/node_modules/typebox/build/format/date_time.mjs +11 -0
- package/node_modules/typebox/build/format/duration.d.mts +5 -0
- package/node_modules/typebox/build/format/duration.mjs +8 -0
- package/node_modules/typebox/build/format/email.d.mts +5 -0
- package/node_modules/typebox/build/format/email.mjs +8 -0
- package/node_modules/typebox/build/format/format.d.mts +22 -0
- package/node_modules/typebox/build/format/format.mjs +22 -0
- package/node_modules/typebox/build/format/hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/hostname.mjs +18 -0
- package/node_modules/typebox/build/format/idn_email.d.mts +5 -0
- package/node_modules/typebox/build/format/idn_email.mjs +8 -0
- package/node_modules/typebox/build/format/idn_hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/idn_hostname.mjs +19 -0
- package/node_modules/typebox/build/format/index.d.mts +4 -0
- package/node_modules/typebox/build/format/index.mjs +4 -0
- package/node_modules/typebox/build/format/ipv4.d.mts +6 -0
- package/node_modules/typebox/build/format/ipv4.mjs +38 -0
- package/node_modules/typebox/build/format/ipv6.d.mts +5 -0
- package/node_modules/typebox/build/format/ipv6.mjs +67 -0
- package/node_modules/typebox/build/format/iri.d.mts +5 -0
- package/node_modules/typebox/build/format/iri.mjs +13 -0
- package/node_modules/typebox/build/format/iri_reference.d.mts +5 -0
- package/node_modules/typebox/build/format/iri_reference.mjs +60 -0
- package/node_modules/typebox/build/format/json_pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/json_pointer.mjs +9 -0
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +9 -0
- package/node_modules/typebox/build/format/regex.d.mts +6 -0
- package/node_modules/typebox/build/format/regex.mjs +17 -0
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +9 -0
- package/node_modules/typebox/build/format/time.d.mts +5 -0
- package/node_modules/typebox/build/format/time.mjs +27 -0
- package/node_modules/typebox/build/format/uri.d.mts +5 -0
- package/node_modules/typebox/build/format/uri.mjs +135 -0
- package/node_modules/typebox/build/format/uri_reference.d.mts +5 -0
- package/node_modules/typebox/build/format/uri_reference.mjs +9 -0
- package/node_modules/typebox/build/format/uri_template.d.mts +6 -0
- package/node_modules/typebox/build/format/uri_template.mjs +10 -0
- package/node_modules/typebox/build/format/url.d.mts +6 -0
- package/node_modules/typebox/build/format/url.mjs +9 -0
- package/node_modules/typebox/build/format/uuid.d.mts +6 -0
- package/node_modules/typebox/build/format/uuid.mjs +9 -0
- package/node_modules/typebox/build/guard/emit.d.mts +54 -0
- package/node_modules/typebox/build/guard/emit.mjs +186 -0
- package/node_modules/typebox/build/guard/globals.d.mts +35 -0
- package/node_modules/typebox/build/guard/globals.mjs +90 -0
- package/node_modules/typebox/build/guard/guard.d.mts +65 -0
- package/node_modules/typebox/build/guard/guard.mjs +212 -0
- package/node_modules/typebox/build/guard/index.d.mts +6 -0
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/native.d.mts +20 -0
- package/node_modules/typebox/build/guard/native.mjs +60 -0
- package/node_modules/typebox/build/guard/string.d.mts +6 -0
- package/node_modules/typebox/build/guard/string.mjs +176 -0
- package/node_modules/typebox/build/index.d.mts +8 -0
- package/node_modules/typebox/build/index.mjs +14 -0
- package/node_modules/typebox/build/schema/build.d.mts +39 -0
- package/node_modules/typebox/build/schema/build.mjs +118 -0
- package/node_modules/typebox/build/schema/check.d.mts +6 -0
- package/node_modules/typebox/build/schema/check.mjs +14 -0
- package/node_modules/typebox/build/schema/compile.d.mts +22 -0
- package/node_modules/typebox/build/schema/compile.mjs +46 -0
- package/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
- package/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
- package/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_functions.mjs +66 -0
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/const.mjs +30 -0
- package/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/format.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/if.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/index.d.mts +48 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +54 -0
- package/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +68 -0
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/not.mjs +37 -0
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
- package/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/required.mjs +32 -0
- package/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/schema.mjs +347 -0
- package/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/type.mjs +70 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
- package/node_modules/typebox/build/schema/errors.d.mts +6 -0
- package/node_modules/typebox/build/schema/errors.mjs +24 -0
- package/node_modules/typebox/build/schema/index.d.mts +3 -0
- package/node_modules/typebox/build/schema/index.mjs +9 -0
- package/node_modules/typebox/build/schema/parse.d.mts +13 -0
- package/node_modules/typebox/build/schema/parse.mjs +27 -0
- package/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +106 -0
- package/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
- package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +2 -0
- package/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
- package/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
- package/node_modules/typebox/build/schema/schema.d.mts +10 -0
- package/node_modules/typebox/build/schema/schema.mjs +10 -0
- package/node_modules/typebox/build/schema/static/_canonical.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/_canonical.mjs +2 -0
- package/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/node_modules/typebox/build/schema/static/_comparer.mjs +2 -0
- package/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
- package/node_modules/typebox/build/schema/static/_elements.mjs +2 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/const.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/const.mjs +2 -0
- package/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/enum.mjs +2 -0
- package/node_modules/typebox/build/schema/static/if.d.mts +15 -0
- package/node_modules/typebox/build/schema/static/if.mjs +2 -0
- package/node_modules/typebox/build/schema/static/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/index.mjs +1 -0
- package/node_modules/typebox/build/schema/static/items.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/items.mjs +2 -0
- package/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
- package/node_modules/typebox/build/schema/static/properties.d.mts +32 -0
- package/node_modules/typebox/build/schema/static/properties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
- package/node_modules/typebox/build/schema/static/ref.mjs +3 -0
- package/node_modules/typebox/build/schema/static/required.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/required.mjs +3 -0
- package/node_modules/typebox/build/schema/static/schema.d.mts +56 -0
- package/node_modules/typebox/build/schema/static/schema.mjs +2 -0
- package/node_modules/typebox/build/schema/static/static.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/static.mjs +3 -0
- package/node_modules/typebox/build/schema/static/type.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/type.mjs +3 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
- package/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
- package/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/const.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/const.mjs +12 -0
- package/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contains.mjs +14 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
- package/node_modules/typebox/build/schema/types/default.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/default.mjs +12 -0
- package/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
- package/node_modules/typebox/build/schema/types/defs.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/else.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/else.mjs +14 -0
- package/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/enum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/format.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/format.mjs +13 -0
- package/node_modules/typebox/build/schema/types/id.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/id.mjs +13 -0
- package/node_modules/typebox/build/schema/types/if.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/if.mjs +14 -0
- package/node_modules/typebox/build/schema/types/index.d.mts +53 -0
- package/node_modules/typebox/build/schema/types/index.mjs +59 -0
- package/node_modules/typebox/build/schema/types/items.d.mts +19 -0
- package/node_modules/typebox/build/schema/types/items.mjs +26 -0
- package/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
- package/node_modules/typebox/build/schema/types/not.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/not.mjs +14 -0
- package/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
- package/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/properties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/ref.mjs +13 -0
- package/node_modules/typebox/build/schema/types/required.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/required.mjs +14 -0
- package/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/schema.mjs +14 -0
- package/node_modules/typebox/build/schema/types/then.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/then.mjs +14 -0
- package/node_modules/typebox/build/schema/types/type.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/type.mjs +15 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
- package/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
- package/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
- package/node_modules/typebox/build/system/arguments/index.mjs +1 -0
- package/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/environment.mjs +1 -0
- package/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
- package/node_modules/typebox/build/system/environment/index.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/index.mjs +1 -0
- package/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
- package/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
- package/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
- package/node_modules/typebox/build/system/hashing/index.mjs +1 -0
- package/node_modules/typebox/build/system/index.d.mts +4 -0
- package/node_modules/typebox/build/system/index.mjs +4 -0
- package/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
- package/node_modules/typebox/build/system/locale/_config.mjs +15 -0
- package/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
- package/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ar_001.mjs +40 -0
- package/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +40 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +40 -0
- package/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/de_DE.mjs +40 -0
- package/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/el_GR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/en_US.mjs +39 -0
- package/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_419.mjs +40 -0
- package/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_AR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_ES.mjs +40 -0
- package/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_MX.mjs +40 -0
- package/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +40 -0
- package/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +40 -0
- package/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +40 -0
- package/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +40 -0
- package/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +40 -0
- package/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/id_ID.mjs +40 -0
- package/node_modules/typebox/build/system/locale/index.d.mts +1 -0
- package/node_modules/typebox/build/system/locale/index.mjs +1 -0
- package/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/it_IT.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +40 -0
- package/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +40 -0
- package/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +40 -0
- package/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +40 -0
- package/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +40 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +40 -0
- package/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/th_TH.mjs +40 -0
- package/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +40 -0
- package/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +40 -0
- package/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +40 -0
- package/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +40 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +40 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +40 -0
- package/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/assign.mjs +11 -0
- package/node_modules/typebox/build/system/memory/clone.d.mts +5 -0
- package/node_modules/typebox/build/system/memory/clone.mjs +110 -0
- package/node_modules/typebox/build/system/memory/create.d.mts +8 -0
- package/node_modules/typebox/build/system/memory/create.mjs +30 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/discard.mjs +17 -0
- package/node_modules/typebox/build/system/memory/index.d.mts +1 -0
- package/node_modules/typebox/build/system/memory/index.mjs +1 -0
- package/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/memory.mjs +7 -0
- package/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +7 -0
- package/node_modules/typebox/build/system/memory/update.mjs +32 -0
- package/node_modules/typebox/build/system/settings/index.d.mts +1 -0
- package/node_modules/typebox/build/system/settings/index.mjs +1 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +71 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +34 -0
- package/node_modules/typebox/build/system/system.d.mts +6 -0
- package/node_modules/typebox/build/system/system.mjs +6 -0
- package/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
- package/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/capitalize.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +12 -0
- package/node_modules/typebox/build/type/action/conditional.mjs +13 -0
- package/node_modules/typebox/build/type/action/constructor_parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/constructor_parameters.mjs +11 -0
- package/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
- package/node_modules/typebox/build/type/action/evaluate.mjs +11 -0
- package/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
- package/node_modules/typebox/build/type/action/exclude.mjs +11 -0
- package/node_modules/typebox/build/type/action/extract.d.mts +11 -0
- package/node_modules/typebox/build/type/action/extract.mjs +11 -0
- package/node_modules/typebox/build/type/action/index.d.mts +30 -0
- package/node_modules/typebox/build/type/action/index.mjs +30 -0
- package/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
- package/node_modules/typebox/build/type/action/indexed.mjs +14 -0
- package/node_modules/typebox/build/type/action/instance_type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/instance_type.mjs +11 -0
- package/node_modules/typebox/build/type/action/interface.d.mts +14 -0
- package/node_modules/typebox/build/type/action/interface.mjs +22 -0
- package/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
- package/node_modules/typebox/build/type/action/keyof.mjs +11 -0
- package/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/lowercase.mjs +11 -0
- package/node_modules/typebox/build/type/action/mapped.d.mts +13 -0
- package/node_modules/typebox/build/type/action/mapped.mjs +13 -0
- package/node_modules/typebox/build/type/action/module.d.mts +13 -0
- package/node_modules/typebox/build/type/action/module.mjs +13 -0
- package/node_modules/typebox/build/type/action/non_nullable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/non_nullable.mjs +11 -0
- package/node_modules/typebox/build/type/action/omit.d.mts +14 -0
- package/node_modules/typebox/build/type/action/omit.mjs +14 -0
- package/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/parameters.mjs +11 -0
- package/node_modules/typebox/build/type/action/partial.d.mts +11 -0
- package/node_modules/typebox/build/type/action/partial.mjs +11 -0
- package/node_modules/typebox/build/type/action/pick.d.mts +14 -0
- package/node_modules/typebox/build/type/action/pick.mjs +14 -0
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +16 -0
- package/node_modules/typebox/build/type/action/readonly_object.mjs +19 -0
- package/node_modules/typebox/build/type/action/required.d.mts +11 -0
- package/node_modules/typebox/build/type/action/required.mjs +11 -0
- package/node_modules/typebox/build/type/action/return_type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/return_type.mjs +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.mjs +11 -0
- package/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uppercase.mjs +11 -0
- package/node_modules/typebox/build/type/action/with.d.mts +11 -0
- package/node_modules/typebox/build/type/action/with.mjs +11 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +53 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +21 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +49 -0
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +33 -0
- package/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +27 -0
- package/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +23 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +25 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +16 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +21 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +45 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +22 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +47 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +28 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +47 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +31 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +9 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +43 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +34 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +67 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +28 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +45 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +26 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +53 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +12 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
- package/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +23 -0
- package/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +23 -0
- package/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +15 -0
- package/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/index.mjs +37 -0
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +19 -0
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +25 -0
- package/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +18 -0
- package/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +40 -0
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +28 -0
- package/node_modules/typebox/build/type/engine/instance_type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/instance_type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +21 -0
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +178 -0
- package/node_modules/typebox/build/type/engine/instantiate.mjs +158 -0
- package/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +23 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +13 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +52 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +8 -0
- package/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +20 -0
- package/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +23 -0
- package/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +29 -0
- package/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +42 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +39 -0
- package/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +19 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +36 -0
- package/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
- package/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/from_object.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/object/from_object.mjs +4 -0
- package/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +9 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +23 -0
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +19 -0
- package/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/omit/from_type.mjs +18 -0
- package/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +25 -0
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/partial/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
- package/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/pick/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +25 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/record/from_key.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/record/from_key.mjs +40 -0
- package/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +6 -0
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +10 -0
- package/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +39 -0
- package/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.mjs +17 -0
- package/node_modules/typebox/build/type/engine/record/record_create.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/record/record_create.mjs +7 -0
- package/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
- package/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/required/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
- package/node_modules/typebox/build/type/engine/return_type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/return_type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +21 -0
- package/node_modules/typebox/build/type/engine/template_literal/create.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/template_literal/create.mjs +5 -0
- package/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +81 -0
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +81 -0
- package/node_modules/typebox/build/type/engine/template_literal/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +26 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +10 -0
- package/node_modules/typebox/build/type/engine/template_literal/static.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/template_literal/static.mjs +2 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +26 -0
- package/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +14 -0
- package/node_modules/typebox/build/type/engine/with/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/with/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/with/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/extends/any.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/any.mjs +12 -0
- package/node_modules/typebox/build/type/extends/array.d.mts +20 -0
- package/node_modules/typebox/build/type/extends/array.mjs +21 -0
- package/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
- package/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
- package/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
- package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/enum.mjs +7 -0
- package/node_modules/typebox/build/type/extends/extends.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/extends.mjs +17 -0
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +53 -0
- package/node_modules/typebox/build/type/extends/extends_left.mjs +80 -0
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +27 -0
- package/node_modules/typebox/build/type/extends/extends_right.mjs +49 -0
- package/node_modules/typebox/build/type/extends/function.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/function.mjs +17 -0
- package/node_modules/typebox/build/type/extends/index.d.mts +2 -0
- package/node_modules/typebox/build/type/extends/index.mjs +2 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
- package/node_modules/typebox/build/type/extends/inference.mjs +62 -0
- package/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/integer.mjs +10 -0
- package/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
- package/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
- package/node_modules/typebox/build/type/extends/literal.mjs +44 -0
- package/node_modules/typebox/build/type/extends/never.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/never.mjs +9 -0
- package/node_modules/typebox/build/type/extends/null.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/null.mjs +9 -0
- package/node_modules/typebox/build/type/extends/number.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/number.mjs +9 -0
- package/node_modules/typebox/build/type/extends/object.d.mts +32 -0
- package/node_modules/typebox/build/type/extends/object.mjs +109 -0
- package/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
- package/node_modules/typebox/build/type/extends/parameters.mjs +28 -0
- package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/record.mjs +23 -0
- package/node_modules/typebox/build/type/extends/result.d.mts +24 -0
- package/node_modules/typebox/build/type/extends/result.mjs +36 -0
- package/node_modules/typebox/build/type/extends/return_type.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/return_type.mjs +9 -0
- package/node_modules/typebox/build/type/extends/string.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/string.mjs +9 -0
- package/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/template_literal.mjs +7 -0
- package/node_modules/typebox/build/type/extends/tuple.d.mts +22 -0
- package/node_modules/typebox/build/type/extends/tuple.mjs +61 -0
- package/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
- package/node_modules/typebox/build/type/extends/union.d.mts +11 -0
- package/node_modules/typebox/build/type/extends/union.mjs +24 -0
- package/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
- package/node_modules/typebox/build/type/extends/void.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/void.mjs +9 -0
- package/node_modules/typebox/build/type/index.d.mts +5 -0
- package/node_modules/typebox/build/type/index.mjs +5 -0
- package/node_modules/typebox/build/type/script/index.d.mts +1 -0
- package/node_modules/typebox/build/type/script/index.mjs +1 -0
- package/node_modules/typebox/build/type/script/mapping.d.mts +353 -0
- package/node_modules/typebox/build/type/script/mapping.mjs +535 -0
- package/node_modules/typebox/build/type/script/parser.d.mts +262 -0
- package/node_modules/typebox/build/type/script/parser.mjs +136 -0
- package/node_modules/typebox/build/type/script/script.d.mts +16 -0
- package/node_modules/typebox/build/type/script/script.mjs +22 -0
- package/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/const.mjs +18 -0
- package/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
- package/node_modules/typebox/build/type/script/token/index.mjs +12 -0
- package/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
- package/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +30 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
- package/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/number.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
- package/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/span.mjs +24 -0
- package/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/string.mjs +20 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
- package/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/until.mjs +21 -0
- package/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
- package/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
- package/node_modules/typebox/build/type/types/_codec.mjs +60 -0
- package/node_modules/typebox/build/type/types/_immutable.d.mts +9 -0
- package/node_modules/typebox/build/type/types/_immutable.mjs +18 -0
- package/node_modules/typebox/build/type/types/_optional.d.mts +9 -0
- package/node_modules/typebox/build/type/types/_optional.mjs +18 -0
- package/node_modules/typebox/build/type/types/_readonly.d.mts +9 -0
- package/node_modules/typebox/build/type/types/_readonly.mjs +18 -0
- package/node_modules/typebox/build/type/types/_refine.d.mts +24 -0
- package/node_modules/typebox/build/type/types/_refine.mjs +36 -0
- package/node_modules/typebox/build/type/types/any.d.mts +10 -0
- package/node_modules/typebox/build/type/types/any.mjs +18 -0
- package/node_modules/typebox/build/type/types/array.d.mts +18 -0
- package/node_modules/typebox/build/type/types/array.mjs +25 -0
- package/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
- package/node_modules/typebox/build/type/types/bigint.mjs +21 -0
- package/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
- package/node_modules/typebox/build/type/types/boolean.mjs +17 -0
- package/node_modules/typebox/build/type/types/call.d.mts +16 -0
- package/node_modules/typebox/build/type/types/call.mjs +23 -0
- package/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
- package/node_modules/typebox/build/type/types/constructor.mjs +24 -0
- package/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
- package/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
- package/node_modules/typebox/build/type/types/deferred.d.mts +13 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +16 -0
- package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
- package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +18 -0
- package/node_modules/typebox/build/type/types/enum.mjs +22 -0
- package/node_modules/typebox/build/type/types/function.d.mts +21 -0
- package/node_modules/typebox/build/type/types/function.mjs +25 -0
- package/node_modules/typebox/build/type/types/generic.d.mts +13 -0
- package/node_modules/typebox/build/type/types/generic.mjs +17 -0
- package/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
- package/node_modules/typebox/build/type/types/identifier.mjs +17 -0
- package/node_modules/typebox/build/type/types/index.d.mts +45 -0
- package/node_modules/typebox/build/type/types/index.mjs +51 -0
- package/node_modules/typebox/build/type/types/infer.d.mts +15 -0
- package/node_modules/typebox/build/type/types/infer.mjs +20 -0
- package/node_modules/typebox/build/type/types/integer.d.mts +12 -0
- package/node_modules/typebox/build/type/types/integer.mjs +21 -0
- package/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
- package/node_modules/typebox/build/type/types/intersect.mjs +24 -0
- package/node_modules/typebox/build/type/types/literal.d.mts +31 -0
- package/node_modules/typebox/build/type/types/literal.mjs +62 -0
- package/node_modules/typebox/build/type/types/never.d.mts +12 -0
- package/node_modules/typebox/build/type/types/never.mjs +22 -0
- package/node_modules/typebox/build/type/types/null.d.mts +11 -0
- package/node_modules/typebox/build/type/types/null.mjs +17 -0
- package/node_modules/typebox/build/type/types/number.d.mts +12 -0
- package/node_modules/typebox/build/type/types/number.mjs +21 -0
- package/node_modules/typebox/build/type/types/object.d.mts +18 -0
- package/node_modules/typebox/build/type/types/object.mjs +28 -0
- package/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
- package/node_modules/typebox/build/type/types/parameter.mjs +21 -0
- package/node_modules/typebox/build/type/types/properties.d.mts +43 -0
- package/node_modules/typebox/build/type/types/properties.mjs +15 -0
- package/node_modules/typebox/build/type/types/record.d.mts +52 -0
- package/node_modules/typebox/build/type/types/record.mjs +66 -0
- package/node_modules/typebox/build/type/types/ref.d.mts +19 -0
- package/node_modules/typebox/build/type/types/ref.mjs +18 -0
- package/node_modules/typebox/build/type/types/rest.d.mts +11 -0
- package/node_modules/typebox/build/type/types/rest.mjs +17 -0
- package/node_modules/typebox/build/type/types/schema.d.mts +176 -0
- package/node_modules/typebox/build/type/types/schema.mjs +15 -0
- package/node_modules/typebox/build/type/types/static.d.mts +45 -0
- package/node_modules/typebox/build/type/types/static.mjs +3 -0
- package/node_modules/typebox/build/type/types/string.d.mts +12 -0
- package/node_modules/typebox/build/type/types/string.mjs +22 -0
- package/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
- package/node_modules/typebox/build/type/types/symbol.mjs +17 -0
- package/node_modules/typebox/build/type/types/template_literal.d.mts +28 -0
- package/node_modules/typebox/build/type/types/template_literal.mjs +37 -0
- package/node_modules/typebox/build/type/types/this.d.mts +14 -0
- package/node_modules/typebox/build/type/types/this.mjs +17 -0
- package/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
- package/node_modules/typebox/build/type/types/tuple.mjs +25 -0
- package/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
- package/node_modules/typebox/build/type/types/undefined.mjs +17 -0
- package/node_modules/typebox/build/type/types/union.d.mts +15 -0
- package/node_modules/typebox/build/type/types/union.mjs +24 -0
- package/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unknown.mjs +17 -0
- package/node_modules/typebox/build/type/types/unsafe.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unsafe.mjs +20 -0
- package/node_modules/typebox/build/type/types/void.d.mts +11 -0
- package/node_modules/typebox/build/type/types/void.mjs +17 -0
- package/node_modules/typebox/build/typebox.d.mts +69 -0
- package/node_modules/typebox/build/typebox.mjs +85 -0
- package/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
- package/node_modules/typebox/build/value/assert/assert.mjs +28 -0
- package/node_modules/typebox/build/value/assert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/assert/index.mjs +1 -0
- package/node_modules/typebox/build/value/check/check.d.mts +5 -0
- package/node_modules/typebox/build/value/check/check.mjs +11 -0
- package/node_modules/typebox/build/value/check/index.d.mts +1 -0
- package/node_modules/typebox/build/value/check/index.mjs +1 -0
- package/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/additional.mjs +6 -0
- package/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
- package/node_modules/typebox/build/value/clean/clean.mjs +17 -0
- package/node_modules/typebox/build/value/clean/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_array.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/clean/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +26 -0
- package/node_modules/typebox/build/value/clean/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_object.mjs +31 -0
- package/node_modules/typebox/build/value/clean/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_record.mjs +32 -0
- package/node_modules/typebox/build/value/clean/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_ref.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_tuple.mjs +14 -0
- package/node_modules/typebox/build/value/clean/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_type.mjs +21 -0
- package/node_modules/typebox/build/value/clean/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_union.mjs +12 -0
- package/node_modules/typebox/build/value/clean/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clean/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
- package/node_modules/typebox/build/value/clone/clone.mjs +12 -0
- package/node_modules/typebox/build/value/clone/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clone/index.mjs +1 -0
- package/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/callback.mjs +25 -0
- package/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/decode.mjs +52 -0
- package/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/encode.mjs +52 -0
- package/node_modules/typebox/build/value/codec/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_array.mjs +35 -0
- package/node_modules/typebox/build/value/codec/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/value/codec/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_intersect.mjs +58 -0
- package/node_modules/typebox/build/value/codec/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_object.mjs +42 -0
- package/node_modules/typebox/build/value/codec/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_record.mjs +39 -0
- package/node_modules/typebox/build/value/codec/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_ref.mjs +31 -0
- package/node_modules/typebox/build/value/codec/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +32 -0
- package/node_modules/typebox/build/value/codec/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_type.mjs +22 -0
- package/node_modules/typebox/build/value/codec/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_union.mjs +39 -0
- package/node_modules/typebox/build/value/codec/has.d.mts +5 -0
- package/node_modules/typebox/build/value/codec/has.mjs +93 -0
- package/node_modules/typebox/build/value/codec/index.d.mts +3 -0
- package/node_modules/typebox/build/value/codec/index.mjs +3 -0
- package/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
- package/node_modules/typebox/build/value/convert/convert.mjs +15 -0
- package/node_modules/typebox/build/value/convert/from_additional.d.mts +6 -0
- package/node_modules/typebox/build/value/convert/from_additional.mjs +18 -0
- package/node_modules/typebox/build/value/convert/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_array.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_bigint.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_boolean.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_enum.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_integer.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_integer.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_literal.mjs +44 -0
- package/node_modules/typebox/build/value/convert/from_null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_null.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_number.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_object.mjs +28 -0
- package/node_modules/typebox/build/value/convert/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_record.mjs +23 -0
- package/node_modules/typebox/build/value/convert/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_ref.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from_string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_string.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_tuple.mjs +11 -0
- package/node_modules/typebox/build/value/convert/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_type.mjs +43 -0
- package/node_modules/typebox/build/value/convert/from_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_undefined.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_union.mjs +13 -0
- package/node_modules/typebox/build/value/convert/from_void.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_void.mjs +6 -0
- package/node_modules/typebox/build/value/convert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
- package/node_modules/typebox/build/value/convert/try/try_array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_array.mjs +6 -0
- package/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +45 -0
- package/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +41 -0
- package/node_modules/typebox/build/value/convert/try/try_null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_null.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try_number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_number.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try_result.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try_result.mjs +17 -0
- package/node_modules/typebox/build/value/convert/try/try_string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_string.mjs +12 -0
- package/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +44 -0
- package/node_modules/typebox/build/value/create/create.d.mts +5 -0
- package/node_modules/typebox/build/value/create/create.mjs +11 -0
- package/node_modules/typebox/build/value/create/error.d.mts +5 -0
- package/node_modules/typebox/build/value/create/error.mjs +7 -0
- package/node_modules/typebox/build/value/create/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_array.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_bigint.mjs +7 -0
- package/node_modules/typebox/build/value/create/from_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_boolean.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_constructor.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_constructor.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_default.d.mts +3 -0
- package/node_modules/typebox/build/value/create/from_default.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_enum.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_function.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_function.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_integer.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_integer.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_literal.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_never.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_never.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_null.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_null.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_number.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_number.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_object.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_record.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_string.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_string.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_symbol.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_symbol.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_template_literal.mjs +11 -0
- package/node_modules/typebox/build/value/create/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_tuple.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_type.mjs +61 -0
- package/node_modules/typebox/build/value/create/from_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_undefined.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_union.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_void.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_void.mjs +4 -0
- package/node_modules/typebox/build/value/create/index.d.mts +2 -0
- package/node_modules/typebox/build/value/create/index.mjs +2 -0
- package/node_modules/typebox/build/value/default/default.d.mts +13 -0
- package/node_modules/typebox/build/value/default/default.mjs +15 -0
- package/node_modules/typebox/build/value/default/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_array.mjs +12 -0
- package/node_modules/typebox/build/value/default/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_cyclic.mjs +7 -0
- package/node_modules/typebox/build/value/default/from_default.d.mts +3 -0
- package/node_modules/typebox/build/value/default/from_default.mjs +13 -0
- package/node_modules/typebox/build/value/default/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_intersect.mjs +9 -0
- package/node_modules/typebox/build/value/default/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_object.mjs +32 -0
- package/node_modules/typebox/build/value/default/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_record.mjs +26 -0
- package/node_modules/typebox/build/value/default/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/default/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_tuple.mjs +14 -0
- package/node_modules/typebox/build/value/default/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_type.mjs +25 -0
- package/node_modules/typebox/build/value/default/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_union.mjs +14 -0
- package/node_modules/typebox/build/value/default/index.d.mts +1 -0
- package/node_modules/typebox/build/value/default/index.mjs +1 -0
- package/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
- package/node_modules/typebox/build/value/delta/diff.mjs +135 -0
- package/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
- package/node_modules/typebox/build/value/delta/edit.mjs +17 -0
- package/node_modules/typebox/build/value/delta/index.d.mts +3 -0
- package/node_modules/typebox/build/value/delta/index.mjs +3 -0
- package/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
- package/node_modules/typebox/build/value/delta/patch.mjs +42 -0
- package/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
- package/node_modules/typebox/build/value/equal/equal.mjs +6 -0
- package/node_modules/typebox/build/value/equal/index.d.mts +1 -0
- package/node_modules/typebox/build/value/equal/index.mjs +1 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
- package/node_modules/typebox/build/value/errors/errors.mjs +17 -0
- package/node_modules/typebox/build/value/errors/index.d.mts +1 -0
- package/node_modules/typebox/build/value/errors/index.mjs +1 -0
- package/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
- package/node_modules/typebox/build/value/hash/hash.mjs +10 -0
- package/node_modules/typebox/build/value/hash/index.d.mts +1 -0
- package/node_modules/typebox/build/value/hash/index.mjs +1 -0
- package/node_modules/typebox/build/value/index.d.mts +20 -0
- package/node_modules/typebox/build/value/index.mjs +29 -0
- package/node_modules/typebox/build/value/parse/index.d.mts +1 -0
- package/node_modules/typebox/build/value/parse/index.mjs +1 -0
- package/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
- package/node_modules/typebox/build/value/parse/parse.mjs +47 -0
- package/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
- package/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pointer/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/error.d.mts +7 -0
- package/node_modules/typebox/build/value/repair/error.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_array.mjs +39 -0
- package/node_modules/typebox/build/value/repair/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_enum.mjs +6 -0
- package/node_modules/typebox/build/value/repair/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_object.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_record.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/repair/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_template_literal.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_tuple.mjs +12 -0
- package/node_modules/typebox/build/value/repair/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_type.mjs +88 -0
- package/node_modules/typebox/build/value/repair/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_union.mjs +24 -0
- package/node_modules/typebox/build/value/repair/from_unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_unknown.mjs +12 -0
- package/node_modules/typebox/build/value/repair/index.d.mts +1 -0
- package/node_modules/typebox/build/value/repair/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
- package/node_modules/typebox/build/value/repair/repair.mjs +20 -0
- package/node_modules/typebox/build/value/shared/index.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/index.mjs +4 -0
- package/node_modules/typebox/build/value/shared/optional_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/shared/optional_undefined.mjs +15 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +7 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +72 -0
- package/node_modules/typebox/build/value/shared/union_score_select.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union_score_select.mjs +51 -0
- package/node_modules/typebox/build/value/value.d.mts +15 -0
- package/node_modules/typebox/build/value/value.mjs +15 -0
- package/node_modules/typebox/license +23 -0
- package/node_modules/typebox/package.json +87 -0
- package/node_modules/typebox/readme.md +370 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/openclaw.plugin.json +904 -0
- package/package.json +139 -8
- package/skills/imsg/SKILL.md +250 -0
|
@@ -0,0 +1,1932 @@
|
|
|
1
|
+
import { a as resolveDefaultIMessageAccountId, l as resolveIMessageRemoteHost, n as hasExclusiveIMessageLocalDatabase, o as resolveIMessageAccount, u as expandIMessageUserPath } from "./accounts-D00Njxg2.js";
|
|
2
|
+
import { S as IMESSAGE_ACTION_NAMES, _ as normalizeBareIMessageChatIdentifier, b as setCachedIMessagePrivateApiStatus, l as parseIMessageTarget, s as normalizeIMessageHandle$1, t as describeIMessageMessageTool, v as getCachedIMessagePrivateApiStatus, x as IMESSAGE_ACTIONS, y as imessageRpcSupportsMethod } from "./message-tool-api-CPDfJJoE.js";
|
|
3
|
+
import { a as findLatestIMessageEntryForChat, c as rememberIMessageReplyCache, h as chatContextFromIMessageTarget, o as isIMessageCurrentMessageInChat, p as getOptionalIMessageRuntime } from "./monitor-reply-cache-DKlYGd5x.js";
|
|
4
|
+
import { o as createIMessageRpcClient } from "./sanitize-outbound-CoTZLXMw.js";
|
|
5
|
+
import { createLazyRuntimeNamedExport, createLazyRuntimeSurface } from "openclaw/plugin-sdk/lazy-runtime";
|
|
6
|
+
import { collectStatusIssuesFromLastError } from "openclaw/plugin-sdk/status-helpers";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { normalizeE164 } from "openclaw/plugin-sdk/account-resolution";
|
|
9
|
+
import { filterStringEntries, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
|
+
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
11
|
+
import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
|
|
12
|
+
import { createActionGate, jsonResult, readNonNegativeIntegerParam, readPositiveIntegerParam, readReactionParams, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
13
|
+
import { normalizePollInput } from "openclaw/plugin-sdk/poll-runtime";
|
|
14
|
+
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
15
|
+
import { asDateTimestampMs, isFutureDateTimestampMs, resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
|
|
16
|
+
import { runCommandWithTimeout } from "openclaw/plugin-sdk/process-runtime";
|
|
17
|
+
import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
18
|
+
import { detectBinary } from "openclaw/plugin-sdk/setup";
|
|
19
|
+
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
20
|
+
import { isApprovalNotFoundError } from "openclaw/plugin-sdk/error-runtime";
|
|
21
|
+
import { parseAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
|
|
22
|
+
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
23
|
+
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
24
|
+
import { createCliPathTextInput, createDelegatedSetupWizardProxy, createDelegatedTextInputShouldPrompt, createPatchedAccountSetupAdapter, createSetupTranslator, promptParsedAllowFromForAccount, setAccountAllowFromForChannel, setSetupChannelEnabled as setSetupChannelEnabled$1 } from "openclaw/plugin-sdk/setup-runtime";
|
|
25
|
+
import { formatDocsLink } from "openclaw/plugin-sdk/setup-tools";
|
|
26
|
+
import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
27
|
+
import { addApprovalReactionHintToText, approvalReactionDecisionSetsMatch, buildApprovalReactionHint, createApprovalReactionTargetStore, extractApprovalReactionPromptBinding, hasApprovalReactionHintText, listApprovalReactionBindings, normalizeApprovalReactionDecision, readApprovalReactionDeliveredBinding, readApprovalReactionPresentationBinding, resolveTypedApprovalReactionTarget } from "openclaw/plugin-sdk/approval-reaction-runtime";
|
|
28
|
+
import { createPluginStateErrorReporter } from "openclaw/plugin-sdk/plugin-state-runtime";
|
|
29
|
+
import { formatTrimmedAllowFromEntries as formatTrimmedAllowFromEntries$1 } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
30
|
+
import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
|
|
31
|
+
import { DEFAULT_ACCOUNT_ID, getChatChannelMeta } from "openclaw/plugin-sdk/core";
|
|
32
|
+
import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/media-runtime";
|
|
33
|
+
import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
|
|
34
|
+
import { buildChannelGroupsScopeTree, resolveScopeRequireMention, resolveScopeToolsPolicy } from "openclaw/plugin-sdk/channel-policy";
|
|
35
|
+
//#region \0rolldown/runtime.js
|
|
36
|
+
var __defProp = Object.defineProperty;
|
|
37
|
+
var __exportAll = (all, no_symbols) => {
|
|
38
|
+
let target = {};
|
|
39
|
+
for (var name in all) __defProp(target, name, {
|
|
40
|
+
get: all[name],
|
|
41
|
+
enumerable: true
|
|
42
|
+
});
|
|
43
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
44
|
+
return target;
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region extensions/imessage/src/message-action-reference.ts
|
|
48
|
+
async function resolveAuthorizedIMessageActionReference(params) {
|
|
49
|
+
const options = {
|
|
50
|
+
requireKnownShortId: true,
|
|
51
|
+
chatContext: params.inputChatContext,
|
|
52
|
+
...params.requireFromMe ? { requireFromMe: true } : {}
|
|
53
|
+
};
|
|
54
|
+
const rawMessageId = params.messageId ?? params.resolveFallbackMessageId(params.inputChatContext);
|
|
55
|
+
const messageId = params.resolveMessageId(rawMessageId, options);
|
|
56
|
+
const authorize = (authorizedMessageId, chatContext) => params.authorize({
|
|
57
|
+
...params.authorization,
|
|
58
|
+
messageId: authorizedMessageId,
|
|
59
|
+
chatContext
|
|
60
|
+
});
|
|
61
|
+
authorize(messageId, params.inputChatContext);
|
|
62
|
+
const chatGuid = await params.resolveChatGuid();
|
|
63
|
+
const chatContext = { chatGuid };
|
|
64
|
+
const resolvedMessageId = params.resolveMessageId(messageId, {
|
|
65
|
+
requireKnownShortId: true,
|
|
66
|
+
chatContext
|
|
67
|
+
});
|
|
68
|
+
authorize(resolvedMessageId, chatContext);
|
|
69
|
+
return {
|
|
70
|
+
messageId: resolvedMessageId,
|
|
71
|
+
chatGuid
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region extensions/imessage/src/setup-core.ts
|
|
76
|
+
const t = createSetupTranslator();
|
|
77
|
+
const channel = "imessage";
|
|
78
|
+
const IMESSAGE_INSTALL_COMMAND = "brew install steipete/tap/imsg";
|
|
79
|
+
const IMESSAGE_UPDATE_COMMAND = "brew update && brew upgrade imsg";
|
|
80
|
+
const HOMEBREW_IMSG_PATHS = /* @__PURE__ */ new Set([
|
|
81
|
+
"/opt/homebrew/bin/imsg",
|
|
82
|
+
"/opt/homebrew/opt/imsg/bin/imsg",
|
|
83
|
+
"/usr/local/bin/imsg",
|
|
84
|
+
"/usr/local/opt/imsg/bin/imsg"
|
|
85
|
+
]);
|
|
86
|
+
function normalizeIMessageCliPathForSetup(cliPath) {
|
|
87
|
+
return cliPath?.trim() || "imsg";
|
|
88
|
+
}
|
|
89
|
+
function isAutoManagedIMessageCliPath(cliPath, opts) {
|
|
90
|
+
const normalized = normalizeIMessageCliPathForSetup(cliPath);
|
|
91
|
+
return !opts?.explicit && normalized === "imsg" || HOMEBREW_IMSG_PATHS.has(normalized);
|
|
92
|
+
}
|
|
93
|
+
const CHAT_TARGET_ALLOWFROM_PREFIXES = [
|
|
94
|
+
"chat_id:",
|
|
95
|
+
"chatid:",
|
|
96
|
+
"chat:",
|
|
97
|
+
"chat_guid:",
|
|
98
|
+
"chatguid:",
|
|
99
|
+
"guid:",
|
|
100
|
+
"chat_identifier:",
|
|
101
|
+
"chatidentifier:",
|
|
102
|
+
"chatident:"
|
|
103
|
+
];
|
|
104
|
+
const SERVICE_ALLOWFROM_PREFIXES = [
|
|
105
|
+
"imessage:",
|
|
106
|
+
"sms:",
|
|
107
|
+
"auto:"
|
|
108
|
+
];
|
|
109
|
+
function normalizeAllowFromEntryForPrefixCheck(entry) {
|
|
110
|
+
let lower = normalizeLowercaseStringOrEmpty(entry);
|
|
111
|
+
let stripped = true;
|
|
112
|
+
while (stripped) {
|
|
113
|
+
stripped = false;
|
|
114
|
+
for (const prefix of SERVICE_ALLOWFROM_PREFIXES) if (lower.startsWith(prefix)) {
|
|
115
|
+
lower = lower.slice(prefix.length).trim();
|
|
116
|
+
stripped = true;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return lower;
|
|
120
|
+
}
|
|
121
|
+
function parseIMessageAllowFromEntries(raw) {
|
|
122
|
+
return parseAllowFromEntries(raw, (entry) => {
|
|
123
|
+
const lower = normalizeAllowFromEntryForPrefixCheck(entry);
|
|
124
|
+
if (CHAT_TARGET_ALLOWFROM_PREFIXES.some((prefix) => lower.startsWith(prefix))) return { error: `iMessage allowFrom entries must be sender handles: ${entry}` };
|
|
125
|
+
if (!normalizeIMessageHandle$1(entry)) return { error: `Invalid handle: ${entry}` };
|
|
126
|
+
return { value: entry };
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function buildIMessageSetupPatch(input) {
|
|
130
|
+
return {
|
|
131
|
+
...input.cliPath ? { cliPath: input.cliPath } : {},
|
|
132
|
+
...input.dbPath ? { dbPath: input.dbPath } : {},
|
|
133
|
+
...input.service ? { service: input.service } : {},
|
|
134
|
+
...input.region ? { region: input.region } : {}
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
async function promptIMessageAllowFrom(params) {
|
|
138
|
+
return promptParsedAllowFromForAccount({
|
|
139
|
+
cfg: params.cfg,
|
|
140
|
+
accountId: params.accountId,
|
|
141
|
+
defaultAccountId: resolveDefaultIMessageAccountId(params.cfg),
|
|
142
|
+
prompter: params.prompter,
|
|
143
|
+
noteTitle: "iMessage allowlist",
|
|
144
|
+
noteLines: [
|
|
145
|
+
"Allowlist iMessage DMs by sender handle.",
|
|
146
|
+
"Examples:",
|
|
147
|
+
"- +15555550123",
|
|
148
|
+
"- user@example.com",
|
|
149
|
+
"Multiple entries: comma-separated.",
|
|
150
|
+
`Docs: ${formatDocsLink("/imessage", "imessage")}`
|
|
151
|
+
],
|
|
152
|
+
message: "iMessage allowFrom (sender handle)",
|
|
153
|
+
placeholder: "+15555550123, user@example.com",
|
|
154
|
+
parseEntries: parseIMessageAllowFromEntries,
|
|
155
|
+
getExistingAllowFrom: ({ cfg, accountId }) => resolveIMessageAccount({
|
|
156
|
+
cfg,
|
|
157
|
+
accountId
|
|
158
|
+
}).config.allowFrom ?? [],
|
|
159
|
+
applyAllowFrom: ({ cfg, accountId, allowFrom }) => setAccountAllowFromForChannel({
|
|
160
|
+
cfg,
|
|
161
|
+
channel,
|
|
162
|
+
accountId,
|
|
163
|
+
allowFrom,
|
|
164
|
+
setupSurface: imessageSetupAdapter
|
|
165
|
+
})
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
const imessageDmPolicy = createChannelDmPolicy({
|
|
169
|
+
label: "iMessage",
|
|
170
|
+
channel,
|
|
171
|
+
resolveAccount: (cfg, accountId) => resolveIMessageAccount({
|
|
172
|
+
cfg,
|
|
173
|
+
accountId: accountId ?? resolveDefaultIMessageAccountId(cfg)
|
|
174
|
+
}),
|
|
175
|
+
setupSurface: () => imessageSetupAdapter,
|
|
176
|
+
promptAllowFrom: promptIMessageAllowFrom
|
|
177
|
+
});
|
|
178
|
+
function resolveIMessageCliPath(params) {
|
|
179
|
+
return resolveIMessageAccount(params).config.cliPath ?? "imsg";
|
|
180
|
+
}
|
|
181
|
+
function createIMessageCliPathTextInput(shouldPrompt) {
|
|
182
|
+
return createCliPathTextInput({
|
|
183
|
+
inputKey: "cliPath",
|
|
184
|
+
message: "imsg CLI path",
|
|
185
|
+
resolvePath: ({ cfg, accountId }) => resolveIMessageCliPath({
|
|
186
|
+
cfg,
|
|
187
|
+
accountId
|
|
188
|
+
}),
|
|
189
|
+
shouldPrompt,
|
|
190
|
+
helpTitle: "iMessage",
|
|
191
|
+
helpLines: [
|
|
192
|
+
"imsg CLI path required to enable iMessage.",
|
|
193
|
+
`Install imsg on the Messages Mac: ${IMESSAGE_INSTALL_COMMAND}`,
|
|
194
|
+
`Update imsg when channel probes report missing RPC or private API capabilities: ${IMESSAGE_UPDATE_COMMAND}`
|
|
195
|
+
]
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
const imessageCompletionNote = {
|
|
199
|
+
title: "iMessage next steps",
|
|
200
|
+
lines: [
|
|
201
|
+
"For the usual setup, run OpenClaw on the Mac signed into Messages.",
|
|
202
|
+
"If the Gateway runs elsewhere, set cliPath to a transparent SSH wrapper that runs imsg on the Messages Mac.",
|
|
203
|
+
`Install imsg on the Messages Mac: ${IMESSAGE_INSTALL_COMMAND}`,
|
|
204
|
+
`Update imsg after imsg fixes or missing-capability errors: ${IMESSAGE_UPDATE_COMMAND}`,
|
|
205
|
+
"Private API mode is strongly encouraged for replies, tapbacks, effects, polls, attachments, and group actions.",
|
|
206
|
+
"After Private API setup, run `imsg launch`, then `openclaw channels status --probe`.",
|
|
207
|
+
"Ensure OpenClaw has Full Disk Access to Messages DB.",
|
|
208
|
+
"Grant Automation permission for Messages when prompted.",
|
|
209
|
+
"List chats with: imsg chats --limit 20",
|
|
210
|
+
`Docs: ${formatDocsLink("/imessage", "imessage")}`
|
|
211
|
+
]
|
|
212
|
+
};
|
|
213
|
+
const imessageSetupAdapter = {
|
|
214
|
+
...createPatchedAccountSetupAdapter({
|
|
215
|
+
channelKey: channel,
|
|
216
|
+
buildPatch: (input) => buildIMessageSetupPatch(input)
|
|
217
|
+
}),
|
|
218
|
+
singleAccountKeysToMove: [
|
|
219
|
+
"cliPath",
|
|
220
|
+
"dbPath",
|
|
221
|
+
"service",
|
|
222
|
+
"region"
|
|
223
|
+
]
|
|
224
|
+
};
|
|
225
|
+
const imessageSetupContract = defineChannelSetupContract({
|
|
226
|
+
fields: {
|
|
227
|
+
cliPath: {
|
|
228
|
+
kind: "string",
|
|
229
|
+
cli: {
|
|
230
|
+
flags: "--cli-path <path>",
|
|
231
|
+
description: "iMessage CLI path"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
dbPath: {
|
|
235
|
+
kind: "string",
|
|
236
|
+
cli: {
|
|
237
|
+
flags: "--db-path <path>",
|
|
238
|
+
description: "iMessage database path"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
service: {
|
|
242
|
+
kind: "choice",
|
|
243
|
+
choices: [
|
|
244
|
+
"imessage",
|
|
245
|
+
"sms",
|
|
246
|
+
"auto"
|
|
247
|
+
],
|
|
248
|
+
cli: {
|
|
249
|
+
flags: "--service <service>",
|
|
250
|
+
description: "iMessage service"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
region: {
|
|
254
|
+
kind: "string",
|
|
255
|
+
cli: {
|
|
256
|
+
flags: "--region <region>",
|
|
257
|
+
description: "SMS region"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
legacyAdapter: imessageSetupAdapter
|
|
262
|
+
});
|
|
263
|
+
const imessageSetupStatusBase = {
|
|
264
|
+
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
265
|
+
unconfiguredLabel: t("wizard.channels.statusNeedsSetup"),
|
|
266
|
+
configuredHint: t("wizard.imessage.imsgFound"),
|
|
267
|
+
unconfiguredHint: t("wizard.imessage.imsgMissing"),
|
|
268
|
+
configuredScore: 1,
|
|
269
|
+
unconfiguredScore: 0,
|
|
270
|
+
resolveConfigured: ({ cfg, accountId }) => resolveIMessageAccount({
|
|
271
|
+
cfg,
|
|
272
|
+
accountId
|
|
273
|
+
}).configured
|
|
274
|
+
};
|
|
275
|
+
function createIMessageSetupWizardProxy(loadWizard) {
|
|
276
|
+
return createDelegatedSetupWizardProxy({
|
|
277
|
+
channel,
|
|
278
|
+
loadWizard,
|
|
279
|
+
status: {
|
|
280
|
+
configuredLabel: imessageSetupStatusBase.configuredLabel,
|
|
281
|
+
unconfiguredLabel: imessageSetupStatusBase.unconfiguredLabel,
|
|
282
|
+
configuredHint: imessageSetupStatusBase.configuredHint,
|
|
283
|
+
unconfiguredHint: imessageSetupStatusBase.unconfiguredHint,
|
|
284
|
+
configuredScore: imessageSetupStatusBase.configuredScore,
|
|
285
|
+
unconfiguredScore: imessageSetupStatusBase.unconfiguredScore
|
|
286
|
+
},
|
|
287
|
+
delegatePrepare: true,
|
|
288
|
+
credentials: [],
|
|
289
|
+
textInputs: [createIMessageCliPathTextInput(createDelegatedTextInputShouldPrompt({
|
|
290
|
+
loadWizard,
|
|
291
|
+
inputKey: "cliPath"
|
|
292
|
+
}))],
|
|
293
|
+
completionNote: imessageCompletionNote,
|
|
294
|
+
dmPolicy: imessageDmPolicy,
|
|
295
|
+
disable: (cfg) => setSetupChannelEnabled$1(cfg, channel, false)
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region extensions/imessage/src/probe.ts
|
|
300
|
+
const RPC_SUPPORT_CACHE_TTL_MS = 300 * 1e3;
|
|
301
|
+
const PRIVATE_API_NEGATIVE_TTL_MS = 10 * 1e3;
|
|
302
|
+
const rpcSupportCache = /* @__PURE__ */ new Map();
|
|
303
|
+
function cacheIMessagePrivateApiStatus(cliPath, status) {
|
|
304
|
+
if (status.available) {
|
|
305
|
+
setCachedIMessagePrivateApiStatus(cliPath, status, 0);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
const expiresAt = resolveExpiresAtMsFromDurationMs(PRIVATE_API_NEGATIVE_TTL_MS);
|
|
309
|
+
if (expiresAt !== void 0) setCachedIMessagePrivateApiStatus(cliPath, status, expiresAt);
|
|
310
|
+
}
|
|
311
|
+
function getCachedRpcSupport(cliPath) {
|
|
312
|
+
const cached = rpcSupportCache.get(cliPath);
|
|
313
|
+
if (!cached) return;
|
|
314
|
+
const now = asDateTimestampMs(Date.now());
|
|
315
|
+
if (now === void 0 || cached.expiresAt <= now) {
|
|
316
|
+
rpcSupportCache.delete(cliPath);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
return cached.result;
|
|
320
|
+
}
|
|
321
|
+
function setCachedRpcSupport(cliPath, result) {
|
|
322
|
+
const expiresAt = resolveExpiresAtMsFromDurationMs(RPC_SUPPORT_CACHE_TTL_MS);
|
|
323
|
+
if (expiresAt === void 0) return;
|
|
324
|
+
rpcSupportCache.set(cliPath, {
|
|
325
|
+
result,
|
|
326
|
+
expiresAt
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
function isDefaultLocalIMessageCliPath(cliPath) {
|
|
330
|
+
const trimmed = cliPath.trim();
|
|
331
|
+
return trimmed === "imsg" || !trimmed.includes("/") && path.basename(trimmed) === "imsg";
|
|
332
|
+
}
|
|
333
|
+
function resolveIMessageNonMacHostError(cliPath, platform = process.platform) {
|
|
334
|
+
if (platform === "darwin" || !isDefaultLocalIMessageCliPath(cliPath)) return;
|
|
335
|
+
return "iMessage via the default imsg CLI must run on macOS. Run OpenClaw on the signed-in Messages Mac, or set channels.imessage.cliPath to an SSH wrapper that runs imsg on that Mac.";
|
|
336
|
+
}
|
|
337
|
+
async function probeRpcSupport(cliPath, timeoutMs) {
|
|
338
|
+
const cached = getCachedRpcSupport(cliPath);
|
|
339
|
+
if (cached) return cached;
|
|
340
|
+
try {
|
|
341
|
+
const result = await runCommandWithTimeout([
|
|
342
|
+
expandIMessageUserPath(cliPath),
|
|
343
|
+
"rpc",
|
|
344
|
+
"--help"
|
|
345
|
+
], { timeoutMs });
|
|
346
|
+
const combined = `${result.stdout}\n${result.stderr}`.trim();
|
|
347
|
+
const normalized = normalizeLowercaseStringOrEmpty(combined);
|
|
348
|
+
if (normalized.includes("unknown command") && normalized.includes("rpc")) {
|
|
349
|
+
const fatal = {
|
|
350
|
+
supported: false,
|
|
351
|
+
fatal: true,
|
|
352
|
+
error: `imsg CLI does not support the "rpc" subcommand. Update imsg on the Messages Mac: ${IMESSAGE_UPDATE_COMMAND}`
|
|
353
|
+
};
|
|
354
|
+
setCachedRpcSupport(cliPath, fatal);
|
|
355
|
+
return fatal;
|
|
356
|
+
}
|
|
357
|
+
if (result.code === 0) {
|
|
358
|
+
const supported = { supported: true };
|
|
359
|
+
setCachedRpcSupport(cliPath, supported);
|
|
360
|
+
return supported;
|
|
361
|
+
}
|
|
362
|
+
return {
|
|
363
|
+
supported: false,
|
|
364
|
+
error: combined || `imsg rpc --help failed (code ${String(result.code ?? "unknown")})`
|
|
365
|
+
};
|
|
366
|
+
} catch (err) {
|
|
367
|
+
return {
|
|
368
|
+
supported: false,
|
|
369
|
+
error: String(err)
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
function parseStatusPayload(stdout) {
|
|
374
|
+
const lines = normalizeStringEntries(stdout.split(/\r?\n/));
|
|
375
|
+
for (const line of lines.toReversed()) try {
|
|
376
|
+
const value = JSON.parse(line);
|
|
377
|
+
if (value && typeof value === "object" && !Array.isArray(value)) return { payload: value };
|
|
378
|
+
} catch {}
|
|
379
|
+
return {
|
|
380
|
+
payload: null,
|
|
381
|
+
firstLineSnippet: lines[0] ? truncateUtf16Safe(lines[0], 120) : void 0
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function selectorsFromPayload(payload) {
|
|
385
|
+
const raw = payload.selectors;
|
|
386
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
|
|
387
|
+
const selectors = {};
|
|
388
|
+
for (const [key, value] of Object.entries(raw)) if (typeof value === "boolean") selectors[key] = value;
|
|
389
|
+
return selectors;
|
|
390
|
+
}
|
|
391
|
+
async function probeSendRichSupportsAttachment(cliPath, timeoutMs) {
|
|
392
|
+
try {
|
|
393
|
+
const result = await runCommandWithTimeout([
|
|
394
|
+
expandIMessageUserPath(cliPath),
|
|
395
|
+
"send-rich",
|
|
396
|
+
"--help"
|
|
397
|
+
], { timeoutMs });
|
|
398
|
+
if (result.code !== 0) return false;
|
|
399
|
+
const combined = `${result.stdout}\n${result.stderr}`;
|
|
400
|
+
return /(?:^|\s)--file\b/m.test(combined);
|
|
401
|
+
} catch {
|
|
402
|
+
return false;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
async function probePollSendSupportsNoComment(cliPath, timeoutMs) {
|
|
406
|
+
try {
|
|
407
|
+
const result = await runCommandWithTimeout([
|
|
408
|
+
expandIMessageUserPath(cliPath),
|
|
409
|
+
"poll",
|
|
410
|
+
"send",
|
|
411
|
+
"--help"
|
|
412
|
+
], { timeoutMs });
|
|
413
|
+
if (result.code !== 0) return false;
|
|
414
|
+
const combined = `${result.stdout}\n${result.stderr}`;
|
|
415
|
+
return /(?:^|\s)--no-comment\b/m.test(combined);
|
|
416
|
+
} catch {
|
|
417
|
+
return false;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async function probeIMessagePrivateApi(cliPath, timeoutMs, options = {}) {
|
|
421
|
+
const key = cliPath.trim() || "imsg";
|
|
422
|
+
if (!options.forceRefresh) {
|
|
423
|
+
const cached = getCachedIMessagePrivateApiStatus(key);
|
|
424
|
+
if (cached) return cached;
|
|
425
|
+
}
|
|
426
|
+
try {
|
|
427
|
+
const result = await runCommandWithTimeout([
|
|
428
|
+
expandIMessageUserPath(key),
|
|
429
|
+
"status",
|
|
430
|
+
"--json"
|
|
431
|
+
], { timeoutMs });
|
|
432
|
+
const combined = `${result.stdout}\n${result.stderr}`.trim();
|
|
433
|
+
const normalized = normalizeLowercaseStringOrEmpty(combined);
|
|
434
|
+
if (result.code !== 0 && normalized.includes("unknown subcommand") && normalized.includes("status")) {
|
|
435
|
+
const status = {
|
|
436
|
+
available: false,
|
|
437
|
+
v2Ready: false,
|
|
438
|
+
selectors: {},
|
|
439
|
+
rpcMethods: [],
|
|
440
|
+
cliCapabilities: {
|
|
441
|
+
sendRichSupportsAttachment: false,
|
|
442
|
+
pollSendSupportsNoComment: false
|
|
443
|
+
},
|
|
444
|
+
error: `imsg CLI does not support the "status" subcommand. Update imsg on the Messages Mac: ${IMESSAGE_UPDATE_COMMAND}`
|
|
445
|
+
};
|
|
446
|
+
cacheIMessagePrivateApiStatus(key, status);
|
|
447
|
+
return status;
|
|
448
|
+
}
|
|
449
|
+
const { payload, firstLineSnippet } = parseStatusPayload(result.stdout);
|
|
450
|
+
const selectors = payload ? selectorsFromPayload(payload) : {};
|
|
451
|
+
const rpcMethods = filterStringEntries(payload?.rpc_methods);
|
|
452
|
+
const advancedFeatures = payload?.advanced_features === true;
|
|
453
|
+
const v2Ready = payload?.v2_ready === true;
|
|
454
|
+
const statusMessage = typeof payload?.message === "string" ? payload.message : void 0;
|
|
455
|
+
const sendRichSupportsAttachment = await probeSendRichSupportsAttachment(key, timeoutMs);
|
|
456
|
+
const pollSendSupportsNoComment = await probePollSendSupportsNoComment(key, timeoutMs);
|
|
457
|
+
const status = {
|
|
458
|
+
available: result.code === 0 && advancedFeatures && v2Ready,
|
|
459
|
+
v2Ready,
|
|
460
|
+
selectors,
|
|
461
|
+
rpcMethods,
|
|
462
|
+
cliCapabilities: {
|
|
463
|
+
sendRichSupportsAttachment,
|
|
464
|
+
pollSendSupportsNoComment
|
|
465
|
+
},
|
|
466
|
+
...statusMessage ? { statusMessage } : {},
|
|
467
|
+
...result.code === 0 ? !payload && firstLineSnippet ? { error: `imsg status --json returned no parseable JSONL (first line: "${firstLineSnippet}") — output schema may have changed` } : {} : { error: combined || `imsg status --json failed (code ${String(result.code)})` }
|
|
468
|
+
};
|
|
469
|
+
cacheIMessagePrivateApiStatus(key, status);
|
|
470
|
+
return status;
|
|
471
|
+
} catch (err) {
|
|
472
|
+
const status = {
|
|
473
|
+
available: false,
|
|
474
|
+
v2Ready: false,
|
|
475
|
+
selectors: {},
|
|
476
|
+
rpcMethods: [],
|
|
477
|
+
cliCapabilities: {
|
|
478
|
+
sendRichSupportsAttachment: false,
|
|
479
|
+
pollSendSupportsNoComment: false
|
|
480
|
+
},
|
|
481
|
+
error: String(err)
|
|
482
|
+
};
|
|
483
|
+
cacheIMessagePrivateApiStatus(key, status);
|
|
484
|
+
return status;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Probe iMessage RPC availability.
|
|
489
|
+
* @param timeoutMs - Explicit timeout in ms. If undefined, uses config or default.
|
|
490
|
+
* @param opts - Additional options (cliPath, dbPath, runtime).
|
|
491
|
+
*/
|
|
492
|
+
async function probeIMessage(timeoutMs, opts = {}) {
|
|
493
|
+
const cfg = opts.cliPath || opts.dbPath ? void 0 : getRuntimeConfig();
|
|
494
|
+
const explicitCliPath = opts.cliPath?.trim() || cfg?.channels?.imessage?.cliPath?.trim();
|
|
495
|
+
const cliPath = explicitCliPath || "imsg";
|
|
496
|
+
const dbPath = opts.dbPath?.trim() || cfg?.channels?.imessage?.dbPath?.trim();
|
|
497
|
+
const remoteHost = await resolveIMessageRemoteHost({
|
|
498
|
+
cliPath,
|
|
499
|
+
remoteHost: opts.remoteHost ?? cfg?.channels?.imessage?.remoteHost
|
|
500
|
+
});
|
|
501
|
+
const effectiveTimeout = timeoutMs ?? cfg?.channels?.imessage?.probeTimeoutMs ?? 1e4;
|
|
502
|
+
const nonMacHostError = resolveIMessageNonMacHostError(cliPath, opts.platform);
|
|
503
|
+
if (nonMacHostError) return {
|
|
504
|
+
ok: false,
|
|
505
|
+
fatal: true,
|
|
506
|
+
error: nonMacHostError
|
|
507
|
+
};
|
|
508
|
+
if (!await detectBinary(expandIMessageUserPath(cliPath))) return {
|
|
509
|
+
ok: false,
|
|
510
|
+
error: isAutoManagedIMessageCliPath(cliPath, { explicit: explicitCliPath !== void 0 }) ? `imsg not found (${cliPath}). Install imsg on the Messages Mac: ${IMESSAGE_INSTALL_COMMAND}` : `imsg command not found (${cliPath}). Check the configured iMessage cliPath or wrapper.`
|
|
511
|
+
};
|
|
512
|
+
const rpcSupport = await probeRpcSupport(cliPath, effectiveTimeout);
|
|
513
|
+
if (!rpcSupport.supported) return {
|
|
514
|
+
ok: false,
|
|
515
|
+
error: rpcSupport.error ?? "imsg rpc unavailable",
|
|
516
|
+
fatal: rpcSupport.fatal
|
|
517
|
+
};
|
|
518
|
+
const privateApi = await probeIMessagePrivateApi(cliPath, effectiveTimeout, { forceRefresh: opts.forceRefresh });
|
|
519
|
+
const client = await createIMessageRpcClient({
|
|
520
|
+
cliPath,
|
|
521
|
+
dbPath,
|
|
522
|
+
remoteHost,
|
|
523
|
+
runtime: opts.runtime
|
|
524
|
+
});
|
|
525
|
+
try {
|
|
526
|
+
await client.request("chats.list", { limit: 1 }, { timeoutMs: effectiveTimeout });
|
|
527
|
+
return {
|
|
528
|
+
ok: true,
|
|
529
|
+
privateApi
|
|
530
|
+
};
|
|
531
|
+
} catch (err) {
|
|
532
|
+
return {
|
|
533
|
+
ok: false,
|
|
534
|
+
error: String(err),
|
|
535
|
+
privateApi
|
|
536
|
+
};
|
|
537
|
+
} finally {
|
|
538
|
+
await client.stop();
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region extensions/imessage/src/actions.ts
|
|
543
|
+
const loadIMessageActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-DTFKDN5p.js"), "imessageActionsRuntime");
|
|
544
|
+
const log = createSubsystemLogger("channels/imessage");
|
|
545
|
+
const providerId = "imessage";
|
|
546
|
+
const SUPPORTED_ACTIONS = /* @__PURE__ */ new Set([...IMESSAGE_ACTION_NAMES, "upload-file"]);
|
|
547
|
+
const GROUP_MANAGEMENT_ACTIONS = /* @__PURE__ */ new Set([
|
|
548
|
+
"renameGroup",
|
|
549
|
+
"setGroupIcon",
|
|
550
|
+
"addParticipant",
|
|
551
|
+
"removeParticipant",
|
|
552
|
+
"leaveGroup"
|
|
553
|
+
]);
|
|
554
|
+
function readMessageText(params) {
|
|
555
|
+
return readStringParam(params, "text") ?? readStringParam(params, "message");
|
|
556
|
+
}
|
|
557
|
+
function resolveIMessageDeliveryTarget(args) {
|
|
558
|
+
const chatGuid = readStringParam(args, "chatGuid");
|
|
559
|
+
const chatId = readPositiveIntegerParam(args, "chatId");
|
|
560
|
+
const chatIdentifier = readStringParam(args, "chatIdentifier");
|
|
561
|
+
const targets = [
|
|
562
|
+
chatGuid ? `chat_guid:${chatGuid}` : void 0,
|
|
563
|
+
chatId !== void 0 ? `chat_id:${chatId}` : void 0,
|
|
564
|
+
chatIdentifier ? `chat_identifier:${chatIdentifier}` : void 0
|
|
565
|
+
].filter((value) => Boolean(value));
|
|
566
|
+
if (targets.length > 1) throw new Error("iMessage action received conflicting delivery target aliases.");
|
|
567
|
+
return targets[0];
|
|
568
|
+
}
|
|
569
|
+
function resolveIMessageActionTarget(params) {
|
|
570
|
+
const rawTarget = resolveIMessageDeliveryTarget(params.actionParams) ?? readStringParam(params.actionParams, "to") ?? readStringParam(params.actionParams, "target") ?? (params.currentChannelId?.trim() || void 0);
|
|
571
|
+
return rawTarget ? parseIMessageTarget(rawTarget) : null;
|
|
572
|
+
}
|
|
573
|
+
const IMESSAGE_DELIVERY_TARGET_ALIASES = [
|
|
574
|
+
"chatGuid",
|
|
575
|
+
"chatIdentifier",
|
|
576
|
+
"chatId"
|
|
577
|
+
];
|
|
578
|
+
function matchesIMessageCurrentConversation(params) {
|
|
579
|
+
const currentMessageId = params.toolContext.currentMessageId;
|
|
580
|
+
if (currentMessageId === void 0) return false;
|
|
581
|
+
return isIMessageCurrentMessageInChat({
|
|
582
|
+
accountId: params.accountId,
|
|
583
|
+
currentMessageId,
|
|
584
|
+
chatContext: {
|
|
585
|
+
chatGuid: readStringParam(params.args, "chatGuid"),
|
|
586
|
+
chatIdentifier: readStringParam(params.args, "chatIdentifier"),
|
|
587
|
+
chatId: readPositiveIntegerParam(params.args, "chatId")
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
function createIMessageTargetAliases(resourceAliases = []) {
|
|
592
|
+
return {
|
|
593
|
+
aliases: [...IMESSAGE_DELIVERY_TARGET_ALIASES, ...resourceAliases],
|
|
594
|
+
deliveryTargetAliases: [...IMESSAGE_DELIVERY_TARGET_ALIASES],
|
|
595
|
+
resolveDeliveryTarget: ({ args }) => resolveIMessageDeliveryTarget(args),
|
|
596
|
+
matchesCurrentConversation: matchesIMessageCurrentConversation
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
function rememberOutboundBridgeMessage(params) {
|
|
600
|
+
const messageId = params.messageId?.trim();
|
|
601
|
+
if (!messageId || messageId === "ok" || messageId === "unknown") return;
|
|
602
|
+
rememberIMessageReplyCache({
|
|
603
|
+
accountId: params.accountId,
|
|
604
|
+
messageId,
|
|
605
|
+
chatGuid: params.chatGuid,
|
|
606
|
+
timestamp: Date.now(),
|
|
607
|
+
isFromMe: true
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Read messageId from the action params, falling back to the most recent
|
|
612
|
+
* inbound in the same chat when the caller omitted it. The natural intent
|
|
613
|
+
* for "react with 👍" or "tapback the last message" is the message that
|
|
614
|
+
* just arrived in the current conversation; making the agent re-quote a
|
|
615
|
+
* message id every time is friction the cache already has the answer for.
|
|
616
|
+
*/
|
|
617
|
+
function readMessageIdWithChatFallback(params, chatContext) {
|
|
618
|
+
const explicit = readStringParam(params, "messageId");
|
|
619
|
+
if (explicit) return explicit;
|
|
620
|
+
const latest = findLatestIMessageEntryForChat(chatContext);
|
|
621
|
+
if (latest?.messageId) return latest.messageId;
|
|
622
|
+
return readStringParam(params, "messageId", { required: true });
|
|
623
|
+
}
|
|
624
|
+
async function resolveChatGuid(params) {
|
|
625
|
+
const target = resolveIMessageActionTarget(params);
|
|
626
|
+
if (target) {
|
|
627
|
+
if (target.kind === "chat_guid") return target.chatGuid;
|
|
628
|
+
if (target.kind === "chat_id" || target.kind === "chat_identifier") {
|
|
629
|
+
const resolved = await params.runtime.resolveChatGuidForTarget({
|
|
630
|
+
target,
|
|
631
|
+
options: params.options,
|
|
632
|
+
conversationReadOrigin: params.conversationReadOrigin
|
|
633
|
+
});
|
|
634
|
+
if (resolved) return resolved;
|
|
635
|
+
throw new Error(`iMessage ${params.action} failed: chatGuid not found for ${formatUnresolvedTarget(target)}.`);
|
|
636
|
+
}
|
|
637
|
+
if (target.kind === "handle") {
|
|
638
|
+
const synthesizedIdentifier = `${target.service === "sms" ? "SMS" : "iMessage"};-;${target.to}`;
|
|
639
|
+
const resolved = await params.runtime.resolveChatGuidForTarget({
|
|
640
|
+
target: {
|
|
641
|
+
kind: "chat_identifier",
|
|
642
|
+
chatIdentifier: synthesizedIdentifier
|
|
643
|
+
},
|
|
644
|
+
options: params.options,
|
|
645
|
+
conversationReadOrigin: params.conversationReadOrigin
|
|
646
|
+
});
|
|
647
|
+
if (resolved) return resolved;
|
|
648
|
+
if (params.action === "react" || params.action === "edit" || params.action === "unsend") throw new Error(`iMessage ${params.action} requires a known chat. No registered chat for the supplied target; send a message first or pass an explicit chatGuid.`);
|
|
649
|
+
return synthesizedIdentifier;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
throw new Error(`iMessage ${params.action} requires chatGuid, chatId, chatIdentifier, or a chat target.`);
|
|
653
|
+
}
|
|
654
|
+
function formatUnresolvedTarget(target) {
|
|
655
|
+
return target.kind === "chat_id" ? "chat_id:<redacted>" : "chat_identifier:<redacted>";
|
|
656
|
+
}
|
|
657
|
+
function buildChatContextFromActionParams(params) {
|
|
658
|
+
const target = resolveIMessageActionTarget(params);
|
|
659
|
+
return target ? chatContextFromIMessageTarget(target, params.service) : {};
|
|
660
|
+
}
|
|
661
|
+
function mapTapbackReaction(emoji) {
|
|
662
|
+
const value = normalizeOptionalLowercaseString(emoji)?.replace(/\ufe0f/g, "");
|
|
663
|
+
if (!value) return;
|
|
664
|
+
if ([
|
|
665
|
+
"love",
|
|
666
|
+
"heart",
|
|
667
|
+
"❤",
|
|
668
|
+
"❤️"
|
|
669
|
+
].includes(value)) return "love";
|
|
670
|
+
if ([
|
|
671
|
+
"like",
|
|
672
|
+
"+1",
|
|
673
|
+
"thumbsup",
|
|
674
|
+
"👍"
|
|
675
|
+
].includes(value)) return "like";
|
|
676
|
+
if ([
|
|
677
|
+
"dislike",
|
|
678
|
+
"-1",
|
|
679
|
+
"thumbsdown",
|
|
680
|
+
"👎"
|
|
681
|
+
].includes(value)) return "dislike";
|
|
682
|
+
if ([
|
|
683
|
+
"laugh",
|
|
684
|
+
"haha",
|
|
685
|
+
"😂",
|
|
686
|
+
"🤣"
|
|
687
|
+
].includes(value)) return "laugh";
|
|
688
|
+
if ([
|
|
689
|
+
"emphasize",
|
|
690
|
+
"!!",
|
|
691
|
+
"‼",
|
|
692
|
+
"‼️"
|
|
693
|
+
].includes(value)) return "emphasize";
|
|
694
|
+
if ([
|
|
695
|
+
"question",
|
|
696
|
+
"?",
|
|
697
|
+
"?",
|
|
698
|
+
"❓"
|
|
699
|
+
].includes(value)) return "question";
|
|
700
|
+
}
|
|
701
|
+
function decodeBase64Buffer(params, action) {
|
|
702
|
+
const base64Buffer = readStringParam(params, "buffer");
|
|
703
|
+
if (!base64Buffer) throw new Error(`iMessage ${action} requires buffer (base64) parameter.`);
|
|
704
|
+
return Uint8Array.from(Buffer.from(base64Buffer, "base64"));
|
|
705
|
+
}
|
|
706
|
+
const REPLY_ATTACHMENT_PATH_PARAM_NAMES = [
|
|
707
|
+
"filePath",
|
|
708
|
+
"path",
|
|
709
|
+
"media",
|
|
710
|
+
"mediaUrl",
|
|
711
|
+
"fileUrl"
|
|
712
|
+
];
|
|
713
|
+
function extractReplyAttachment(params) {
|
|
714
|
+
const buffer = readStringParam(params, "buffer");
|
|
715
|
+
if (buffer) {
|
|
716
|
+
const filename = readStringParam(params, "filename") ?? "attachment.bin";
|
|
717
|
+
return {
|
|
718
|
+
spec: {
|
|
719
|
+
kind: "buffer",
|
|
720
|
+
buffer: Uint8Array.from(Buffer.from(buffer, "base64")),
|
|
721
|
+
filename
|
|
722
|
+
},
|
|
723
|
+
sourceParam: "buffer"
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
for (const name of REPLY_ATTACHMENT_PATH_PARAM_NAMES) if (readStringParam(params, name)) return {
|
|
727
|
+
spec: null,
|
|
728
|
+
bypassParam: name
|
|
729
|
+
};
|
|
730
|
+
return null;
|
|
731
|
+
}
|
|
732
|
+
const KNOWN_EFFECT_IDS = /* @__PURE__ */ new Set([
|
|
733
|
+
"com.apple.MobileSMS.expressivesend.impact",
|
|
734
|
+
"com.apple.MobileSMS.expressivesend.loud",
|
|
735
|
+
"com.apple.MobileSMS.expressivesend.gentle",
|
|
736
|
+
"com.apple.MobileSMS.expressivesend.invisibleink",
|
|
737
|
+
"com.apple.MobileSMS.expressivesend.confetti",
|
|
738
|
+
"com.apple.MobileSMS.expressivesend.lasers",
|
|
739
|
+
"com.apple.MobileSMS.expressivesend.fireworks",
|
|
740
|
+
"com.apple.MobileSMS.expressivesend.balloon",
|
|
741
|
+
"com.apple.MobileSMS.expressivesend.heart",
|
|
742
|
+
"com.apple.messages.effect.CKEchoEffect",
|
|
743
|
+
"com.apple.messages.effect.CKHappyBirthdayEffect",
|
|
744
|
+
"com.apple.messages.effect.CKShootingStarEffect",
|
|
745
|
+
"com.apple.messages.effect.CKSparklesEffect",
|
|
746
|
+
"com.apple.messages.effect.CKSpotlightEffect"
|
|
747
|
+
]);
|
|
748
|
+
function effectIdFromParam(raw) {
|
|
749
|
+
const value = normalizeOptionalLowercaseString(raw);
|
|
750
|
+
if (!value) return;
|
|
751
|
+
const resolved = {
|
|
752
|
+
slam: "com.apple.MobileSMS.expressivesend.impact",
|
|
753
|
+
impact: "com.apple.MobileSMS.expressivesend.impact",
|
|
754
|
+
loud: "com.apple.MobileSMS.expressivesend.loud",
|
|
755
|
+
gentle: "com.apple.MobileSMS.expressivesend.gentle",
|
|
756
|
+
"invisible-ink": "com.apple.MobileSMS.expressivesend.invisibleink",
|
|
757
|
+
invisibleink: "com.apple.MobileSMS.expressivesend.invisibleink",
|
|
758
|
+
confetti: "com.apple.MobileSMS.expressivesend.confetti",
|
|
759
|
+
lasers: "com.apple.MobileSMS.expressivesend.lasers",
|
|
760
|
+
fireworks: "com.apple.MobileSMS.expressivesend.fireworks",
|
|
761
|
+
balloons: "com.apple.MobileSMS.expressivesend.balloon",
|
|
762
|
+
balloon: "com.apple.MobileSMS.expressivesend.balloon",
|
|
763
|
+
heart: "com.apple.MobileSMS.expressivesend.heart",
|
|
764
|
+
echo: "com.apple.messages.effect.CKEchoEffect",
|
|
765
|
+
happybirthday: "com.apple.messages.effect.CKHappyBirthdayEffect",
|
|
766
|
+
"happy-birthday": "com.apple.messages.effect.CKHappyBirthdayEffect",
|
|
767
|
+
shootingstar: "com.apple.messages.effect.CKShootingStarEffect",
|
|
768
|
+
"shooting-star": "com.apple.messages.effect.CKShootingStarEffect",
|
|
769
|
+
sparkles: "com.apple.messages.effect.CKSparklesEffect",
|
|
770
|
+
spotlight: "com.apple.messages.effect.CKSpotlightEffect"
|
|
771
|
+
}[value] ?? raw;
|
|
772
|
+
if (typeof resolved === "string" && KNOWN_EFFECT_IDS.has(resolved)) return resolved;
|
|
773
|
+
throw new Error(`iMessage sendWithEffect rejected unknown effect "${raw}". Use one of: slam, loud, gentle, invisibleink, confetti, lasers, fireworks, balloon, heart, echo, happybirthday, shootingstar, sparkles, spotlight (or the canonical com.apple.MobileSMS.expressivesend.* / com.apple.messages.effect.* identifier).`);
|
|
774
|
+
}
|
|
775
|
+
function assertActionEnabled(action, actionsConfig) {
|
|
776
|
+
const spec = IMESSAGE_ACTIONS[action === "upload-file" ? "sendAttachment" : action];
|
|
777
|
+
if (!spec?.gate || !createActionGate(actionsConfig)(spec.gate)) throw new Error(`iMessage ${action} is disabled in config.`);
|
|
778
|
+
}
|
|
779
|
+
const imessageMessageActions = {
|
|
780
|
+
describeMessageTool: describeIMessageMessageTool,
|
|
781
|
+
supportsAction: ({ action }) => SUPPORTED_ACTIONS.has(action),
|
|
782
|
+
requiresTrustedRequesterSender: ({ action, toolContext }) => normalizeOptionalLowercaseString(toolContext?.currentChannelProvider) === "imessage" && GROUP_MANAGEMENT_ACTIONS.has(action),
|
|
783
|
+
messageActionTargetAliases: {
|
|
784
|
+
react: createIMessageTargetAliases(["messageId"]),
|
|
785
|
+
edit: createIMessageTargetAliases(["messageId"]),
|
|
786
|
+
unsend: createIMessageTargetAliases(["messageId"]),
|
|
787
|
+
reply: createIMessageTargetAliases(["messageId"]),
|
|
788
|
+
sendWithEffect: createIMessageTargetAliases(),
|
|
789
|
+
sendAttachment: createIMessageTargetAliases(),
|
|
790
|
+
poll: createIMessageTargetAliases(),
|
|
791
|
+
"poll-vote": createIMessageTargetAliases(["pollId", "messageId"]),
|
|
792
|
+
"upload-file": createIMessageTargetAliases(),
|
|
793
|
+
renameGroup: createIMessageTargetAliases(),
|
|
794
|
+
setGroupIcon: createIMessageTargetAliases(),
|
|
795
|
+
addParticipant: createIMessageTargetAliases(),
|
|
796
|
+
removeParticipant: createIMessageTargetAliases(),
|
|
797
|
+
leaveGroup: createIMessageTargetAliases()
|
|
798
|
+
},
|
|
799
|
+
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
800
|
+
handleAction: async ({ action, params, cfg, accountId, toolContext, senderIsOwner, gatewayClientScopes, conversationReadOrigin }) => {
|
|
801
|
+
if (GROUP_MANAGEMENT_ACTIONS.has(action) && senderIsOwner !== true && !gatewayClientScopes?.includes("operator.admin")) throw new Error("iMessage group management requires an owner or operator.admin requester.");
|
|
802
|
+
const runtime = await loadIMessageActionsRuntime();
|
|
803
|
+
const account = resolveIMessageAccount({
|
|
804
|
+
cfg,
|
|
805
|
+
accountId: accountId ?? void 0
|
|
806
|
+
});
|
|
807
|
+
assertActionEnabled(action, account.config.actions);
|
|
808
|
+
const cliPathForProbe = account.config.cliPath?.trim() || "imsg";
|
|
809
|
+
const remoteHost = await resolveIMessageRemoteHost({
|
|
810
|
+
cliPath: cliPathForProbe,
|
|
811
|
+
remoteHost: account.config.remoteHost
|
|
812
|
+
});
|
|
813
|
+
let privateApiStatus = getCachedIMessagePrivateApiStatus(cliPathForProbe);
|
|
814
|
+
const probePrivateApiStatus = async (forceRefresh = false) => {
|
|
815
|
+
privateApiStatus = await probeIMessagePrivateApi(cliPathForProbe, account.config.probeTimeoutMs ?? 1e4, forceRefresh ? { forceRefresh: true } : void 0);
|
|
816
|
+
};
|
|
817
|
+
const assertPrivateApiEnabled = async () => {
|
|
818
|
+
if (privateApiStatus?.available !== true) await probePrivateApiStatus();
|
|
819
|
+
if (!privateApiStatus?.available) {
|
|
820
|
+
const reason = privateApiStatus?.statusMessage ? ` imsg reports: ${privateApiStatus.statusMessage}` : "";
|
|
821
|
+
log.warn(`iMessage ${action} blocked: private API bridge unavailable (accountId=${account.accountId}, cliPath=${cliPathForProbe}). Run \`imsg launch\` to re-inject the dylib, then \`openclaw channels status --probe\` to refresh.${reason}`);
|
|
822
|
+
throw new Error(`iMessage ${action} requires the imsg private API bridge. Run imsg launch, then openclaw channels status --probe to refresh capability detection.${reason}`);
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
const opts = {
|
|
826
|
+
cliPath: account.config.cliPath?.trim() || "imsg",
|
|
827
|
+
dbPath: account.config.dbPath?.trim() || void 0,
|
|
828
|
+
remoteHost,
|
|
829
|
+
timeoutMs: account.config.probeTimeoutMs,
|
|
830
|
+
chatGuid: ""
|
|
831
|
+
};
|
|
832
|
+
const attestedConversationReadOrigin = conversationReadOrigin ?? "delegated";
|
|
833
|
+
const chatGuid = async () => await resolveChatGuid({
|
|
834
|
+
action,
|
|
835
|
+
actionParams: params,
|
|
836
|
+
currentChannelId: toolContext?.currentChannelId,
|
|
837
|
+
conversationReadOrigin: attestedConversationReadOrigin,
|
|
838
|
+
runtime,
|
|
839
|
+
options: opts
|
|
840
|
+
});
|
|
841
|
+
const messageReference = async (input) => {
|
|
842
|
+
const inputChatContext = buildChatContextFromActionParams({
|
|
843
|
+
actionParams: params,
|
|
844
|
+
currentChannelId: toolContext?.currentChannelId,
|
|
845
|
+
service: account.config.service
|
|
846
|
+
});
|
|
847
|
+
return await resolveAuthorizedIMessageActionReference({
|
|
848
|
+
messageId: input?.messageId,
|
|
849
|
+
inputChatContext,
|
|
850
|
+
requireFromMe: input?.requireFromMe,
|
|
851
|
+
resolveFallbackMessageId: (chatContext) => readMessageIdWithChatFallback(params, {
|
|
852
|
+
...chatContext,
|
|
853
|
+
accountId: account.accountId
|
|
854
|
+
}),
|
|
855
|
+
resolveMessageId: runtime.resolveIMessageMessageId,
|
|
856
|
+
resolveChatGuid: chatGuid,
|
|
857
|
+
authorize: (authorization) => runtime.authorizeMessageReference(authorization),
|
|
858
|
+
authorization: {
|
|
859
|
+
accountId: account.accountId,
|
|
860
|
+
cliPath: opts.cliPath,
|
|
861
|
+
dbPath: opts.dbPath,
|
|
862
|
+
hasExclusiveLocalDatabase: hasExclusiveIMessageLocalDatabase({
|
|
863
|
+
cfg,
|
|
864
|
+
account,
|
|
865
|
+
cliPath: opts.cliPath,
|
|
866
|
+
dbPath: opts.dbPath,
|
|
867
|
+
remoteHost: opts.remoteHost
|
|
868
|
+
}),
|
|
869
|
+
remoteHost: opts.remoteHost,
|
|
870
|
+
conversationReadOrigin: attestedConversationReadOrigin
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
};
|
|
874
|
+
if (action === "react") {
|
|
875
|
+
await assertPrivateApiEnabled();
|
|
876
|
+
const { emoji, remove, isEmpty } = readReactionParams(params, { removeErrorMessage: "Emoji is required to remove an iMessage reaction." });
|
|
877
|
+
const reaction = mapTapbackReaction(emoji);
|
|
878
|
+
const TAPBACK_KINDS = [
|
|
879
|
+
"love",
|
|
880
|
+
"like",
|
|
881
|
+
"dislike",
|
|
882
|
+
"laugh",
|
|
883
|
+
"emphasize",
|
|
884
|
+
"question"
|
|
885
|
+
];
|
|
886
|
+
if (!remove && (isEmpty || !reaction)) throw new Error("iMessage react supports love, like, dislike, laugh, emphasize, and question tapbacks.");
|
|
887
|
+
const partIndex = readNonNegativeIntegerParam(params, "partIndex");
|
|
888
|
+
const reference = await messageReference();
|
|
889
|
+
const reactionsToSend = remove && !reaction ? [...TAPBACK_KINDS] : reaction ? [reaction] : [];
|
|
890
|
+
for (const kind of reactionsToSend) await runtime.sendReaction({
|
|
891
|
+
chatGuid: reference.chatGuid,
|
|
892
|
+
messageId: reference.messageId,
|
|
893
|
+
reaction: kind,
|
|
894
|
+
remove: remove || void 0,
|
|
895
|
+
partIndex: typeof partIndex === "number" ? partIndex : void 0,
|
|
896
|
+
options: {
|
|
897
|
+
...opts,
|
|
898
|
+
chatGuid: reference.chatGuid
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
return jsonResult({
|
|
902
|
+
ok: true,
|
|
903
|
+
...remove ? { removed: true } : { added: reaction }
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
if (action === "edit") {
|
|
907
|
+
await assertPrivateApiEnabled();
|
|
908
|
+
const text = readStringParam(params, "text") ?? readStringParam(params, "newText") ?? readStringParam(params, "message");
|
|
909
|
+
if (!text) throw new Error("iMessage edit requires text, newText, or message.");
|
|
910
|
+
const partIndex = readNonNegativeIntegerParam(params, "partIndex");
|
|
911
|
+
const backwardsCompatMessage = readStringParam(params, "backwardsCompatMessage");
|
|
912
|
+
const reference = await messageReference({ requireFromMe: true });
|
|
913
|
+
await runtime.editMessage({
|
|
914
|
+
chatGuid: reference.chatGuid,
|
|
915
|
+
messageId: reference.messageId,
|
|
916
|
+
text,
|
|
917
|
+
backwardsCompatMessage: backwardsCompatMessage ?? void 0,
|
|
918
|
+
partIndex: typeof partIndex === "number" ? partIndex : void 0,
|
|
919
|
+
options: {
|
|
920
|
+
...opts,
|
|
921
|
+
chatGuid: reference.chatGuid
|
|
922
|
+
}
|
|
923
|
+
});
|
|
924
|
+
return jsonResult({
|
|
925
|
+
ok: true,
|
|
926
|
+
edited: reference.messageId
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
if (action === "unsend") {
|
|
930
|
+
await assertPrivateApiEnabled();
|
|
931
|
+
const partIndex = readNonNegativeIntegerParam(params, "partIndex");
|
|
932
|
+
const reference = await messageReference({ requireFromMe: true });
|
|
933
|
+
await runtime.unsendMessage({
|
|
934
|
+
chatGuid: reference.chatGuid,
|
|
935
|
+
messageId: reference.messageId,
|
|
936
|
+
partIndex: typeof partIndex === "number" ? partIndex : void 0,
|
|
937
|
+
options: {
|
|
938
|
+
...opts,
|
|
939
|
+
chatGuid: reference.chatGuid
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
return jsonResult({
|
|
943
|
+
ok: true,
|
|
944
|
+
unsent: reference.messageId
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
if (action === "reply") {
|
|
948
|
+
await assertPrivateApiEnabled();
|
|
949
|
+
const text = readMessageText(params);
|
|
950
|
+
if (!text) throw new Error("iMessage reply requires text or message.");
|
|
951
|
+
const reference = await messageReference();
|
|
952
|
+
const attachment = extractReplyAttachment(params);
|
|
953
|
+
if (attachment) {
|
|
954
|
+
if (attachment.spec === null) throw new Error(`iMessage reply rejected \`${attachment.bypassParam}\` because it did not pass through the outbound media resolver. Pass a base64 \`buffer\` + \`filename\` directly, or invoke message(action: "reply") through the runner so the resolver can validate the path against mediaLocalRoots/sandbox/size before sending.`);
|
|
955
|
+
if (!opts.remoteHost && privateApiStatus?.cliCapabilities?.sendRichSupportsAttachment !== true) throw new Error("iMessage reply with an attachment needs an imsg build that exposes `send-rich --file` (openclaw/imsg#114). Upgrade imsg, or use action 'upload-file' (with filePath/filename) or action 'send' (with media) to deliver the file plus a separate 'reply' for any text.");
|
|
956
|
+
}
|
|
957
|
+
const partIndex = readNonNegativeIntegerParam(params, "partIndex");
|
|
958
|
+
const result = await runtime.sendRichMessage({
|
|
959
|
+
chatGuid: reference.chatGuid,
|
|
960
|
+
text,
|
|
961
|
+
replyToMessageId: reference.messageId,
|
|
962
|
+
partIndex: typeof partIndex === "number" ? partIndex : void 0,
|
|
963
|
+
attachment: attachment?.spec ?? void 0,
|
|
964
|
+
options: {
|
|
965
|
+
...opts,
|
|
966
|
+
chatGuid: reference.chatGuid
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
rememberOutboundBridgeMessage({
|
|
970
|
+
accountId: account.accountId,
|
|
971
|
+
messageId: result.messageId,
|
|
972
|
+
chatGuid: reference.chatGuid
|
|
973
|
+
});
|
|
974
|
+
return jsonResult({
|
|
975
|
+
ok: true,
|
|
976
|
+
messageId: result.messageId,
|
|
977
|
+
repliedTo: reference.messageId
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
if (action === "sendWithEffect") {
|
|
981
|
+
await assertPrivateApiEnabled();
|
|
982
|
+
const text = readMessageText(params);
|
|
983
|
+
const effectId = effectIdFromParam(readStringParam(params, "effectId") ?? readStringParam(params, "effect"));
|
|
984
|
+
if (!text || !effectId) throw new Error("iMessage sendWithEffect requires text/message and effect/effectId.");
|
|
985
|
+
const resolvedChatGuid = await chatGuid();
|
|
986
|
+
const result = await runtime.sendRichMessage({
|
|
987
|
+
chatGuid: resolvedChatGuid,
|
|
988
|
+
text,
|
|
989
|
+
effectId,
|
|
990
|
+
options: {
|
|
991
|
+
...opts,
|
|
992
|
+
chatGuid: resolvedChatGuid
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
rememberOutboundBridgeMessage({
|
|
996
|
+
accountId: account.accountId,
|
|
997
|
+
messageId: result.messageId,
|
|
998
|
+
chatGuid: resolvedChatGuid
|
|
999
|
+
});
|
|
1000
|
+
return jsonResult({
|
|
1001
|
+
ok: true,
|
|
1002
|
+
messageId: result.messageId,
|
|
1003
|
+
effect: effectId
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
if (action === "renameGroup") {
|
|
1007
|
+
await assertPrivateApiEnabled();
|
|
1008
|
+
const displayName = readStringParam(params, "displayName") ?? readStringParam(params, "name");
|
|
1009
|
+
if (!displayName) throw new Error("iMessage renameGroup requires displayName or name.");
|
|
1010
|
+
const resolvedChatGuid = await chatGuid();
|
|
1011
|
+
await runtime.renameGroup({
|
|
1012
|
+
chatGuid: resolvedChatGuid,
|
|
1013
|
+
displayName,
|
|
1014
|
+
options: {
|
|
1015
|
+
...opts,
|
|
1016
|
+
chatGuid: resolvedChatGuid
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
return jsonResult({
|
|
1020
|
+
ok: true,
|
|
1021
|
+
renamed: resolvedChatGuid,
|
|
1022
|
+
displayName
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
if (action === "setGroupIcon") {
|
|
1026
|
+
await assertPrivateApiEnabled();
|
|
1027
|
+
const filename = readStringParam(params, "filename") ?? readStringParam(params, "name") ?? "icon.png";
|
|
1028
|
+
const resolvedChatGuid = await chatGuid();
|
|
1029
|
+
await runtime.setGroupIcon({
|
|
1030
|
+
chatGuid: resolvedChatGuid,
|
|
1031
|
+
buffer: decodeBase64Buffer(params, action),
|
|
1032
|
+
filename,
|
|
1033
|
+
options: {
|
|
1034
|
+
...opts,
|
|
1035
|
+
chatGuid: resolvedChatGuid
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
return jsonResult({
|
|
1039
|
+
ok: true,
|
|
1040
|
+
chatGuid: resolvedChatGuid,
|
|
1041
|
+
iconSet: true
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
if (action === "addParticipant" || action === "removeParticipant") {
|
|
1045
|
+
await assertPrivateApiEnabled();
|
|
1046
|
+
const address = readStringParam(params, "address") ?? readStringParam(params, "participant");
|
|
1047
|
+
if (!address) throw new Error(`iMessage ${action} requires address or participant.`);
|
|
1048
|
+
const resolvedChatGuid = await chatGuid();
|
|
1049
|
+
if (action === "addParticipant") {
|
|
1050
|
+
await runtime.addParticipant({
|
|
1051
|
+
chatGuid: resolvedChatGuid,
|
|
1052
|
+
address,
|
|
1053
|
+
options: {
|
|
1054
|
+
...opts,
|
|
1055
|
+
chatGuid: resolvedChatGuid
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1058
|
+
return jsonResult({
|
|
1059
|
+
ok: true,
|
|
1060
|
+
added: address,
|
|
1061
|
+
chatGuid: resolvedChatGuid
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
await runtime.removeParticipant({
|
|
1065
|
+
chatGuid: resolvedChatGuid,
|
|
1066
|
+
address,
|
|
1067
|
+
options: {
|
|
1068
|
+
...opts,
|
|
1069
|
+
chatGuid: resolvedChatGuid
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
return jsonResult({
|
|
1073
|
+
ok: true,
|
|
1074
|
+
removed: address,
|
|
1075
|
+
chatGuid: resolvedChatGuid
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
if (action === "leaveGroup") {
|
|
1079
|
+
await assertPrivateApiEnabled();
|
|
1080
|
+
const resolvedChatGuid = await chatGuid();
|
|
1081
|
+
await runtime.leaveGroup({
|
|
1082
|
+
chatGuid: resolvedChatGuid,
|
|
1083
|
+
options: {
|
|
1084
|
+
...opts,
|
|
1085
|
+
chatGuid: resolvedChatGuid
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
return jsonResult({
|
|
1089
|
+
ok: true,
|
|
1090
|
+
left: resolvedChatGuid
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
if (action === "sendAttachment" || action === "upload-file") {
|
|
1094
|
+
await assertPrivateApiEnabled();
|
|
1095
|
+
const filename = readStringParam(params, "filename", { required: true });
|
|
1096
|
+
const asVoice = readBooleanParam(params, "asVoice") ?? readBooleanParam(params, "as_voice");
|
|
1097
|
+
const resolvedChatGuid = await chatGuid();
|
|
1098
|
+
const result = await runtime.sendAttachment({
|
|
1099
|
+
chatGuid: resolvedChatGuid,
|
|
1100
|
+
buffer: decodeBase64Buffer(params, action),
|
|
1101
|
+
filename,
|
|
1102
|
+
asVoice: asVoice ?? void 0,
|
|
1103
|
+
options: {
|
|
1104
|
+
...opts,
|
|
1105
|
+
chatGuid: resolvedChatGuid
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
rememberOutboundBridgeMessage({
|
|
1109
|
+
accountId: account.accountId,
|
|
1110
|
+
messageId: result.messageId,
|
|
1111
|
+
chatGuid: resolvedChatGuid
|
|
1112
|
+
});
|
|
1113
|
+
return jsonResult({
|
|
1114
|
+
ok: true,
|
|
1115
|
+
messageId: result.messageId
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
if (action === "poll") {
|
|
1119
|
+
await assertPrivateApiEnabled();
|
|
1120
|
+
if (privateApiStatus?.selectors?.pollPayloadMessage !== true) await probePrivateApiStatus(true);
|
|
1121
|
+
if (privateApiStatus?.selectors?.pollPayloadMessage !== true) throw new Error("iMessage poll requires an imsg bridge that advertises the pollPayloadMessage selector. Update imsg, run imsg launch to re-inject the bridge, then run openclaw channels status --probe to refresh capability detection.");
|
|
1122
|
+
const poll = normalizePollInput({
|
|
1123
|
+
question: readStringParam(params, "pollQuestion", { required: true }),
|
|
1124
|
+
options: readStringArrayParam(params, "pollOption", { required: true })
|
|
1125
|
+
}, { maxOptions: 12 });
|
|
1126
|
+
const resolvedChatGuid = await chatGuid();
|
|
1127
|
+
const result = await runtime.sendPoll({
|
|
1128
|
+
chatGuid: resolvedChatGuid,
|
|
1129
|
+
question: poll.question,
|
|
1130
|
+
choices: poll.options,
|
|
1131
|
+
options: {
|
|
1132
|
+
...opts,
|
|
1133
|
+
chatGuid: resolvedChatGuid
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
rememberOutboundBridgeMessage({
|
|
1137
|
+
accountId: account.accountId,
|
|
1138
|
+
messageId: result.messageId,
|
|
1139
|
+
chatGuid: resolvedChatGuid
|
|
1140
|
+
});
|
|
1141
|
+
return jsonResult({
|
|
1142
|
+
ok: true,
|
|
1143
|
+
messageId: result.messageId
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
if (action === "poll-vote") {
|
|
1147
|
+
await assertPrivateApiEnabled();
|
|
1148
|
+
if (privateApiStatus?.selectors?.pollVoteMessage !== true || !imessageRpcSupportsMethod(privateApiStatus, "poll.vote")) await probePrivateApiStatus(true);
|
|
1149
|
+
if (privateApiStatus?.selectors?.pollVoteMessage !== true) throw new Error("iMessage poll-vote requires an imsg bridge that advertises the pollVoteMessage selector. Update imsg, run imsg launch to re-inject the bridge, then run openclaw channels status --probe to refresh capability detection.");
|
|
1150
|
+
if (!imessageRpcSupportsMethod(privateApiStatus, "poll.vote")) throw new Error("iMessage poll-vote requires an imsg build that advertises the poll.vote capability. Update imsg, then run openclaw channels status --probe to refresh capability detection.");
|
|
1151
|
+
const pollRef = readStringParam(params, "pollId") ?? readStringParam(params, "pollGuid") ?? readStringParam(params, "messageId") ?? (toolContext?.currentMessageId != null ? String(toolContext.currentMessageId) : void 0);
|
|
1152
|
+
if (!pollRef) throw new Error("iMessage poll-vote requires the poll message id (pollId or messageId).");
|
|
1153
|
+
const optionIndex = readPositiveIntegerParam(params, "pollOptionIndex");
|
|
1154
|
+
const optionId = readStringParam(params, "pollOptionId");
|
|
1155
|
+
const optionText = readStringParam(params, "pollOptionText");
|
|
1156
|
+
const selectorCount = [
|
|
1157
|
+
optionIndex !== void 0,
|
|
1158
|
+
Boolean(optionId),
|
|
1159
|
+
Boolean(optionText)
|
|
1160
|
+
].filter(Boolean).length;
|
|
1161
|
+
if (selectorCount === 0) throw new Error("iMessage poll-vote requires pollOptionIndex, pollOptionId, or pollOptionText.");
|
|
1162
|
+
if (selectorCount > 1) throw new Error("iMessage poll-vote requires exactly one of pollOptionIndex, pollOptionId, or pollOptionText.");
|
|
1163
|
+
const pollReference = await messageReference({ messageId: pollRef });
|
|
1164
|
+
const result = await runtime.sendPollVote({
|
|
1165
|
+
chatGuid: pollReference.chatGuid,
|
|
1166
|
+
pollGuid: pollReference.messageId,
|
|
1167
|
+
optionIndex,
|
|
1168
|
+
optionId: optionId ?? void 0,
|
|
1169
|
+
optionText: optionText ?? void 0,
|
|
1170
|
+
options: {
|
|
1171
|
+
...opts,
|
|
1172
|
+
chatGuid: pollReference.chatGuid
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
rememberOutboundBridgeMessage({
|
|
1176
|
+
accountId: account.accountId,
|
|
1177
|
+
messageId: result.messageId,
|
|
1178
|
+
chatGuid: pollReference.chatGuid
|
|
1179
|
+
});
|
|
1180
|
+
return jsonResult({
|
|
1181
|
+
ok: true,
|
|
1182
|
+
messageId: result.messageId,
|
|
1183
|
+
...result.optionText ? { pollVotedOption: result.optionText } : {}
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
throw new Error(`Action ${action} is not supported for provider ${providerId}.`);
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region extensions/imessage/src/approval-auth.ts
|
|
1191
|
+
function normalizeIMessageApproverId(value) {
|
|
1192
|
+
const raw = String(value).trim();
|
|
1193
|
+
if (!raw) return;
|
|
1194
|
+
const normalized = normalizeIMessageHandle$1(raw);
|
|
1195
|
+
if (!normalized || normalized.startsWith("chat_id:") || normalized.startsWith("chat_guid:") || normalized.startsWith("chat_identifier:")) return;
|
|
1196
|
+
return normalized;
|
|
1197
|
+
}
|
|
1198
|
+
function normalizeIMessageApproverEntry(value) {
|
|
1199
|
+
return String(value).trim() === "*" ? "*" : normalizeIMessageApproverId(value);
|
|
1200
|
+
}
|
|
1201
|
+
const imessageApproval = createChannelApprovalAuth({
|
|
1202
|
+
channelLabel: "iMessage",
|
|
1203
|
+
resolveInputs: ({ cfg, accountId }) => {
|
|
1204
|
+
return { allowFrom: resolveIMessageAccount({
|
|
1205
|
+
cfg,
|
|
1206
|
+
accountId
|
|
1207
|
+
}).config.allowFrom };
|
|
1208
|
+
},
|
|
1209
|
+
normalizeApprover: normalizeIMessageApproverEntry,
|
|
1210
|
+
normalizeSenderId: normalizeIMessageApproverId,
|
|
1211
|
+
isWildcardAuthorized: ({ purpose, approvers }) => purpose === "action" && approvers.includes("*")
|
|
1212
|
+
});
|
|
1213
|
+
const getIMessageApprovalApprovers = imessageApproval.resolveApprovers;
|
|
1214
|
+
const imessageApprovalAuth = imessageApproval.approvalAuth;
|
|
1215
|
+
//#endregion
|
|
1216
|
+
//#region extensions/imessage/src/approval-target-keys.ts
|
|
1217
|
+
/** Strip the `p:<n>/` part prefix Messages puts on some GUIDs so keys match. */
|
|
1218
|
+
function normalizeIMessageGuid(value) {
|
|
1219
|
+
return value.trim().replace(/^p:\d+\//iu, "");
|
|
1220
|
+
}
|
|
1221
|
+
function chatIdToKeyValue(chatId) {
|
|
1222
|
+
if (chatId == null || chatId === "") return null;
|
|
1223
|
+
if (typeof chatId === "number") return Number.isFinite(chatId) && chatId > 0 ? String(chatId) : null;
|
|
1224
|
+
return chatId.trim() || null;
|
|
1225
|
+
}
|
|
1226
|
+
function enumerateConversationKeyForms(conversation) {
|
|
1227
|
+
const forms = [];
|
|
1228
|
+
const chatGuid = conversation.chatGuid?.trim();
|
|
1229
|
+
if (chatGuid) forms.push(`chat_guid:${chatGuid}`);
|
|
1230
|
+
const chatIdentifier = conversation.chatIdentifier?.trim();
|
|
1231
|
+
if (chatIdentifier) forms.push(`chat_identifier:${chatIdentifier}`);
|
|
1232
|
+
const chatIdValue = chatIdToKeyValue(conversation.chatId);
|
|
1233
|
+
if (chatIdValue) forms.push(`chat_id:${chatIdValue}`);
|
|
1234
|
+
const handle = conversation.handle?.trim();
|
|
1235
|
+
if (handle) forms.push(`handle:${handle}`);
|
|
1236
|
+
return forms;
|
|
1237
|
+
}
|
|
1238
|
+
function normalizeConversationKey(conversation) {
|
|
1239
|
+
return enumerateConversationKeyForms(conversation)[0];
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Index a binding under every key derivable from the conversation. Outbound and
|
|
1243
|
+
* inbound disagree about which key exists: send may only know
|
|
1244
|
+
* `{handle: "+1..."}` for a DM, while the bridge populates chat_guid on the
|
|
1245
|
+
* inbound event. Enumerating all forms keeps the two symmetric without making
|
|
1246
|
+
* callers guess which one the bridge will pick.
|
|
1247
|
+
*/
|
|
1248
|
+
function enumerateApprovalTargetKeys(params) {
|
|
1249
|
+
const accountId = params.accountId.trim();
|
|
1250
|
+
const messageId = params.messageId.trim();
|
|
1251
|
+
if (!accountId || !messageId) return [];
|
|
1252
|
+
return enumerateConversationKeyForms(params.conversation).map((form) => `${accountId}:${form}:${messageId}`);
|
|
1253
|
+
}
|
|
1254
|
+
function buildIMessageApprovalConversationKeyForTarget(to) {
|
|
1255
|
+
try {
|
|
1256
|
+
const target = parseIMessageTarget(to);
|
|
1257
|
+
if (target.kind === "chat_id") return { chatId: target.chatId };
|
|
1258
|
+
if (target.kind === "chat_guid") return { chatGuid: target.chatGuid };
|
|
1259
|
+
if (target.kind === "chat_identifier") return { chatIdentifier: target.chatIdentifier };
|
|
1260
|
+
const handle = normalizeIMessageHandle$1(target.to);
|
|
1261
|
+
return handle ? { handle } : null;
|
|
1262
|
+
} catch {
|
|
1263
|
+
return null;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
/** Conversation key for an inbound event, mirroring the outbound key forms. */
|
|
1267
|
+
function buildIMessageApprovalConversationKeyForInbound(params) {
|
|
1268
|
+
return {
|
|
1269
|
+
...params.chatGuid?.trim() ? { chatGuid: params.chatGuid.trim() } : {},
|
|
1270
|
+
...params.chatIdentifier?.trim() ? { chatIdentifier: params.chatIdentifier.trim() } : {},
|
|
1271
|
+
...chatIdToKeyValue(params.chatId ?? void 0) ? { chatId: params.chatId } : {},
|
|
1272
|
+
...params.isGroup ? {} : { handle: params.actorHandle }
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
//#endregion
|
|
1276
|
+
//#region extensions/imessage/src/monitor/reaction-context.ts
|
|
1277
|
+
const TAPBACK_TEXT_PATTERNS = [
|
|
1278
|
+
{
|
|
1279
|
+
prefix: "loved",
|
|
1280
|
+
action: "added",
|
|
1281
|
+
emoji: "❤️"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
prefix: "liked",
|
|
1285
|
+
action: "added",
|
|
1286
|
+
emoji: "👍"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
prefix: "disliked",
|
|
1290
|
+
action: "added",
|
|
1291
|
+
emoji: "👎"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
prefix: "laughed at",
|
|
1295
|
+
action: "added",
|
|
1296
|
+
emoji: "😂"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
prefix: "emphasized",
|
|
1300
|
+
action: "added",
|
|
1301
|
+
emoji: "‼️"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
prefix: "questioned",
|
|
1305
|
+
action: "added",
|
|
1306
|
+
emoji: "❓"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
prefix: "removed a heart from",
|
|
1310
|
+
action: "removed",
|
|
1311
|
+
emoji: "❤️"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
prefix: "removed a like from",
|
|
1315
|
+
action: "removed",
|
|
1316
|
+
emoji: "👍"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
prefix: "removed a dislike from",
|
|
1320
|
+
action: "removed",
|
|
1321
|
+
emoji: "👎"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
prefix: "removed a laugh from",
|
|
1325
|
+
action: "removed",
|
|
1326
|
+
emoji: "😂"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
prefix: "removed an emphasis from",
|
|
1330
|
+
action: "removed",
|
|
1331
|
+
emoji: "‼️"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
prefix: "removed a question from",
|
|
1335
|
+
action: "removed",
|
|
1336
|
+
emoji: "❓"
|
|
1337
|
+
}
|
|
1338
|
+
];
|
|
1339
|
+
function normalizeReactionValue(value) {
|
|
1340
|
+
return typeof value === "string" ? value.trim().replace(/^p:\d+\//iu, "") || void 0 : void 0;
|
|
1341
|
+
}
|
|
1342
|
+
function resolveReactionTargetGuidCandidates(...values) {
|
|
1343
|
+
const candidates = [];
|
|
1344
|
+
for (const value of values) {
|
|
1345
|
+
if (typeof value !== "string") continue;
|
|
1346
|
+
const raw = value.trim();
|
|
1347
|
+
if (!raw) continue;
|
|
1348
|
+
const normalized = raw.replace(/^p:\d+\//iu, "");
|
|
1349
|
+
for (const candidate of [normalized, raw]) if (candidate && !candidates.includes(candidate)) candidates.push(candidate);
|
|
1350
|
+
}
|
|
1351
|
+
return candidates;
|
|
1352
|
+
}
|
|
1353
|
+
function resolveTapbackTextContext(bodyText) {
|
|
1354
|
+
const lower = bodyText.toLowerCase();
|
|
1355
|
+
for (const pattern of TAPBACK_TEXT_PATTERNS) {
|
|
1356
|
+
if (!lower.startsWith(pattern.prefix)) continue;
|
|
1357
|
+
const afterPrefix = bodyText.slice(pattern.prefix.length).trim();
|
|
1358
|
+
if (!/^["“]/u.test(afterPrefix)) continue;
|
|
1359
|
+
return {
|
|
1360
|
+
action: pattern.action,
|
|
1361
|
+
emoji: pattern.emoji,
|
|
1362
|
+
targetText: afterPrefix.replace(/^["“]/u, "").replace(/["”]$/u, "").trim()
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
return null;
|
|
1366
|
+
}
|
|
1367
|
+
function resolveIMessageReactionContext(message, bodyText) {
|
|
1368
|
+
if (message.is_reaction === true || message.is_tapback === true || typeof message.associated_message_type === "number" && Number.isFinite(message.associated_message_type) && message.associated_message_type >= 2e3 && message.associated_message_type < 4e3) {
|
|
1369
|
+
const targetGuids = resolveReactionTargetGuidCandidates(message.reacted_to_guid, message.associated_message_guid);
|
|
1370
|
+
return {
|
|
1371
|
+
action: message.is_reaction_add === false ? "removed" : "added",
|
|
1372
|
+
emoji: normalizeReactionValue(message.reaction_emoji) ?? normalizeReactionValue(message.reaction_type) ?? "reaction",
|
|
1373
|
+
targetGuid: targetGuids[0],
|
|
1374
|
+
targetGuids
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
return resolveTapbackTextContext(bodyText);
|
|
1378
|
+
}
|
|
1379
|
+
//#endregion
|
|
1380
|
+
//#region extensions/imessage/src/approval-reactions.ts
|
|
1381
|
+
var approval_reactions_exports = /* @__PURE__ */ __exportAll({
|
|
1382
|
+
addIMessageApprovalReactionHintToStructuredPayload: () => addIMessageApprovalReactionHintToStructuredPayload,
|
|
1383
|
+
addIMessageApprovalReactionHintToText: () => addIMessageApprovalReactionHintToText,
|
|
1384
|
+
appendIMessageApprovalReactionHintForOutboundMessage: () => appendIMessageApprovalReactionHintForOutboundMessage,
|
|
1385
|
+
buildIMessageApprovalConversationKeyForTarget: () => buildIMessageApprovalConversationKeyForTarget,
|
|
1386
|
+
buildIMessageApprovalReactionHint: () => buildIMessageApprovalReactionHint,
|
|
1387
|
+
clearIMessageApprovalReactionTargetsForTest: () => clearIMessageApprovalReactionTargetsForTest,
|
|
1388
|
+
extractIMessageApprovalPromptBinding: () => extractIMessageApprovalPromptBinding,
|
|
1389
|
+
handleIMessageApprovalReaction: () => handleIMessageApprovalReaction,
|
|
1390
|
+
listPendingIMessageApprovalReactionPollTargets: () => listPendingIMessageApprovalReactionPollTargets,
|
|
1391
|
+
maybeResolveIMessageApprovalReaction: () => maybeResolveIMessageApprovalReaction,
|
|
1392
|
+
registerIMessageApprovalReactionTarget: () => registerIMessageApprovalReactionTarget,
|
|
1393
|
+
registerIMessageApprovalReactionTargetForDeliveredPayload: () => registerIMessageApprovalReactionTargetForDeliveredPayload,
|
|
1394
|
+
registerIMessageApprovalReactionTargetForOutboundMessage: () => registerIMessageApprovalReactionTargetForOutboundMessage,
|
|
1395
|
+
resolveIMessageApprovalReactionTargetWithPersistence: () => resolveIMessageApprovalReactionTargetWithPersistence,
|
|
1396
|
+
unregisterIMessageApprovalReactionTarget: () => unregisterIMessageApprovalReactionTarget
|
|
1397
|
+
});
|
|
1398
|
+
const PERSISTENT_NAMESPACE = "imessage.approval-reactions";
|
|
1399
|
+
const PERSISTENT_MAX_ENTRIES = 1e3;
|
|
1400
|
+
const DEFAULT_REACTION_TARGET_TTL_MS = 1440 * 60 * 1e3;
|
|
1401
|
+
const loadResolveApprovalOverGateway = createLazyRuntimeSurface(() => import("openclaw/plugin-sdk/approval-gateway-runtime"), (runtime) => runtime.resolveApprovalOverGateway);
|
|
1402
|
+
const pendingReactionPollTargets = /* @__PURE__ */ new Map();
|
|
1403
|
+
function prunePendingReactionPollTargets(nowMs = Date.now()) {
|
|
1404
|
+
for (const [key, target] of pendingReactionPollTargets.entries()) if (!isFutureDateTimestampMs(target.expiresAtMs, { nowMs })) pendingReactionPollTargets.delete(key);
|
|
1405
|
+
}
|
|
1406
|
+
function resolvePendingReactionPollExpiry(ttlMs) {
|
|
1407
|
+
const nowMs = asDateTimestampMs(Date.now());
|
|
1408
|
+
if (nowMs === void 0) return;
|
|
1409
|
+
const expiresAtMs = resolveExpiresAtMsFromDurationMs(ttlMs ?? DEFAULT_REACTION_TARGET_TTL_MS, { nowMs }) ?? resolveExpiresAtMsFromDurationMs(DEFAULT_REACTION_TARGET_TTL_MS, { nowMs });
|
|
1410
|
+
if (expiresAtMs === void 0) return;
|
|
1411
|
+
return {
|
|
1412
|
+
ttlMs: expiresAtMs - nowMs,
|
|
1413
|
+
expiresAtMs
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
function mergePollTargetConversation(left, right) {
|
|
1417
|
+
return {
|
|
1418
|
+
chatGuid: left.chatGuid ?? right.chatGuid,
|
|
1419
|
+
chatIdentifier: left.chatIdentifier ?? right.chatIdentifier,
|
|
1420
|
+
chatId: left.chatId ?? right.chatId,
|
|
1421
|
+
handle: left.handle ?? right.handle
|
|
1422
|
+
};
|
|
1423
|
+
}
|
|
1424
|
+
function listPendingIMessageApprovalReactionPollTargets(params) {
|
|
1425
|
+
const accountId = params.accountId.trim();
|
|
1426
|
+
if (!accountId) return [];
|
|
1427
|
+
prunePendingReactionPollTargets();
|
|
1428
|
+
const targetByApprovalAndMessage = /* @__PURE__ */ new Map();
|
|
1429
|
+
for (const target of pendingReactionPollTargets.values()) {
|
|
1430
|
+
if (target.accountId !== accountId) continue;
|
|
1431
|
+
const key = `${target.approvalId}:${normalizeIMessageGuid(target.messageId)}`;
|
|
1432
|
+
const existing = targetByApprovalAndMessage.get(key);
|
|
1433
|
+
if (!existing) {
|
|
1434
|
+
targetByApprovalAndMessage.set(key, target);
|
|
1435
|
+
continue;
|
|
1436
|
+
}
|
|
1437
|
+
targetByApprovalAndMessage.set(key, {
|
|
1438
|
+
...existing,
|
|
1439
|
+
conversation: mergePollTargetConversation(existing.conversation, target.conversation),
|
|
1440
|
+
expiresAtMs: Math.max(existing.expiresAtMs, target.expiresAtMs)
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
return [...targetByApprovalAndMessage.values()];
|
|
1444
|
+
}
|
|
1445
|
+
const reportPersistentApprovalReactionError = createPluginStateErrorReporter(getOptionalIMessageRuntime, "imessage", "approval-reaction-state", "iMessage persistent approval reaction state failed");
|
|
1446
|
+
function reportApprovalBindingCorrelationMismatch(binding) {
|
|
1447
|
+
try {
|
|
1448
|
+
getOptionalIMessageRuntime()?.logging.getChildLogger({
|
|
1449
|
+
plugin: "imessage",
|
|
1450
|
+
feature: "approval-reaction-state"
|
|
1451
|
+
}).warn("iMessage approval prompt text failed binding correlation; tapbacks disabled", {
|
|
1452
|
+
approvalId: binding.approvalId,
|
|
1453
|
+
approvalKind: binding.approvalKind
|
|
1454
|
+
});
|
|
1455
|
+
} catch {}
|
|
1456
|
+
}
|
|
1457
|
+
function readPersistedTarget(value) {
|
|
1458
|
+
const target = value;
|
|
1459
|
+
if (!target || typeof target.approvalId !== "string" || !Array.isArray(target.allowedDecisions) || target.approvalKind !== "exec" && target.approvalKind !== "plugin") return null;
|
|
1460
|
+
const allowedDecisions = target.allowedDecisions.map((valueValue) => typeof valueValue === "string" ? normalizeApprovalReactionDecision(valueValue) : null).filter((valueLocal) => Boolean(valueLocal));
|
|
1461
|
+
if (allowedDecisions.length === 0) return null;
|
|
1462
|
+
return {
|
|
1463
|
+
approvalId: target.approvalId,
|
|
1464
|
+
approvalKind: target.approvalKind,
|
|
1465
|
+
allowedDecisions
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
const imessageApprovalReactionTargets = createApprovalReactionTargetStore({
|
|
1469
|
+
namespace: PERSISTENT_NAMESPACE,
|
|
1470
|
+
maxEntries: PERSISTENT_MAX_ENTRIES,
|
|
1471
|
+
defaultTtlMs: DEFAULT_REACTION_TARGET_TTL_MS,
|
|
1472
|
+
openStore: (params) => getOptionalIMessageRuntime()?.state.openKeyedStore(params),
|
|
1473
|
+
logPersistentError: reportPersistentApprovalReactionError,
|
|
1474
|
+
readPersistedTarget
|
|
1475
|
+
});
|
|
1476
|
+
function listIMessageApprovalReactionBindings(allowedDecisions) {
|
|
1477
|
+
return listApprovalReactionBindings({ allowedDecisions });
|
|
1478
|
+
}
|
|
1479
|
+
function buildIMessageApprovalReactionHint(allowedDecisions) {
|
|
1480
|
+
return buildApprovalReactionHint({ allowedDecisions });
|
|
1481
|
+
}
|
|
1482
|
+
function addIMessageApprovalReactionHintToText(params) {
|
|
1483
|
+
return addApprovalReactionHintToText(params);
|
|
1484
|
+
}
|
|
1485
|
+
function appendIMessageApprovalReactionHintForOutboundMessage(text) {
|
|
1486
|
+
if (hasApprovalReactionHintText(text)) return text;
|
|
1487
|
+
const binding = extractIMessageApprovalPromptBinding(text);
|
|
1488
|
+
if (!binding) return text;
|
|
1489
|
+
return addIMessageApprovalReactionHintToText({
|
|
1490
|
+
text,
|
|
1491
|
+
allowedDecisions: binding.allowedDecisions
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
const IMESSAGE_APPROVAL_DELIVERY_BINDING_KEY = "imessageApprovalReactionBindingV1";
|
|
1495
|
+
function visibleApprovalBindingMatches(text, binding, options) {
|
|
1496
|
+
if (!text) return false;
|
|
1497
|
+
const lines = text.split(/\r?\n/).map((line) => line.replace(/\*\*/g, "").trim());
|
|
1498
|
+
const normalizedHeaders = lines.map((line) => line.replace(/^[^A-Za-z0-9]*/, ""));
|
|
1499
|
+
const hasKindHeader = binding.approvalKind === "exec" ? lines.includes("Approval required.") || normalizedHeaders.some((line) => /^Exec approval required$/i.test(line)) : normalizedHeaders.some((line) => /^Plugin approval required$/i.test(line));
|
|
1500
|
+
const hasId = lines.includes(`ID: ${binding.approvalId}`) || lines.includes(`Full id: \`${binding.approvalId}\``) || lines.includes(`Full id: ${binding.approvalId}`);
|
|
1501
|
+
if (!hasKindHeader || !hasId) return false;
|
|
1502
|
+
const visibleDecisions = [];
|
|
1503
|
+
for (const line of lines) {
|
|
1504
|
+
const match = line.match(APPROVE_COMMAND_LINE_RE);
|
|
1505
|
+
const approvalId = match?.[1];
|
|
1506
|
+
const decisionsText = match?.[2];
|
|
1507
|
+
if (!approvalId || !decisionsText || approvalId !== binding.approvalId && approvalId !== binding.approvalSlug) continue;
|
|
1508
|
+
for (const token of decisionsText.split(/[\s|,]+/)) {
|
|
1509
|
+
const decision = normalizeApprovalReactionDecision(token);
|
|
1510
|
+
if (decision && !visibleDecisions.includes(decision)) visibleDecisions.push(decision);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
if (!approvalReactionDecisionSetsMatch(binding.allowedDecisions, visibleDecisions)) return false;
|
|
1514
|
+
if (!options.requireReactionHint) return true;
|
|
1515
|
+
const hint = buildIMessageApprovalReactionHint(binding.allowedDecisions);
|
|
1516
|
+
return Boolean(hint && text.includes(hint));
|
|
1517
|
+
}
|
|
1518
|
+
/** Preserve a validated typed approval binding until the iMessage GUID is known. */
|
|
1519
|
+
function addIMessageApprovalReactionHintToStructuredPayload(params) {
|
|
1520
|
+
const metadata = readApprovalReactionPresentationBinding({
|
|
1521
|
+
payload: params.payload,
|
|
1522
|
+
requireApprovalSlug: true,
|
|
1523
|
+
trimApprovalId: true
|
|
1524
|
+
});
|
|
1525
|
+
const text = params.payload.text;
|
|
1526
|
+
if (metadata?.approvalKind !== params.approvalKind || !text) return null;
|
|
1527
|
+
if (!visibleApprovalBindingMatches(text, metadata, { requireReactionHint: false })) {
|
|
1528
|
+
reportApprovalBindingCorrelationMismatch(metadata);
|
|
1529
|
+
return null;
|
|
1530
|
+
}
|
|
1531
|
+
return {
|
|
1532
|
+
...params.payload,
|
|
1533
|
+
text: addIMessageApprovalReactionHintToText({
|
|
1534
|
+
text,
|
|
1535
|
+
allowedDecisions: metadata.allowedDecisions
|
|
1536
|
+
}),
|
|
1537
|
+
channelData: {
|
|
1538
|
+
...params.payload.channelData,
|
|
1539
|
+
[IMESSAGE_APPROVAL_DELIVERY_BINDING_KEY]: {
|
|
1540
|
+
version: 1,
|
|
1541
|
+
approvalId: metadata.approvalId,
|
|
1542
|
+
approvalSlug: metadata.approvalSlug,
|
|
1543
|
+
approvalKind: metadata.approvalKind,
|
|
1544
|
+
allowedDecisions: metadata.allowedDecisions
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
const APPROVE_COMMAND_LINE_RE = /\/approve(?:@[^\s]+)?\s+([A-Za-z0-9][A-Za-z0-9._:-]*)\s+(.+)$/i;
|
|
1550
|
+
function extractIMessageApprovalPromptBinding(text) {
|
|
1551
|
+
return extractApprovalReactionPromptBinding({ text });
|
|
1552
|
+
}
|
|
1553
|
+
function registerIMessageApprovalReactionTarget(params) {
|
|
1554
|
+
const approvalId = params.approvalId.trim();
|
|
1555
|
+
const allowedDecisions = listIMessageApprovalReactionBindings(params.allowedDecisions).map((binding) => binding.decision);
|
|
1556
|
+
if (!approvalId || params.approvalKind !== "exec" && params.approvalKind !== "plugin" || allowedDecisions.length === 0) return null;
|
|
1557
|
+
const target = {
|
|
1558
|
+
approvalId,
|
|
1559
|
+
approvalKind: params.approvalKind,
|
|
1560
|
+
allowedDecisions
|
|
1561
|
+
};
|
|
1562
|
+
const expiry = resolvePendingReactionPollExpiry(params.ttlMs);
|
|
1563
|
+
if (!expiry) return null;
|
|
1564
|
+
const keys = enumerateApprovalTargetKeys({
|
|
1565
|
+
accountId: params.accountId,
|
|
1566
|
+
conversation: params.conversation,
|
|
1567
|
+
messageId: params.messageId
|
|
1568
|
+
});
|
|
1569
|
+
if (keys.length === 0) return null;
|
|
1570
|
+
for (const key of keys) {
|
|
1571
|
+
imessageApprovalReactionTargets.register(key, target, { ttlMs: expiry.ttlMs });
|
|
1572
|
+
pendingReactionPollTargets.set(key, {
|
|
1573
|
+
accountId: params.accountId,
|
|
1574
|
+
conversation: params.conversation,
|
|
1575
|
+
messageId: params.messageId,
|
|
1576
|
+
approvalId,
|
|
1577
|
+
approvalKind: params.approvalKind,
|
|
1578
|
+
allowedDecisions,
|
|
1579
|
+
expiresAtMs: expiry.expiresAtMs
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
prunePendingReactionPollTargets();
|
|
1583
|
+
return target;
|
|
1584
|
+
}
|
|
1585
|
+
function registerIMessageApprovalReactionTargetForOutboundMessage(params) {
|
|
1586
|
+
const binding = extractIMessageApprovalPromptBinding(params.text);
|
|
1587
|
+
if (!binding || binding.approvalKind !== params.approvalKind) return false;
|
|
1588
|
+
return Boolean(registerIMessageApprovalReactionTarget({
|
|
1589
|
+
accountId: params.accountId,
|
|
1590
|
+
conversation: params.conversation,
|
|
1591
|
+
messageId: params.messageId,
|
|
1592
|
+
approvalId: binding.approvalId,
|
|
1593
|
+
approvalKind: params.approvalKind,
|
|
1594
|
+
allowedDecisions: binding.allowedDecisions,
|
|
1595
|
+
ttlMs: params.ttlMs
|
|
1596
|
+
}));
|
|
1597
|
+
}
|
|
1598
|
+
function listDeliveredIMessageApprovalGuids(params) {
|
|
1599
|
+
const deliveries = [];
|
|
1600
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1601
|
+
for (const result of params.results) {
|
|
1602
|
+
if (result.channel !== "imessage") continue;
|
|
1603
|
+
const guid = typeof result.meta?.imessageMessageGuid === "string" ? result.meta.imessageMessageGuid.trim() : "";
|
|
1604
|
+
const visibleText = result.meta?.imessageVisibleText;
|
|
1605
|
+
if (!guid || /^\d+$/.test(guid) || seen.has(guid) || typeof visibleText !== "string") continue;
|
|
1606
|
+
seen.add(guid);
|
|
1607
|
+
deliveries.push({
|
|
1608
|
+
guid,
|
|
1609
|
+
visibleText
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
if (!visibleApprovalBindingMatches(deliveries.map((delivery) => delivery.visibleText).join("\n"), params.binding, { requireReactionHint: true })) {
|
|
1613
|
+
if (params.results.some((result) => result.channel === "imessage")) reportApprovalBindingCorrelationMismatch(params.binding);
|
|
1614
|
+
return [];
|
|
1615
|
+
}
|
|
1616
|
+
return deliveries.map((delivery) => delivery.guid);
|
|
1617
|
+
}
|
|
1618
|
+
/** Bind a typed forwarded approval after iMessage returns the stable tapback GUID. */
|
|
1619
|
+
function registerIMessageApprovalReactionTargetForDeliveredPayload(params) {
|
|
1620
|
+
if (params.target.channel.trim().toLowerCase() !== "imessage") return false;
|
|
1621
|
+
const binding = readApprovalReactionDeliveredBinding({
|
|
1622
|
+
payload: params.payload,
|
|
1623
|
+
channelDataKey: IMESSAGE_APPROVAL_DELIVERY_BINDING_KEY,
|
|
1624
|
+
requireApprovalSlug: true,
|
|
1625
|
+
trimApprovalId: true
|
|
1626
|
+
});
|
|
1627
|
+
if (!binding) return false;
|
|
1628
|
+
const conversation = buildIMessageApprovalConversationKeyForTarget(params.target.to);
|
|
1629
|
+
if (!conversation) return false;
|
|
1630
|
+
let registered = false;
|
|
1631
|
+
for (const messageId of listDeliveredIMessageApprovalGuids({
|
|
1632
|
+
binding,
|
|
1633
|
+
results: params.results
|
|
1634
|
+
})) registered = Boolean(registerIMessageApprovalReactionTarget({
|
|
1635
|
+
accountId: params.accountId,
|
|
1636
|
+
conversation,
|
|
1637
|
+
messageId,
|
|
1638
|
+
approvalId: binding.approvalId,
|
|
1639
|
+
approvalKind: binding.approvalKind,
|
|
1640
|
+
allowedDecisions: binding.allowedDecisions,
|
|
1641
|
+
ttlMs: params.ttlMs
|
|
1642
|
+
})) || registered;
|
|
1643
|
+
return registered;
|
|
1644
|
+
}
|
|
1645
|
+
function unregisterIMessageApprovalReactionTarget(params) {
|
|
1646
|
+
const keys = enumerateApprovalTargetKeys(params);
|
|
1647
|
+
for (const key of keys) {
|
|
1648
|
+
imessageApprovalReactionTargets.delete(key);
|
|
1649
|
+
pendingReactionPollTargets.delete(key);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
function resolveTarget(params) {
|
|
1653
|
+
const target = resolveTypedApprovalReactionTarget(params);
|
|
1654
|
+
return target ? {
|
|
1655
|
+
approvalId: target.approvalId,
|
|
1656
|
+
approvalKind: target.approvalKind,
|
|
1657
|
+
decision: target.decision
|
|
1658
|
+
} : null;
|
|
1659
|
+
}
|
|
1660
|
+
function formatCanonicalApprovalTerminalState(approval) {
|
|
1661
|
+
const decision = approval.status === "allowed" || approval.status === "denied" ? ` decision=${approval.decision}` : "";
|
|
1662
|
+
return `status=${approval.status}${decision} reason=${approval.reason}`;
|
|
1663
|
+
}
|
|
1664
|
+
async function resolveIMessageApprovalReactionTargetWithPersistence(params) {
|
|
1665
|
+
const keys = enumerateApprovalTargetKeys(params);
|
|
1666
|
+
for (const key of keys) {
|
|
1667
|
+
const target = resolveTarget({
|
|
1668
|
+
target: await imessageApprovalReactionTargets.lookup(key),
|
|
1669
|
+
reactionKey: params.reactionKey
|
|
1670
|
+
});
|
|
1671
|
+
if (target) return target;
|
|
1672
|
+
}
|
|
1673
|
+
return null;
|
|
1674
|
+
}
|
|
1675
|
+
function readApprovalReactionEvent(message, bodyText) {
|
|
1676
|
+
const reaction = resolveIMessageReactionContext(message, bodyText);
|
|
1677
|
+
if (!reaction) return null;
|
|
1678
|
+
const reactionKey = reaction.emoji.trim();
|
|
1679
|
+
const candidates = (reaction.targetGuids ?? []).map((value) => value.trim()).filter((value) => value.length > 0);
|
|
1680
|
+
const primary = reaction.targetGuid?.trim() || candidates[0] || "";
|
|
1681
|
+
const messageIdCandidates = candidates.length > 0 ? candidates : primary ? [primary] : [];
|
|
1682
|
+
const actorHandle = normalizeIMessageHandle$1((message.sender ?? "").trim());
|
|
1683
|
+
if (!reactionKey || !primary || !actorHandle) return null;
|
|
1684
|
+
const conversation = buildIMessageApprovalConversationKeyForInbound({
|
|
1685
|
+
chatGuid: message.chat_guid,
|
|
1686
|
+
chatIdentifier: message.chat_identifier,
|
|
1687
|
+
chatId: message.chat_id,
|
|
1688
|
+
isGroup: message.is_group,
|
|
1689
|
+
actorHandle
|
|
1690
|
+
});
|
|
1691
|
+
if (!normalizeConversationKey(conversation)) return null;
|
|
1692
|
+
return {
|
|
1693
|
+
conversation,
|
|
1694
|
+
messageId: primary,
|
|
1695
|
+
messageIdCandidates,
|
|
1696
|
+
actorHandle,
|
|
1697
|
+
reactionKey,
|
|
1698
|
+
action: reaction.action
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
async function handleIMessageApprovalReaction(params) {
|
|
1702
|
+
const event = readApprovalReactionEvent(params.message, params.bodyText);
|
|
1703
|
+
if (!event) return {
|
|
1704
|
+
handled: false,
|
|
1705
|
+
stopPolling: false
|
|
1706
|
+
};
|
|
1707
|
+
if (event.action === "removed") return {
|
|
1708
|
+
handled: false,
|
|
1709
|
+
stopPolling: false
|
|
1710
|
+
};
|
|
1711
|
+
let target = null;
|
|
1712
|
+
let matchedMessageId = null;
|
|
1713
|
+
for (const candidate of event.messageIdCandidates) {
|
|
1714
|
+
target = await resolveIMessageApprovalReactionTargetWithPersistence({
|
|
1715
|
+
accountId: params.accountId,
|
|
1716
|
+
conversation: event.conversation,
|
|
1717
|
+
messageId: candidate,
|
|
1718
|
+
reactionKey: event.reactionKey
|
|
1719
|
+
});
|
|
1720
|
+
if (target) {
|
|
1721
|
+
matchedMessageId = candidate;
|
|
1722
|
+
break;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
if (!target) return {
|
|
1726
|
+
handled: false,
|
|
1727
|
+
stopPolling: false
|
|
1728
|
+
};
|
|
1729
|
+
if (getIMessageApprovalApprovers({
|
|
1730
|
+
cfg: params.cfg,
|
|
1731
|
+
accountId: params.accountId
|
|
1732
|
+
}).length === 0) {
|
|
1733
|
+
params.logVerboseMessage?.(`imessage: approval reaction denied id=${target.approvalId}; reactions require explicit approvers`);
|
|
1734
|
+
return {
|
|
1735
|
+
handled: true,
|
|
1736
|
+
stopPolling: false
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
if (!imessageApprovalAuth.authorizeActorAction({
|
|
1740
|
+
cfg: params.cfg,
|
|
1741
|
+
accountId: params.accountId,
|
|
1742
|
+
senderId: event.actorHandle,
|
|
1743
|
+
action: "approve",
|
|
1744
|
+
approvalKind: target.approvalKind
|
|
1745
|
+
}).authorized) {
|
|
1746
|
+
params.logVerboseMessage?.(`imessage: approval reaction denied id=${target.approvalId} sender=${event.actorHandle}`);
|
|
1747
|
+
return {
|
|
1748
|
+
handled: true,
|
|
1749
|
+
stopPolling: false
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
const resolveApprovalOverGateway = await loadResolveApprovalOverGateway();
|
|
1753
|
+
try {
|
|
1754
|
+
const result = await resolveApprovalOverGateway({
|
|
1755
|
+
cfg: params.cfg,
|
|
1756
|
+
approvalId: target.approvalId,
|
|
1757
|
+
approvalKind: target.approvalKind,
|
|
1758
|
+
decision: target.decision,
|
|
1759
|
+
channel: "imessage",
|
|
1760
|
+
accountId: params.accountId,
|
|
1761
|
+
senderId: event.actorHandle,
|
|
1762
|
+
gatewayUrl: params.gatewayUrl,
|
|
1763
|
+
...params.gatewayRuntime ? { gatewayRuntime: params.gatewayRuntime } : {}
|
|
1764
|
+
});
|
|
1765
|
+
for (const candidate of event.messageIdCandidates) unregisterIMessageApprovalReactionTarget({
|
|
1766
|
+
accountId: params.accountId,
|
|
1767
|
+
conversation: event.conversation,
|
|
1768
|
+
messageId: candidate
|
|
1769
|
+
});
|
|
1770
|
+
const outcome = result.applied ? "resolved" : "already resolved";
|
|
1771
|
+
params.logVerboseMessage?.(`imessage: approval reaction ${outcome} id=${target.approvalId} sender=${event.actorHandle} ${formatCanonicalApprovalTerminalState(result.approval)} via messageId=${matchedMessageId ?? event.messageId}`);
|
|
1772
|
+
return {
|
|
1773
|
+
handled: true,
|
|
1774
|
+
stopPolling: true,
|
|
1775
|
+
stopPollingReason: "resolved"
|
|
1776
|
+
};
|
|
1777
|
+
} catch (error) {
|
|
1778
|
+
if (isApprovalNotFoundError(error)) {
|
|
1779
|
+
for (const candidate of event.messageIdCandidates) unregisterIMessageApprovalReactionTarget({
|
|
1780
|
+
accountId: params.accountId,
|
|
1781
|
+
conversation: event.conversation,
|
|
1782
|
+
messageId: candidate
|
|
1783
|
+
});
|
|
1784
|
+
params.logVerboseMessage?.(`imessage: approval reaction ignored for expired approval id=${target.approvalId} sender=${event.actorHandle}`);
|
|
1785
|
+
return {
|
|
1786
|
+
handled: true,
|
|
1787
|
+
stopPolling: true,
|
|
1788
|
+
stopPollingReason: "not-found"
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
try {
|
|
1792
|
+
getOptionalIMessageRuntime()?.logging.getChildLogger({
|
|
1793
|
+
plugin: "imessage",
|
|
1794
|
+
feature: "approval-reactions"
|
|
1795
|
+
}).warn("approval reaction failed", {
|
|
1796
|
+
approvalId: target.approvalId,
|
|
1797
|
+
senderId: event.actorHandle,
|
|
1798
|
+
error: String(error)
|
|
1799
|
+
});
|
|
1800
|
+
} catch {}
|
|
1801
|
+
params.logVerboseMessage?.(`imessage: approval reaction failed id=${target.approvalId} sender=${event.actorHandle}: ${String(error)}`);
|
|
1802
|
+
return {
|
|
1803
|
+
handled: true,
|
|
1804
|
+
stopPolling: true,
|
|
1805
|
+
stopPollingReason: "resolver-error"
|
|
1806
|
+
};
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
async function maybeResolveIMessageApprovalReaction(params) {
|
|
1810
|
+
return (await handleIMessageApprovalReaction(params)).handled;
|
|
1811
|
+
}
|
|
1812
|
+
function clearIMessageApprovalReactionTargetsForTest() {
|
|
1813
|
+
imessageApprovalReactionTargets.clearForTest();
|
|
1814
|
+
pendingReactionPollTargets.clear();
|
|
1815
|
+
loadResolveApprovalOverGateway.clear();
|
|
1816
|
+
}
|
|
1817
|
+
//#endregion
|
|
1818
|
+
//#region extensions/imessage/src/normalize.ts
|
|
1819
|
+
const SERVICE_PREFIXES = [
|
|
1820
|
+
"imessage:",
|
|
1821
|
+
"sms:",
|
|
1822
|
+
"auto:"
|
|
1823
|
+
];
|
|
1824
|
+
const CHAT_TARGET_PREFIX_RE = /^(chat_id:|chatid:|chat:|chat_guid:|chatguid:|guid:|chat_identifier:|chatidentifier:|chatident:)/i;
|
|
1825
|
+
function looksLikeHandleOrPhoneTarget(params) {
|
|
1826
|
+
const trimmed = params.raw.trim();
|
|
1827
|
+
if (!trimmed) return false;
|
|
1828
|
+
if (params.prefixPattern.test(trimmed)) return true;
|
|
1829
|
+
if (trimmed.includes("@")) return true;
|
|
1830
|
+
return (params.phonePattern ?? /^\+?\d{3,}$/).test(trimmed);
|
|
1831
|
+
}
|
|
1832
|
+
function normalizeIMessageHandle(raw) {
|
|
1833
|
+
const trimmed = raw.trim();
|
|
1834
|
+
if (!trimmed) return "";
|
|
1835
|
+
const lowered = normalizeLowercaseStringOrEmpty(trimmed);
|
|
1836
|
+
if (lowered.startsWith("imessage:")) return normalizeIMessageHandle(trimmed.slice(9));
|
|
1837
|
+
if (lowered.startsWith("sms:")) return normalizeIMessageHandle(trimmed.slice(4));
|
|
1838
|
+
if (lowered.startsWith("auto:")) return normalizeIMessageHandle(trimmed.slice(5));
|
|
1839
|
+
if (CHAT_TARGET_PREFIX_RE.test(trimmed)) {
|
|
1840
|
+
const prefix = trimmed.match(CHAT_TARGET_PREFIX_RE)?.[0];
|
|
1841
|
+
if (!prefix) return "";
|
|
1842
|
+
const value = trimmed.slice(prefix.length).trim();
|
|
1843
|
+
return `${normalizeLowercaseStringOrEmpty(prefix)}${value}`;
|
|
1844
|
+
}
|
|
1845
|
+
if (trimmed.includes("@")) return normalizeLowercaseStringOrEmpty(trimmed);
|
|
1846
|
+
const bareChatIdentifier = normalizeBareIMessageChatIdentifier(trimmed);
|
|
1847
|
+
if (bareChatIdentifier) return `chat_identifier:${bareChatIdentifier}`;
|
|
1848
|
+
const normalized = normalizeE164(trimmed);
|
|
1849
|
+
if (normalized) return normalized;
|
|
1850
|
+
return trimmed.replace(/\s+/g, "");
|
|
1851
|
+
}
|
|
1852
|
+
function normalizeIMessageMessagingTarget(raw) {
|
|
1853
|
+
const trimmed = normalizeOptionalString(raw);
|
|
1854
|
+
if (!trimmed) return;
|
|
1855
|
+
const lower = normalizeLowercaseStringOrEmpty(trimmed);
|
|
1856
|
+
for (const prefix of SERVICE_PREFIXES) if (lower.startsWith(prefix)) {
|
|
1857
|
+
const normalizedHandle = normalizeIMessageHandle(trimmed.slice(prefix.length).trim());
|
|
1858
|
+
if (!normalizedHandle) return;
|
|
1859
|
+
if (CHAT_TARGET_PREFIX_RE.test(normalizedHandle)) return normalizedHandle;
|
|
1860
|
+
return `${prefix}${normalizedHandle}`;
|
|
1861
|
+
}
|
|
1862
|
+
return normalizeIMessageHandle(trimmed) || void 0;
|
|
1863
|
+
}
|
|
1864
|
+
function looksLikeIMessageTargetId(raw) {
|
|
1865
|
+
const trimmed = normalizeOptionalString(raw);
|
|
1866
|
+
if (!trimmed) return false;
|
|
1867
|
+
if (CHAT_TARGET_PREFIX_RE.test(trimmed)) return true;
|
|
1868
|
+
if (normalizeBareIMessageChatIdentifier(trimmed)) return true;
|
|
1869
|
+
return looksLikeHandleOrPhoneTarget({
|
|
1870
|
+
raw: trimmed,
|
|
1871
|
+
prefixPattern: /^(imessage:|sms:|auto:)/i
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region extensions/imessage/src/conversation-id-core.ts
|
|
1876
|
+
function normalizeIMessageAcpConversationId(conversationId) {
|
|
1877
|
+
const trimmed = conversationId.trim();
|
|
1878
|
+
if (!trimmed) return null;
|
|
1879
|
+
try {
|
|
1880
|
+
const parsed = parseIMessageTarget(trimmed);
|
|
1881
|
+
if (parsed.kind === "handle") {
|
|
1882
|
+
const handle = normalizeIMessageHandle$1(parsed.to);
|
|
1883
|
+
return handle ? { conversationId: handle } : null;
|
|
1884
|
+
}
|
|
1885
|
+
if (parsed.kind === "chat_id") return { conversationId: String(parsed.chatId) };
|
|
1886
|
+
if (parsed.kind === "chat_guid") return { conversationId: parsed.chatGuid };
|
|
1887
|
+
return { conversationId: parsed.chatIdentifier };
|
|
1888
|
+
} catch {
|
|
1889
|
+
const handle = normalizeIMessageHandle$1(trimmed);
|
|
1890
|
+
return handle ? { conversationId: handle } : null;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
function matchIMessageAcpConversation(params) {
|
|
1894
|
+
const binding = normalizeIMessageAcpConversationId(params.bindingConversationId);
|
|
1895
|
+
const conversation = normalizeIMessageAcpConversationId(params.conversationId);
|
|
1896
|
+
if (!binding || !conversation) return null;
|
|
1897
|
+
if (binding.conversationId !== conversation.conversationId) return null;
|
|
1898
|
+
return {
|
|
1899
|
+
conversationId: conversation.conversationId,
|
|
1900
|
+
matchPriority: 2
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
function resolveIMessageConversationIdFromTarget(target) {
|
|
1904
|
+
return normalizeIMessageAcpConversationId(target)?.conversationId;
|
|
1905
|
+
}
|
|
1906
|
+
//#endregion
|
|
1907
|
+
//#region extensions/imessage/src/conversation-id.ts
|
|
1908
|
+
function resolveIMessageInboundConversationId(params) {
|
|
1909
|
+
if (params.isGroup) return params.chatId != null && Number.isFinite(params.chatId) ? String(params.chatId) : void 0;
|
|
1910
|
+
return normalizeIMessageHandle$1(params.sender) || void 0;
|
|
1911
|
+
}
|
|
1912
|
+
//#endregion
|
|
1913
|
+
//#region extensions/imessage/src/group-policy.ts
|
|
1914
|
+
function resolveScopePath(params) {
|
|
1915
|
+
return params.groupId ? [params.groupId] : [];
|
|
1916
|
+
}
|
|
1917
|
+
function resolveIMessageGroupRequireMention(params) {
|
|
1918
|
+
return resolveScopeRequireMention({
|
|
1919
|
+
tree: buildChannelGroupsScopeTree(params.cfg, "imessage", params.accountId),
|
|
1920
|
+
path: resolveScopePath(params)
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
function resolveIMessageGroupToolPolicy(params) {
|
|
1924
|
+
return resolveScopeToolsPolicy({
|
|
1925
|
+
...params,
|
|
1926
|
+
tree: buildChannelGroupsScopeTree(params.cfg, "imessage", params.accountId),
|
|
1927
|
+
path: resolveScopePath(params),
|
|
1928
|
+
messageProvider: "imessage"
|
|
1929
|
+
});
|
|
1930
|
+
}
|
|
1931
|
+
//#endregion
|
|
1932
|
+
export { enumerateConversationKeyForms as A, imessageCompletionNote as B, registerIMessageApprovalReactionTarget as C, buildIMessageApprovalConversationKeyForInbound as D, resolveIMessageReactionContext as E, imessageMessageActions as F, normalizeIMessageCliPathForSetup as G, imessageSetupContract as H, probeIMessage as I, __exportAll as K, IMESSAGE_INSTALL_COMMAND as L, normalizeIMessageGuid as M, getIMessageApprovalApprovers as N, buildIMessageApprovalConversationKeyForTarget as O, imessageApprovalAuth as P, createIMessageCliPathTextInput as R, maybeResolveIMessageApprovalReaction as S, unregisterIMessageApprovalReactionTarget as T, imessageSetupStatusBase as U, imessageDmPolicy as V, isAutoManagedIMessageCliPath as W, appendIMessageApprovalReactionHintForOutboundMessage as _, normalizeIMessageAcpConversationId as a, handleIMessageApprovalReaction as b, PAIRING_APPROVED_MESSAGE as c, formatTrimmedAllowFromEntries$1 as d, getChatChannelMeta as f, addIMessageApprovalReactionHintToText as g, normalizeIMessageMessagingTarget as h, matchIMessageAcpConversation as i, normalizeConversationKey as j, enumerateApprovalTargetKeys as k, chunkTextForOutbound as l, looksLikeIMessageTargetId as m, resolveIMessageGroupToolPolicy as n, resolveIMessageConversationIdFromTarget as o, resolveChannelMediaMaxBytes as p, resolveIMessageInboundConversationId as r, DEFAULT_ACCOUNT_ID as s, resolveIMessageGroupRequireMention as t, collectStatusIssuesFromLastError as u, approval_reactions_exports as v, registerIMessageApprovalReactionTargetForOutboundMessage as w, listPendingIMessageApprovalReactionPollTargets as x, extractIMessageApprovalPromptBinding as y, createIMessageSetupWizardProxy as z };
|