@viu/emporix-sdk 4.6.6 → 4.7.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/availability.cjs.map +1 -1
  3. package/dist/availability.js +2 -2
  4. package/dist/cart.cjs +3 -0
  5. package/dist/cart.cjs.map +1 -1
  6. package/dist/cart.js +2 -2
  7. package/dist/checkout.cjs.map +1 -1
  8. package/dist/checkout.js +2 -2
  9. package/dist/{chunk-J2AN2FMK.js → chunk-3JO2O4BY.js} +25 -14
  10. package/dist/chunk-3JO2O4BY.js.map +1 -0
  11. package/dist/{chunk-UWGGF4MC.js → chunk-4Q76UV4J.js} +6 -3
  12. package/dist/chunk-4Q76UV4J.js.map +1 -0
  13. package/dist/{chunk-RYQVMR26.js → chunk-BHNYGUSD.js} +3 -3
  14. package/dist/{chunk-RYQVMR26.js.map → chunk-BHNYGUSD.js.map} +1 -1
  15. package/dist/{chunk-IYNT5BQW.js → chunk-CXTVY4SI.js} +8 -4
  16. package/dist/chunk-CXTVY4SI.js.map +1 -0
  17. package/dist/{chunk-K4KXT6NX.js → chunk-ENMMDGUB.js} +3 -3
  18. package/dist/{chunk-K4KXT6NX.js.map → chunk-ENMMDGUB.js.map} +1 -1
  19. package/dist/{chunk-UA4BM6OP.js → chunk-EQE5WGME.js} +4 -4
  20. package/dist/{chunk-UA4BM6OP.js.map → chunk-EQE5WGME.js.map} +1 -1
  21. package/dist/{chunk-4VRUMCS2.js → chunk-PK4DQHJO.js} +4 -4
  22. package/dist/{chunk-4VRUMCS2.js.map → chunk-PK4DQHJO.js.map} +1 -1
  23. package/dist/{chunk-NFSO7WUA.js → chunk-SIGXBN4F.js} +3 -3
  24. package/dist/{chunk-NFSO7WUA.js.map → chunk-SIGXBN4F.js.map} +1 -1
  25. package/dist/{chunk-N2CE3J4M.js → chunk-U3ZIJZYH.js} +3 -3
  26. package/dist/{chunk-N2CE3J4M.js.map → chunk-U3ZIJZYH.js.map} +1 -1
  27. package/dist/{chunk-S2ERKGYL.js → chunk-ZLGLI4KC.js} +3 -3
  28. package/dist/{chunk-S2ERKGYL.js.map → chunk-ZLGLI4KC.js.map} +1 -1
  29. package/dist/{chunk-3BDDYX3V.js → chunk-ZVIEFW3X.js} +3 -3
  30. package/dist/{chunk-3BDDYX3V.js.map → chunk-ZVIEFW3X.js.map} +1 -1
  31. package/dist/{chunk-XQAOHHXL.js → chunk-ZZ3X3DDL.js} +3 -3
  32. package/dist/{chunk-XQAOHHXL.js.map → chunk-ZZ3X3DDL.js.map} +1 -1
  33. package/dist/customer.cjs.map +1 -1
  34. package/dist/customer.js +3 -3
  35. package/dist/index.cjs +62 -29
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +114 -34
  38. package/dist/index.d.ts +114 -34
  39. package/dist/index.js +52 -38
  40. package/dist/index.js.map +1 -1
  41. package/dist/media.cjs +3 -0
  42. package/dist/media.cjs.map +1 -1
  43. package/dist/media.js +2 -2
  44. package/dist/orders.cjs +6 -2
  45. package/dist/orders.cjs.map +1 -1
  46. package/dist/orders.d.cts +6 -2
  47. package/dist/orders.d.ts +6 -2
  48. package/dist/orders.js +1 -1
  49. package/dist/payment.cjs.map +1 -1
  50. package/dist/payment.js +3 -3
  51. package/dist/price.cjs.map +1 -1
  52. package/dist/price.js +2 -2
  53. package/dist/product.cjs +23 -12
  54. package/dist/product.cjs.map +1 -1
  55. package/dist/product.d.cts +193 -12
  56. package/dist/product.d.ts +193 -12
  57. package/dist/product.js +1 -1
  58. package/dist/segment.cjs.map +1 -1
  59. package/dist/segment.js +3 -3
  60. package/package.json +1 -1
  61. package/dist/chunk-IYNT5BQW.js.map +0 -1
  62. package/dist/chunk-J2AN2FMK.js.map +0 -1
  63. package/dist/chunk-UWGGF4MC.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@ import { S as SearchPaging } from './search-DU6tE356.cjs';
4
4
  import { CustomerService } from './customer.cjs';
5
5
  export { Address, AddressCreateInput, AddressUpdateInput, ChangeEmailInput, ConfirmEmailChangeInput, Customer, CustomerSession, CustomerSignupInput, CustomerTokenValidation, CustomerUpdateInput, PasswordChangeInput, PasswordResetConfirmInput, PasswordResetRequestInput, ResendActivationInput } from './customer.cjs';
6
6
  import { ProductService } from './product.cjs';
7
- export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkUpdateInput, ProductCreateInput, ProductCreated, ProductPatchInput, ProductRecalculationInput, ProductRecalculationJob, ProductRecalculationJobStatus, ProductRecalculationResult, ProductTemplate, ProductTemplateCreateInput, ProductTemplateCreated, ProductTemplateUpdateInput, ProductUpdateInput, ProductWriteOptions } from './product.cjs';
7
+ export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkUpdateInput, ProductCreateInput, ProductCreated, ProductPatchInput, ProductRecalculationInput, ProductRecalculationJob, ProductRecalculationJobStatus, ProductRecalculationResult, ProductTemplate, ProductTemplateCreateInput, ProductTemplateCreated, ProductTemplateUpdateInput, ProductUpdateInput, ProductVariant, ProductWriteOptions } from './product.cjs';
8
8
  import { CategoryService } from './category.cjs';
9
9
  export { Category, CategoryAssignment, CategoryAssignmentBulkInput, CategoryAssignmentBulkResult, CategoryAssignmentCreated, CategoryAssignmentInput, CategoryAssignmentRefBulkInput, CategoryCreateInput, CategoryCreated, CategoryNode, CategoryPatchInput, CategoryTreeSearchInput, CategoryUpdateInput, CategoryWriteOptions } from './category.cjs';
10
10
  import { CartService } from './cart.cjs';
