@brainerce/mcp-server 3.2.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/stdio.js CHANGED
@@ -1862,6 +1862,265 @@ const admin = new BrainerceClient({ apiKey: 'brainerce_...' });
1862
1862
  // OAuth: getOAuthProviders(), configureOAuthProvider()
1863
1863
  \`\`\``;
1864
1864
  }
1865
+ function getContactInquiriesSection() {
1866
+ return `## Contact Inquiries & Forms (optional)
1867
+
1868
+ Accept messages from one or more contact forms on your storefront. The merchant
1869
+ configures everything in the Brainerce dashboard under **Customers \u2192 Contact
1870
+ Forms**; submissions land in **Customers \u2192 Inquiries** and both sides receive
1871
+ email notifications.
1872
+
1873
+ **IMPORTANT for AI code generators:** the merchant OWNS the form shape. Do not
1874
+ hardcode labels, placeholders, help text, the submit button, or the success
1875
+ message. Render from the schema returned by \`contactForms.get()\` so the
1876
+ storefront reflects whatever the merchant configures \u2014 including new fields
1877
+ they add later, translations they add later, and the success message they
1878
+ write. This is the difference between "a contact form" and "THE merchant's
1879
+ contact form."
1880
+
1881
+ ### Two integration paths
1882
+
1883
+ 1. **Simple (legacy)** \u2014 pass \`{ name, email, subject, message }\` and submit.
1884
+ Works out of the box, no dashboard setup needed. Backed by a lazily-seeded
1885
+ default form keyed \`"main"\` with five built-in fields (\`name\`, \`email\`,
1886
+ \`phone\`, \`subject\`, \`message\`). Choose this only for throwaway demos.
1887
+ 2. **Flexible (recommended, default in \`npx create-brainerce-store\`)** \u2014
1888
+ merchants can configure multiple forms per store (e.g. \`main\`,
1889
+ \`newsletter\`, \`whatsapp_prechat\`), add custom fields (TEXT, TEXTAREA,
1890
+ EMAIL, PHONE, NUMBER, SELECT, MULTI_SELECT, CHECKBOX, URL, DATE), translate
1891
+ everything per locale, hide any non-essential built-in. Fetch the schema
1892
+ with \`contactForms.get(formKey, locale)\` and render dynamically.
1893
+
1894
+ ### Simple path (legacy shape)
1895
+
1896
+ \`\`\`typescript
1897
+ import type { CreateInquiryInput, CreateInquiryResponse } from 'brainerce';
1898
+
1899
+ const result = await brainerce.createInquiry({
1900
+ name: 'Jane Doe',
1901
+ email: 'jane@example.com',
1902
+ subject: 'Question about shipping',
1903
+ message: 'Hi, do you ship internationally?',
1904
+ phone: '+1-555-0100', // optional
1905
+ customerId: customer?.id, // optional \u2014 link to logged-in customer
1906
+ metadata: { page: '/contact' }, // optional
1907
+ });
1908
+ // \u2192 { id, status: 'NEW', createdAt }
1909
+ \`\`\`
1910
+
1911
+ ### Flexible path \u2014 end-to-end contract
1912
+
1913
+ **Endpoints:**
1914
+
1915
+ | Method | Path | Returns |
1916
+ | ------ | ----------------------------------------------------------------- | ------------------------------ |
1917
+ | GET | \`/stores/:storeId/contact-forms\` | \`ContactFormSummary[]\` |
1918
+ | GET | \`/stores/:storeId/contact-forms/:formKey?locale=xx\` | \`ContactFormPublic\` |
1919
+ | POST | \`/stores/:storeId/inquiries\` | \`CreateInquiryResponse\` |
1920
+
1921
+ All three are public (no API key). The SDK wraps them so you never call them
1922
+ directly \u2014 use \`brainerce.contactForms.list()\`, \`brainerce.contactForms.get()\`,
1923
+ and \`brainerce.createInquiry()\`.
1924
+
1925
+ \`\`\`typescript
1926
+ import type { ContactFormPublic } from 'brainerce';
1927
+
1928
+ // List active forms (optional \u2014 if you want a form picker or route-per-form setup)
1929
+ const forms = await brainerce.contactForms.list();
1930
+ // \u2192 [{ key: 'main', name: 'Contact us', isDefault: true }, ...]
1931
+
1932
+ // Fetch one form's schema \u2014 server pre-resolves translations for the locale
1933
+ // and strips every field the merchant marked isVisible=false.
1934
+ const form = await brainerce.contactForms.get('main', 'en');
1935
+ // \u2192 {
1936
+ // id, key, name, description?, submitButton, successMessage,
1937
+ // fields: [{ key, type, label, placeholder?, helpText?, isRequired,
1938
+ // enumValues?, validation?, defaultValue? }, ...]
1939
+ // }
1940
+
1941
+ // Submit a keyed payload. Unknown keys are stripped, required fields are
1942
+ // enforced, and every value is validated against \`validation\` server-side.
1943
+ await brainerce.createInquiry({
1944
+ formKey: 'main',
1945
+ fields: {
1946
+ email: 'jane@example.com', // built-in keys
1947
+ message: 'Hi...',
1948
+ // ...any custom keys the merchant added via the dashboard
1949
+ },
1950
+ locale: 'en', // stored on the inquiry \u2014 lets staff filter by language
1951
+ sourceMetadata: { page: '/contact' }, // arbitrary provenance (UTM, referrer, etc.)
1952
+ });
1953
+ \`\`\`
1954
+
1955
+ Both shapes go to the same POST endpoint and may be mixed; \`fields\` wins when
1956
+ both provide the same key. Unknown keys (not defined on the form schema) are
1957
+ stripped server-side.
1958
+
1959
+ ### Dynamic rendering \u2014 reference implementation
1960
+
1961
+ Render every field type the merchant can pick. Keep this as a \`<DynamicField>\`
1962
+ component so the form is fully driven by \`schema.fields\`.
1963
+
1964
+ \`\`\`tsx
1965
+ import type { ContactFormPublic, ContactFormPublicField } from 'brainerce';
1966
+
1967
+ type FieldValue = string | string[] | boolean;
1968
+
1969
+ function defaultValueFor(f: ContactFormPublicField): FieldValue {
1970
+ if (f.type === 'CHECKBOX') return false;
1971
+ if (f.type === 'MULTI_SELECT') return [];
1972
+ return f.defaultValue ?? '';
1973
+ }
1974
+
1975
+ function isEmpty(v: FieldValue): boolean {
1976
+ if (typeof v === 'string') return v.trim().length === 0;
1977
+ if (Array.isArray(v)) return v.length === 0;
1978
+ return v === false;
1979
+ }
1980
+
1981
+ function DynamicField({
1982
+ field,
1983
+ value,
1984
+ onChange,
1985
+ }: {
1986
+ field: ContactFormPublicField;
1987
+ value: FieldValue;
1988
+ onChange: (v: FieldValue) => void;
1989
+ }) {
1990
+ const id = \`contact-\${field.key}\`;
1991
+ const { minLength, maxLength, min, max, pattern } = field.validation ?? {};
1992
+ const strVal = typeof value === 'string' ? value : '';
1993
+
1994
+ // Label \u2014 USE \`field.label\`, NEVER hardcode. Falls back to the key.
1995
+ const label = (
1996
+ <label htmlFor={id} className="mb-1.5 block text-sm font-medium">
1997
+ {field.label}
1998
+ {field.isRequired && <span aria-hidden className="text-red-500"> *</span>}
1999
+ </label>
2000
+ );
2001
+ const help = field.helpText ? <p className="mt-1 text-xs opacity-70">{field.helpText}</p> : null;
2002
+
2003
+ switch (field.type) {
2004
+ case 'TEXTAREA':
2005
+ return (<div>{label}<textarea id={id} required={field.isRequired} maxLength={maxLength} minLength={minLength} rows={6} placeholder={field.placeholder} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2006
+ case 'EMAIL':
2007
+ return (<div>{label}<input id={id} type="email" required={field.isRequired} autoComplete="email" placeholder={field.placeholder} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2008
+ case 'PHONE':
2009
+ return (<div>{label}<input id={id} type="tel" required={field.isRequired} autoComplete="tel" placeholder={field.placeholder} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2010
+ case 'URL':
2011
+ return (<div>{label}<input id={id} type="url" required={field.isRequired} placeholder={field.placeholder} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2012
+ case 'NUMBER':
2013
+ return (<div>{label}<input id={id} type="number" required={field.isRequired} min={min} max={max} placeholder={field.placeholder} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2014
+ case 'DATE':
2015
+ return (<div>{label}<input id={id} type="date" required={field.isRequired} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2016
+ case 'SELECT':
2017
+ return (<div>{label}<select id={id} required={field.isRequired} value={strVal} onChange={(e) => onChange(e.target.value)}><option value="">\u2014</option>{field.enumValues?.map((o) => (<option key={o.value} value={o.value}>{o.label}</option>))}</select>{help}</div>);
2018
+ case 'MULTI_SELECT': {
2019
+ const arr = Array.isArray(value) ? value : [];
2020
+ return (<div>{label}<div>{field.enumValues?.map((o) => { const checked = arr.includes(o.value); return (<label key={o.value}><input type="checkbox" checked={checked} onChange={(e) => onChange(e.target.checked ? [...arr, o.value] : arr.filter((v) => v !== o.value))} /><span>{o.label}</span></label>); })}</div>{help}</div>);
2021
+ }
2022
+ case 'CHECKBOX':
2023
+ return (<div><label htmlFor={id}><input id={id} type="checkbox" required={field.isRequired} checked={value === true} onChange={(e) => onChange(e.target.checked)} /><span>{field.label}</span></label>{help}</div>);
2024
+ case 'TEXT':
2025
+ default:
2026
+ return (<div>{label}<input id={id} type="text" required={field.isRequired} maxLength={maxLength} minLength={minLength} pattern={pattern} placeholder={field.placeholder} value={strVal} onChange={(e) => onChange(e.target.value)} />{help}</div>);
2027
+ }
2028
+ }
2029
+
2030
+ export function ContactPage() {
2031
+ const [schema, setSchema] = useState<ContactFormPublic | null>(null);
2032
+ const [values, setValues] = useState<Record<string, FieldValue>>({});
2033
+ const [honeypot, setHoneypot] = useState('');
2034
+ const [sent, setSent] = useState(false);
2035
+ const [loading, setLoading] = useState(false);
2036
+
2037
+ // Read the current locale from the <html lang> attribute (or your own i18n context).
2038
+ const locale = typeof document !== 'undefined' ? document.documentElement.lang || undefined : undefined;
2039
+
2040
+ useEffect(() => {
2041
+ brainerce.contactForms.get('main', locale).then((form) => {
2042
+ setSchema(form);
2043
+ const initial: Record<string, FieldValue> = {};
2044
+ for (const f of form.fields) initial[f.key] = defaultValueFor(f);
2045
+ setValues(initial);
2046
+ });
2047
+ }, [locale]);
2048
+
2049
+ if (!schema) return null;
2050
+
2051
+ const onSubmit = async (e: React.FormEvent) => {
2052
+ e.preventDefault();
2053
+ if (loading) return;
2054
+ if (honeypot.trim().length > 0) { setSent(true); return; } // bot \u2192 silent success
2055
+
2056
+ setLoading(true);
2057
+ try {
2058
+ const payload: Record<string, unknown> = {};
2059
+ for (const f of schema.fields) {
2060
+ const raw = values[f.key];
2061
+ if (isEmpty(raw)) continue;
2062
+ payload[f.key] = typeof raw === 'string' ? raw.trim() : raw;
2063
+ }
2064
+ await brainerce.createInquiry({ formKey: schema.key, fields: payload, locale });
2065
+ setSent(true);
2066
+ } finally {
2067
+ setLoading(false);
2068
+ }
2069
+ };
2070
+
2071
+ if (sent) {
2072
+ // RENDER THE MERCHANT'S success message \u2014 do not hardcode.
2073
+ return <div>{schema.successMessage}</div>;
2074
+ }
2075
+
2076
+ return (
2077
+ <form onSubmit={onSubmit} noValidate>
2078
+ <h1>{schema.name}</h1>
2079
+ {schema.description && <p>{schema.description}</p>}
2080
+
2081
+ {/* Honeypot \u2014 must be visually hidden from humans, not from bots */}
2082
+ <div aria-hidden style={{ position: 'absolute', left: '-10000px', width: 0, height: 0, overflow: 'hidden' }}>
2083
+ <label htmlFor="contact-honeypot">Leave this field empty</label>
2084
+ <input id="contact-honeypot" type="text" tabIndex={-1} autoComplete="off"
2085
+ value={honeypot} onChange={(e) => setHoneypot(e.target.value)} />
2086
+ </div>
2087
+
2088
+ {schema.fields.map((field) => (
2089
+ <DynamicField key={field.key} field={field}
2090
+ value={values[field.key] ?? defaultValueFor(field)}
2091
+ onChange={(v) => setValues((p) => ({ ...p, [field.key]: v }))} />
2092
+ ))}
2093
+
2094
+ <button type="submit" disabled={loading}>
2095
+ {loading ? '\u2026' : schema.submitButton}
2096
+ </button>
2097
+ </form>
2098
+ );
2099
+ }
2100
+ \`\`\`
2101
+
2102
+ ### Rules
2103
+
2104
+ - **Rate limit:** 3 submissions / 60s per IP \u2014 show a friendly "try again later" message on HTTP 429.
2105
+ - **Honeypot:** always render a hidden field named \`honeypot\` and **never send** it. Bots fill every input; the server rejects submissions carrying a non-empty \`honeypot\`.
2106
+ - **Built-in keys:** \`name\`, \`email\`, \`phone\`, \`subject\`, \`message\` always exist on the default form; the legacy \`createInquiry\` shape keeps working forever.
2107
+ - **Max values:** each field value is capped at 10 000 chars server-side. Validate client-side before submitting using \`field.validation.maxLength\`.
2108
+ - **Required fields:** respect \`field.isRequired\`. The server validates too, but show \`required\` on the input for browser-level UX.
2109
+ - **Validation:** when \`field.validation.pattern\` is present, pass it as the input's \`pattern\` attribute; the server also enforces it. Likewise \`minLength\`/\`maxLength\`/\`min\`/\`max\`.
2110
+ - **Enum values:** SELECT and MULTI_SELECT always return \`enumValues\` (non-empty array). Render from \`enumValues\`, never a hardcoded list.
2111
+ - **Visibility:** the server strips fields with \`isVisible=false\`, so \`schema.fields\` only contains things to render.
2112
+ - **Origin check:** the endpoint validates \`Origin\` against the store's allowed origins. Test from your real storefront URL, not \`file://\` or localhost unless the merchant added it to allowed origins.
2113
+ - **Locale handling:** always pass \`locale\` to \`contactForms.get()\` and to \`createInquiry()\`. The staff inbox filters inquiries by language. Omit to fall back to the store's default language.
2114
+ - **Success message:** render \`schema.successMessage\` as-is. (Variable interpolation like \`{{customerName}}\` is not yet wired; any such placeholders currently render literally. Safe to use plain text.)
2115
+ - **Caching:** the schema GET is safe to cache per \`{storeId, formKey, locale}\`. 60 s feels live without hammering the API.
2116
+
2117
+ ### Multiple forms
2118
+
2119
+ If the merchant set up more than one form (e.g. a \`main\` form on \`/contact\`
2120
+ and a \`newsletter\` form embedded in the footer), render each form from its
2121
+ own \`contactForms.get(key, locale)\` call. The \`formKey\` you pass to
2122
+ \`createInquiry\` must match.`;
2123
+ }
1865
2124
  function getSectionByTopic(topic, connectionId, currency) {
1866
2125
  const cid = connectionId || "vc_YOUR_CONNECTION_ID";
1867
2126
  const cur = currency || "USD";
@@ -1900,6 +2159,8 @@ function getSectionByTopic(topic, connectionId, currency) {
1900
2159
  return getTypeQuickReference();
1901
2160
  case "admin":
1902
2161
  return getAdminApiSection();
2162
+ case "inquiries":
2163
+ return getContactInquiriesSection();
1903
2164
  case "all":
1904
2165
  return [
1905
2166
  "# Brainerce SDK \u2014 full topic dump",
@@ -1976,10 +2237,14 @@ function getSectionByTopic(topic, connectionId, currency) {
1976
2237
  "",
1977
2238
  "---",
1978
2239
  "",
1979
- getAdminApiSection()
2240
+ getAdminApiSection(),
2241
+ "",
2242
+ "---",
2243
+ "",
2244
+ getContactInquiriesSection()
1980
2245
  ].join("\n");
1981
2246
  default:
1982
- return `Unknown topic: "${topic}". Available topics: setup, products, cart, checkout, checkout-custom-fields, payment, auth, order-confirmation, inventory, discounts, recommendations, product-customization-fields, tax, i18n, critical-rules, type-reference, admin, all`;
2247
+ return `Unknown topic: "${topic}". Available topics: setup, products, cart, checkout, checkout-custom-fields, payment, auth, order-confirmation, inventory, discounts, recommendations, product-customization-fields, tax, i18n, critical-rules, type-reference, admin, inquiries, all`;
1983
2248
  }
1984
2249
  }
1985
2250
 
@@ -2005,6 +2270,7 @@ var GET_SDK_DOCS_SCHEMA = {
2005
2270
  "type-reference",
2006
2271
  "i18n",
2007
2272
  "admin",
2273
+ "inquiries",
2008
2274
  "all"
2009
2275
  ]).describe("The SDK documentation topic to retrieve"),
