@memberjunction/core-entities 6.1.0-edge.3 → 6.1.0-edge.4

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.
@@ -12185,6 +12185,100 @@ export declare const MJGeneratedCodeSchema: z.ZodObject<{
12185
12185
  GeneratedByModel?: string;
12186
12186
  }>;
12187
12187
  export type MJGeneratedCodeEntityType = z.infer<typeof MJGeneratedCodeSchema>;
12188
+ /**
12189
+ * zod schema definition for the entity MJ: Identity Claim Types
12190
+ */
12191
+ export declare const MJIdentityClaimTypeSchema: z.ZodObject<{
12192
+ ID: z.ZodString;
12193
+ Name: z.ZodString;
12194
+ Description: z.ZodNullable<z.ZodString>;
12195
+ DriverClass: z.ZodString;
12196
+ Configuration: z.ZodNullable<z.ZodString>;
12197
+ DefaultExpirationDays: z.ZodNumber;
12198
+ IsActive: z.ZodBoolean;
12199
+ __mj_CreatedAt: z.ZodDate;
12200
+ __mj_UpdatedAt: z.ZodDate;
12201
+ }, "strip", z.ZodTypeAny, {
12202
+ ID?: string;
12203
+ __mj_CreatedAt?: Date;
12204
+ __mj_UpdatedAt?: Date;
12205
+ Name?: string;
12206
+ Description?: string;
12207
+ DriverClass?: string;
12208
+ IsActive?: boolean;
12209
+ Configuration?: string;
12210
+ DefaultExpirationDays?: number;
12211
+ }, {
12212
+ ID?: string;
12213
+ __mj_CreatedAt?: Date;
12214
+ __mj_UpdatedAt?: Date;
12215
+ Name?: string;
12216
+ Description?: string;
12217
+ DriverClass?: string;
12218
+ IsActive?: boolean;
12219
+ Configuration?: string;
12220
+ DefaultExpirationDays?: number;
12221
+ }>;
12222
+ export type MJIdentityClaimTypeEntityType = z.infer<typeof MJIdentityClaimTypeSchema>;
12223
+ /**
12224
+ * zod schema definition for the entity MJ: Identity Claims
12225
+ */
12226
+ export declare const MJIdentityClaimSchema: z.ZodObject<{
12227
+ ID: z.ZodString;
12228
+ ClaimTypeID: z.ZodString;
12229
+ NormalizedEmail: z.ZodString;
12230
+ EntityID: z.ZodNullable<z.ZodString>;
12231
+ RecordID: z.ZodNullable<z.ZodString>;
12232
+ PayloadJSON: z.ZodNullable<z.ZodString>;
12233
+ Status: z.ZodUnion<[z.ZodLiteral<"Claimed">, z.ZodLiteral<"Expired">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Revoked">]>;
12234
+ ExpiresAt: z.ZodDate;
12235
+ ClaimedAt: z.ZodNullable<z.ZodDate>;
12236
+ ClaimedByUserID: z.ZodNullable<z.ZodString>;
12237
+ MagicLinkInviteID: z.ZodNullable<z.ZodString>;
12238
+ MetadataJSON: z.ZodNullable<z.ZodString>;
12239
+ __mj_CreatedAt: z.ZodDate;
12240
+ __mj_UpdatedAt: z.ZodDate;
12241
+ ClaimType: z.ZodString;
12242
+ Entity: z.ZodNullable<z.ZodString>;
12243
+ ClaimedByUser: z.ZodNullable<z.ZodString>;
12244
+ }, "strip", z.ZodTypeAny, {
12245
+ ID?: string;
12246
+ EntityID?: string;
12247
+ RecordID?: string;
12248
+ ExpiresAt?: Date;
12249
+ __mj_CreatedAt?: Date;
12250
+ __mj_UpdatedAt?: Date;
12251
+ Entity?: string;
12252
+ Status?: "Pending" | "Revoked" | "Expired" | "Claimed";
12253
+ ClaimTypeID?: string;
12254
+ NormalizedEmail?: string;
12255
+ PayloadJSON?: string;
12256
+ ClaimedAt?: Date;
12257
+ ClaimedByUserID?: string;
12258
+ MagicLinkInviteID?: string;
12259
+ MetadataJSON?: string;
12260
+ ClaimType?: string;
12261
+ ClaimedByUser?: string;
12262
+ }, {
12263
+ ID?: string;
12264
+ EntityID?: string;
12265
+ RecordID?: string;
12266
+ ExpiresAt?: Date;
12267
+ __mj_CreatedAt?: Date;
12268
+ __mj_UpdatedAt?: Date;
12269
+ Entity?: string;
12270
+ Status?: "Pending" | "Revoked" | "Expired" | "Claimed";
12271
+ ClaimTypeID?: string;
12272
+ NormalizedEmail?: string;
12273
+ PayloadJSON?: string;
12274
+ ClaimedAt?: Date;
12275
+ ClaimedByUserID?: string;
12276
+ MagicLinkInviteID?: string;
12277
+ MetadataJSON?: string;
12278
+ ClaimType?: string;
12279
+ ClaimedByUser?: string;
12280
+ }>;
12281
+ export type MJIdentityClaimEntityType = z.infer<typeof MJIdentityClaimSchema>;
12188
12282
  /**
12189
12283
  * zod schema definition for the entity MJ: Instance Configurations
12190
12284
  */
@@ -14020,6 +14114,7 @@ export declare const MJOAuthAuthServerMetadataCacheSchema: z.ZodObject<{
14020
14114
  ExpiresAt?: Date;
14021
14115
  __mj_CreatedAt?: Date;
14022
14116
  __mj_UpdatedAt?: Date;
14117
+ MetadataJSON?: string;
14023
14118
  IssuerURL?: string;
14024
14119
  AuthorizationEndpoint?: string;
14025
14120
  TokenEndpoint?: string;
@@ -14031,13 +14126,13 @@ export declare const MJOAuthAuthServerMetadataCacheSchema: z.ZodObject<{
14031
14126
  GrantTypesSupported?: string;
14032
14127
  TokenEndpointAuthMethods?: string;
14033
14128
  CodeChallengeMethodsSupported?: string;
14034
- MetadataJSON?: string;
14035
14129
  CachedAt?: Date;
14036
14130
  }, {
14037
14131
  ID?: string;
14038
14132
  ExpiresAt?: Date;
14039
14133
  __mj_CreatedAt?: Date;
14040
14134
  __mj_UpdatedAt?: Date;
14135
+ MetadataJSON?: string;
14041
14136
  IssuerURL?: string;
14042
14137
  AuthorizationEndpoint?: string;
14043
14138
  TokenEndpoint?: string;
@@ -14049,7 +14144,6 @@ export declare const MJOAuthAuthServerMetadataCacheSchema: z.ZodObject<{
14049
14144
  GrantTypesSupported?: string;
14050
14145
  TokenEndpointAuthMethods?: string;
14051
14146
  CodeChallengeMethodsSupported?: string;
14052
- MetadataJSON?: string;
14053
14147
  CachedAt?: Date;
14054
14148
  }>;
14055
14149
  export type MJOAuthAuthServerMetadataCacheEntityType = z.infer<typeof MJOAuthAuthServerMetadataCacheSchema>;
@@ -56813,19 +56907,19 @@ export declare class MJFormChromeRuleEntity extends BaseEntity<MJFormChromeRuleE
56813
56907
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
56814
56908
  /**
56815
56909
  * Validate() method override for MJ: Form Chrome Rules entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
56816
- * * Table-Level: Ensures that if the Target Kind is 'Relationship', a Related Entity must be specified and the Contribution Key must be empty. Conversely, if the Target Kind is 'Contribution', a Contribution Key must be specified and the Related Entity must be empty.
56910
+ * * Table-Level: Ensures that if the target kind is 'Relationship', a related entity is specified and the contribution key is empty. If the target kind is 'Contribution', a contribution key must be specified and the related entity must be empty.
56817
56911
  * @public
56818
56912
  * @method
56819
56913
  * @override
56820
56914
  */
56821
56915
  Validate(): ValidationResult;
56822
56916
  /**
56823
- * Ensures that if the Target Kind is 'Relationship', a Related Entity must be specified and the Contribution Key must be empty. Conversely, if the Target Kind is 'Contribution', a Contribution Key must be specified and the Related Entity must be empty.
56917
+ * Ensures that if the target kind is 'Relationship', a related entity is specified and the contribution key is empty. If the target kind is 'Contribution', a contribution key must be specified and the related entity must be empty.
56824
56918
  * @param result - the ValidationResult object to add any errors or warnings to
56825
56919
  * @public
56826
56920
  * @method
56827
56921
  */
56828
- ValidateTargetKindDependencies(result: ValidationResult): void;
56922
+ ValidateTargetKindAndAssociatedKeys(result: ValidationResult): void;
56829
56923
  /**
56830
56924
  * * Field Name: ID
56831
56925
  * * Display Name: ID
@@ -56874,7 +56968,7 @@ export declare class MJFormChromeRuleEntity extends BaseEntity<MJFormChromeRuleE
56874
56968
  set ContributionKey(value: string | null);
56875
56969
  /**
56876
56970
  * * Field Name: Inclusion
56877
- * * Display Name: Inclusion
56971
+ * * Display Name: Inclusion Rule
56878
56972
  * * SQL Data Type: nvarchar(20)
56879
56973
  * * Value List Type: List
56880
56974
  * * Possible Values
@@ -56904,7 +56998,7 @@ export declare class MJFormChromeRuleEntity extends BaseEntity<MJFormChromeRuleE
56904
56998
  set Sequence(value: number);
56905
56999
  /**
56906
57000
  * * Field Name: Title
56907
- * * Display Name: Title
57001
+ * * Display Name: Section Title
56908
57002
  * * SQL Data Type: nvarchar(100)
56909
57003
  * * Description: Optional admin display title for this section. Null keeps the relationship DisplayName or contribution name. Survives OpenApp upgrades because the row is keyed by RelatedEntityID / ContributionKey, not by the previous label.
56910
57004
  */
@@ -57215,6 +57309,267 @@ export declare class MJGeneratedCodeEntity extends BaseEntity<MJGeneratedCodeEnt
57215
57309
  */
57216
57310
  get LinkedEntity(): string | null;
57217
57311
  }
57312
+ /**
57313
+ * MJ: Identity Claim Types - strongly typed entity sub-class
57314
+ * * Schema: __mj
57315
+ * * Base Table: IdentityClaimType
57316
+ * * Base View: vwIdentityClaimTypes
57317
+ * * @description Metadata catalog of identity claim types. Each row defines a claim kind whose lifecycle (create, claim, revoke, expire) is executed by a BaseIdentityClaimDriver plugin resolved at runtime from DriverClass via ClassFactory.
57318
+ * * Primary Key: ID
57319
+ * @extends {BaseEntity}
57320
+ * @class
57321
+ * @public
57322
+ */
57323
+ export declare class MJIdentityClaimTypeEntity extends BaseEntity<MJIdentityClaimTypeEntityType> {
57324
+ /**
57325
+ * Loads the MJ: Identity Claim Types record from the database
57326
+ * @param ID: string - primary key value to load the MJ: Identity Claim Types record.
57327
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
57328
+ * @returns {Promise<boolean>} - true if successful, false otherwise
57329
+ * @public
57330
+ * @async
57331
+ * @memberof MJIdentityClaimTypeEntity
57332
+ * @method
57333
+ * @override
57334
+ */
57335
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
57336
+ /**
57337
+ * * Field Name: ID
57338
+ * * Display Name: ID
57339
+ * * SQL Data Type: uniqueidentifier
57340
+ * * Default Value: newsequentialid()
57341
+ */
57342
+ get ID(): string;
57343
+ set ID(value: string);
57344
+ /**
57345
+ * * Field Name: Name
57346
+ * * Display Name: Name
57347
+ * * SQL Data Type: nvarchar(100)
57348
+ * * Description: Unique name identifying this claim type (e.g., "EntitlementGrant", "PersonAccountLink", "OrgInvite").
57349
+ */
57350
+ get Name(): string;
57351
+ set Name(value: string);
57352
+ /**
57353
+ * * Field Name: Description
57354
+ * * Display Name: Description
57355
+ * * SQL Data Type: nvarchar(MAX)
57356
+ * * Description: Optional description explaining the intent and behavior of this claim type.
57357
+ */
57358
+ get Description(): string | null;
57359
+ set Description(value: string | null);
57360
+ /**
57361
+ * * Field Name: DriverClass
57362
+ * * Display Name: Driver Class
57363
+ * * SQL Data Type: nvarchar(255)
57364
+ * * Description: Plugin class name implementing BaseIdentityClaimDriver, registered via @RegisterClass(BaseIdentityClaimDriver, DriverClass) and resolved at runtime.
57365
+ */
57366
+ get DriverClass(): string;
57367
+ set DriverClass(value: string);
57368
+ /**
57369
+ * * Field Name: Configuration
57370
+ * * Display Name: Configuration
57371
+ * * SQL Data Type: nvarchar(MAX)
57372
+ * * Description: JSON configuration specific to this claim type driver.
57373
+ */
57374
+ get Configuration(): string | null;
57375
+ set Configuration(value: string | null);
57376
+ /**
57377
+ * * Field Name: DefaultExpirationDays
57378
+ * * Display Name: Default Expiration Days
57379
+ * * SQL Data Type: int
57380
+ * * Default Value: 30
57381
+ * * Description: Default lifespan in days for claims of this type before they expire automatically.
57382
+ */
57383
+ get DefaultExpirationDays(): number;
57384
+ set DefaultExpirationDays(value: number);
57385
+ /**
57386
+ * * Field Name: IsActive
57387
+ * * Display Name: Is Active
57388
+ * * SQL Data Type: bit
57389
+ * * Default Value: 1
57390
+ * * Description: Whether this claim type is active and available for issuing new claims.
57391
+ */
57392
+ get IsActive(): boolean;
57393
+ set IsActive(value: boolean);
57394
+ /**
57395
+ * * Field Name: __mj_CreatedAt
57396
+ * * Display Name: Created At
57397
+ * * SQL Data Type: datetimeoffset
57398
+ * * Default Value: getutcdate()
57399
+ */
57400
+ get __mj_CreatedAt(): Date;
57401
+ /**
57402
+ * * Field Name: __mj_UpdatedAt
57403
+ * * Display Name: Updated At
57404
+ * * SQL Data Type: datetimeoffset
57405
+ * * Default Value: getutcdate()
57406
+ */
57407
+ get __mj_UpdatedAt(): Date;
57408
+ }
57409
+ /**
57410
+ * MJ: Identity Claims - strongly typed entity sub-class
57411
+ * * Schema: __mj
57412
+ * * Base Table: IdentityClaim
57413
+ * * Base View: vwIdentityClaims
57414
+ * * @description Records of pending, claimed, or expired identity claims addressed to an email address. Facilitates cross-system entitlement claiming, account linking, and invite verification.
57415
+ * * Primary Key: ID
57416
+ * @extends {BaseEntity}
57417
+ * @class
57418
+ * @public
57419
+ */
57420
+ export declare class MJIdentityClaimEntity extends BaseEntity<MJIdentityClaimEntityType> {
57421
+ /**
57422
+ * Loads the MJ: Identity Claims record from the database
57423
+ * @param ID: string - primary key value to load the MJ: Identity Claims record.
57424
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
57425
+ * @returns {Promise<boolean>} - true if successful, false otherwise
57426
+ * @public
57427
+ * @async
57428
+ * @memberof MJIdentityClaimEntity
57429
+ * @method
57430
+ * @override
57431
+ */
57432
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
57433
+ /**
57434
+ * * Field Name: ID
57435
+ * * Display Name: ID
57436
+ * * SQL Data Type: uniqueidentifier
57437
+ * * Default Value: newsequentialid()
57438
+ */
57439
+ get ID(): string;
57440
+ set ID(value: string);
57441
+ /**
57442
+ * * Field Name: ClaimTypeID
57443
+ * * Display Name: Claim Type ID
57444
+ * * SQL Data Type: uniqueidentifier
57445
+ * * Related Entity/Foreign Key: MJ: Identity Claim Types (vwIdentityClaimTypes.ID)
57446
+ * * Description: Foreign key linking this claim to its IdentityClaimType definition.
57447
+ */
57448
+ get ClaimTypeID(): string;
57449
+ set ClaimTypeID(value: string);
57450
+ /**
57451
+ * * Field Name: NormalizedEmail
57452
+ * * Display Name: Email Address
57453
+ * * SQL Data Type: nvarchar(255)
57454
+ * * Description: Normalized lowercase email address of the intended claimant.
57455
+ */
57456
+ get NormalizedEmail(): string;
57457
+ set NormalizedEmail(value: string);
57458
+ /**
57459
+ * * Field Name: EntityID
57460
+ * * Display Name: Entity ID
57461
+ * * SQL Data Type: uniqueidentifier
57462
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
57463
+ * * Description: Optional polymorphic foreign key to the Entity representing the resource being claimed.
57464
+ */
57465
+ get EntityID(): string | null;
57466
+ set EntityID(value: string | null);
57467
+ /**
57468
+ * * Field Name: RecordID
57469
+ * * Display Name: Record ID
57470
+ * * SQL Data Type: nvarchar(255)
57471
+ * * Description: Optional primary key / record ID of the specific entity record being claimed.
57472
+ */
57473
+ get RecordID(): string | null;
57474
+ set RecordID(value: string | null);
57475
+ /**
57476
+ * * Field Name: PayloadJSON
57477
+ * * Display Name: Payload
57478
+ * * SQL Data Type: nvarchar(MAX)
57479
+ * * Description: Optional payload JSON containing custom data or parameters consumed by the claim type driver during redemption.
57480
+ */
57481
+ get PayloadJSON(): string | null;
57482
+ set PayloadJSON(value: string | null);
57483
+ /**
57484
+ * * Field Name: Status
57485
+ * * Display Name: Status
57486
+ * * SQL Data Type: nvarchar(20)
57487
+ * * Default Value: Pending
57488
+ * * Value List Type: List
57489
+ * * Possible Values
57490
+ * * Claimed
57491
+ * * Expired
57492
+ * * Pending
57493
+ * * Revoked
57494
+ * * Description: Current lifecycle state of the claim: Pending, Claimed, Expired, or Revoked.
57495
+ */
57496
+ get Status(): 'Claimed' | 'Expired' | 'Pending' | 'Revoked';
57497
+ set Status(value: 'Claimed' | 'Expired' | 'Pending' | 'Revoked');
57498
+ /**
57499
+ * * Field Name: ExpiresAt
57500
+ * * Display Name: Expires At
57501
+ * * SQL Data Type: datetimeoffset
57502
+ * * Description: Timestamp after which this claim can no longer be redeemed.
57503
+ */
57504
+ get ExpiresAt(): Date;
57505
+ set ExpiresAt(value: Date);
57506
+ /**
57507
+ * * Field Name: ClaimedAt
57508
+ * * Display Name: Claimed At
57509
+ * * SQL Data Type: datetimeoffset
57510
+ * * Description: Timestamp when the claim was successfully redeemed.
57511
+ */
57512
+ get ClaimedAt(): Date | null;
57513
+ set ClaimedAt(value: Date | null);
57514
+ /**
57515
+ * * Field Name: ClaimedByUserID
57516
+ * * Display Name: Claimed By User ID
57517
+ * * SQL Data Type: uniqueidentifier
57518
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
57519
+ * * Description: User ID of the authenticated user who successfully claimed this record.
57520
+ */
57521
+ get ClaimedByUserID(): string | null;
57522
+ set ClaimedByUserID(value: string | null);
57523
+ /**
57524
+ * * Field Name: MagicLinkInviteID
57525
+ * * Display Name: Magic Link Invite ID
57526
+ * * SQL Data Type: uniqueidentifier
57527
+ * * Related Entity/Foreign Key: MJ: Magic Link Invites (vwMagicLinkInvites.ID)
57528
+ * * Description: Optional link to a MagicLinkInvite record for email ownership verification links.
57529
+ */
57530
+ get MagicLinkInviteID(): string | null;
57531
+ set MagicLinkInviteID(value: string | null);
57532
+ /**
57533
+ * * Field Name: MetadataJSON
57534
+ * * Display Name: Metadata
57535
+ * * SQL Data Type: nvarchar(MAX)
57536
+ * * Description: Optional metadata JSON for auditing or tracking client provenance.
57537
+ */
57538
+ get MetadataJSON(): string | null;
57539
+ set MetadataJSON(value: string | null);
57540
+ /**
57541
+ * * Field Name: __mj_CreatedAt
57542
+ * * Display Name: Created At
57543
+ * * SQL Data Type: datetimeoffset
57544
+ * * Default Value: getutcdate()
57545
+ */
57546
+ get __mj_CreatedAt(): Date;
57547
+ /**
57548
+ * * Field Name: __mj_UpdatedAt
57549
+ * * Display Name: Updated At
57550
+ * * SQL Data Type: datetimeoffset
57551
+ * * Default Value: getutcdate()
57552
+ */
57553
+ get __mj_UpdatedAt(): Date;
57554
+ /**
57555
+ * * Field Name: ClaimType
57556
+ * * Display Name: Claim Type
57557
+ * * SQL Data Type: nvarchar(100)
57558
+ */
57559
+ get ClaimType(): string;
57560
+ /**
57561
+ * * Field Name: Entity
57562
+ * * Display Name: Entity
57563
+ * * SQL Data Type: nvarchar(255)
57564
+ */
57565
+ get Entity(): string | null;
57566
+ /**
57567
+ * * Field Name: ClaimedByUser
57568
+ * * Display Name: Claimed By User
57569
+ * * SQL Data Type: nvarchar(100)
57570
+ */
57571
+ get ClaimedByUser(): string | null;
57572
+ }
57218
57573
  /**
57219
57574
  * MJ: Instance Configurations - strongly typed entity sub-class
57220
57575
  * * Schema: __mj