@@ -52,6 +52,9 @@ declare class EmporixNotFoundError extends EmporixError {
52
52
  /** 400/422 — request validation failed. */
53
53
  declare class EmporixValidationError extends EmporixError {
54
54
  }
55
+ /** 409 — conflict: a stale `metadata.version`, or an id that already exists. */
56
+ declare class EmporixConflictError extends EmporixError {
57
+ }
55
58
  /** 5xx — server-side failure. */
56
59
  declare class EmporixServerError extends EmporixError {
57
60
  }
@@ -2313,6 +2316,32 @@ type SchemaResponse = AbstractSchemaResponse & {
2313
2316
  attributes?: Array<SchemaAttribute$1>;
2314
2317
  };
2315
2318
  type ReferenceResponse = AbstractSchemaResponse;
2319
+ type CustomSchemaTypeCreation = {
2320
+ /**
2321
+ * Unique code for the custom type. Can contain uppercase letters, digits, and underscores. The first character must be a letter.
2322
+ */
2323
+ id: string;
2324
+ /**
2325
+ * Localized custom type name in a form of a map of translations.
2326
+ */
2327
+ name: {
2328
+ [key: string]: unknown;
2329
+ };
2330
+ };
2331
+ type CustomSchemaTypeUpdate = {
2332
+ /**
2333
+ * Localized custom type name in a form of a map of translations.
2334
+ */
2335
+ name: {
2336
+ [key: string]: unknown;
2337
+ };
2338
+ metadata?: {
2339
+ /**
2340
+ * Version of the custom schema type. If provided, it will be validated against the current entity version.
2341
+ */
2342
+ version?: number;
2343
+ };
2344
+ };
2316
2345
  type CustomSchemaTypeResponse = {
2317
2346
  /**
2318
2347
  * Unique id of the custom schema type.
@@ -2540,6 +2569,12 @@ type SchemaAttribute = SchemaAttribute$1;
2540
2569
  * (`PRODUCT`, `CART`, `ORDER`, `CUSTOM_ENTITY`, …).
2541
2570
  */
2542
2571
  type SchemaTypeName = SchemaType;
2572
+ /**
2573
+ * An entity type a schema attaches to: a {@link SchemaTypeName} or the id of a
2574
+ * custom entity — the spec's `SchemaType` allows "any custom schema type id",
2575
+ * which its enum cannot express.
2576
+ */
2577
+ type SchemaTargetType = SchemaTypeName | (string & {});
2543
2578
  /** A custom-entity definition (a tenant-defined resource type). */
2544
2579
  type CustomEntity = CustomSchemaTypeResponse;
2545
2580
  /**
@@ -2552,11 +2587,14 @@ type CustomInstance<T = Record<string, unknown>> = Omit<CustomInstanceResponse,
2552
2587
  };
2553
2588
  /**
2554
2589
  * Input for creating a schema (server assigns `metadata.version`/`url`).
2555
- * `name`, `types` and `attributes` are the caller-controlled fields.
2590
+ * `name`, `types` and `attributes` are the caller-controlled fields; `id` is
2591
+ * the mixin key the data is stored under (`mixins.<id>`), generated when left
2592
+ * out.
2556
2593
  */
2557
2594
  interface SchemaDraft {
2595
+ id?: string;
2558
2596
  name: Record<string, string>;
2559
- types: SchemaTypeName[];
2597
+ types: SchemaTargetType[];
2560
2598
  attributes: SchemaAttribute[];
2561
2599
  }
2562
2600
  /**
@@ -2564,27 +2602,48 @@ interface SchemaDraft {
2564
2602
  * upstream API **requires** `metadata.version` for optimistic locking
2565
2603
  * (409 Conflict on a stale version).
2566
2604
  */
2567
- interface SchemaUpdate extends SchemaDraft {
2605
+ interface SchemaUpdate extends Omit<SchemaDraft, "id"> {
2568
2606
  metadata: {
2569
2607
  version: number;
2570
2608
  };
2571
2609
  }
2572
- /** Input for creating/updating a custom-entity definition. */
2573
- interface CustomEntityDraft {
2574
- name: Record<string, string>;
2575
- attributes: SchemaAttribute[];
2576
- }
2577
- /** Input for creating/replacing a custom instance. `mixins` carries the data. */
2578
- interface CustomInstanceDraft<T = Record<string, unknown>> {
2579
- name: Record<string, string>;
2610
+ /** Id envelope of a `201` from {@link SchemaService.createSchema}. */
2611
+ type SchemaCreated = IdResponse$1;
2612
+ /**
2613
+ * Input for creating a custom-entity definition. `id` is the type code —
2614
+ * uppercase letters, digits and underscores. Its fields are defined by
2615
+ * schemas attached to the type, not here.
2616
+ */
2617
+ type CustomEntityDraft = CustomSchemaTypeCreation;
2618
+ /** Input for updating a custom-entity definition (`PUT`, an upsert). */
2619
+ type CustomEntityUpdate = CustomSchemaTypeUpdate;
2620
+ /** Id envelope of a `201` from creating a custom-entity definition. */
2621
+ type CustomEntityCreated = IdResponse$1;
2622
+ /**
2623
+ * Input for creating a custom instance. `mixins` carries the data; `id` is
2624
+ * optional (generated when left out); `metadata.mixins` maps each mixin key to
2625
+ * its schema URL.
2626
+ */
2627
+ type CustomInstanceDraft<T = Record<string, unknown>> = Omit<CustomInstanceCreation, "mixins"> & {
2580
2628
  mixins: T;
2581
- }
2629
+ };
2630
+ /**
2631
+ * Input for replacing a custom instance (`PUT`, an upsert). `metadata.version`
2632
+ * enables optimistic locking — a stale one is answered with a 409.
2633
+ */
2634
+ type CustomInstanceReplace<T = Record<string, unknown>> = Omit<CustomInstanceUpdate, "mixins"> & {
2635
+ mixins: T;
2636
+ };
2637
+ /** RFC-6902 operations for {@link SchemaService.patchInstance}. */
2638
+ type CustomInstancePatch = PatchOperation$1[];
2639
+ /** Id envelope of a `201` from creating a custom instance. */
2640
+ type CustomInstanceCreated = IdResponse$1;
2582
2641
  /** Filter / pagination options for {@link SchemaService.listSchemas}. */
2583
2642
  interface ListSchemasQuery {
2584
2643
  /** Emporix `q`-syntax filter (supports `compoundLogicalQuery`). */
2585
2644
  q?: string;
2586
2645
  /** Restrict to schemas attached to this entity type. */
2587
- type?: SchemaTypeName;
2646
+ type?: SchemaTargetType;
2588
2647
  pageNumber?: number;
2589
2648
  pageSize?: number;
2590
2649
  /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
@@ -2686,14 +2745,14 @@ declare class SchemaService {
2686
2745
  listSchemas(query?: ListSchemasQuery, auth?: AuthContext): Promise<PaginatedItems<Schema>>;
2687
2746
  /** Retrieve one schema by id. */
2688
2747
  getSchema(id: string, auth?: AuthContext): Promise<Schema>;
2689
- /** Create a schema. */
2690
- createSchema(draft: SchemaDraft, auth?: AuthContext): Promise<Schema>;
2748
+ /** Create a schema. Resolves to the `201`'s id envelope — read the schema back for the rest. */
2749
+ createSchema(draft: SchemaDraft, auth?: AuthContext): Promise<SchemaCreated>;
2691
2750
  /**
2692
- * Update a schema. The upstream API requires `draft.metadata.version`; a
2693
- * stale version yields 409 Conflict (propagated as the standard conflict
2694
- * error).
2751
+ * Update a schema; resolves on the `204`. The upstream API requires
2752
+ * `draft.metadata.version`; a stale version yields a 409
2753
+ * (`EmporixConflictError`).
2695
2754
  */
2696
- updateSchema(id: string, draft: SchemaUpdate, auth?: AuthContext): Promise<Schema>;
2755
+ updateSchema(id: string, draft: SchemaUpdate, auth?: AuthContext): Promise<void>;
2697
2756
  /** Delete a schema by id. */
2698
2757
  deleteSchema(id: string, auth?: AuthContext): Promise<void>;
2699
2758
  /**
@@ -2704,19 +2763,22 @@ declare class SchemaService {
2704
2763
  /** List entity types that currently have at least one schema. */
2705
2764
  listTypes(auth?: AuthContext): Promise<SchemaTypeName[]>;
2706
2765
  /** Set the entity types a schema applies to (`PUT /schemas/{id}/types`). */
2707
- setSchemaTypes(id: string, types: SchemaTypeName[], auth?: AuthContext): Promise<Schema>;
2766
+ setSchemaTypes(id: string, types: SchemaTargetType[], auth?: AuthContext): Promise<void>;
2708
2767
  /** List custom-entity definitions. `expandSchemas` inlines each schema body. */
2709
2768
  listCustomEntities(opts?: ListCustomEntitiesOptions, auth?: AuthContext): Promise<CustomEntity[]>;
2710
2769
  /** Retrieve one custom-entity definition by id. */
2711
2770
  getCustomEntity(id: string, auth?: AuthContext): Promise<CustomEntity>;
2712
- /** Create a custom-entity definition. */
2713
- createCustomEntity(draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntity>;
2714
- /** Update a custom-entity definition. */
2715
- updateCustomEntity(id: string, draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntity>;
2771
+ /** Create a custom-entity definition. Resolves to the `201`'s id envelope. */
2772
+ createCustomEntity(draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntityCreated>;
2773
+ /**
2774
+ * Update a custom-entity definition — an upsert: resolves to the id envelope
2775
+ * when the `PUT` created the type (`201`), to `undefined` when it updated it
2776
+ * (`204`).
2777
+ */
2778
+ updateCustomEntity(id: string, draft: CustomEntityUpdate, auth?: AuthContext): Promise<CustomEntityCreated | undefined>;
2716
2779
  /**
2717
2780
  * Delete a custom-entity definition. The server rejects with 409 if
2718
- * instances or schemas still reference it (propagated as the standard
2719
- * conflict error).
2781
+ * instances or schemas still reference it (`EmporixConflictError`).
2720
2782
  */
2721
2783
  deleteCustomEntity(id: string, auth?: AuthContext): Promise<void>;
2722
2784
  /**
@@ -2736,12 +2798,23 @@ declare class SchemaService {
2736
2798
  listAllInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): AsyncIterable<CustomInstance<T>>;
2737
2799
  /** Retrieve one instance by id. */
2738
2800
  getInstance<T = Record<string, unknown>>(type: string, id: string, auth?: AuthContext): Promise<CustomInstance<T>>;
2739
- /** Create an instance of a custom entity. */
2740
- createInstance<T = Record<string, unknown>>(type: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstance<T>>;
2741
- /** Replace an instance (full `PUT`). */
2742
- replaceInstance<T = Record<string, unknown>>(type: string, id: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstance<T>>;
2743
- /** Partially update an instance (`PATCH`). */
2744
- patchInstance<T = Record<string, unknown>>(type: string, id: string, patch: Partial<CustomInstanceDraft<T>>, auth?: AuthContext): Promise<CustomInstance<T>>;
2801
+ /**
2802
+ * Create an instance of a custom entity. Resolves to the `201`'s id envelope;
2803
+ * an id that already exists is answered with a 409 (`EmporixConflictError`).
2804
+ */
2805
+ createInstance<T = Record<string, unknown>>(type: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstanceCreated>;
2806
+ /**
2807
+ * Replace an instance (full `PUT`, an upsert). Resolves to the id envelope
2808
+ * when it created the instance (`201`), to `undefined` when it replaced one
2809
+ * (`204`). A stale `metadata.version` is answered with a 409.
2810
+ */
2811
+ replaceInstance<T = Record<string, unknown>>(type: string, id: string, draft: CustomInstanceReplace<T>, auth?: AuthContext): Promise<CustomInstanceCreated | undefined>;
2812
+ /**
2813
+ * Partially update an instance (`PATCH`) with RFC-6902 operations, e.g.
2814
+ * `[{ op: "replace", path: "/mixins/shoe/size", value: 44 }]`. Resolves on
2815
+ * the `204`.
2816
+ */
2817
+ patchInstance(type: string, id: string, patch: CustomInstancePatch, auth?: AuthContext): Promise<void>;
2745
2818
  /**
2746
2819
  * Patch up to 200 custom instances of `type` in one call
2747
2820
  * (`PATCH /custom-entities/{type}/instances/bulk`). Returns a 207 envelope:
@@ -3506,6 +3579,13 @@ type BaseLlm = {
3506
3579
  * The limit of tokens which agent can burn during one request session.
3507
3580
  */
3508
3581
  maxTokens?: number;
3582
+ /**
3583
+ * Optional JSON object of extra model parameters. Use it to pass provider-specific options, for example reasoning settings.
3584
+ *
3585
+ */
3586
+ additionalParams?: {
3587
+ [key: string]: unknown;
3588
+ };
3509
3589
  };
3510
3590
  type EmporixLlm = BaseLlm & {
3511
3591
  /**
@@ -13550,4 +13630,4 @@ declare function productIdFromYrn(yrn: string | undefined): string;
13550
13630
  */
13551
13631
  declare function productYrn(tenant: string, productId: string): string;
13552
13632
 
13553
- export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerImport, type AdminCustomerImportAccount, type AdminCustomerImportResult, type AdminCustomerInput, type AdminCustomerLegacyAuth, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type AdminPasswordMigrationRetention, type AdminPasswordMigrationRetentionInput, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, AgenticCrudResource, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, AnalyticsResource, type Approval, type ApprovalCreated, type ApprovalDecision, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Attachment, type AttachmentOptions, type AttachmentReuseOptions, type AuditLogChangeType, type AuditLogEntry, type AuditLogPage, type AuditLogPathChange, type AuditLogQuery, type AuditLogRelatedEntity, AuditLogService, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, type BulkInstanceResult, type BulkPatchInstanceItem, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatOptions, type ChatRequest, type ChatResponse, type ChatStreamOptions, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CloudFunctionsService, type CommerceEvents, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type Conversation, type ConversationSearchQuery, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type CookieIo, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, type Created, type Currency, type CurrencyCreated, type CurrencyInput, type CurrencyList, CurrencyService, type CurrencyUpdate, type CustomEntity, type CustomEntityDraft, type CustomInstance, type CustomInstanceDraft, CustomerAdminService, CustomerGroupsService, CustomerService, type CustomerSessionState, type CustomerSessionStore, type CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$1 as DeliveryWindow, type DeliveryWindowList, type DeliveryWindowValidation, EmporixAuthError, EmporixClient, EmporixConfig, type EmporixCore, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, type EmporixStorage, type EmporixStorageKey, EmporixTimeoutError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type ExecutionsQuery, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type GetOptions, type IamAccessControl, type IamAccessControlCreated, type IamAccessControlUpsert, type IamGroup, type IamGroupCreate, type IamGroupCreated, AssignmentCreateRequest as IamGroupMemberAssignment, type IamGroupMemberCreated, type IamGroupMemberInput, type IamGroupUpdate, type IamScope, type IamScopeCreated, type IamScopeUpsert, IamService, type IamUser, type IamUserCreate, type IamUserCreated, type IamUserDetail, type IamUserScopes, type IamUserUpdate, type ImportCancelResult, type ImportConfig, type ImportDiagnosticKind, type ImportDiagnosticRecord, type ImportErrorRecord, type ImportHealthThresholds, type ImportJobGroup, type ImportLicense, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunDiagnostics, type ImportRunDiagnosticsQuery, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStats, type ImportStatsQuery, type ImportStream, type ImportStreamOrder, type ImportedRecord, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type InvoiceJob, type InvoiceJobCreated, type InvoiceJobDraft, InvoiceService, type InvokeCloudFunctionOptions, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type ItemFeeSearchByProductId, type ItemFeeSearchByProductIds, type Job, type JobIdResponse, JobsResource, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListQuery, type ListQuoteReasonsQuery, type ListQuotesQuery, type ListReindexJobsOptions, type ListSchemaReferencesQuery, type ListSchemasQuery, LocationsService, LogLevel, LogsResource, type McpServer, type McpServerInput, MediaService, type MetadataFilter, type MinimumFee, type MutateOptions, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OAuthConfig, type OAuthInput, OrdersService, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PointsSummary, PriceService, ProductService, type ProviderModels, QueryFor, type Quote, type QuoteCreated, type QuoteDraft, type QuoteHistory, type QuoteInput, type QuoteReason, type QuoteReasonCreated, type QuoteReasonDraft, type QuoteReasonUpdate, QuoteReasonsResource, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RedeemCouponResult, type RedeemMyPointsInput, type RedeemOption, type RedeemOptionList, type RedeemedPoints, type Redemption, type RedemptionCreated, type RedemptionInput, type ReferralCoupon, type Region, type RegionList, type ReindexEntityType, type ReindexInput, type ReindexJob, type ReindexJobInput, type ReindexJobStatus, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, STORAGE_KEYS, SalesOrdersService, type SavedSearch, type SavedSearchCreated, type SavedSearchInput, type Schema, type SchemaAttribute, type SchemaDraft, type SchemaExport, type SchemaImportInput, type SchemaInstanceBulkCreateItem, type SchemaInstanceBulkUpsertItem, type SchemaReference, type SchemaReferenceCreated, type SchemaReferenceInput, type SchemaReferenceUpdateInput, SchemaService, type SchemaTypeName, type SchemaUpdate, type SearchFilterNode, type SearchHit, type SearchImportedRecordsOptions, type SearchIndex, type SearchIndexExport, type SearchIndexField, type SearchIndexImportResult, type SearchIndexInput, type SearchIndexJob, type SearchIndexJobRef, type SearchIndexSelection, type SearchInput, type SearchInstancesQuery, type SearchListOptions, type SearchOptions, SearchPaging, type SearchQuery, type SearchQueryNode, SearchService, type SearchStreamRecordsOptions, type SearchTypeListOptions, SegmentService, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, type SessionContextData, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingFee, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteAddress, type SiteCreated, type SiteFields, type SiteHomeBase, type SiteInput, type SiteList, type SiteMixin, type SiteMixinCreated, type SiteMixins, SiteService, StoredAnonymousSession, type TaxCalculationInput, type TaxCalculationRequest, type TaxCalculationResult, type TaxClass, type TaxConfig, type TaxConfigCreated, type TaxCreation as TaxConfigInput, type TaxUpdate as TaxConfigUpdate, type TaxLocation, TaxService, TemplatesResource, TenantConfigService, type TextRequest, type TextResponse, type Token, type TokenInput, TokenProvider, type TokenStorage, type Tool, type ToolInput, type Unit, type UnitCreated, UnitHandlingService, type UnitInput, type UnitUpdate, type Vendor, type VendorCreated, type VendorInput, type VendorList, type VendorLocation, type VendorLocationInput, type VendorLocationList, type VendorLocationUpdate, type VendorSearchQuery, VendorService, type VendorUpdate, type WebhookConfig, type WebhookConfigCreated, type WebhookConfigDraft, type WebhookConfigPatch, type WebhookDashboardAccess, WebhookService, type WebhookStatistics, type WebhookStatisticsQuery, type WebhookSubscription, type WebhookSubscriptionUpdateItem, type WebhookSubscriptionUpdateResultItem, type Zone, type ZoneList, approvalStatusPatch, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createServerStorage, createSessionStorage, emporixKey, errorFromResponse, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, resolveZone, serverAuth, siteMeta };
13633
+ export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerImport, type AdminCustomerImportAccount, type AdminCustomerImportResult, type AdminCustomerInput, type AdminCustomerLegacyAuth, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type AdminPasswordMigrationRetention, type AdminPasswordMigrationRetentionInput, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, AgenticCrudResource, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, AnalyticsResource, type Approval, type ApprovalCreated, type ApprovalDecision, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Attachment, type AttachmentOptions, type AttachmentReuseOptions, type AuditLogChangeType, type AuditLogEntry, type AuditLogPage, type AuditLogPathChange, type AuditLogQuery, type AuditLogRelatedEntity, AuditLogService, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, type BulkInstanceResult, type BulkPatchInstanceItem, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatOptions, type ChatRequest, type ChatResponse, type ChatStreamOptions, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CloudFunctionsService, type CommerceEvents, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type Conversation, type ConversationSearchQuery, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type CookieIo, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, type Created, type Currency, type CurrencyCreated, type CurrencyInput, type CurrencyList, CurrencyService, type CurrencyUpdate, type CustomEntity, type CustomEntityCreated, type CustomEntityDraft, type CustomEntityUpdate, type CustomInstance, type CustomInstanceCreated, type CustomInstanceDraft, type CustomInstancePatch, type CustomInstanceReplace, CustomerAdminService, CustomerGroupsService, CustomerService, type CustomerSessionState, type CustomerSessionStore, type CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$1 as DeliveryWindow, type DeliveryWindowList, type DeliveryWindowValidation, EmporixAuthError, EmporixClient, EmporixConfig, EmporixConflictError, type EmporixCore, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, type EmporixStorage, type EmporixStorageKey, EmporixTimeoutError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type ExecutionsQuery, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type GetOptions, type IamAccessControl, type IamAccessControlCreated, type IamAccessControlUpsert, type IamGroup, type IamGroupCreate, type IamGroupCreated, AssignmentCreateRequest as IamGroupMemberAssignment, type IamGroupMemberCreated, type IamGroupMemberInput, type IamGroupUpdate, type IamScope, type IamScopeCreated, type IamScopeUpsert, IamService, type IamUser, type IamUserCreate, type IamUserCreated, type IamUserDetail, type IamUserScopes, type IamUserUpdate, type ImportCancelResult, type ImportConfig, type ImportDiagnosticKind, type ImportDiagnosticRecord, type ImportErrorRecord, type ImportHealthThresholds, type ImportJobGroup, type ImportLicense, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunDiagnostics, type ImportRunDiagnosticsQuery, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStats, type ImportStatsQuery, type ImportStream, type ImportStreamOrder, type ImportedRecord, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type InvoiceJob, type InvoiceJobCreated, type InvoiceJobDraft, InvoiceService, type InvokeCloudFunctionOptions, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type ItemFeeSearchByProductId, type ItemFeeSearchByProductIds, type Job, type JobIdResponse, JobsResource, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListQuery, type ListQuoteReasonsQuery, type ListQuotesQuery, type ListReindexJobsOptions, type ListSchemaReferencesQuery, type ListSchemasQuery, LocationsService, LogLevel, LogsResource, type McpServer, type McpServerInput, MediaService, type MetadataFilter, type MinimumFee, type MutateOptions, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OAuthConfig, type OAuthInput, OrdersService, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PointsSummary, PriceService, ProductService, type ProviderModels, QueryFor, type Quote, type QuoteCreated, type QuoteDraft, type QuoteHistory, type QuoteInput, type QuoteReason, type QuoteReasonCreated, type QuoteReasonDraft, type QuoteReasonUpdate, QuoteReasonsResource, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RedeemCouponResult, type RedeemMyPointsInput, type RedeemOption, type RedeemOptionList, type RedeemedPoints, type Redemption, type RedemptionCreated, type RedemptionInput, type ReferralCoupon, type Region, type RegionList, type ReindexEntityType, type ReindexInput, type ReindexJob, type ReindexJobInput, type ReindexJobStatus, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, STORAGE_KEYS, SalesOrdersService, type SavedSearch, type SavedSearchCreated, type SavedSearchInput, type Schema, type SchemaAttribute, type SchemaCreated, type SchemaDraft, type SchemaExport, type SchemaImportInput, type SchemaInstanceBulkCreateItem, type SchemaInstanceBulkUpsertItem, type SchemaReference, type SchemaReferenceCreated, type SchemaReferenceInput, type SchemaReferenceUpdateInput, SchemaService, type SchemaTargetType, type SchemaTypeName, type SchemaUpdate, type SearchFilterNode, type SearchHit, type SearchImportedRecordsOptions, type SearchIndex, type SearchIndexExport, type SearchIndexField, type SearchIndexImportResult, type SearchIndexInput, type SearchIndexJob, type SearchIndexJobRef, type SearchIndexSelection, type SearchInput, type SearchInstancesQuery, type SearchListOptions, type SearchOptions, SearchPaging, type SearchQuery, type SearchQueryNode, SearchService, type SearchStreamRecordsOptions, type SearchTypeListOptions, SegmentService, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, type SessionContextData, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingFee, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteAddress, type SiteCreated, type SiteFields, type SiteHomeBase, type SiteInput, type SiteList, type SiteMixin, type SiteMixinCreated, type SiteMixins, SiteService, StoredAnonymousSession, type TaxCalculationInput, type TaxCalculationRequest, type TaxCalculationResult, type TaxClass, type TaxConfig, type TaxConfigCreated, type TaxCreation as TaxConfigInput, type TaxUpdate as TaxConfigUpdate, type TaxLocation, TaxService, TemplatesResource, TenantConfigService, type TextRequest, type TextResponse, type Token, type TokenInput, TokenProvider, type TokenStorage, type Tool, type ToolInput, type Unit, type UnitCreated, UnitHandlingService, type UnitInput, type UnitUpdate, type Vendor, type VendorCreated, type VendorInput, type VendorList, type VendorLocation, type VendorLocationInput, type VendorLocationList, type VendorLocationUpdate, type VendorSearchQuery, VendorService, type VendorUpdate, type WebhookConfig, type WebhookConfigCreated, type WebhookConfigDraft, type WebhookConfigPatch, type WebhookDashboardAccess, WebhookService, type WebhookStatistics, type WebhookStatisticsQuery, type WebhookSubscription, type WebhookSubscriptionUpdateItem, type WebhookSubscriptionUpdateResultItem, type Zone, type ZoneList, approvalStatusPatch, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createServerStorage, createSessionStorage, emporixKey, errorFromResponse, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, resolveZone, serverAuth, siteMeta };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { S as SearchPaging } from './search-DU6tE356.js';
4
4
  import { CustomerService } from './customer.js';
5
5
  export { Address, AddressCreateInput, AddressUpdateInput, ChangeEmailInput, ConfirmEmailChangeInput, Customer, CustomerSession, CustomerSignupInput, CustomerTokenValidation, CustomerUpdateInput, PasswordChangeInput, PasswordResetConfirmInput, PasswordResetRequestInput, ResendActivationInput } from './customer.js';
6
6
  import { ProductService } from './product.js';
7
- export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkUpdateInput, ProductCreateInput, ProductCreated, ProductPatchInput, ProductRecalculationInput, ProductRecalculationJob, ProductRecalculationJobStatus, ProductRecalculationResult, ProductTemplate, ProductTemplateCreateInput, ProductTemplateCreated, ProductTemplateUpdateInput, ProductUpdateInput, ProductWriteOptions } from './product.js';
7
+ export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkUpdateInput, ProductCreateInput, ProductCreated, ProductPatchInput, ProductRecalculationInput, ProductRecalculationJob, ProductRecalculationJobStatus, ProductRecalculationResult, ProductTemplate, ProductTemplateCreateInput, ProductTemplateCreated, ProductTemplateUpdateInput, ProductUpdateInput, ProductVariant, ProductWriteOptions } from './product.js';
8
8
  import { CategoryService } from './category.js';
9
9
  export { Category, CategoryAssignment, CategoryAssignmentBulkInput, CategoryAssignmentBulkResult, CategoryAssignmentCreated, CategoryAssignmentInput, CategoryAssignmentRefBulkInput, CategoryCreateInput, CategoryCreated, CategoryNode, CategoryPatchInput, CategoryTreeSearchInput, CategoryUpdateInput, CategoryWriteOptions } from './category.js';
10
10
  import { CartService } from './cart.js';
@@ -52,6 +52,9 @@ declare class EmporixNotFoundError extends EmporixError {
52
52
  /** 400/422 — request validation failed. */
53
53
  declare class EmporixValidationError extends EmporixError {
54
54
  }
55
+ /** 409 — conflict: a stale `metadata.version`, or an id that already exists. */
56
+ declare class EmporixConflictError extends EmporixError {
57
+ }
55
58
  /** 5xx — server-side failure. */
56
59
  declare class EmporixServerError extends EmporixError {
57
60
  }
@@ -2313,6 +2316,32 @@ type SchemaResponse = AbstractSchemaResponse & {
2313
2316
  attributes?: Array<SchemaAttribute$1>;
2314
2317
  };
2315
2318
  type ReferenceResponse = AbstractSchemaResponse;
2319
+ type CustomSchemaTypeCreation = {
2320
+ /**
2321
+ * Unique code for the custom type. Can contain uppercase letters, digits, and underscores. The first character must be a letter.
2322
+ */
2323
+ id: string;
2324
+ /**
2325
+ * Localized custom type name in a form of a map of translations.
2326
+ */
2327
+ name: {
2328
+ [key: string]: unknown;
2329
+ };
2330
+ };
2331
+ type CustomSchemaTypeUpdate = {
2332
+ /**
2333
+ * Localized custom type name in a form of a map of translations.
2334
+ */
2335
+ name: {
2336
+ [key: string]: unknown;
2337
+ };
2338
+ metadata?: {
2339
+ /**
2340
+ * Version of the custom schema type. If provided, it will be validated against the current entity version.
2341
+ */
2342
+ version?: number;
2343
+ };
2344
+ };
2316
2345
  type CustomSchemaTypeResponse = {
2317
2346
  /**
2318
2347
  * Unique id of the custom schema type.
@@ -2540,6 +2569,12 @@ type SchemaAttribute = SchemaAttribute$1;
2540
2569
  * (`PRODUCT`, `CART`, `ORDER`, `CUSTOM_ENTITY`, …).
2541
2570
  */
2542
2571
  type SchemaTypeName = SchemaType;
2572
+ /**
2573
+ * An entity type a schema attaches to: a {@link SchemaTypeName} or the id of a
2574
+ * custom entity — the spec's `SchemaType` allows "any custom schema type id",
2575
+ * which its enum cannot express.
2576
+ */
2577
+ type SchemaTargetType = SchemaTypeName | (string & {});
2543
2578
  /** A custom-entity definition (a tenant-defined resource type). */
2544
2579
  type CustomEntity = CustomSchemaTypeResponse;
2545
2580
  /**
@@ -2552,11 +2587,14 @@ type CustomInstance<T = Record<string, unknown>> = Omit<CustomInstanceResponse,
2552
2587
  };
2553
2588
  /**
2554
2589
  * Input for creating a schema (server assigns `metadata.version`/`url`).
2555
- * `name`, `types` and `attributes` are the caller-controlled fields.
2590
+ * `name`, `types` and `attributes` are the caller-controlled fields; `id` is
2591
+ * the mixin key the data is stored under (`mixins.<id>`), generated when left
2592
+ * out.
2556
2593
  */
2557
2594
  interface SchemaDraft {
2595
+ id?: string;
2558
2596
  name: Record<string, string>;
2559
- types: SchemaTypeName[];
2597
+ types: SchemaTargetType[];
2560
2598
  attributes: SchemaAttribute[];
2561
2599
  }
2562
2600
  /**
@@ -2564,27 +2602,48 @@ interface SchemaDraft {
2564
2602
  * upstream API **requires** `metadata.version` for optimistic locking
2565
2603
  * (409 Conflict on a stale version).
2566
2604
  */
2567
- interface SchemaUpdate extends SchemaDraft {
2605
+ interface SchemaUpdate extends Omit<SchemaDraft, "id"> {
2568
2606
  metadata: {
2569
2607
  version: number;
2570
2608
  };
2571
2609
  }
2572
- /** Input for creating/updating a custom-entity definition. */
2573
- interface CustomEntityDraft {
2574
- name: Record<string, string>;
2575
- attributes: SchemaAttribute[];
2576
- }
2577
- /** Input for creating/replacing a custom instance. `mixins` carries the data. */
2578
- interface CustomInstanceDraft<T = Record<string, unknown>> {
2579
- name: Record<string, string>;
2610
+ /** Id envelope of a `201` from {@link SchemaService.createSchema}. */
2611
+ type SchemaCreated = IdResponse$1;
2612
+ /**
2613
+ * Input for creating a custom-entity definition. `id` is the type code —
2614
+ * uppercase letters, digits and underscores. Its fields are defined by
2615
+ * schemas attached to the type, not here.
2616
+ */
2617
+ type CustomEntityDraft = CustomSchemaTypeCreation;
2618
+ /** Input for updating a custom-entity definition (`PUT`, an upsert). */
2619
+ type CustomEntityUpdate = CustomSchemaTypeUpdate;
2620
+ /** Id envelope of a `201` from creating a custom-entity definition. */
2621
+ type CustomEntityCreated = IdResponse$1;
2622
+ /**
2623
+ * Input for creating a custom instance. `mixins` carries the data; `id` is
2624
+ * optional (generated when left out); `metadata.mixins` maps each mixin key to
2625
+ * its schema URL.
2626
+ */
2627
+ type CustomInstanceDraft<T = Record<string, unknown>> = Omit<CustomInstanceCreation, "mixins"> & {
2580
2628
  mixins: T;
2581
- }
2629
+ };
2630
+ /**
2631
+ * Input for replacing a custom instance (`PUT`, an upsert). `metadata.version`
2632
+ * enables optimistic locking — a stale one is answered with a 409.
2633
+ */
2634
+ type CustomInstanceReplace<T = Record<string, unknown>> = Omit<CustomInstanceUpdate, "mixins"> & {
2635
+ mixins: T;
2636
+ };
2637
+ /** RFC-6902 operations for {@link SchemaService.patchInstance}. */
2638
+ type CustomInstancePatch = PatchOperation$1[];
2639
+ /** Id envelope of a `201` from creating a custom instance. */
2640
+ type CustomInstanceCreated = IdResponse$1;
2582
2641
  /** Filter / pagination options for {@link SchemaService.listSchemas}. */
2583
2642
  interface ListSchemasQuery {
2584
2643
  /** Emporix `q`-syntax filter (supports `compoundLogicalQuery`). */
2585
2644
  q?: string;
2586
2645
  /** Restrict to schemas attached to this entity type. */
2587
- type?: SchemaTypeName;
2646
+ type?: SchemaTargetType;
2588
2647
  pageNumber?: number;
2589
2648
  pageSize?: number;
2590
2649
  /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
@@ -2686,14 +2745,14 @@ declare class SchemaService {
2686
2745
  listSchemas(query?: ListSchemasQuery, auth?: AuthContext): Promise<PaginatedItems<Schema>>;
2687
2746
  /** Retrieve one schema by id. */
2688
2747
  getSchema(id: string, auth?: AuthContext): Promise<Schema>;
2689
- /** Create a schema. */
2690
- createSchema(draft: SchemaDraft, auth?: AuthContext): Promise<Schema>;
2748
+ /** Create a schema. Resolves to the `201`'s id envelope — read the schema back for the rest. */
2749
+ createSchema(draft: SchemaDraft, auth?: AuthContext): Promise<SchemaCreated>;
2691
2750
  /**
2692
- * Update a schema. The upstream API requires `draft.metadata.version`; a
2693
- * stale version yields 409 Conflict (propagated as the standard conflict
2694
- * error).
2751
+ * Update a schema; resolves on the `204`. The upstream API requires
2752
+ * `draft.metadata.version`; a stale version yields a 409
2753
+ * (`EmporixConflictError`).
2695
2754
  */
2696
- updateSchema(id: string, draft: SchemaUpdate, auth?: AuthContext): Promise<Schema>;
2755
+ updateSchema(id: string, draft: SchemaUpdate, auth?: AuthContext): Promise<void>;
2697
2756
  /** Delete a schema by id. */
2698
2757
  deleteSchema(id: string, auth?: AuthContext): Promise<void>;
2699
2758
  /**
@@ -2704,19 +2763,22 @@ declare class SchemaService {
2704
2763
  /** List entity types that currently have at least one schema. */
2705
2764
  listTypes(auth?: AuthContext): Promise<SchemaTypeName[]>;
2706
2765
  /** Set the entity types a schema applies to (`PUT /schemas/{id}/types`). */
2707
- setSchemaTypes(id: string, types: SchemaTypeName[], auth?: AuthContext): Promise<Schema>;
2766
+ setSchemaTypes(id: string, types: SchemaTargetType[], auth?: AuthContext): Promise<void>;
2708
2767
  /** List custom-entity definitions. `expandSchemas` inlines each schema body. */
2709
2768
  listCustomEntities(opts?: ListCustomEntitiesOptions, auth?: AuthContext): Promise<CustomEntity[]>;
2710
2769
  /** Retrieve one custom-entity definition by id. */
2711
2770
  getCustomEntity(id: string, auth?: AuthContext): Promise<CustomEntity>;
2712
- /** Create a custom-entity definition. */
2713
- createCustomEntity(draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntity>;
2714
- /** Update a custom-entity definition. */
2715
- updateCustomEntity(id: string, draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntity>;
2771
+ /** Create a custom-entity definition. Resolves to the `201`'s id envelope. */
2772
+ createCustomEntity(draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntityCreated>;
2773
+ /**
2774
+ * Update a custom-entity definition — an upsert: resolves to the id envelope
2775
+ * when the `PUT` created the type (`201`), to `undefined` when it updated it
2776
+ * (`204`).
2777
+ */
2778
+ updateCustomEntity(id: string, draft: CustomEntityUpdate, auth?: AuthContext): Promise<CustomEntityCreated | undefined>;
2716
2779
  /**
2717
2780
  * Delete a custom-entity definition. The server rejects with 409 if
2718
- * instances or schemas still reference it (propagated as the standard
2719
- * conflict error).
2781
+ * instances or schemas still reference it (`EmporixConflictError`).
2720
2782
  */
2721
2783
  deleteCustomEntity(id: string, auth?: AuthContext): Promise<void>;
2722
2784
  /**
@@ -2736,12 +2798,23 @@ declare class SchemaService {
2736
2798
  listAllInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): AsyncIterable<CustomInstance<T>>;
2737
2799
  /** Retrieve one instance by id. */
2738
2800
  getInstance<T = Record<string, unknown>>(type: string, id: string, auth?: AuthContext): Promise<CustomInstance<T>>;
2739
- /** Create an instance of a custom entity. */
2740
- createInstance<T = Record<string, unknown>>(type: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstance<T>>;
2741
- /** Replace an instance (full `PUT`). */
2742
- replaceInstance<T = Record<string, unknown>>(type: string, id: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstance<T>>;
2743
- /** Partially update an instance (`PATCH`). */
2744
- patchInstance<T = Record<string, unknown>>(type: string, id: string, patch: Partial<CustomInstanceDraft<T>>, auth?: AuthContext): Promise<CustomInstance<T>>;
2801
+ /**
2802
+ * Create an instance of a custom entity. Resolves to the `201`'s id envelope;
2803
+ * an id that already exists is answered with a 409 (`EmporixConflictError`).
2804
+ */
2805
+ createInstance<T = Record<string, unknown>>(type: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstanceCreated>;
2806
+ /**
2807
+ * Replace an instance (full `PUT`, an upsert). Resolves to the id envelope
2808
+ * when it created the instance (`201`), to `undefined` when it replaced one
2809
+ * (`204`). A stale `metadata.version` is answered with a 409.
2810
+ */
2811
+ replaceInstance<T = Record<string, unknown>>(type: string, id: string, draft: CustomInstanceReplace<T>, auth?: AuthContext): Promise<CustomInstanceCreated | undefined>;
2812
+ /**
2813
+ * Partially update an instance (`PATCH`) with RFC-6902 operations, e.g.
2814
+ * `[{ op: "replace", path: "/mixins/shoe/size", value: 44 }]`. Resolves on
2815
+ * the `204`.
2816
+ */
2817
+ patchInstance(type: string, id: string, patch: CustomInstancePatch, auth?: AuthContext): Promise<void>;
2745
2818
  /**
2746
2819
  * Patch up to 200 custom instances of `type` in one call
2747
2820
  * (`PATCH /custom-entities/{type}/instances/bulk`). Returns a 207 envelope:
@@ -3506,6 +3579,13 @@ type BaseLlm = {
3506
3579
  * The limit of tokens which agent can burn during one request session.
3507
3580
  */
3508
3581
  maxTokens?: number;
3582
+ /**
3583
+ * Optional JSON object of extra model parameters. Use it to pass provider-specific options, for example reasoning settings.
3584
+ *
3585
+ */
3586
+ additionalParams?: {
3587
+ [key: string]: unknown;
3588
+ };
3509
3589
  };
3510
3590
  type EmporixLlm = BaseLlm & {
3511
3591
  /**
@@ -13550,4 +13630,4 @@ declare function productIdFromYrn(yrn: string | undefined): string;
13550
13630
  */
13551
13631
  declare function productYrn(tenant: string, productId: string): string;
13552
13632
 
13553
- export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerImport, type AdminCustomerImportAccount, type AdminCustomerImportResult, type AdminCustomerInput, type AdminCustomerLegacyAuth, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type AdminPasswordMigrationRetention, type AdminPasswordMigrationRetentionInput, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, AgenticCrudResource, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, AnalyticsResource, type Approval, type ApprovalCreated, type ApprovalDecision, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Attachment, type AttachmentOptions, type AttachmentReuseOptions, type AuditLogChangeType, type AuditLogEntry, type AuditLogPage, type AuditLogPathChange, type AuditLogQuery, type AuditLogRelatedEntity, AuditLogService, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, type BulkInstanceResult, type BulkPatchInstanceItem, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatOptions, type ChatRequest, type ChatResponse, type ChatStreamOptions, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CloudFunctionsService, type CommerceEvents, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type Conversation, type ConversationSearchQuery, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type CookieIo, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, type Created, type Currency, type CurrencyCreated, type CurrencyInput, type CurrencyList, CurrencyService, type CurrencyUpdate, type CustomEntity, type CustomEntityDraft, type CustomInstance, type CustomInstanceDraft, CustomerAdminService, CustomerGroupsService, CustomerService, type CustomerSessionState, type CustomerSessionStore, type CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$1 as DeliveryWindow, type DeliveryWindowList, type DeliveryWindowValidation, EmporixAuthError, EmporixClient, EmporixConfig, type EmporixCore, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, type EmporixStorage, type EmporixStorageKey, EmporixTimeoutError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type ExecutionsQuery, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type GetOptions, type IamAccessControl, type IamAccessControlCreated, type IamAccessControlUpsert, type IamGroup, type IamGroupCreate, type IamGroupCreated, AssignmentCreateRequest as IamGroupMemberAssignment, type IamGroupMemberCreated, type IamGroupMemberInput, type IamGroupUpdate, type IamScope, type IamScopeCreated, type IamScopeUpsert, IamService, type IamUser, type IamUserCreate, type IamUserCreated, type IamUserDetail, type IamUserScopes, type IamUserUpdate, type ImportCancelResult, type ImportConfig, type ImportDiagnosticKind, type ImportDiagnosticRecord, type ImportErrorRecord, type ImportHealthThresholds, type ImportJobGroup, type ImportLicense, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunDiagnostics, type ImportRunDiagnosticsQuery, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStats, type ImportStatsQuery, type ImportStream, type ImportStreamOrder, type ImportedRecord, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type InvoiceJob, type InvoiceJobCreated, type InvoiceJobDraft, InvoiceService, type InvokeCloudFunctionOptions, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type ItemFeeSearchByProductId, type ItemFeeSearchByProductIds, type Job, type JobIdResponse, JobsResource, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListQuery, type ListQuoteReasonsQuery, type ListQuotesQuery, type ListReindexJobsOptions, type ListSchemaReferencesQuery, type ListSchemasQuery, LocationsService, LogLevel, LogsResource, type McpServer, type McpServerInput, MediaService, type MetadataFilter, type MinimumFee, type MutateOptions, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OAuthConfig, type OAuthInput, OrdersService, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PointsSummary, PriceService, ProductService, type ProviderModels, QueryFor, type Quote, type QuoteCreated, type QuoteDraft, type QuoteHistory, type QuoteInput, type QuoteReason, type QuoteReasonCreated, type QuoteReasonDraft, type QuoteReasonUpdate, QuoteReasonsResource, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RedeemCouponResult, type RedeemMyPointsInput, type RedeemOption, type RedeemOptionList, type RedeemedPoints, type Redemption, type RedemptionCreated, type RedemptionInput, type ReferralCoupon, type Region, type RegionList, type ReindexEntityType, type ReindexInput, type ReindexJob, type ReindexJobInput, type ReindexJobStatus, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, STORAGE_KEYS, SalesOrdersService, type SavedSearch, type SavedSearchCreated, type SavedSearchInput, type Schema, type SchemaAttribute, type SchemaDraft, type SchemaExport, type SchemaImportInput, type SchemaInstanceBulkCreateItem, type SchemaInstanceBulkUpsertItem, type SchemaReference, type SchemaReferenceCreated, type SchemaReferenceInput, type SchemaReferenceUpdateInput, SchemaService, type SchemaTypeName, type SchemaUpdate, type SearchFilterNode, type SearchHit, type SearchImportedRecordsOptions, type SearchIndex, type SearchIndexExport, type SearchIndexField, type SearchIndexImportResult, type SearchIndexInput, type SearchIndexJob, type SearchIndexJobRef, type SearchIndexSelection, type SearchInput, type SearchInstancesQuery, type SearchListOptions, type SearchOptions, SearchPaging, type SearchQuery, type SearchQueryNode, SearchService, type SearchStreamRecordsOptions, type SearchTypeListOptions, SegmentService, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, type SessionContextData, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingFee, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteAddress, type SiteCreated, type SiteFields, type SiteHomeBase, type SiteInput, type SiteList, type SiteMixin, type SiteMixinCreated, type SiteMixins, SiteService, StoredAnonymousSession, type TaxCalculationInput, type TaxCalculationRequest, type TaxCalculationResult, type TaxClass, type TaxConfig, type TaxConfigCreated, type TaxCreation as TaxConfigInput, type TaxUpdate as TaxConfigUpdate, type TaxLocation, TaxService, TemplatesResource, TenantConfigService, type TextRequest, type TextResponse, type Token, type TokenInput, TokenProvider, type TokenStorage, type Tool, type ToolInput, type Unit, type UnitCreated, UnitHandlingService, type UnitInput, type UnitUpdate, type Vendor, type VendorCreated, type VendorInput, type VendorList, type VendorLocation, type VendorLocationInput, type VendorLocationList, type VendorLocationUpdate, type VendorSearchQuery, VendorService, type VendorUpdate, type WebhookConfig, type WebhookConfigCreated, type WebhookConfigDraft, type WebhookConfigPatch, type WebhookDashboardAccess, WebhookService, type WebhookStatistics, type WebhookStatisticsQuery, type WebhookSubscription, type WebhookSubscriptionUpdateItem, type WebhookSubscriptionUpdateResultItem, type Zone, type ZoneList, approvalStatusPatch, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createServerStorage, createSessionStorage, emporixKey, errorFromResponse, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, resolveZone, serverAuth, siteMeta };
13633
+ export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerImport, type AdminCustomerImportAccount, type AdminCustomerImportResult, type AdminCustomerInput, type AdminCustomerLegacyAuth, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type AdminPasswordMigrationRetention, type AdminPasswordMigrationRetentionInput, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, AgenticCrudResource, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, AnalyticsResource, type Approval, type ApprovalCreated, type ApprovalDecision, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Attachment, type AttachmentOptions, type AttachmentReuseOptions, type AuditLogChangeType, type AuditLogEntry, type AuditLogPage, type AuditLogPathChange, type AuditLogQuery, type AuditLogRelatedEntity, AuditLogService, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, type BulkInstanceResult, type BulkPatchInstanceItem, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatOptions, type ChatRequest, type ChatResponse, type ChatStreamOptions, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CloudFunctionsService, type CommerceEvents, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type Conversation, type ConversationSearchQuery, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type CookieIo, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, type Created, type Currency, type CurrencyCreated, type CurrencyInput, type CurrencyList, CurrencyService, type CurrencyUpdate, type CustomEntity, type CustomEntityCreated, type CustomEntityDraft, type CustomEntityUpdate, type CustomInstance, type CustomInstanceCreated, type CustomInstanceDraft, type CustomInstancePatch, type CustomInstanceReplace, CustomerAdminService, CustomerGroupsService, CustomerService, type CustomerSessionState, type CustomerSessionStore, type CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$1 as DeliveryWindow, type DeliveryWindowList, type DeliveryWindowValidation, EmporixAuthError, EmporixClient, EmporixConfig, EmporixConflictError, type EmporixCore, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, type EmporixStorage, type EmporixStorageKey, EmporixTimeoutError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type ExecutionsQuery, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type GetOptions, type IamAccessControl, type IamAccessControlCreated, type IamAccessControlUpsert, type IamGroup, type IamGroupCreate, type IamGroupCreated, AssignmentCreateRequest as IamGroupMemberAssignment, type IamGroupMemberCreated, type IamGroupMemberInput, type IamGroupUpdate, type IamScope, type IamScopeCreated, type IamScopeUpsert, IamService, type IamUser, type IamUserCreate, type IamUserCreated, type IamUserDetail, type IamUserScopes, type IamUserUpdate, type ImportCancelResult, type ImportConfig, type ImportDiagnosticKind, type ImportDiagnosticRecord, type ImportErrorRecord, type ImportHealthThresholds, type ImportJobGroup, type ImportLicense, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunDiagnostics, type ImportRunDiagnosticsQuery, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStats, type ImportStatsQuery, type ImportStream, type ImportStreamOrder, type ImportedRecord, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type InvoiceJob, type InvoiceJobCreated, type InvoiceJobDraft, InvoiceService, type InvokeCloudFunctionOptions, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type ItemFeeSearchByProductId, type ItemFeeSearchByProductIds, type Job, type JobIdResponse, JobsResource, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListQuery, type ListQuoteReasonsQuery, type ListQuotesQuery, type ListReindexJobsOptions, type ListSchemaReferencesQuery, type ListSchemasQuery, LocationsService, LogLevel, LogsResource, type McpServer, type McpServerInput, MediaService, type MetadataFilter, type MinimumFee, type MutateOptions, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OAuthConfig, type OAuthInput, OrdersService, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PointsSummary, PriceService, ProductService, type ProviderModels, QueryFor, type Quote, type QuoteCreated, type QuoteDraft, type QuoteHistory, type QuoteInput, type QuoteReason, type QuoteReasonCreated, type QuoteReasonDraft, type QuoteReasonUpdate, QuoteReasonsResource, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RedeemCouponResult, type RedeemMyPointsInput, type RedeemOption, type RedeemOptionList, type RedeemedPoints, type Redemption, type RedemptionCreated, type RedemptionInput, type ReferralCoupon, type Region, type RegionList, type ReindexEntityType, type ReindexInput, type ReindexJob, type ReindexJobInput, type ReindexJobStatus, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, STORAGE_KEYS, SalesOrdersService, type SavedSearch, type SavedSearchCreated, type SavedSearchInput, type Schema, type SchemaAttribute, type SchemaCreated, type SchemaDraft, type SchemaExport, type SchemaImportInput, type SchemaInstanceBulkCreateItem, type SchemaInstanceBulkUpsertItem, type SchemaReference, type SchemaReferenceCreated, type SchemaReferenceInput, type SchemaReferenceUpdateInput, SchemaService, type SchemaTargetType, type SchemaTypeName, type SchemaUpdate, type SearchFilterNode, type SearchHit, type SearchImportedRecordsOptions, type SearchIndex, type SearchIndexExport, type SearchIndexField, type SearchIndexImportResult, type SearchIndexInput, type SearchIndexJob, type SearchIndexJobRef, type SearchIndexSelection, type SearchInput, type SearchInstancesQuery, type SearchListOptions, type SearchOptions, SearchPaging, type SearchQuery, type SearchQueryNode, SearchService, type SearchStreamRecordsOptions, type SearchTypeListOptions, SegmentService, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, type SessionContextData, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingFee, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteAddress, type SiteCreated, type SiteFields, type SiteHomeBase, type SiteInput, type SiteList, type SiteMixin, type SiteMixinCreated, type SiteMixins, SiteService, StoredAnonymousSession, type TaxCalculationInput, type TaxCalculationRequest, type TaxCalculationResult, type TaxClass, type TaxConfig, type TaxConfigCreated, type TaxCreation as TaxConfigInput, type TaxUpdate as TaxConfigUpdate, type TaxLocation, TaxService, TemplatesResource, TenantConfigService, type TextRequest, type TextResponse, type Token, type TokenInput, TokenProvider, type TokenStorage, type Tool, type ToolInput, type Unit, type UnitCreated, UnitHandlingService, type UnitInput, type UnitUpdate, type Vendor, type VendorCreated, type VendorInput, type VendorList, type VendorLocation, type VendorLocationInput, type VendorLocationList, type VendorLocationUpdate, type VendorSearchQuery, VendorService, type VendorUpdate, type WebhookConfig, type WebhookConfigCreated, type WebhookConfigDraft, type WebhookConfigPatch, type WebhookDashboardAccess, WebhookService, type WebhookStatistics, type WebhookStatisticsQuery, type WebhookSubscription, type WebhookSubscriptionUpdateItem, type WebhookSubscriptionUpdateResultItem, type Zone, type ZoneList, approvalStatusPatch, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createServerStorage, createSessionStorage, emporixKey, errorFromResponse, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, resolveZone, serverAuth, siteMeta };