@instruments/materialgraph 2.0.0 → 2.1.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.
@@ -1,8 +1,7 @@
1
- import type { CatalogDocumentList, CatalogPageListResult, CatalogProductReferenceReadResult, CatalogChannelCollectionsResponse, CatalogCollectionsOptions, CatalogDocumentAccessResult, CatalogPageRepresentationReadResult, CatalogReferenceBatchResponse } from "./catalog-types.js";
1
+ import type { CatalogDocumentList, CatalogPageListResult, CatalogProductReferenceReadResult, CatalogDocumentAccessResult, CatalogPageRepresentationReadResult, CatalogReferenceBatchResponse } from "./catalog-types.js";
2
2
  import type { HttpTransport } from "./http-transport.js";
3
3
  import type { VariantId } from "./identifiers.js";
4
4
  import type { ResolveVariantInput, ResolveVariantOutput } from "./resolve-variant-types.js";
5
- import type { SamplizeCatalogOptions, SamplizeCatalogPage } from "./samplize-catalog-types.js";
6
5
  /** Catalog publication operations inherited by the public SDK client. */
7
6
  export declare class CatalogClient {
8
7
  #private;
@@ -20,8 +19,6 @@ export declare class CatalogClient {
20
19
  * never a guess. The submitted URL is never persisted.
21
20
  */
22
21
  resolveVariant(input: ResolveVariantInput, signal?: AbortSignal): Promise<ResolveVariantOutput>;
23
- /** Complete version-pinned Samplize paint corpus; stock never limits eligibility. */
24
- samplizeCatalog(options?: SamplizeCatalogOptions, signal?: AbortSignal): Promise<SamplizeCatalogPage>;
25
22
  /**
26
23
  * Read exact, verified brand-publication page relationships for variants.
27
24
  * Missing evidence stays explicit; this operation never guesses a page from
@@ -30,8 +27,6 @@ export declare class CatalogClient {
30
27
  catalogReferencesForVariants(input: {
31
28
  variantIds: VariantId[];
32
29
  }, signal?: AbortSignal): Promise<CatalogReferenceBatchResponse>;
33
- /** List product collections with governed catalog-channel membership. */
34
- catalogCollections(options?: CatalogCollectionsOptions, signal?: AbortSignal): Promise<CatalogChannelCollectionsResponse>;
35
30
  /** List immutable catalog documents retained from verified source material. */
36
31
  catalogs(signal?: AbortSignal): Promise<CatalogDocumentList>;
37
32
  /** List stable one-based page identities and their representation status. */
package/catalog-client.js CHANGED
@@ -20,10 +20,6 @@ export class CatalogClient {
20
20
  async resolveVariant(input, signal) {
21
21
  return await this.#transport.requestJson(resolveOperation("resolve_variant"), { body: input, signal });
22
22
  }
23
- /** Complete version-pinned Samplize paint corpus; stock never limits eligibility. */
24
- async samplizeCatalog(options = {}, signal) {
25
- return await this.#transport.requestJson(resolveOperation("samplize_catalog_products"), { query: { ...options }, signal });
26
- }
27
23
  /**
28
24
  * Read exact, verified brand-publication page relationships for variants.
29
25
  * Missing evidence stays explicit; this operation never guesses a page from
@@ -32,17 +28,6 @@ export class CatalogClient {
32
28
  async catalogReferencesForVariants(input, signal) {
33
29
  return await this.#transport.requestJson(resolveOperation("get_catalog_references_batch"), { body: input, signal });
34
30
  }
35
- /** List product collections with governed catalog-channel membership. */
36
- async catalogCollections(options = {}, signal) {
37
- return await this.#transport.requestJson(resolveOperation("list_catalog_channel_collections"), {
38
- query: {
39
- limit: options.limit,
40
- offset: options.offset,
41
- sampleLimit: options.sampleLimit,
42
- },
43
- signal,
44
- });
45
- }
46
31
  /** List immutable catalog documents retained from verified source material. */
47
32
  async catalogs(signal) {
48
33
  return await this.#transport.requestJson(resolveOperation("list_catalog_documents"), { signal });
@@ -125,49 +125,6 @@ export type CatalogReferenceBatchResponse = {
125
125
  upstreamFailure: number;
126
126
  };
127
127
  };
128
- /** Bounds for the flat catalog-channel collection shelf. */
129
- export type CatalogCollectionsOptions = {
130
- limit?: number;
131
- offset?: number;
132
- sampleLimit?: number;
133
- };
134
- /** One representative product image carried by a catalog collection. */
135
- export type CatalogCollectionSampleProduct = {
136
- imageUrl: string | null;
137
- hex?: string | null;
138
- productId: string;
139
- productName: string;
140
- variantId: string;
141
- variantName: string | null;
142
- };
143
- /** A product collection whose variants have governed catalog membership. */
144
- export type CatalogChannelCollection = {
145
- id: string;
146
- slug: string;
147
- name: string;
148
- homepageUrl: string | null;
149
- productCount: number;
150
- variantCount: number;
151
- sampleProducts: CatalogCollectionSampleProduct[];
152
- };
153
- /** The flat, paginated catalog-channel collection read model. */
154
- export type CatalogChannelCollectionsResponse = {
155
- collections: CatalogChannelCollection[];
156
- channel: {
157
- token: "catalog";
158
- basis: "governed_variant_membership";
159
- };
160
- counts: {
161
- basis: "exact_current_channel_membership";
162
- };
163
- pagination: {
164
- count: number;
165
- total: number;
166
- limit: number;
167
- offset: number;
168
- hasMore: boolean;
169
- };
170
- };
171
128
  export type CatalogDocumentAccess = {
172
129
  documentId: string;
173
130
  contentType: "application/pdf";
@@ -35,7 +35,7 @@ export type ColorsTransport = {
35
35
  export declare class ColorsClient {
36
36
  #private;
37
37
  constructor(transport: ColorsTransport);
38
- /** Nearest Samplize catalog paints for up to twelve hexes, deduplicated in input order. */
38
+ /** Nearest paint colors for up to twelve hexes, deduplicated in input order; `searchCatalogSubset` narrows the paint colors. */
39
39
  nearestPaints(params: NearestPaintsParams, signal?: AbortSignal): Promise<NearestPaintsOutput>;
40
40
  /**
41
41
  * THE QUESTION: "what colors does this CATEGORY come in?" - the
package/colors-client.js CHANGED
@@ -3,9 +3,13 @@ export class ColorsClient {
3
3
  constructor(transport) {
4
4
  this.#transport = transport;
5
5
  }
6
- /** Nearest Samplize catalog paints for up to twelve hexes, deduplicated in input order. */
6
+ /** Nearest paint colors for up to twelve hexes, deduplicated in input order; `searchCatalogSubset` narrows the paint colors. */
7
7
  async nearestPaints(params, signal) {
8
- return await this.#transport.get("find_nearest_paints", { hex: params.hexes, limit: params.limit }, signal);
8
+ return await this.#transport.get("find_nearest_paints", {
9
+ hex: params.hexes,
10
+ limit: params.limit,
11
+ searchCatalogSubset: params.searchCatalogSubset,
12
+ }, signal);
9
13
  }
10
14
  /**
11
15
  * THE QUESTION: "what colors does this CATEGORY come in?" - the
@@ -15,8 +15,6 @@ export type SampledTogetherProjectType = "Workplace" | "Residential" | "Institut
15
15
  export type FindSampledTogetherInput = {
16
16
  /** Optional row fields: image adds imageUrl, color adds swatches. */
17
17
  include?: ("image" | "color")[];
18
- /** Ops and audit switch: leave sample cards in. Default false. */
19
- includeSamplingArtifacts?: boolean;
20
18
  /** Materials to return, default 20, at most 100. */
21
19
  limit?: number;
22
20
  /** Names to resolve when you hold no ids. Misses come back unresolved. */
@@ -57,7 +57,7 @@ export type GetVariantOutput = {
57
57
  }[];
58
58
  attributes: Record<string, {
59
59
  value: unknown;
60
- valueSource: "brand" | "material_bank" | "samplize" | "measured" | "manual" | null;
60
+ valueSource: "brand" | "material_bank" | "measured" | "manual" | null;
61
61
  wording: string | null;
62
62
  level: "variant" | "product" | "brand";
63
63
  }>;
package/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export type { DiscoveryReference, DiscoveryTerms, InterpretDiscoveryTermsInput, ColorlessVariantsResult, VariantSibling, } from "./discovery-context-types.js";
2
2
  export { MaterialGraphClient, DEFAULT_BASE_URL } from "./client.js";
3
+ export { PICK_JOB_MAX_LENGTH, SCHEME_BUNDLE_MAX_PICKS, SCHEME_BUNDLE_MIN_PICKS, } from "./scheme-bundle-types.js";
4
+ export type { SchemeBundle, SchemeBundlePick } from "./scheme-bundle-types.js";
3
5
  export type { MaterialGraphClientOptions } from "./client.js";
4
6
  export type { FilterOp, FilterTermCondition, FilterNumericCondition, FilterPresenceCondition, FilterAnyFieldCondition, FilterCondition, FilterGroups, OptionalFilterGroups, OrderByEntry, ListVariantsInclude, ListVariantsCollapse, ColorRegion, ColorRangeCondition, ListVariantsInput, ListVariantsPreference, ListVariantsSpecifications, ListVariantsNotApplicable, SampleSubject, ListVariantsItem, ListVariantsOutput, VariantCard, } from "./list-variants-types.js";
5
7
  export type { ListVariantFacetsInput, VariantFacetValue, CategoricalVariantFacet, BooleanVariantFacet, NumericVariantFacet, VariantFacet, ListVariantFacetsOutput, } from "./list-variant-facets-types.js";
@@ -20,7 +22,7 @@ export { MATERIALGRAPH_PROBLEM_EXTENSIONS, MaterialGraphError, } from "./errors.
20
22
  export type { MaterialGraphErrorInit, MaterialGraphErrorKind, MaterialGraphRequestMetadata, ProblemDetail, RateLimit, SanitizedErrorValue, SanitizedIssue, SimpleErrorBody, } from "./errors.js";
21
23
  export type { OpenEnum, JsonValue, OklabTriple, MaterialColor, ImageSource, MaterialAvailability, MaterialTile, DemandMomentum, CompanionDemand, ProjectTypeShare, CospecPairing, ColorPairing, PairingOrderMode, PairingRanking, PairingOrdering, PairingItem, PairingsResponse, AttributeMatch, AttributeListItem, OutsideScopeAttribute, ListAttributesResult, WhoamiResponse, PairingsOptions, ListAttributesOptions, ExtractedPalette, ExtractPaletteResponse, ExtractPaletteInput, ResolveValueCandidate, ValueResolution, ResolveColorOptions, ResolveColorCatalogVariant, ResolveColorVariant, ResolveColorResponse, BySpecVerdictState, BySpecVerdictCell, BySpecVerdict, MaterialVerdict, BySpecUnresolvedCriterion, } from "./types.js";
22
24
  export type { ResolveVariantInput, ResolveVariantSubject, ResolveVariantEvidence, ResolveVariantReceipt, ResolveVariantUnresolvedReason, ResolveVariantOutput, } from "./resolve-variant-types.js";
23
- export type { CatalogReference, CatalogReferenceAbsenceReason, CatalogReferencePublication, CatalogReferenceResult, CatalogReferenceBatchResponse, CatalogCollectionsOptions, CatalogCollectionSampleProduct, CatalogChannelCollection, CatalogChannelCollectionsResponse, CatalogDocumentAccess, CatalogDocumentAccessResult, CatalogDocument, CatalogEdition, CatalogAvailableReceipt, CatalogFailureReceipt, UnavailableCatalogDocument, CatalogPublication, CatalogDocumentList, CatalogProductReferenceList, CatalogProductReferenceUnavailable, CatalogProductReferenceReadResult, CatalogPageRequiredArtifact, CatalogPageAvailableArtifact, CatalogPage, CatalogPageListResult, CatalogPageRepresentationReadResult, } from "./catalog-types.js";
25
+ export type { CatalogReference, CatalogReferenceAbsenceReason, CatalogReferencePublication, CatalogReferenceResult, CatalogReferenceBatchResponse, CatalogDocumentAccess, CatalogDocumentAccessResult, CatalogDocument, CatalogEdition, CatalogAvailableReceipt, CatalogFailureReceipt, UnavailableCatalogDocument, CatalogPublication, CatalogDocumentList, CatalogProductReferenceList, CatalogProductReferenceUnavailable, CatalogProductReferenceReadResult, CatalogPageRequiredArtifact, CatalogPageAvailableArtifact, CatalogPage, CatalogPageListResult, CatalogPageRepresentationReadResult, } from "./catalog-types.js";
24
26
  export { CategoriesClient } from "./categories-client.js";
25
27
  export type { CategoryRef, CategoryKind, CategoryMatch, CategoryItem, CategoriesPageInfo, CategoriesListInput, CategoriesListResult, CategoryConcept, CategoryProductCategory, CategoriesGetResult, } from "./category-types.js";
26
28
  export { ColorsClient } from "./colors-client.js";
@@ -31,5 +33,4 @@ export type { BrandsOptions, BrandItem, ListBrandsPage, } from "./brand-types.js
31
33
  export type { VariantAssetAvailability, VariantImageRole, VariantImagePresentation, VariantDocumentType, VariantAssetKind, VariantAssetItem, VariantDocumentCoverageState, VariantAssetPageInfo, ListVariantAssetsOptions, VariantAssetPage, MaterialDocumentStatus, MaterialDocumentCoverageState, MaterialDocumentScope, MaterialDocumentSource, MaterialDocumentProjectionItem, MaterialDocumentCoverageSource, MaterialDocumentCoverage, MaterialDocumentCoverageSummary, MaterialDocumentPageOptions, MaterialDocumentPage, } from "./material-asset-types.js";
32
34
  export type { MaterialCoverageStatus, MaterialBlockStatus, MaterialBlockFieldStatus, MaterialBlockFieldValue, MaterialBlockProjectionField, MaterialBlockProjectionItem, MaterialBlockProjection, VariantColorPalette, } from "./material-block-types.js";
33
35
  export type { SchemaResource, SCHEMA_RESOURCE_OPERATION_IDS, SchemaResourceRequest, SchemaLifecycle, SchemaExternalMapping, SchemaMatchStrength, SchemaValueDictionaryTerm, SchemaValueDictionaryItem, SchemaResourceItemMap, SchemaResourceResponse, } from "./schema-resource-types.js";
34
- export type { SamplizePublicationSource, SamplizeLrvObservation, SamplizeDemand, SamplizeCollectionMembership, SamplizeCatalogOptions, SamplizeCatalogPage, SamplizeCatalogProduct, SamplizeHexObservation, } from "./samplize-catalog-types.js";
35
36
  export type { NearestPaintsParams, NearestPaintCard, NearestPaintsHexResult, NearestPaintsOutput, } from "./nearest-paints-types.js";
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { MaterialGraphClient, DEFAULT_BASE_URL } from "./client.js";
2
+ export { PICK_JOB_MAX_LENGTH, SCHEME_BUNDLE_MAX_PICKS, SCHEME_BUNDLE_MIN_PICKS, } from "./scheme-bundle-types.js";
2
3
  export { FIND_VARIANTS_BY_VECTOR_MODES } from "./find-variants-by-vector-types.js";
3
4
  export { MATERIALGRAPH_API_VERSION, SDK_OPERATIONS } from "./operations.js";
4
5
  export { MATERIALGRAPH_PROBLEM_EXTENSIONS, MaterialGraphError, } from "./errors.js";
@@ -1,6 +1,8 @@
1
+ import type { SearchCatalogSubset } from "./search-catalog-subset-types.js";
1
2
  export type NearestPaintsParams = {
2
3
  hexes: string[];
3
4
  limit?: number;
5
+ searchCatalogSubset?: SearchCatalogSubset;
4
6
  };
5
7
  export type NearestPaintCard = {
6
8
  variantId: string;
@@ -1,7 +1,7 @@
1
1
  /** Response types belong to operation ids, never a caller-selected generic. */
2
2
  import type { ApplicabilityResponse, DeclaredAssociationsResponse } from "./association-types.js";
3
3
  import type { ListBrandsPage } from "./brand-types.js";
4
- import type { CatalogDocumentList, CatalogPageListResult, CatalogProductReferenceReadResult, CatalogChannelCollectionsResponse, CatalogDocumentAccessResult, CatalogPageRepresentationReadResult, CatalogReferenceBatchResponse } from "./catalog-types.js";
4
+ import type { CatalogDocumentList, CatalogPageListResult, CatalogProductReferenceReadResult, CatalogDocumentAccessResult, CatalogPageRepresentationReadResult, CatalogReferenceBatchResponse } from "./catalog-types.js";
5
5
  import type { CategoriesGetResult, CategoriesListResult } from "./category-types.js";
6
6
  import type { CategoryColorProfilesResponse } from "./color-profiles-types.js";
7
7
  import type { DiscoveryReference, DiscoveryTerms, ColorlessVariantsResult, VariantSibling } from "./discovery-context-types.js";
@@ -17,7 +17,6 @@ import type { MaterialDocumentPage, VariantAssetPage } from "./material-asset-ty
17
17
  import type { MaterialBlockProjection } from "./material-block-types.js";
18
18
  import type { NearestPaintsOutput } from "./nearest-paints-types.js";
19
19
  import type { ResolveVariantOutput } from "./resolve-variant-types.js";
20
- import type { SamplizeCatalogPage } from "./samplize-catalog-types.js";
21
20
  import type { SchemaResourceResponse } from "./schema-resource-types.js";
22
21
  import type { SearchVariantsOutput } from "./search-variants-types.js";
23
22
  import type { SourceMaterialBatchReceipt } from "./source-material-types.js";
@@ -52,7 +51,6 @@ export type OperationResponses = {
52
51
  list_catalog_documents: CatalogDocumentList;
53
52
  list_catalog_pages: CatalogPageListResult;
54
53
  list_catalog_product_references: CatalogProductReferenceReadResult;
55
- list_catalog_channel_collections: CatalogChannelCollectionsResponse;
56
54
  list_categories: CategoriesListResult;
57
55
  list_material_blocks: MaterialBlockProjection;
58
56
  list_material_documents: MaterialDocumentPage;
@@ -62,7 +60,6 @@ export type OperationResponses = {
62
60
  list_variants: ListVariantsOutput;
63
61
  resolve_color_name: ResolveColorResponse;
64
62
  resolve_variant: ResolveVariantOutput;
65
- samplize_catalog_products: SamplizeCatalogPage;
66
63
  search_variants: SearchVariantsOutput;
67
64
  upload_source_material: SourceMaterialBatchReceipt;
68
65
  whoami: WhoamiResponse;
@@ -1,5 +1,5 @@
1
1
  export declare const MATERIALGRAPH_API_VERSION = "0.8.0";
2
- declare const OPERATION_DEFINITIONS: readonly [readonly ["discoveryReference", "GET", "/api/v1/catalog/discovery-reference", "get_discovery_reference"], readonly ["interpretDiscoveryTerms", "POST", "/api/v1/catalog/interpret-terms", "interpret_discovery_terms"], readonly ["colorlessVariants", "POST", "/api/v1/variants/colorless", "find_colorless_variants"], readonly ["variantSiblings", "GET", "/api/v1/variants/{variantId}/siblings", "list_variant_siblings"], readonly ["colors.nearestPaints", "GET", "/api/v1/colors/nearest-paints", "find_nearest_paints"], readonly ["getCatalogGeneration", "GET", "/api/v1/catalog/generation", "get_catalog_generation"], readonly ["catalogs", "GET", "/api/v1/catalogs", "list_catalog_documents"], readonly ["catalogPages", "GET", "/api/v1/catalogs/{catalogId}/pages", "list_catalog_pages"], readonly ["catalogPageRepresentation", "GET", "/api/v1/catalog-pages/{pageId}/representation", "get_catalog_page_representation"], readonly ["catalogReferences", "GET", "/api/v1/catalogs/{catalogId}/references", "list_catalog_product_references"], readonly ["samplizeCatalog", "GET", "/api/v1/catalogs/samplize/products", "samplize_catalog_products"], readonly ["catalogReferencesForVariants", "POST", "/api/v1/catalogs/references", "get_catalog_references_batch"], readonly ["catalogCollections", "GET", "/api/v1/catalogs/collections", "list_catalog_channel_collections"], readonly ["catalogDocumentAccess", "GET", "/api/v1/catalogs/documents/{documentId}", "get_catalog_document_access"], readonly ["materialBlocks", "GET", "/api/v1/materials/{variantId}/blocks", "list_material_blocks"], readonly ["listVariantAssets", "GET", "/api/v1/variants/{variantId}/assets", "list_variant_assets"], readonly ["materialDocuments", "GET", "/api/v1/materials/{variantId}/documents", "list_material_documents"], readonly ["schema", "GET", "/api/v1/schema/value-dictionaries", "list_schema_value_dictionaries"], readonly ["pairings", "GET", "/api/v1/materials/{variantId}/pairings", "get_material_pairings"], readonly ["associatedFinishes", "GET", "/api/v1/associated/finishes", "list_associated_finishes"], readonly ["associatedProducts", "GET", "/api/v1/associated/products", "list_associated_products"], readonly ["applicability", "GET", "/api/v1/applicability", "get_applicability"], readonly ["listVariants", "GET", "/api/v1/variants", "list_variants"], readonly ["listVariantFacets", "POST", "/api/v1/variants/facets", "list_variant_facets"], readonly ["searchVariants", "POST", "/api/v1/variants/search", "search_variants"], readonly ["findVariantsByColor", "GET", "/api/v1/variants/by-color", "find_variants_by_color"], readonly ["findVariantsByVector", "POST", "/api/v1/variants/by-vector", "find_variants_by_vector"], readonly ["findSampledTogether", "GET", "/api/v1/variants/sampled-together", "find_sampled_together"], readonly ["listSampledTogetherPairs", "GET", "/api/v1/variants/sampled-together/pairs", "list_sampled_together_pairs"], readonly ["resolveVariant", "POST", "/api/v1/variants/resolve", "resolve_variant"], readonly ["getVariant", "GET", "/api/v1/variants/{variantId}", "get_variant"], readonly ["resolveColor", "GET", "/api/v1/search/colors/resolve", "resolve_color_name"], readonly ["listAttributes", "GET", "/api/v1/catalog/attributes", "catalog_list_attributes"], readonly ["listEnumValues", "GET", "/api/v1/catalog/enum-values", "catalog_list_enum_values"], readonly ["categories.list", "GET", "/api/v1/categories", "list_categories"], readonly ["categories.get", "GET", "/api/v1/categories/{id}", "get_category"], readonly ["whoami", "GET", "/api/v1/whoami", "whoami"], readonly ["colors.profiles", "GET", "/api/v1/colors/profiles", "get_category_color_profiles"], readonly ["extractPalette", "POST", "/api/v1/search/palettes/extract", "extract_image_palette"], readonly ["brands", "GET", "/api/v1/brands", "list_brands"], readonly ["uploadSourceMaterial", "POST", "/api/v1/source-material", "upload_source_material"]];
2
+ declare const OPERATION_DEFINITIONS: readonly [readonly ["discoveryReference", "GET", "/api/v1/catalog/discovery-reference", "get_discovery_reference"], readonly ["interpretDiscoveryTerms", "POST", "/api/v1/catalog/interpret-terms", "interpret_discovery_terms"], readonly ["colorlessVariants", "POST", "/api/v1/variants/colorless", "find_colorless_variants"], readonly ["variantSiblings", "GET", "/api/v1/variants/{variantId}/siblings", "list_variant_siblings"], readonly ["colors.nearestPaints", "GET", "/api/v1/colors/nearest-paints", "find_nearest_paints"], readonly ["getCatalogGeneration", "GET", "/api/v1/catalog/generation", "get_catalog_generation"], readonly ["catalogs", "GET", "/api/v1/catalogs", "list_catalog_documents"], readonly ["catalogPages", "GET", "/api/v1/catalogs/{catalogId}/pages", "list_catalog_pages"], readonly ["catalogPageRepresentation", "GET", "/api/v1/catalog-pages/{pageId}/representation", "get_catalog_page_representation"], readonly ["catalogReferences", "GET", "/api/v1/catalogs/{catalogId}/references", "list_catalog_product_references"], readonly ["catalogReferencesForVariants", "POST", "/api/v1/catalogs/references", "get_catalog_references_batch"], readonly ["catalogDocumentAccess", "GET", "/api/v1/catalogs/documents/{documentId}", "get_catalog_document_access"], readonly ["materialBlocks", "GET", "/api/v1/materials/{variantId}/blocks", "list_material_blocks"], readonly ["listVariantAssets", "GET", "/api/v1/variants/{variantId}/assets", "list_variant_assets"], readonly ["materialDocuments", "GET", "/api/v1/materials/{variantId}/documents", "list_material_documents"], readonly ["schema", "GET", "/api/v1/schema/value-dictionaries", "list_schema_value_dictionaries"], readonly ["pairings", "GET", "/api/v1/materials/{variantId}/pairings", "get_material_pairings"], readonly ["associatedFinishes", "GET", "/api/v1/associated/finishes", "list_associated_finishes"], readonly ["associatedProducts", "GET", "/api/v1/associated/products", "list_associated_products"], readonly ["applicability", "GET", "/api/v1/applicability", "get_applicability"], readonly ["listVariants", "GET", "/api/v1/variants", "list_variants"], readonly ["listVariantFacets", "POST", "/api/v1/variants/facets", "list_variant_facets"], readonly ["searchVariants", "POST", "/api/v1/variants/search", "search_variants"], readonly ["findVariantsByColor", "GET", "/api/v1/variants/by-color", "find_variants_by_color"], readonly ["findVariantsByVector", "POST", "/api/v1/variants/by-vector", "find_variants_by_vector"], readonly ["findSampledTogether", "GET", "/api/v1/variants/sampled-together", "find_sampled_together"], readonly ["listSampledTogetherPairs", "GET", "/api/v1/variants/sampled-together/pairs", "list_sampled_together_pairs"], readonly ["resolveVariant", "POST", "/api/v1/variants/resolve", "resolve_variant"], readonly ["getVariant", "GET", "/api/v1/variants/{variantId}", "get_variant"], readonly ["resolveColor", "GET", "/api/v1/search/colors/resolve", "resolve_color_name"], readonly ["listAttributes", "GET", "/api/v1/catalog/attributes", "catalog_list_attributes"], readonly ["listEnumValues", "GET", "/api/v1/catalog/enum-values", "catalog_list_enum_values"], readonly ["categories.list", "GET", "/api/v1/categories", "list_categories"], readonly ["categories.get", "GET", "/api/v1/categories/{id}", "get_category"], readonly ["whoami", "GET", "/api/v1/whoami", "whoami"], readonly ["colors.profiles", "GET", "/api/v1/colors/profiles", "get_category_color_profiles"], readonly ["extractPalette", "POST", "/api/v1/search/palettes/extract", "extract_image_palette"], readonly ["brands", "GET", "/api/v1/brands", "list_brands"], readonly ["uploadSourceMaterial", "POST", "/api/v1/source-material", "upload_source_material"]];
3
3
  export type SdkOperationId = (typeof OPERATION_DEFINITIONS)[number][3];
4
4
  export type SdkOperation<K extends SdkOperationId = SdkOperationId> = Readonly<{
5
5
  clientMethod: (typeof OPERATION_DEFINITIONS)[number][0];
@@ -56,24 +56,12 @@ const OPERATION_DEFINITIONS = [
56
56
  "/api/v1/catalogs/{catalogId}/references",
57
57
  "list_catalog_product_references",
58
58
  ],
59
- [
60
- "samplizeCatalog",
61
- "GET",
62
- "/api/v1/catalogs/samplize/products",
63
- "samplize_catalog_products",
64
- ],
65
59
  [
66
60
  "catalogReferencesForVariants",
67
61
  "POST",
68
62
  "/api/v1/catalogs/references",
69
63
  "get_catalog_references_batch",
70
64
  ],
71
- [
72
- "catalogCollections",
73
- "GET",
74
- "/api/v1/catalogs/collections",
75
- "list_catalog_channel_collections",
76
- ],
77
65
  [
78
66
  "catalogDocumentAccess",
79
67
  "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instruments/materialgraph",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -11,10 +11,6 @@
11
11
  "types": "./webmcp.d.ts",
12
12
  "import": "./webmcp.js"
13
13
  },
14
- "./samplize-colorvec": {
15
- "types": "./samplize-colorvec.d.ts",
16
- "import": "./samplize-colorvec.js"
17
- },
18
14
  "./response-schemas": {
19
15
  "types": "./response-schemas.d.ts",
20
16
  "import": "./response-schemas.js"
@@ -26,12 +26,6 @@ export type ResolveColorCatalogVariant = {
26
26
  };
27
27
  /** Whether the variant is in the requested scope; null when none was asked for. */
28
28
  inScope: boolean | null;
29
- /**
30
- * True when the stored brand is Samplize, a sampling channel, and the listing
31
- * is not Samplize's own: the color is another brand's, so `brand` is not who
32
- * made it. The variant is still the right one for the name.
33
- */
34
- parentageSuspect: boolean;
35
29
  };
36
30
  /**
37
31
  * Whether the named paint is a variant in the catalog. Exact, global, and
@@ -1,5 +1,5 @@
1
1
  /** The API contract version the schemas were generated from. */
2
2
  export declare const RESPONSE_SCHEMA_API_VERSION = "0.8.0";
3
3
  /** Every SDK operation whose success response has a published JSON Schema. */
4
- export declare const RESPONSE_SCHEMA_OPERATION_IDS: readonly ["get_discovery_reference", "interpret_discovery_terms", "find_colorless_variants", "list_variant_siblings", "find_nearest_paints", "get_catalog_generation", "list_catalog_documents", "list_catalog_pages", "get_catalog_page_representation", "list_catalog_product_references", "samplize_catalog_products", "get_catalog_references_batch", "list_catalog_channel_collections", "get_catalog_document_access", "list_material_blocks", "list_variant_assets", "list_material_documents", "list_schema_value_dictionaries", "get_material_pairings", "list_associated_finishes", "list_associated_products", "get_applicability", "list_variants", "list_variant_facets", "search_variants", "find_variants_by_color", "find_variants_by_vector", "find_sampled_together", "list_sampled_together_pairs", "resolve_variant", "get_variant", "resolve_color_name", "catalog_list_attributes", "catalog_list_enum_values", "list_categories", "get_category", "whoami", "get_category_color_profiles", "extract_image_palette", "list_brands", "upload_source_material"];
4
+ export declare const RESPONSE_SCHEMA_OPERATION_IDS: readonly ["get_discovery_reference", "interpret_discovery_terms", "find_colorless_variants", "list_variant_siblings", "find_nearest_paints", "get_catalog_generation", "list_catalog_documents", "list_catalog_pages", "get_catalog_page_representation", "list_catalog_product_references", "get_catalog_references_batch", "get_catalog_document_access", "list_material_blocks", "list_variant_assets", "list_material_documents", "list_schema_value_dictionaries", "get_material_pairings", "list_associated_finishes", "list_associated_products", "get_applicability", "list_variants", "list_variant_facets", "search_variants", "find_variants_by_color", "find_variants_by_vector", "find_sampled_together", "list_sampled_together_pairs", "resolve_variant", "get_variant", "resolve_color_name", "catalog_list_attributes", "catalog_list_enum_values", "list_categories", "get_category", "whoami", "get_category_color_profiles", "extract_image_palette", "list_brands", "upload_source_material"];
5
5
  export declare const RESPONSE_SCHEMA_CATALOG_JSON: string;