@memberjunction/core-entities 5.21.0 → 5.22.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.
@@ -7984,11 +7984,14 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
7984
7984
  AbsoluteMatchThreshold: z.ZodNumber;
7985
7985
  __mj_CreatedAt: z.ZodDate;
7986
7986
  __mj_UpdatedAt: z.ZodDate;
7987
+ VectorIndexID: z.ZodNullable<z.ZodString>;
7988
+ Configuration: z.ZodNullable<z.ZodString>;
7987
7989
  Type: z.ZodString;
7988
7990
  Entity: z.ZodString;
7989
7991
  VectorDatabase: z.ZodString;
7990
7992
  Template: z.ZodString;
7991
7993
  AIModel: z.ZodString;
7994
+ VectorIndex: z.ZodNullable<z.ZodString>;
7992
7995
  }, "strip", z.ZodTypeAny, {
7993
7996
  ID?: string;
7994
7997
  EntityID?: string;
@@ -7998,6 +8001,7 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
7998
8001
  Name?: string;
7999
8002
  Status?: "Active" | "Inactive";
8000
8003
  Type?: string;
8004
+ Configuration?: string;
8001
8005
  TypeID?: string;
8002
8006
  AIModelID?: string;
8003
8007
  AIModel?: string;
@@ -8006,7 +8010,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
8006
8010
  VectorDatabaseID?: string;
8007
8011
  PotentialMatchThreshold?: number;
8008
8012
  AbsoluteMatchThreshold?: number;
8013
+ VectorIndexID?: string;
8009
8014
  VectorDatabase?: string;
8015
+ VectorIndex?: string;
8010
8016
  }, {
8011
8017
  ID?: string;
8012
8018
  EntityID?: string;
@@ -8016,6 +8022,7 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
8016
8022
  Name?: string;
8017
8023
  Status?: "Active" | "Inactive";
8018
8024
  Type?: string;
8025
+ Configuration?: string;
8019
8026
  TypeID?: string;
8020
8027
  AIModelID?: string;
8021
8028
  AIModel?: string;
@@ -8024,7 +8031,9 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
8024
8031
  VectorDatabaseID?: string;
8025
8032
  PotentialMatchThreshold?: number;
8026
8033
  AbsoluteMatchThreshold?: number;
8034
+ VectorIndexID?: string;
8027
8035
  VectorDatabase?: string;
8036
+ VectorIndex?: string;
8028
8037
  }>;
8029
8038
  export type MJEntityDocumentEntityType = z.infer<typeof MJEntityDocumentSchema>;
