@samesake/core 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/types.d.cts +5 -4
- package/dist/types.d.ts +5 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FtsChannel, CosineChannel, RecencyChannel, SpacesChannel, CosineScorer, TrigramScorer, PhoneticEqScorer, PhoneExactScorer, AliasHitScorer, InternalCodeExactScorer, SizeUnitGateScorer, BrandGateScorer, CollectionFieldDef, CollectionEmbeddingDef, SpaceDef, PipelineDef, ConnectorDef, TypedSearchChannel, CollectionDef, FieldDef, EmbeddingDef, PhoneticDef, ParseDef, TypedScorer, EntityDef, CollectionTextFieldDef, CollectionNumberFieldDef, CollectionBooleanFieldDef, CollectionEnumFieldDef, CollectionArrayFieldDef, StageDef, TextSpaceDef, ImageSpaceDef, NumberSpaceDef, RecencySpaceDef, CategoricalSpaceDef } from './types.cjs';
|
|
1
|
+
import { FtsChannel, CosineChannel, RecencyChannel, SpacesChannel, CosineScorer, TrigramScorer, PhoneticEqScorer, PhoneExactScorer, AliasHitScorer, InternalCodeExactScorer, SizeUnitGateScorer, BrandGateScorer, CollectionFieldDef, CollectionEmbeddingDef, SpaceDef, PipelineDef, ConnectorDef, TypedSearchChannel, SchemaInput, CollectionDef, FieldDef, EmbeddingDef, PhoneticDef, ParseDef, TypedScorer, EntityDef, CollectionTextFieldDef, CollectionNumberFieldDef, CollectionBooleanFieldDef, CollectionEnumFieldDef, CollectionArrayFieldDef, StageDef, TextSpaceDef, ImageSpaceDef, NumberSpaceDef, RecencySpaceDef, CategoricalSpaceDef } from './types.cjs';
|
|
2
2
|
export { AgentImageInput, AgentToolDescriptor, CollectionSearchDef, ConstraintFieldType, ConstraintOperator, ConstraintPlan, ConstraintPredicate, ConstraintTrace, ConstraintTraceItem, ConstraintTraceKind, ConstraintTraceSource, ConstraintVerification, FashionPersonalizationContext, FashionRankingPolicy, FashionSearchExplanation, FashionSearchImageInput, FashionSearchRequest, FashionSearchResponse, FindProductsRequest, FindProductsResponse, GroundedProductCandidate, ProductVariantAvailability, ProjectConfig, ScorerDef, ScoringDef, SearchChannelDef, SearchWeightsInput, StageContext } from './types.cjs';
|
|
3
3
|
export { MatchCandidate, MatchComponents, MatchResult, ResolvedMatch } from './schemas.cjs';
|
|
4
4
|
import 'zod';
|
|
@@ -123,7 +123,7 @@ type CollectionInput<TFields extends Record<string, CollectionFieldDef>, TEmbedd
|
|
|
123
123
|
instructions?: string;
|
|
124
124
|
semanticRewrite?: boolean;
|
|
125
125
|
enable?: boolean;
|
|
126
|
-
schema?:
|
|
126
|
+
schema?: SchemaInput;
|
|
127
127
|
model?: string;
|
|
128
128
|
};
|
|
129
129
|
};
|
|
@@ -193,4 +193,4 @@ declare const sources: {
|
|
|
193
193
|
}) => ConnectorDef;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
export { AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, Channels, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionTextFieldDef, ConnectorDef, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FieldDef, FtsChannel, IdentError, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, RecencyChannel, RecencySpaceDef, Scorers, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel, assertIdent, assertNoIdentCollisions, collection, entity, f, fashionAttributeSchema, fashionAttributes, fashionEnrichmentPreset, fashionSearchPreset, fields, isCollectionDef, isEntityDef, pipeline, s, sources, stage };
|
|
196
|
+
export { AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, Channels, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionTextFieldDef, ConnectorDef, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FieldDef, FtsChannel, IdentError, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, RecencyChannel, RecencySpaceDef, SchemaInput, Scorers, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel, assertIdent, assertNoIdentCollisions, collection, entity, f, fashionAttributeSchema, fashionAttributes, fashionEnrichmentPreset, fashionSearchPreset, fields, isCollectionDef, isEntityDef, pipeline, s, sources, stage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FtsChannel, CosineChannel, RecencyChannel, SpacesChannel, CosineScorer, TrigramScorer, PhoneticEqScorer, PhoneExactScorer, AliasHitScorer, InternalCodeExactScorer, SizeUnitGateScorer, BrandGateScorer, CollectionFieldDef, CollectionEmbeddingDef, SpaceDef, PipelineDef, ConnectorDef, TypedSearchChannel, CollectionDef, FieldDef, EmbeddingDef, PhoneticDef, ParseDef, TypedScorer, EntityDef, CollectionTextFieldDef, CollectionNumberFieldDef, CollectionBooleanFieldDef, CollectionEnumFieldDef, CollectionArrayFieldDef, StageDef, TextSpaceDef, ImageSpaceDef, NumberSpaceDef, RecencySpaceDef, CategoricalSpaceDef } from './types.js';
|
|
1
|
+
import { FtsChannel, CosineChannel, RecencyChannel, SpacesChannel, CosineScorer, TrigramScorer, PhoneticEqScorer, PhoneExactScorer, AliasHitScorer, InternalCodeExactScorer, SizeUnitGateScorer, BrandGateScorer, CollectionFieldDef, CollectionEmbeddingDef, SpaceDef, PipelineDef, ConnectorDef, TypedSearchChannel, SchemaInput, CollectionDef, FieldDef, EmbeddingDef, PhoneticDef, ParseDef, TypedScorer, EntityDef, CollectionTextFieldDef, CollectionNumberFieldDef, CollectionBooleanFieldDef, CollectionEnumFieldDef, CollectionArrayFieldDef, StageDef, TextSpaceDef, ImageSpaceDef, NumberSpaceDef, RecencySpaceDef, CategoricalSpaceDef } from './types.js';
|
|
2
2
|
export { AgentImageInput, AgentToolDescriptor, CollectionSearchDef, ConstraintFieldType, ConstraintOperator, ConstraintPlan, ConstraintPredicate, ConstraintTrace, ConstraintTraceItem, ConstraintTraceKind, ConstraintTraceSource, ConstraintVerification, FashionPersonalizationContext, FashionRankingPolicy, FashionSearchExplanation, FashionSearchImageInput, FashionSearchRequest, FashionSearchResponse, FindProductsRequest, FindProductsResponse, GroundedProductCandidate, ProductVariantAvailability, ProjectConfig, ScorerDef, ScoringDef, SearchChannelDef, SearchWeightsInput, StageContext } from './types.js';
|
|
3
3
|
export { MatchCandidate, MatchComponents, MatchResult, ResolvedMatch } from './schemas.js';
|
|
4
4
|
import 'zod';
|
|
@@ -123,7 +123,7 @@ type CollectionInput<TFields extends Record<string, CollectionFieldDef>, TEmbedd
|
|
|
123
123
|
instructions?: string;
|
|
124
124
|
semanticRewrite?: boolean;
|
|
125
125
|
enable?: boolean;
|
|
126
|
-
schema?:
|
|
126
|
+
schema?: SchemaInput;
|
|
127
127
|
model?: string;
|
|
128
128
|
};
|
|
129
129
|
};
|
|
@@ -193,4 +193,4 @@ declare const sources: {
|
|
|
193
193
|
}) => ConnectorDef;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
export { AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, Channels, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionTextFieldDef, ConnectorDef, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FieldDef, FtsChannel, IdentError, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, RecencyChannel, RecencySpaceDef, Scorers, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel, assertIdent, assertNoIdentCollisions, collection, entity, f, fashionAttributeSchema, fashionAttributes, fashionEnrichmentPreset, fashionSearchPreset, fields, isCollectionDef, isEntityDef, pipeline, s, sources, stage };
|
|
196
|
+
export { AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, Channels, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionTextFieldDef, ConnectorDef, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FieldDef, FtsChannel, IdentError, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, RecencyChannel, RecencySpaceDef, SchemaInput, Scorers, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel, assertIdent, assertNoIdentCollisions, collection, entity, f, fashionAttributeSchema, fashionAttributes, fashionEnrichmentPreset, fashionSearchPreset, fields, isCollectionDef, isEntityDef, pipeline, s, sources, stage };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ZodType } from 'zod';
|
|
1
2
|
export { MatchCandidate, MatchComponents, MatchResult, ResolvedMatch } from './schemas.cjs';
|
|
2
|
-
import 'zod';
|
|
3
3
|
|
|
4
4
|
interface FieldDef {
|
|
5
5
|
type: "text" | "number";
|
|
@@ -269,7 +269,7 @@ interface CollectionSearchDef {
|
|
|
269
269
|
instructions?: string;
|
|
270
270
|
semanticRewrite?: boolean;
|
|
271
271
|
enable?: boolean;
|
|
272
|
-
schema?:
|
|
272
|
+
schema?: SchemaInput;
|
|
273
273
|
model?: string;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
@@ -277,13 +277,14 @@ interface StageContext {
|
|
|
277
277
|
data: Record<string, unknown>;
|
|
278
278
|
enriched: Record<string, unknown>;
|
|
279
279
|
}
|
|
280
|
+
type SchemaInput = ZodType | Record<string, unknown>;
|
|
280
281
|
interface StageDef {
|
|
281
282
|
name: string;
|
|
282
283
|
model?: string;
|
|
283
284
|
condition?: (ctx: StageContext) => boolean;
|
|
284
285
|
prompt: (ctx: StageContext) => string;
|
|
285
286
|
images?: (ctx: StageContext) => string[];
|
|
286
|
-
schema: (ctx: StageContext) =>
|
|
287
|
+
schema: (ctx: StageContext) => SchemaInput;
|
|
287
288
|
}
|
|
288
289
|
interface PipelineDef {
|
|
289
290
|
stages: StageDef[];
|
|
@@ -498,4 +499,4 @@ interface ProjectConfig {
|
|
|
498
499
|
collections?: CollectionDef[];
|
|
499
500
|
}
|
|
500
501
|
|
|
501
|
-
export type { AgentImageInput, AgentToolDescriptor, AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionSearchDef, CollectionTextFieldDef, ConnectorDef, ConstraintFieldType, ConstraintOperator, ConstraintPlan, ConstraintPredicate, ConstraintTrace, ConstraintTraceItem, ConstraintTraceKind, ConstraintTraceSource, ConstraintVerification, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FashionPersonalizationContext, FashionRankingPolicy, FashionSearchExplanation, FashionSearchImageInput, FashionSearchRequest, FashionSearchResponse, FieldDef, FindProductsRequest, FindProductsResponse, FtsChannel, GroundedProductCandidate, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, ProductVariantAvailability, ProjectConfig, RecencyChannel, RecencySpaceDef, ScorerDef, ScoringDef, SearchChannelDef, SearchWeightsInput, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageContext, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel };
|
|
502
|
+
export type { AgentImageInput, AgentToolDescriptor, AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionSearchDef, CollectionTextFieldDef, ConnectorDef, ConstraintFieldType, ConstraintOperator, ConstraintPlan, ConstraintPredicate, ConstraintTrace, ConstraintTraceItem, ConstraintTraceKind, ConstraintTraceSource, ConstraintVerification, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FashionPersonalizationContext, FashionRankingPolicy, FashionSearchExplanation, FashionSearchImageInput, FashionSearchRequest, FashionSearchResponse, FieldDef, FindProductsRequest, FindProductsResponse, FtsChannel, GroundedProductCandidate, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, ProductVariantAvailability, ProjectConfig, RecencyChannel, RecencySpaceDef, SchemaInput, ScorerDef, ScoringDef, SearchChannelDef, SearchWeightsInput, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageContext, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ZodType } from 'zod';
|
|
1
2
|
export { MatchCandidate, MatchComponents, MatchResult, ResolvedMatch } from './schemas.js';
|
|
2
|
-
import 'zod';
|
|
3
3
|
|
|
4
4
|
interface FieldDef {
|
|
5
5
|
type: "text" | "number";
|
|
@@ -269,7 +269,7 @@ interface CollectionSearchDef {
|
|
|
269
269
|
instructions?: string;
|
|
270
270
|
semanticRewrite?: boolean;
|
|
271
271
|
enable?: boolean;
|
|
272
|
-
schema?:
|
|
272
|
+
schema?: SchemaInput;
|
|
273
273
|
model?: string;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
@@ -277,13 +277,14 @@ interface StageContext {
|
|
|
277
277
|
data: Record<string, unknown>;
|
|
278
278
|
enriched: Record<string, unknown>;
|
|
279
279
|
}
|
|
280
|
+
type SchemaInput = ZodType | Record<string, unknown>;
|
|
280
281
|
interface StageDef {
|
|
281
282
|
name: string;
|
|
282
283
|
model?: string;
|
|
283
284
|
condition?: (ctx: StageContext) => boolean;
|
|
284
285
|
prompt: (ctx: StageContext) => string;
|
|
285
286
|
images?: (ctx: StageContext) => string[];
|
|
286
|
-
schema: (ctx: StageContext) =>
|
|
287
|
+
schema: (ctx: StageContext) => SchemaInput;
|
|
287
288
|
}
|
|
288
289
|
interface PipelineDef {
|
|
289
290
|
stages: StageDef[];
|
|
@@ -498,4 +499,4 @@ interface ProjectConfig {
|
|
|
498
499
|
collections?: CollectionDef[];
|
|
499
500
|
}
|
|
500
501
|
|
|
501
|
-
export type { AgentImageInput, AgentToolDescriptor, AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionSearchDef, CollectionTextFieldDef, ConnectorDef, ConstraintFieldType, ConstraintOperator, ConstraintPlan, ConstraintPredicate, ConstraintTrace, ConstraintTraceItem, ConstraintTraceKind, ConstraintTraceSource, ConstraintVerification, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FashionPersonalizationContext, FashionRankingPolicy, FashionSearchExplanation, FashionSearchImageInput, FashionSearchRequest, FashionSearchResponse, FieldDef, FindProductsRequest, FindProductsResponse, FtsChannel, GroundedProductCandidate, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, ProductVariantAvailability, ProjectConfig, RecencyChannel, RecencySpaceDef, ScorerDef, ScoringDef, SearchChannelDef, SearchWeightsInput, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageContext, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel };
|
|
502
|
+
export type { AgentImageInput, AgentToolDescriptor, AliasHitScorer, BrandGateScorer, CategoricalSpaceDef, CollectionArrayFieldDef, CollectionBooleanFieldDef, CollectionDef, CollectionEmbeddingDef, CollectionEnumFieldDef, CollectionFieldDef, CollectionNumberFieldDef, CollectionSearchDef, CollectionTextFieldDef, ConnectorDef, ConstraintFieldType, ConstraintOperator, ConstraintPlan, ConstraintPredicate, ConstraintTrace, ConstraintTraceItem, ConstraintTraceKind, ConstraintTraceSource, ConstraintVerification, CosineChannel, CosineScorer, EmbeddingDef, EntityDef, FashionPersonalizationContext, FashionRankingPolicy, FashionSearchExplanation, FashionSearchImageInput, FashionSearchRequest, FashionSearchResponse, FieldDef, FindProductsRequest, FindProductsResponse, FtsChannel, GroundedProductCandidate, ImageSpaceDef, InternalCodeExactScorer, NumberSpaceDef, ParseDef, PhoneExactScorer, PhoneticDef, PhoneticEqScorer, PipelineDef, ProductVariantAvailability, ProjectConfig, RecencyChannel, RecencySpaceDef, SchemaInput, ScorerDef, ScoringDef, SearchChannelDef, SearchWeightsInput, SizeUnitGateScorer, SpaceDef, SpacesChannel, StageContext, StageDef, TextSpaceDef, TrigramScorer, TypedScorer, TypedSearchChannel };
|