2010
2276
  connectionId: import_zod.z.string().optional().describe("Vibe-coded connection ID (starts with vc_). Used to personalize setup code."),
@@ -2665,6 +2931,102 @@ interface CartBundleOffer {
2665
2931
  requiresVariantSelection: boolean;
2666
2932
  lockedVariant?: { id: string; name?: string };
2667
2933
  }`;
2934
+ var INQUIRIES_TYPES = `// ---- Contact Inquiries & Forms ----
2935
+
2936
+ // Two shapes \u2014 legacy and flexible. The two may be mixed; \`fields\` wins on key collision.
2937
+ interface CreateInquiryInput {
2938
+ // Legacy shape (still supported forever, backed by default "main" form)
2939
+ name?: string; // max 120 chars (if provided)
2940
+ email?: string; // must be valid email if provided
2941
+ subject?: string; // max 200 chars
2942
+ message?: string; // max 10000 chars
2943
+ phone?: string;
2944
+
2945
+ // Flexible shape
2946
+ formKey?: string; // defaults to "main"; merchant-defined keys e.g. "newsletter"
2947
+ fields?: Record<string, unknown>; // bag of values keyed by field key (built-in or custom)
2948
+ locale?: string; // e.g. "en", "he" \u2014 stored on the inquiry
2949
+ sourceMetadata?: Record<string, unknown>; // arbitrary context (e.g. { page: '/contact', campaign: 'fall-2026' })
2950
+
2951
+ // Shared
2952
+ customerId?: string; // link to logged-in customer
2953
+ metadata?: Record<string, unknown>; // deprecated alias of sourceMetadata
2954
+ }
2955
+
2956
+ interface CreateInquiryResponse {
2957
+ id: string;
2958
+ status: 'NEW';
2959
+ createdAt: string; // ISO datetime
2960
+ }
2961
+
2962
+ // ---- Form schema (for dynamic rendering) ----
2963
+
2964
+ type ContactFormFieldType =
2965
+ | 'TEXT' | 'TEXTAREA' | 'EMAIL' | 'PHONE' | 'NUMBER'
2966
+ | 'SELECT' | 'MULTI_SELECT' | 'CHECKBOX' | 'URL' | 'DATE';
2967
+
2968
+ interface ContactFormFieldValidation {
2969
+ minLength?: number;
2970
+ maxLength?: number;
2971
+ min?: number;
2972
+ max?: number;
2973
+ pattern?: string; // regex string
2974
+ patternMessage?: string;
2975
+ }
2976
+
2977
+ interface ContactFormPublicField {
2978
+ key: string; // stable identifier, e.g. "email", "company"
2979
+ type: ContactFormFieldType;
2980
+ label: string; // already localized for the requested locale
2981
+ placeholder?: string; // already localized
2982
+ helpText?: string; // already localized
2983
+ isRequired: boolean;
2984
+ enumValues?: { value: string; label: string }[]; // present (non-empty) for SELECT / MULTI_SELECT
2985
+ validation?: ContactFormFieldValidation;
2986
+ defaultValue?: string;
2987
+ }
2988
+
2989
+ interface ContactFormPublic {
2990
+ id: string;
2991
+ key: string; // e.g. "main", "newsletter"
2992
+ name: string; // already localized \u2014 use as form heading
2993
+ description?: string; // already localized \u2014 use as subtitle
2994
+ submitButton: string; // already localized \u2014 use as submit label
2995
+ successMessage: string; // already localized \u2014 render after submit succeeds
2996
+ fields: ContactFormPublicField[]; // in display order; hidden fields already filtered out
2997
+ }
2998
+
2999
+ interface ContactFormSummary {
3000
+ key: string;
3001
+ name: string;
3002
+ isDefault: boolean;
3003
+ }
3004
+
3005
+ // Field-type \u2192 HTML mapping for dynamic rendering
3006
+ // ------------------------------------------------------------------
3007
+ // TEXT \u2192 <input type="text" ... pattern?={validation.pattern}>
3008
+ // TEXTAREA \u2192 <textarea rows={6} ...>
3009
+ // EMAIL \u2192 <input type="email" autoComplete="email" ...>
3010
+ // PHONE \u2192 <input type="tel" autoComplete="tel" ...>
3011
+ // NUMBER \u2192 <input type="number" min={validation.min} max={validation.max}>
3012
+ // URL \u2192 <input type="url" ...>
3013
+ // DATE \u2192 <input type="date" ...> (value is ISO yyyy-MM-dd)
3014
+ // SELECT \u2192 <select>{enumValues.map(...)}</select> \u2014 always rendered from enumValues
3015
+ // MULTI_SELECT \u2192 multiple <input type="checkbox">, value is string[]
3016
+ // CHECKBOX \u2192 single <input type="checkbox">, value is boolean
3017
+ // ------------------------------------------------------------------
3018
+
3019
+ // SDK methods
3020
+ // await brainerce.createInquiry(input) \u2192 POST /stores/{storeId}/inquiries
3021
+ // await brainerce.contactForms.list() \u2192 GET /stores/{storeId}/contact-forms
3022
+ // await brainerce.contactForms.get(key?, locale?) \u2192 GET /stores/{storeId}/contact-forms/{key}?locale={locale}
3023
+ //
3024
+ // Rules
3025
+ // - Rate limit: 3 submissions / 60s per IP \u2014 handle 429 responses gracefully
3026
+ // - Honeypot: always render an invisible field named \`honeypot\` and never send it
3027
+ // - Always pass \`locale\` \u2014 inbox filters inquiries by language, and schema labels come back translated
3028
+ // - Render \`schema.name\` / \`description\` / \`submitButton\` / \`successMessage\` directly \u2014 do NOT hardcode copy
3029
+ // - Unknown field keys are stripped server-side \u2014 safe to send extras during dev`;
2668
3030
  var TYPES_BY_DOMAIN = {
2669
3031
  products: PRODUCTS_TYPES,
2670
3032
  cart: CART_TYPES,
@@ -2672,7 +3034,8 @@ var TYPES_BY_DOMAIN = {
2672
3034
  orders: ORDERS_TYPES,
2673
3035
  customers: CUSTOMERS_TYPES,
2674
3036
  payments: PAYMENTS_TYPES,
2675
- helpers: HELPERS_TYPES
3037
+ helpers: HELPERS_TYPES,
3038
+ inquiries: INQUIRIES_TYPES
2676
3039
  };
2677
3040
  function getTypesByDomain(domain) {
2678
3041
  if (domain === "all") {
@@ -2693,7 +3056,17 @@ var AVAILABLE_DOMAINS = Object.keys(TYPES_BY_DOMAIN);
2693
3056
  var GET_TYPE_DEFINITIONS_NAME = "get-type-definitions";
2694
3057
  var GET_TYPE_DEFINITIONS_DESCRIPTION = "Get TypeScript type definitions from the Brainerce SDK, segmented by domain. Use this when you need to understand the exact shape of objects like Product, Cart, Checkout, Order, etc.";
2695
3058
  var GET_TYPE_DEFINITIONS_SCHEMA = {
2696
- domain: import_zod2.z.enum(["products", "cart", "checkout", "orders", "customers", "payments", "helpers", "all"]).describe(
3059
+ domain: import_zod2.z.enum([
3060
+ "products",
3061
+ "cart",
3062
+ "checkout",
3063
+ "orders",
3064
+ "customers",
3065
+ "payments",
3066
+ "helpers",
3067
+ "inquiries",
3068
+ "all"
3069
+ ]).describe(
2697
3070
  'The domain of types to retrieve. Use "helpers" for helper function signatures and common types like StoreInfo, PaginatedResponse.'
2698
3071
  )
2699
3072
  };