8030
8039
  /**
@@ -8484,12 +8493,12 @@ export declare const MJEntityRecordDocumentSchema: z.ZodObject<{
8484
8493
  Entity?: string;
8485
8494
  EntityDocumentID?: string;
8486
8495
  EntityDocument?: string;
8487
- DocumentText?: string;
8488
8496
  VectorIndexID?: string;
8497
+ VectorIndex?: string;
8498
+ DocumentText?: string;
8489
8499
  VectorID?: string;
8490
8500
  VectorJSON?: string;
8491
8501
  EntityRecordUpdatedAt?: Date;
8492
- VectorIndex?: string;
8493
8502
  }, {
8494
8503
  ID?: string;
8495
8504
  EntityID?: string;
@@ -8499,12 +8508,12 @@ export declare const MJEntityRecordDocumentSchema: z.ZodObject<{
8499
8508
  Entity?: string;
8500
8509
  EntityDocumentID?: string;
8501
8510
  EntityDocument?: string;
8502
- DocumentText?: string;
8503
8511
  VectorIndexID?: string;
8512
+ VectorIndex?: string;
8513
+ DocumentText?: string;
8504
8514
  VectorID?: string;
8505
8515
  VectorJSON?: string;
8506
8516
  EntityRecordUpdatedAt?: Date;
8507
- VectorIndex?: string;
8508
8517
  }>;
8509
8518
  export type MJEntityRecordDocumentEntityType = z.infer<typeof MJEntityRecordDocumentSchema>;
8510
8519
  /**
@@ -13926,12 +13935,14 @@ export declare const MJVectorDatabaseSchema: z.ZodObject<{
13926
13935
  ClassKey: z.ZodNullable<z.ZodString>;
13927
13936
  __mj_CreatedAt: z.ZodDate;
13928
13937
  __mj_UpdatedAt: z.ZodDate;
13938
+ Configuration: z.ZodNullable<z.ZodString>;
13929
13939
  }, "strip", z.ZodTypeAny, {
13930
13940
  ID?: string;
13931
13941
  __mj_CreatedAt?: Date;
13932
13942
  __mj_UpdatedAt?: Date;
13933
13943
  Name?: string;
13934
13944
  Description?: string;
13945
+ Configuration?: string;
13935
13946
  DefaultURL?: string;
13936
13947
  ClassKey?: string;
13937
13948
  }, {
@@ -13940,6 +13951,7 @@ export declare const MJVectorDatabaseSchema: z.ZodObject<{
13940
13951
  __mj_UpdatedAt?: Date;
13941
13952
  Name?: string;
13942
13953
  Description?: string;
13954
+ Configuration?: string;
13943
13955
  DefaultURL?: string;
13944
13956
  ClassKey?: string;
13945
13957
  }>;
@@ -13955,6 +13967,10 @@ export declare const MJVectorIndexSchema: z.ZodObject<{
13955
13967
  EmbeddingModelID: z.ZodString;
13956
13968
  __mj_CreatedAt: z.ZodDate;
13957
13969
  __mj_UpdatedAt: z.ZodDate;
13970
+ ExternalID: z.ZodNullable<z.ZodString>;
13971
+ Dimensions: z.ZodNullable<z.ZodNumber>;
13972
+ Metric: z.ZodNullable<z.ZodString>;
13973
+ ProviderConfig: z.ZodNullable<z.ZodString>;
13958
13974
  VectorDatabase: z.ZodString;
13959
13975
  EmbeddingModel: z.ZodString;
13960
13976
  }, "strip", z.ZodTypeAny, {
@@ -13965,8 +13981,12 @@ export declare const MJVectorIndexSchema: z.ZodObject<{
13965
13981
  Description?: string;
13966
13982
  EmbeddingModelID?: string;
13967
13983
  EmbeddingModel?: string;
13984
+ ExternalID?: string;
13968
13985
  VectorDatabaseID?: string;
13969
13986
  VectorDatabase?: string;
13987
+ Dimensions?: number;
13988
+ Metric?: string;
13989
+ ProviderConfig?: string;
13970
13990
  }, {
13971
13991
  ID?: string;
13972
13992
  __mj_CreatedAt?: Date;
@@ -13975,8 +13995,12 @@ export declare const MJVectorIndexSchema: z.ZodObject<{
13975
13995
  Description?: string;
13976
13996
  EmbeddingModelID?: string;
13977
13997
  EmbeddingModel?: string;
13998
+ ExternalID?: string;
13978
13999
  VectorDatabaseID?: string;
13979
14000
  VectorDatabase?: string;
14001
+ Dimensions?: number;
14002
+ Metric?: string;
14003
+ ProviderConfig?: string;
13980
14004
  }>;
13981
14005
  export type MJVectorIndexEntityType = z.infer<typeof MJVectorIndexSchema>;
13982
14006
  /**
@@ -37325,7 +37349,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37325
37349
  set Name(value: string);
37326
37350
  /**
37327
37351
  * * Field Name: TypeID
37328
- * * Display Name: Type ID
37352
+ * * Display Name: Type
37329
37353
  * * SQL Data Type: uniqueidentifier
37330
37354
  * * Related Entity/Foreign Key: MJ: Entity Document Types (vwEntityDocumentTypes.ID)
37331
37355
  */
@@ -37333,7 +37357,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37333
37357
  set TypeID(value: string);
37334
37358
  /**
37335
37359
  * * Field Name: EntityID
37336
- * * Display Name: Entity ID
37360
+ * * Display Name: Entity
37337
37361
  * * SQL Data Type: uniqueidentifier
37338
37362
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
37339
37363
  */
@@ -37341,7 +37365,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37341
37365
  set EntityID(value: string);
37342
37366
  /**
37343
37367
  * * Field Name: VectorDatabaseID
37344
- * * Display Name: Vector Database ID
37368
+ * * Display Name: Vector Database
37345
37369
  * * SQL Data Type: uniqueidentifier
37346
37370
  * * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)
37347
37371
  */
@@ -37361,7 +37385,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37361
37385
  set Status(value: 'Active' | 'Inactive');
37362
37386
  /**
37363
37387
  * * Field Name: TemplateID
37364
- * * Display Name: Template ID
37388
+ * * Display Name: Template
37365
37389
  * * SQL Data Type: uniqueidentifier
37366
37390
  * * Related Entity/Foreign Key: MJ: Templates (vwTemplates.ID)
37367
37391
  */
@@ -37369,7 +37393,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37369
37393
  set TemplateID(value: string);
37370
37394
  /**
37371
37395
  * * Field Name: AIModelID
37372
- * * Display Name: AIModel ID
37396
+ * * Display Name: AI Model
37373
37397
  * * SQL Data Type: uniqueidentifier
37374
37398
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
37375
37399
  */
@@ -37395,48 +37419,71 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37395
37419
  set AbsoluteMatchThreshold(value: number);
37396
37420
  /**
37397
37421
  * * Field Name: __mj_CreatedAt
37398
- * * Display Name: __mj _Created At
37422
+ * * Display Name: Created At
37399
37423
  * * SQL Data Type: datetimeoffset
37400
37424
  * * Default Value: getutcdate()
37401
37425
  */
37402
37426
  get __mj_CreatedAt(): Date;
37403
37427
  /**
37404
37428
  * * Field Name: __mj_UpdatedAt
37405
- * * Display Name: __mj _Updated At
37429
+ * * Display Name: Updated At
37406
37430
  * * SQL Data Type: datetimeoffset
37407
37431
  * * Default Value: getutcdate()
37408
37432
  */
37409
37433
  get __mj_UpdatedAt(): Date;
37410
37434
  /**
37435
+ * * Field Name: VectorIndexID
37436
+ * * Display Name: Vector Index
37437
+ * * SQL Data Type: uniqueidentifier
37438
+ * * Related Entity/Foreign Key: MJ: Vector Indexes (vwVectorIndexes.ID)
37439
+ * * Description: Optional foreign key to the specific Vector Index where this entity document's embeddings should be stored. When specified, the vectorization pipeline will upsert vectors directly to this index rather than auto-creating or looking up an index based on VectorDatabaseID + AIModelID. This enables explicit control over which Pinecone/Weaviate/etc. index is used per entity document, supporting multi-index architectures and shared indexes across entity types.
37440
+ */
37441
+ get VectorIndexID(): string | null;
37442
+ set VectorIndexID(value: string | null);
37443
+ /**
37444
+ * * Field Name: Configuration
37445
+ * * Display Name: Configuration
37446
+ * * SQL Data Type: nvarchar(MAX)
37447
+ * * Description: JSON configuration settings for this entity document. Controls vector metadata field inclusion (which fields get stored in the vector index for search result display), large field truncation limits, and future settings like sync scheduling and threshold overrides. NULL means use system defaults.
37448
+ */
37449
+ get Configuration(): string | null;
37450
+ set Configuration(value: string | null);
37451
+ /**
37411
37452
  * * Field Name: Type
37412
- * * Display Name: Type
37453
+ * * Display Name: Type Name
37413
37454
  * * SQL Data Type: nvarchar(100)
37414
37455
  */
37415
37456
  get Type(): string;
37416
37457
  /**
37417
37458
  * * Field Name: Entity
37418
- * * Display Name: Entity
37459
+ * * Display Name: Entity Name
37419
37460
  * * SQL Data Type: nvarchar(255)
37420
37461
  */
37421
37462
  get Entity(): string;
37422
37463
  /**
37423
37464
  * * Field Name: VectorDatabase
37424
- * * Display Name: Vector Database
37465
+ * * Display Name: Vector Database Name
37425
37466
  * * SQL Data Type: nvarchar(100)
37426
37467
  */
37427
37468
  get VectorDatabase(): string;
37428
37469
  /**
37429
37470
  * * Field Name: Template
37430
- * * Display Name: Template
37471
+ * * Display Name: Template Name
37431
37472
  * * SQL Data Type: nvarchar(255)
37432
37473
  */
37433
37474
  get Template(): string;
37434
37475
  /**
37435
37476
  * * Field Name: AIModel
37436
- * * Display Name: AIModel
37477
+ * * Display Name: AI Model Name
37437
37478
  * * SQL Data Type: nvarchar(50)
37438
37479
  */
37439
37480
  get AIModel(): string;
37481
+ /**
37482
+ * * Field Name: VectorIndex
37483
+ * * Display Name: Vector Index Name
37484
+ * * SQL Data Type: nvarchar(255)
37485
+ */
37486
+ get VectorIndex(): string | null;
37440
37487
  }
37441
37488
  /**
37442
37489
  * MJ: Entity Field Values - strongly typed entity sub-class
@@ -53645,6 +53692,14 @@ export declare class MJVectorDatabaseEntity extends BaseEntity<MJVectorDatabaseE
53645
53692
  * * Default Value: getutcdate()
53646
53693
  */
53647
53694
  get __mj_UpdatedAt(): Date;
53695
+ /**
53696
+ * * Field Name: Configuration
53697
+ * * Display Name: Configuration
53698
+ * * SQL Data Type: nvarchar(MAX)
53699
+ * * Description: JSON configuration settings for this vector database provider. Stores provider-specific connection settings like custom host URLs, authentication configuration, timeouts, retry policies, and batch size limits. NULL means use defaults from environment variables or provider defaults.
53700
+ */
53701
+ get Configuration(): string | null;
53702
+ set Configuration(value: string | null);
53648
53703
  }
53649
53704
  /**
53650
53705
  * MJ: Vector Indexes - strongly typed entity sub-class
@@ -53694,7 +53749,7 @@ export declare class MJVectorIndexEntity extends BaseEntity<MJVectorIndexEntityT
53694
53749
  set Description(value: string | null);
53695
53750
  /**
53696
53751
  * * Field Name: VectorDatabaseID
53697
- * * Display Name: Vector Database ID
53752
+ * * Display Name: Vector Database
53698
53753
  * * SQL Data Type: uniqueidentifier
53699
53754
  * * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)
53700
53755
  */
@@ -53702,7 +53757,7 @@ export declare class MJVectorIndexEntity extends BaseEntity<MJVectorIndexEntityT
53702
53757
  set VectorDatabaseID(value: string);
53703
53758
  /**
53704
53759
  * * Field Name: EmbeddingModelID
53705
- * * Display Name: Embedding Model ID
53760
+ * * Display Name: Embedding Model
53706
53761
  * * SQL Data Type: uniqueidentifier
53707
53762
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
53708
53763
  */
@@ -53723,14 +53778,46 @@ export declare class MJVectorIndexEntity extends BaseEntity<MJVectorIndexEntityT
53723
53778
  */
53724
53779
  get __mj_UpdatedAt(): Date;
53725
53780
  /**
53781
+ * * Field Name: ExternalID
53782
+ * * Display Name: External ID
53783
+ * * SQL Data Type: nvarchar(500)
53784
+ * * Description: The provider's native identifier for this index. For Pinecone this is the index name; for other providers it may be a separate UUID or identifier. Used for syncing operations between MJ metadata and the remote vector database.
53785
+ */
53786
+ get ExternalID(): string | null;
53787
+ set ExternalID(value: string | null);
53788
+ /**
53789
+ * * Field Name: Dimensions
53790
+ * * Display Name: Dimensions
53791
+ * * SQL Data Type: int
53792
+ * * Description: The number of dimensions for vectors stored in this index. Determined by the embedding model (e.g., 1536 for text-embedding-3-small, 768 for all-mpnet-base-v2). Set automatically when the index is created via the vector database provider.
53793
+ */
53794
+ get Dimensions(): number | null;
53795
+ set Dimensions(value: number | null);
53796
+ /**
53797
+ * * Field Name: Metric
53798
+ * * Display Name: Distance Metric
53799
+ * * SQL Data Type: nvarchar(50)
53800
+ * * Description: The distance metric used for similarity calculations in this index. Common values: cosine (default, measures angular similarity), euclidean (L2 distance), dotproduct (inner product). Must match what the vector database provider was configured with.
53801
+ */
53802
+ get Metric(): string | null;
53803
+ set Metric(value: string | null);
53804
+ /**
53805
+ * * Field Name: ProviderConfig
53806
+ * * Display Name: Provider Configuration
53807
+ * * SQL Data Type: nvarchar(MAX)
53808
+ * * Description: JSON object containing provider-specific configuration for this index. For Pinecone serverless: {"cloud":"aws","region":"us-east-1"}. For pod-based: {"environment":"us-east1-gcp","podType":"p1.x1","replicas":1}. Stored as a flexible JSON bag to support any provider without schema changes.
53809
+ */
53810
+ get ProviderConfig(): string | null;
53811
+ set ProviderConfig(value: string | null);
53812
+ /**
53726
53813
  * * Field Name: VectorDatabase
53727
- * * Display Name: Vector Database
53814
+ * * Display Name: Vector Database Name
53728
53815
  * * SQL Data Type: nvarchar(100)
53729
53816
  */
53730
53817
  get VectorDatabase(): string;
53731
53818
  /**
53732
53819
  * * Field Name: EmbeddingModel
53733
- * * Display Name: Embedding Model
53820
+ * * Display Name: Embedding Model Name
53734
53821
  * * SQL Data Type: nvarchar(50)
53735
53822
  */
53736
53823
  get EmbeddingModel(): string;